Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libfcrypto 20240414.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 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 $as_nop
239 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 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='libfcrypto'
623 PACKAGE_TARNAME='libfcrypto'
624 PACKAGE_VERSION='20240414'
625 PACKAGE_STRING='libfcrypto 20240414'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 ac_unique_file="include/libfcrypto.h.in"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 gt_needs=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 SPEC_DATE
668 DPKG_DATE
669 libfcrypto_spec_requires
670 LIB_FUZZING_ENGINE
671 HAVE_LIB_FUZZING_ENGINE_FALSE
672 HAVE_LIB_FUZZING_ENGINE_TRUE
673 LIBFCRYPTO_DLL_IMPORT
674 LIBFCRYPTO_DLL_EXPORT
675 HAVE_DLLMAIN
676 HAVE_PYTHON_TESTS_FALSE
677 HAVE_PYTHON_TESTS_TRUE
678 HAVE_PYTHON_FALSE
679 HAVE_PYTHON_TRUE
680 PYTHON_PACKAGE_DIR
681 PYTHON_LIBRARY_DIR
682 pyexecdir
683 pythondir
684 PYTHON_EXEC_PREFIX
685 PYTHON_PREFIX
686 PYTHON_LDFLAGS
687 PYTHON_CPPFLAGS
688 PYTHON_CONFIG
689 PYTHON_PLATFORM
690 PYTHON
691 ax_libcerror_spec_build_requires
692 ax_libcerror_spec_requires
693 ax_libcerror_pc_libs_private
694 LIBCERROR_LIBADD
695 LIBCERROR_CPPFLAGS
696 HAVE_LOCAL_LIBCERROR_FALSE
697 HAVE_LOCAL_LIBCERROR_TRUE
698 HAVE_LOCAL_LIBCERROR
699 HAVE_LIBCERROR
700 libcerror_LIBS
701 libcerror_CFLAGS
702 PKG_CONFIG_LIBDIR
703 PKG_CONFIG_PATH
704 PKG_CONFIG
705 HAVE_OFF64_T
706 HAVE_SSIZE64_T
707 HAVE_SIZE64_T
708 HAVE_SSIZE32_T
709 HAVE_SIZE32_T
710 HAVE_WCHAR_H
711 HAVE_STDINT_H
712 HAVE_INTTYPES_H
713 HAVE_SYS_TYPES_H
714 HAVE_WIDE_CHARACTER_TYPE
715 POSUB
716 LTLIBINTL
717 LIBINTL
718 INTLLIBS
719 LTLIBICONV
720 LIBICONV
721 INTL_MACOSX_LIBS
722 XGETTEXT_EXTRA_OPTIONS
723 MSGMERGE_FOR_MSGFMT_OPTION
724 MSGMERGE
725 XGETTEXT_015
726 XGETTEXT
727 GMSGFMT_015
728 GMSGFMT
729 MSGFMT
730 GETTEXT_MACRO_VERSION
731 USE_NLS
732 PKGCONFIG
733 LIBTOOL_DEPS
734 CXXCPP
735 am__fastdepCXX_FALSE
736 am__fastdepCXX_TRUE
737 CXXDEPMODE
738 ac_ct_CXX
739 CXXFLAGS
740 CXX
741 CPP
742 LT_SYS_LIBRARY_PATH
743 OTOOL64
744 OTOOL
745 LIPO
746 NMEDIT
747 DSYMUTIL
748 MANIFEST_TOOL
749 RANLIB
750 ac_ct_AR
751 AR
752 FILECMD
753 LN_S
754 NM
755 ac_ct_DUMPBIN
756 DUMPBIN
757 LD
758 FGREP
759 EGREP
760 GREP
761 SED
762 am__fastdepCC_FALSE
763 am__fastdepCC_TRUE
764 CCDEPMODE
765 am__nodep
766 AMDEPBACKSLASH
767 AMDEP_FALSE
768 AMDEP_TRUE
769 am__include
770 DEPDIR
771 OBJEXT
772 EXEEXT
773 ac_ct_CC
774 CPPFLAGS
775 LDFLAGS
776 CFLAGS
777 CC
778 LIBTOOL
779 OBJDUMP
780 DLLTOOL
781 AS
782 host_os
783 host_vendor
784 host_cpu
785 host
786 build_os
787 build_vendor
788 build_cpu
789 build
790 AM_BACKSLASH
791 AM_DEFAULT_VERBOSITY
792 AM_DEFAULT_V
793 AM_V
794 CSCOPE
795 ETAGS
796 CTAGS
797 am__untar
798 am__tar
799 AMTAR
800 am__leading_dot
801 SET_MAKE
802 AWK
803 mkdir_p
804 MKDIR_P
805 INSTALL_STRIP_PROGRAM
806 STRIP
807 install_sh
808 MAKEINFO
809 AUTOHEADER
810 AUTOMAKE
811 AUTOCONF
812 ACLOCAL
813 VERSION
814 PACKAGE
815 CYGPATH_W
816 am__isrc
817 INSTALL_DATA
818 INSTALL_SCRIPT
819 INSTALL_PROGRAM
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 runstatedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL
859 am__quote'
860 ac_subst_files=''
861 ac_user_opts='
862 enable_option_checking
863 enable_silent_rules
864 enable_shared
865 enable_static
866 with_pic
867 enable_fast_install
868 with_aix_soname
869 enable_dependency_tracking
870 with_gnu_ld
871 with_sysroot
872 enable_libtool_lock
873 enable_nls
874 enable_rpath
875 with_libiconv_prefix
876 with_libintl_prefix
877 enable_largefile
878 enable_shared_libs
879 enable_winapi
880 with_libcerror
881 with_pyprefix
882 enable_python
883 with_pythondir
884 '
885 ac_precious_vars='build_alias
886 host_alias
887 target_alias
888 CC
889 CFLAGS
890 LDFLAGS
891 LIBS
892 CPPFLAGS
893 LT_SYS_LIBRARY_PATH
894 CPP
895 CXX
896 CXXFLAGS
897 CCC
898 CXXCPP
899 PKG_CONFIG
900 PKG_CONFIG_PATH
901 PKG_CONFIG_LIBDIR
902 libcerror_CFLAGS
903 libcerror_LIBS'
904
905
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 ac_unrecognized_opts=
910 ac_unrecognized_sep=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
927
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 runstatedir='${localstatedir}/run'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
964 fi
965
966 case $ac_option in
967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *=) ac_optarg= ;;
969 *) ac_optarg=yes ;;
970 esac
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1178
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -runstatedir | --runstatedir | --runstatedi | --runstated \
1194 | --runstate | --runstat | --runsta | --runst | --runs \
1195 | --run | --ru | --r)
1196 ac_prev=runstatedir ;;
1197 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1198 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1199 | --run=* | --ru=* | --r=*)
1200 runstatedir=$ac_optarg ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1206 sbindir=$ac_optarg ;;
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1217 sharedstatedir=$ac_optarg ;;
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1222 site=$ac_optarg ;;
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227 srcdir=$ac_optarg ;;
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234 sysconfdir=$ac_optarg ;;
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1237 ac_prev=target_alias ;;
1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239 target_alias=$ac_optarg ;;
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
1246
1247 -with-* | --with-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: \`$ac_useropt'"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=\$ac_optarg ;;
1262
1263 -without-* | --without-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: \`$ac_useropt'"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1299 ;;
1300
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
1306 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 ;;
1318
1319 esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $? "missing argument to $ac_option"
1325 fi
1326
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1333 fi
1334
1335 # Check all directory arguments for consistency.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir runstatedir
1340 do
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 done
1355
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370 fi
1371
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375 test "$silent" = yes && exec 6>/dev/null
1376
1377
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1384
1385
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 printf "%s\n" X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\).*/{
1409 s//\1/
1410 q
1411 }
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1416 fi
1417 else
1418 ac_srcdir_defaulted=no
1419 fi
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1423 fi
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 \`configure' configures libfcrypto 20240414 to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/libfcrypto]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1506 _ACEOF
1507
1508 cat <<\_ACEOF
1509
1510 Program names:
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514
1515 System types:
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522 case $ac_init_help in
1523 short | recursive ) echo "Configuration of libfcrypto 20240414:";;
1524 esac
1525 cat <<\_ACEOF
1526
1527 Optional Features:
1528 --disable-option-checking ignore unrecognized --enable/--with options
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-silent-rules less verbose build output (undo: "make V=1")
1532 --disable-silent-rules verbose build output (undo: "make V=0")
1533 --enable-shared[=PKGS] build shared libraries [default=yes]
1534 --enable-static[=PKGS] build static libraries [default=yes]
1535 --enable-fast-install[=PKGS]
1536 optimize for fast installation [default=yes]
1537 --enable-dependency-tracking
1538 do not reject slow dependency extractors
1539 --disable-dependency-tracking
1540 speeds up one-time build
1541 --disable-libtool-lock avoid locking (might break parallel builds)
1542 --disable-nls do not use Native Language Support
1543 --disable-rpath do not hardcode runtime library paths
1544 --disable-largefile omit support for large files
1545 --disable-shared-libs disable shared library support
1546 --enable-winapi enable WINAPI support for cross-compilation
1547 [default=auto-detect]
1548 --enable-python build Python bindings [default=no]
1549
1550 Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1554 both]
1555 --with-aix-soname=aix|svr4|both
1556 shared library versioning (aka "SONAME") variant to
1557 provide on AIX, [default=aix].
1558 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1559 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1560 compiler's sysroot if not specified).
1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1562 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1563 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1564 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1565 --without-libintl-prefix don't search for libintl in includedir and libdir
1566 --with-libcerror[=DIR] search for libcerror in includedir and libdir or in
1567 the specified DIR, or no if to use local version
1568 [default=auto-detect]
1569 --with-pyprefix[=no] use `python-config --prefix' to determine the prefix
1570 of pythondir instead of --prefix [default=no]
1571 --with-pythondir[=no] use to specify the Python directory (pythondir)
1572 [default=no]
1573
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 LT_SYS_LIBRARY_PATH
1583 User-defined run-time library search path.
1584 CPP C preprocessor
1585 CXX C++ compiler command
1586 CXXFLAGS C++ compiler flags
1587 CXXCPP C++ preprocessor
1588 PKG_CONFIG path to pkg-config utility
1589 PKG_CONFIG_PATH
1590 directories to add to pkg-config's search path
1591 PKG_CONFIG_LIBDIR
1592 path overriding pkg-config's built-in search path
1593 libcerror_CFLAGS
1594 C compiler flags for libcerror, overriding pkg-config
1595 libcerror_LIBS
1596 linker flags for libcerror, overriding pkg-config
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 Report bugs to <[email protected]>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
1612 ac_builddir=.
1613
1614 case "$ac_dir" in
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *)
1617 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624 esac
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1629
1630 case $srcdir in
1631 .) # We are building in place.
1632 ac_srcdir=.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 esac
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for configure.gnu first; this name is used for a wrapper for
1648 # Metaconfig's "Configure" on case-insensitive file systems.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1655 else
1656 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1659 done
1660 fi
1661
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1664 cat <<\_ACEOF
1665 libfcrypto configure 20240414
1666 generated by GNU Autoconf 2.71
1667
1668 Copyright (C) 2021 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1671 _ACEOF
1672 exit
1673 fi
1674
1675 ## ------------------------ ##
1676 ## Autoconf initialization. ##
1677 ## ------------------------ ##
1678
1679 # ac_fn_c_try_compile LINENO
1680 # --------------------------
1681 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_compile ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest.beam
1686 if { { ac_try="$ac_compile"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 printf "%s\n" "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext
1705 then :
1706 ac_retval=0
1707 else $as_nop
1708 printf "%s\n" "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712 fi
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_compile
1717
1718 # ac_fn_c_try_link LINENO
1719 # -----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_link ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1725 if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 printf "%s\n" "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest$ac_exeext && {
1744 test "$cross_compiling" = yes ||
1745 test -x conftest$ac_exeext
1746 }
1747 then :
1748 ac_retval=0
1749 else $as_nop
1750 printf "%s\n" "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=1
1754 fi
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_link
1764
1765 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists and can be compiled using the include files in
1768 # INCLUDES, setting the cache variable VAR accordingly.
1769 ac_fn_c_check_header_compile ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 printf %s "checking for $2... " >&6; }
1774 if eval test \${$3+y}
1775 then :
1776 printf %s "(cached) " >&6
1777 else $as_nop
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 $4
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"
1784 then :
1785 eval "$3=yes"
1786 else $as_nop
1787 eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1790 fi
1791 eval ac_res=\$$3
1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 printf "%s\n" "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_header_compile
1797
1798 # ac_fn_c_check_func LINENO FUNC VAR
1799 # ----------------------------------
1800 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1801 ac_fn_c_check_func ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 printf %s "checking for $2... " >&6; }
1806 if eval test \${$3+y}
1807 then :
1808 printf %s "(cached) " >&6
1809 else $as_nop
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1814 #define $2 innocuous_$2
1815
1816 /* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $2 (); below. */
1818
1819 #include <limits.h>
1820 #undef $2
1821
1822 /* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1825 #ifdef __cplusplus
1826 extern "C"
1827 #endif
1828 char $2 ();
1829 /* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832 #if defined __stub_$2 || defined __stub___$2
1833 choke me
1834 #endif
1835
1836 int
1837 main (void)
1838 {
1839 return $2 ();
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_link "$LINENO"
1845 then :
1846 eval "$3=yes"
1847 else $as_nop
1848 eval "$3=no"
1849 fi
1850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1851 conftest$ac_exeext conftest.$ac_ext
1852 fi
1853 eval ac_res=\$$3
1854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 printf "%s\n" "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_func
1859
1860 # ac_fn_c_try_cpp LINENO
1861 # ----------------------
1862 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_cpp ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_cpp conftest.$ac_ext"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 printf "%s\n" "$ac_try_echo"; } >&5
1873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1879 fi
1880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } > conftest.i && {
1882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1884 }
1885 then :
1886 ac_retval=0
1887 else $as_nop
1888 printf "%s\n" "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=1
1892 fi
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1895
1896 } # ac_fn_c_try_cpp
1897
1898 # ac_fn_cxx_try_compile LINENO
1899 # ----------------------------
1900 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_cxx_try_compile ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 rm -f conftest.$ac_objext conftest.beam
1905 if { { ac_try="$ac_compile"
1906 case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 printf "%s\n" "$ac_try_echo"; } >&5
1912 (eval "$ac_compile") 2>conftest.err
1913 ac_status=$?
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1918 fi
1919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && {
1921 test -z "$ac_cxx_werror_flag" ||
1922 test ! -s conftest.err
1923 } && test -s conftest.$ac_objext
1924 then :
1925 ac_retval=0
1926 else $as_nop
1927 printf "%s\n" "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1929
1930 ac_retval=1
1931 fi
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1934
1935 } # ac_fn_cxx_try_compile
1936
1937 # ac_fn_cxx_try_cpp LINENO
1938 # ------------------------
1939 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1940 ac_fn_cxx_try_cpp ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if { { ac_try="$ac_cpp conftest.$ac_ext"
1944 case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 printf "%s\n" "$ac_try_echo"; } >&5
1950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1951 ac_status=$?
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1956 fi
1957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } > conftest.i && {
1959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1960 test ! -s conftest.err
1961 }
1962 then :
1963 ac_retval=0
1964 else $as_nop
1965 printf "%s\n" "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968 ac_retval=1
1969 fi
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1972
1973 } # ac_fn_cxx_try_cpp
1974
1975 # ac_fn_cxx_try_link LINENO
1976 # -------------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_link ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1982 if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 printf "%s\n" "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1995 fi
1996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest$ac_exeext && {
2001 test "$cross_compiling" = yes ||
2002 test -x conftest$ac_exeext
2003 }
2004 then :
2005 ac_retval=0
2006 else $as_nop
2007 printf "%s\n" "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 ac_retval=1
2011 fi
2012 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014 # interfere with the next link command; also delete a directory that is
2015 # left behind by Apple's compiler. We do this before executing the actions.
2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2019
2020 } # ac_fn_cxx_try_link
2021
2022 # ac_fn_c_try_run LINENO
2023 # ----------------------
2024 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2025 # executables *can* be run.
2026 ac_fn_c_try_run ()
2027 {
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if { { ac_try="$ac_link"
2030 case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 printf "%s\n" "$ac_try_echo"; } >&5
2036 (eval "$ac_link") 2>&5
2037 ac_status=$?
2038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2040 { { case "(($ac_try" in
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 printf "%s\n" "$ac_try_echo"; } >&5
2046 (eval "$ac_try") 2>&5
2047 ac_status=$?
2048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; }; }
2050 then :
2051 ac_retval=0
2052 else $as_nop
2053 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2054 printf "%s\n" "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 ac_retval=$ac_status
2058 fi
2059 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 as_fn_set_status $ac_retval
2062
2063 } # ac_fn_c_try_run
2064
2065 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2066 # -------------------------------------------
2067 # Tests whether TYPE exists after having included INCLUDES, setting cache
2068 # variable VAR accordingly.
2069 ac_fn_c_check_type ()
2070 {
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 printf %s "checking for $2... " >&6; }
2074 if eval test \${$3+y}
2075 then :
2076 printf %s "(cached) " >&6
2077 else $as_nop
2078 eval "$3=no"
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $4
2082 int
2083 main (void)
2084 {
2085 if (sizeof ($2))
2086 return 0;
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"
2092 then :
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2095 $4
2096 int
2097 main (void)
2098 {
2099 if (sizeof (($2)))
2100 return 0;
2101 ;
2102 return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"
2106 then :
2107
2108 else $as_nop
2109 eval "$3=yes"
2110 fi
2111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2114 fi
2115 eval ac_res=\$$3
2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 printf "%s\n" "$ac_res" >&6; }
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119
2120 } # ac_fn_c_check_type
2121
2122 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2123 # --------------------------------------------
2124 # Tries to find the compile-time value of EXPR in a program that includes
2125 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2126 # computed
2127 ac_fn_c_compute_int ()
2128 {
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 if test "$cross_compiling" = yes; then
2131 # Depending upon the size, compute the lo and hi bounds.
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2134 $4
2135 int
2136 main (void)
2137 {
2138 static int test_array [1 - 2 * !(($2) >= 0)];
2139 test_array [0] = 0;
2140 return test_array [0];
2141
2142 ;
2143 return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"
2147 then :
2148 ac_lo=0 ac_mid=0
2149 while :; do
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 $4
2153 int
2154 main (void)
2155 {
2156 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2157 test_array [0] = 0;
2158 return test_array [0];
2159
2160 ;
2161 return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"
2165 then :
2166 ac_hi=$ac_mid; break
2167 else $as_nop
2168 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2169 if test $ac_lo -le $ac_mid; then
2170 ac_lo= ac_hi=
2171 break
2172 fi
2173 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2176 done
2177 else $as_nop
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2180 $4
2181 int
2182 main (void)
2183 {
2184 static int test_array [1 - 2 * !(($2) < 0)];
2185 test_array [0] = 0;
2186 return test_array [0];
2187
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"
2193 then :
2194 ac_hi=-1 ac_mid=-1
2195 while :; do
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 $4
2199 int
2200 main (void)
2201 {
2202 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2203 test_array [0] = 0;
2204 return test_array [0];
2205
2206 ;
2207 return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"
2211 then :
2212 ac_lo=$ac_mid; break
2213 else $as_nop
2214 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2215 if test $ac_mid -le $ac_hi; then
2216 ac_lo= ac_hi=
2217 break
2218 fi
2219 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2220 fi
2221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2222 done
2223 else $as_nop
2224 ac_lo= ac_hi=
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2229 # Binary search between lo and hi bounds.
2230 while test "x$ac_lo" != "x$ac_hi"; do
2231 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2234 $4
2235 int
2236 main (void)
2237 {
2238 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2239 test_array [0] = 0;
2240 return test_array [0];
2241
2242 ;
2243 return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"
2247 then :
2248 ac_hi=$ac_mid
2249 else $as_nop
2250 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2253 done
2254 case $ac_lo in #((
2255 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2256 '') ac_retval=1 ;;
2257 esac
2258 else
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2261 $4
2262 static long int longval (void) { return $2; }
2263 static unsigned long int ulongval (void) { return $2; }
2264 #include <stdio.h>
2265 #include <stdlib.h>
2266 int
2267 main (void)
2268 {
2269
2270 FILE *f = fopen ("conftest.val", "w");
2271 if (! f)
2272 return 1;
2273 if (($2) < 0)
2274 {
2275 long int i = longval ();
2276 if (i != ($2))
2277 return 1;
2278 fprintf (f, "%ld", i);
2279 }
2280 else
2281 {
2282 unsigned long int i = ulongval ();
2283 if (i != ($2))
2284 return 1;
2285 fprintf (f, "%lu", i);
2286 }
2287 /* Do not output a trailing newline, as this causes \r\n confusion
2288 on some platforms. */
2289 return ferror (f) || fclose (f) != 0;
2290
2291 ;
2292 return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_run "$LINENO"
2296 then :
2297 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2298 else $as_nop
2299 ac_retval=1
2300 fi
2301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2302 conftest.$ac_objext conftest.beam conftest.$ac_ext
2303 rm -f conftest.val
2304
2305 fi
2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307 as_fn_set_status $ac_retval
2308
2309 } # ac_fn_c_compute_int
2310
2311 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2312 # ------------------------------------------------------------------
2313 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2314 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2315 ac_fn_check_decl ()
2316 {
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 as_decl_name=`echo $2|sed 's/ *(.*//'`
2319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2320 printf %s "checking whether $as_decl_name is declared... " >&6; }
2321 if eval test \${$3+y}
2322 then :
2323 printf %s "(cached) " >&6
2324 else $as_nop
2325 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2326 eval ac_save_FLAGS=\$$6
2327 as_fn_append $6 " $5"
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2330 $4
2331 int
2332 main (void)
2333 {
2334 #ifndef $as_decl_name
2335 #ifdef __cplusplus
2336 (void) $as_decl_use;
2337 #else
2338 (void) $as_decl_name;
2339 #endif
2340 #endif
2341
2342 ;
2343 return 0;
2344 }
2345 _ACEOF
2346 if ac_fn_c_try_compile "$LINENO"
2347 then :
2348 eval "$3=yes"
2349 else $as_nop
2350 eval "$3=no"
2351 fi
2352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2353 eval $6=\$ac_save_FLAGS
2354
2355 fi
2356 eval ac_res=\$$3
2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 printf "%s\n" "$ac_res" >&6; }
2359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360
2361 } # ac_fn_check_decl
2362 ac_configure_args_raw=
2363 for ac_arg
2364 do
2365 case $ac_arg in
2366 *\'*)
2367 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2368 esac
2369 as_fn_append ac_configure_args_raw " '$ac_arg'"
2370 done
2371
2372 case $ac_configure_args_raw in
2373 *$as_nl*)
2374 ac_safe_unquote= ;;
2375 *)
2376 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2377 ac_unsafe_a="$ac_unsafe_z#~"
2378 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2379 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2380 esac
2381
2382 cat >config.log <<_ACEOF
2383 This file contains any messages produced by compilers while
2384 running configure, to aid debugging if configure makes a mistake.
2385
2386 It was created by libfcrypto $as_me 20240414, which was
2387 generated by GNU Autoconf 2.71. Invocation command line was
2388
2389 $ $0$ac_configure_args_raw
2390
2391 _ACEOF
2392 exec 5>>config.log
2393 {
2394 cat <<_ASUNAME
2395 ## --------- ##
2396 ## Platform. ##
2397 ## --------- ##
2398
2399 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2400 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2401 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2402 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2403 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2404
2405 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2406 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2407
2408 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2409 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2410 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2411 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2412 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2413 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2414 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2415
2416 _ASUNAME
2417
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421 IFS=$as_save_IFS
2422 case $as_dir in #(((
2423 '') as_dir=./ ;;
2424 */) ;;
2425 *) as_dir=$as_dir/ ;;
2426 esac
2427 printf "%s\n" "PATH: $as_dir"
2428 done
2429 IFS=$as_save_IFS
2430
2431 } >&5
2432
2433 cat >&5 <<_ACEOF
2434
2435
2436 ## ----------- ##
2437 ## Core tests. ##
2438 ## ----------- ##
2439
2440 _ACEOF
2441
2442
2443 # Keep a trace of the command line.
2444 # Strip out --no-create and --no-recursion so they do not pile up.
2445 # Strip out --silent because we don't want to record it for future runs.
2446 # Also quote any args containing shell meta-characters.
2447 # Make two passes to allow for proper duplicate-argument suppression.
2448 ac_configure_args=
2449 ac_configure_args0=
2450 ac_configure_args1=
2451 ac_must_keep_next=false
2452 for ac_pass in 1 2
2453 do
2454 for ac_arg
2455 do
2456 case $ac_arg in
2457 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2459 | -silent | --silent | --silen | --sile | --sil)
2460 continue ;;
2461 *\'*)
2462 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2463 esac
2464 case $ac_pass in
2465 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2466 2)
2467 as_fn_append ac_configure_args1 " '$ac_arg'"
2468 if test $ac_must_keep_next = true; then
2469 ac_must_keep_next=false # Got value, back to normal.
2470 else
2471 case $ac_arg in
2472 *=* | --config-cache | -C | -disable-* | --disable-* \
2473 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2474 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2475 | -with-* | --with-* | -without-* | --without-* | --x)
2476 case "$ac_configure_args0 " in
2477 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2478 esac
2479 ;;
2480 -* ) ac_must_keep_next=true ;;
2481 esac
2482 fi
2483 as_fn_append ac_configure_args " '$ac_arg'"
2484 ;;
2485 esac
2486 done
2487 done
2488 { ac_configure_args0=; unset ac_configure_args0;}
2489 { ac_configure_args1=; unset ac_configure_args1;}
2490
2491 # When interrupted or exit'd, cleanup temporary files, and complete
2492 # config.log. We remove comments because anyway the quotes in there
2493 # would cause problems or look ugly.
2494 # WARNING: Use '\'' to represent an apostrophe within the trap.
2495 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2496 trap 'exit_status=$?
2497 # Sanitize IFS.
2498 IFS=" "" $as_nl"
2499 # Save into config.log some information that might help in debugging.
2500 {
2501 echo
2502
2503 printf "%s\n" "## ---------------- ##
2504 ## Cache variables. ##
2505 ## ---------------- ##"
2506 echo
2507 # The following way of writing the cache mishandles newlines in values,
2508 (
2509 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2510 eval ac_val=\$$ac_var
2511 case $ac_val in #(
2512 *${as_nl}*)
2513 case $ac_var in #(
2514 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2515 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2516 esac
2517 case $ac_var in #(
2518 _ | IFS | as_nl) ;; #(
2519 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2520 *) { eval $ac_var=; unset $ac_var;} ;;
2521 esac ;;
2522 esac
2523 done
2524 (set) 2>&1 |
2525 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2526 *${as_nl}ac_space=\ *)
2527 sed -n \
2528 "s/'\''/'\''\\\\'\'''\''/g;
2529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2530 ;; #(
2531 *)
2532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2533 ;;
2534 esac |
2535 sort
2536 )
2537 echo
2538
2539 printf "%s\n" "## ----------------- ##
2540 ## Output variables. ##
2541 ## ----------------- ##"
2542 echo
2543 for ac_var in $ac_subst_vars
2544 do
2545 eval ac_val=\$$ac_var
2546 case $ac_val in
2547 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2548 esac
2549 printf "%s\n" "$ac_var='\''$ac_val'\''"
2550 done | sort
2551 echo
2552
2553 if test -n "$ac_subst_files"; then
2554 printf "%s\n" "## ------------------- ##
2555 ## File substitutions. ##
2556 ## ------------------- ##"
2557 echo
2558 for ac_var in $ac_subst_files
2559 do
2560 eval ac_val=\$$ac_var
2561 case $ac_val in
2562 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2563 esac
2564 printf "%s\n" "$ac_var='\''$ac_val'\''"
2565 done | sort
2566 echo
2567 fi
2568
2569 if test -s confdefs.h; then
2570 printf "%s\n" "## ----------- ##
2571 ## confdefs.h. ##
2572 ## ----------- ##"
2573 echo
2574 cat confdefs.h
2575 echo
2576 fi
2577 test "$ac_signal" != 0 &&
2578 printf "%s\n" "$as_me: caught signal $ac_signal"
2579 printf "%s\n" "$as_me: exit $exit_status"
2580 } >&5
2581 rm -f core *.core core.conftest.* &&
2582 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2583 exit $exit_status
2584 ' 0
2585 for ac_signal in 1 2 13 15; do
2586 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2587 done
2588 ac_signal=0
2589
2590 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2591 rm -f -r conftest* confdefs.h
2592
2593 printf "%s\n" "/* confdefs.h */" > confdefs.h
2594
2595 # Predefined preprocessor variables.
2596
2597 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2598
2599 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2600
2601 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2602
2603 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2604
2605 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2606
2607 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2608
2609
2610 # Let the site file select an alternate cache file if it wants to.
2611 # Prefer an explicitly selected file to automatically selected ones.
2612 if test -n "$CONFIG_SITE"; then
2613 ac_site_files="$CONFIG_SITE"
2614 elif test "x$prefix" != xNONE; then
2615 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2616 else
2617 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2618 fi
2619
2620 for ac_site_file in $ac_site_files
2621 do
2622 case $ac_site_file in #(
2623 */*) :
2624 ;; #(
2625 *) :
2626 ac_site_file=./$ac_site_file ;;
2627 esac
2628 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2630 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2631 sed 's/^/| /' "$ac_site_file" >&5
2632 . "$ac_site_file" \
2633 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2634 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2635 as_fn_error $? "failed to load site script $ac_site_file
2636 See \`config.log' for more details" "$LINENO" 5; }
2637 fi
2638 done
2639
2640 if test -r "$cache_file"; then
2641 # Some versions of bash will fail to source /dev/null (special files
2642 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2643 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2645 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2646 case $cache_file in
2647 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2648 *) . "./$cache_file";;
2649 esac
2650 fi
2651 else
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2653 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2654 >$cache_file
2655 fi
2656
2657 # Test code for whether the C compiler supports C89 (global declarations)
2658 ac_c_conftest_c89_globals='
2659 /* Does the compiler advertise C89 conformance?
2660 Do not test the value of __STDC__, because some compilers set it to 0
2661 while being otherwise adequately conformant. */
2662 #if !defined __STDC__
2663 # error "Compiler does not advertise C89 conformance"
2664 #endif
2665
2666 #include <stddef.h>
2667 #include <stdarg.h>
2668 struct stat;
2669 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2670 struct buf { int x; };
2671 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2672 static char *e (p, i)
2673 char **p;
2674 int i;
2675 {
2676 return p[i];
2677 }
2678 static char *f (char * (*g) (char **, int), char **p, ...)
2679 {
2680 char *s;
2681 va_list v;
2682 va_start (v,p);
2683 s = g (p, va_arg (v,int));
2684 va_end (v);
2685 return s;
2686 }
2687
2688 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2689 function prototypes and stuff, but not \xHH hex character constants.
2690 These do not provoke an error unfortunately, instead are silently treated
2691 as an "x". The following induces an error, until -std is added to get
2692 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2693 array size at least. It is necessary to write \x00 == 0 to get something
2694 that is true only with -std. */
2695 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2696
2697 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2698 inside strings and character constants. */
2699 #define FOO(x) '\''x'\''
2700 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2701
2702 int test (int i, double x);
2703 struct s1 {int (*f) (int a);};
2704 struct s2 {int (*f) (double a);};
2705 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2706 int, int);'
2707
2708 # Test code for whether the C compiler supports C89 (body of main).
2709 ac_c_conftest_c89_main='
2710 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2711 '
2712
2713 # Test code for whether the C compiler supports C99 (global declarations)
2714 ac_c_conftest_c99_globals='
2715 // Does the compiler advertise C99 conformance?
2716 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2717 # error "Compiler does not advertise C99 conformance"
2718 #endif
2719
2720 #include <stdbool.h>
2721 extern int puts (const char *);
2722 extern int printf (const char *, ...);
2723 extern int dprintf (int, const char *, ...);
2724 extern void *malloc (size_t);
2725
2726 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2727 // dprintf is used instead of fprintf to avoid needing to declare
2728 // FILE and stderr.
2729 #define debug(...) dprintf (2, __VA_ARGS__)
2730 #define showlist(...) puts (#__VA_ARGS__)
2731 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2732 static void
2733 test_varargs_macros (void)
2734 {
2735 int x = 1234;
2736 int y = 5678;
2737 debug ("Flag");
2738 debug ("X = %d\n", x);
2739 showlist (The first, second, and third items.);
2740 report (x>y, "x is %d but y is %d", x, y);
2741 }
2742
2743 // Check long long types.
2744 #define BIG64 18446744073709551615ull
2745 #define BIG32 4294967295ul
2746 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2747 #if !BIG_OK
2748 #error "your preprocessor is broken"
2749 #endif
2750 #if BIG_OK
2751 #else
2752 #error "your preprocessor is broken"
2753 #endif
2754 static long long int bignum = -9223372036854775807LL;
2755 static unsigned long long int ubignum = BIG64;
2756
2757 struct incomplete_array
2758 {
2759 int datasize;
2760 double data[];
2761 };
2762
2763 struct named_init {
2764 int number;
2765 const wchar_t *name;
2766 double average;
2767 };
2768
2769 typedef const char *ccp;
2770
2771 static inline int
2772 test_restrict (ccp restrict text)
2773 {
2774 // See if C++-style comments work.
2775 // Iterate through items via the restricted pointer.
2776 // Also check for declarations in for loops.
2777 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2778 continue;
2779 return 0;
2780 }
2781
2782 // Check varargs and va_copy.
2783 static bool
2784 test_varargs (const char *format, ...)
2785 {
2786 va_list args;
2787 va_start (args, format);
2788 va_list args_copy;
2789 va_copy (args_copy, args);
2790
2791 const char *str = "";
2792 int number = 0;
2793 float fnumber = 0;
2794
2795 while (*format)
2796 {
2797 switch (*format++)
2798 {
2799 case '\''s'\'': // string
2800 str = va_arg (args_copy, const char *);
2801 break;
2802 case '\''d'\'': // int
2803 number = va_arg (args_copy, int);
2804 break;
2805 case '\''f'\'': // float
2806 fnumber = va_arg (args_copy, double);
2807 break;
2808 default:
2809 break;
2810 }
2811 }
2812 va_end (args_copy);
2813 va_end (args);
2814
2815 return *str && number && fnumber;
2816 }
2817 '
2818
2819 # Test code for whether the C compiler supports C99 (body of main).
2820 ac_c_conftest_c99_main='
2821 // Check bool.
2822 _Bool success = false;
2823 success |= (argc != 0);
2824
2825 // Check restrict.
2826 if (test_restrict ("String literal") == 0)
2827 success = true;
2828 char *restrict newvar = "Another string";
2829
2830 // Check varargs.
2831 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2832 test_varargs_macros ();
2833
2834 // Check flexible array members.
2835 struct incomplete_array *ia =
2836 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2837 ia->datasize = 10;
2838 for (int i = 0; i < ia->datasize; ++i)
2839 ia->data[i] = i * 1.234;
2840
2841 // Check named initializers.
2842 struct named_init ni = {
2843 .number = 34,
2844 .name = L"Test wide string",
2845 .average = 543.34343,
2846 };
2847
2848 ni.number = 58;
2849
2850 int dynamic_array[ni.number];
2851 dynamic_array[0] = argv[0][0];
2852 dynamic_array[ni.number - 1] = 543;
2853
2854 // work around unused variable warnings
2855 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2856 || dynamic_array[ni.number - 1] != 543);
2857 '
2858
2859 # Test code for whether the C compiler supports C11 (global declarations)
2860 ac_c_conftest_c11_globals='
2861 // Does the compiler advertise C11 conformance?
2862 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2863 # error "Compiler does not advertise C11 conformance"
2864 #endif
2865
2866 // Check _Alignas.
2867 char _Alignas (double) aligned_as_double;
2868 char _Alignas (0) no_special_alignment;
2869 extern char aligned_as_int;
2870 char _Alignas (0) _Alignas (int) aligned_as_int;
2871
2872 // Check _Alignof.
2873 enum
2874 {
2875 int_alignment = _Alignof (int),
2876 int_array_alignment = _Alignof (int[100]),
2877 char_alignment = _Alignof (char)
2878 };
2879 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2880
2881 // Check _Noreturn.
2882 int _Noreturn does_not_return (void) { for (;;) continue; }
2883
2884 // Check _Static_assert.
2885 struct test_static_assert
2886 {
2887 int x;
2888 _Static_assert (sizeof (int) <= sizeof (long int),
2889 "_Static_assert does not work in struct");
2890 long int y;
2891 };
2892
2893 // Check UTF-8 literals.
2894 #define u8 syntax error!
2895 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2896
2897 // Check duplicate typedefs.
2898 typedef long *long_ptr;
2899 typedef long int *long_ptr;
2900 typedef long_ptr long_ptr;
2901
2902 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2903 struct anonymous
2904 {
2905 union {
2906 struct { int i; int j; };
2907 struct { int k; long int l; } w;
2908 };
2909 int m;
2910 } v1;
2911 '
2912
2913 # Test code for whether the C compiler supports C11 (body of main).
2914 ac_c_conftest_c11_main='
2915 _Static_assert ((offsetof (struct anonymous, i)
2916 == offsetof (struct anonymous, w.k)),
2917 "Anonymous union alignment botch");
2918 v1.i = 2;
2919 v1.w.k = 5;
2920 ok |= v1.i != 5;
2921 '
2922
2923 # Test code for whether the C compiler supports C11 (complete).
2924 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2925 ${ac_c_conftest_c99_globals}
2926 ${ac_c_conftest_c11_globals}
2927
2928 int
2929 main (int argc, char **argv)
2930 {
2931 int ok = 0;
2932 ${ac_c_conftest_c89_main}
2933 ${ac_c_conftest_c99_main}
2934 ${ac_c_conftest_c11_main}
2935 return ok;
2936 }
2937 "
2938
2939 # Test code for whether the C compiler supports C99 (complete).
2940 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2941 ${ac_c_conftest_c99_globals}
2942
2943 int
2944 main (int argc, char **argv)
2945 {
2946 int ok = 0;
2947 ${ac_c_conftest_c89_main}
2948 ${ac_c_conftest_c99_main}
2949 return ok;
2950 }
2951 "
2952
2953 # Test code for whether the C compiler supports C89 (complete).
2954 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2955
2956 int
2957 main (int argc, char **argv)
2958 {
2959 int ok = 0;
2960 ${ac_c_conftest_c89_main}
2961 return ok;
2962 }
2963 "
2964
2965 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2966 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2967 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2968 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2969 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2970 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2971 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2972 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2973 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2974 # Test code for whether the C++ compiler supports C++98 (global declarations)
2975 ac_cxx_conftest_cxx98_globals='
2976 // Does the compiler advertise C++98 conformance?
2977 #if !defined __cplusplus || __cplusplus < 199711L
2978 # error "Compiler does not advertise C++98 conformance"
2979 #endif
2980
2981 // These inclusions are to reject old compilers that
2982 // lack the unsuffixed header files.
2983 #include <cstdlib>
2984 #include <exception>
2985
2986 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2987 extern void assert (int);
2988 namespace std {
2989 extern int strcmp (const char *, const char *);
2990 }
2991
2992 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2993 using std::exception;
2994 using std::strcmp;
2995
2996 namespace {
2997
2998 void test_exception_syntax()
2999 {
3000 try {
3001 throw "test";
3002 } catch (const char *s) {
3003 // Extra parentheses suppress a warning when building autoconf itself,
3004 // due to lint rules shared with more typical C programs.
3005 assert (!(strcmp) (s, "test"));
3006 }
3007 }
3008
3009 template <typename T> struct test_template
3010 {
3011 T const val;
3012 explicit test_template(T t) : val(t) {}
3013 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3014 };
3015
3016 } // anonymous namespace
3017 '
3018
3019 # Test code for whether the C++ compiler supports C++98 (body of main)
3020 ac_cxx_conftest_cxx98_main='
3021 assert (argc);
3022 assert (! argv[0]);
3023 {
3024 test_exception_syntax ();
3025 test_template<double> tt (2.0);
3026 assert (tt.add (4) == 6.0);
3027 assert (true && !false);
3028 }
3029 '
3030
3031 # Test code for whether the C++ compiler supports C++11 (global declarations)
3032 ac_cxx_conftest_cxx11_globals='
3033 // Does the compiler advertise C++ 2011 conformance?
3034 #if !defined __cplusplus || __cplusplus < 201103L
3035 # error "Compiler does not advertise C++11 conformance"
3036 #endif
3037
3038 namespace cxx11test
3039 {
3040 constexpr int get_val() { return 20; }
3041
3042 struct testinit
3043 {
3044 int i;
3045 double d;
3046 };
3047
3048 class delegate
3049 {
3050 public:
3051 delegate(int n) : n(n) {}
3052 delegate(): delegate(2354) {}
3053
3054 virtual int getval() { return this->n; };
3055 protected:
3056 int n;
3057 };
3058
3059 class overridden : public delegate
3060 {
3061 public:
3062 overridden(int n): delegate(n) {}
3063 virtual int getval() override final { return this->n * 2; }
3064 };
3065
3066 class nocopy
3067 {
3068 public:
3069 nocopy(int i): i(i) {}
3070 nocopy() = default;
3071 nocopy(const nocopy&) = delete;
3072 nocopy & operator=(const nocopy&) = delete;
3073 private:
3074 int i;
3075 };
3076
3077 // for testing lambda expressions
3078 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3079 {
3080 return f(v);
3081 }
3082
3083 // for testing variadic templates and trailing return types
3084 template <typename V> auto sum(V first) -> V
3085 {
3086 return first;
3087 }
3088 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3089 {
3090 return first + sum(rest...);
3091 }
3092 }
3093 '
3094
3095 # Test code for whether the C++ compiler supports C++11 (body of main)
3096 ac_cxx_conftest_cxx11_main='
3097 {
3098 // Test auto and decltype
3099 auto a1 = 6538;
3100 auto a2 = 48573953.4;
3101 auto a3 = "String literal";
3102
3103 int total = 0;
3104 for (auto i = a3; *i; ++i) { total += *i; }
3105
3106 decltype(a2) a4 = 34895.034;
3107 }
3108 {
3109 // Test constexpr
3110 short sa[cxx11test::get_val()] = { 0 };
3111 }
3112 {
3113 // Test initializer lists
3114 cxx11test::testinit il = { 4323, 435234.23544 };
3115 }
3116 {
3117 // Test range-based for
3118 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3119 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3120 for (auto &x : array) { x += 23; }
3121 }
3122 {
3123 // Test lambda expressions
3124 using cxx11test::eval;
3125 assert (eval ([](int x) { return x*2; }, 21) == 42);
3126 double d = 2.0;
3127 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3128 assert (d == 5.0);
3129 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3130 assert (d == 5.0);
3131 }
3132 {
3133 // Test use of variadic templates
3134 using cxx11test::sum;
3135 auto a = sum(1);
3136 auto b = sum(1, 2);
3137 auto c = sum(1.0, 2.0, 3.0);
3138 }
3139 {
3140 // Test constructor delegation
3141 cxx11test::delegate d1;
3142 cxx11test::delegate d2();
3143 cxx11test::delegate d3(45);
3144 }
3145 {
3146 // Test override and final
3147 cxx11test::overridden o1(55464);
3148 }
3149 {
3150 // Test nullptr
3151 char *c = nullptr;
3152 }
3153 {
3154 // Test template brackets
3155 test_template<::test_template<int>> v(test_template<int>(12));
3156 }
3157 {
3158 // Unicode literals
3159 char const *utf8 = u8"UTF-8 string \u2500";
3160 char16_t const *utf16 = u"UTF-8 string \u2500";
3161 char32_t const *utf32 = U"UTF-32 string \u2500";
3162 }
3163 '
3164
3165 # Test code for whether the C compiler supports C++11 (complete).
3166 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3167 ${ac_cxx_conftest_cxx11_globals}
3168
3169 int
3170 main (int argc, char **argv)
3171 {
3172 int ok = 0;
3173 ${ac_cxx_conftest_cxx98_main}
3174 ${ac_cxx_conftest_cxx11_main}
3175 return ok;
3176 }
3177 "
3178
3179 # Test code for whether the C compiler supports C++98 (complete).
3180 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3181 int
3182 main (int argc, char **argv)
3183 {
3184 int ok = 0;
3185 ${ac_cxx_conftest_cxx98_main}
3186 return ok;
3187 }
3188 "
3189
3190 gt_needs="$gt_needs "
3191
3192 # Auxiliary files required by this configure script.
3193 ac_aux_files="config.rpath compile ltmain.sh config.guess config.sub missing install-sh"
3194
3195 # Locations in which to look for auxiliary files.
3196 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3197
3198 # Search for a directory containing all of the required auxiliary files,
3199 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3200 # If we don't find one directory that contains all the files we need,
3201 # we report the set of missing files from the *first* directory in
3202 # $ac_aux_dir_candidates and give up.
3203 ac_missing_aux_files=""
3204 ac_first_candidate=:
3205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 as_found=false
3208 for as_dir in $ac_aux_dir_candidates
3209 do
3210 IFS=$as_save_IFS
3211 case $as_dir in #(((
3212 '') as_dir=./ ;;
3213 */) ;;
3214 *) as_dir=$as_dir/ ;;
3215 esac
3216 as_found=:
3217
3218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3219 ac_aux_dir_found=yes
3220 ac_install_sh=
3221 for ac_aux in $ac_aux_files
3222 do
3223 # As a special case, if "install-sh" is required, that requirement
3224 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3225 # and $ac_install_sh is set appropriately for whichever one is found.
3226 if test x"$ac_aux" = x"install-sh"
3227 then
3228 if test -f "${as_dir}install-sh"; then
3229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3230 ac_install_sh="${as_dir}install-sh -c"
3231 elif test -f "${as_dir}install.sh"; then
3232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3233 ac_install_sh="${as_dir}install.sh -c"
3234 elif test -f "${as_dir}shtool"; then
3235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3236 ac_install_sh="${as_dir}shtool install -c"
3237 else
3238 ac_aux_dir_found=no
3239 if $ac_first_candidate; then
3240 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3241 else
3242 break
3243 fi
3244 fi
3245 else
3246 if test -f "${as_dir}${ac_aux}"; then
3247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3248 else
3249 ac_aux_dir_found=no
3250 if $ac_first_candidate; then
3251 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3252 else
3253 break
3254 fi
3255 fi
3256 fi
3257 done
3258 if test "$ac_aux_dir_found" = yes; then
3259 ac_aux_dir="$as_dir"
3260 break
3261 fi
3262 ac_first_candidate=false
3263
3264 as_found=false
3265 done
3266 IFS=$as_save_IFS
3267 if $as_found
3268 then :
3269
3270 else $as_nop
3271 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3272 fi
3273
3274
3275 # These three variables are undocumented and unsupported,
3276 # and are intended to be withdrawn in a future Autoconf release.
3277 # They can cause serious problems if a builder's source tree is in a directory
3278 # whose full name contains unusual characters.
3279 if test -f "${ac_aux_dir}config.guess"; then
3280 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3281 fi
3282 if test -f "${ac_aux_dir}config.sub"; then
3283 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3284 fi
3285 if test -f "$ac_aux_dir/configure"; then
3286 ac_configure="$SHELL ${ac_aux_dir}configure"
3287 fi
3288
3289 # Check that the precious variables saved in the cache have kept the same
3290 # value.
3291 ac_cache_corrupted=false
3292 for ac_var in $ac_precious_vars; do
3293 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3294 eval ac_new_set=\$ac_env_${ac_var}_set
3295 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3296 eval ac_new_val=\$ac_env_${ac_var}_value
3297 case $ac_old_set,$ac_new_set in
3298 set,)
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3300 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3301 ac_cache_corrupted=: ;;
3302 ,set)
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3304 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3305 ac_cache_corrupted=: ;;
3306 ,);;
3307 *)
3308 if test "x$ac_old_val" != "x$ac_new_val"; then
3309 # differences in whitespace do not lead to failure.
3310 ac_old_val_w=`echo x $ac_old_val`
3311 ac_new_val_w=`echo x $ac_new_val`
3312 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3314 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3315 ac_cache_corrupted=:
3316 else
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3318 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3319 eval $ac_var=\$ac_old_val
3320 fi
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3322 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3324 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3325 fi;;
3326 esac
3327 # Pass precious variables to config.status.
3328 if test "$ac_new_set" = set; then
3329 case $ac_new_val in
3330 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3331 *) ac_arg=$ac_var=$ac_new_val ;;
3332 esac
3333 case " $ac_configure_args " in
3334 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3335 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3336 esac
3337 fi
3338 done
3339 if $ac_cache_corrupted; then
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3343 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3344 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3345 and start over" "$LINENO" 5
3346 fi
3347 ## -------------------- ##
3348 ## Main body of script. ##
3349 ## -------------------- ##
3350
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356
3357
3358
3359
3360
3361 am__api_version='1.16'
3362
3363
3364
3365 # Find a good install program. We prefer a C program (faster),
3366 # so one script is as good as another. But avoid the broken or
3367 # incompatible versions:
3368 # SysV /etc/install, /usr/sbin/install
3369 # SunOS /usr/etc/install
3370 # IRIX /sbin/install
3371 # AIX /bin/install
3372 # AmigaOS /C/install, which installs bootblocks on floppy discs
3373 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3374 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3375 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3376 # OS/2's system install, which has a completely different semantic
3377 # ./install, which can be erroneously created by make from ./install.sh.
3378 # Reject install programs that cannot install multiple files.
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3380 printf %s "checking for a BSD-compatible install... " >&6; }
3381 if test -z "$INSTALL"; then
3382 if test ${ac_cv_path_install+y}
3383 then :
3384 printf %s "(cached) " >&6
3385 else $as_nop
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389 IFS=$as_save_IFS
3390 case $as_dir in #(((
3391 '') as_dir=./ ;;
3392 */) ;;
3393 *) as_dir=$as_dir/ ;;
3394 esac
3395 # Account for fact that we put trailing slashes in our PATH walk.
3396 case $as_dir in #((
3397 ./ | /[cC]/* | \
3398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3399 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3400 /usr/ucb/* ) ;;
3401 *)
3402 # OSF1 and SCO ODT 3.0 have their own names for install.
3403 # Don't use installbsd from OSF since it installs stuff as root
3404 # by default.
3405 for ac_prog in ginstall scoinst install; do
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3408 if test $ac_prog = install &&
3409 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3410 # AIX install. It has an incompatible calling convention.
3411 :
3412 elif test $ac_prog = install &&
3413 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3414 # program-specific install script used by HP pwplus--don't use.
3415 :
3416 else
3417 rm -rf conftest.one conftest.two conftest.dir
3418 echo one > conftest.one
3419 echo two > conftest.two
3420 mkdir conftest.dir
3421 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3422 test -s conftest.one && test -s conftest.two &&
3423 test -s conftest.dir/conftest.one &&
3424 test -s conftest.dir/conftest.two
3425 then
3426 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3427 break 3
3428 fi
3429 fi
3430 fi
3431 done
3432 done
3433 ;;
3434 esac
3435
3436 done
3437 IFS=$as_save_IFS
3438
3439 rm -rf conftest.one conftest.two conftest.dir
3440
3441 fi
3442 if test ${ac_cv_path_install+y}; then
3443 INSTALL=$ac_cv_path_install
3444 else
3445 # As a last resort, use the slow shell script. Don't cache a
3446 # value for INSTALL within a source directory, because that will
3447 # break other packages using the cache if that directory is
3448 # removed, or if the value is a relative name.
3449 INSTALL=$ac_install_sh
3450 fi
3451 fi
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3453 printf "%s\n" "$INSTALL" >&6; }
3454
3455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3456 # It thinks the first close brace ends the variable substitution.
3457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3458
3459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3460
3461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3462
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3464 printf %s "checking whether build environment is sane... " >&6; }
3465 # Reject unsafe characters in $srcdir or the absolute working directory
3466 # name. Accept space and tab only in the latter.
3467 am_lf='
3468 '
3469 case `pwd` in
3470 *[\\\"\#\$\&\'\`$am_lf]*)
3471 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3472 esac
3473 case $srcdir in
3474 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3475 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3476 esac
3477
3478 # Do 'set' in a subshell so we don't clobber the current shell's
3479 # arguments. Must try -L first in case configure is actually a
3480 # symlink; some systems play weird games with the mod time of symlinks
3481 # (eg FreeBSD returns the mod time of the symlink's containing
3482 # directory).
3483 if (
3484 am_has_slept=no
3485 for am_try in 1 2; do
3486 echo "timestamp, slept: $am_has_slept" > conftest.file
3487 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3488 if test "$*" = "X"; then
3489 # -L didn't work.
3490 set X `ls -t "$srcdir/configure" conftest.file`
3491 fi
3492 if test "$*" != "X $srcdir/configure conftest.file" \
3493 && test "$*" != "X conftest.file $srcdir/configure"; then
3494
3495 # If neither matched, then we have a broken ls. This can happen
3496 # if, for instance, CONFIG_SHELL is bash and it inherits a
3497 # broken ls alias from the environment. This has actually
3498 # happened. Such a system could not be considered "sane".
3499 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3500 alias in your environment" "$LINENO" 5
3501 fi
3502 if test "$2" = conftest.file || test $am_try -eq 2; then
3503 break
3504 fi
3505 # Just in case.
3506 sleep 1
3507 am_has_slept=yes
3508 done
3509 test "$2" = conftest.file
3510 )
3511 then
3512 # Ok.
3513 :
3514 else
3515 as_fn_error $? "newly created file is older than distributed files!
3516 Check your system clock" "$LINENO" 5
3517 fi
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519 printf "%s\n" "yes" >&6; }
3520 # If we didn't sleep, we still need to ensure time stamps of config.status and
3521 # generated files are strictly newer.
3522 am_sleep_pid=
3523 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3524 ( sleep 1 ) &
3525 am_sleep_pid=$!
3526 fi
3527
3528 rm -f conftest.file
3529
3530 test "$program_prefix" != NONE &&
3531 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3532 # Use a double $ so make ignores it.
3533 test "$program_suffix" != NONE &&
3534 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3535 # Double any \ or $.
3536 # By default was `s,x,x', remove it if useless.
3537 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3538 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3539
3540
3541 # Expand $ac_aux_dir to an absolute path.
3542 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3543
3544
3545 if test x"${MISSING+set}" != xset; then
3546 MISSING="\${SHELL} '$am_aux_dir/missing'"
3547 fi
3548 # Use eval to expand $SHELL
3549 if eval "$MISSING --is-lightweight"; then
3550 am_missing_run="$MISSING "
3551 else
3552 am_missing_run=
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3554 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3555 fi
3556
3557 if test x"${install_sh+set}" != xset; then
3558 case $am_aux_dir in
3559 *\ * | *\ *)
3560 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3561 *)
3562 install_sh="\${SHELL} $am_aux_dir/install-sh"
3563 esac
3564 fi
3565
3566 # Installed binaries are usually stripped using 'strip' when the user
3567 # run "make install-strip". However 'strip' might not be the right
3568 # tool to use in cross-compilation environments, therefore Automake
3569 # will honor the 'STRIP' environment variable to overrule this program.
3570 if test "$cross_compiling" != no; then
3571 if test -n "$ac_tool_prefix"; then
3572 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3573 set dummy ${ac_tool_prefix}strip; ac_word=$2
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 printf %s "checking for $ac_word... " >&6; }
3576 if test ${ac_cv_prog_STRIP+y}
3577 then :
3578 printf %s "(cached) " >&6
3579 else $as_nop
3580 if test -n "$STRIP"; then
3581 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3585 do
3586 IFS=$as_save_IFS
3587 case $as_dir in #(((
3588 '') as_dir=./ ;;
3589 */) ;;
3590 *) as_dir=$as_dir/ ;;
3591 esac
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598 done
3599 done
3600 IFS=$as_save_IFS
3601
3602 fi
3603 fi
3604 STRIP=$ac_cv_prog_STRIP
3605 if test -n "$STRIP"; then
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3607 printf "%s\n" "$STRIP" >&6; }
3608 else
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 printf "%s\n" "no" >&6; }
3611 fi
3612
3613
3614 fi
3615 if test -z "$ac_cv_prog_STRIP"; then
3616 ac_ct_STRIP=$STRIP
3617 # Extract the first word of "strip", so it can be a program name with args.
3618 set dummy strip; ac_word=$2
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 printf %s "checking for $ac_word... " >&6; }
3621 if test ${ac_cv_prog_ac_ct_STRIP+y}
3622 then :
3623 printf %s "(cached) " >&6
3624 else $as_nop
3625 if test -n "$ac_ct_STRIP"; then
3626 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631 IFS=$as_save_IFS
3632 case $as_dir in #(((
3633 '') as_dir=./ ;;
3634 */) ;;
3635 *) as_dir=$as_dir/ ;;
3636 esac
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_ac_ct_STRIP="strip"
3640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3641 break 2
3642 fi
3643 done
3644 done
3645 IFS=$as_save_IFS
3646
3647 fi
3648 fi
3649 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3650 if test -n "$ac_ct_STRIP"; then
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3652 printf "%s\n" "$ac_ct_STRIP" >&6; }
3653 else
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 printf "%s\n" "no" >&6; }
3656 fi
3657
3658 if test "x$ac_ct_STRIP" = x; then
3659 STRIP=":"
3660 else
3661 case $cross_compiling:$ac_tool_warned in
3662 yes:)
3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3664 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned=yes ;;
3666 esac
3667 STRIP=$ac_ct_STRIP
3668 fi
3669 else
3670 STRIP="$ac_cv_prog_STRIP"
3671 fi
3672
3673 fi
3674 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3675
3676
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3678 printf %s "checking for a race-free mkdir -p... " >&6; }
3679 if test -z "$MKDIR_P"; then
3680 if test ${ac_cv_path_mkdir+y}
3681 then :
3682 printf %s "(cached) " >&6
3683 else $as_nop
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3686 do
3687 IFS=$as_save_IFS
3688 case $as_dir in #(((
3689 '') as_dir=./ ;;
3690 */) ;;
3691 *) as_dir=$as_dir/ ;;
3692 esac
3693 for ac_prog in mkdir gmkdir; do
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3696 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3697 'mkdir ('*'coreutils) '* | \
3698 'BusyBox '* | \
3699 'mkdir (fileutils) '4.1*)
3700 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3701 break 3;;
3702 esac
3703 done
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 fi
3709
3710 test -d ./--version && rmdir ./--version
3711 if test ${ac_cv_path_mkdir+y}; then
3712 MKDIR_P="$ac_cv_path_mkdir -p"
3713 else
3714 # As a last resort, use the slow shell script. Don't cache a
3715 # value for MKDIR_P within a source directory, because that will
3716 # break other packages using the cache if that directory is
3717 # removed, or if the value is a relative name.
3718 MKDIR_P="$ac_install_sh -d"
3719 fi
3720 fi
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3722 printf "%s\n" "$MKDIR_P" >&6; }
3723
3724 for ac_prog in gawk mawk nawk awk
3725 do
3726 # Extract the first word of "$ac_prog", so it can be a program name with args.
3727 set dummy $ac_prog; ac_word=$2
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 printf %s "checking for $ac_word... " >&6; }
3730 if test ${ac_cv_prog_AWK+y}
3731 then :
3732 printf %s "(cached) " >&6
3733 else $as_nop
3734 if test -n "$AWK"; then
3735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 case $as_dir in #(((
3742 '') as_dir=./ ;;
3743 */) ;;
3744 *) as_dir=$as_dir/ ;;
3745 esac
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_AWK="$ac_prog"
3749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 AWK=$ac_cv_prog_AWK
3759 if test -n "$AWK"; then
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3761 printf "%s\n" "$AWK" >&6; }
3762 else
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 printf "%s\n" "no" >&6; }
3765 fi
3766
3767
3768 test -n "$AWK" && break
3769 done
3770
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3772 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3773 set x ${MAKE-make}
3774 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3775 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3776 then :
3777 printf %s "(cached) " >&6
3778 else $as_nop
3779 cat >conftest.make <<\_ACEOF
3780 SHELL = /bin/sh
3781 all:
3782 @echo '@@@%%%=$(MAKE)=@@@%%%'
3783 _ACEOF
3784 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3785 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3786 *@@@%%%=?*=@@@%%%*)
3787 eval ac_cv_prog_make_${ac_make}_set=yes;;
3788 *)
3789 eval ac_cv_prog_make_${ac_make}_set=no;;
3790 esac
3791 rm -f conftest.make
3792 fi
3793 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3795 printf "%s\n" "yes" >&6; }
3796 SET_MAKE=
3797 else
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 printf "%s\n" "no" >&6; }
3800 SET_MAKE="MAKE=${MAKE-make}"
3801 fi
3802
3803 rm -rf .tst 2>/dev/null
3804 mkdir .tst 2>/dev/null
3805 if test -d .tst; then
3806 am__leading_dot=.
3807 else
3808 am__leading_dot=_
3809 fi
3810 rmdir .tst 2>/dev/null
3811
3812 # Check whether --enable-silent-rules was given.
3813 if test ${enable_silent_rules+y}
3814 then :
3815 enableval=$enable_silent_rules;
3816 fi
3817
3818 case $enable_silent_rules in # (((
3819 yes) AM_DEFAULT_VERBOSITY=0;;
3820 no) AM_DEFAULT_VERBOSITY=1;;
3821 *) AM_DEFAULT_VERBOSITY=1;;
3822 esac
3823 am_make=${MAKE-make}
3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3825 printf %s "checking whether $am_make supports nested variables... " >&6; }
3826 if test ${am_cv_make_support_nested_variables+y}
3827 then :
3828 printf %s "(cached) " >&6
3829 else $as_nop
3830 if printf "%s\n" 'TRUE=$(BAR$(V))
3831 BAR0=false
3832 BAR1=true
3833 V=1
3834 am__doit:
3835 @$(TRUE)
3836 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3837 am_cv_make_support_nested_variables=yes
3838 else
3839 am_cv_make_support_nested_variables=no
3840 fi
3841 fi
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3843 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3844 if test $am_cv_make_support_nested_variables = yes; then
3845 AM_V='$(V)'
3846 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3847 else
3848 AM_V=$AM_DEFAULT_VERBOSITY
3849 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3850 fi
3851 AM_BACKSLASH='\'
3852
3853 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3854 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3855 # is not polluted with repeated "-I."
3856 am__isrc=' -I$(srcdir)'
3857 # test to see if srcdir already configured
3858 if test -f $srcdir/config.status; then
3859 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3860 fi
3861 fi
3862
3863 # test whether we have cygpath
3864 if test -z "$CYGPATH_W"; then
3865 if (cygpath --version) >/dev/null 2>/dev/null; then
3866 CYGPATH_W='cygpath -w'
3867 else
3868 CYGPATH_W=echo
3869 fi
3870 fi
3871
3872
3873 # Define the identity of the package.
3874 PACKAGE='libfcrypto'
3875 VERSION='20240414'
3876
3877
3878 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3879
3880
3881 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3882
3883 # Some tools Automake needs.
3884
3885 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3886
3887
3888 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3889
3890
3891 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3892
3893
3894 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3895
3896
3897 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3898
3899 # For better backward compatibility. To be removed once Automake 1.9.x
3900 # dies out for good. For more background, see:
3901 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3902 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3903 mkdir_p='$(MKDIR_P)'
3904
3905 # We need awk for the "check" target (and possibly the TAP driver). The
3906 # system "awk" is bad on some platforms.
3907 # Always define AMTAR for backward compatibility. Yes, it's still used
3908 # in the wild :-( We should find a proper way to deprecate it ...
3909 AMTAR='$${TAR-tar}'
3910
3911
3912 # We'll loop over all known methods to create a tar archive until one works.
3913 _am_tools='gnutar plaintar pax cpio none'
3914
3915 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3916 # There is notably a 21 bits limit for the UID and the GID. In fact,
3917 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3918 # and bug#13588).
3919 am_max_uid=2097151 # 2^21 - 1
3920 am_max_gid=$am_max_uid
3921 # The $UID and $GID variables are not portable, so we need to resort
3922 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3923 # below are definitely unexpected, so allow the users to see them
3924 # (that is, avoid stderr redirection).
3925 am_uid=`id -u || echo unknown`
3926 am_gid=`id -g || echo unknown`
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3928 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3929 if test $am_uid -le $am_max_uid; then
3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3931 printf "%s\n" "yes" >&6; }
3932 else
3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 printf "%s\n" "no" >&6; }
3935 _am_tools=none
3936 fi
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3938 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3939 if test $am_gid -le $am_max_gid; then
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 printf "%s\n" "yes" >&6; }
3942 else
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 printf "%s\n" "no" >&6; }
3945 _am_tools=none
3946 fi
3947
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3949 printf %s "checking how to create a ustar tar archive... " >&6; }
3950
3951 # Go ahead even if we have the value already cached. We do so because we
3952 # need to set the values for the 'am__tar' and 'am__untar' variables.
3953 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3954
3955 for _am_tool in $_am_tools; do
3956 case $_am_tool in
3957 gnutar)
3958 for _am_tar in tar gnutar gtar; do
3959 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3960 ($_am_tar --version) >&5 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && break
3964 done
3965 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3966 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3967 am__untar="$_am_tar -xf -"
3968 ;;
3969 plaintar)
3970 # Must skip GNU tar: if it does not support --format= it doesn't create
3971 # ustar tarball either.
3972 (tar --version) >/dev/null 2>&1 && continue
3973 am__tar='tar chf - "$$tardir"'
3974 am__tar_='tar chf - "$tardir"'
3975 am__untar='tar xf -'
3976 ;;
3977 pax)
3978 am__tar='pax -L -x ustar -w "$$tardir"'
3979 am__tar_='pax -L -x ustar -w "$tardir"'
3980 am__untar='pax -r'
3981 ;;
3982 cpio)
3983 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3984 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3985 am__untar='cpio -i -H ustar -d'
3986 ;;
3987 none)
3988 am__tar=false
3989 am__tar_=false
3990 am__untar=false
3991 ;;
3992 esac
3993
3994 # If the value was cached, stop now. We just wanted to have am__tar
3995 # and am__untar set.
3996 test -n "${am_cv_prog_tar_ustar}" && break
3997
3998 # tar/untar a dummy directory, and stop if the command works.
3999 rm -rf conftest.dir
4000 mkdir conftest.dir
4001 echo GrepMe > conftest.dir/file
4002 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4003 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }
4007 rm -rf conftest.dir
4008 if test -s conftest.tar; then
4009 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4010 ($am__untar <conftest.tar) >&5 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4014 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4015 (cat conftest.dir/file) >&5 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4019 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4020 fi
4021 done
4022 rm -rf conftest.dir
4023
4024 if test ${am_cv_prog_tar_ustar+y}
4025 then :
4026 printf %s "(cached) " >&6
4027 else $as_nop
4028 am_cv_prog_tar_ustar=$_am_tool
4029 fi
4030
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4032 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4033
4034
4035
4036
4037
4038 # Variables for tags utilities; see am/tags.am
4039 if test -z "$CTAGS"; then
4040 CTAGS=ctags
4041 fi
4042
4043 if test -z "$ETAGS"; then
4044 ETAGS=etags
4045 fi
4046
4047 if test -z "$CSCOPE"; then
4048 CSCOPE=cscope
4049 fi
4050
4051
4052
4053 # POSIX will say in a future version that running "rm -f" with no argument
4054 # is OK; and we want to be able to make that assumption in our Makefile
4055 # recipes. So use an aggressive probe to check that the usage we want is
4056 # actually supported "in the wild" to an acceptable degree.
4057 # See automake bug#10828.
4058 # To make any issue more visible, cause the running configure to be aborted
4059 # by default if the 'rm' program in use doesn't match our expectations; the
4060 # user can still override this though.
4061 if rm -f && rm -fr && rm -rf; then : OK; else
4062 cat >&2 <<'END'
4063 Oops!
4064
4065 Your 'rm' program seems unable to run without file operands specified
4066 on the command line, even when the '-f' option is present. This is contrary
4067 to the behaviour of most rm programs out there, and not conforming with
4068 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4069
4070 Please tell [email protected] about your system, including the value
4071 of your $PATH and any error possibly output before this message. This
4072 can help us improve future automake versions.
4073
4074 END
4075 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4076 echo 'Configuration will proceed anyway, since you have set the' >&2
4077 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4078 echo >&2
4079 else
4080 cat >&2 <<'END'
4081 Aborting the configuration process, to ensure you take notice of the issue.
4082
4083 You can download and install GNU coreutils to get an 'rm' implementation
4084 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4085
4086 If you want to complete the configuration process using your problematic
4087 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4088 to "yes", and re-run configure.
4089
4090 END
4091 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4092 fi
4093 fi
4094
4095
4096
4097
4098
4099
4100
4101 # Make sure we can run config.sub.
4102 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4103 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4104
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4106 printf %s "checking build system type... " >&6; }
4107 if test ${ac_cv_build+y}
4108 then :
4109 printf %s "(cached) " >&6
4110 else $as_nop
4111 ac_build_alias=$build_alias
4112 test "x$ac_build_alias" = x &&
4113 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4114 test "x$ac_build_alias" = x &&
4115 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4116 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4117 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4118
4119 fi
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4121 printf "%s\n" "$ac_cv_build" >&6; }
4122 case $ac_cv_build in
4123 *-*-*) ;;
4124 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4125 esac
4126 build=$ac_cv_build
4127 ac_save_IFS=$IFS; IFS='-'
4128 set x $ac_cv_build
4129 shift
4130 build_cpu=$1
4131 build_vendor=$2
4132 shift; shift
4133 # Remember, the first character of IFS is used to create $*,
4134 # except with old shells:
4135 build_os=$*
4136 IFS=$ac_save_IFS
4137 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4138
4139
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4141 printf %s "checking host system type... " >&6; }
4142 if test ${ac_cv_host+y}
4143 then :
4144 printf %s "(cached) " >&6
4145 else $as_nop
4146 if test "x$host_alias" = x; then
4147 ac_cv_host=$ac_cv_build
4148 else
4149 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4150 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4151 fi
4152
4153 fi
4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4155 printf "%s\n" "$ac_cv_host" >&6; }
4156 case $ac_cv_host in
4157 *-*-*) ;;
4158 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4159 esac
4160 host=$ac_cv_host
4161 ac_save_IFS=$IFS; IFS='-'
4162 set x $ac_cv_host
4163 shift
4164 host_cpu=$1
4165 host_vendor=$2
4166 shift; shift
4167 # Remember, the first character of IFS is used to create $*,
4168 # except with old shells:
4169 host_os=$*
4170 IFS=$ac_save_IFS
4171 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4172
4173
4174
4175 case `pwd` in
4176 *\ * | *\ *)
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4178 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4179 esac
4180
4181
4182
4183 macro_version='2.4.7'
4184 macro_revision='2.4.7'
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199 ltmain=$ac_aux_dir/ltmain.sh
4200
4201 # Backslashify metacharacters that are still active within
4202 # double-quoted strings.
4203 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4204
4205 # Same as above, but do not quote variable references.
4206 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4207
4208 # Sed substitution to delay expansion of an escaped shell variable in a
4209 # double_quote_subst'ed string.
4210 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4211
4212 # Sed substitution to delay expansion of an escaped single quote.
4213 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4214
4215 # Sed substitution to avoid accidental globbing in evaled expressions
4216 no_glob_subst='s/\*/\\\*/g'
4217
4218 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4219 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4220 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4221
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4223 printf %s "checking how to print strings... " >&6; }
4224 # Test print first, because it will be a builtin if present.
4225 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4226 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4227 ECHO='print -r --'
4228 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4229 ECHO='printf %s\n'
4230 else
4231 # Use this function as a fallback that always works.
4232 func_fallback_echo ()
4233 {
4234 eval 'cat <<_LTECHO_EOF
4235 $1
4236 _LTECHO_EOF'
4237 }
4238 ECHO='func_fallback_echo'
4239 fi
4240
4241 # func_echo_all arg...
4242 # Invoke $ECHO with all args, space-separated.
4243 func_echo_all ()
4244 {
4245 $ECHO ""
4246 }
4247
4248 case $ECHO in
4249 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4250 printf "%s\n" "printf" >&6; } ;;
4251 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4252 printf "%s\n" "print -r" >&6; } ;;
4253 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4254 printf "%s\n" "cat" >&6; } ;;
4255 esac
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279 DEPDIR="${am__leading_dot}deps"
4280
4281 ac_config_commands="$ac_config_commands depfiles"
4282
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4284 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4285 cat > confinc.mk << 'END'
4286 am__doit:
4287 @echo this is the am__doit target >confinc.out
4288 .PHONY: am__doit
4289 END
4290 am__include="#"
4291 am__quote=
4292 # BSD make does it like this.
4293 echo '.include "confinc.mk" # ignored' > confmf.BSD
4294 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4295 echo 'include confinc.mk # ignored' > confmf.GNU
4296 _am_result=no
4297 for s in GNU BSD; do
4298 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4299 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }
4303 case $?:`cat confinc.out 2>/dev/null` in #(
4304 '0:this is the am__doit target') :
4305 case $s in #(
4306 BSD) :
4307 am__include='.include' am__quote='"' ;; #(
4308 *) :
4309 am__include='include' am__quote='' ;;
4310 esac ;; #(
4311 *) :
4312 ;;
4313 esac
4314 if test "$am__include" != "#"; then
4315 _am_result="yes ($s style)"
4316 break
4317 fi
4318 done
4319 rm -f confinc.* confmf.*
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4321 printf "%s\n" "${_am_result}" >&6; }
4322
4323 # Check whether --enable-dependency-tracking was given.
4324 if test ${enable_dependency_tracking+y}
4325 then :
4326 enableval=$enable_dependency_tracking;
4327 fi
4328
4329 if test "x$enable_dependency_tracking" != xno; then
4330 am_depcomp="$ac_aux_dir/depcomp"
4331 AMDEPBACKSLASH='\'
4332 am__nodep='_no'
4333 fi
4334 if test "x$enable_dependency_tracking" != xno; then
4335 AMDEP_TRUE=
4336 AMDEP_FALSE='#'
4337 else
4338 AMDEP_TRUE='#'
4339 AMDEP_FALSE=
4340 fi
4341
4342
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 if test -n "$ac_tool_prefix"; then
4349 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4350 set dummy ${ac_tool_prefix}gcc; 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_CC+y}
4354 then :
4355 printf %s "(cached) " >&6
4356 else $as_nop
4357 if test -n "$CC"; then
4358 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc"
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 fi
4381 CC=$ac_cv_prog_CC
4382 if test -n "$CC"; then
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4384 printf "%s\n" "$CC" >&6; }
4385 else
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 printf "%s\n" "no" >&6; }
4388 fi
4389
4390
4391 fi
4392 if test -z "$ac_cv_prog_CC"; then
4393 ac_ct_CC=$CC
4394 # Extract the first word of "gcc", so it can be a program name with args.
4395 set dummy gcc; ac_word=$2
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 printf %s "checking for $ac_word... " >&6; }
4398 if test ${ac_cv_prog_ac_ct_CC+y}
4399 then :
4400 printf %s "(cached) " >&6
4401 else $as_nop
4402 if test -n "$ac_ct_CC"; then
4403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 case $as_dir in #(((
4410 '') as_dir=./ ;;
4411 */) ;;
4412 *) as_dir=$as_dir/ ;;
4413 esac
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4416 ac_cv_prog_ac_ct_CC="gcc"
4417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4418 break 2
4419 fi
4420 done
4421 done
4422 IFS=$as_save_IFS
4423
4424 fi
4425 fi
4426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4427 if test -n "$ac_ct_CC"; then
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4429 printf "%s\n" "$ac_ct_CC" >&6; }
4430 else
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 printf "%s\n" "no" >&6; }
4433 fi
4434
4435 if test "x$ac_ct_CC" = x; then
4436 CC=""
4437 else
4438 case $cross_compiling:$ac_tool_warned in
4439 yes:)
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4441 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4442 ac_tool_warned=yes ;;
4443 esac
4444 CC=$ac_ct_CC
4445 fi
4446 else
4447 CC="$ac_cv_prog_CC"
4448 fi
4449
4450 if test -z "$CC"; then
4451 if test -n "$ac_tool_prefix"; then
4452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4453 set dummy ${ac_tool_prefix}cc; ac_word=$2
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 printf %s "checking for $ac_word... " >&6; }
4456 if test ${ac_cv_prog_CC+y}
4457 then :
4458 printf %s "(cached) " >&6
4459 else $as_nop
4460 if test -n "$CC"; then
4461 ac_cv_prog_CC="$CC" # Let the user override the test.
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466 IFS=$as_save_IFS
4467 case $as_dir in #(((
4468 '') as_dir=./ ;;
4469 */) ;;
4470 *) as_dir=$as_dir/ ;;
4471 esac
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4474 ac_cv_prog_CC="${ac_tool_prefix}cc"
4475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4476 break 2
4477 fi
4478 done
4479 done
4480 IFS=$as_save_IFS
4481
4482 fi
4483 fi
4484 CC=$ac_cv_prog_CC
4485 if test -n "$CC"; then
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4487 printf "%s\n" "$CC" >&6; }
4488 else
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 printf "%s\n" "no" >&6; }
4491 fi
4492
4493
4494 fi
4495 fi
4496 if test -z "$CC"; then
4497 # Extract the first word of "cc", so it can be a program name with args.
4498 set dummy cc; ac_word=$2
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 printf %s "checking for $ac_word... " >&6; }
4501 if test ${ac_cv_prog_CC+y}
4502 then :
4503 printf %s "(cached) " >&6
4504 else $as_nop
4505 if test -n "$CC"; then
4506 ac_cv_prog_CC="$CC" # Let the user override the test.
4507 else
4508 ac_prog_rejected=no
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512 IFS=$as_save_IFS
4513 case $as_dir in #(((
4514 '') as_dir=./ ;;
4515 */) ;;
4516 *) as_dir=$as_dir/ ;;
4517 esac
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4520 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4521 ac_prog_rejected=yes
4522 continue
4523 fi
4524 ac_cv_prog_CC="cc"
4525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528 done
4529 done
4530 IFS=$as_save_IFS
4531
4532 if test $ac_prog_rejected = yes; then
4533 # We found a bogon in the path, so make sure we never use it.
4534 set dummy $ac_cv_prog_CC
4535 shift
4536 if test $# != 0; then
4537 # We chose a different compiler from the bogus one.
4538 # However, it has the same basename, so the bogon will be chosen
4539 # first if we set CC to just the basename; use the full file name.
4540 shift
4541 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4542 fi
4543 fi
4544 fi
4545 fi
4546 CC=$ac_cv_prog_CC
4547 if test -n "$CC"; then
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4549 printf "%s\n" "$CC" >&6; }
4550 else
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 printf "%s\n" "no" >&6; }
4553 fi
4554
4555
4556 fi
4557 if test -z "$CC"; then
4558 if test -n "$ac_tool_prefix"; then
4559 for ac_prog in cl.exe
4560 do
4561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 printf %s "checking for $ac_word... " >&6; }
4565 if test ${ac_cv_prog_CC+y}
4566 then :
4567 printf %s "(cached) " >&6
4568 else $as_nop
4569 if test -n "$CC"; then
4570 ac_cv_prog_CC="$CC" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 case $as_dir in #(((
4577 '') as_dir=./ ;;
4578 */) ;;
4579 *) as_dir=$as_dir/ ;;
4580 esac
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587 done
4588 done
4589 IFS=$as_save_IFS
4590
4591 fi
4592 fi
4593 CC=$ac_cv_prog_CC
4594 if test -n "$CC"; then
4595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4596 printf "%s\n" "$CC" >&6; }
4597 else
4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 printf "%s\n" "no" >&6; }
4600 fi
4601
4602
4603 test -n "$CC" && break
4604 done
4605 fi
4606 if test -z "$CC"; then
4607 ac_ct_CC=$CC
4608 for ac_prog in cl.exe
4609 do
4610 # Extract the first word of "$ac_prog", so it can be a program name with args.
4611 set dummy $ac_prog; ac_word=$2
4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613 printf %s "checking for $ac_word... " >&6; }
4614 if test ${ac_cv_prog_ac_ct_CC+y}
4615 then :
4616 printf %s "(cached) " >&6
4617 else $as_nop
4618 if test -n "$ac_ct_CC"; then
4619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624 IFS=$as_save_IFS
4625 case $as_dir in #(((
4626 '') as_dir=./ ;;
4627 */) ;;
4628 *) as_dir=$as_dir/ ;;
4629 esac
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4632 ac_cv_prog_ac_ct_CC="$ac_prog"
4633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636 done
4637 done
4638 IFS=$as_save_IFS
4639
4640 fi
4641 fi
4642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4643 if test -n "$ac_ct_CC"; then
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4645 printf "%s\n" "$ac_ct_CC" >&6; }
4646 else
4647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 printf "%s\n" "no" >&6; }
4649 fi
4650
4651
4652 test -n "$ac_ct_CC" && break
4653 done
4654
4655 if test "x$ac_ct_CC" = x; then
4656 CC=""
4657 else
4658 case $cross_compiling:$ac_tool_warned in
4659 yes:)
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4661 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662 ac_tool_warned=yes ;;
4663 esac
4664 CC=$ac_ct_CC
4665 fi
4666 fi
4667
4668 fi
4669 if test -z "$CC"; then
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}clang; ac_word=$2
4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 printf %s "checking for $ac_word... " >&6; }
4675 if test ${ac_cv_prog_CC+y}
4676 then :
4677 printf %s "(cached) " >&6
4678 else $as_nop
4679 if test -n "$CC"; then
4680 ac_cv_prog_CC="$CC" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685 IFS=$as_save_IFS
4686 case $as_dir in #(((
4687 '') as_dir=./ ;;
4688 */) ;;
4689 *) as_dir=$as_dir/ ;;
4690 esac
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_CC="${ac_tool_prefix}clang"
4694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 CC=$ac_cv_prog_CC
4704 if test -n "$CC"; then
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4706 printf "%s\n" "$CC" >&6; }
4707 else
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 printf "%s\n" "no" >&6; }
4710 fi
4711
4712
4713 fi
4714 if test -z "$ac_cv_prog_CC"; then
4715 ac_ct_CC=$CC
4716 # Extract the first word of "clang", so it can be a program name with args.
4717 set dummy clang; ac_word=$2
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 printf %s "checking for $ac_word... " >&6; }
4720 if test ${ac_cv_prog_ac_ct_CC+y}
4721 then :
4722 printf %s "(cached) " >&6
4723 else $as_nop
4724 if test -n "$ac_ct_CC"; then
4725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730 IFS=$as_save_IFS
4731 case $as_dir in #(((
4732 '') as_dir=./ ;;
4733 */) ;;
4734 *) as_dir=$as_dir/ ;;
4735 esac
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_ac_ct_CC="clang"
4739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746 fi
4747 fi
4748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4749 if test -n "$ac_ct_CC"; then
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4751 printf "%s\n" "$ac_ct_CC" >&6; }
4752 else
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 printf "%s\n" "no" >&6; }
4755 fi
4756
4757 if test "x$ac_ct_CC" = x; then
4758 CC=""
4759 else
4760 case $cross_compiling:$ac_tool_warned in
4761 yes:)
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4763 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764 ac_tool_warned=yes ;;
4765 esac
4766 CC=$ac_ct_CC
4767 fi
4768 else
4769 CC="$ac_cv_prog_CC"
4770 fi
4771
4772 fi
4773
4774
4775 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4776 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4777 as_fn_error $? "no acceptable C compiler found in \$PATH
4778 See \`config.log' for more details" "$LINENO" 5; }
4779
4780 # Provide some information about the compiler.
4781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4782 set X $ac_compile
4783 ac_compiler=$2
4784 for ac_option in --version -v -V -qversion -version; do
4785 { { ac_try="$ac_compiler $ac_option >&5"
4786 case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4789 esac
4790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4791 printf "%s\n" "$ac_try_echo"; } >&5
4792 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4793 ac_status=$?
4794 if test -s conftest.err; then
4795 sed '10a\
4796 ... rest of stderr output deleted ...
4797 10q' conftest.err >conftest.er1
4798 cat conftest.er1 >&5
4799 fi
4800 rm -f conftest.er1 conftest.err
4801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802 test $ac_status = 0; }
4803 done
4804
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807
4808 int
4809 main (void)
4810 {
4811
4812 ;
4813 return 0;
4814 }
4815 _ACEOF
4816 ac_clean_files_save=$ac_clean_files
4817 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4818 # Try to create an executable without -o first, disregard a.out.
4819 # It will help us diagnose broken compilers, and finding out an intuition
4820 # of exeext.
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4822 printf %s "checking whether the C compiler works... " >&6; }
4823 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4824
4825 # The possible output files:
4826 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4827
4828 ac_rmfiles=
4829 for ac_file in $ac_files
4830 do
4831 case $ac_file in
4832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4833 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4834 esac
4835 done
4836 rm -f $ac_rmfiles
4837
4838 if { { ac_try="$ac_link_default"
4839 case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842 esac
4843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4844 printf "%s\n" "$ac_try_echo"; } >&5
4845 (eval "$ac_link_default") 2>&5
4846 ac_status=$?
4847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4848 test $ac_status = 0; }
4849 then :
4850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4851 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4852 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4853 # so that the user can short-circuit this test for compilers unknown to
4854 # Autoconf.
4855 for ac_file in $ac_files ''
4856 do
4857 test -f "$ac_file" || continue
4858 case $ac_file in
4859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4860 ;;
4861 [ab].out )
4862 # We found the default executable, but exeext='' is most
4863 # certainly right.
4864 break;;
4865 *.* )
4866 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4867 then :; else
4868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4869 fi
4870 # We set ac_cv_exeext here because the later test for it is not
4871 # safe: cross compilers may not add the suffix if given an `-o'
4872 # argument, so we may need to know it at that point already.
4873 # Even if this section looks crufty: it has the advantage of
4874 # actually working.
4875 break;;
4876 * )
4877 break;;
4878 esac
4879 done
4880 test "$ac_cv_exeext" = no && ac_cv_exeext=
4881
4882 else $as_nop
4883 ac_file=''
4884 fi
4885 if test -z "$ac_file"
4886 then :
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 printf "%s\n" "no" >&6; }
4889 printf "%s\n" "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4893 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4894 as_fn_error 77 "C compiler cannot create executables
4895 See \`config.log' for more details" "$LINENO" 5; }
4896 else $as_nop
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4898 printf "%s\n" "yes" >&6; }
4899 fi
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4901 printf %s "checking for C compiler default output file name... " >&6; }
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4903 printf "%s\n" "$ac_file" >&6; }
4904 ac_exeext=$ac_cv_exeext
4905
4906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4907 ac_clean_files=$ac_clean_files_save
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4909 printf %s "checking for suffix of executables... " >&6; }
4910 if { { ac_try="$ac_link"
4911 case "(($ac_try" in
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4914 esac
4915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4916 printf "%s\n" "$ac_try_echo"; } >&5
4917 (eval "$ac_link") 2>&5
4918 ac_status=$?
4919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4920 test $ac_status = 0; }
4921 then :
4922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4924 # work properly (i.e., refer to `conftest.exe'), while it won't with
4925 # `rm'.
4926 for ac_file in conftest.exe conftest conftest.*; do
4927 test -f "$ac_file" || continue
4928 case $ac_file in
4929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4931 break;;
4932 * ) break;;
4933 esac
4934 done
4935 else $as_nop
4936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4937 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4938 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4939 See \`config.log' for more details" "$LINENO" 5; }
4940 fi
4941 rm -f conftest conftest$ac_cv_exeext
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4943 printf "%s\n" "$ac_cv_exeext" >&6; }
4944
4945 rm -f conftest.$ac_ext
4946 EXEEXT=$ac_cv_exeext
4947 ac_exeext=$EXEEXT
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #include <stdio.h>
4951 int
4952 main (void)
4953 {
4954 FILE *f = fopen ("conftest.out", "w");
4955 return ferror (f) || fclose (f) != 0;
4956
4957 ;
4958 return 0;
4959 }
4960 _ACEOF
4961 ac_clean_files="$ac_clean_files conftest.out"
4962 # Check that the compiler produces executables we can run. If not, either
4963 # the compiler is broken, or we cross compile.
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4965 printf %s "checking whether we are cross compiling... " >&6; }
4966 if test "$cross_compiling" != yes; then
4967 { { ac_try="$ac_link"
4968 case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4973 printf "%s\n" "$ac_try_echo"; } >&5
4974 (eval "$ac_link") 2>&5
4975 ac_status=$?
4976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4977 test $ac_status = 0; }
4978 if { ac_try='./conftest$ac_cv_exeext'
4979 { { case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984 printf "%s\n" "$ac_try_echo"; } >&5
4985 (eval "$ac_try") 2>&5
4986 ac_status=$?
4987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }; }; then
4989 cross_compiling=no
4990 else
4991 if test "$cross_compiling" = maybe; then
4992 cross_compiling=yes
4993 else
4994 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4995 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4996 as_fn_error 77 "cannot run C compiled programs.
4997 If you meant to cross compile, use \`--host'.
4998 See \`config.log' for more details" "$LINENO" 5; }
4999 fi
5000 fi
5001 fi
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5003 printf "%s\n" "$cross_compiling" >&6; }
5004
5005 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5006 ac_clean_files=$ac_clean_files_save
5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5008 printf %s "checking for suffix of object files... " >&6; }
5009 if test ${ac_cv_objext+y}
5010 then :
5011 printf %s "(cached) " >&6
5012 else $as_nop
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015
5016 int
5017 main (void)
5018 {
5019
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 rm -f conftest.o conftest.obj
5025 if { { ac_try="$ac_compile"
5026 case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029 esac
5030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5031 printf "%s\n" "$ac_try_echo"; } >&5
5032 (eval "$ac_compile") 2>&5
5033 ac_status=$?
5034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5035 test $ac_status = 0; }
5036 then :
5037 for ac_file in conftest.o conftest.obj conftest.*; do
5038 test -f "$ac_file" || continue;
5039 case $ac_file in
5040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5041 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5042 break;;
5043 esac
5044 done
5045 else $as_nop
5046 printf "%s\n" "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5050 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5051 as_fn_error $? "cannot compute suffix of object files: cannot compile
5052 See \`config.log' for more details" "$LINENO" 5; }
5053 fi
5054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5055 fi
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5057 printf "%s\n" "$ac_cv_objext" >&6; }
5058 OBJEXT=$ac_cv_objext
5059 ac_objext=$OBJEXT
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5061 printf %s "checking whether the compiler supports GNU C... " >&6; }
5062 if test ${ac_cv_c_compiler_gnu+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else $as_nop
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068
5069 int
5070 main (void)
5071 {
5072 #ifndef __GNUC__
5073 choke me
5074 #endif
5075
5076 ;
5077 return 0;
5078 }
5079 _ACEOF
5080 if ac_fn_c_try_compile "$LINENO"
5081 then :
5082 ac_compiler_gnu=yes
5083 else $as_nop
5084 ac_compiler_gnu=no
5085 fi
5086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5088
5089 fi
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5091 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094 if test $ac_compiler_gnu = yes; then
5095 GCC=yes
5096 else
5097 GCC=
5098 fi
5099 ac_test_CFLAGS=${CFLAGS+y}
5100 ac_save_CFLAGS=$CFLAGS
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5102 printf %s "checking whether $CC accepts -g... " >&6; }
5103 if test ${ac_cv_prog_cc_g+y}
5104 then :
5105 printf %s "(cached) " >&6
5106 else $as_nop
5107 ac_save_c_werror_flag=$ac_c_werror_flag
5108 ac_c_werror_flag=yes
5109 ac_cv_prog_cc_g=no
5110 CFLAGS="-g"
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113
5114 int
5115 main (void)
5116 {
5117
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 if ac_fn_c_try_compile "$LINENO"
5123 then :
5124 ac_cv_prog_cc_g=yes
5125 else $as_nop
5126 CFLAGS=""
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129
5130 int
5131 main (void)
5132 {
5133
5134 ;
5135 return 0;
5136 }
5137 _ACEOF
5138 if ac_fn_c_try_compile "$LINENO"
5139 then :
5140
5141 else $as_nop
5142 ac_c_werror_flag=$ac_save_c_werror_flag
5143 CFLAGS="-g"
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146
5147 int
5148 main (void)
5149 {
5150
5151 ;
5152 return 0;
5153 }
5154 _ACEOF
5155 if ac_fn_c_try_compile "$LINENO"
5156 then :
5157 ac_cv_prog_cc_g=yes
5158 fi
5159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5160 fi
5161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5162 fi
5163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5164 ac_c_werror_flag=$ac_save_c_werror_flag
5165 fi
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5167 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5168 if test $ac_test_CFLAGS; then
5169 CFLAGS=$ac_save_CFLAGS
5170 elif test $ac_cv_prog_cc_g = yes; then
5171 if test "$GCC" = yes; then
5172 CFLAGS="-g -O2"
5173 else
5174 CFLAGS="-g"
5175 fi
5176 else
5177 if test "$GCC" = yes; then
5178 CFLAGS="-O2"
5179 else
5180 CFLAGS=
5181 fi
5182 fi
5183 ac_prog_cc_stdc=no
5184 if test x$ac_prog_cc_stdc = xno
5185 then :
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5187 printf %s "checking for $CC option to enable C11 features... " >&6; }
5188 if test ${ac_cv_prog_cc_c11+y}
5189 then :
5190 printf %s "(cached) " >&6
5191 else $as_nop
5192 ac_cv_prog_cc_c11=no
5193 ac_save_CC=$CC
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 $ac_c_conftest_c11_program
5197 _ACEOF
5198 for ac_arg in '' -std=gnu11
5199 do
5200 CC="$ac_save_CC $ac_arg"
5201 if ac_fn_c_try_compile "$LINENO"
5202 then :
5203 ac_cv_prog_cc_c11=$ac_arg
5204 fi
5205 rm -f core conftest.err conftest.$ac_objext conftest.beam
5206 test "x$ac_cv_prog_cc_c11" != "xno" && break
5207 done
5208 rm -f conftest.$ac_ext
5209 CC=$ac_save_CC
5210 fi
5211
5212 if test "x$ac_cv_prog_cc_c11" = xno
5213 then :
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5215 printf "%s\n" "unsupported" >&6; }
5216 else $as_nop
5217 if test "x$ac_cv_prog_cc_c11" = x
5218 then :
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5220 printf "%s\n" "none needed" >&6; }
5221 else $as_nop
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5223 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5224 CC="$CC $ac_cv_prog_cc_c11"
5225 fi
5226 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5227 ac_prog_cc_stdc=c11
5228 fi
5229 fi
5230 if test x$ac_prog_cc_stdc = xno
5231 then :
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5233 printf %s "checking for $CC option to enable C99 features... " >&6; }
5234 if test ${ac_cv_prog_cc_c99+y}
5235 then :
5236 printf %s "(cached) " >&6
5237 else $as_nop
5238 ac_cv_prog_cc_c99=no
5239 ac_save_CC=$CC
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5242 $ac_c_conftest_c99_program
5243 _ACEOF
5244 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5245 do
5246 CC="$ac_save_CC $ac_arg"
5247 if ac_fn_c_try_compile "$LINENO"
5248 then :
5249 ac_cv_prog_cc_c99=$ac_arg
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext conftest.beam
5252 test "x$ac_cv_prog_cc_c99" != "xno" && break
5253 done
5254 rm -f conftest.$ac_ext
5255 CC=$ac_save_CC
5256 fi
5257
5258 if test "x$ac_cv_prog_cc_c99" = xno
5259 then :
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5261 printf "%s\n" "unsupported" >&6; }
5262 else $as_nop
5263 if test "x$ac_cv_prog_cc_c99" = x
5264 then :
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5266 printf "%s\n" "none needed" >&6; }
5267 else $as_nop
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5269 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5270 CC="$CC $ac_cv_prog_cc_c99"
5271 fi
5272 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5273 ac_prog_cc_stdc=c99
5274 fi
5275 fi
5276 if test x$ac_prog_cc_stdc = xno
5277 then :
5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5279 printf %s "checking for $CC option to enable C89 features... " >&6; }
5280 if test ${ac_cv_prog_cc_c89+y}
5281 then :
5282 printf %s "(cached) " >&6
5283 else $as_nop
5284 ac_cv_prog_cc_c89=no
5285 ac_save_CC=$CC
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 $ac_c_conftest_c89_program
5289 _ACEOF
5290 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5291 do
5292 CC="$ac_save_CC $ac_arg"
5293 if ac_fn_c_try_compile "$LINENO"
5294 then :
5295 ac_cv_prog_cc_c89=$ac_arg
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext conftest.beam
5298 test "x$ac_cv_prog_cc_c89" != "xno" && break
5299 done
5300 rm -f conftest.$ac_ext
5301 CC=$ac_save_CC
5302 fi
5303
5304 if test "x$ac_cv_prog_cc_c89" = xno
5305 then :
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5307 printf "%s\n" "unsupported" >&6; }
5308 else $as_nop
5309 if test "x$ac_cv_prog_cc_c89" = x
5310 then :
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5312 printf "%s\n" "none needed" >&6; }
5313 else $as_nop
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5315 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5316 CC="$CC $ac_cv_prog_cc_c89"
5317 fi
5318 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5319 ac_prog_cc_stdc=c89
5320 fi
5321 fi
5322
5323 ac_ext=c
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328
5329
5330 ac_ext=c
5331 ac_cpp='$CPP $CPPFLAGS'
5332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5336 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5337 if test ${am_cv_prog_cc_c_o+y}
5338 then :
5339 printf %s "(cached) " >&6
5340 else $as_nop
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343
5344 int
5345 main (void)
5346 {
5347
5348 ;
5349 return 0;
5350 }
5351 _ACEOF
5352 # Make sure it works both with $CC and with simple cc.
5353 # Following AC_PROG_CC_C_O, we do the test twice because some
5354 # compilers refuse to overwrite an existing .o file with -o,
5355 # though they will create one.
5356 am_cv_prog_cc_c_o=yes
5357 for am_i in 1 2; do
5358 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5359 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } \
5363 && test -f conftest2.$ac_objext; then
5364 : OK
5365 else
5366 am_cv_prog_cc_c_o=no
5367 break
5368 fi
5369 done
5370 rm -f core conftest*
5371 unset am_i
5372 fi
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5374 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5375 if test "$am_cv_prog_cc_c_o" != yes; then
5376 # Losing compiler, so override with the script.
5377 # FIXME: It is wrong to rewrite CC.
5378 # But if we don't then we get into trouble of one sort or another.
5379 # A longer-term fix would be to have automake use am__CC in this case,
5380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5381 CC="$am_aux_dir/compile $CC"
5382 fi
5383 ac_ext=c
5384 ac_cpp='$CPP $CPPFLAGS'
5385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
5389
5390 depcc="$CC" am_compiler_list=
5391
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5393 printf %s "checking dependency style of $depcc... " >&6; }
5394 if test ${am_cv_CC_dependencies_compiler_type+y}
5395 then :
5396 printf %s "(cached) " >&6
5397 else $as_nop
5398 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5399 # We make a subdir and do the tests there. Otherwise we can end up
5400 # making bogus files that we don't know about and never remove. For
5401 # instance it was reported that on HP-UX the gcc test will end up
5402 # making a dummy file named 'D' -- because '-MD' means "put the output
5403 # in D".
5404 rm -rf conftest.dir
5405 mkdir conftest.dir
5406 # Copy depcomp to subdir because otherwise we won't find it if we're
5407 # using a relative directory.
5408 cp "$am_depcomp" conftest.dir
5409 cd conftest.dir
5410 # We will build objects and dependencies in a subdirectory because
5411 # it helps to detect inapplicable dependency modes. For instance
5412 # both Tru64's cc and ICC support -MD to output dependencies as a
5413 # side effect of compilation, but ICC will put the dependencies in
5414 # the current directory while Tru64 will put them in the object
5415 # directory.
5416 mkdir sub
5417
5418 am_cv_CC_dependencies_compiler_type=none
5419 if test "$am_compiler_list" = ""; then
5420 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5421 fi
5422 am__universal=false
5423 case " $depcc " in #(
5424 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5425 esac
5426
5427 for depmode in $am_compiler_list; do
5428 # Setup a source with many dependencies, because some compilers
5429 # like to wrap large dependency lists on column 80 (with \), and
5430 # we should not choose a depcomp mode which is confused by this.
5431 #
5432 # We need to recreate these files for each test, as the compiler may
5433 # overwrite some of them when testing with obscure command lines.
5434 # This happens at least with the AIX C compiler.
5435 : > sub/conftest.c
5436 for i in 1 2 3 4 5 6; do
5437 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5438 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5439 # Solaris 10 /bin/sh.
5440 echo '/* dummy */' > sub/conftst$i.h
5441 done
5442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5443
5444 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5445 # mode. It turns out that the SunPro C++ compiler does not properly
5446 # handle '-M -o', and we need to detect this. Also, some Intel
5447 # versions had trouble with output in subdirs.
5448 am__obj=sub/conftest.${OBJEXT-o}
5449 am__minus_obj="-o $am__obj"
5450 case $depmode in
5451 gcc)
5452 # This depmode causes a compiler race in universal mode.
5453 test "$am__universal" = false || continue
5454 ;;
5455 nosideeffect)
5456 # After this tag, mechanisms are not by side-effect, so they'll
5457 # only be used when explicitly requested.
5458 if test "x$enable_dependency_tracking" = xyes; then
5459 continue
5460 else
5461 break
5462 fi
5463 ;;
5464 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5465 # This compiler won't grok '-c -o', but also, the minuso test has
5466 # not run yet. These depmodes are late enough in the game, and
5467 # so weak that their functioning should not be impacted.
5468 am__obj=conftest.${OBJEXT-o}
5469 am__minus_obj=
5470 ;;
5471 none) break ;;
5472 esac
5473 if depmode=$depmode \
5474 source=sub/conftest.c object=$am__obj \
5475 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5476 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5477 >/dev/null 2>conftest.err &&
5478 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5479 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5480 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5481 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5482 # icc doesn't choke on unknown options, it will just issue warnings
5483 # or remarks (even with -Werror). So we grep stderr for any message
5484 # that says an option was ignored or not supported.
5485 # When given -MP, icc 7.0 and 7.1 complain thusly:
5486 # icc: Command line warning: ignoring option '-M'; no argument required
5487 # The diagnosis changed in icc 8.0:
5488 # icc: Command line remark: option '-MP' not supported
5489 if (grep 'ignoring option' conftest.err ||
5490 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5491 am_cv_CC_dependencies_compiler_type=$depmode
5492 break
5493 fi
5494 fi
5495 done
5496
5497 cd ..
5498 rm -rf conftest.dir
5499 else
5500 am_cv_CC_dependencies_compiler_type=none
5501 fi
5502
5503 fi
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5505 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5506 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5507
5508 if
5509 test "x$enable_dependency_tracking" != xno \
5510 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5511 am__fastdepCC_TRUE=
5512 am__fastdepCC_FALSE='#'
5513 else
5514 am__fastdepCC_TRUE='#'
5515 am__fastdepCC_FALSE=
5516 fi
5517
5518
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5520 printf %s "checking for a sed that does not truncate output... " >&6; }
5521 if test ${ac_cv_path_SED+y}
5522 then :
5523 printf %s "(cached) " >&6
5524 else $as_nop
5525 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5526 for ac_i in 1 2 3 4 5 6 7; do
5527 ac_script="$ac_script$as_nl$ac_script"
5528 done
5529 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5530 { ac_script=; unset ac_script;}
5531 if test -z "$SED"; then
5532 ac_path_SED_found=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537 IFS=$as_save_IFS
5538 case $as_dir in #(((
5539 '') as_dir=./ ;;
5540 */) ;;
5541 *) as_dir=$as_dir/ ;;
5542 esac
5543 for ac_prog in sed gsed
5544 do
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5547 as_fn_executable_p "$ac_path_SED" || continue
5548 # Check for GNU ac_path_SED and select it if it is found.
5549 # Check for GNU $ac_path_SED
5550 case `"$ac_path_SED" --version 2>&1` in
5551 *GNU*)
5552 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5553 *)
5554 ac_count=0
5555 printf %s 0123456789 >"conftest.in"
5556 while :
5557 do
5558 cat "conftest.in" "conftest.in" >"conftest.tmp"
5559 mv "conftest.tmp" "conftest.in"
5560 cp "conftest.in" "conftest.nl"
5561 printf "%s\n" '' >> "conftest.nl"
5562 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5564 as_fn_arith $ac_count + 1 && ac_count=$as_val
5565 if test $ac_count -gt ${ac_path_SED_max-0}; then
5566 # Best one so far, save it but keep looking for a better one
5567 ac_cv_path_SED="$ac_path_SED"
5568 ac_path_SED_max=$ac_count
5569 fi
5570 # 10*(2^10) chars as input seems more than enough
5571 test $ac_count -gt 10 && break
5572 done
5573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5574 esac
5575
5576 $ac_path_SED_found && break 3
5577 done
5578 done
5579 done
5580 IFS=$as_save_IFS
5581 if test -z "$ac_cv_path_SED"; then
5582 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5583 fi
5584 else
5585 ac_cv_path_SED=$SED
5586 fi
5587
5588 fi
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5590 printf "%s\n" "$ac_cv_path_SED" >&6; }
5591 SED="$ac_cv_path_SED"
5592 rm -f conftest.sed
5593
5594 test -z "$SED" && SED=sed
5595 Xsed="$SED -e 1s/^X//"
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5608 printf %s "checking for grep that handles long lines and -e... " >&6; }
5609 if test ${ac_cv_path_GREP+y}
5610 then :
5611 printf %s "(cached) " >&6
5612 else $as_nop
5613 if test -z "$GREP"; then
5614 ac_path_GREP_found=false
5615 # Loop through the user's path and test for each of PROGNAME-LIST
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5618 do
5619 IFS=$as_save_IFS
5620 case $as_dir in #(((
5621 '') as_dir=./ ;;
5622 */) ;;
5623 *) as_dir=$as_dir/ ;;
5624 esac
5625 for ac_prog in grep ggrep
5626 do
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5629 as_fn_executable_p "$ac_path_GREP" || continue
5630 # Check for GNU ac_path_GREP and select it if it is found.
5631 # Check for GNU $ac_path_GREP
5632 case `"$ac_path_GREP" --version 2>&1` in
5633 *GNU*)
5634 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5635 *)
5636 ac_count=0
5637 printf %s 0123456789 >"conftest.in"
5638 while :
5639 do
5640 cat "conftest.in" "conftest.in" >"conftest.tmp"
5641 mv "conftest.tmp" "conftest.in"
5642 cp "conftest.in" "conftest.nl"
5643 printf "%s\n" 'GREP' >> "conftest.nl"
5644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5646 as_fn_arith $ac_count + 1 && ac_count=$as_val
5647 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5648 # Best one so far, save it but keep looking for a better one
5649 ac_cv_path_GREP="$ac_path_GREP"
5650 ac_path_GREP_max=$ac_count
5651 fi
5652 # 10*(2^10) chars as input seems more than enough
5653 test $ac_count -gt 10 && break
5654 done
5655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5656 esac
5657
5658 $ac_path_GREP_found && break 3
5659 done
5660 done
5661 done
5662 IFS=$as_save_IFS
5663 if test -z "$ac_cv_path_GREP"; then
5664 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5665 fi
5666 else
5667 ac_cv_path_GREP=$GREP
5668 fi
5669
5670 fi
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5672 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5673 GREP="$ac_cv_path_GREP"
5674
5675
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5677 printf %s "checking for egrep... " >&6; }
5678 if test ${ac_cv_path_EGREP+y}
5679 then :
5680 printf %s "(cached) " >&6
5681 else $as_nop
5682 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5683 then ac_cv_path_EGREP="$GREP -E"
5684 else
5685 if test -z "$EGREP"; then
5686 ac_path_EGREP_found=false
5687 # Loop through the user's path and test for each of PROGNAME-LIST
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5690 do
5691 IFS=$as_save_IFS
5692 case $as_dir in #(((
5693 '') as_dir=./ ;;
5694 */) ;;
5695 *) as_dir=$as_dir/ ;;
5696 esac
5697 for ac_prog in egrep
5698 do
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5701 as_fn_executable_p "$ac_path_EGREP" || continue
5702 # Check for GNU ac_path_EGREP and select it if it is found.
5703 # Check for GNU $ac_path_EGREP
5704 case `"$ac_path_EGREP" --version 2>&1` in
5705 *GNU*)
5706 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5707 *)
5708 ac_count=0
5709 printf %s 0123456789 >"conftest.in"
5710 while :
5711 do
5712 cat "conftest.in" "conftest.in" >"conftest.tmp"
5713 mv "conftest.tmp" "conftest.in"
5714 cp "conftest.in" "conftest.nl"
5715 printf "%s\n" 'EGREP' >> "conftest.nl"
5716 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5718 as_fn_arith $ac_count + 1 && ac_count=$as_val
5719 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5720 # Best one so far, save it but keep looking for a better one
5721 ac_cv_path_EGREP="$ac_path_EGREP"
5722 ac_path_EGREP_max=$ac_count
5723 fi
5724 # 10*(2^10) chars as input seems more than enough
5725 test $ac_count -gt 10 && break
5726 done
5727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5728 esac
5729
5730 $ac_path_EGREP_found && break 3
5731 done
5732 done
5733 done
5734 IFS=$as_save_IFS
5735 if test -z "$ac_cv_path_EGREP"; then
5736 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5737 fi
5738 else
5739 ac_cv_path_EGREP=$EGREP
5740 fi
5741
5742 fi
5743 fi
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5745 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5746 EGREP="$ac_cv_path_EGREP"
5747
5748
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5750 printf %s "checking for fgrep... " >&6; }
5751 if test ${ac_cv_path_FGREP+y}
5752 then :
5753 printf %s "(cached) " >&6
5754 else $as_nop
5755 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5756 then ac_cv_path_FGREP="$GREP -F"
5757 else
5758 if test -z "$FGREP"; then
5759 ac_path_FGREP_found=false
5760 # Loop through the user's path and test for each of PROGNAME-LIST
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5763 do
5764 IFS=$as_save_IFS
5765 case $as_dir in #(((
5766 '') as_dir=./ ;;
5767 */) ;;
5768 *) as_dir=$as_dir/ ;;
5769 esac
5770 for ac_prog in fgrep
5771 do
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5774 as_fn_executable_p "$ac_path_FGREP" || continue
5775 # Check for GNU ac_path_FGREP and select it if it is found.
5776 # Check for GNU $ac_path_FGREP
5777 case `"$ac_path_FGREP" --version 2>&1` in
5778 *GNU*)
5779 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5780 *)
5781 ac_count=0
5782 printf %s 0123456789 >"conftest.in"
5783 while :
5784 do
5785 cat "conftest.in" "conftest.in" >"conftest.tmp"
5786 mv "conftest.tmp" "conftest.in"
5787 cp "conftest.in" "conftest.nl"
5788 printf "%s\n" 'FGREP' >> "conftest.nl"
5789 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5791 as_fn_arith $ac_count + 1 && ac_count=$as_val
5792 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5793 # Best one so far, save it but keep looking for a better one
5794 ac_cv_path_FGREP="$ac_path_FGREP"
5795 ac_path_FGREP_max=$ac_count
5796 fi
5797 # 10*(2^10) chars as input seems more than enough
5798 test $ac_count -gt 10 && break
5799 done
5800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5801 esac
5802
5803 $ac_path_FGREP_found && break 3
5804 done
5805 done
5806 done
5807 IFS=$as_save_IFS
5808 if test -z "$ac_cv_path_FGREP"; then
5809 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5810 fi
5811 else
5812 ac_cv_path_FGREP=$FGREP
5813 fi
5814
5815 fi
5816 fi
5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5818 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5819 FGREP="$ac_cv_path_FGREP"
5820
5821
5822 test -z "$GREP" && GREP=grep
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842 # Check whether --with-gnu-ld was given.
5843 if test ${with_gnu_ld+y}
5844 then :
5845 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5846 else $as_nop
5847 with_gnu_ld=no
5848 fi
5849
5850 ac_prog=ld
5851 if test yes = "$GCC"; then
5852 # Check if gcc -print-prog-name=ld gives a path.
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5854 printf %s "checking for ld used by $CC... " >&6; }
5855 case $host in
5856 *-*-mingw*)
5857 # gcc leaves a trailing carriage return, which upsets mingw
5858 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5859 *)
5860 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5861 esac
5862 case $ac_prog in
5863 # Accept absolute paths.
5864 [\\/]* | ?:[\\/]*)
5865 re_direlt='/[^/][^/]*/\.\./'
5866 # Canonicalize the pathname of ld
5867 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5868 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5869 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5870 done
5871 test -z "$LD" && LD=$ac_prog
5872 ;;
5873 "")
5874 # If it fails, then pretend we aren't using GCC.
5875 ac_prog=ld
5876 ;;
5877 *)
5878 # If it is relative, then search for the first ld in PATH.
5879 with_gnu_ld=unknown
5880 ;;
5881 esac
5882 elif test yes = "$with_gnu_ld"; then
5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5884 printf %s "checking for GNU ld... " >&6; }
5885 else
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5887 printf %s "checking for non-GNU ld... " >&6; }
5888 fi
5889 if test ${lt_cv_path_LD+y}
5890 then :
5891 printf %s "(cached) " >&6
5892 else $as_nop
5893 if test -z "$LD"; then
5894 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5895 for ac_dir in $PATH; do
5896 IFS=$lt_save_ifs
5897 test -z "$ac_dir" && ac_dir=.
5898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5899 lt_cv_path_LD=$ac_dir/$ac_prog
5900 # Check to see if the program is GNU ld. I'd rather use --version,
5901 # but apparently some variants of GNU ld only accept -v.
5902 # Break only if it was the GNU/non-GNU ld that we prefer.
5903 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5904 *GNU* | *'with BFD'*)
5905 test no != "$with_gnu_ld" && break
5906 ;;
5907 *)
5908 test yes != "$with_gnu_ld" && break
5909 ;;
5910 esac
5911 fi
5912 done
5913 IFS=$lt_save_ifs
5914 else
5915 lt_cv_path_LD=$LD # Let the user override the test with a path.
5916 fi
5917 fi
5918
5919 LD=$lt_cv_path_LD
5920 if test -n "$LD"; then
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5922 printf "%s\n" "$LD" >&6; }
5923 else
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 printf "%s\n" "no" >&6; }
5926 fi
5927 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5929 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5930 if test ${lt_cv_prog_gnu_ld+y}
5931 then :
5932 printf %s "(cached) " >&6
5933 else $as_nop
5934 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5935 case `$LD -v 2>&1 </dev/null` in
5936 *GNU* | *'with BFD'*)
5937 lt_cv_prog_gnu_ld=yes
5938 ;;
5939 *)
5940 lt_cv_prog_gnu_ld=no
5941 ;;
5942 esac
5943 fi
5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5945 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5946 with_gnu_ld=$lt_cv_prog_gnu_ld
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5957 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5958 if test ${lt_cv_path_NM+y}
5959 then :
5960 printf %s "(cached) " >&6
5961 else $as_nop
5962 if test -n "$NM"; then
5963 # Let the user override the test.
5964 lt_cv_path_NM=$NM
5965 else
5966 lt_nm_to_check=${ac_tool_prefix}nm
5967 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5968 lt_nm_to_check="$lt_nm_to_check nm"
5969 fi
5970 for lt_tmp_nm in $lt_nm_to_check; do
5971 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5972 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5973 IFS=$lt_save_ifs
5974 test -z "$ac_dir" && ac_dir=.
5975 tmp_nm=$ac_dir/$lt_tmp_nm
5976 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5977 # Check to see if the nm accepts a BSD-compat flag.
5978 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5979 # nm: unknown option "B" ignored
5980 # Tru64's nm complains that /dev/null is an invalid object file
5981 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5982 case $build_os in
5983 mingw*) lt_bad_file=conftest.nm/nofile ;;
5984 *) lt_bad_file=/dev/null ;;
5985 esac
5986 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5987 *$lt_bad_file* | *'Invalid file or object type'*)
5988 lt_cv_path_NM="$tmp_nm -B"
5989 break 2
5990 ;;
5991 *)
5992 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5993 */dev/null*)
5994 lt_cv_path_NM="$tmp_nm -p"
5995 break 2
5996 ;;
5997 *)
5998 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5999 continue # so that we can try to find one that supports BSD flags
6000 ;;
6001 esac
6002 ;;
6003 esac
6004 fi
6005 done
6006 IFS=$lt_save_ifs
6007 done
6008 : ${lt_cv_path_NM=no}
6009 fi
6010 fi
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6012 printf "%s\n" "$lt_cv_path_NM" >&6; }
6013 if test no != "$lt_cv_path_NM"; then
6014 NM=$lt_cv_path_NM
6015 else
6016 # Didn't find any BSD compatible name lister, look for dumpbin.
6017 if test -n "$DUMPBIN"; then :
6018 # Let the user override the test.
6019 else
6020 if test -n "$ac_tool_prefix"; then
6021 for ac_prog in dumpbin "link -dump"
6022 do
6023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 printf %s "checking for $ac_word... " >&6; }
6027 if test ${ac_cv_prog_DUMPBIN+y}
6028 then :
6029 printf %s "(cached) " >&6
6030 else $as_nop
6031 if test -n "$DUMPBIN"; then
6032 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037 IFS=$as_save_IFS
6038 case $as_dir in #(((
6039 '') as_dir=./ ;;
6040 */) ;;
6041 *) as_dir=$as_dir/ ;;
6042 esac
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 DUMPBIN=$ac_cv_prog_DUMPBIN
6056 if test -n "$DUMPBIN"; then
6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6058 printf "%s\n" "$DUMPBIN" >&6; }
6059 else
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 printf "%s\n" "no" >&6; }
6062 fi
6063
6064
6065 test -n "$DUMPBIN" && break
6066 done
6067 fi
6068 if test -z "$DUMPBIN"; then
6069 ac_ct_DUMPBIN=$DUMPBIN
6070 for ac_prog in dumpbin "link -dump"
6071 do
6072 # Extract the first word of "$ac_prog", so it can be a program name with args.
6073 set dummy $ac_prog; ac_word=$2
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 printf %s "checking for $ac_word... " >&6; }
6076 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6077 then :
6078 printf %s "(cached) " >&6
6079 else $as_nop
6080 if test -n "$ac_ct_DUMPBIN"; then
6081 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086 IFS=$as_save_IFS
6087 case $as_dir in #(((
6088 '') as_dir=./ ;;
6089 */) ;;
6090 *) as_dir=$as_dir/ ;;
6091 esac
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6094 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6096 break 2
6097 fi
6098 done
6099 done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6105 if test -n "$ac_ct_DUMPBIN"; then
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6107 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6108 else
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 printf "%s\n" "no" >&6; }
6111 fi
6112
6113
6114 test -n "$ac_ct_DUMPBIN" && break
6115 done
6116
6117 if test "x$ac_ct_DUMPBIN" = x; then
6118 DUMPBIN=":"
6119 else
6120 case $cross_compiling:$ac_tool_warned in
6121 yes:)
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6125 esac
6126 DUMPBIN=$ac_ct_DUMPBIN
6127 fi
6128 fi
6129
6130 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6131 *COFF*)
6132 DUMPBIN="$DUMPBIN -symbols -headers"
6133 ;;
6134 *)
6135 DUMPBIN=:
6136 ;;
6137 esac
6138 fi
6139
6140 if test : != "$DUMPBIN"; then
6141 NM=$DUMPBIN
6142 fi
6143 fi
6144 test -z "$NM" && NM=nm
6145
6146
6147
6148
6149
6150
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6152 printf %s "checking the name lister ($NM) interface... " >&6; }
6153 if test ${lt_cv_nm_interface+y}
6154 then :
6155 printf %s "(cached) " >&6
6156 else $as_nop
6157 lt_cv_nm_interface="BSD nm"
6158 echo "int some_variable = 0;" > conftest.$ac_ext
6159 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6160 (eval "$ac_compile" 2>conftest.err)
6161 cat conftest.err >&5
6162 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6163 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6164 cat conftest.err >&5
6165 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6166 cat conftest.out >&5
6167 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6168 lt_cv_nm_interface="MS dumpbin"
6169 fi
6170 rm -f conftest*
6171 fi
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6173 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6174
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6176 printf %s "checking whether ln -s works... " >&6; }
6177 LN_S=$as_ln_s
6178 if test "$LN_S" = "ln -s"; then
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6180 printf "%s\n" "yes" >&6; }
6181 else
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6183 printf "%s\n" "no, using $LN_S" >&6; }
6184 fi
6185
6186 # find the maximum length of command line arguments
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6188 printf %s "checking the maximum length of command line arguments... " >&6; }
6189 if test ${lt_cv_sys_max_cmd_len+y}
6190 then :
6191 printf %s "(cached) " >&6
6192 else $as_nop
6193 i=0
6194 teststring=ABCD
6195
6196 case $build_os in
6197 msdosdjgpp*)
6198 # On DJGPP, this test can blow up pretty badly due to problems in libc
6199 # (any single argument exceeding 2000 bytes causes a buffer overrun
6200 # during glob expansion). Even if it were fixed, the result of this
6201 # check would be larger than it should be.
6202 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6203 ;;
6204
6205 gnu*)
6206 # Under GNU Hurd, this test is not required because there is
6207 # no limit to the length of command line arguments.
6208 # Libtool will interpret -1 as no limit whatsoever
6209 lt_cv_sys_max_cmd_len=-1;
6210 ;;
6211
6212 cygwin* | mingw* | cegcc*)
6213 # On Win9x/ME, this test blows up -- it succeeds, but takes
6214 # about 5 minutes as the teststring grows exponentially.
6215 # Worse, since 9x/ME are not pre-emptively multitasking,
6216 # you end up with a "frozen" computer, even though with patience
6217 # the test eventually succeeds (with a max line length of 256k).
6218 # Instead, let's just punt: use the minimum linelength reported by
6219 # all of the supported platforms: 8192 (on NT/2K/XP).
6220 lt_cv_sys_max_cmd_len=8192;
6221 ;;
6222
6223 mint*)
6224 # On MiNT this can take a long time and run out of memory.
6225 lt_cv_sys_max_cmd_len=8192;
6226 ;;
6227
6228 amigaos*)
6229 # On AmigaOS with pdksh, this test takes hours, literally.
6230 # So we just punt and use a minimum line length of 8192.
6231 lt_cv_sys_max_cmd_len=8192;
6232 ;;
6233
6234 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6235 # This has been around since 386BSD, at least. Likely further.
6236 if test -x /sbin/sysctl; then
6237 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6238 elif test -x /usr/sbin/sysctl; then
6239 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6240 else
6241 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6242 fi
6243 # And add a safety zone
6244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6246 ;;
6247
6248 interix*)
6249 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6250 lt_cv_sys_max_cmd_len=196608
6251 ;;
6252
6253 os2*)
6254 # The test takes a long time on OS/2.
6255 lt_cv_sys_max_cmd_len=8192
6256 ;;
6257
6258 osf*)
6259 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6260 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6261 # nice to cause kernel panics so lets avoid the loop below.
6262 # First set a reasonable default.
6263 lt_cv_sys_max_cmd_len=16384
6264 #
6265 if test -x /sbin/sysconfig; then
6266 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6267 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6268 esac
6269 fi
6270 ;;
6271 sco3.2v5*)
6272 lt_cv_sys_max_cmd_len=102400
6273 ;;
6274 sysv5* | sco5v6* | sysv4.2uw2*)
6275 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6276 if test -n "$kargmax"; then
6277 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6278 else
6279 lt_cv_sys_max_cmd_len=32768
6280 fi
6281 ;;
6282 *)
6283 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6284 if test -n "$lt_cv_sys_max_cmd_len" && \
6285 test undefined != "$lt_cv_sys_max_cmd_len"; then
6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6288 else
6289 # Make teststring a little bigger before we do anything with it.
6290 # a 1K string should be a reasonable start.
6291 for i in 1 2 3 4 5 6 7 8; do
6292 teststring=$teststring$teststring
6293 done
6294 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6295 # If test is not a shell built-in, we'll probably end up computing a
6296 # maximum length that is only half of the actual maximum length, but
6297 # we can't tell.
6298 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6299 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6300 test 17 != "$i" # 1/2 MB should be enough
6301 do
6302 i=`expr $i + 1`
6303 teststring=$teststring$teststring
6304 done
6305 # Only check the string length outside the loop.
6306 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6307 teststring=
6308 # Add a significant safety factor because C++ compilers can tack on
6309 # massive amounts of additional arguments before passing them to the
6310 # linker. It appears as though 1/2 is a usable value.
6311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6312 fi
6313 ;;
6314 esac
6315
6316 fi
6317
6318 if test -n "$lt_cv_sys_max_cmd_len"; then
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6320 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6321 else
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6323 printf "%s\n" "none" >&6; }
6324 fi
6325 max_cmd_len=$lt_cv_sys_max_cmd_len
6326
6327
6328
6329
6330
6331
6332 : ${CP="cp -f"}
6333 : ${MV="mv -f"}
6334 : ${RM="rm -f"}
6335
6336 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6337 lt_unset=unset
6338 else
6339 lt_unset=false
6340 fi
6341
6342
6343
6344
6345
6346 # test EBCDIC or ASCII
6347 case `echo X|tr X '\101'` in
6348 A) # ASCII based system
6349 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6350 lt_SP2NL='tr \040 \012'
6351 lt_NL2SP='tr \015\012 \040\040'
6352 ;;
6353 *) # EBCDIC based system
6354 lt_SP2NL='tr \100 \n'
6355 lt_NL2SP='tr \r\n \100\100'
6356 ;;
6357 esac
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6368 printf %s "checking how to convert $build file names to $host format... " >&6; }
6369 if test ${lt_cv_to_host_file_cmd+y}
6370 then :
6371 printf %s "(cached) " >&6
6372 else $as_nop
6373 case $host in
6374 *-*-mingw* )
6375 case $build in
6376 *-*-mingw* ) # actually msys
6377 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6378 ;;
6379 *-*-cygwin* )
6380 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6381 ;;
6382 * ) # otherwise, assume *nix
6383 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6384 ;;
6385 esac
6386 ;;
6387 *-*-cygwin* )
6388 case $build in
6389 *-*-mingw* ) # actually msys
6390 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6391 ;;
6392 *-*-cygwin* )
6393 lt_cv_to_host_file_cmd=func_convert_file_noop
6394 ;;
6395 * ) # otherwise, assume *nix
6396 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6397 ;;
6398 esac
6399 ;;
6400 * ) # unhandled hosts (and "normal" native builds)
6401 lt_cv_to_host_file_cmd=func_convert_file_noop
6402 ;;
6403 esac
6404
6405 fi
6406
6407 to_host_file_cmd=$lt_cv_to_host_file_cmd
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6409 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6410
6411
6412
6413
6414
6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6416 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6417 if test ${lt_cv_to_tool_file_cmd+y}
6418 then :
6419 printf %s "(cached) " >&6
6420 else $as_nop
6421 #assume ordinary cross tools, or native build.
6422 lt_cv_to_tool_file_cmd=func_convert_file_noop
6423 case $host in
6424 *-*-mingw* )
6425 case $build in
6426 *-*-mingw* ) # actually msys
6427 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6428 ;;
6429 esac
6430 ;;
6431 esac
6432
6433 fi
6434
6435 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6437 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6438
6439
6440
6441
6442
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6444 printf %s "checking for $LD option to reload object files... " >&6; }
6445 if test ${lt_cv_ld_reload_flag+y}
6446 then :
6447 printf %s "(cached) " >&6
6448 else $as_nop
6449 lt_cv_ld_reload_flag='-r'
6450 fi
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6452 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6453 reload_flag=$lt_cv_ld_reload_flag
6454 case $reload_flag in
6455 "" | " "*) ;;
6456 *) reload_flag=" $reload_flag" ;;
6457 esac
6458 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6459 case $host_os in
6460 cygwin* | mingw* | pw32* | cegcc*)
6461 if test yes != "$GCC"; then
6462 reload_cmds=false
6463 fi
6464 ;;
6465 darwin*)
6466 if test yes = "$GCC"; then
6467 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6468 else
6469 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6470 fi
6471 ;;
6472 esac
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482 if test -n "$ac_tool_prefix"; then
6483 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6484 set dummy ${ac_tool_prefix}file; ac_word=$2
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 printf %s "checking for $ac_word... " >&6; }
6487 if test ${ac_cv_prog_FILECMD+y}
6488 then :
6489 printf %s "(cached) " >&6
6490 else $as_nop
6491 if test -n "$FILECMD"; then
6492 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497 IFS=$as_save_IFS
6498 case $as_dir in #(((
6499 '') as_dir=./ ;;
6500 */) ;;
6501 *) as_dir=$as_dir/ ;;
6502 esac
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6505 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 FILECMD=$ac_cv_prog_FILECMD
6516 if test -n "$FILECMD"; then
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6518 printf "%s\n" "$FILECMD" >&6; }
6519 else
6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 printf "%s\n" "no" >&6; }
6522 fi
6523
6524
6525 fi
6526 if test -z "$ac_cv_prog_FILECMD"; then
6527 ac_ct_FILECMD=$FILECMD
6528 # Extract the first word of "file", so it can be a program name with args.
6529 set dummy file; ac_word=$2
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 printf %s "checking for $ac_word... " >&6; }
6532 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6533 then :
6534 printf %s "(cached) " >&6
6535 else $as_nop
6536 if test -n "$ac_ct_FILECMD"; then
6537 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542 IFS=$as_save_IFS
6543 case $as_dir in #(((
6544 '') as_dir=./ ;;
6545 */) ;;
6546 *) as_dir=$as_dir/ ;;
6547 esac
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6550 ac_cv_prog_ac_ct_FILECMD="file"
6551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554 done
6555 done
6556 IFS=$as_save_IFS
6557
6558 fi
6559 fi
6560 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6561 if test -n "$ac_ct_FILECMD"; then
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6563 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6564 else
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 printf "%s\n" "no" >&6; }
6567 fi
6568
6569 if test "x$ac_ct_FILECMD" = x; then
6570 FILECMD=":"
6571 else
6572 case $cross_compiling:$ac_tool_warned in
6573 yes:)
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6575 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576 ac_tool_warned=yes ;;
6577 esac
6578 FILECMD=$ac_ct_FILECMD
6579 fi
6580 else
6581 FILECMD="$ac_cv_prog_FILECMD"
6582 fi
6583
6584
6585
6586
6587
6588
6589
6590 if test -n "$ac_tool_prefix"; then
6591 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6592 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 printf %s "checking for $ac_word... " >&6; }
6595 if test ${ac_cv_prog_OBJDUMP+y}
6596 then :
6597 printf %s "(cached) " >&6
6598 else $as_nop
6599 if test -n "$OBJDUMP"; then
6600 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6601 else
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605 IFS=$as_save_IFS
6606 case $as_dir in #(((
6607 '') as_dir=./ ;;
6608 */) ;;
6609 *) as_dir=$as_dir/ ;;
6610 esac
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621 fi
6622 fi
6623 OBJDUMP=$ac_cv_prog_OBJDUMP
6624 if test -n "$OBJDUMP"; then
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6626 printf "%s\n" "$OBJDUMP" >&6; }
6627 else
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 printf "%s\n" "no" >&6; }
6630 fi
6631
6632
6633 fi
6634 if test -z "$ac_cv_prog_OBJDUMP"; then
6635 ac_ct_OBJDUMP=$OBJDUMP
6636 # Extract the first word of "objdump", so it can be a program name with args.
6637 set dummy objdump; ac_word=$2
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 printf %s "checking for $ac_word... " >&6; }
6640 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6641 then :
6642 printf %s "(cached) " >&6
6643 else $as_nop
6644 if test -n "$ac_ct_OBJDUMP"; then
6645 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650 IFS=$as_save_IFS
6651 case $as_dir in #(((
6652 '') as_dir=./ ;;
6653 */) ;;
6654 *) as_dir=$as_dir/ ;;
6655 esac
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6669 if test -n "$ac_ct_OBJDUMP"; then
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6671 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6672 else
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 printf "%s\n" "no" >&6; }
6675 fi
6676
6677 if test "x$ac_ct_OBJDUMP" = x; then
6678 OBJDUMP="false"
6679 else
6680 case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6685 esac
6686 OBJDUMP=$ac_ct_OBJDUMP
6687 fi
6688 else
6689 OBJDUMP="$ac_cv_prog_OBJDUMP"
6690 fi
6691
6692 test -z "$OBJDUMP" && OBJDUMP=objdump
6693
6694
6695
6696
6697
6698
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6700 printf %s "checking how to recognize dependent libraries... " >&6; }
6701 if test ${lt_cv_deplibs_check_method+y}
6702 then :
6703 printf %s "(cached) " >&6
6704 else $as_nop
6705 lt_cv_file_magic_cmd='$MAGIC_CMD'
6706 lt_cv_file_magic_test_file=
6707 lt_cv_deplibs_check_method='unknown'
6708 # Need to set the preceding variable on all platforms that support
6709 # interlibrary dependencies.
6710 # 'none' -- dependencies not supported.
6711 # 'unknown' -- same as none, but documents that we really don't know.
6712 # 'pass_all' -- all dependencies passed with no checks.
6713 # 'test_compile' -- check by making test program.
6714 # 'file_magic [[regex]]' -- check by looking for files in library path
6715 # that responds to the $file_magic_cmd with a given extended regex.
6716 # If you have 'file' or equivalent on your system and you're not sure
6717 # whether 'pass_all' will *always* work, you probably want this one.
6718
6719 case $host_os in
6720 aix[4-9]*)
6721 lt_cv_deplibs_check_method=pass_all
6722 ;;
6723
6724 beos*)
6725 lt_cv_deplibs_check_method=pass_all
6726 ;;
6727
6728 bsdi[45]*)
6729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6730 lt_cv_file_magic_cmd='$FILECMD -L'
6731 lt_cv_file_magic_test_file=/shlib/libc.so
6732 ;;
6733
6734 cygwin*)
6735 # func_win32_libid is a shell function defined in ltmain.sh
6736 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6737 lt_cv_file_magic_cmd='func_win32_libid'
6738 ;;
6739
6740 mingw* | pw32*)
6741 # Base MSYS/MinGW do not provide the 'file' command needed by
6742 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6743 # unless we find 'file', for example because we are cross-compiling.
6744 if ( file / ) >/dev/null 2>&1; then
6745 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6746 lt_cv_file_magic_cmd='func_win32_libid'
6747 else
6748 # Keep this pattern in sync with the one in func_win32_libid.
6749 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6750 lt_cv_file_magic_cmd='$OBJDUMP -f'
6751 fi
6752 ;;
6753
6754 cegcc*)
6755 # use the weaker test based on 'objdump'. See mingw*.
6756 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6757 lt_cv_file_magic_cmd='$OBJDUMP -f'
6758 ;;
6759
6760 darwin* | rhapsody*)
6761 lt_cv_deplibs_check_method=pass_all
6762 ;;
6763
6764 freebsd* | dragonfly* | midnightbsd*)
6765 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6766 case $host_cpu in
6767 i*86 )
6768 # Not sure whether the presence of OpenBSD here was a mistake.
6769 # Let's accept both of them until this is cleared up.
6770 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6771 lt_cv_file_magic_cmd=$FILECMD
6772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6773 ;;
6774 esac
6775 else
6776 lt_cv_deplibs_check_method=pass_all
6777 fi
6778 ;;
6779
6780 haiku*)
6781 lt_cv_deplibs_check_method=pass_all
6782 ;;
6783
6784 hpux10.20* | hpux11*)
6785 lt_cv_file_magic_cmd=$FILECMD
6786 case $host_cpu in
6787 ia64*)
6788 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6789 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6790 ;;
6791 hppa*64*)
6792 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]'
6793 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6794 ;;
6795 *)
6796 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6797 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6798 ;;
6799 esac
6800 ;;
6801
6802 interix[3-9]*)
6803 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6805 ;;
6806
6807 irix5* | irix6* | nonstopux*)
6808 case $LD in
6809 *-32|*"-32 ") libmagic=32-bit;;
6810 *-n32|*"-n32 ") libmagic=N32;;
6811 *-64|*"-64 ") libmagic=64-bit;;
6812 *) libmagic=never-match;;
6813 esac
6814 lt_cv_deplibs_check_method=pass_all
6815 ;;
6816
6817 # This must be glibc/ELF.
6818 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6819 lt_cv_deplibs_check_method=pass_all
6820 ;;
6821
6822 netbsd*)
6823 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6825 else
6826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6827 fi
6828 ;;
6829
6830 newos6*)
6831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6832 lt_cv_file_magic_cmd=$FILECMD
6833 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6834 ;;
6835
6836 *nto* | *qnx*)
6837 lt_cv_deplibs_check_method=pass_all
6838 ;;
6839
6840 openbsd* | bitrig*)
6841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6842 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6843 else
6844 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6845 fi
6846 ;;
6847
6848 osf3* | osf4* | osf5*)
6849 lt_cv_deplibs_check_method=pass_all
6850 ;;
6851
6852 rdos*)
6853 lt_cv_deplibs_check_method=pass_all
6854 ;;
6855
6856 solaris*)
6857 lt_cv_deplibs_check_method=pass_all
6858 ;;
6859
6860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6861 lt_cv_deplibs_check_method=pass_all
6862 ;;
6863
6864 sysv4 | sysv4.3*)
6865 case $host_vendor in
6866 motorola)
6867 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]'
6868 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6869 ;;
6870 ncr)
6871 lt_cv_deplibs_check_method=pass_all
6872 ;;
6873 sequent)
6874 lt_cv_file_magic_cmd='/bin/file'
6875 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6876 ;;
6877 sni)
6878 lt_cv_file_magic_cmd='/bin/file'
6879 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6880 lt_cv_file_magic_test_file=/lib/libc.so
6881 ;;
6882 siemens)
6883 lt_cv_deplibs_check_method=pass_all
6884 ;;
6885 pc)
6886 lt_cv_deplibs_check_method=pass_all
6887 ;;
6888 esac
6889 ;;
6890
6891 tpf*)
6892 lt_cv_deplibs_check_method=pass_all
6893 ;;
6894 os2*)
6895 lt_cv_deplibs_check_method=pass_all
6896 ;;
6897 esac
6898
6899 fi
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6901 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6902
6903 file_magic_glob=
6904 want_nocaseglob=no
6905 if test "$build" = "$host"; then
6906 case $host_os in
6907 mingw* | pw32*)
6908 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6909 want_nocaseglob=yes
6910 else
6911 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6912 fi
6913 ;;
6914 esac
6915 fi
6916
6917 file_magic_cmd=$lt_cv_file_magic_cmd
6918 deplibs_check_method=$lt_cv_deplibs_check_method
6919 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942 if test -n "$ac_tool_prefix"; then
6943 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6944 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946 printf %s "checking for $ac_word... " >&6; }
6947 if test ${ac_cv_prog_DLLTOOL+y}
6948 then :
6949 printf %s "(cached) " >&6
6950 else $as_nop
6951 if test -n "$DLLTOOL"; then
6952 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957 IFS=$as_save_IFS
6958 case $as_dir in #(((
6959 '') as_dir=./ ;;
6960 */) ;;
6961 *) as_dir=$as_dir/ ;;
6962 esac
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6965 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973 fi
6974 fi
6975 DLLTOOL=$ac_cv_prog_DLLTOOL
6976 if test -n "$DLLTOOL"; then
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6978 printf "%s\n" "$DLLTOOL" >&6; }
6979 else
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 printf "%s\n" "no" >&6; }
6982 fi
6983
6984
6985 fi
6986 if test -z "$ac_cv_prog_DLLTOOL"; then
6987 ac_ct_DLLTOOL=$DLLTOOL
6988 # Extract the first word of "dlltool", so it can be a program name with args.
6989 set dummy dlltool; ac_word=$2
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 printf %s "checking for $ac_word... " >&6; }
6992 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6993 then :
6994 printf %s "(cached) " >&6
6995 else $as_nop
6996 if test -n "$ac_ct_DLLTOOL"; then
6997 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002 IFS=$as_save_IFS
7003 case $as_dir in #(((
7004 '') as_dir=./ ;;
7005 */) ;;
7006 *) as_dir=$as_dir/ ;;
7007 esac
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7021 if test -n "$ac_ct_DLLTOOL"; then
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7023 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7024 else
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 printf "%s\n" "no" >&6; }
7027 fi
7028
7029 if test "x$ac_ct_DLLTOOL" = x; then
7030 DLLTOOL="false"
7031 else
7032 case $cross_compiling:$ac_tool_warned in
7033 yes:)
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036 ac_tool_warned=yes ;;
7037 esac
7038 DLLTOOL=$ac_ct_DLLTOOL
7039 fi
7040 else
7041 DLLTOOL="$ac_cv_prog_DLLTOOL"
7042 fi
7043
7044 test -z "$DLLTOOL" && DLLTOOL=dlltool
7045
7046
7047
7048
7049
7050
7051
7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7053 printf %s "checking how to associate runtime and link libraries... " >&6; }
7054 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7055 then :
7056 printf %s "(cached) " >&6
7057 else $as_nop
7058 lt_cv_sharedlib_from_linklib_cmd='unknown'
7059
7060 case $host_os in
7061 cygwin* | mingw* | pw32* | cegcc*)
7062 # two different shell functions defined in ltmain.sh;
7063 # decide which one to use based on capabilities of $DLLTOOL
7064 case `$DLLTOOL --help 2>&1` in
7065 *--identify-strict*)
7066 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7067 ;;
7068 *)
7069 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7070 ;;
7071 esac
7072 ;;
7073 *)
7074 # fallback: assume linklib IS sharedlib
7075 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7076 ;;
7077 esac
7078
7079 fi
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7081 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7082 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7083 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7084
7085
7086
7087
7088
7089
7090
7091
7092 if test -n "$ac_tool_prefix"; then
7093 for ac_prog in ar
7094 do
7095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 printf %s "checking for $ac_word... " >&6; }
7099 if test ${ac_cv_prog_AR+y}
7100 then :
7101 printf %s "(cached) " >&6
7102 else $as_nop
7103 if test -n "$AR"; then
7104 ac_cv_prog_AR="$AR" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109 IFS=$as_save_IFS
7110 case $as_dir in #(((
7111 '') as_dir=./ ;;
7112 */) ;;
7113 *) as_dir=$as_dir/ ;;
7114 esac
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7119 break 2
7120 fi
7121 done
7122 done
7123 IFS=$as_save_IFS
7124
7125 fi
7126 fi
7127 AR=$ac_cv_prog_AR
7128 if test -n "$AR"; then
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7130 printf "%s\n" "$AR" >&6; }
7131 else
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 printf "%s\n" "no" >&6; }
7134 fi
7135
7136
7137 test -n "$AR" && break
7138 done
7139 fi
7140 if test -z "$AR"; then
7141 ac_ct_AR=$AR
7142 for ac_prog in ar
7143 do
7144 # Extract the first word of "$ac_prog", so it can be a program name with args.
7145 set dummy $ac_prog; ac_word=$2
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 printf %s "checking for $ac_word... " >&6; }
7148 if test ${ac_cv_prog_ac_ct_AR+y}
7149 then :
7150 printf %s "(cached) " >&6
7151 else $as_nop
7152 if test -n "$ac_ct_AR"; then
7153 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158 IFS=$as_save_IFS
7159 case $as_dir in #(((
7160 '') as_dir=./ ;;
7161 */) ;;
7162 *) as_dir=$as_dir/ ;;
7163 esac
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7166 ac_cv_prog_ac_ct_AR="$ac_prog"
7167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170 done
7171 done
7172 IFS=$as_save_IFS
7173
7174 fi
7175 fi
7176 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7177 if test -n "$ac_ct_AR"; then
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7179 printf "%s\n" "$ac_ct_AR" >&6; }
7180 else
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 printf "%s\n" "no" >&6; }
7183 fi
7184
7185
7186 test -n "$ac_ct_AR" && break
7187 done
7188
7189 if test "x$ac_ct_AR" = x; then
7190 AR="false"
7191 else
7192 case $cross_compiling:$ac_tool_warned in
7193 yes:)
7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7195 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196 ac_tool_warned=yes ;;
7197 esac
7198 AR=$ac_ct_AR
7199 fi
7200 fi
7201
7202 : ${AR=ar}
7203
7204
7205
7206
7207
7208
7209 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7210 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7211 # higher priority because thats what people were doing historically (setting
7212 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7213 # variable obsoleted/removed.
7214
7215 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7216 lt_ar_flags=$AR_FLAGS
7217
7218
7219
7220
7221
7222
7223 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7224 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7225
7226
7227
7228
7229
7230
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7232 printf %s "checking for archiver @FILE support... " >&6; }
7233 if test ${lt_cv_ar_at_file+y}
7234 then :
7235 printf %s "(cached) " >&6
7236 else $as_nop
7237 lt_cv_ar_at_file=no
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240
7241 int
7242 main (void)
7243 {
7244
7245 ;
7246 return 0;
7247 }
7248 _ACEOF
7249 if ac_fn_c_try_compile "$LINENO"
7250 then :
7251 echo conftest.$ac_objext > conftest.lst
7252 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7254 (eval $lt_ar_try) 2>&5
7255 ac_status=$?
7256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7257 test $ac_status = 0; }
7258 if test 0 -eq "$ac_status"; then
7259 # Ensure the archiver fails upon bogus file names.
7260 rm -f conftest.$ac_objext libconftest.a
7261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7262 (eval $lt_ar_try) 2>&5
7263 ac_status=$?
7264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 test $ac_status = 0; }
7266 if test 0 -ne "$ac_status"; then
7267 lt_cv_ar_at_file=@
7268 fi
7269 fi
7270 rm -f conftest.* libconftest.a
7271
7272 fi
7273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7274
7275 fi
7276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7277 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7278
7279 if test no = "$lt_cv_ar_at_file"; then
7280 archiver_list_spec=
7281 else
7282 archiver_list_spec=$lt_cv_ar_at_file
7283 fi
7284
7285
7286
7287
7288
7289
7290
7291 if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}strip; ac_word=$2
7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 printf %s "checking for $ac_word... " >&6; }
7296 if test ${ac_cv_prog_STRIP+y}
7297 then :
7298 printf %s "(cached) " >&6
7299 else $as_nop
7300 if test -n "$STRIP"; then
7301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306 IFS=$as_save_IFS
7307 case $as_dir in #(((
7308 '') as_dir=./ ;;
7309 */) ;;
7310 *) as_dir=$as_dir/ ;;
7311 esac
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318 done
7319 done
7320 IFS=$as_save_IFS
7321
7322 fi
7323 fi
7324 STRIP=$ac_cv_prog_STRIP
7325 if test -n "$STRIP"; then
7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7327 printf "%s\n" "$STRIP" >&6; }
7328 else
7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 printf "%s\n" "no" >&6; }
7331 fi
7332
7333
7334 fi
7335 if test -z "$ac_cv_prog_STRIP"; then
7336 ac_ct_STRIP=$STRIP
7337 # Extract the first word of "strip", so it can be a program name with args.
7338 set dummy strip; ac_word=$2
7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 printf %s "checking for $ac_word... " >&6; }
7341 if test ${ac_cv_prog_ac_ct_STRIP+y}
7342 then :
7343 printf %s "(cached) " >&6
7344 else $as_nop
7345 if test -n "$ac_ct_STRIP"; then
7346 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351 IFS=$as_save_IFS
7352 case $as_dir in #(((
7353 '') as_dir=./ ;;
7354 */) ;;
7355 *) as_dir=$as_dir/ ;;
7356 esac
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_ac_ct_STRIP="strip"
7360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363 done
7364 done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7370 if test -n "$ac_ct_STRIP"; then
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7372 printf "%s\n" "$ac_ct_STRIP" >&6; }
7373 else
7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 printf "%s\n" "no" >&6; }
7376 fi
7377
7378 if test "x$ac_ct_STRIP" = x; then
7379 STRIP=":"
7380 else
7381 case $cross_compiling:$ac_tool_warned in
7382 yes:)
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385 ac_tool_warned=yes ;;
7386 esac
7387 STRIP=$ac_ct_STRIP
7388 fi
7389 else
7390 STRIP="$ac_cv_prog_STRIP"
7391 fi
7392
7393 test -z "$STRIP" && STRIP=:
7394
7395
7396
7397
7398
7399
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 printf %s "checking for $ac_word... " >&6; }
7405 if test ${ac_cv_prog_RANLIB+y}
7406 then :
7407 printf %s "(cached) " >&6
7408 else $as_nop
7409 if test -n "$RANLIB"; then
7410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415 IFS=$as_save_IFS
7416 case $as_dir in #(((
7417 '') as_dir=./ ;;
7418 */) ;;
7419 *) as_dir=$as_dir/ ;;
7420 esac
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427 done
7428 done
7429 IFS=$as_save_IFS
7430
7431 fi
7432 fi
7433 RANLIB=$ac_cv_prog_RANLIB
7434 if test -n "$RANLIB"; then
7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7436 printf "%s\n" "$RANLIB" >&6; }
7437 else
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 printf "%s\n" "no" >&6; }
7440 fi
7441
7442
7443 fi
7444 if test -z "$ac_cv_prog_RANLIB"; then
7445 ac_ct_RANLIB=$RANLIB
7446 # Extract the first word of "ranlib", so it can be a program name with args.
7447 set dummy ranlib; ac_word=$2
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 printf %s "checking for $ac_word... " >&6; }
7450 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7451 then :
7452 printf %s "(cached) " >&6
7453 else $as_nop
7454 if test -n "$ac_ct_RANLIB"; then
7455 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460 IFS=$as_save_IFS
7461 case $as_dir in #(((
7462 '') as_dir=./ ;;
7463 */) ;;
7464 *) as_dir=$as_dir/ ;;
7465 esac
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_ac_ct_RANLIB="ranlib"
7469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7475
7476 fi
7477 fi
7478 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7479 if test -n "$ac_ct_RANLIB"; then
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7481 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7482 else
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 printf "%s\n" "no" >&6; }
7485 fi
7486
7487 if test "x$ac_ct_RANLIB" = x; then
7488 RANLIB=":"
7489 else
7490 case $cross_compiling:$ac_tool_warned in
7491 yes:)
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7495 esac
7496 RANLIB=$ac_ct_RANLIB
7497 fi
7498 else
7499 RANLIB="$ac_cv_prog_RANLIB"
7500 fi
7501
7502 test -z "$RANLIB" && RANLIB=:
7503
7504
7505
7506
7507
7508
7509 # Determine commands to create old-style static archives.
7510 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7511 old_postinstall_cmds='chmod 644 $oldlib'
7512 old_postuninstall_cmds=
7513
7514 if test -n "$RANLIB"; then
7515 case $host_os in
7516 bitrig* | openbsd*)
7517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7518 ;;
7519 *)
7520 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7521 ;;
7522 esac
7523 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7524 fi
7525
7526 case $host_os in
7527 darwin*)
7528 lock_old_archive_extraction=yes ;;
7529 *)
7530 lock_old_archive_extraction=no ;;
7531 esac
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571 # If no C compiler was specified, use CC.
7572 LTCC=${LTCC-"$CC"}
7573
7574 # If no C compiler flags were specified, use CFLAGS.
7575 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7576
7577 # Allow CC to be a program name with arguments.
7578 compiler=$CC
7579
7580
7581 # Check for command to grab the raw symbol name followed by C symbol from nm.
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7583 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7584 if test ${lt_cv_sys_global_symbol_pipe+y}
7585 then :
7586 printf %s "(cached) " >&6
7587 else $as_nop
7588
7589 # These are sane defaults that work on at least a few old systems.
7590 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7591
7592 # Character class describing NM global symbol codes.
7593 symcode='[BCDEGRST]'
7594
7595 # Regexp to match symbols that can be accessed directly from C.
7596 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7597
7598 # Define system-specific variables.
7599 case $host_os in
7600 aix*)
7601 symcode='[BCDT]'
7602 ;;
7603 cygwin* | mingw* | pw32* | cegcc*)
7604 symcode='[ABCDGISTW]'
7605 ;;
7606 hpux*)
7607 if test ia64 = "$host_cpu"; then
7608 symcode='[ABCDEGRST]'
7609 fi
7610 ;;
7611 irix* | nonstopux*)
7612 symcode='[BCDEGRST]'
7613 ;;
7614 osf*)
7615 symcode='[BCDEGQRST]'
7616 ;;
7617 solaris*)
7618 symcode='[BDRT]'
7619 ;;
7620 sco3.2v5*)
7621 symcode='[DT]'
7622 ;;
7623 sysv4.2uw2*)
7624 symcode='[DT]'
7625 ;;
7626 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7627 symcode='[ABDT]'
7628 ;;
7629 sysv4)
7630 symcode='[DFNSTU]'
7631 ;;
7632 esac
7633
7634 # If we're using GNU nm, then use its standard symbol codes.
7635 case `$NM -V 2>&1` in
7636 *GNU* | *'with BFD'*)
7637 symcode='[ABCDGIRSTW]' ;;
7638 esac
7639
7640 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7641 # Gets list of data symbols to import.
7642 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7643 # Adjust the below global symbol transforms to fixup imported variables.
7644 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7645 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7646 lt_c_name_lib_hook="\
7647 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7648 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7649 else
7650 # Disable hooks by default.
7651 lt_cv_sys_global_symbol_to_import=
7652 lt_cdecl_hook=
7653 lt_c_name_hook=
7654 lt_c_name_lib_hook=
7655 fi
7656
7657 # Transform an extracted symbol line into a proper C declaration.
7658 # Some systems (esp. on ia64) link data and code symbols differently,
7659 # so use this general approach.
7660 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7661 $lt_cdecl_hook\
7662 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7663 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7664
7665 # Transform an extracted symbol line into symbol name and symbol address
7666 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7667 $lt_c_name_hook\
7668 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7669 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7670
7671 # Transform an extracted symbol line into symbol name with lib prefix and
7672 # symbol address.
7673 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7674 $lt_c_name_lib_hook\
7675 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7676 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7677 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7678
7679 # Handle CRLF in mingw tool chain
7680 opt_cr=
7681 case $build_os in
7682 mingw*)
7683 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7684 ;;
7685 esac
7686
7687 # Try without a prefix underscore, then with it.
7688 for ac_symprfx in "" "_"; do
7689
7690 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7691 symxfrm="\\1 $ac_symprfx\\2 \\2"
7692
7693 # Write the raw and C identifiers.
7694 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7695 # Fake it for dumpbin and say T for any non-static function,
7696 # D for any global variable and I for any imported variable.
7697 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7698 # which start with @ or ?.
7699 lt_cv_sys_global_symbol_pipe="$AWK '"\
7700 " {last_section=section; section=\$ 3};"\
7701 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7702 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7703 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7704 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7705 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7706 " \$ 0!~/External *\|/{next};"\
7707 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7708 " {if(hide[section]) next};"\
7709 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7710 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7711 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7712 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7713 " ' prfx=^$ac_symprfx"
7714 else
7715 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7716 fi
7717 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7718
7719 # Check to see that the pipe works correctly.
7720 pipe_works=no
7721
7722 rm -f conftest*
7723 cat > conftest.$ac_ext <<_LT_EOF
7724 #ifdef __cplusplus
7725 extern "C" {
7726 #endif
7727 char nm_test_var;
7728 void nm_test_func(void);
7729 void nm_test_func(void){}
7730 #ifdef __cplusplus
7731 }
7732 #endif
7733 int main(){nm_test_var='a';nm_test_func();return(0);}
7734 _LT_EOF
7735
7736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7737 (eval $ac_compile) 2>&5
7738 ac_status=$?
7739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7740 test $ac_status = 0; }; then
7741 # Now try to grab the symbols.
7742 nlist=conftest.nm
7743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7744 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7745 ac_status=$?
7746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747 test $ac_status = 0; } && test -s "$nlist"; then
7748 # Try sorting and uniquifying the output.
7749 if sort "$nlist" | uniq > "$nlist"T; then
7750 mv -f "$nlist"T "$nlist"
7751 else
7752 rm -f "$nlist"T
7753 fi
7754
7755 # Make sure that we snagged all the symbols we need.
7756 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7757 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7758 cat <<_LT_EOF > conftest.$ac_ext
7759 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7760 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7761 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7762 relocations are performed -- see ld's documentation on pseudo-relocs. */
7763 # define LT_DLSYM_CONST
7764 #elif defined __osf__
7765 /* This system does not cope well with relocations in const data. */
7766 # define LT_DLSYM_CONST
7767 #else
7768 # define LT_DLSYM_CONST const
7769 #endif
7770
7771 #ifdef __cplusplus
7772 extern "C" {
7773 #endif
7774
7775 _LT_EOF
7776 # Now generate the symbol file.
7777 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7778
7779 cat <<_LT_EOF >> conftest.$ac_ext
7780
7781 /* The mapping between symbol names and symbols. */
7782 LT_DLSYM_CONST struct {
7783 const char *name;
7784 void *address;
7785 }
7786 lt__PROGRAM__LTX_preloaded_symbols[] =
7787 {
7788 { "@PROGRAM@", (void *) 0 },
7789 _LT_EOF
7790 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7791 cat <<\_LT_EOF >> conftest.$ac_ext
7792 {0, (void *) 0}
7793 };
7794
7795 /* This works around a problem in FreeBSD linker */
7796 #ifdef FREEBSD_WORKAROUND
7797 static const void *lt_preloaded_setup() {
7798 return lt__PROGRAM__LTX_preloaded_symbols;
7799 }
7800 #endif
7801
7802 #ifdef __cplusplus
7803 }
7804 #endif
7805 _LT_EOF
7806 # Now try linking the two files.
7807 mv conftest.$ac_objext conftstm.$ac_objext
7808 lt_globsym_save_LIBS=$LIBS
7809 lt_globsym_save_CFLAGS=$CFLAGS
7810 LIBS=conftstm.$ac_objext
7811 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7813 (eval $ac_link) 2>&5
7814 ac_status=$?
7815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7816 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7817 pipe_works=yes
7818 fi
7819 LIBS=$lt_globsym_save_LIBS
7820 CFLAGS=$lt_globsym_save_CFLAGS
7821 else
7822 echo "cannot find nm_test_func in $nlist" >&5
7823 fi
7824 else
7825 echo "cannot find nm_test_var in $nlist" >&5
7826 fi
7827 else
7828 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7829 fi
7830 else
7831 echo "$progname: failed program was:" >&5
7832 cat conftest.$ac_ext >&5
7833 fi
7834 rm -rf conftest* conftst*
7835
7836 # Do not use the global_symbol_pipe unless it works.
7837 if test yes = "$pipe_works"; then
7838 break
7839 else
7840 lt_cv_sys_global_symbol_pipe=
7841 fi
7842 done
7843
7844 fi
7845
7846 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7847 lt_cv_sys_global_symbol_to_cdecl=
7848 fi
7849 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7851 printf "%s\n" "failed" >&6; }
7852 else
7853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7854 printf "%s\n" "ok" >&6; }
7855 fi
7856
7857 # Response file support.
7858 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7859 nm_file_list_spec='@'
7860 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7861 nm_file_list_spec='@'
7862 fi
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7901 printf %s "checking for sysroot... " >&6; }
7902
7903 # Check whether --with-sysroot was given.
7904 if test ${with_sysroot+y}
7905 then :
7906 withval=$with_sysroot;
7907 else $as_nop
7908 with_sysroot=no
7909 fi
7910
7911
7912 lt_sysroot=
7913 case $with_sysroot in #(
7914 yes)
7915 if test yes = "$GCC"; then
7916 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7917 fi
7918 ;; #(
7919 /*)
7920 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7921 ;; #(
7922 no|'')
7923 ;; #(
7924 *)
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7926 printf "%s\n" "$with_sysroot" >&6; }
7927 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7928 ;;
7929 esac
7930
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7932 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7933
7934
7935
7936
7937
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7939 printf %s "checking for a working dd... " >&6; }
7940 if test ${ac_cv_path_lt_DD+y}
7941 then :
7942 printf %s "(cached) " >&6
7943 else $as_nop
7944 printf 0123456789abcdef0123456789abcdef >conftest.i
7945 cat conftest.i conftest.i >conftest2.i
7946 : ${lt_DD:=$DD}
7947 if test -z "$lt_DD"; then
7948 ac_path_lt_DD_found=false
7949 # Loop through the user's path and test for each of PROGNAME-LIST
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953 IFS=$as_save_IFS
7954 case $as_dir in #(((
7955 '') as_dir=./ ;;
7956 */) ;;
7957 *) as_dir=$as_dir/ ;;
7958 esac
7959 for ac_prog in dd
7960 do
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7963 as_fn_executable_p "$ac_path_lt_DD" || continue
7964 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7965 cmp -s conftest.i conftest.out \
7966 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7967 fi
7968 $ac_path_lt_DD_found && break 3
7969 done
7970 done
7971 done
7972 IFS=$as_save_IFS
7973 if test -z "$ac_cv_path_lt_DD"; then
7974 :
7975 fi
7976 else
7977 ac_cv_path_lt_DD=$lt_DD
7978 fi
7979
7980 rm -f conftest.i conftest2.i conftest.out
7981 fi
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7983 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7984
7985
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7987 printf %s "checking how to truncate binary pipes... " >&6; }
7988 if test ${lt_cv_truncate_bin+y}
7989 then :
7990 printf %s "(cached) " >&6
7991 else $as_nop
7992 printf 0123456789abcdef0123456789abcdef >conftest.i
7993 cat conftest.i conftest.i >conftest2.i
7994 lt_cv_truncate_bin=
7995 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7996 cmp -s conftest.i conftest.out \
7997 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7998 fi
7999 rm -f conftest.i conftest2.i conftest.out
8000 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8001 fi
8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8003 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8004
8005
8006
8007
8008
8009
8010
8011 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8012 func_cc_basename ()
8013 {
8014 for cc_temp in $*""; do
8015 case $cc_temp in
8016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8018 \-*) ;;
8019 *) break;;
8020 esac
8021 done
8022 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8023 }
8024
8025 # Check whether --enable-libtool-lock was given.
8026 if test ${enable_libtool_lock+y}
8027 then :
8028 enableval=$enable_libtool_lock;
8029 fi
8030
8031 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8032
8033 # Some flags need to be propagated to the compiler or linker for good
8034 # libtool support.
8035 case $host in
8036 ia64-*-hpux*)
8037 # Find out what ABI is being produced by ac_compile, and set mode
8038 # options accordingly.
8039 echo 'int i;' > conftest.$ac_ext
8040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8041 (eval $ac_compile) 2>&5
8042 ac_status=$?
8043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8044 test $ac_status = 0; }; then
8045 case `$FILECMD conftest.$ac_objext` in
8046 *ELF-32*)
8047 HPUX_IA64_MODE=32
8048 ;;
8049 *ELF-64*)
8050 HPUX_IA64_MODE=64
8051 ;;
8052 esac
8053 fi
8054 rm -rf conftest*
8055 ;;
8056 *-*-irix6*)
8057 # Find out what ABI is being produced by ac_compile, and set linker
8058 # options accordingly.
8059 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8061 (eval $ac_compile) 2>&5
8062 ac_status=$?
8063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8064 test $ac_status = 0; }; then
8065 if test yes = "$lt_cv_prog_gnu_ld"; then
8066 case `$FILECMD conftest.$ac_objext` in
8067 *32-bit*)
8068 LD="${LD-ld} -melf32bsmip"
8069 ;;
8070 *N32*)
8071 LD="${LD-ld} -melf32bmipn32"
8072 ;;
8073 *64-bit*)
8074 LD="${LD-ld} -melf64bmip"
8075 ;;
8076 esac
8077 else
8078 case `$FILECMD conftest.$ac_objext` in
8079 *32-bit*)
8080 LD="${LD-ld} -32"
8081 ;;
8082 *N32*)
8083 LD="${LD-ld} -n32"
8084 ;;
8085 *64-bit*)
8086 LD="${LD-ld} -64"
8087 ;;
8088 esac
8089 fi
8090 fi
8091 rm -rf conftest*
8092 ;;
8093
8094 mips64*-*linux*)
8095 # Find out what ABI is being produced by ac_compile, and set linker
8096 # options accordingly.
8097 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8099 (eval $ac_compile) 2>&5
8100 ac_status=$?
8101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8102 test $ac_status = 0; }; then
8103 emul=elf
8104 case `$FILECMD conftest.$ac_objext` in
8105 *32-bit*)
8106 emul="${emul}32"
8107 ;;
8108 *64-bit*)
8109 emul="${emul}64"
8110 ;;
8111 esac
8112 case `$FILECMD conftest.$ac_objext` in
8113 *MSB*)
8114 emul="${emul}btsmip"
8115 ;;
8116 *LSB*)
8117 emul="${emul}ltsmip"
8118 ;;
8119 esac
8120 case `$FILECMD conftest.$ac_objext` in
8121 *N32*)
8122 emul="${emul}n32"
8123 ;;
8124 esac
8125 LD="${LD-ld} -m $emul"
8126 fi
8127 rm -rf conftest*
8128 ;;
8129
8130 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8131 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8132 # Find out what ABI is being produced by ac_compile, and set linker
8133 # options accordingly. Note that the listed cases only cover the
8134 # situations where additional linker options are needed (such as when
8135 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8136 # vice versa); the common cases where no linker options are needed do
8137 # not appear in the list.
8138 echo 'int i;' > conftest.$ac_ext
8139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8140 (eval $ac_compile) 2>&5
8141 ac_status=$?
8142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8143 test $ac_status = 0; }; then
8144 case `$FILECMD conftest.o` in
8145 *32-bit*)
8146 case $host in
8147 x86_64-*kfreebsd*-gnu)
8148 LD="${LD-ld} -m elf_i386_fbsd"
8149 ;;
8150 x86_64-*linux*)
8151 case `$FILECMD conftest.o` in
8152 *x86-64*)
8153 LD="${LD-ld} -m elf32_x86_64"
8154 ;;
8155 *)
8156 LD="${LD-ld} -m elf_i386"
8157 ;;
8158 esac
8159 ;;
8160 powerpc64le-*linux*)
8161 LD="${LD-ld} -m elf32lppclinux"
8162 ;;
8163 powerpc64-*linux*)
8164 LD="${LD-ld} -m elf32ppclinux"
8165 ;;
8166 s390x-*linux*)
8167 LD="${LD-ld} -m elf_s390"
8168 ;;
8169 sparc64-*linux*)
8170 LD="${LD-ld} -m elf32_sparc"
8171 ;;
8172 esac
8173 ;;
8174 *64-bit*)
8175 case $host in
8176 x86_64-*kfreebsd*-gnu)
8177 LD="${LD-ld} -m elf_x86_64_fbsd"
8178 ;;
8179 x86_64-*linux*)
8180 LD="${LD-ld} -m elf_x86_64"
8181 ;;
8182 powerpcle-*linux*)
8183 LD="${LD-ld} -m elf64lppc"
8184 ;;
8185 powerpc-*linux*)
8186 LD="${LD-ld} -m elf64ppc"
8187 ;;
8188 s390*-*linux*|s390*-*tpf*)
8189 LD="${LD-ld} -m elf64_s390"
8190 ;;
8191 sparc*-*linux*)
8192 LD="${LD-ld} -m elf64_sparc"
8193 ;;
8194 esac
8195 ;;
8196 esac
8197 fi
8198 rm -rf conftest*
8199 ;;
8200
8201 *-*-sco3.2v5*)
8202 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8203 SAVE_CFLAGS=$CFLAGS
8204 CFLAGS="$CFLAGS -belf"
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8206 printf %s "checking whether the C compiler needs -belf... " >&6; }
8207 if test ${lt_cv_cc_needs_belf+y}
8208 then :
8209 printf %s "(cached) " >&6
8210 else $as_nop
8211 ac_ext=c
8212 ac_cpp='$CPP $CPPFLAGS'
8213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8216
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219
8220 int
8221 main (void)
8222 {
8223
8224 ;
8225 return 0;
8226 }
8227 _ACEOF
8228 if ac_fn_c_try_link "$LINENO"
8229 then :
8230 lt_cv_cc_needs_belf=yes
8231 else $as_nop
8232 lt_cv_cc_needs_belf=no
8233 fi
8234 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8235 conftest$ac_exeext conftest.$ac_ext
8236 ac_ext=c
8237 ac_cpp='$CPP $CPPFLAGS'
8238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8241
8242 fi
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8244 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8245 if test yes != "$lt_cv_cc_needs_belf"; then
8246 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8247 CFLAGS=$SAVE_CFLAGS
8248 fi
8249 ;;
8250 *-*solaris*)
8251 # Find out what ABI is being produced by ac_compile, and set linker
8252 # options accordingly.
8253 echo 'int i;' > conftest.$ac_ext
8254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8255 (eval $ac_compile) 2>&5
8256 ac_status=$?
8257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8258 test $ac_status = 0; }; then
8259 case `$FILECMD conftest.o` in
8260 *64-bit*)
8261 case $lt_cv_prog_gnu_ld in
8262 yes*)
8263 case $host in
8264 i?86-*-solaris*|x86_64-*-solaris*)
8265 LD="${LD-ld} -m elf_x86_64"
8266 ;;
8267 sparc*-*-solaris*)
8268 LD="${LD-ld} -m elf64_sparc"
8269 ;;
8270 esac
8271 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8272 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8273 LD=${LD-ld}_sol2
8274 fi
8275 ;;
8276 *)
8277 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8278 LD="${LD-ld} -64"
8279 fi
8280 ;;
8281 esac
8282 ;;
8283 esac
8284 fi
8285 rm -rf conftest*
8286 ;;
8287 esac
8288
8289 need_locks=$enable_libtool_lock
8290
8291 if test -n "$ac_tool_prefix"; then
8292 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8293 set dummy ${ac_tool_prefix}mt; ac_word=$2
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 printf %s "checking for $ac_word... " >&6; }
8296 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8297 then :
8298 printf %s "(cached) " >&6
8299 else $as_nop
8300 if test -n "$MANIFEST_TOOL"; then
8301 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306 IFS=$as_save_IFS
8307 case $as_dir in #(((
8308 '') as_dir=./ ;;
8309 */) ;;
8310 *) as_dir=$as_dir/ ;;
8311 esac
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8314 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8316 break 2
8317 fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8325 if test -n "$MANIFEST_TOOL"; then
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8327 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8328 else
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 printf "%s\n" "no" >&6; }
8331 fi
8332
8333
8334 fi
8335 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8336 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8337 # Extract the first word of "mt", so it can be a program name with args.
8338 set dummy mt; ac_word=$2
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 printf %s "checking for $ac_word... " >&6; }
8341 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8342 then :
8343 printf %s "(cached) " >&6
8344 else $as_nop
8345 if test -n "$ac_ct_MANIFEST_TOOL"; then
8346 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8347 else
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351 IFS=$as_save_IFS
8352 case $as_dir in #(((
8353 '') as_dir=./ ;;
8354 */) ;;
8355 *) as_dir=$as_dir/ ;;
8356 esac
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8359 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8361 break 2
8362 fi
8363 done
8364 done
8365 IFS=$as_save_IFS
8366
8367 fi
8368 fi
8369 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8370 if test -n "$ac_ct_MANIFEST_TOOL"; then
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8372 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8373 else
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 printf "%s\n" "no" >&6; }
8376 fi
8377
8378 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8379 MANIFEST_TOOL=":"
8380 else
8381 case $cross_compiling:$ac_tool_warned in
8382 yes:)
8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8384 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8385 ac_tool_warned=yes ;;
8386 esac
8387 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8388 fi
8389 else
8390 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8391 fi
8392
8393 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8395 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8396 if test ${lt_cv_path_mainfest_tool+y}
8397 then :
8398 printf %s "(cached) " >&6
8399 else $as_nop
8400 lt_cv_path_mainfest_tool=no
8401 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8402 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8403 cat conftest.err >&5
8404 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8405 lt_cv_path_mainfest_tool=yes
8406 fi
8407 rm -f conftest*
8408 fi
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8410 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8411 if test yes != "$lt_cv_path_mainfest_tool"; then
8412 MANIFEST_TOOL=:
8413 fi
8414
8415
8416
8417
8418
8419
8420 case $host_os in
8421 rhapsody* | darwin*)
8422 if test -n "$ac_tool_prefix"; then
8423 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8424 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 printf %s "checking for $ac_word... " >&6; }
8427 if test ${ac_cv_prog_DSYMUTIL+y}
8428 then :
8429 printf %s "(cached) " >&6
8430 else $as_nop
8431 if test -n "$DSYMUTIL"; then
8432 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8433 else
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8436 do
8437 IFS=$as_save_IFS
8438 case $as_dir in #(((
8439 '') as_dir=./ ;;
8440 */) ;;
8441 *) as_dir=$as_dir/ ;;
8442 esac
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 fi
8454 fi
8455 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8456 if test -n "$DSYMUTIL"; then
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8458 printf "%s\n" "$DSYMUTIL" >&6; }
8459 else
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 printf "%s\n" "no" >&6; }
8462 fi
8463
8464
8465 fi
8466 if test -z "$ac_cv_prog_DSYMUTIL"; then
8467 ac_ct_DSYMUTIL=$DSYMUTIL
8468 # Extract the first word of "dsymutil", so it can be a program name with args.
8469 set dummy dsymutil; ac_word=$2
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 printf %s "checking for $ac_word... " >&6; }
8472 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8473 then :
8474 printf %s "(cached) " >&6
8475 else $as_nop
8476 if test -n "$ac_ct_DSYMUTIL"; then
8477 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482 IFS=$as_save_IFS
8483 case $as_dir in #(((
8484 '') as_dir=./ ;;
8485 */) ;;
8486 *) as_dir=$as_dir/ ;;
8487 esac
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8490 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8492 break 2
8493 fi
8494 done
8495 done
8496 IFS=$as_save_IFS
8497
8498 fi
8499 fi
8500 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8501 if test -n "$ac_ct_DSYMUTIL"; then
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8503 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8504 else
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 printf "%s\n" "no" >&6; }
8507 fi
8508
8509 if test "x$ac_ct_DSYMUTIL" = x; then
8510 DSYMUTIL=":"
8511 else
8512 case $cross_compiling:$ac_tool_warned in
8513 yes:)
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8515 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8516 ac_tool_warned=yes ;;
8517 esac
8518 DSYMUTIL=$ac_ct_DSYMUTIL
8519 fi
8520 else
8521 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8522 fi
8523
8524 if test -n "$ac_tool_prefix"; then
8525 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8526 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 printf %s "checking for $ac_word... " >&6; }
8529 if test ${ac_cv_prog_NMEDIT+y}
8530 then :
8531 printf %s "(cached) " >&6
8532 else $as_nop
8533 if test -n "$NMEDIT"; then
8534 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539 IFS=$as_save_IFS
8540 case $as_dir in #(((
8541 '') as_dir=./ ;;
8542 */) ;;
8543 *) as_dir=$as_dir/ ;;
8544 esac
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8549 break 2
8550 fi
8551 done
8552 done
8553 IFS=$as_save_IFS
8554
8555 fi
8556 fi
8557 NMEDIT=$ac_cv_prog_NMEDIT
8558 if test -n "$NMEDIT"; then
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8560 printf "%s\n" "$NMEDIT" >&6; }
8561 else
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 printf "%s\n" "no" >&6; }
8564 fi
8565
8566
8567 fi
8568 if test -z "$ac_cv_prog_NMEDIT"; then
8569 ac_ct_NMEDIT=$NMEDIT
8570 # Extract the first word of "nmedit", so it can be a program name with args.
8571 set dummy nmedit; ac_word=$2
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 printf %s "checking for $ac_word... " >&6; }
8574 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8575 then :
8576 printf %s "(cached) " >&6
8577 else $as_nop
8578 if test -n "$ac_ct_NMEDIT"; then
8579 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8580 else
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584 IFS=$as_save_IFS
8585 case $as_dir in #(((
8586 '') as_dir=./ ;;
8587 */) ;;
8588 *) as_dir=$as_dir/ ;;
8589 esac
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596 done
8597 done
8598 IFS=$as_save_IFS
8599
8600 fi
8601 fi
8602 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8603 if test -n "$ac_ct_NMEDIT"; then
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8605 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8606 else
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 printf "%s\n" "no" >&6; }
8609 fi
8610
8611 if test "x$ac_ct_NMEDIT" = x; then
8612 NMEDIT=":"
8613 else
8614 case $cross_compiling:$ac_tool_warned in
8615 yes:)
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618 ac_tool_warned=yes ;;
8619 esac
8620 NMEDIT=$ac_ct_NMEDIT
8621 fi
8622 else
8623 NMEDIT="$ac_cv_prog_NMEDIT"
8624 fi
8625
8626 if test -n "$ac_tool_prefix"; then
8627 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8628 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630 printf %s "checking for $ac_word... " >&6; }
8631 if test ${ac_cv_prog_LIPO+y}
8632 then :
8633 printf %s "(cached) " >&6
8634 else $as_nop
8635 if test -n "$LIPO"; then
8636 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8637 else
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in $PATH
8640 do
8641 IFS=$as_save_IFS
8642 case $as_dir in #(((
8643 '') as_dir=./ ;;
8644 */) ;;
8645 *) as_dir=$as_dir/ ;;
8646 esac
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8649 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8651 break 2
8652 fi
8653 done
8654 done
8655 IFS=$as_save_IFS
8656
8657 fi
8658 fi
8659 LIPO=$ac_cv_prog_LIPO
8660 if test -n "$LIPO"; then
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8662 printf "%s\n" "$LIPO" >&6; }
8663 else
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 printf "%s\n" "no" >&6; }
8666 fi
8667
8668
8669 fi
8670 if test -z "$ac_cv_prog_LIPO"; then
8671 ac_ct_LIPO=$LIPO
8672 # Extract the first word of "lipo", so it can be a program name with args.
8673 set dummy lipo; ac_word=$2
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 printf %s "checking for $ac_word... " >&6; }
8676 if test ${ac_cv_prog_ac_ct_LIPO+y}
8677 then :
8678 printf %s "(cached) " >&6
8679 else $as_nop
8680 if test -n "$ac_ct_LIPO"; then
8681 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686 IFS=$as_save_IFS
8687 case $as_dir in #(((
8688 '') as_dir=./ ;;
8689 */) ;;
8690 *) as_dir=$as_dir/ ;;
8691 esac
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8694 ac_cv_prog_ac_ct_LIPO="lipo"
8695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8696 break 2
8697 fi
8698 done
8699 done
8700 IFS=$as_save_IFS
8701
8702 fi
8703 fi
8704 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8705 if test -n "$ac_ct_LIPO"; then
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8707 printf "%s\n" "$ac_ct_LIPO" >&6; }
8708 else
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 printf "%s\n" "no" >&6; }
8711 fi
8712
8713 if test "x$ac_ct_LIPO" = x; then
8714 LIPO=":"
8715 else
8716 case $cross_compiling:$ac_tool_warned in
8717 yes:)
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8720 ac_tool_warned=yes ;;
8721 esac
8722 LIPO=$ac_ct_LIPO
8723 fi
8724 else
8725 LIPO="$ac_cv_prog_LIPO"
8726 fi
8727
8728 if test -n "$ac_tool_prefix"; then
8729 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}otool; ac_word=$2
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 printf %s "checking for $ac_word... " >&6; }
8733 if test ${ac_cv_prog_OTOOL+y}
8734 then :
8735 printf %s "(cached) " >&6
8736 else $as_nop
8737 if test -n "$OTOOL"; then
8738 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743 IFS=$as_save_IFS
8744 case $as_dir in #(((
8745 '') as_dir=./ ;;
8746 */) ;;
8747 *) as_dir=$as_dir/ ;;
8748 esac
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8751 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8753 break 2
8754 fi
8755 done
8756 done
8757 IFS=$as_save_IFS
8758
8759 fi
8760 fi
8761 OTOOL=$ac_cv_prog_OTOOL
8762 if test -n "$OTOOL"; then
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8764 printf "%s\n" "$OTOOL" >&6; }
8765 else
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 printf "%s\n" "no" >&6; }
8768 fi
8769
8770
8771 fi
8772 if test -z "$ac_cv_prog_OTOOL"; then
8773 ac_ct_OTOOL=$OTOOL
8774 # Extract the first word of "otool", so it can be a program name with args.
8775 set dummy otool; ac_word=$2
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 printf %s "checking for $ac_word... " >&6; }
8778 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8779 then :
8780 printf %s "(cached) " >&6
8781 else $as_nop
8782 if test -n "$ac_ct_OTOOL"; then
8783 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8784 else
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8787 do
8788 IFS=$as_save_IFS
8789 case $as_dir in #(((
8790 '') as_dir=./ ;;
8791 */) ;;
8792 *) as_dir=$as_dir/ ;;
8793 esac
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_ac_ct_OTOOL="otool"
8797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8798 break 2
8799 fi
8800 done
8801 done
8802 IFS=$as_save_IFS
8803
8804 fi
8805 fi
8806 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8807 if test -n "$ac_ct_OTOOL"; then
8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8809 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8810 else
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 printf "%s\n" "no" >&6; }
8813 fi
8814
8815 if test "x$ac_ct_OTOOL" = x; then
8816 OTOOL=":"
8817 else
8818 case $cross_compiling:$ac_tool_warned in
8819 yes:)
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822 ac_tool_warned=yes ;;
8823 esac
8824 OTOOL=$ac_ct_OTOOL
8825 fi
8826 else
8827 OTOOL="$ac_cv_prog_OTOOL"
8828 fi
8829
8830 if test -n "$ac_tool_prefix"; then
8831 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8832 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 printf %s "checking for $ac_word... " >&6; }
8835 if test ${ac_cv_prog_OTOOL64+y}
8836 then :
8837 printf %s "(cached) " >&6
8838 else $as_nop
8839 if test -n "$OTOOL64"; then
8840 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8844 do
8845 IFS=$as_save_IFS
8846 case $as_dir in #(((
8847 '') as_dir=./ ;;
8848 */) ;;
8849 *) as_dir=$as_dir/ ;;
8850 esac
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8853 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8855 break 2
8856 fi
8857 done
8858 done
8859 IFS=$as_save_IFS
8860
8861 fi
8862 fi
8863 OTOOL64=$ac_cv_prog_OTOOL64
8864 if test -n "$OTOOL64"; then
8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8866 printf "%s\n" "$OTOOL64" >&6; }
8867 else
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 printf "%s\n" "no" >&6; }
8870 fi
8871
8872
8873 fi
8874 if test -z "$ac_cv_prog_OTOOL64"; then
8875 ac_ct_OTOOL64=$OTOOL64
8876 # Extract the first word of "otool64", so it can be a program name with args.
8877 set dummy otool64; ac_word=$2
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 printf %s "checking for $ac_word... " >&6; }
8880 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8881 then :
8882 printf %s "(cached) " >&6
8883 else $as_nop
8884 if test -n "$ac_ct_OTOOL64"; then
8885 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8889 do
8890 IFS=$as_save_IFS
8891 case $as_dir in #(((
8892 '') as_dir=./ ;;
8893 */) ;;
8894 *) as_dir=$as_dir/ ;;
8895 esac
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8898 ac_cv_prog_ac_ct_OTOOL64="otool64"
8899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8900 break 2
8901 fi
8902 done
8903 done
8904 IFS=$as_save_IFS
8905
8906 fi
8907 fi
8908 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8909 if test -n "$ac_ct_OTOOL64"; then
8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8911 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8912 else
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 printf "%s\n" "no" >&6; }
8915 fi
8916
8917 if test "x$ac_ct_OTOOL64" = x; then
8918 OTOOL64=":"
8919 else
8920 case $cross_compiling:$ac_tool_warned in
8921 yes:)
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8924 ac_tool_warned=yes ;;
8925 esac
8926 OTOOL64=$ac_ct_OTOOL64
8927 fi
8928 else
8929 OTOOL64="$ac_cv_prog_OTOOL64"
8930 fi
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8959 printf %s "checking for -single_module linker flag... " >&6; }
8960 if test ${lt_cv_apple_cc_single_mod+y}
8961 then :
8962 printf %s "(cached) " >&6
8963 else $as_nop
8964 lt_cv_apple_cc_single_mod=no
8965 if test -z "$LT_MULTI_MODULE"; then
8966 # By default we will add the -single_module flag. You can override
8967 # by either setting the environment variable LT_MULTI_MODULE
8968 # non-empty at configure time, or by adding -multi_module to the
8969 # link flags.
8970 rm -rf libconftest.dylib*
8971 echo "int foo(void){return 1;}" > conftest.c
8972 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8973 -dynamiclib -Wl,-single_module conftest.c" >&5
8974 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8975 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8976 _lt_result=$?
8977 # If there is a non-empty error log, and "single_module"
8978 # appears in it, assume the flag caused a linker warning
8979 if test -s conftest.err && $GREP single_module conftest.err; then
8980 cat conftest.err >&5
8981 # Otherwise, if the output was created with a 0 exit code from
8982 # the compiler, it worked.
8983 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8984 lt_cv_apple_cc_single_mod=yes
8985 else
8986 cat conftest.err >&5
8987 fi
8988 rm -rf libconftest.dylib*
8989 rm -f conftest.*
8990 fi
8991 fi
8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8993 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8994
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8996 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8997 if test ${lt_cv_ld_exported_symbols_list+y}
8998 then :
8999 printf %s "(cached) " >&6
9000 else $as_nop
9001 lt_cv_ld_exported_symbols_list=no
9002 save_LDFLAGS=$LDFLAGS
9003 echo "_main" > conftest.sym
9004 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007
9008 int
9009 main (void)
9010 {
9011
9012 ;
9013 return 0;
9014 }
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"
9017 then :
9018 lt_cv_ld_exported_symbols_list=yes
9019 else $as_nop
9020 lt_cv_ld_exported_symbols_list=no
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9023 conftest$ac_exeext conftest.$ac_ext
9024 LDFLAGS=$save_LDFLAGS
9025
9026 fi
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9028 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9029
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9031 printf %s "checking for -force_load linker flag... " >&6; }
9032 if test ${lt_cv_ld_force_load+y}
9033 then :
9034 printf %s "(cached) " >&6
9035 else $as_nop
9036 lt_cv_ld_force_load=no
9037 cat > conftest.c << _LT_EOF
9038 int forced_loaded() { return 2;}
9039 _LT_EOF
9040 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9041 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9042 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9043 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9044 echo "$RANLIB libconftest.a" >&5
9045 $RANLIB libconftest.a 2>&5
9046 cat > conftest.c << _LT_EOF
9047 int main() { return 0;}
9048 _LT_EOF
9049 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9050 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9051 _lt_result=$?
9052 if test -s conftest.err && $GREP force_load conftest.err; then
9053 cat conftest.err >&5
9054 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9055 lt_cv_ld_force_load=yes
9056 else
9057 cat conftest.err >&5
9058 fi
9059 rm -f conftest.err libconftest.a conftest conftest.c
9060 rm -rf conftest.dSYM
9061
9062 fi
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9064 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9065 case $host_os in
9066 rhapsody* | darwin1.[012])
9067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9068 darwin1.*)
9069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9070 darwin*)
9071 case $MACOSX_DEPLOYMENT_TARGET,$host in
9072 10.[012],*|,*powerpc*-darwin[5-8]*)
9073 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9074 *)
9075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9076 esac
9077 ;;
9078 esac
9079 if test yes = "$lt_cv_apple_cc_single_mod"; then
9080 _lt_dar_single_mod='$single_module'
9081 fi
9082 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9083 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9084 else
9085 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9086 fi
9087 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9088 _lt_dsymutil='~$DSYMUTIL $lib || :'
9089 else
9090 _lt_dsymutil=
9091 fi
9092 ;;
9093 esac
9094
9095 # func_munge_path_list VARIABLE PATH
9096 # -----------------------------------
9097 # VARIABLE is name of variable containing _space_ separated list of
9098 # directories to be munged by the contents of PATH, which is string
9099 # having a format:
9100 # "DIR[:DIR]:"
9101 # string "DIR[ DIR]" will be prepended to VARIABLE
9102 # ":DIR[:DIR]"
9103 # string "DIR[ DIR]" will be appended to VARIABLE
9104 # "DIRP[:DIRP]::[DIRA:]DIRA"
9105 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9106 # "DIRA[ DIRA]" will be appended to VARIABLE
9107 # "DIR[:DIR]"
9108 # VARIABLE will be replaced by "DIR[ DIR]"
9109 func_munge_path_list ()
9110 {
9111 case x$2 in
9112 x)
9113 ;;
9114 *:)
9115 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9116 ;;
9117 x:*)
9118 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9119 ;;
9120 *::*)
9121 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9122 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9123 ;;
9124 *)
9125 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9126 ;;
9127 esac
9128 }
9129
9130 ac_header= ac_cache=
9131 for ac_item in $ac_header_c_list
9132 do
9133 if test $ac_cache; then
9134 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9135 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9136 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9137 fi
9138 ac_header= ac_cache=
9139 elif test $ac_header; then
9140 ac_cache=$ac_item
9141 else
9142 ac_header=$ac_item
9143 fi
9144 done
9145
9146
9147
9148
9149
9150
9151
9152
9153 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9154 then :
9155
9156 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9157
9158 fi
9159 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9160 "
9161 if test "x$ac_cv_header_dlfcn_h" = xyes
9162 then :
9163 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9164
9165 fi
9166
9167
9168
9169
9170
9171 # Set options
9172 enable_win32_dll=yes
9173
9174 case $host in
9175 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9176 if test -n "$ac_tool_prefix"; then
9177 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9178 set dummy ${ac_tool_prefix}as; ac_word=$2
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 printf %s "checking for $ac_word... " >&6; }
9181 if test ${ac_cv_prog_AS+y}
9182 then :
9183 printf %s "(cached) " >&6
9184 else $as_nop
9185 if test -n "$AS"; then
9186 ac_cv_prog_AS="$AS" # Let the user override the test.
9187 else
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191 IFS=$as_save_IFS
9192 case $as_dir in #(((
9193 '') as_dir=./ ;;
9194 */) ;;
9195 *) as_dir=$as_dir/ ;;
9196 esac
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9199 ac_cv_prog_AS="${ac_tool_prefix}as"
9200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9201 break 2
9202 fi
9203 done
9204 done
9205 IFS=$as_save_IFS
9206
9207 fi
9208 fi
9209 AS=$ac_cv_prog_AS
9210 if test -n "$AS"; then
9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9212 printf "%s\n" "$AS" >&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
9219 fi
9220 if test -z "$ac_cv_prog_AS"; then
9221 ac_ct_AS=$AS
9222 # Extract the first word of "as", so it can be a program name with args.
9223 set dummy as; ac_word=$2
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 printf %s "checking for $ac_word... " >&6; }
9226 if test ${ac_cv_prog_ac_ct_AS+y}
9227 then :
9228 printf %s "(cached) " >&6
9229 else $as_nop
9230 if test -n "$ac_ct_AS"; then
9231 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9232 else
9233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 for as_dir in $PATH
9235 do
9236 IFS=$as_save_IFS
9237 case $as_dir in #(((
9238 '') as_dir=./ ;;
9239 */) ;;
9240 *) as_dir=$as_dir/ ;;
9241 esac
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9244 ac_cv_prog_ac_ct_AS="as"
9245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9246 break 2
9247 fi
9248 done
9249 done
9250 IFS=$as_save_IFS
9251
9252 fi
9253 fi
9254 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9255 if test -n "$ac_ct_AS"; then
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9257 printf "%s\n" "$ac_ct_AS" >&6; }
9258 else
9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 printf "%s\n" "no" >&6; }
9261 fi
9262
9263 if test "x$ac_ct_AS" = x; then
9264 AS="false"
9265 else
9266 case $cross_compiling:$ac_tool_warned in
9267 yes:)
9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9269 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9270 ac_tool_warned=yes ;;
9271 esac
9272 AS=$ac_ct_AS
9273 fi
9274 else
9275 AS="$ac_cv_prog_AS"
9276 fi
9277
9278 if test -n "$ac_tool_prefix"; then
9279 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9280 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 printf %s "checking for $ac_word... " >&6; }
9283 if test ${ac_cv_prog_DLLTOOL+y}
9284 then :
9285 printf %s "(cached) " >&6
9286 else $as_nop
9287 if test -n "$DLLTOOL"; then
9288 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9289 else
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 for as_dir in $PATH
9292 do
9293 IFS=$as_save_IFS
9294 case $as_dir in #(((
9295 '') as_dir=./ ;;
9296 */) ;;
9297 *) as_dir=$as_dir/ ;;
9298 esac
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9301 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9303 break 2
9304 fi
9305 done
9306 done
9307 IFS=$as_save_IFS
9308
9309 fi
9310 fi
9311 DLLTOOL=$ac_cv_prog_DLLTOOL
9312 if test -n "$DLLTOOL"; then
9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9314 printf "%s\n" "$DLLTOOL" >&6; }
9315 else
9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 printf "%s\n" "no" >&6; }
9318 fi
9319
9320
9321 fi
9322 if test -z "$ac_cv_prog_DLLTOOL"; then
9323 ac_ct_DLLTOOL=$DLLTOOL
9324 # Extract the first word of "dlltool", so it can be a program name with args.
9325 set dummy dlltool; ac_word=$2
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 printf %s "checking for $ac_word... " >&6; }
9328 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9329 then :
9330 printf %s "(cached) " >&6
9331 else $as_nop
9332 if test -n "$ac_ct_DLLTOOL"; then
9333 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9334 else
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 for as_dir in $PATH
9337 do
9338 IFS=$as_save_IFS
9339 case $as_dir in #(((
9340 '') as_dir=./ ;;
9341 */) ;;
9342 *) as_dir=$as_dir/ ;;
9343 esac
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9346 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9348 break 2
9349 fi
9350 done
9351 done
9352 IFS=$as_save_IFS
9353
9354 fi
9355 fi
9356 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9357 if test -n "$ac_ct_DLLTOOL"; then
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9359 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9360 else
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 printf "%s\n" "no" >&6; }
9363 fi
9364
9365 if test "x$ac_ct_DLLTOOL" = x; then
9366 DLLTOOL="false"
9367 else
9368 case $cross_compiling:$ac_tool_warned in
9369 yes:)
9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9372 ac_tool_warned=yes ;;
9373 esac
9374 DLLTOOL=$ac_ct_DLLTOOL
9375 fi
9376 else
9377 DLLTOOL="$ac_cv_prog_DLLTOOL"
9378 fi
9379
9380 if test -n "$ac_tool_prefix"; then
9381 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9382 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 printf %s "checking for $ac_word... " >&6; }
9385 if test ${ac_cv_prog_OBJDUMP+y}
9386 then :
9387 printf %s "(cached) " >&6
9388 else $as_nop
9389 if test -n "$OBJDUMP"; then
9390 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9391 else
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in $PATH
9394 do
9395 IFS=$as_save_IFS
9396 case $as_dir in #(((
9397 '') as_dir=./ ;;
9398 */) ;;
9399 *) as_dir=$as_dir/ ;;
9400 esac
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9403 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9405 break 2
9406 fi
9407 done
9408 done
9409 IFS=$as_save_IFS
9410
9411 fi
9412 fi
9413 OBJDUMP=$ac_cv_prog_OBJDUMP
9414 if test -n "$OBJDUMP"; then
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9416 printf "%s\n" "$OBJDUMP" >&6; }
9417 else
9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 printf "%s\n" "no" >&6; }
9420 fi
9421
9422
9423 fi
9424 if test -z "$ac_cv_prog_OBJDUMP"; then
9425 ac_ct_OBJDUMP=$OBJDUMP
9426 # Extract the first word of "objdump", so it can be a program name with args.
9427 set dummy objdump; ac_word=$2
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429 printf %s "checking for $ac_word... " >&6; }
9430 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9431 then :
9432 printf %s "(cached) " >&6
9433 else $as_nop
9434 if test -n "$ac_ct_OBJDUMP"; then
9435 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9436 else
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 for as_dir in $PATH
9439 do
9440 IFS=$as_save_IFS
9441 case $as_dir in #(((
9442 '') as_dir=./ ;;
9443 */) ;;
9444 *) as_dir=$as_dir/ ;;
9445 esac
9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9448 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9450 break 2
9451 fi
9452 done
9453 done
9454 IFS=$as_save_IFS
9455
9456 fi
9457 fi
9458 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9459 if test -n "$ac_ct_OBJDUMP"; then
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9461 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9462 else
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 printf "%s\n" "no" >&6; }
9465 fi
9466
9467 if test "x$ac_ct_OBJDUMP" = x; then
9468 OBJDUMP="false"
9469 else
9470 case $cross_compiling:$ac_tool_warned in
9471 yes:)
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9473 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9474 ac_tool_warned=yes ;;
9475 esac
9476 OBJDUMP=$ac_ct_OBJDUMP
9477 fi
9478 else
9479 OBJDUMP="$ac_cv_prog_OBJDUMP"
9480 fi
9481
9482 ;;
9483 esac
9484
9485 test -z "$AS" && AS=as
9486
9487
9488
9489
9490
9491 test -z "$DLLTOOL" && DLLTOOL=dlltool
9492
9493
9494
9495
9496
9497 test -z "$OBJDUMP" && OBJDUMP=objdump
9498
9499
9500
9501
9502
9503
9504
9505 enable_dlopen=no
9506
9507
9508
9509 # Check whether --enable-shared was given.
9510 if test ${enable_shared+y}
9511 then :
9512 enableval=$enable_shared; p=${PACKAGE-default}
9513 case $enableval in
9514 yes) enable_shared=yes ;;
9515 no) enable_shared=no ;;
9516 *)
9517 enable_shared=no
9518 # Look at the argument we got. We use all the common list separators.
9519 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9520 for pkg in $enableval; do
9521 IFS=$lt_save_ifs
9522 if test "X$pkg" = "X$p"; then
9523 enable_shared=yes
9524 fi
9525 done
9526 IFS=$lt_save_ifs
9527 ;;
9528 esac
9529 else $as_nop
9530 enable_shared=yes
9531 fi
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541 # Check whether --enable-static was given.
9542 if test ${enable_static+y}
9543 then :
9544 enableval=$enable_static; p=${PACKAGE-default}
9545 case $enableval in
9546 yes) enable_static=yes ;;
9547 no) enable_static=no ;;
9548 *)
9549 enable_static=no
9550 # Look at the argument we got. We use all the common list separators.
9551 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9552 for pkg in $enableval; do
9553 IFS=$lt_save_ifs
9554 if test "X$pkg" = "X$p"; then
9555 enable_static=yes
9556 fi
9557 done
9558 IFS=$lt_save_ifs
9559 ;;
9560 esac
9561 else $as_nop
9562 enable_static=yes
9563 fi
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574 # Check whether --with-pic was given.
9575 if test ${with_pic+y}
9576 then :
9577 withval=$with_pic; lt_p=${PACKAGE-default}
9578 case $withval in
9579 yes|no) pic_mode=$withval ;;
9580 *)
9581 pic_mode=default
9582 # Look at the argument we got. We use all the common list separators.
9583 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9584 for lt_pkg in $withval; do
9585 IFS=$lt_save_ifs
9586 if test "X$lt_pkg" = "X$lt_p"; then
9587 pic_mode=yes
9588 fi
9589 done
9590 IFS=$lt_save_ifs
9591 ;;
9592 esac
9593 else $as_nop
9594 pic_mode=default
9595 fi
9596
9597
9598
9599
9600
9601
9602
9603
9604 # Check whether --enable-fast-install was given.
9605 if test ${enable_fast_install+y}
9606 then :
9607 enableval=$enable_fast_install; p=${PACKAGE-default}
9608 case $enableval in
9609 yes) enable_fast_install=yes ;;
9610 no) enable_fast_install=no ;;
9611 *)
9612 enable_fast_install=no
9613 # Look at the argument we got. We use all the common list separators.
9614 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9615 for pkg in $enableval; do
9616 IFS=$lt_save_ifs
9617 if test "X$pkg" = "X$p"; then
9618 enable_fast_install=yes
9619 fi
9620 done
9621 IFS=$lt_save_ifs
9622 ;;
9623 esac
9624 else $as_nop
9625 enable_fast_install=yes
9626 fi
9627
9628
9629
9630
9631
9632
9633
9634
9635 shared_archive_member_spec=
9636 case $host,$enable_shared in
9637 power*-*-aix[5-9]*,yes)
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9639 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9640
9641 # Check whether --with-aix-soname was given.
9642 if test ${with_aix_soname+y}
9643 then :
9644 withval=$with_aix_soname; case $withval in
9645 aix|svr4|both)
9646 ;;
9647 *)
9648 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9649 ;;
9650 esac
9651 lt_cv_with_aix_soname=$with_aix_soname
9652 else $as_nop
9653 if test ${lt_cv_with_aix_soname+y}
9654 then :
9655 printf %s "(cached) " >&6
9656 else $as_nop
9657 lt_cv_with_aix_soname=aix
9658 fi
9659
9660 with_aix_soname=$lt_cv_with_aix_soname
9661 fi
9662
9663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9664 printf "%s\n" "$with_aix_soname" >&6; }
9665 if test aix != "$with_aix_soname"; then
9666 # For the AIX way of multilib, we name the shared archive member
9667 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9668 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9669 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9670 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9671 if test 64 = "${OBJECT_MODE-32}"; then
9672 shared_archive_member_spec=shr_64
9673 else
9674 shared_archive_member_spec=shr
9675 fi
9676 fi
9677 ;;
9678 *)
9679 with_aix_soname=aix
9680 ;;
9681 esac
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692 # This can be used to rebuild libtool when needed
9693 LIBTOOL_DEPS=$ltmain
9694
9695 # Always use our own libtool.
9696 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727 test -z "$LN_S" && LN_S="ln -s"
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742 if test -n "${ZSH_VERSION+set}"; then
9743 setopt NO_GLOB_SUBST
9744 fi
9745
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9747 printf %s "checking for objdir... " >&6; }
9748 if test ${lt_cv_objdir+y}
9749 then :
9750 printf %s "(cached) " >&6
9751 else $as_nop
9752 rm -f .libs 2>/dev/null
9753 mkdir .libs 2>/dev/null
9754 if test -d .libs; then
9755 lt_cv_objdir=.libs
9756 else
9757 # MS-DOS does not allow filenames that begin with a dot.
9758 lt_cv_objdir=_libs
9759 fi
9760 rmdir .libs 2>/dev/null
9761 fi
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9763 printf "%s\n" "$lt_cv_objdir" >&6; }
9764 objdir=$lt_cv_objdir
9765
9766
9767
9768
9769
9770 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9771
9772
9773
9774
9775 case $host_os in
9776 aix3*)
9777 # AIX sometimes has problems with the GCC collect2 program. For some
9778 # reason, if we set the COLLECT_NAMES environment variable, the problems
9779 # vanish in a puff of smoke.
9780 if test set != "${COLLECT_NAMES+set}"; then
9781 COLLECT_NAMES=
9782 export COLLECT_NAMES
9783 fi
9784 ;;
9785 esac
9786
9787 # Global variables:
9788 ofile=libtool
9789 can_build_shared=yes
9790
9791 # All known linkers require a '.a' archive for static linking (except MSVC and
9792 # ICC, which need '.lib').
9793 libext=a
9794
9795 with_gnu_ld=$lt_cv_prog_gnu_ld
9796
9797 old_CC=$CC
9798 old_CFLAGS=$CFLAGS
9799
9800 # Set sane defaults for various variables
9801 test -z "$CC" && CC=cc
9802 test -z "$LTCC" && LTCC=$CC
9803 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9804 test -z "$LD" && LD=ld
9805 test -z "$ac_objext" && ac_objext=o
9806
9807 func_cc_basename $compiler
9808 cc_basename=$func_cc_basename_result
9809
9810
9811 # Only perform the check for file, if the check method requires it
9812 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9813 case $deplibs_check_method in
9814 file_magic*)
9815 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9817 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9818 if test ${lt_cv_path_MAGIC_CMD+y}
9819 then :
9820 printf %s "(cached) " >&6
9821 else $as_nop
9822 case $MAGIC_CMD in
9823 [\\/*] | ?:[\\/]*)
9824 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9825 ;;
9826 *)
9827 lt_save_MAGIC_CMD=$MAGIC_CMD
9828 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9830 for ac_dir in $ac_dummy; do
9831 IFS=$lt_save_ifs
9832 test -z "$ac_dir" && ac_dir=.
9833 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9834 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9835 if test -n "$file_magic_test_file"; then
9836 case $deplibs_check_method in
9837 "file_magic "*)
9838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9839 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9841 $EGREP "$file_magic_regex" > /dev/null; then
9842 :
9843 else
9844 cat <<_LT_EOF 1>&2
9845
9846 *** Warning: the command libtool uses to detect shared libraries,
9847 *** $file_magic_cmd, produces output that libtool cannot recognize.
9848 *** The result is that libtool may fail to recognize shared libraries
9849 *** as such. This will affect the creation of libtool libraries that
9850 *** depend on shared libraries, but programs linked with such libtool
9851 *** libraries will work regardless of this problem. Nevertheless, you
9852 *** may want to report the problem to your system manager and/or to
9853 *** [email protected]
9854
9855 _LT_EOF
9856 fi ;;
9857 esac
9858 fi
9859 break
9860 fi
9861 done
9862 IFS=$lt_save_ifs
9863 MAGIC_CMD=$lt_save_MAGIC_CMD
9864 ;;
9865 esac
9866 fi
9867
9868 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9869 if test -n "$MAGIC_CMD"; then
9870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9871 printf "%s\n" "$MAGIC_CMD" >&6; }
9872 else
9873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874 printf "%s\n" "no" >&6; }
9875 fi
9876
9877
9878
9879
9880
9881 if test -z "$lt_cv_path_MAGIC_CMD"; then
9882 if test -n "$ac_tool_prefix"; then
9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9884 printf %s "checking for file... " >&6; }
9885 if test ${lt_cv_path_MAGIC_CMD+y}
9886 then :
9887 printf %s "(cached) " >&6
9888 else $as_nop
9889 case $MAGIC_CMD in
9890 [\\/*] | ?:[\\/]*)
9891 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9892 ;;
9893 *)
9894 lt_save_MAGIC_CMD=$MAGIC_CMD
9895 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9896 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9897 for ac_dir in $ac_dummy; do
9898 IFS=$lt_save_ifs
9899 test -z "$ac_dir" && ac_dir=.
9900 if test -f "$ac_dir/file"; then
9901 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9902 if test -n "$file_magic_test_file"; then
9903 case $deplibs_check_method in
9904 "file_magic "*)
9905 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9906 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9907 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9908 $EGREP "$file_magic_regex" > /dev/null; then
9909 :
9910 else
9911 cat <<_LT_EOF 1>&2
9912
9913 *** Warning: the command libtool uses to detect shared libraries,
9914 *** $file_magic_cmd, produces output that libtool cannot recognize.
9915 *** The result is that libtool may fail to recognize shared libraries
9916 *** as such. This will affect the creation of libtool libraries that
9917 *** depend on shared libraries, but programs linked with such libtool
9918 *** libraries will work regardless of this problem. Nevertheless, you
9919 *** may want to report the problem to your system manager and/or to
9920 *** [email protected]
9921
9922 _LT_EOF
9923 fi ;;
9924 esac
9925 fi
9926 break
9927 fi
9928 done
9929 IFS=$lt_save_ifs
9930 MAGIC_CMD=$lt_save_MAGIC_CMD
9931 ;;
9932 esac
9933 fi
9934
9935 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9936 if test -n "$MAGIC_CMD"; then
9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9938 printf "%s\n" "$MAGIC_CMD" >&6; }
9939 else
9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941 printf "%s\n" "no" >&6; }
9942 fi
9943
9944
9945 else
9946 MAGIC_CMD=:
9947 fi
9948 fi
9949
9950 fi
9951 ;;
9952 esac
9953
9954 # Use C for the default configuration in the libtool script
9955
9956 lt_save_CC=$CC
9957 ac_ext=c
9958 ac_cpp='$CPP $CPPFLAGS'
9959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9962
9963
9964 # Source file extension for C test sources.
9965 ac_ext=c
9966
9967 # Object file extension for compiled C test sources.
9968 objext=o
9969 objext=$objext
9970
9971 # Code to be used in simple compile tests
9972 lt_simple_compile_test_code="int some_variable = 0;"
9973
9974 # Code to be used in simple link tests
9975 lt_simple_link_test_code='int main(){return(0);}'
9976
9977
9978
9979
9980
9981
9982
9983 # If no C compiler was specified, use CC.
9984 LTCC=${LTCC-"$CC"}
9985
9986 # If no C compiler flags were specified, use CFLAGS.
9987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9988
9989 # Allow CC to be a program name with arguments.
9990 compiler=$CC
9991
9992 # Save the default compiler, since it gets overwritten when the other
9993 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9994 compiler_DEFAULT=$CC
9995
9996 # save warnings/boilerplate of simple test code
9997 ac_outfile=conftest.$ac_objext
9998 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9999 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10000 _lt_compiler_boilerplate=`cat conftest.err`
10001 $RM conftest*
10002
10003 ac_outfile=conftest.$ac_objext
10004 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10005 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10006 _lt_linker_boilerplate=`cat conftest.err`
10007 $RM -r conftest*
10008
10009
10010 ## CAVEAT EMPTOR:
10011 ## There is no encapsulation within the following macros, do not change
10012 ## the running order or otherwise move them around unless you know exactly
10013 ## what you are doing...
10014 if test -n "$compiler"; then
10015
10016 lt_prog_compiler_no_builtin_flag=
10017
10018 if test yes = "$GCC"; then
10019 case $cc_basename in
10020 nvcc*)
10021 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10022 *)
10023 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10024 esac
10025
10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10027 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10028 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10029 then :
10030 printf %s "(cached) " >&6
10031 else $as_nop
10032 lt_cv_prog_compiler_rtti_exceptions=no
10033 ac_outfile=conftest.$ac_objext
10034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10035 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10036 # Insert the option either (1) after the last *FLAGS variable, or
10037 # (2) before a word containing "conftest.", or (3) at the end.
10038 # Note that $ac_compile itself does not contain backslashes and begins
10039 # with a dollar sign (not a hyphen), so the echo should work correctly.
10040 # The option is referenced via a variable to avoid confusing sed.
10041 lt_compile=`echo "$ac_compile" | $SED \
10042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10044 -e 's:$: $lt_compiler_flag:'`
10045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10046 (eval "$lt_compile" 2>conftest.err)
10047 ac_status=$?
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 if (exit $ac_status) && test -s "$ac_outfile"; then
10051 # The compiler can only warn and ignore the option if not recognized
10052 # So say no if there are warnings other than the usual output.
10053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10055 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10056 lt_cv_prog_compiler_rtti_exceptions=yes
10057 fi
10058 fi
10059 $RM conftest*
10060
10061 fi
10062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10063 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10064
10065 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10066 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10067 else
10068 :
10069 fi
10070
10071 fi
10072
10073
10074
10075
10076
10077
10078 lt_prog_compiler_wl=
10079 lt_prog_compiler_pic=
10080 lt_prog_compiler_static=
10081
10082
10083 if test yes = "$GCC"; then
10084 lt_prog_compiler_wl='-Wl,'
10085 lt_prog_compiler_static='-static'
10086
10087 case $host_os in
10088 aix*)
10089 # All AIX code is PIC.
10090 if test ia64 = "$host_cpu"; then
10091 # AIX 5 now supports IA64 processor
10092 lt_prog_compiler_static='-Bstatic'
10093 fi
10094 lt_prog_compiler_pic='-fPIC'
10095 ;;
10096
10097 amigaos*)
10098 case $host_cpu in
10099 powerpc)
10100 # see comment about AmigaOS4 .so support
10101 lt_prog_compiler_pic='-fPIC'
10102 ;;
10103 m68k)
10104 # FIXME: we need at least 68020 code to build shared libraries, but
10105 # adding the '-m68020' flag to GCC prevents building anything better,
10106 # like '-m68040'.
10107 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10108 ;;
10109 esac
10110 ;;
10111
10112 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10113 # PIC is the default for these OSes.
10114 ;;
10115
10116 mingw* | cygwin* | pw32* | os2* | cegcc*)
10117 # This hack is so that the source file can tell whether it is being
10118 # built for inclusion in a dll (and should export symbols for example).
10119 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10120 # (--disable-auto-import) libraries
10121 lt_prog_compiler_pic='-DDLL_EXPORT'
10122 case $host_os in
10123 os2*)
10124 lt_prog_compiler_static='$wl-static'
10125 ;;
10126 esac
10127 ;;
10128
10129 darwin* | rhapsody*)
10130 # PIC is the default on this platform
10131 # Common symbols not allowed in MH_DYLIB files
10132 lt_prog_compiler_pic='-fno-common'
10133 ;;
10134
10135 haiku*)
10136 # PIC is the default for Haiku.
10137 # The "-static" flag exists, but is broken.
10138 lt_prog_compiler_static=
10139 ;;
10140
10141 hpux*)
10142 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10143 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10144 # sets the default TLS model and affects inlining.
10145 case $host_cpu in
10146 hppa*64*)
10147 # +Z the default
10148 ;;
10149 *)
10150 lt_prog_compiler_pic='-fPIC'
10151 ;;
10152 esac
10153 ;;
10154
10155 interix[3-9]*)
10156 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10157 # Instead, we relocate shared libraries at runtime.
10158 ;;
10159
10160 msdosdjgpp*)
10161 # Just because we use GCC doesn't mean we suddenly get shared libraries
10162 # on systems that don't support them.
10163 lt_prog_compiler_can_build_shared=no
10164 enable_shared=no
10165 ;;
10166
10167 *nto* | *qnx*)
10168 # QNX uses GNU C++, but need to define -shared option too, otherwise
10169 # it will coredump.
10170 lt_prog_compiler_pic='-fPIC -shared'
10171 ;;
10172
10173 sysv4*MP*)
10174 if test -d /usr/nec; then
10175 lt_prog_compiler_pic=-Kconform_pic
10176 fi
10177 ;;
10178
10179 *)
10180 lt_prog_compiler_pic='-fPIC'
10181 ;;
10182 esac
10183
10184 case $cc_basename in
10185 nvcc*) # Cuda Compiler Driver 2.2
10186 lt_prog_compiler_wl='-Xlinker '
10187 if test -n "$lt_prog_compiler_pic"; then
10188 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10189 fi
10190 ;;
10191 esac
10192 else
10193 # PORTME Check for flag to pass linker flags through the system compiler.
10194 case $host_os in
10195 aix*)
10196 lt_prog_compiler_wl='-Wl,'
10197 if test ia64 = "$host_cpu"; then
10198 # AIX 5 now supports IA64 processor
10199 lt_prog_compiler_static='-Bstatic'
10200 else
10201 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10202 fi
10203 ;;
10204
10205 darwin* | rhapsody*)
10206 # PIC is the default on this platform
10207 # Common symbols not allowed in MH_DYLIB files
10208 lt_prog_compiler_pic='-fno-common'
10209 case $cc_basename in
10210 nagfor*)
10211 # NAG Fortran compiler
10212 lt_prog_compiler_wl='-Wl,-Wl,,'
10213 lt_prog_compiler_pic='-PIC'
10214 lt_prog_compiler_static='-Bstatic'
10215 ;;
10216 esac
10217 ;;
10218
10219 mingw* | cygwin* | pw32* | os2* | cegcc*)
10220 # This hack is so that the source file can tell whether it is being
10221 # built for inclusion in a dll (and should export symbols for example).
10222 lt_prog_compiler_pic='-DDLL_EXPORT'
10223 case $host_os in
10224 os2*)
10225 lt_prog_compiler_static='$wl-static'
10226 ;;
10227 esac
10228 ;;
10229
10230 hpux9* | hpux10* | hpux11*)
10231 lt_prog_compiler_wl='-Wl,'
10232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10233 # not for PA HP-UX.
10234 case $host_cpu in
10235 hppa*64*|ia64*)
10236 # +Z the default
10237 ;;
10238 *)
10239 lt_prog_compiler_pic='+Z'
10240 ;;
10241 esac
10242 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10243 lt_prog_compiler_static='$wl-a ${wl}archive'
10244 ;;
10245
10246 irix5* | irix6* | nonstopux*)
10247 lt_prog_compiler_wl='-Wl,'
10248 # PIC (with -KPIC) is the default.
10249 lt_prog_compiler_static='-non_shared'
10250 ;;
10251
10252 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10253 case $cc_basename in
10254 # old Intel for x86_64, which still supported -KPIC.
10255 ecc*)
10256 lt_prog_compiler_wl='-Wl,'
10257 lt_prog_compiler_pic='-KPIC'
10258 lt_prog_compiler_static='-static'
10259 ;;
10260 # icc used to be incompatible with GCC.
10261 # ICC 10 doesn't accept -KPIC any more.
10262 icc* | ifort*)
10263 lt_prog_compiler_wl='-Wl,'
10264 lt_prog_compiler_pic='-fPIC'
10265 lt_prog_compiler_static='-static'
10266 ;;
10267 # Lahey Fortran 8.1.
10268 lf95*)
10269 lt_prog_compiler_wl='-Wl,'
10270 lt_prog_compiler_pic='--shared'
10271 lt_prog_compiler_static='--static'
10272 ;;
10273 nagfor*)
10274 # NAG Fortran compiler
10275 lt_prog_compiler_wl='-Wl,-Wl,,'
10276 lt_prog_compiler_pic='-PIC'
10277 lt_prog_compiler_static='-Bstatic'
10278 ;;
10279 tcc*)
10280 # Fabrice Bellard et al's Tiny C Compiler
10281 lt_prog_compiler_wl='-Wl,'
10282 lt_prog_compiler_pic='-fPIC'
10283 lt_prog_compiler_static='-static'
10284 ;;
10285 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10286 # Portland Group compilers (*not* the Pentium gcc compiler,
10287 # which looks to be a dead project)
10288 lt_prog_compiler_wl='-Wl,'
10289 lt_prog_compiler_pic='-fpic'
10290 lt_prog_compiler_static='-Bstatic'
10291 ;;
10292 ccc*)
10293 lt_prog_compiler_wl='-Wl,'
10294 # All Alpha code is PIC.
10295 lt_prog_compiler_static='-non_shared'
10296 ;;
10297 xl* | bgxl* | bgf* | mpixl*)
10298 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10299 lt_prog_compiler_wl='-Wl,'
10300 lt_prog_compiler_pic='-qpic'
10301 lt_prog_compiler_static='-qstaticlink'
10302 ;;
10303 *)
10304 case `$CC -V 2>&1 | $SED 5q` in
10305 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10306 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10307 lt_prog_compiler_pic='-KPIC'
10308 lt_prog_compiler_static='-Bstatic'
10309 lt_prog_compiler_wl=''
10310 ;;
10311 *Sun\ F* | *Sun*Fortran*)
10312 lt_prog_compiler_pic='-KPIC'
10313 lt_prog_compiler_static='-Bstatic'
10314 lt_prog_compiler_wl='-Qoption ld '
10315 ;;
10316 *Sun\ C*)
10317 # Sun C 5.9
10318 lt_prog_compiler_pic='-KPIC'
10319 lt_prog_compiler_static='-Bstatic'
10320 lt_prog_compiler_wl='-Wl,'
10321 ;;
10322 *Intel*\ [CF]*Compiler*)
10323 lt_prog_compiler_wl='-Wl,'
10324 lt_prog_compiler_pic='-fPIC'
10325 lt_prog_compiler_static='-static'
10326 ;;
10327 *Portland\ Group*)
10328 lt_prog_compiler_wl='-Wl,'
10329 lt_prog_compiler_pic='-fpic'
10330 lt_prog_compiler_static='-Bstatic'
10331 ;;
10332 esac
10333 ;;
10334 esac
10335 ;;
10336
10337 newsos6)
10338 lt_prog_compiler_pic='-KPIC'
10339 lt_prog_compiler_static='-Bstatic'
10340 ;;
10341
10342 *nto* | *qnx*)
10343 # QNX uses GNU C++, but need to define -shared option too, otherwise
10344 # it will coredump.
10345 lt_prog_compiler_pic='-fPIC -shared'
10346 ;;
10347
10348 osf3* | osf4* | osf5*)
10349 lt_prog_compiler_wl='-Wl,'
10350 # All OSF/1 code is PIC.
10351 lt_prog_compiler_static='-non_shared'
10352 ;;
10353
10354 rdos*)
10355 lt_prog_compiler_static='-non_shared'
10356 ;;
10357
10358 solaris*)
10359 lt_prog_compiler_pic='-KPIC'
10360 lt_prog_compiler_static='-Bstatic'
10361 case $cc_basename in
10362 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10363 lt_prog_compiler_wl='-Qoption ld ';;
10364 *)
10365 lt_prog_compiler_wl='-Wl,';;
10366 esac
10367 ;;
10368
10369 sunos4*)
10370 lt_prog_compiler_wl='-Qoption ld '
10371 lt_prog_compiler_pic='-PIC'
10372 lt_prog_compiler_static='-Bstatic'
10373 ;;
10374
10375 sysv4 | sysv4.2uw2* | sysv4.3*)
10376 lt_prog_compiler_wl='-Wl,'
10377 lt_prog_compiler_pic='-KPIC'
10378 lt_prog_compiler_static='-Bstatic'
10379 ;;
10380
10381 sysv4*MP*)
10382 if test -d /usr/nec; then
10383 lt_prog_compiler_pic='-Kconform_pic'
10384 lt_prog_compiler_static='-Bstatic'
10385 fi
10386 ;;
10387
10388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10389 lt_prog_compiler_wl='-Wl,'
10390 lt_prog_compiler_pic='-KPIC'
10391 lt_prog_compiler_static='-Bstatic'
10392 ;;
10393
10394 unicos*)
10395 lt_prog_compiler_wl='-Wl,'
10396 lt_prog_compiler_can_build_shared=no
10397 ;;
10398
10399 uts4*)
10400 lt_prog_compiler_pic='-pic'
10401 lt_prog_compiler_static='-Bstatic'
10402 ;;
10403
10404 *)
10405 lt_prog_compiler_can_build_shared=no
10406 ;;
10407 esac
10408 fi
10409
10410 case $host_os in
10411 # For platforms that do not support PIC, -DPIC is meaningless:
10412 *djgpp*)
10413 lt_prog_compiler_pic=
10414 ;;
10415 *)
10416 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10417 ;;
10418 esac
10419
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10421 printf %s "checking for $compiler option to produce PIC... " >&6; }
10422 if test ${lt_cv_prog_compiler_pic+y}
10423 then :
10424 printf %s "(cached) " >&6
10425 else $as_nop
10426 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10427 fi
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10429 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10430 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10431
10432 #
10433 # Check to make sure the PIC flag actually works.
10434 #
10435 if test -n "$lt_prog_compiler_pic"; then
10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10437 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10438 if test ${lt_cv_prog_compiler_pic_works+y}
10439 then :
10440 printf %s "(cached) " >&6
10441 else $as_nop
10442 lt_cv_prog_compiler_pic_works=no
10443 ac_outfile=conftest.$ac_objext
10444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10445 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10446 # Insert the option either (1) after the last *FLAGS variable, or
10447 # (2) before a word containing "conftest.", or (3) at the end.
10448 # Note that $ac_compile itself does not contain backslashes and begins
10449 # with a dollar sign (not a hyphen), so the echo should work correctly.
10450 # The option is referenced via a variable to avoid confusing sed.
10451 lt_compile=`echo "$ac_compile" | $SED \
10452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10454 -e 's:$: $lt_compiler_flag:'`
10455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10456 (eval "$lt_compile" 2>conftest.err)
10457 ac_status=$?
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 if (exit $ac_status) && test -s "$ac_outfile"; then
10461 # The compiler can only warn and ignore the option if not recognized
10462 # So say no if there are warnings other than the usual output.
10463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10466 lt_cv_prog_compiler_pic_works=yes
10467 fi
10468 fi
10469 $RM conftest*
10470
10471 fi
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10473 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10474
10475 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10476 case $lt_prog_compiler_pic in
10477 "" | " "*) ;;
10478 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10479 esac
10480 else
10481 lt_prog_compiler_pic=
10482 lt_prog_compiler_can_build_shared=no
10483 fi
10484
10485 fi
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497 #
10498 # Check to make sure the static flag actually works.
10499 #
10500 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10502 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10503 if test ${lt_cv_prog_compiler_static_works+y}
10504 then :
10505 printf %s "(cached) " >&6
10506 else $as_nop
10507 lt_cv_prog_compiler_static_works=no
10508 save_LDFLAGS=$LDFLAGS
10509 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10510 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10512 # The linker can only warn and ignore the option if not recognized
10513 # So say no if there are warnings
10514 if test -s conftest.err; then
10515 # Append any errors to the config.log.
10516 cat conftest.err 1>&5
10517 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10519 if diff conftest.exp conftest.er2 >/dev/null; then
10520 lt_cv_prog_compiler_static_works=yes
10521 fi
10522 else
10523 lt_cv_prog_compiler_static_works=yes
10524 fi
10525 fi
10526 $RM -r conftest*
10527 LDFLAGS=$save_LDFLAGS
10528
10529 fi
10530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10531 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10532
10533 if test yes = "$lt_cv_prog_compiler_static_works"; then
10534 :
10535 else
10536 lt_prog_compiler_static=
10537 fi
10538
10539
10540
10541
10542
10543
10544
10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10546 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10547 if test ${lt_cv_prog_compiler_c_o+y}
10548 then :
10549 printf %s "(cached) " >&6
10550 else $as_nop
10551 lt_cv_prog_compiler_c_o=no
10552 $RM -r conftest 2>/dev/null
10553 mkdir conftest
10554 cd conftest
10555 mkdir out
10556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10557
10558 lt_compiler_flag="-o out/conftest2.$ac_objext"
10559 # Insert the option either (1) after the last *FLAGS variable, or
10560 # (2) before a word containing "conftest.", or (3) at the end.
10561 # Note that $ac_compile itself does not contain backslashes and begins
10562 # with a dollar sign (not a hyphen), so the echo should work correctly.
10563 lt_compile=`echo "$ac_compile" | $SED \
10564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10566 -e 's:$: $lt_compiler_flag:'`
10567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10568 (eval "$lt_compile" 2>out/conftest.err)
10569 ac_status=$?
10570 cat out/conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10573 then
10574 # The compiler can only warn and ignore the option if not recognized
10575 # So say no if there are warnings
10576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10579 lt_cv_prog_compiler_c_o=yes
10580 fi
10581 fi
10582 chmod u+w . 2>&5
10583 $RM conftest*
10584 # SGI C++ compiler will create directory out/ii_files/ for
10585 # template instantiation
10586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10587 $RM out/* && rmdir out
10588 cd ..
10589 $RM -r conftest
10590 $RM conftest*
10591
10592 fi
10593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10594 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10595
10596
10597
10598
10599
10600
10601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10602 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10603 if test ${lt_cv_prog_compiler_c_o+y}
10604 then :
10605 printf %s "(cached) " >&6
10606 else $as_nop
10607 lt_cv_prog_compiler_c_o=no
10608 $RM -r conftest 2>/dev/null
10609 mkdir conftest
10610 cd conftest
10611 mkdir out
10612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10613
10614 lt_compiler_flag="-o out/conftest2.$ac_objext"
10615 # Insert the option either (1) after the last *FLAGS variable, or
10616 # (2) before a word containing "conftest.", or (3) at the end.
10617 # Note that $ac_compile itself does not contain backslashes and begins
10618 # with a dollar sign (not a hyphen), so the echo should work correctly.
10619 lt_compile=`echo "$ac_compile" | $SED \
10620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10622 -e 's:$: $lt_compiler_flag:'`
10623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10624 (eval "$lt_compile" 2>out/conftest.err)
10625 ac_status=$?
10626 cat out/conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10629 then
10630 # The compiler can only warn and ignore the option if not recognized
10631 # So say no if there are warnings
10632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10635 lt_cv_prog_compiler_c_o=yes
10636 fi
10637 fi
10638 chmod u+w . 2>&5
10639 $RM conftest*
10640 # SGI C++ compiler will create directory out/ii_files/ for
10641 # template instantiation
10642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10643 $RM out/* && rmdir out
10644 cd ..
10645 $RM -r conftest
10646 $RM conftest*
10647
10648 fi
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10650 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10651
10652
10653
10654
10655 hard_links=nottested
10656 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10657 # do not overwrite the value of need_locks provided by the user
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10659 printf %s "checking if we can lock with hard links... " >&6; }
10660 hard_links=yes
10661 $RM conftest*
10662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10663 touch conftest.a
10664 ln conftest.a conftest.b 2>&5 || hard_links=no
10665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10667 printf "%s\n" "$hard_links" >&6; }
10668 if test no = "$hard_links"; then
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10670 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10671 need_locks=warn
10672 fi
10673 else
10674 need_locks=no
10675 fi
10676
10677
10678
10679
10680
10681
10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10683 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10684
10685 runpath_var=
10686 allow_undefined_flag=
10687 always_export_symbols=no
10688 archive_cmds=
10689 archive_expsym_cmds=
10690 compiler_needs_object=no
10691 enable_shared_with_static_runtimes=no
10692 export_dynamic_flag_spec=
10693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10694 hardcode_automatic=no
10695 hardcode_direct=no
10696 hardcode_direct_absolute=no
10697 hardcode_libdir_flag_spec=
10698 hardcode_libdir_separator=
10699 hardcode_minus_L=no
10700 hardcode_shlibpath_var=unsupported
10701 inherit_rpath=no
10702 link_all_deplibs=unknown
10703 module_cmds=
10704 module_expsym_cmds=
10705 old_archive_from_new_cmds=
10706 old_archive_from_expsyms_cmds=
10707 thread_safe_flag_spec=
10708 whole_archive_flag_spec=
10709 # include_expsyms should be a list of space-separated symbols to be *always*
10710 # included in the symbol list
10711 include_expsyms=
10712 # exclude_expsyms can be an extended regexp of symbols to exclude
10713 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10714 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10715 # as well as any symbol that contains 'd'.
10716 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10717 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10718 # platforms (ab)use it in PIC code, but their linkers get confused if
10719 # the symbol is explicitly referenced. Since portable code cannot
10720 # rely on this symbol name, it's probably fine to never include it in
10721 # preloaded symbol tables.
10722 # Exclude shared library initialization/finalization symbols.
10723 extract_expsyms_cmds=
10724
10725 case $host_os in
10726 cygwin* | mingw* | pw32* | cegcc*)
10727 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10728 # When not using gcc, we currently assume that we are using
10729 # Microsoft Visual C++ or Intel C++ Compiler.
10730 if test yes != "$GCC"; then
10731 with_gnu_ld=no
10732 fi
10733 ;;
10734 interix*)
10735 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10736 with_gnu_ld=yes
10737 ;;
10738 openbsd* | bitrig*)
10739 with_gnu_ld=no
10740 ;;
10741 esac
10742
10743 ld_shlibs=yes
10744
10745 # On some targets, GNU ld is compatible enough with the native linker
10746 # that we're better off using the native interface for both.
10747 lt_use_gnu_ld_interface=no
10748 if test yes = "$with_gnu_ld"; then
10749 case $host_os in
10750 aix*)
10751 # The AIX port of GNU ld has always aspired to compatibility
10752 # with the native linker. However, as the warning in the GNU ld
10753 # block says, versions before 2.19.5* couldn't really create working
10754 # shared libraries, regardless of the interface used.
10755 case `$LD -v 2>&1` in
10756 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10757 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10758 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10759 *)
10760 lt_use_gnu_ld_interface=yes
10761 ;;
10762 esac
10763 ;;
10764 *)
10765 lt_use_gnu_ld_interface=yes
10766 ;;
10767 esac
10768 fi
10769
10770 if test yes = "$lt_use_gnu_ld_interface"; then
10771 # If archive_cmds runs LD, not CC, wlarc should be empty
10772 wlarc='$wl'
10773
10774 # Set some defaults for GNU ld with shared library support. These
10775 # are reset later if shared libraries are not supported. Putting them
10776 # here allows them to be overridden if necessary.
10777 runpath_var=LD_RUN_PATH
10778 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10779 export_dynamic_flag_spec='$wl--export-dynamic'
10780 # ancient GNU ld didn't support --whole-archive et. al.
10781 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10782 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10783 else
10784 whole_archive_flag_spec=
10785 fi
10786 supports_anon_versioning=no
10787 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10788 *GNU\ gold*) supports_anon_versioning=yes ;;
10789 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10792 *\ 2.11.*) ;; # other 2.11 versions
10793 *) supports_anon_versioning=yes ;;
10794 esac
10795
10796 # See if GNU ld supports shared libraries.
10797 case $host_os in
10798 aix[3-9]*)
10799 # On AIX/PPC, the GNU linker is very broken
10800 if test ia64 != "$host_cpu"; then
10801 ld_shlibs=no
10802 cat <<_LT_EOF 1>&2
10803
10804 *** Warning: the GNU linker, at least up to release 2.19, is reported
10805 *** to be unable to reliably create shared libraries on AIX.
10806 *** Therefore, libtool is disabling shared libraries support. If you
10807 *** really care for shared libraries, you may want to install binutils
10808 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10809 *** You will then need to restart the configuration process.
10810
10811 _LT_EOF
10812 fi
10813 ;;
10814
10815 amigaos*)
10816 case $host_cpu in
10817 powerpc)
10818 # see comment about AmigaOS4 .so support
10819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10820 archive_expsym_cmds=''
10821 ;;
10822 m68k)
10823 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)'
10824 hardcode_libdir_flag_spec='-L$libdir'
10825 hardcode_minus_L=yes
10826 ;;
10827 esac
10828 ;;
10829
10830 beos*)
10831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10832 allow_undefined_flag=unsupported
10833 # Joseph Beckenbach <[email protected]> says some releases of gcc
10834 # support --undefined. This deserves some investigation. FIXME
10835 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10836 else
10837 ld_shlibs=no
10838 fi
10839 ;;
10840
10841 cygwin* | mingw* | pw32* | cegcc*)
10842 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10843 # as there is no search path for DLLs.
10844 hardcode_libdir_flag_spec='-L$libdir'
10845 export_dynamic_flag_spec='$wl--export-all-symbols'
10846 allow_undefined_flag=unsupported
10847 always_export_symbols=no
10848 enable_shared_with_static_runtimes=yes
10849 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'
10850 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10851
10852 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10854 # If the export-symbols file already is a .def file, use it as
10855 # is; otherwise, prepend EXPORTS...
10856 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10857 cp $export_symbols $output_objdir/$soname.def;
10858 else
10859 echo EXPORTS > $output_objdir/$soname.def;
10860 cat $export_symbols >> $output_objdir/$soname.def;
10861 fi~
10862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10863 else
10864 ld_shlibs=no
10865 fi
10866 ;;
10867
10868 haiku*)
10869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10870 link_all_deplibs=yes
10871 ;;
10872
10873 os2*)
10874 hardcode_libdir_flag_spec='-L$libdir'
10875 hardcode_minus_L=yes
10876 allow_undefined_flag=unsupported
10877 shrext_cmds=.dll
10878 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10879 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10880 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10881 $ECHO EXPORTS >> $output_objdir/$libname.def~
10882 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10883 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10884 emximp -o $lib $output_objdir/$libname.def'
10885 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10886 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10887 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10888 $ECHO EXPORTS >> $output_objdir/$libname.def~
10889 prefix_cmds="$SED"~
10890 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10891 prefix_cmds="$prefix_cmds -e 1d";
10892 fi~
10893 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10894 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10895 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10896 emximp -o $lib $output_objdir/$libname.def'
10897 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10898 enable_shared_with_static_runtimes=yes
10899 file_list_spec='@'
10900 ;;
10901
10902 interix[3-9]*)
10903 hardcode_direct=no
10904 hardcode_shlibpath_var=no
10905 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10906 export_dynamic_flag_spec='$wl-E'
10907 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10908 # Instead, shared libraries are loaded at an image base (0x10000000 by
10909 # default) and relocated if they conflict, which is a slow very memory
10910 # consuming and fragmenting process. To avoid this, we pick a random,
10911 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10912 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10914 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'
10915 ;;
10916
10917 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10918 tmp_diet=no
10919 if test linux-dietlibc = "$host_os"; then
10920 case $cc_basename in
10921 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10922 esac
10923 fi
10924 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10925 && test no = "$tmp_diet"
10926 then
10927 tmp_addflag=' $pic_flag'
10928 tmp_sharedflag='-shared'
10929 case $cc_basename,$host_cpu in
10930 pgcc*) # Portland Group C compiler
10931 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'
10932 tmp_addflag=' $pic_flag'
10933 ;;
10934 pgf77* | pgf90* | pgf95* | pgfortran*)
10935 # Portland Group f77 and f90 compilers
10936 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'
10937 tmp_addflag=' $pic_flag -Mnomain' ;;
10938 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10939 tmp_addflag=' -i_dynamic' ;;
10940 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10941 tmp_addflag=' -i_dynamic -nofor_main' ;;
10942 ifc* | ifort*) # Intel Fortran compiler
10943 tmp_addflag=' -nofor_main' ;;
10944 lf95*) # Lahey Fortran 8.1
10945 whole_archive_flag_spec=
10946 tmp_sharedflag='--shared' ;;
10947 nagfor*) # NAGFOR 5.3
10948 tmp_sharedflag='-Wl,-shared' ;;
10949 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10950 tmp_sharedflag='-qmkshrobj'
10951 tmp_addflag= ;;
10952 nvcc*) # Cuda Compiler Driver 2.2
10953 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'
10954 compiler_needs_object=yes
10955 ;;
10956 esac
10957 case `$CC -V 2>&1 | $SED 5q` in
10958 *Sun\ C*) # Sun C 5.9
10959 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'
10960 compiler_needs_object=yes
10961 tmp_sharedflag='-G' ;;
10962 *Sun\ F*) # Sun Fortran 8.3
10963 tmp_sharedflag='-G' ;;
10964 esac
10965 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10966
10967 if test yes = "$supports_anon_versioning"; then
10968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10969 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10970 echo "local: *; };" >> $output_objdir/$libname.ver~
10971 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10972 fi
10973
10974 case $cc_basename in
10975 tcc*)
10976 export_dynamic_flag_spec='-rdynamic'
10977 ;;
10978 xlf* | bgf* | bgxlf* | mpixlf*)
10979 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10980 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10981 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10982 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10983 if test yes = "$supports_anon_versioning"; then
10984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10985 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10986 echo "local: *; };" >> $output_objdir/$libname.ver~
10987 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10988 fi
10989 ;;
10990 esac
10991 else
10992 ld_shlibs=no
10993 fi
10994 ;;
10995
10996 netbsd*)
10997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10998 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10999 wlarc=
11000 else
11001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11002 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11003 fi
11004 ;;
11005
11006 solaris*)
11007 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11008 ld_shlibs=no
11009 cat <<_LT_EOF 1>&2
11010
11011 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11012 *** create shared libraries on Solaris systems. Therefore, libtool
11013 *** is disabling shared libraries support. We urge you to upgrade GNU
11014 *** binutils to release 2.9.1 or newer. Another option is to modify
11015 *** your PATH or compiler configuration so that the native linker is
11016 *** used, and then restart.
11017
11018 _LT_EOF
11019 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11020 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11021 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11022 else
11023 ld_shlibs=no
11024 fi
11025 ;;
11026
11027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11028 case `$LD -v 2>&1` in
11029 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11030 ld_shlibs=no
11031 cat <<_LT_EOF 1>&2
11032
11033 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11034 *** reliably create shared libraries on SCO systems. Therefore, libtool
11035 *** is disabling shared libraries support. We urge you to upgrade GNU
11036 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11037 *** your PATH or compiler configuration so that the native linker is
11038 *** used, and then restart.
11039
11040 _LT_EOF
11041 ;;
11042 *)
11043 # For security reasons, it is highly recommended that you always
11044 # use absolute paths for naming shared libraries, and exclude the
11045 # DT_RUNPATH tag from executables and libraries. But doing so
11046 # requires that you compile everything twice, which is a pain.
11047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11048 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11051 else
11052 ld_shlibs=no
11053 fi
11054 ;;
11055 esac
11056 ;;
11057
11058 sunos4*)
11059 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11060 wlarc=
11061 hardcode_direct=yes
11062 hardcode_shlibpath_var=no
11063 ;;
11064
11065 *)
11066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11067 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11068 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11069 else
11070 ld_shlibs=no
11071 fi
11072 ;;
11073 esac
11074
11075 if test no = "$ld_shlibs"; then
11076 runpath_var=
11077 hardcode_libdir_flag_spec=
11078 export_dynamic_flag_spec=
11079 whole_archive_flag_spec=
11080 fi
11081 else
11082 # PORTME fill in a description of your system's linker (not GNU ld)
11083 case $host_os in
11084 aix3*)
11085 allow_undefined_flag=unsupported
11086 always_export_symbols=yes
11087 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'
11088 # Note: this linker hardcodes the directories in LIBPATH if there
11089 # are no directories specified by -L.
11090 hardcode_minus_L=yes
11091 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11092 # Neither direct hardcoding nor static linking is supported with a
11093 # broken collect2.
11094 hardcode_direct=unsupported
11095 fi
11096 ;;
11097
11098 aix[4-9]*)
11099 if test ia64 = "$host_cpu"; then
11100 # On IA64, the linker does run time linking by default, so we don't
11101 # have to do anything special.
11102 aix_use_runtimelinking=no
11103 exp_sym_flag='-Bexport'
11104 no_entry_flag=
11105 else
11106 # If we're using GNU nm, then we don't want the "-C" option.
11107 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11108 # Without the "-l" option, or with the "-B" option, AIX nm treats
11109 # weak defined symbols like other global defined symbols, whereas
11110 # GNU nm marks them as "W".
11111 # While the 'weak' keyword is ignored in the Export File, we need
11112 # it in the Import File for the 'aix-soname' feature, so we have
11113 # to replace the "-B" option with "-P" for AIX nm.
11114 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11115 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'
11116 else
11117 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'
11118 fi
11119 aix_use_runtimelinking=no
11120
11121 # Test if we are trying to use run time linking or normal
11122 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11123 # have runtime linking enabled, and use it for executables.
11124 # For shared libraries, we enable/disable runtime linking
11125 # depending on the kind of the shared library created -
11126 # when "with_aix_soname,aix_use_runtimelinking" is:
11127 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11128 # "aix,yes" lib.so shared, rtl:yes, for executables
11129 # lib.a static archive
11130 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11131 # lib.a(lib.so.V) shared, rtl:no, for executables
11132 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11133 # lib.a(lib.so.V) shared, rtl:no
11134 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11135 # lib.a static archive
11136 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11137 for ld_flag in $LDFLAGS; do
11138 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11139 aix_use_runtimelinking=yes
11140 break
11141 fi
11142 done
11143 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11144 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11145 # so we don't have lib.a shared libs to link our executables.
11146 # We have to force runtime linking in this case.
11147 aix_use_runtimelinking=yes
11148 LDFLAGS="$LDFLAGS -Wl,-brtl"
11149 fi
11150 ;;
11151 esac
11152
11153 exp_sym_flag='-bexport'
11154 no_entry_flag='-bnoentry'
11155 fi
11156
11157 # When large executables or shared objects are built, AIX ld can
11158 # have problems creating the table of contents. If linking a library
11159 # or program results in "error TOC overflow" add -mminimal-toc to
11160 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11161 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11162
11163 archive_cmds=''
11164 hardcode_direct=yes
11165 hardcode_direct_absolute=yes
11166 hardcode_libdir_separator=':'
11167 link_all_deplibs=yes
11168 file_list_spec='$wl-f,'
11169 case $with_aix_soname,$aix_use_runtimelinking in
11170 aix,*) ;; # traditional, no import file
11171 svr4,* | *,yes) # use import file
11172 # The Import File defines what to hardcode.
11173 hardcode_direct=no
11174 hardcode_direct_absolute=no
11175 ;;
11176 esac
11177
11178 if test yes = "$GCC"; then
11179 case $host_os in aix4.[012]|aix4.[012].*)
11180 # We only want to do this on AIX 4.2 and lower, the check
11181 # below for broken collect2 doesn't work under 4.3+
11182 collect2name=`$CC -print-prog-name=collect2`
11183 if test -f "$collect2name" &&
11184 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11185 then
11186 # We have reworked collect2
11187 :
11188 else
11189 # We have old collect2
11190 hardcode_direct=unsupported
11191 # It fails to find uninstalled libraries when the uninstalled
11192 # path is not listed in the libpath. Setting hardcode_minus_L
11193 # to unsupported forces relinking
11194 hardcode_minus_L=yes
11195 hardcode_libdir_flag_spec='-L$libdir'
11196 hardcode_libdir_separator=
11197 fi
11198 ;;
11199 esac
11200 shared_flag='-shared'
11201 if test yes = "$aix_use_runtimelinking"; then
11202 shared_flag="$shared_flag "'$wl-G'
11203 fi
11204 # Need to ensure runtime linking is disabled for the traditional
11205 # shared library, or the linker may eventually find shared libraries
11206 # /with/ Import File - we do not want to mix them.
11207 shared_flag_aix='-shared'
11208 shared_flag_svr4='-shared $wl-G'
11209 else
11210 # not using gcc
11211 if test ia64 = "$host_cpu"; then
11212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11213 # chokes on -Wl,-G. The following line is correct:
11214 shared_flag='-G'
11215 else
11216 if test yes = "$aix_use_runtimelinking"; then
11217 shared_flag='$wl-G'
11218 else
11219 shared_flag='$wl-bM:SRE'
11220 fi
11221 shared_flag_aix='$wl-bM:SRE'
11222 shared_flag_svr4='$wl-G'
11223 fi
11224 fi
11225
11226 export_dynamic_flag_spec='$wl-bexpall'
11227 # It seems that -bexpall does not export symbols beginning with
11228 # underscore (_), so it is better to generate a list of symbols to export.
11229 always_export_symbols=yes
11230 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11231 # Warning - without using the other runtime loading flags (-brtl),
11232 # -berok will link without error, but may produce a broken library.
11233 allow_undefined_flag='-berok'
11234 # Determine the default libpath from the value encoded in an
11235 # empty executable.
11236 if test set = "${lt_cv_aix_libpath+set}"; then
11237 aix_libpath=$lt_cv_aix_libpath
11238 else
11239 if test ${lt_cv_aix_libpath_+y}
11240 then :
11241 printf %s "(cached) " >&6
11242 else $as_nop
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245
11246 int
11247 main (void)
11248 {
11249
11250 ;
11251 return 0;
11252 }
11253 _ACEOF
11254 if ac_fn_c_try_link "$LINENO"
11255 then :
11256
11257 lt_aix_libpath_sed='
11258 /Import File Strings/,/^$/ {
11259 /^0/ {
11260 s/^0 *\([^ ]*\) *$/\1/
11261 p
11262 }
11263 }'
11264 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11265 # Check for a 64-bit object if we didn't find anything.
11266 if test -z "$lt_cv_aix_libpath_"; then
11267 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11268 fi
11269 fi
11270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11271 conftest$ac_exeext conftest.$ac_ext
11272 if test -z "$lt_cv_aix_libpath_"; then
11273 lt_cv_aix_libpath_=/usr/lib:/lib
11274 fi
11275
11276 fi
11277
11278 aix_libpath=$lt_cv_aix_libpath_
11279 fi
11280
11281 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11282 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
11283 else
11284 if test ia64 = "$host_cpu"; then
11285 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11286 allow_undefined_flag="-z nodefs"
11287 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"
11288 else
11289 # Determine the default libpath from the value encoded in an
11290 # empty executable.
11291 if test set = "${lt_cv_aix_libpath+set}"; then
11292 aix_libpath=$lt_cv_aix_libpath
11293 else
11294 if test ${lt_cv_aix_libpath_+y}
11295 then :
11296 printf %s "(cached) " >&6
11297 else $as_nop
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11300
11301 int
11302 main (void)
11303 {
11304
11305 ;
11306 return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"
11310 then :
11311
11312 lt_aix_libpath_sed='
11313 /Import File Strings/,/^$/ {
11314 /^0/ {
11315 s/^0 *\([^ ]*\) *$/\1/
11316 p
11317 }
11318 }'
11319 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11320 # Check for a 64-bit object if we didn't find anything.
11321 if test -z "$lt_cv_aix_libpath_"; then
11322 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11323 fi
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11326 conftest$ac_exeext conftest.$ac_ext
11327 if test -z "$lt_cv_aix_libpath_"; then
11328 lt_cv_aix_libpath_=/usr/lib:/lib
11329 fi
11330
11331 fi
11332
11333 aix_libpath=$lt_cv_aix_libpath_
11334 fi
11335
11336 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11337 # Warning - without using the other run time loading flags,
11338 # -berok will link without error, but may produce a broken library.
11339 no_undefined_flag=' $wl-bernotok'
11340 allow_undefined_flag=' $wl-berok'
11341 if test yes = "$with_gnu_ld"; then
11342 # We only use this code for GNU lds that support --whole-archive.
11343 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11344 else
11345 # Exported symbols can be pulled into shared objects from archives
11346 whole_archive_flag_spec='$convenience'
11347 fi
11348 archive_cmds_need_lc=yes
11349 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11350 # -brtl affects multiple linker settings, -berok does not and is overridden later
11351 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11352 if test svr4 != "$with_aix_soname"; then
11353 # This is similar to how AIX traditionally builds its shared libraries.
11354 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'
11355 fi
11356 if test aix != "$with_aix_soname"; then
11357 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'
11358 else
11359 # used by -dlpreopen to get the symbols
11360 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11361 fi
11362 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11363 fi
11364 fi
11365 ;;
11366
11367 amigaos*)
11368 case $host_cpu in
11369 powerpc)
11370 # see comment about AmigaOS4 .so support
11371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11372 archive_expsym_cmds=''
11373 ;;
11374 m68k)
11375 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)'
11376 hardcode_libdir_flag_spec='-L$libdir'
11377 hardcode_minus_L=yes
11378 ;;
11379 esac
11380 ;;
11381
11382 bsdi[45]*)
11383 export_dynamic_flag_spec=-rdynamic
11384 ;;
11385
11386 cygwin* | mingw* | pw32* | cegcc*)
11387 # When not using gcc, we currently assume that we are using
11388 # Microsoft Visual C++ or Intel C++ Compiler.
11389 # hardcode_libdir_flag_spec is actually meaningless, as there is
11390 # no search path for DLLs.
11391 case $cc_basename in
11392 cl* | icl*)
11393 # Native MSVC or ICC
11394 hardcode_libdir_flag_spec=' '
11395 allow_undefined_flag=unsupported
11396 always_export_symbols=yes
11397 file_list_spec='@'
11398 # Tell ltmain to make .lib files, not .a files.
11399 libext=lib
11400 # Tell ltmain to make .dll files, not .so files.
11401 shrext_cmds=.dll
11402 # FIXME: Setting linknames here is a bad hack.
11403 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11404 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11405 cp "$export_symbols" "$output_objdir/$soname.def";
11406 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11407 else
11408 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11409 fi~
11410 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11411 linknames='
11412 # The linker will not automatically build a static lib if we build a DLL.
11413 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11414 enable_shared_with_static_runtimes=yes
11415 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11416 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11417 # Don't use ranlib
11418 old_postinstall_cmds='chmod 644 $oldlib'
11419 postlink_cmds='lt_outputfile="@OUTPUT@"~
11420 lt_tool_outputfile="@TOOL_OUTPUT@"~
11421 case $lt_outputfile in
11422 *.exe|*.EXE) ;;
11423 *)
11424 lt_outputfile=$lt_outputfile.exe
11425 lt_tool_outputfile=$lt_tool_outputfile.exe
11426 ;;
11427 esac~
11428 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11429 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11430 $RM "$lt_outputfile.manifest";
11431 fi'
11432 ;;
11433 *)
11434 # Assume MSVC and ICC wrapper
11435 hardcode_libdir_flag_spec=' '
11436 allow_undefined_flag=unsupported
11437 # Tell ltmain to make .lib files, not .a files.
11438 libext=lib
11439 # Tell ltmain to make .dll files, not .so files.
11440 shrext_cmds=.dll
11441 # FIXME: Setting linknames here is a bad hack.
11442 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11443 # The linker will automatically build a .lib file if we build a DLL.
11444 old_archive_from_new_cmds='true'
11445 # FIXME: Should let the user specify the lib program.
11446 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11447 enable_shared_with_static_runtimes=yes
11448 ;;
11449 esac
11450 ;;
11451
11452 darwin* | rhapsody*)
11453
11454
11455 archive_cmds_need_lc=no
11456 hardcode_direct=no
11457 hardcode_automatic=yes
11458 hardcode_shlibpath_var=unsupported
11459 if test yes = "$lt_cv_ld_force_load"; then
11460 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\"`'
11461
11462 else
11463 whole_archive_flag_spec=''
11464 fi
11465 link_all_deplibs=yes
11466 allow_undefined_flag=$_lt_dar_allow_undefined
11467 case $cc_basename in
11468 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11469 *) _lt_dar_can_shared=$GCC ;;
11470 esac
11471 if test yes = "$_lt_dar_can_shared"; then
11472 output_verbose_link_cmd=func_echo_all
11473 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11474 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11475 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"
11476 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"
11477
11478 else
11479 ld_shlibs=no
11480 fi
11481
11482 ;;
11483
11484 dgux*)
11485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11486 hardcode_libdir_flag_spec='-L$libdir'
11487 hardcode_shlibpath_var=no
11488 ;;
11489
11490 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11491 # support. Future versions do this automatically, but an explicit c++rt0.o
11492 # does not break anything, and helps significantly (at the cost of a little
11493 # extra space).
11494 freebsd2.2*)
11495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11496 hardcode_libdir_flag_spec='-R$libdir'
11497 hardcode_direct=yes
11498 hardcode_shlibpath_var=no
11499 ;;
11500
11501 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11502 freebsd2.*)
11503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11504 hardcode_direct=yes
11505 hardcode_minus_L=yes
11506 hardcode_shlibpath_var=no
11507 ;;
11508
11509 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11510 freebsd* | dragonfly* | midnightbsd*)
11511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11512 hardcode_libdir_flag_spec='-R$libdir'
11513 hardcode_direct=yes
11514 hardcode_shlibpath_var=no
11515 ;;
11516
11517 hpux9*)
11518 if test yes = "$GCC"; then
11519 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'
11520 else
11521 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'
11522 fi
11523 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11524 hardcode_libdir_separator=:
11525 hardcode_direct=yes
11526
11527 # hardcode_minus_L: Not really in the search PATH,
11528 # but as the default location of the library.
11529 hardcode_minus_L=yes
11530 export_dynamic_flag_spec='$wl-E'
11531 ;;
11532
11533 hpux10*)
11534 if test yes,no = "$GCC,$with_gnu_ld"; then
11535 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11536 else
11537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11538 fi
11539 if test no = "$with_gnu_ld"; then
11540 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11541 hardcode_libdir_separator=:
11542 hardcode_direct=yes
11543 hardcode_direct_absolute=yes
11544 export_dynamic_flag_spec='$wl-E'
11545 # hardcode_minus_L: Not really in the search PATH,
11546 # but as the default location of the library.
11547 hardcode_minus_L=yes
11548 fi
11549 ;;
11550
11551 hpux11*)
11552 if test yes,no = "$GCC,$with_gnu_ld"; then
11553 case $host_cpu in
11554 hppa*64*)
11555 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11556 ;;
11557 ia64*)
11558 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11559 ;;
11560 *)
11561 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11562 ;;
11563 esac
11564 else
11565 case $host_cpu in
11566 hppa*64*)
11567 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11568 ;;
11569 ia64*)
11570 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11571 ;;
11572 *)
11573
11574 # Older versions of the 11.00 compiler do not understand -b yet
11575 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11577 printf %s "checking if $CC understands -b... " >&6; }
11578 if test ${lt_cv_prog_compiler__b+y}
11579 then :
11580 printf %s "(cached) " >&6
11581 else $as_nop
11582 lt_cv_prog_compiler__b=no
11583 save_LDFLAGS=$LDFLAGS
11584 LDFLAGS="$LDFLAGS -b"
11585 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11587 # The linker can only warn and ignore the option if not recognized
11588 # So say no if there are warnings
11589 if test -s conftest.err; then
11590 # Append any errors to the config.log.
11591 cat conftest.err 1>&5
11592 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11594 if diff conftest.exp conftest.er2 >/dev/null; then
11595 lt_cv_prog_compiler__b=yes
11596 fi
11597 else
11598 lt_cv_prog_compiler__b=yes
11599 fi
11600 fi
11601 $RM -r conftest*
11602 LDFLAGS=$save_LDFLAGS
11603
11604 fi
11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11606 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11607
11608 if test yes = "$lt_cv_prog_compiler__b"; then
11609 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11610 else
11611 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11612 fi
11613
11614 ;;
11615 esac
11616 fi
11617 if test no = "$with_gnu_ld"; then
11618 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11619 hardcode_libdir_separator=:
11620
11621 case $host_cpu in
11622 hppa*64*|ia64*)
11623 hardcode_direct=no
11624 hardcode_shlibpath_var=no
11625 ;;
11626 *)
11627 hardcode_direct=yes
11628 hardcode_direct_absolute=yes
11629 export_dynamic_flag_spec='$wl-E'
11630
11631 # hardcode_minus_L: Not really in the search PATH,
11632 # but as the default location of the library.
11633 hardcode_minus_L=yes
11634 ;;
11635 esac
11636 fi
11637 ;;
11638
11639 irix5* | irix6* | nonstopux*)
11640 if test yes = "$GCC"; then
11641 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'
11642 # Try to use the -exported_symbol ld option, if it does not
11643 # work, assume that -exports_file does not work either and
11644 # implicitly export all symbols.
11645 # This should be the same for all languages, so no per-tag cache variable.
11646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11647 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11648 if test ${lt_cv_irix_exported_symbol+y}
11649 then :
11650 printf %s "(cached) " >&6
11651 else $as_nop
11652 save_LDFLAGS=$LDFLAGS
11653 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11656 int foo (void) { return 0; }
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"
11659 then :
11660 lt_cv_irix_exported_symbol=yes
11661 else $as_nop
11662 lt_cv_irix_exported_symbol=no
11663 fi
11664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11665 conftest$ac_exeext conftest.$ac_ext
11666 LDFLAGS=$save_LDFLAGS
11667 fi
11668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11669 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11670 if test yes = "$lt_cv_irix_exported_symbol"; then
11671 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'
11672 fi
11673 else
11674 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'
11675 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'
11676 fi
11677 archive_cmds_need_lc='no'
11678 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11679 hardcode_libdir_separator=:
11680 inherit_rpath=yes
11681 link_all_deplibs=yes
11682 ;;
11683
11684 linux*)
11685 case $cc_basename in
11686 tcc*)
11687 # Fabrice Bellard et al's Tiny C Compiler
11688 ld_shlibs=yes
11689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11690 ;;
11691 esac
11692 ;;
11693
11694 netbsd*)
11695 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11697 else
11698 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11699 fi
11700 hardcode_libdir_flag_spec='-R$libdir'
11701 hardcode_direct=yes
11702 hardcode_shlibpath_var=no
11703 ;;
11704
11705 newsos6)
11706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11707 hardcode_direct=yes
11708 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11709 hardcode_libdir_separator=:
11710 hardcode_shlibpath_var=no
11711 ;;
11712
11713 *nto* | *qnx*)
11714 ;;
11715
11716 openbsd* | bitrig*)
11717 if test -f /usr/libexec/ld.so; then
11718 hardcode_direct=yes
11719 hardcode_shlibpath_var=no
11720 hardcode_direct_absolute=yes
11721 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11722 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11723 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11724 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11725 export_dynamic_flag_spec='$wl-E'
11726 else
11727 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11728 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11729 fi
11730 else
11731 ld_shlibs=no
11732 fi
11733 ;;
11734
11735 os2*)
11736 hardcode_libdir_flag_spec='-L$libdir'
11737 hardcode_minus_L=yes
11738 allow_undefined_flag=unsupported
11739 shrext_cmds=.dll
11740 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11741 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11742 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11743 $ECHO EXPORTS >> $output_objdir/$libname.def~
11744 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11745 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11746 emximp -o $lib $output_objdir/$libname.def'
11747 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11748 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11749 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11750 $ECHO EXPORTS >> $output_objdir/$libname.def~
11751 prefix_cmds="$SED"~
11752 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11753 prefix_cmds="$prefix_cmds -e 1d";
11754 fi~
11755 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11756 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11757 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11758 emximp -o $lib $output_objdir/$libname.def'
11759 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11760 enable_shared_with_static_runtimes=yes
11761 file_list_spec='@'
11762 ;;
11763
11764 osf3*)
11765 if test yes = "$GCC"; then
11766 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11767 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'
11768 else
11769 allow_undefined_flag=' -expect_unresolved \*'
11770 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'
11771 fi
11772 archive_cmds_need_lc='no'
11773 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11774 hardcode_libdir_separator=:
11775 ;;
11776
11777 osf4* | osf5*) # as osf3* with the addition of -msym flag
11778 if test yes = "$GCC"; then
11779 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11780 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'
11781 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11782 else
11783 allow_undefined_flag=' -expect_unresolved \*'
11784 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'
11785 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~
11786 $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'
11787
11788 # Both c and cxx compiler support -rpath directly
11789 hardcode_libdir_flag_spec='-rpath $libdir'
11790 fi
11791 archive_cmds_need_lc='no'
11792 hardcode_libdir_separator=:
11793 ;;
11794
11795 solaris*)
11796 no_undefined_flag=' -z defs'
11797 if test yes = "$GCC"; then
11798 wlarc='$wl'
11799 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11800 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11801 $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'
11802 else
11803 case `$CC -V 2>&1` in
11804 *"Compilers 5.0"*)
11805 wlarc=''
11806 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11807 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11808 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11809 ;;
11810 *)
11811 wlarc='$wl'
11812 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11813 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11814 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11815 ;;
11816 esac
11817 fi
11818 hardcode_libdir_flag_spec='-R$libdir'
11819 hardcode_shlibpath_var=no
11820 case $host_os in
11821 solaris2.[0-5] | solaris2.[0-5].*) ;;
11822 *)
11823 # The compiler driver will combine and reorder linker options,
11824 # but understands '-z linker_flag'. GCC discards it without '$wl',
11825 # but is careful enough not to reorder.
11826 # Supported since Solaris 2.6 (maybe 2.5.1?)
11827 if test yes = "$GCC"; then
11828 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11829 else
11830 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11831 fi
11832 ;;
11833 esac
11834 link_all_deplibs=yes
11835 ;;
11836
11837 sunos4*)
11838 if test sequent = "$host_vendor"; then
11839 # Use $CC to link under sequent, because it throws in some extra .o
11840 # files that make .init and .fini sections work.
11841 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11842 else
11843 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11844 fi
11845 hardcode_libdir_flag_spec='-L$libdir'
11846 hardcode_direct=yes
11847 hardcode_minus_L=yes
11848 hardcode_shlibpath_var=no
11849 ;;
11850
11851 sysv4)
11852 case $host_vendor in
11853 sni)
11854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11855 hardcode_direct=yes # is this really true???
11856 ;;
11857 siemens)
11858 ## LD is ld it makes a PLAMLIB
11859 ## CC just makes a GrossModule.
11860 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11861 reload_cmds='$CC -r -o $output$reload_objs'
11862 hardcode_direct=no
11863 ;;
11864 motorola)
11865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11866 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11867 ;;
11868 esac
11869 runpath_var='LD_RUN_PATH'
11870 hardcode_shlibpath_var=no
11871 ;;
11872
11873 sysv4.3*)
11874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11875 hardcode_shlibpath_var=no
11876 export_dynamic_flag_spec='-Bexport'
11877 ;;
11878
11879 sysv4*MP*)
11880 if test -d /usr/nec; then
11881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11882 hardcode_shlibpath_var=no
11883 runpath_var=LD_RUN_PATH
11884 hardcode_runpath_var=yes
11885 ld_shlibs=yes
11886 fi
11887 ;;
11888
11889 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11890 no_undefined_flag='$wl-z,text'
11891 archive_cmds_need_lc=no
11892 hardcode_shlibpath_var=no
11893 runpath_var='LD_RUN_PATH'
11894
11895 if test yes = "$GCC"; then
11896 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11897 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11898 else
11899 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11900 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11901 fi
11902 ;;
11903
11904 sysv5* | sco3.2v5* | sco5v6*)
11905 # Note: We CANNOT use -z defs as we might desire, because we do not
11906 # link with -lc, and that would cause any symbols used from libc to
11907 # always be unresolved, which means just about no library would
11908 # ever link correctly. If we're not using GNU ld we use -z text
11909 # though, which does catch some bad symbols but isn't as heavy-handed
11910 # as -z defs.
11911 no_undefined_flag='$wl-z,text'
11912 allow_undefined_flag='$wl-z,nodefs'
11913 archive_cmds_need_lc=no
11914 hardcode_shlibpath_var=no
11915 hardcode_libdir_flag_spec='$wl-R,$libdir'
11916 hardcode_libdir_separator=':'
11917 link_all_deplibs=yes
11918 export_dynamic_flag_spec='$wl-Bexport'
11919 runpath_var='LD_RUN_PATH'
11920
11921 if test yes = "$GCC"; then
11922 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11923 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11924 else
11925 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11926 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11927 fi
11928 ;;
11929
11930 uts4*)
11931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11932 hardcode_libdir_flag_spec='-L$libdir'
11933 hardcode_shlibpath_var=no
11934 ;;
11935
11936 *)
11937 ld_shlibs=no
11938 ;;
11939 esac
11940
11941 if test sni = "$host_vendor"; then
11942 case $host in
11943 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11944 export_dynamic_flag_spec='$wl-Blargedynsym'
11945 ;;
11946 esac
11947 fi
11948 fi
11949
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11951 printf "%s\n" "$ld_shlibs" >&6; }
11952 test no = "$ld_shlibs" && can_build_shared=no
11953
11954 with_gnu_ld=$with_gnu_ld
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970 #
11971 # Do we need to explicitly link libc?
11972 #
11973 case "x$archive_cmds_need_lc" in
11974 x|xyes)
11975 # Assume -lc should be added
11976 archive_cmds_need_lc=yes
11977
11978 if test yes,yes = "$GCC,$enable_shared"; then
11979 case $archive_cmds in
11980 *'~'*)
11981 # FIXME: we may have to deal with multi-command sequences.
11982 ;;
11983 '$CC '*)
11984 # Test whether the compiler implicitly links with -lc since on some
11985 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11986 # to ld, don't add -lc before -lgcc.
11987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11988 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11989 if test ${lt_cv_archive_cmds_need_lc+y}
11990 then :
11991 printf %s "(cached) " >&6
11992 else $as_nop
11993 $RM conftest*
11994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11995
11996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11997 (eval $ac_compile) 2>&5
11998 ac_status=$?
11999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12000 test $ac_status = 0; } 2>conftest.err; then
12001 soname=conftest
12002 lib=conftest
12003 libobjs=conftest.$ac_objext
12004 deplibs=
12005 wl=$lt_prog_compiler_wl
12006 pic_flag=$lt_prog_compiler_pic
12007 compiler_flags=-v
12008 linker_flags=-v
12009 verstring=
12010 output_objdir=.
12011 libname=conftest
12012 lt_save_allow_undefined_flag=$allow_undefined_flag
12013 allow_undefined_flag=
12014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12015 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12016 ac_status=$?
12017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12018 test $ac_status = 0; }
12019 then
12020 lt_cv_archive_cmds_need_lc=no
12021 else
12022 lt_cv_archive_cmds_need_lc=yes
12023 fi
12024 allow_undefined_flag=$lt_save_allow_undefined_flag
12025 else
12026 cat conftest.err 1>&5
12027 fi
12028 $RM conftest*
12029
12030 fi
12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12032 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12033 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12034 ;;
12035 esac
12036 fi
12037 ;;
12038 esac
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12192 printf %s "checking dynamic linker characteristics... " >&6; }
12193
12194 if test yes = "$GCC"; then
12195 case $host_os in
12196 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12197 *) lt_awk_arg='/^libraries:/' ;;
12198 esac
12199 case $host_os in
12200 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12201 *) lt_sed_strip_eq='s|=/|/|g' ;;
12202 esac
12203 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12204 case $lt_search_path_spec in
12205 *\;*)
12206 # if the path contains ";" then we assume it to be the separator
12207 # otherwise default to the standard path separator (i.e. ":") - it is
12208 # assumed that no part of a normal pathname contains ";" but that should
12209 # okay in the real world where ";" in dirpaths is itself problematic.
12210 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12211 ;;
12212 *)
12213 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12214 ;;
12215 esac
12216 # Ok, now we have the path, separated by spaces, we can step through it
12217 # and add multilib dir if necessary...
12218 lt_tmp_lt_search_path_spec=
12219 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12220 # ...but if some path component already ends with the multilib dir we assume
12221 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12222 case "$lt_multi_os_dir; $lt_search_path_spec " in
12223 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12224 lt_multi_os_dir=
12225 ;;
12226 esac
12227 for lt_sys_path in $lt_search_path_spec; do
12228 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12229 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12230 elif test -n "$lt_multi_os_dir"; then
12231 test -d "$lt_sys_path" && \
12232 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12233 fi
12234 done
12235 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12236 BEGIN {RS = " "; FS = "/|\n";} {
12237 lt_foo = "";
12238 lt_count = 0;
12239 for (lt_i = NF; lt_i > 0; lt_i--) {
12240 if ($lt_i != "" && $lt_i != ".") {
12241 if ($lt_i == "..") {
12242 lt_count++;
12243 } else {
12244 if (lt_count == 0) {
12245 lt_foo = "/" $lt_i lt_foo;
12246 } else {
12247 lt_count--;
12248 }
12249 }
12250 }
12251 }
12252 if (lt_foo != "") { lt_freq[lt_foo]++; }
12253 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12254 }'`
12255 # AWK program above erroneously prepends '/' to C:/dos/paths
12256 # for these hosts.
12257 case $host_os in
12258 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12259 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12260 esac
12261 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12262 else
12263 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12264 fi
12265 library_names_spec=
12266 libname_spec='lib$name'
12267 soname_spec=
12268 shrext_cmds=.so
12269 postinstall_cmds=
12270 postuninstall_cmds=
12271 finish_cmds=
12272 finish_eval=
12273 shlibpath_var=
12274 shlibpath_overrides_runpath=unknown
12275 version_type=none
12276 dynamic_linker="$host_os ld.so"
12277 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12278 need_lib_prefix=unknown
12279 hardcode_into_libs=no
12280
12281 # when you set need_version to no, make sure it does not cause -set_version
12282 # flags to be left without arguments
12283 need_version=unknown
12284
12285
12286
12287 case $host_os in
12288 aix3*)
12289 version_type=linux # correct to gnu/linux during the next big refactor
12290 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12291 shlibpath_var=LIBPATH
12292
12293 # AIX 3 has no versioning support, so we append a major version to the name.
12294 soname_spec='$libname$release$shared_ext$major'
12295 ;;
12296
12297 aix[4-9]*)
12298 version_type=linux # correct to gnu/linux during the next big refactor
12299 need_lib_prefix=no
12300 need_version=no
12301 hardcode_into_libs=yes
12302 if test ia64 = "$host_cpu"; then
12303 # AIX 5 supports IA64
12304 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 else
12307 # With GCC up to 2.95.x, collect2 would create an import file
12308 # for dependence libraries. The import file would start with
12309 # the line '#! .'. This would cause the generated library to
12310 # depend on '.', always an invalid library. This was fixed in
12311 # development snapshots of GCC prior to 3.0.
12312 case $host_os in
12313 aix4 | aix4.[01] | aix4.[01].*)
12314 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12315 echo ' yes '
12316 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12317 :
12318 else
12319 can_build_shared=no
12320 fi
12321 ;;
12322 esac
12323 # Using Import Files as archive members, it is possible to support
12324 # filename-based versioning of shared library archives on AIX. While
12325 # this would work for both with and without runtime linking, it will
12326 # prevent static linking of such archives. So we do filename-based
12327 # shared library versioning with .so extension only, which is used
12328 # when both runtime linking and shared linking is enabled.
12329 # Unfortunately, runtime linking may impact performance, so we do
12330 # not want this to be the default eventually. Also, we use the
12331 # versioned .so libs for executables only if there is the -brtl
12332 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12333 # To allow for filename-based versioning support, we need to create
12334 # libNAME.so.V as an archive file, containing:
12335 # *) an Import File, referring to the versioned filename of the
12336 # archive as well as the shared archive member, telling the
12337 # bitwidth (32 or 64) of that shared object, and providing the
12338 # list of exported symbols of that shared object, eventually
12339 # decorated with the 'weak' keyword
12340 # *) the shared object with the F_LOADONLY flag set, to really avoid
12341 # it being seen by the linker.
12342 # At run time we better use the real file rather than another symlink,
12343 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12344
12345 case $with_aix_soname,$aix_use_runtimelinking in
12346 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12347 # soname into executable. Probably we can add versioning support to
12348 # collect2, so additional links can be useful in future.
12349 aix,yes) # traditional libtool
12350 dynamic_linker='AIX unversionable lib.so'
12351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12352 # instead of lib<name>.a to let people know that these are not
12353 # typical AIX shared libraries.
12354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12355 ;;
12356 aix,no) # traditional AIX only
12357 dynamic_linker='AIX lib.a(lib.so.V)'
12358 # We preserve .a as extension for shared libraries through AIX4.2
12359 # and later when we are not doing run time linking.
12360 library_names_spec='$libname$release.a $libname.a'
12361 soname_spec='$libname$release$shared_ext$major'
12362 ;;
12363 svr4,*) # full svr4 only
12364 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12365 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12366 # We do not specify a path in Import Files, so LIBPATH fires.
12367 shlibpath_overrides_runpath=yes
12368 ;;
12369 *,yes) # both, prefer svr4
12370 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12371 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12372 # unpreferred sharedlib libNAME.a needs extra handling
12373 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"'
12374 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"'
12375 # We do not specify a path in Import Files, so LIBPATH fires.
12376 shlibpath_overrides_runpath=yes
12377 ;;
12378 *,no) # both, prefer aix
12379 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12380 library_names_spec='$libname$release.a $libname.a'
12381 soname_spec='$libname$release$shared_ext$major'
12382 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12383 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)'
12384 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"'
12385 ;;
12386 esac
12387 shlibpath_var=LIBPATH
12388 fi
12389 ;;
12390
12391 amigaos*)
12392 case $host_cpu in
12393 powerpc)
12394 # Since July 2007 AmigaOS4 officially supports .so libraries.
12395 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12397 ;;
12398 m68k)
12399 library_names_spec='$libname.ixlibrary $libname.a'
12400 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12401 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'
12402 ;;
12403 esac
12404 ;;
12405
12406 beos*)
12407 library_names_spec='$libname$shared_ext'
12408 dynamic_linker="$host_os ld.so"
12409 shlibpath_var=LIBRARY_PATH
12410 ;;
12411
12412 bsdi[45]*)
12413 version_type=linux # correct to gnu/linux during the next big refactor
12414 need_version=no
12415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12416 soname_spec='$libname$release$shared_ext$major'
12417 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12418 shlibpath_var=LD_LIBRARY_PATH
12419 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12420 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12421 # the default ld.so.conf also contains /usr/contrib/lib and
12422 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12423 # libtool to hard-code these into programs
12424 ;;
12425
12426 cygwin* | mingw* | pw32* | cegcc*)
12427 version_type=windows
12428 shrext_cmds=.dll
12429 need_version=no
12430 need_lib_prefix=no
12431
12432 case $GCC,$cc_basename in
12433 yes,*)
12434 # gcc
12435 library_names_spec='$libname.dll.a'
12436 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12437 postinstall_cmds='base_file=`basename \$file`~
12438 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12439 dldir=$destdir/`dirname \$dlpath`~
12440 test -d \$dldir || mkdir -p \$dldir~
12441 $install_prog $dir/$dlname \$dldir/$dlname~
12442 chmod a+x \$dldir/$dlname~
12443 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12444 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12445 fi'
12446 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12447 dlpath=$dir/\$dldll~
12448 $RM \$dlpath'
12449 shlibpath_overrides_runpath=yes
12450
12451 case $host_os in
12452 cygwin*)
12453 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12454 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12455
12456 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12457 ;;
12458 mingw* | cegcc*)
12459 # MinGW DLLs use traditional 'lib' prefix
12460 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12461 ;;
12462 pw32*)
12463 # pw32 DLLs use 'pw' prefix rather than 'lib'
12464 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12465 ;;
12466 esac
12467 dynamic_linker='Win32 ld.exe'
12468 ;;
12469
12470 *,cl* | *,icl*)
12471 # Native MSVC or ICC
12472 libname_spec='$name'
12473 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12474 library_names_spec='$libname.dll.lib'
12475
12476 case $build_os in
12477 mingw*)
12478 sys_lib_search_path_spec=
12479 lt_save_ifs=$IFS
12480 IFS=';'
12481 for lt_path in $LIB
12482 do
12483 IFS=$lt_save_ifs
12484 # Let DOS variable expansion print the short 8.3 style file name.
12485 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12486 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12487 done
12488 IFS=$lt_save_ifs
12489 # Convert to MSYS style.
12490 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12491 ;;
12492 cygwin*)
12493 # Convert to unix form, then to dos form, then back to unix form
12494 # but this time dos style (no spaces!) so that the unix form looks
12495 # like /cygdrive/c/PROGRA~1:/cygdr...
12496 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12497 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12498 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12499 ;;
12500 *)
12501 sys_lib_search_path_spec=$LIB
12502 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12503 # It is most probably a Windows format PATH.
12504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12505 else
12506 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12507 fi
12508 # FIXME: find the short name or the path components, as spaces are
12509 # common. (e.g. "Program Files" -> "PROGRA~1")
12510 ;;
12511 esac
12512
12513 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12514 postinstall_cmds='base_file=`basename \$file`~
12515 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12516 dldir=$destdir/`dirname \$dlpath`~
12517 test -d \$dldir || mkdir -p \$dldir~
12518 $install_prog $dir/$dlname \$dldir/$dlname'
12519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12520 dlpath=$dir/\$dldll~
12521 $RM \$dlpath'
12522 shlibpath_overrides_runpath=yes
12523 dynamic_linker='Win32 link.exe'
12524 ;;
12525
12526 *)
12527 # Assume MSVC and ICC wrapper
12528 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12529 dynamic_linker='Win32 ld.exe'
12530 ;;
12531 esac
12532 # FIXME: first we should search . and the directory the executable is in
12533 shlibpath_var=PATH
12534 ;;
12535
12536 darwin* | rhapsody*)
12537 dynamic_linker="$host_os dyld"
12538 version_type=darwin
12539 need_lib_prefix=no
12540 need_version=no
12541 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12542 soname_spec='$libname$release$major$shared_ext'
12543 shlibpath_overrides_runpath=yes
12544 shlibpath_var=DYLD_LIBRARY_PATH
12545 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12546
12547 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12548 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12549 ;;
12550
12551 dgux*)
12552 version_type=linux # correct to gnu/linux during the next big refactor
12553 need_lib_prefix=no
12554 need_version=no
12555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12556 soname_spec='$libname$release$shared_ext$major'
12557 shlibpath_var=LD_LIBRARY_PATH
12558 ;;
12559
12560 freebsd* | dragonfly* | midnightbsd*)
12561 # DragonFly does not have aout. When/if they implement a new
12562 # versioning mechanism, adjust this.
12563 if test -x /usr/bin/objformat; then
12564 objformat=`/usr/bin/objformat`
12565 else
12566 case $host_os in
12567 freebsd[23].*) objformat=aout ;;
12568 *) objformat=elf ;;
12569 esac
12570 fi
12571 version_type=freebsd-$objformat
12572 case $version_type in
12573 freebsd-elf*)
12574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12575 soname_spec='$libname$release$shared_ext$major'
12576 need_version=no
12577 need_lib_prefix=no
12578 ;;
12579 freebsd-*)
12580 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12581 need_version=yes
12582 ;;
12583 esac
12584 shlibpath_var=LD_LIBRARY_PATH
12585 case $host_os in
12586 freebsd2.*)
12587 shlibpath_overrides_runpath=yes
12588 ;;
12589 freebsd3.[01]* | freebsdelf3.[01]*)
12590 shlibpath_overrides_runpath=yes
12591 hardcode_into_libs=yes
12592 ;;
12593 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12594 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12595 shlibpath_overrides_runpath=no
12596 hardcode_into_libs=yes
12597 ;;
12598 *) # from 4.6 on, and DragonFly
12599 shlibpath_overrides_runpath=yes
12600 hardcode_into_libs=yes
12601 ;;
12602 esac
12603 ;;
12604
12605 haiku*)
12606 version_type=linux # correct to gnu/linux during the next big refactor
12607 need_lib_prefix=no
12608 need_version=no
12609 dynamic_linker="$host_os runtime_loader"
12610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12611 soname_spec='$libname$release$shared_ext$major'
12612 shlibpath_var=LIBRARY_PATH
12613 shlibpath_overrides_runpath=no
12614 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12615 hardcode_into_libs=yes
12616 ;;
12617
12618 hpux9* | hpux10* | hpux11*)
12619 # Give a soname corresponding to the major version so that dld.sl refuses to
12620 # link against other versions.
12621 version_type=sunos
12622 need_lib_prefix=no
12623 need_version=no
12624 case $host_cpu in
12625 ia64*)
12626 shrext_cmds='.so'
12627 hardcode_into_libs=yes
12628 dynamic_linker="$host_os dld.so"
12629 shlibpath_var=LD_LIBRARY_PATH
12630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12632 soname_spec='$libname$release$shared_ext$major'
12633 if test 32 = "$HPUX_IA64_MODE"; then
12634 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12635 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12636 else
12637 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12638 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12639 fi
12640 ;;
12641 hppa*64*)
12642 shrext_cmds='.sl'
12643 hardcode_into_libs=yes
12644 dynamic_linker="$host_os dld.sl"
12645 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12648 soname_spec='$libname$release$shared_ext$major'
12649 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12651 ;;
12652 *)
12653 shrext_cmds='.sl'
12654 dynamic_linker="$host_os dld.sl"
12655 shlibpath_var=SHLIB_PATH
12656 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12658 soname_spec='$libname$release$shared_ext$major'
12659 ;;
12660 esac
12661 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12662 postinstall_cmds='chmod 555 $lib'
12663 # or fails outright, so override atomically:
12664 install_override_mode=555
12665 ;;
12666
12667 interix[3-9]*)
12668 version_type=linux # correct to gnu/linux during the next big refactor
12669 need_lib_prefix=no
12670 need_version=no
12671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12672 soname_spec='$libname$release$shared_ext$major'
12673 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12674 shlibpath_var=LD_LIBRARY_PATH
12675 shlibpath_overrides_runpath=no
12676 hardcode_into_libs=yes
12677 ;;
12678
12679 irix5* | irix6* | nonstopux*)
12680 case $host_os in
12681 nonstopux*) version_type=nonstopux ;;
12682 *)
12683 if test yes = "$lt_cv_prog_gnu_ld"; then
12684 version_type=linux # correct to gnu/linux during the next big refactor
12685 else
12686 version_type=irix
12687 fi ;;
12688 esac
12689 need_lib_prefix=no
12690 need_version=no
12691 soname_spec='$libname$release$shared_ext$major'
12692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12693 case $host_os in
12694 irix5* | nonstopux*)
12695 libsuff= shlibsuff=
12696 ;;
12697 *)
12698 case $LD in # libtool.m4 will add one of these switches to LD
12699 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12700 libsuff= shlibsuff= libmagic=32-bit;;
12701 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12702 libsuff=32 shlibsuff=N32 libmagic=N32;;
12703 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12704 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12705 *) libsuff= shlibsuff= libmagic=never-match;;
12706 esac
12707 ;;
12708 esac
12709 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12710 shlibpath_overrides_runpath=no
12711 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12712 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12713 hardcode_into_libs=yes
12714 ;;
12715
12716 # No shared lib support for Linux oldld, aout, or coff.
12717 linux*oldld* | linux*aout* | linux*coff*)
12718 dynamic_linker=no
12719 ;;
12720
12721 linux*android*)
12722 version_type=none # Android doesn't support versioned libraries.
12723 need_lib_prefix=no
12724 need_version=no
12725 library_names_spec='$libname$release$shared_ext'
12726 soname_spec='$libname$release$shared_ext'
12727 finish_cmds=
12728 shlibpath_var=LD_LIBRARY_PATH
12729 shlibpath_overrides_runpath=yes
12730
12731 # This implies no fast_install, which is unacceptable.
12732 # Some rework will be needed to allow for fast_install
12733 # before this can be enabled.
12734 hardcode_into_libs=yes
12735
12736 dynamic_linker='Android linker'
12737 # Don't embed -rpath directories since the linker doesn't support them.
12738 hardcode_libdir_flag_spec='-L$libdir'
12739 ;;
12740
12741 # This must be glibc/ELF.
12742 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12743 version_type=linux # correct to gnu/linux during the next big refactor
12744 need_lib_prefix=no
12745 need_version=no
12746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12747 soname_spec='$libname$release$shared_ext$major'
12748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12749 shlibpath_var=LD_LIBRARY_PATH
12750 shlibpath_overrides_runpath=no
12751
12752 # Some binutils ld are patched to set DT_RUNPATH
12753 if test ${lt_cv_shlibpath_overrides_runpath+y}
12754 then :
12755 printf %s "(cached) " >&6
12756 else $as_nop
12757 lt_cv_shlibpath_overrides_runpath=no
12758 save_LDFLAGS=$LDFLAGS
12759 save_libdir=$libdir
12760 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12761 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764
12765 int
12766 main (void)
12767 {
12768
12769 ;
12770 return 0;
12771 }
12772 _ACEOF
12773 if ac_fn_c_try_link "$LINENO"
12774 then :
12775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12776 then :
12777 lt_cv_shlibpath_overrides_runpath=yes
12778 fi
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LDFLAGS=$save_LDFLAGS
12783 libdir=$save_libdir
12784
12785 fi
12786
12787 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12788
12789 # This implies no fast_install, which is unacceptable.
12790 # Some rework will be needed to allow for fast_install
12791 # before this can be enabled.
12792 hardcode_into_libs=yes
12793
12794 # Add ABI-specific directories to the system library path.
12795 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12796
12797 # Ideally, we could use ldconfig to report *all* directores which are
12798 # searched for libraries, however this is still not possible. Aside from not
12799 # being certain /sbin/ldconfig is available, command
12800 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12801 # even though it is searched at run-time. Try to do the best guess by
12802 # appending ld.so.conf contents (and includes) to the search path.
12803 if test -f /etc/ld.so.conf; then
12804 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' ' '`
12805 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12806 fi
12807
12808 # We used to test for /lib/ld.so.1 and disable shared libraries on
12809 # powerpc, because MkLinux only supported shared libraries with the
12810 # GNU dynamic linker. Since this was broken with cross compilers,
12811 # most powerpc-linux boxes support dynamic linking these days and
12812 # people can always --disable-shared, the test was removed, and we
12813 # assume the GNU/Linux dynamic linker is in use.
12814 dynamic_linker='GNU/Linux ld.so'
12815 ;;
12816
12817 netbsd*)
12818 version_type=sunos
12819 need_lib_prefix=no
12820 need_version=no
12821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12822 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12824 dynamic_linker='NetBSD (a.out) ld.so'
12825 else
12826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12827 soname_spec='$libname$release$shared_ext$major'
12828 dynamic_linker='NetBSD ld.elf_so'
12829 fi
12830 shlibpath_var=LD_LIBRARY_PATH
12831 shlibpath_overrides_runpath=yes
12832 hardcode_into_libs=yes
12833 ;;
12834
12835 newsos6)
12836 version_type=linux # correct to gnu/linux during the next big refactor
12837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12838 shlibpath_var=LD_LIBRARY_PATH
12839 shlibpath_overrides_runpath=yes
12840 ;;
12841
12842 *nto* | *qnx*)
12843 version_type=qnx
12844 need_lib_prefix=no
12845 need_version=no
12846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12847 soname_spec='$libname$release$shared_ext$major'
12848 shlibpath_var=LD_LIBRARY_PATH
12849 shlibpath_overrides_runpath=no
12850 hardcode_into_libs=yes
12851 dynamic_linker='ldqnx.so'
12852 ;;
12853
12854 openbsd* | bitrig*)
12855 version_type=sunos
12856 sys_lib_dlsearch_path_spec=/usr/lib
12857 need_lib_prefix=no
12858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12859 need_version=no
12860 else
12861 need_version=yes
12862 fi
12863 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12865 shlibpath_var=LD_LIBRARY_PATH
12866 shlibpath_overrides_runpath=yes
12867 ;;
12868
12869 os2*)
12870 libname_spec='$name'
12871 version_type=windows
12872 shrext_cmds=.dll
12873 need_version=no
12874 need_lib_prefix=no
12875 # OS/2 can only load a DLL with a base name of 8 characters or less.
12876 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12877 v=$($ECHO $release$versuffix | tr -d .-);
12878 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12879 $ECHO $n$v`$shared_ext'
12880 library_names_spec='${libname}_dll.$libext'
12881 dynamic_linker='OS/2 ld.exe'
12882 shlibpath_var=BEGINLIBPATH
12883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12885 postinstall_cmds='base_file=`basename \$file`~
12886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12887 dldir=$destdir/`dirname \$dlpath`~
12888 test -d \$dldir || mkdir -p \$dldir~
12889 $install_prog $dir/$dlname \$dldir/$dlname~
12890 chmod a+x \$dldir/$dlname~
12891 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12892 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12893 fi'
12894 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12895 dlpath=$dir/\$dldll~
12896 $RM \$dlpath'
12897 ;;
12898
12899 osf3* | osf4* | osf5*)
12900 version_type=osf
12901 need_lib_prefix=no
12902 need_version=no
12903 soname_spec='$libname$release$shared_ext$major'
12904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12905 shlibpath_var=LD_LIBRARY_PATH
12906 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12908 ;;
12909
12910 rdos*)
12911 dynamic_linker=no
12912 ;;
12913
12914 solaris*)
12915 version_type=linux # correct to gnu/linux during the next big refactor
12916 need_lib_prefix=no
12917 need_version=no
12918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12919 soname_spec='$libname$release$shared_ext$major'
12920 shlibpath_var=LD_LIBRARY_PATH
12921 shlibpath_overrides_runpath=yes
12922 hardcode_into_libs=yes
12923 # ldd complains unless libraries are executable
12924 postinstall_cmds='chmod +x $lib'
12925 ;;
12926
12927 sunos4*)
12928 version_type=sunos
12929 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12930 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 shlibpath_overrides_runpath=yes
12933 if test yes = "$with_gnu_ld"; then
12934 need_lib_prefix=no
12935 fi
12936 need_version=yes
12937 ;;
12938
12939 sysv4 | sysv4.3*)
12940 version_type=linux # correct to gnu/linux during the next big refactor
12941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12942 soname_spec='$libname$release$shared_ext$major'
12943 shlibpath_var=LD_LIBRARY_PATH
12944 case $host_vendor in
12945 sni)
12946 shlibpath_overrides_runpath=no
12947 need_lib_prefix=no
12948 runpath_var=LD_RUN_PATH
12949 ;;
12950 siemens)
12951 need_lib_prefix=no
12952 ;;
12953 motorola)
12954 need_lib_prefix=no
12955 need_version=no
12956 shlibpath_overrides_runpath=no
12957 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12958 ;;
12959 esac
12960 ;;
12961
12962 sysv4*MP*)
12963 if test -d /usr/nec; then
12964 version_type=linux # correct to gnu/linux during the next big refactor
12965 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12966 soname_spec='$libname$shared_ext.$major'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 fi
12969 ;;
12970
12971 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12972 version_type=sco
12973 need_lib_prefix=no
12974 need_version=no
12975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12976 soname_spec='$libname$release$shared_ext$major'
12977 shlibpath_var=LD_LIBRARY_PATH
12978 shlibpath_overrides_runpath=yes
12979 hardcode_into_libs=yes
12980 if test yes = "$with_gnu_ld"; then
12981 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12982 else
12983 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12984 case $host_os in
12985 sco3.2v5*)
12986 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12987 ;;
12988 esac
12989 fi
12990 sys_lib_dlsearch_path_spec='/usr/lib'
12991 ;;
12992
12993 tpf*)
12994 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12995 version_type=linux # correct to gnu/linux during the next big refactor
12996 need_lib_prefix=no
12997 need_version=no
12998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12999 shlibpath_var=LD_LIBRARY_PATH
13000 shlibpath_overrides_runpath=no
13001 hardcode_into_libs=yes
13002 ;;
13003
13004 uts4*)
13005 version_type=linux # correct to gnu/linux during the next big refactor
13006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13007 soname_spec='$libname$release$shared_ext$major'
13008 shlibpath_var=LD_LIBRARY_PATH
13009 ;;
13010
13011 *)
13012 dynamic_linker=no
13013 ;;
13014 esac
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13016 printf "%s\n" "$dynamic_linker" >&6; }
13017 test no = "$dynamic_linker" && can_build_shared=no
13018
13019 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13020 if test yes = "$GCC"; then
13021 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13022 fi
13023
13024 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13025 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13026 fi
13027
13028 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13029 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13030 fi
13031
13032 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13033 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13034
13035 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13036 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13037
13038 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13039 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13138 printf %s "checking how to hardcode library paths into programs... " >&6; }
13139 hardcode_action=
13140 if test -n "$hardcode_libdir_flag_spec" ||
13141 test -n "$runpath_var" ||
13142 test yes = "$hardcode_automatic"; then
13143
13144 # We can hardcode non-existent directories.
13145 if test no != "$hardcode_direct" &&
13146 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13147 # have to relink, otherwise we might link with an installed library
13148 # when we should be linking with a yet-to-be-installed one
13149 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13150 test no != "$hardcode_minus_L"; then
13151 # Linking always hardcodes the temporary library directory.
13152 hardcode_action=relink
13153 else
13154 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13155 hardcode_action=immediate
13156 fi
13157 else
13158 # We cannot hardcode anything, or else we can only hardcode existing
13159 # directories.
13160 hardcode_action=unsupported
13161 fi
13162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13163 printf "%s\n" "$hardcode_action" >&6; }
13164
13165 if test relink = "$hardcode_action" ||
13166 test yes = "$inherit_rpath"; then
13167 # Fast installation is not supported
13168 enable_fast_install=no
13169 elif test yes = "$shlibpath_overrides_runpath" ||
13170 test no = "$enable_shared"; then
13171 # Fast installation is not necessary
13172 enable_fast_install=needless
13173 fi
13174
13175
13176
13177
13178
13179
13180 if test yes != "$enable_dlopen"; then
13181 enable_dlopen=unknown
13182 enable_dlopen_self=unknown
13183 enable_dlopen_self_static=unknown
13184 else
13185 lt_cv_dlopen=no
13186 lt_cv_dlopen_libs=
13187
13188 case $host_os in
13189 beos*)
13190 lt_cv_dlopen=load_add_on
13191 lt_cv_dlopen_libs=
13192 lt_cv_dlopen_self=yes
13193 ;;
13194
13195 mingw* | pw32* | cegcc*)
13196 lt_cv_dlopen=LoadLibrary
13197 lt_cv_dlopen_libs=
13198 ;;
13199
13200 cygwin*)
13201 lt_cv_dlopen=dlopen
13202 lt_cv_dlopen_libs=
13203 ;;
13204
13205 darwin*)
13206 # if libdl is installed we need to link against it
13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13208 printf %s "checking for dlopen in -ldl... " >&6; }
13209 if test ${ac_cv_lib_dl_dlopen+y}
13210 then :
13211 printf %s "(cached) " >&6
13212 else $as_nop
13213 ac_check_lib_save_LIBS=$LIBS
13214 LIBS="-ldl $LIBS"
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13217
13218 /* Override any GCC internal prototype to avoid an error.
13219 Use char because int might match the return type of a GCC
13220 builtin and then its argument prototype would still apply. */
13221 char dlopen ();
13222 int
13223 main (void)
13224 {
13225 return dlopen ();
13226 ;
13227 return 0;
13228 }
13229 _ACEOF
13230 if ac_fn_c_try_link "$LINENO"
13231 then :
13232 ac_cv_lib_dl_dlopen=yes
13233 else $as_nop
13234 ac_cv_lib_dl_dlopen=no
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13237 conftest$ac_exeext conftest.$ac_ext
13238 LIBS=$ac_check_lib_save_LIBS
13239 fi
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13241 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13242 if test "x$ac_cv_lib_dl_dlopen" = xyes
13243 then :
13244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13245 else $as_nop
13246
13247 lt_cv_dlopen=dyld
13248 lt_cv_dlopen_libs=
13249 lt_cv_dlopen_self=yes
13250
13251 fi
13252
13253 ;;
13254
13255 tpf*)
13256 # Don't try to run any link tests for TPF. We know it's impossible
13257 # because TPF is a cross-compiler, and we know how we open DSOs.
13258 lt_cv_dlopen=dlopen
13259 lt_cv_dlopen_libs=
13260 lt_cv_dlopen_self=no
13261 ;;
13262
13263 *)
13264 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13265 if test "x$ac_cv_func_shl_load" = xyes
13266 then :
13267 lt_cv_dlopen=shl_load
13268 else $as_nop
13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13270 printf %s "checking for shl_load in -ldld... " >&6; }
13271 if test ${ac_cv_lib_dld_shl_load+y}
13272 then :
13273 printf %s "(cached) " >&6
13274 else $as_nop
13275 ac_check_lib_save_LIBS=$LIBS
13276 LIBS="-ldld $LIBS"
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13283 char shl_load ();
13284 int
13285 main (void)
13286 {
13287 return shl_load ();
13288 ;
13289 return 0;
13290 }
13291 _ACEOF
13292 if ac_fn_c_try_link "$LINENO"
13293 then :
13294 ac_cv_lib_dld_shl_load=yes
13295 else $as_nop
13296 ac_cv_lib_dld_shl_load=no
13297 fi
13298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13299 conftest$ac_exeext conftest.$ac_ext
13300 LIBS=$ac_check_lib_save_LIBS
13301 fi
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13303 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13304 if test "x$ac_cv_lib_dld_shl_load" = xyes
13305 then :
13306 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13307 else $as_nop
13308 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13309 if test "x$ac_cv_func_dlopen" = xyes
13310 then :
13311 lt_cv_dlopen=dlopen
13312 else $as_nop
13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13314 printf %s "checking for dlopen in -ldl... " >&6; }
13315 if test ${ac_cv_lib_dl_dlopen+y}
13316 then :
13317 printf %s "(cached) " >&6
13318 else $as_nop
13319 ac_check_lib_save_LIBS=$LIBS
13320 LIBS="-ldl $LIBS"
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323
13324 /* Override any GCC internal prototype to avoid an error.
13325 Use char because int might match the return type of a GCC
13326 builtin and then its argument prototype would still apply. */
13327 char dlopen ();
13328 int
13329 main (void)
13330 {
13331 return dlopen ();
13332 ;
13333 return 0;
13334 }
13335 _ACEOF
13336 if ac_fn_c_try_link "$LINENO"
13337 then :
13338 ac_cv_lib_dl_dlopen=yes
13339 else $as_nop
13340 ac_cv_lib_dl_dlopen=no
13341 fi
13342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13343 conftest$ac_exeext conftest.$ac_ext
13344 LIBS=$ac_check_lib_save_LIBS
13345 fi
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13347 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13348 if test "x$ac_cv_lib_dl_dlopen" = xyes
13349 then :
13350 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13351 else $as_nop
13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13353 printf %s "checking for dlopen in -lsvld... " >&6; }
13354 if test ${ac_cv_lib_svld_dlopen+y}
13355 then :
13356 printf %s "(cached) " >&6
13357 else $as_nop
13358 ac_check_lib_save_LIBS=$LIBS
13359 LIBS="-lsvld $LIBS"
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362
13363 /* Override any GCC internal prototype to avoid an error.
13364 Use char because int might match the return type of a GCC
13365 builtin and then its argument prototype would still apply. */
13366 char dlopen ();
13367 int
13368 main (void)
13369 {
13370 return dlopen ();
13371 ;
13372 return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_link "$LINENO"
13376 then :
13377 ac_cv_lib_svld_dlopen=yes
13378 else $as_nop
13379 ac_cv_lib_svld_dlopen=no
13380 fi
13381 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13382 conftest$ac_exeext conftest.$ac_ext
13383 LIBS=$ac_check_lib_save_LIBS
13384 fi
13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13386 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13387 if test "x$ac_cv_lib_svld_dlopen" = xyes
13388 then :
13389 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13390 else $as_nop
13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13392 printf %s "checking for dld_link in -ldld... " >&6; }
13393 if test ${ac_cv_lib_dld_dld_link+y}
13394 then :
13395 printf %s "(cached) " >&6
13396 else $as_nop
13397 ac_check_lib_save_LIBS=$LIBS
13398 LIBS="-ldld $LIBS"
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13401
13402 /* Override any GCC internal prototype to avoid an error.
13403 Use char because int might match the return type of a GCC
13404 builtin and then its argument prototype would still apply. */
13405 char dld_link ();
13406 int
13407 main (void)
13408 {
13409 return dld_link ();
13410 ;
13411 return 0;
13412 }
13413 _ACEOF
13414 if ac_fn_c_try_link "$LINENO"
13415 then :
13416 ac_cv_lib_dld_dld_link=yes
13417 else $as_nop
13418 ac_cv_lib_dld_dld_link=no
13419 fi
13420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13421 conftest$ac_exeext conftest.$ac_ext
13422 LIBS=$ac_check_lib_save_LIBS
13423 fi
13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13425 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13426 if test "x$ac_cv_lib_dld_dld_link" = xyes
13427 then :
13428 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13429 fi
13430
13431
13432 fi
13433
13434
13435 fi
13436
13437
13438 fi
13439
13440
13441 fi
13442
13443
13444 fi
13445
13446 ;;
13447 esac
13448
13449 if test no = "$lt_cv_dlopen"; then
13450 enable_dlopen=no
13451 else
13452 enable_dlopen=yes
13453 fi
13454
13455 case $lt_cv_dlopen in
13456 dlopen)
13457 save_CPPFLAGS=$CPPFLAGS
13458 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13459
13460 save_LDFLAGS=$LDFLAGS
13461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13462
13463 save_LIBS=$LIBS
13464 LIBS="$lt_cv_dlopen_libs $LIBS"
13465
13466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13467 printf %s "checking whether a program can dlopen itself... " >&6; }
13468 if test ${lt_cv_dlopen_self+y}
13469 then :
13470 printf %s "(cached) " >&6
13471 else $as_nop
13472 if test yes = "$cross_compiling"; then :
13473 lt_cv_dlopen_self=cross
13474 else
13475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13476 lt_status=$lt_dlunknown
13477 cat > conftest.$ac_ext <<_LT_EOF
13478 #line $LINENO "configure"
13479 #include "confdefs.h"
13480
13481 #if HAVE_DLFCN_H
13482 #include <dlfcn.h>
13483 #endif
13484
13485 #include <stdio.h>
13486
13487 #ifdef RTLD_GLOBAL
13488 # define LT_DLGLOBAL RTLD_GLOBAL
13489 #else
13490 # ifdef DL_GLOBAL
13491 # define LT_DLGLOBAL DL_GLOBAL
13492 # else
13493 # define LT_DLGLOBAL 0
13494 # endif
13495 #endif
13496
13497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13498 find out it does not work in some platform. */
13499 #ifndef LT_DLLAZY_OR_NOW
13500 # ifdef RTLD_LAZY
13501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13502 # else
13503 # ifdef DL_LAZY
13504 # define LT_DLLAZY_OR_NOW DL_LAZY
13505 # else
13506 # ifdef RTLD_NOW
13507 # define LT_DLLAZY_OR_NOW RTLD_NOW
13508 # else
13509 # ifdef DL_NOW
13510 # define LT_DLLAZY_OR_NOW DL_NOW
13511 # else
13512 # define LT_DLLAZY_OR_NOW 0
13513 # endif
13514 # endif
13515 # endif
13516 # endif
13517 #endif
13518
13519 /* When -fvisibility=hidden is used, assume the code has been annotated
13520 correspondingly for the symbols needed. */
13521 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13522 int fnord () __attribute__((visibility("default")));
13523 #endif
13524
13525 int fnord () { return 42; }
13526 int main ()
13527 {
13528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13529 int status = $lt_dlunknown;
13530
13531 if (self)
13532 {
13533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13534 else
13535 {
13536 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13537 else puts (dlerror ());
13538 }
13539 /* dlclose (self); */
13540 }
13541 else
13542 puts (dlerror ());
13543
13544 return status;
13545 }
13546 _LT_EOF
13547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13548 (eval $ac_link) 2>&5
13549 ac_status=$?
13550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13551 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13552 (./conftest; exit; ) >&5 2>/dev/null
13553 lt_status=$?
13554 case x$lt_status in
13555 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13556 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13557 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13558 esac
13559 else :
13560 # compilation failed
13561 lt_cv_dlopen_self=no
13562 fi
13563 fi
13564 rm -fr conftest*
13565
13566
13567 fi
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13569 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13570
13571 if test yes = "$lt_cv_dlopen_self"; then
13572 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13574 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13575 if test ${lt_cv_dlopen_self_static+y}
13576 then :
13577 printf %s "(cached) " >&6
13578 else $as_nop
13579 if test yes = "$cross_compiling"; then :
13580 lt_cv_dlopen_self_static=cross
13581 else
13582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13583 lt_status=$lt_dlunknown
13584 cat > conftest.$ac_ext <<_LT_EOF
13585 #line $LINENO "configure"
13586 #include "confdefs.h"
13587
13588 #if HAVE_DLFCN_H
13589 #include <dlfcn.h>
13590 #endif
13591
13592 #include <stdio.h>
13593
13594 #ifdef RTLD_GLOBAL
13595 # define LT_DLGLOBAL RTLD_GLOBAL
13596 #else
13597 # ifdef DL_GLOBAL
13598 # define LT_DLGLOBAL DL_GLOBAL
13599 # else
13600 # define LT_DLGLOBAL 0
13601 # endif
13602 #endif
13603
13604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13605 find out it does not work in some platform. */
13606 #ifndef LT_DLLAZY_OR_NOW
13607 # ifdef RTLD_LAZY
13608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13609 # else
13610 # ifdef DL_LAZY
13611 # define LT_DLLAZY_OR_NOW DL_LAZY
13612 # else
13613 # ifdef RTLD_NOW
13614 # define LT_DLLAZY_OR_NOW RTLD_NOW
13615 # else
13616 # ifdef DL_NOW
13617 # define LT_DLLAZY_OR_NOW DL_NOW
13618 # else
13619 # define LT_DLLAZY_OR_NOW 0
13620 # endif
13621 # endif
13622 # endif
13623 # endif
13624 #endif
13625
13626 /* When -fvisibility=hidden is used, assume the code has been annotated
13627 correspondingly for the symbols needed. */
13628 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13629 int fnord () __attribute__((visibility("default")));
13630 #endif
13631
13632 int fnord () { return 42; }
13633 int main ()
13634 {
13635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13636 int status = $lt_dlunknown;
13637
13638 if (self)
13639 {
13640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13641 else
13642 {
13643 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13644 else puts (dlerror ());
13645 }
13646 /* dlclose (self); */
13647 }
13648 else
13649 puts (dlerror ());
13650
13651 return status;
13652 }
13653 _LT_EOF
13654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13655 (eval $ac_link) 2>&5
13656 ac_status=$?
13657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13658 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13659 (./conftest; exit; ) >&5 2>/dev/null
13660 lt_status=$?
13661 case x$lt_status in
13662 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13663 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13664 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13665 esac
13666 else :
13667 # compilation failed
13668 lt_cv_dlopen_self_static=no
13669 fi
13670 fi
13671 rm -fr conftest*
13672
13673
13674 fi
13675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13676 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13677 fi
13678
13679 CPPFLAGS=$save_CPPFLAGS
13680 LDFLAGS=$save_LDFLAGS
13681 LIBS=$save_LIBS
13682 ;;
13683 esac
13684
13685 case $lt_cv_dlopen_self in
13686 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13687 *) enable_dlopen_self=unknown ;;
13688 esac
13689
13690 case $lt_cv_dlopen_self_static in
13691 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13692 *) enable_dlopen_self_static=unknown ;;
13693 esac
13694 fi
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712 striplib=
13713 old_striplib=
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13715 printf %s "checking whether stripping libraries is possible... " >&6; }
13716 if test -z "$STRIP"; then
13717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718 printf "%s\n" "no" >&6; }
13719 else
13720 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13721 old_striplib="$STRIP --strip-debug"
13722 striplib="$STRIP --strip-unneeded"
13723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13724 printf "%s\n" "yes" >&6; }
13725 else
13726 case $host_os in
13727 darwin*)
13728 # FIXME - insert some real tests, host_os isn't really good enough
13729 striplib="$STRIP -x"
13730 old_striplib="$STRIP -S"
13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13732 printf "%s\n" "yes" >&6; }
13733 ;;
13734 freebsd*)
13735 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13736 old_striplib="$STRIP --strip-debug"
13737 striplib="$STRIP --strip-unneeded"
13738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13739 printf "%s\n" "yes" >&6; }
13740 else
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742 printf "%s\n" "no" >&6; }
13743 fi
13744 ;;
13745 *)
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747 printf "%s\n" "no" >&6; }
13748 ;;
13749 esac
13750 fi
13751 fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764 # Report what library types will actually be built
13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13766 printf %s "checking if libtool supports shared libraries... " >&6; }
13767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13768 printf "%s\n" "$can_build_shared" >&6; }
13769
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13771 printf %s "checking whether to build shared libraries... " >&6; }
13772 test no = "$can_build_shared" && enable_shared=no
13773
13774 # On AIX, shared libraries and static libraries use the same namespace, and
13775 # are all built from PIC.
13776 case $host_os in
13777 aix3*)
13778 test yes = "$enable_shared" && enable_static=no
13779 if test -n "$RANLIB"; then
13780 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13781 postinstall_cmds='$RANLIB $lib'
13782 fi
13783 ;;
13784
13785 aix[4-9]*)
13786 if test ia64 != "$host_cpu"; then
13787 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13788 yes,aix,yes) ;; # shared object as lib.so file only
13789 yes,svr4,*) ;; # shared object as lib.so archive member only
13790 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13791 esac
13792 fi
13793 ;;
13794 esac
13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13796 printf "%s\n" "$enable_shared" >&6; }
13797
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13799 printf %s "checking whether to build static libraries... " >&6; }
13800 # Make sure either enable_shared or enable_static is yes.
13801 test yes = "$enable_shared" || enable_static=yes
13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13803 printf "%s\n" "$enable_static" >&6; }
13804
13805
13806
13807
13808 fi
13809 ac_ext=c
13810 ac_cpp='$CPP $CPPFLAGS'
13811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13814
13815 CC=$lt_save_CC
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831 ac_config_commands="$ac_config_commands libtool"
13832
13833
13834
13835
13836 # Only expand once:
13837
13838
13839
13840 ac_ext=c
13841 ac_cpp='$CPP $CPPFLAGS'
13842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13845 if test -n "$ac_tool_prefix"; then
13846 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13847 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13849 printf %s "checking for $ac_word... " >&6; }
13850 if test ${ac_cv_prog_CC+y}
13851 then :
13852 printf %s "(cached) " >&6
13853 else $as_nop
13854 if test -n "$CC"; then
13855 ac_cv_prog_CC="$CC" # Let the user override the test.
13856 else
13857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13858 for as_dir in $PATH
13859 do
13860 IFS=$as_save_IFS
13861 case $as_dir in #(((
13862 '') as_dir=./ ;;
13863 */) ;;
13864 *) as_dir=$as_dir/ ;;
13865 esac
13866 for ac_exec_ext in '' $ac_executable_extensions; do
13867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13868 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13870 break 2
13871 fi
13872 done
13873 done
13874 IFS=$as_save_IFS
13875
13876 fi
13877 fi
13878 CC=$ac_cv_prog_CC
13879 if test -n "$CC"; then
13880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13881 printf "%s\n" "$CC" >&6; }
13882 else
13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884 printf "%s\n" "no" >&6; }
13885 fi
13886
13887
13888 fi
13889 if test -z "$ac_cv_prog_CC"; then
13890 ac_ct_CC=$CC
13891 # Extract the first word of "gcc", so it can be a program name with args.
13892 set dummy gcc; ac_word=$2
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13894 printf %s "checking for $ac_word... " >&6; }
13895 if test ${ac_cv_prog_ac_ct_CC+y}
13896 then :
13897 printf %s "(cached) " >&6
13898 else $as_nop
13899 if test -n "$ac_ct_CC"; then
13900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13901 else
13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13904 do
13905 IFS=$as_save_IFS
13906 case $as_dir in #(((
13907 '') as_dir=./ ;;
13908 */) ;;
13909 *) as_dir=$as_dir/ ;;
13910 esac
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13913 ac_cv_prog_ac_ct_CC="gcc"
13914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13915 break 2
13916 fi
13917 done
13918 done
13919 IFS=$as_save_IFS
13920
13921 fi
13922 fi
13923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13924 if test -n "$ac_ct_CC"; then
13925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13926 printf "%s\n" "$ac_ct_CC" >&6; }
13927 else
13928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929 printf "%s\n" "no" >&6; }
13930 fi
13931
13932 if test "x$ac_ct_CC" = x; then
13933 CC=""
13934 else
13935 case $cross_compiling:$ac_tool_warned in
13936 yes:)
13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13938 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13939 ac_tool_warned=yes ;;
13940 esac
13941 CC=$ac_ct_CC
13942 fi
13943 else
13944 CC="$ac_cv_prog_CC"
13945 fi
13946
13947 if test -z "$CC"; then
13948 if test -n "$ac_tool_prefix"; then
13949 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13950 set dummy ${ac_tool_prefix}cc; ac_word=$2
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952 printf %s "checking for $ac_word... " >&6; }
13953 if test ${ac_cv_prog_CC+y}
13954 then :
13955 printf %s "(cached) " >&6
13956 else $as_nop
13957 if test -n "$CC"; then
13958 ac_cv_prog_CC="$CC" # Let the user override the test.
13959 else
13960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13961 for as_dir in $PATH
13962 do
13963 IFS=$as_save_IFS
13964 case $as_dir in #(((
13965 '') as_dir=./ ;;
13966 */) ;;
13967 *) as_dir=$as_dir/ ;;
13968 esac
13969 for ac_exec_ext in '' $ac_executable_extensions; do
13970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13971 ac_cv_prog_CC="${ac_tool_prefix}cc"
13972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13973 break 2
13974 fi
13975 done
13976 done
13977 IFS=$as_save_IFS
13978
13979 fi
13980 fi
13981 CC=$ac_cv_prog_CC
13982 if test -n "$CC"; then
13983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13984 printf "%s\n" "$CC" >&6; }
13985 else
13986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13987 printf "%s\n" "no" >&6; }
13988 fi
13989
13990
13991 fi
13992 fi
13993 if test -z "$CC"; then
13994 # Extract the first word of "cc", so it can be a program name with args.
13995 set dummy cc; ac_word=$2
13996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13997 printf %s "checking for $ac_word... " >&6; }
13998 if test ${ac_cv_prog_CC+y}
13999 then :
14000 printf %s "(cached) " >&6
14001 else $as_nop
14002 if test -n "$CC"; then
14003 ac_cv_prog_CC="$CC" # Let the user override the test.
14004 else
14005 ac_prog_rejected=no
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $PATH
14008 do
14009 IFS=$as_save_IFS
14010 case $as_dir in #(((
14011 '') as_dir=./ ;;
14012 */) ;;
14013 *) as_dir=$as_dir/ ;;
14014 esac
14015 for ac_exec_ext in '' $ac_executable_extensions; do
14016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14017 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14018 ac_prog_rejected=yes
14019 continue
14020 fi
14021 ac_cv_prog_CC="cc"
14022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14023 break 2
14024 fi
14025 done
14026 done
14027 IFS=$as_save_IFS
14028
14029 if test $ac_prog_rejected = yes; then
14030 # We found a bogon in the path, so make sure we never use it.
14031 set dummy $ac_cv_prog_CC
14032 shift
14033 if test $# != 0; then
14034 # We chose a different compiler from the bogus one.
14035 # However, it has the same basename, so the bogon will be chosen
14036 # first if we set CC to just the basename; use the full file name.
14037 shift
14038 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14039 fi
14040 fi
14041 fi
14042 fi
14043 CC=$ac_cv_prog_CC
14044 if test -n "$CC"; then
14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14046 printf "%s\n" "$CC" >&6; }
14047 else
14048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14049 printf "%s\n" "no" >&6; }
14050 fi
14051
14052
14053 fi
14054 if test -z "$CC"; then
14055 if test -n "$ac_tool_prefix"; then
14056 for ac_prog in cl.exe
14057 do
14058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14061 printf %s "checking for $ac_word... " >&6; }
14062 if test ${ac_cv_prog_CC+y}
14063 then :
14064 printf %s "(cached) " >&6
14065 else $as_nop
14066 if test -n "$CC"; then
14067 ac_cv_prog_CC="$CC" # Let the user override the test.
14068 else
14069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14070 for as_dir in $PATH
14071 do
14072 IFS=$as_save_IFS
14073 case $as_dir in #(((
14074 '') as_dir=./ ;;
14075 */) ;;
14076 *) as_dir=$as_dir/ ;;
14077 esac
14078 for ac_exec_ext in '' $ac_executable_extensions; do
14079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14080 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14082 break 2
14083 fi
14084 done
14085 done
14086 IFS=$as_save_IFS
14087
14088 fi
14089 fi
14090 CC=$ac_cv_prog_CC
14091 if test -n "$CC"; then
14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14093 printf "%s\n" "$CC" >&6; }
14094 else
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14096 printf "%s\n" "no" >&6; }
14097 fi
14098
14099
14100 test -n "$CC" && break
14101 done
14102 fi
14103 if test -z "$CC"; then
14104 ac_ct_CC=$CC
14105 for ac_prog in cl.exe
14106 do
14107 # Extract the first word of "$ac_prog", so it can be a program name with args.
14108 set dummy $ac_prog; ac_word=$2
14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14110 printf %s "checking for $ac_word... " >&6; }
14111 if test ${ac_cv_prog_ac_ct_CC+y}
14112 then :
14113 printf %s "(cached) " >&6
14114 else $as_nop
14115 if test -n "$ac_ct_CC"; then
14116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14117 else
14118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119 for as_dir in $PATH
14120 do
14121 IFS=$as_save_IFS
14122 case $as_dir in #(((
14123 '') as_dir=./ ;;
14124 */) ;;
14125 *) as_dir=$as_dir/ ;;
14126 esac
14127 for ac_exec_ext in '' $ac_executable_extensions; do
14128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14129 ac_cv_prog_ac_ct_CC="$ac_prog"
14130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14131 break 2
14132 fi
14133 done
14134 done
14135 IFS=$as_save_IFS
14136
14137 fi
14138 fi
14139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14140 if test -n "$ac_ct_CC"; then
14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14142 printf "%s\n" "$ac_ct_CC" >&6; }
14143 else
14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14145 printf "%s\n" "no" >&6; }
14146 fi
14147
14148
14149 test -n "$ac_ct_CC" && break
14150 done
14151
14152 if test "x$ac_ct_CC" = x; then
14153 CC=""
14154 else
14155 case $cross_compiling:$ac_tool_warned in
14156 yes:)
14157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14158 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14159 ac_tool_warned=yes ;;
14160 esac
14161 CC=$ac_ct_CC
14162 fi
14163 fi
14164
14165 fi
14166 if test -z "$CC"; then
14167 if test -n "$ac_tool_prefix"; then
14168 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14169 set dummy ${ac_tool_prefix}clang; ac_word=$2
14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14171 printf %s "checking for $ac_word... " >&6; }
14172 if test ${ac_cv_prog_CC+y}
14173 then :
14174 printf %s "(cached) " >&6
14175 else $as_nop
14176 if test -n "$CC"; then
14177 ac_cv_prog_CC="$CC" # Let the user override the test.
14178 else
14179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14180 for as_dir in $PATH
14181 do
14182 IFS=$as_save_IFS
14183 case $as_dir in #(((
14184 '') as_dir=./ ;;
14185 */) ;;
14186 *) as_dir=$as_dir/ ;;
14187 esac
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14190 ac_cv_prog_CC="${ac_tool_prefix}clang"
14191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14192 break 2
14193 fi
14194 done
14195 done
14196 IFS=$as_save_IFS
14197
14198 fi
14199 fi
14200 CC=$ac_cv_prog_CC
14201 if test -n "$CC"; then
14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14203 printf "%s\n" "$CC" >&6; }
14204 else
14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206 printf "%s\n" "no" >&6; }
14207 fi
14208
14209
14210 fi
14211 if test -z "$ac_cv_prog_CC"; then
14212 ac_ct_CC=$CC
14213 # Extract the first word of "clang", so it can be a program name with args.
14214 set dummy clang; ac_word=$2
14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14216 printf %s "checking for $ac_word... " >&6; }
14217 if test ${ac_cv_prog_ac_ct_CC+y}
14218 then :
14219 printf %s "(cached) " >&6
14220 else $as_nop
14221 if test -n "$ac_ct_CC"; then
14222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14223 else
14224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14225 for as_dir in $PATH
14226 do
14227 IFS=$as_save_IFS
14228 case $as_dir in #(((
14229 '') as_dir=./ ;;
14230 */) ;;
14231 *) as_dir=$as_dir/ ;;
14232 esac
14233 for ac_exec_ext in '' $ac_executable_extensions; do
14234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14235 ac_cv_prog_ac_ct_CC="clang"
14236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14237 break 2
14238 fi
14239 done
14240 done
14241 IFS=$as_save_IFS
14242
14243 fi
14244 fi
14245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14246 if test -n "$ac_ct_CC"; then
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14248 printf "%s\n" "$ac_ct_CC" >&6; }
14249 else
14250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14251 printf "%s\n" "no" >&6; }
14252 fi
14253
14254 if test "x$ac_ct_CC" = x; then
14255 CC=""
14256 else
14257 case $cross_compiling:$ac_tool_warned in
14258 yes:)
14259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14260 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14261 ac_tool_warned=yes ;;
14262 esac
14263 CC=$ac_ct_CC
14264 fi
14265 else
14266 CC="$ac_cv_prog_CC"
14267 fi
14268
14269 fi
14270
14271
14272 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14273 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14274 as_fn_error $? "no acceptable C compiler found in \$PATH
14275 See \`config.log' for more details" "$LINENO" 5; }
14276
14277 # Provide some information about the compiler.
14278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14279 set X $ac_compile
14280 ac_compiler=$2
14281 for ac_option in --version -v -V -qversion -version; do
14282 { { ac_try="$ac_compiler $ac_option >&5"
14283 case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14286 esac
14287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14288 printf "%s\n" "$ac_try_echo"; } >&5
14289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14290 ac_status=$?
14291 if test -s conftest.err; then
14292 sed '10a\
14293 ... rest of stderr output deleted ...
14294 10q' conftest.err >conftest.er1
14295 cat conftest.er1 >&5
14296 fi
14297 rm -f conftest.er1 conftest.err
14298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14299 test $ac_status = 0; }
14300 done
14301
14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14303 printf %s "checking whether the compiler supports GNU C... " >&6; }
14304 if test ${ac_cv_c_compiler_gnu+y}
14305 then :
14306 printf %s "(cached) " >&6
14307 else $as_nop
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14310
14311 int
14312 main (void)
14313 {
14314 #ifndef __GNUC__
14315 choke me
14316 #endif
14317
14318 ;
14319 return 0;
14320 }
14321 _ACEOF
14322 if ac_fn_c_try_compile "$LINENO"
14323 then :
14324 ac_compiler_gnu=yes
14325 else $as_nop
14326 ac_compiler_gnu=no
14327 fi
14328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14329 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14330
14331 fi
14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14333 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14335
14336 if test $ac_compiler_gnu = yes; then
14337 GCC=yes
14338 else
14339 GCC=
14340 fi
14341 ac_test_CFLAGS=${CFLAGS+y}
14342 ac_save_CFLAGS=$CFLAGS
14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14344 printf %s "checking whether $CC accepts -g... " >&6; }
14345 if test ${ac_cv_prog_cc_g+y}
14346 then :
14347 printf %s "(cached) " >&6
14348 else $as_nop
14349 ac_save_c_werror_flag=$ac_c_werror_flag
14350 ac_c_werror_flag=yes
14351 ac_cv_prog_cc_g=no
14352 CFLAGS="-g"
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14355
14356 int
14357 main (void)
14358 {
14359
14360 ;
14361 return 0;
14362 }
14363 _ACEOF
14364 if ac_fn_c_try_compile "$LINENO"
14365 then :
14366 ac_cv_prog_cc_g=yes
14367 else $as_nop
14368 CFLAGS=""
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14371
14372 int
14373 main (void)
14374 {
14375
14376 ;
14377 return 0;
14378 }
14379 _ACEOF
14380 if ac_fn_c_try_compile "$LINENO"
14381 then :
14382
14383 else $as_nop
14384 ac_c_werror_flag=$ac_save_c_werror_flag
14385 CFLAGS="-g"
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14388
14389 int
14390 main (void)
14391 {
14392
14393 ;
14394 return 0;
14395 }
14396 _ACEOF
14397 if ac_fn_c_try_compile "$LINENO"
14398 then :
14399 ac_cv_prog_cc_g=yes
14400 fi
14401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14404 fi
14405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14406 ac_c_werror_flag=$ac_save_c_werror_flag
14407 fi
14408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14409 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14410 if test $ac_test_CFLAGS; then
14411 CFLAGS=$ac_save_CFLAGS
14412 elif test $ac_cv_prog_cc_g = yes; then
14413 if test "$GCC" = yes; then
14414 CFLAGS="-g -O2"
14415 else
14416 CFLAGS="-g"
14417 fi
14418 else
14419 if test "$GCC" = yes; then
14420 CFLAGS="-O2"
14421 else
14422 CFLAGS=
14423 fi
14424 fi
14425 ac_prog_cc_stdc=no
14426 if test x$ac_prog_cc_stdc = xno
14427 then :
14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14429 printf %s "checking for $CC option to enable C11 features... " >&6; }
14430 if test ${ac_cv_prog_cc_c11+y}
14431 then :
14432 printf %s "(cached) " >&6
14433 else $as_nop
14434 ac_cv_prog_cc_c11=no
14435 ac_save_CC=$CC
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h. */
14438 $ac_c_conftest_c11_program
14439 _ACEOF
14440 for ac_arg in '' -std=gnu11
14441 do
14442 CC="$ac_save_CC $ac_arg"
14443 if ac_fn_c_try_compile "$LINENO"
14444 then :
14445 ac_cv_prog_cc_c11=$ac_arg
14446 fi
14447 rm -f core conftest.err conftest.$ac_objext conftest.beam
14448 test "x$ac_cv_prog_cc_c11" != "xno" && break
14449 done
14450 rm -f conftest.$ac_ext
14451 CC=$ac_save_CC
14452 fi
14453
14454 if test "x$ac_cv_prog_cc_c11" = xno
14455 then :
14456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14457 printf "%s\n" "unsupported" >&6; }
14458 else $as_nop
14459 if test "x$ac_cv_prog_cc_c11" = x
14460 then :
14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14462 printf "%s\n" "none needed" >&6; }
14463 else $as_nop
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14465 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14466 CC="$CC $ac_cv_prog_cc_c11"
14467 fi
14468 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14469 ac_prog_cc_stdc=c11
14470 fi
14471 fi
14472 if test x$ac_prog_cc_stdc = xno
14473 then :
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14475 printf %s "checking for $CC option to enable C99 features... " >&6; }
14476 if test ${ac_cv_prog_cc_c99+y}
14477 then :
14478 printf %s "(cached) " >&6
14479 else $as_nop
14480 ac_cv_prog_cc_c99=no
14481 ac_save_CC=$CC
14482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14483 /* end confdefs.h. */
14484 $ac_c_conftest_c99_program
14485 _ACEOF
14486 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14487 do
14488 CC="$ac_save_CC $ac_arg"
14489 if ac_fn_c_try_compile "$LINENO"
14490 then :
14491 ac_cv_prog_cc_c99=$ac_arg
14492 fi
14493 rm -f core conftest.err conftest.$ac_objext conftest.beam
14494 test "x$ac_cv_prog_cc_c99" != "xno" && break
14495 done
14496 rm -f conftest.$ac_ext
14497 CC=$ac_save_CC
14498 fi
14499
14500 if test "x$ac_cv_prog_cc_c99" = xno
14501 then :
14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14503 printf "%s\n" "unsupported" >&6; }
14504 else $as_nop
14505 if test "x$ac_cv_prog_cc_c99" = x
14506 then :
14507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14508 printf "%s\n" "none needed" >&6; }
14509 else $as_nop
14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14511 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14512 CC="$CC $ac_cv_prog_cc_c99"
14513 fi
14514 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14515 ac_prog_cc_stdc=c99
14516 fi
14517 fi
14518 if test x$ac_prog_cc_stdc = xno
14519 then :
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14521 printf %s "checking for $CC option to enable C89 features... " >&6; }
14522 if test ${ac_cv_prog_cc_c89+y}
14523 then :
14524 printf %s "(cached) " >&6
14525 else $as_nop
14526 ac_cv_prog_cc_c89=no
14527 ac_save_CC=$CC
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14530 $ac_c_conftest_c89_program
14531 _ACEOF
14532 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14533 do
14534 CC="$ac_save_CC $ac_arg"
14535 if ac_fn_c_try_compile "$LINENO"
14536 then :
14537 ac_cv_prog_cc_c89=$ac_arg
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext conftest.beam
14540 test "x$ac_cv_prog_cc_c89" != "xno" && break
14541 done
14542 rm -f conftest.$ac_ext
14543 CC=$ac_save_CC
14544 fi
14545
14546 if test "x$ac_cv_prog_cc_c89" = xno
14547 then :
14548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14549 printf "%s\n" "unsupported" >&6; }
14550 else $as_nop
14551 if test "x$ac_cv_prog_cc_c89" = x
14552 then :
14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14554 printf "%s\n" "none needed" >&6; }
14555 else $as_nop
14556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14557 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14558 CC="$CC $ac_cv_prog_cc_c89"
14559 fi
14560 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14561 ac_prog_cc_stdc=c89
14562 fi
14563 fi
14564
14565 ac_ext=c
14566 ac_cpp='$CPP $CPPFLAGS'
14567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14570
14571
14572 ac_ext=c
14573 ac_cpp='$CPP $CPPFLAGS'
14574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14578 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14579 if test ${am_cv_prog_cc_c_o+y}
14580 then :
14581 printf %s "(cached) " >&6
14582 else $as_nop
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585
14586 int
14587 main (void)
14588 {
14589
14590 ;
14591 return 0;
14592 }
14593 _ACEOF
14594 # Make sure it works both with $CC and with simple cc.
14595 # Following AC_PROG_CC_C_O, we do the test twice because some
14596 # compilers refuse to overwrite an existing .o file with -o,
14597 # though they will create one.
14598 am_cv_prog_cc_c_o=yes
14599 for am_i in 1 2; do
14600 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14601 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } \
14605 && test -f conftest2.$ac_objext; then
14606 : OK
14607 else
14608 am_cv_prog_cc_c_o=no
14609 break
14610 fi
14611 done
14612 rm -f core conftest*
14613 unset am_i
14614 fi
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14616 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14617 if test "$am_cv_prog_cc_c_o" != yes; then
14618 # Losing compiler, so override with the script.
14619 # FIXME: It is wrong to rewrite CC.
14620 # But if we don't then we get into trouble of one sort or another.
14621 # A longer-term fix would be to have automake use am__CC in this case,
14622 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14623 CC="$am_aux_dir/compile $CC"
14624 fi
14625 ac_ext=c
14626 ac_cpp='$CPP $CPPFLAGS'
14627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14630
14631
14632 depcc="$CC" am_compiler_list=
14633
14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14635 printf %s "checking dependency style of $depcc... " >&6; }
14636 if test ${am_cv_CC_dependencies_compiler_type+y}
14637 then :
14638 printf %s "(cached) " >&6
14639 else $as_nop
14640 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14641 # We make a subdir and do the tests there. Otherwise we can end up
14642 # making bogus files that we don't know about and never remove. For
14643 # instance it was reported that on HP-UX the gcc test will end up
14644 # making a dummy file named 'D' -- because '-MD' means "put the output
14645 # in D".
14646 rm -rf conftest.dir
14647 mkdir conftest.dir
14648 # Copy depcomp to subdir because otherwise we won't find it if we're
14649 # using a relative directory.
14650 cp "$am_depcomp" conftest.dir
14651 cd conftest.dir
14652 # We will build objects and dependencies in a subdirectory because
14653 # it helps to detect inapplicable dependency modes. For instance
14654 # both Tru64's cc and ICC support -MD to output dependencies as a
14655 # side effect of compilation, but ICC will put the dependencies in
14656 # the current directory while Tru64 will put them in the object
14657 # directory.
14658 mkdir sub
14659
14660 am_cv_CC_dependencies_compiler_type=none
14661 if test "$am_compiler_list" = ""; then
14662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14663 fi
14664 am__universal=false
14665 case " $depcc " in #(
14666 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14667 esac
14668
14669 for depmode in $am_compiler_list; do
14670 # Setup a source with many dependencies, because some compilers
14671 # like to wrap large dependency lists on column 80 (with \), and
14672 # we should not choose a depcomp mode which is confused by this.
14673 #
14674 # We need to recreate these files for each test, as the compiler may
14675 # overwrite some of them when testing with obscure command lines.
14676 # This happens at least with the AIX C compiler.
14677 : > sub/conftest.c
14678 for i in 1 2 3 4 5 6; do
14679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14680 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14681 # Solaris 10 /bin/sh.
14682 echo '/* dummy */' > sub/conftst$i.h
14683 done
14684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14685
14686 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14687 # mode. It turns out that the SunPro C++ compiler does not properly
14688 # handle '-M -o', and we need to detect this. Also, some Intel
14689 # versions had trouble with output in subdirs.
14690 am__obj=sub/conftest.${OBJEXT-o}
14691 am__minus_obj="-o $am__obj"
14692 case $depmode in
14693 gcc)
14694 # This depmode causes a compiler race in universal mode.
14695 test "$am__universal" = false || continue
14696 ;;
14697 nosideeffect)
14698 # After this tag, mechanisms are not by side-effect, so they'll
14699 # only be used when explicitly requested.
14700 if test "x$enable_dependency_tracking" = xyes; then
14701 continue
14702 else
14703 break
14704 fi
14705 ;;
14706 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14707 # This compiler won't grok '-c -o', but also, the minuso test has
14708 # not run yet. These depmodes are late enough in the game, and
14709 # so weak that their functioning should not be impacted.
14710 am__obj=conftest.${OBJEXT-o}
14711 am__minus_obj=
14712 ;;
14713 none) break ;;
14714 esac
14715 if depmode=$depmode \
14716 source=sub/conftest.c object=$am__obj \
14717 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14718 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14719 >/dev/null 2>conftest.err &&
14720 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14721 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14722 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14723 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14724 # icc doesn't choke on unknown options, it will just issue warnings
14725 # or remarks (even with -Werror). So we grep stderr for any message
14726 # that says an option was ignored or not supported.
14727 # When given -MP, icc 7.0 and 7.1 complain thusly:
14728 # icc: Command line warning: ignoring option '-M'; no argument required
14729 # The diagnosis changed in icc 8.0:
14730 # icc: Command line remark: option '-MP' not supported
14731 if (grep 'ignoring option' conftest.err ||
14732 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14733 am_cv_CC_dependencies_compiler_type=$depmode
14734 break
14735 fi
14736 fi
14737 done
14738
14739 cd ..
14740 rm -rf conftest.dir
14741 else
14742 am_cv_CC_dependencies_compiler_type=none
14743 fi
14744
14745 fi
14746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14747 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
14748 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14749
14750 if
14751 test "x$enable_dependency_tracking" != xno \
14752 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14753 am__fastdepCC_TRUE=
14754 am__fastdepCC_FALSE='#'
14755 else
14756 am__fastdepCC_TRUE='#'
14757 am__fastdepCC_FALSE=
14758 fi
14759
14760
14761 ac_ext=c
14762 ac_cpp='$CPP $CPPFLAGS'
14763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14767 printf %s "checking how to run the C preprocessor... " >&6; }
14768 # On Suns, sometimes $CPP names a directory.
14769 if test -n "$CPP" && test -d "$CPP"; then
14770 CPP=
14771 fi
14772 if test -z "$CPP"; then
14773 if test ${ac_cv_prog_CPP+y}
14774 then :
14775 printf %s "(cached) " >&6
14776 else $as_nop
14777 # Double quotes because $CC needs to be expanded
14778 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14779 do
14780 ac_preproc_ok=false
14781 for ac_c_preproc_warn_flag in '' yes
14782 do
14783 # Use a header file that comes with gcc, so configuring glibc
14784 # with a fresh cross-compiler works.
14785 # On the NeXT, cc -E runs the code through the compiler's parser,
14786 # not just through cpp. "Syntax error" is here to catch this case.
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14789 #include <limits.h>
14790 Syntax error
14791 _ACEOF
14792 if ac_fn_c_try_cpp "$LINENO"
14793 then :
14794
14795 else $as_nop
14796 # Broken: fails on valid input.
14797 continue
14798 fi
14799 rm -f conftest.err conftest.i conftest.$ac_ext
14800
14801 # OK, works on sane cases. Now check whether nonexistent headers
14802 # can be detected and how.
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 #include <ac_nonexistent.h>
14806 _ACEOF
14807 if ac_fn_c_try_cpp "$LINENO"
14808 then :
14809 # Broken: success on invalid input.
14810 continue
14811 else $as_nop
14812 # Passes both tests.
14813 ac_preproc_ok=:
14814 break
14815 fi
14816 rm -f conftest.err conftest.i conftest.$ac_ext
14817
14818 done
14819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14820 rm -f conftest.i conftest.err conftest.$ac_ext
14821 if $ac_preproc_ok
14822 then :
14823 break
14824 fi
14825
14826 done
14827 ac_cv_prog_CPP=$CPP
14828
14829 fi
14830 CPP=$ac_cv_prog_CPP
14831 else
14832 ac_cv_prog_CPP=$CPP
14833 fi
14834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14835 printf "%s\n" "$CPP" >&6; }
14836 ac_preproc_ok=false
14837 for ac_c_preproc_warn_flag in '' yes
14838 do
14839 # Use a header file that comes with gcc, so configuring glibc
14840 # with a fresh cross-compiler works.
14841 # On the NeXT, cc -E runs the code through the compiler's parser,
14842 # not just through cpp. "Syntax error" is here to catch this case.
14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845 #include <limits.h>
14846 Syntax error
14847 _ACEOF
14848 if ac_fn_c_try_cpp "$LINENO"
14849 then :
14850
14851 else $as_nop
14852 # Broken: fails on valid input.
14853 continue
14854 fi
14855 rm -f conftest.err conftest.i conftest.$ac_ext
14856
14857 # OK, works on sane cases. Now check whether nonexistent headers
14858 # can be detected and how.
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 #include <ac_nonexistent.h>
14862 _ACEOF
14863 if ac_fn_c_try_cpp "$LINENO"
14864 then :
14865 # Broken: success on invalid input.
14866 continue
14867 else $as_nop
14868 # Passes both tests.
14869 ac_preproc_ok=:
14870 break
14871 fi
14872 rm -f conftest.err conftest.i conftest.$ac_ext
14873
14874 done
14875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14876 rm -f conftest.i conftest.err conftest.$ac_ext
14877 if $ac_preproc_ok
14878 then :
14879
14880 else $as_nop
14881 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14882 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14883 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14884 See \`config.log' for more details" "$LINENO" 5; }
14885 fi
14886
14887 ac_ext=c
14888 ac_cpp='$CPP $CPPFLAGS'
14889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14892
14893
14894 if test $ac_cv_c_compiler_gnu = yes; then
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14896 printf %s "checking whether $CC needs -traditional... " >&6; }
14897 if test ${ac_cv_prog_gcc_traditional+y}
14898 then :
14899 printf %s "(cached) " >&6
14900 else $as_nop
14901 ac_pattern="Autoconf.*'x'"
14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14904 #include <sgtty.h>
14905 Autoconf TIOCGETP
14906 _ACEOF
14907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14908 $EGREP "$ac_pattern" >/dev/null 2>&1
14909 then :
14910 ac_cv_prog_gcc_traditional=yes
14911 else $as_nop
14912 ac_cv_prog_gcc_traditional=no
14913 fi
14914 rm -rf conftest*
14915
14916
14917 if test $ac_cv_prog_gcc_traditional = no; then
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14920 #include <termio.h>
14921 Autoconf TCGETA
14922 _ACEOF
14923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14924 $EGREP "$ac_pattern" >/dev/null 2>&1
14925 then :
14926 ac_cv_prog_gcc_traditional=yes
14927 fi
14928 rm -rf conftest*
14929
14930 fi
14931 fi
14932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14933 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
14934 if test $ac_cv_prog_gcc_traditional = yes; then
14935 CC="$CC -traditional"
14936 fi
14937 fi
14938
14939
14940
14941
14942
14943
14944
14945 ac_ext=cpp
14946 ac_cpp='$CXXCPP $CPPFLAGS'
14947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14950 if test -z "$CXX"; then
14951 if test -n "$CCC"; then
14952 CXX=$CCC
14953 else
14954 if test -n "$ac_tool_prefix"; then
14955 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14956 do
14957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14960 printf %s "checking for $ac_word... " >&6; }
14961 if test ${ac_cv_prog_CXX+y}
14962 then :
14963 printf %s "(cached) " >&6
14964 else $as_nop
14965 if test -n "$CXX"; then
14966 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14967 else
14968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14969 for as_dir in $PATH
14970 do
14971 IFS=$as_save_IFS
14972 case $as_dir in #(((
14973 '') as_dir=./ ;;
14974 */) ;;
14975 *) as_dir=$as_dir/ ;;
14976 esac
14977 for ac_exec_ext in '' $ac_executable_extensions; do
14978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14979 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14981 break 2
14982 fi
14983 done
14984 done
14985 IFS=$as_save_IFS
14986
14987 fi
14988 fi
14989 CXX=$ac_cv_prog_CXX
14990 if test -n "$CXX"; then
14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14992 printf "%s\n" "$CXX" >&6; }
14993 else
14994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14995 printf "%s\n" "no" >&6; }
14996 fi
14997
14998
14999 test -n "$CXX" && break
15000 done
15001 fi
15002 if test -z "$CXX"; then
15003 ac_ct_CXX=$CXX
15004 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15005 do
15006 # Extract the first word of "$ac_prog", so it can be a program name with args.
15007 set dummy $ac_prog; ac_word=$2
15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15009 printf %s "checking for $ac_word... " >&6; }
15010 if test ${ac_cv_prog_ac_ct_CXX+y}
15011 then :
15012 printf %s "(cached) " >&6
15013 else $as_nop
15014 if test -n "$ac_ct_CXX"; then
15015 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15016 else
15017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15018 for as_dir in $PATH
15019 do
15020 IFS=$as_save_IFS
15021 case $as_dir in #(((
15022 '') as_dir=./ ;;
15023 */) ;;
15024 *) as_dir=$as_dir/ ;;
15025 esac
15026 for ac_exec_ext in '' $ac_executable_extensions; do
15027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15028 ac_cv_prog_ac_ct_CXX="$ac_prog"
15029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15030 break 2
15031 fi
15032 done
15033 done
15034 IFS=$as_save_IFS
15035
15036 fi
15037 fi
15038 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15039 if test -n "$ac_ct_CXX"; then
15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15041 printf "%s\n" "$ac_ct_CXX" >&6; }
15042 else
15043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15044 printf "%s\n" "no" >&6; }
15045 fi
15046
15047
15048 test -n "$ac_ct_CXX" && break
15049 done
15050
15051 if test "x$ac_ct_CXX" = x; then
15052 CXX="g++"
15053 else
15054 case $cross_compiling:$ac_tool_warned in
15055 yes:)
15056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15057 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15058 ac_tool_warned=yes ;;
15059 esac
15060 CXX=$ac_ct_CXX
15061 fi
15062 fi
15063
15064 fi
15065 fi
15066 # Provide some information about the compiler.
15067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15068 set X $ac_compile
15069 ac_compiler=$2
15070 for ac_option in --version -v -V -qversion; do
15071 { { ac_try="$ac_compiler $ac_option >&5"
15072 case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15075 esac
15076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15077 printf "%s\n" "$ac_try_echo"; } >&5
15078 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15079 ac_status=$?
15080 if test -s conftest.err; then
15081 sed '10a\
15082 ... rest of stderr output deleted ...
15083 10q' conftest.err >conftest.er1
15084 cat conftest.er1 >&5
15085 fi
15086 rm -f conftest.er1 conftest.err
15087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15088 test $ac_status = 0; }
15089 done
15090
15091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15092 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15093 if test ${ac_cv_cxx_compiler_gnu+y}
15094 then :
15095 printf %s "(cached) " >&6
15096 else $as_nop
15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098 /* end confdefs.h. */
15099
15100 int
15101 main (void)
15102 {
15103 #ifndef __GNUC__
15104 choke me
15105 #endif
15106
15107 ;
15108 return 0;
15109 }
15110 _ACEOF
15111 if ac_fn_cxx_try_compile "$LINENO"
15112 then :
15113 ac_compiler_gnu=yes
15114 else $as_nop
15115 ac_compiler_gnu=no
15116 fi
15117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15118 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15119
15120 fi
15121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15122 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15124
15125 if test $ac_compiler_gnu = yes; then
15126 GXX=yes
15127 else
15128 GXX=
15129 fi
15130 ac_test_CXXFLAGS=${CXXFLAGS+y}
15131 ac_save_CXXFLAGS=$CXXFLAGS
15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15133 printf %s "checking whether $CXX accepts -g... " >&6; }
15134 if test ${ac_cv_prog_cxx_g+y}
15135 then :
15136 printf %s "(cached) " >&6
15137 else $as_nop
15138 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15139 ac_cxx_werror_flag=yes
15140 ac_cv_prog_cxx_g=no
15141 CXXFLAGS="-g"
15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15144
15145 int
15146 main (void)
15147 {
15148
15149 ;
15150 return 0;
15151 }
15152 _ACEOF
15153 if ac_fn_cxx_try_compile "$LINENO"
15154 then :
15155 ac_cv_prog_cxx_g=yes
15156 else $as_nop
15157 CXXFLAGS=""
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160
15161 int
15162 main (void)
15163 {
15164
15165 ;
15166 return 0;
15167 }
15168 _ACEOF
15169 if ac_fn_cxx_try_compile "$LINENO"
15170 then :
15171
15172 else $as_nop
15173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15174 CXXFLAGS="-g"
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177
15178 int
15179 main (void)
15180 {
15181
15182 ;
15183 return 0;
15184 }
15185 _ACEOF
15186 if ac_fn_cxx_try_compile "$LINENO"
15187 then :
15188 ac_cv_prog_cxx_g=yes
15189 fi
15190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15191 fi
15192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15193 fi
15194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15195 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15196 fi
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15198 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15199 if test $ac_test_CXXFLAGS; then
15200 CXXFLAGS=$ac_save_CXXFLAGS
15201 elif test $ac_cv_prog_cxx_g = yes; then
15202 if test "$GXX" = yes; then
15203 CXXFLAGS="-g -O2"
15204 else
15205 CXXFLAGS="-g"
15206 fi
15207 else
15208 if test "$GXX" = yes; then
15209 CXXFLAGS="-O2"
15210 else
15211 CXXFLAGS=
15212 fi
15213 fi
15214 ac_prog_cxx_stdcxx=no
15215 if test x$ac_prog_cxx_stdcxx = xno
15216 then :
15217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15218 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15219 if test ${ac_cv_prog_cxx_cxx11+y}
15220 then :
15221 printf %s "(cached) " >&6
15222 else $as_nop
15223 ac_cv_prog_cxx_cxx11=no
15224 ac_save_CXX=$CXX
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 $ac_cxx_conftest_cxx11_program
15228 _ACEOF
15229 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15230 do
15231 CXX="$ac_save_CXX $ac_arg"
15232 if ac_fn_cxx_try_compile "$LINENO"
15233 then :
15234 ac_cv_prog_cxx_cxx11=$ac_arg
15235 fi
15236 rm -f core conftest.err conftest.$ac_objext conftest.beam
15237 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15238 done
15239 rm -f conftest.$ac_ext
15240 CXX=$ac_save_CXX
15241 fi
15242
15243 if test "x$ac_cv_prog_cxx_cxx11" = xno
15244 then :
15245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15246 printf "%s\n" "unsupported" >&6; }
15247 else $as_nop
15248 if test "x$ac_cv_prog_cxx_cxx11" = x
15249 then :
15250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15251 printf "%s\n" "none needed" >&6; }
15252 else $as_nop
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15254 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15255 CXX="$CXX $ac_cv_prog_cxx_cxx11"
15256 fi
15257 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15258 ac_prog_cxx_stdcxx=cxx11
15259 fi
15260 fi
15261 if test x$ac_prog_cxx_stdcxx = xno
15262 then :
15263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15264 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15265 if test ${ac_cv_prog_cxx_cxx98+y}
15266 then :
15267 printf %s "(cached) " >&6
15268 else $as_nop
15269 ac_cv_prog_cxx_cxx98=no
15270 ac_save_CXX=$CXX
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 $ac_cxx_conftest_cxx98_program
15274 _ACEOF
15275 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15276 do
15277 CXX="$ac_save_CXX $ac_arg"
15278 if ac_fn_cxx_try_compile "$LINENO"
15279 then :
15280 ac_cv_prog_cxx_cxx98=$ac_arg
15281 fi
15282 rm -f core conftest.err conftest.$ac_objext conftest.beam
15283 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15284 done
15285 rm -f conftest.$ac_ext
15286 CXX=$ac_save_CXX
15287 fi
15288
15289 if test "x$ac_cv_prog_cxx_cxx98" = xno
15290 then :
15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15292 printf "%s\n" "unsupported" >&6; }
15293 else $as_nop
15294 if test "x$ac_cv_prog_cxx_cxx98" = x
15295 then :
15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15297 printf "%s\n" "none needed" >&6; }
15298 else $as_nop
15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15300 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15301 CXX="$CXX $ac_cv_prog_cxx_cxx98"
15302 fi
15303 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15304 ac_prog_cxx_stdcxx=cxx98
15305 fi
15306 fi
15307
15308 ac_ext=c
15309 ac_cpp='$CPP $CPPFLAGS'
15310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15313
15314 depcc="$CXX" am_compiler_list=
15315
15316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15317 printf %s "checking dependency style of $depcc... " >&6; }
15318 if test ${am_cv_CXX_dependencies_compiler_type+y}
15319 then :
15320 printf %s "(cached) " >&6
15321 else $as_nop
15322 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15323 # We make a subdir and do the tests there. Otherwise we can end up
15324 # making bogus files that we don't know about and never remove. For
15325 # instance it was reported that on HP-UX the gcc test will end up
15326 # making a dummy file named 'D' -- because '-MD' means "put the output
15327 # in D".
15328 rm -rf conftest.dir
15329 mkdir conftest.dir
15330 # Copy depcomp to subdir because otherwise we won't find it if we're
15331 # using a relative directory.
15332 cp "$am_depcomp" conftest.dir
15333 cd conftest.dir
15334 # We will build objects and dependencies in a subdirectory because
15335 # it helps to detect inapplicable dependency modes. For instance
15336 # both Tru64's cc and ICC support -MD to output dependencies as a
15337 # side effect of compilation, but ICC will put the dependencies in
15338 # the current directory while Tru64 will put them in the object
15339 # directory.
15340 mkdir sub
15341
15342 am_cv_CXX_dependencies_compiler_type=none
15343 if test "$am_compiler_list" = ""; then
15344 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15345 fi
15346 am__universal=false
15347 case " $depcc " in #(
15348 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15349 esac
15350
15351 for depmode in $am_compiler_list; do
15352 # Setup a source with many dependencies, because some compilers
15353 # like to wrap large dependency lists on column 80 (with \), and
15354 # we should not choose a depcomp mode which is confused by this.
15355 #
15356 # We need to recreate these files for each test, as the compiler may
15357 # overwrite some of them when testing with obscure command lines.
15358 # This happens at least with the AIX C compiler.
15359 : > sub/conftest.c
15360 for i in 1 2 3 4 5 6; do
15361 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15362 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15363 # Solaris 10 /bin/sh.
15364 echo '/* dummy */' > sub/conftst$i.h
15365 done
15366 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15367
15368 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15369 # mode. It turns out that the SunPro C++ compiler does not properly
15370 # handle '-M -o', and we need to detect this. Also, some Intel
15371 # versions had trouble with output in subdirs.
15372 am__obj=sub/conftest.${OBJEXT-o}
15373 am__minus_obj="-o $am__obj"
15374 case $depmode in
15375 gcc)
15376 # This depmode causes a compiler race in universal mode.
15377 test "$am__universal" = false || continue
15378 ;;
15379 nosideeffect)
15380 # After this tag, mechanisms are not by side-effect, so they'll
15381 # only be used when explicitly requested.
15382 if test "x$enable_dependency_tracking" = xyes; then
15383 continue
15384 else
15385 break
15386 fi
15387 ;;
15388 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15389 # This compiler won't grok '-c -o', but also, the minuso test has
15390 # not run yet. These depmodes are late enough in the game, and
15391 # so weak that their functioning should not be impacted.
15392 am__obj=conftest.${OBJEXT-o}
15393 am__minus_obj=
15394 ;;
15395 none) break ;;
15396 esac
15397 if depmode=$depmode \
15398 source=sub/conftest.c object=$am__obj \
15399 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15400 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15401 >/dev/null 2>conftest.err &&
15402 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15403 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15404 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15405 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15406 # icc doesn't choke on unknown options, it will just issue warnings
15407 # or remarks (even with -Werror). So we grep stderr for any message
15408 # that says an option was ignored or not supported.
15409 # When given -MP, icc 7.0 and 7.1 complain thusly:
15410 # icc: Command line warning: ignoring option '-M'; no argument required
15411 # The diagnosis changed in icc 8.0:
15412 # icc: Command line remark: option '-MP' not supported
15413 if (grep 'ignoring option' conftest.err ||
15414 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15415 am_cv_CXX_dependencies_compiler_type=$depmode
15416 break
15417 fi
15418 fi
15419 done
15420
15421 cd ..
15422 rm -rf conftest.dir
15423 else
15424 am_cv_CXX_dependencies_compiler_type=none
15425 fi
15426
15427 fi
15428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15429 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
15430 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15431
15432 if
15433 test "x$enable_dependency_tracking" != xno \
15434 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15435 am__fastdepCXX_TRUE=
15436 am__fastdepCXX_FALSE='#'
15437 else
15438 am__fastdepCXX_TRUE='#'
15439 am__fastdepCXX_FALSE=
15440 fi
15441
15442
15443
15444
15445 func_stripname_cnf ()
15446 {
15447 case $2 in
15448 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15449 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15450 esac
15451 } # func_stripname_cnf
15452
15453 if test -n "$CXX" && ( test no != "$CXX" &&
15454 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15455 (test g++ != "$CXX"))); then
15456 ac_ext=cpp
15457 ac_cpp='$CXXCPP $CPPFLAGS'
15458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15462 printf %s "checking how to run the C++ preprocessor... " >&6; }
15463 if test -z "$CXXCPP"; then
15464 if test ${ac_cv_prog_CXXCPP+y}
15465 then :
15466 printf %s "(cached) " >&6
15467 else $as_nop
15468 # Double quotes because $CXX needs to be expanded
15469 for CXXCPP in "$CXX -E" cpp /lib/cpp
15470 do
15471 ac_preproc_ok=false
15472 for ac_cxx_preproc_warn_flag in '' yes
15473 do
15474 # Use a header file that comes with gcc, so configuring glibc
15475 # with a fresh cross-compiler works.
15476 # On the NeXT, cc -E runs the code through the compiler's parser,
15477 # not just through cpp. "Syntax error" is here to catch this case.
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15480 #include <limits.h>
15481 Syntax error
15482 _ACEOF
15483 if ac_fn_cxx_try_cpp "$LINENO"
15484 then :
15485
15486 else $as_nop
15487 # Broken: fails on valid input.
15488 continue
15489 fi
15490 rm -f conftest.err conftest.i conftest.$ac_ext
15491
15492 # OK, works on sane cases. Now check whether nonexistent headers
15493 # can be detected and how.
15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h. */
15496 #include <ac_nonexistent.h>
15497 _ACEOF
15498 if ac_fn_cxx_try_cpp "$LINENO"
15499 then :
15500 # Broken: success on invalid input.
15501 continue
15502 else $as_nop
15503 # Passes both tests.
15504 ac_preproc_ok=:
15505 break
15506 fi
15507 rm -f conftest.err conftest.i conftest.$ac_ext
15508
15509 done
15510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15511 rm -f conftest.i conftest.err conftest.$ac_ext
15512 if $ac_preproc_ok
15513 then :
15514 break
15515 fi
15516
15517 done
15518 ac_cv_prog_CXXCPP=$CXXCPP
15519
15520 fi
15521 CXXCPP=$ac_cv_prog_CXXCPP
15522 else
15523 ac_cv_prog_CXXCPP=$CXXCPP
15524 fi
15525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15526 printf "%s\n" "$CXXCPP" >&6; }
15527 ac_preproc_ok=false
15528 for ac_cxx_preproc_warn_flag in '' yes
15529 do
15530 # Use a header file that comes with gcc, so configuring glibc
15531 # with a fresh cross-compiler works.
15532 # On the NeXT, cc -E runs the code through the compiler's parser,
15533 # not just through cpp. "Syntax error" is here to catch this case.
15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535 /* end confdefs.h. */
15536 #include <limits.h>
15537 Syntax error
15538 _ACEOF
15539 if ac_fn_cxx_try_cpp "$LINENO"
15540 then :
15541
15542 else $as_nop
15543 # Broken: fails on valid input.
15544 continue
15545 fi
15546 rm -f conftest.err conftest.i conftest.$ac_ext
15547
15548 # OK, works on sane cases. Now check whether nonexistent headers
15549 # can be detected and how.
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15552 #include <ac_nonexistent.h>
15553 _ACEOF
15554 if ac_fn_cxx_try_cpp "$LINENO"
15555 then :
15556 # Broken: success on invalid input.
15557 continue
15558 else $as_nop
15559 # Passes both tests.
15560 ac_preproc_ok=:
15561 break
15562 fi
15563 rm -f conftest.err conftest.i conftest.$ac_ext
15564
15565 done
15566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15567 rm -f conftest.i conftest.err conftest.$ac_ext
15568 if $ac_preproc_ok
15569 then :
15570
15571 else $as_nop
15572 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15573 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15574 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15575 See \`config.log' for more details" "$LINENO" 5; }
15576 fi
15577
15578 ac_ext=c
15579 ac_cpp='$CPP $CPPFLAGS'
15580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15583
15584 else
15585 _lt_caught_CXX_error=yes
15586 fi
15587
15588 ac_ext=cpp
15589 ac_cpp='$CXXCPP $CPPFLAGS'
15590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15593
15594 archive_cmds_need_lc_CXX=no
15595 allow_undefined_flag_CXX=
15596 always_export_symbols_CXX=no
15597 archive_expsym_cmds_CXX=
15598 compiler_needs_object_CXX=no
15599 export_dynamic_flag_spec_CXX=
15600 hardcode_direct_CXX=no
15601 hardcode_direct_absolute_CXX=no
15602 hardcode_libdir_flag_spec_CXX=
15603 hardcode_libdir_separator_CXX=
15604 hardcode_minus_L_CXX=no
15605 hardcode_shlibpath_var_CXX=unsupported
15606 hardcode_automatic_CXX=no
15607 inherit_rpath_CXX=no
15608 module_cmds_CXX=
15609 module_expsym_cmds_CXX=
15610 link_all_deplibs_CXX=unknown
15611 old_archive_cmds_CXX=$old_archive_cmds
15612 reload_flag_CXX=$reload_flag
15613 reload_cmds_CXX=$reload_cmds
15614 no_undefined_flag_CXX=
15615 whole_archive_flag_spec_CXX=
15616 enable_shared_with_static_runtimes_CXX=no
15617
15618 # Source file extension for C++ test sources.
15619 ac_ext=cpp
15620
15621 # Object file extension for compiled C++ test sources.
15622 objext=o
15623 objext_CXX=$objext
15624
15625 # No sense in running all these tests if we already determined that
15626 # the CXX compiler isn't working. Some variables (like enable_shared)
15627 # are currently assumed to apply to all compilers on this platform,
15628 # and will be corrupted by setting them based on a non-working compiler.
15629 if test yes != "$_lt_caught_CXX_error"; then
15630 # Code to be used in simple compile tests
15631 lt_simple_compile_test_code="int some_variable = 0;"
15632
15633 # Code to be used in simple link tests
15634 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15635
15636 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15637
15638
15639
15640
15641
15642
15643 # If no C compiler was specified, use CC.
15644 LTCC=${LTCC-"$CC"}
15645
15646 # If no C compiler flags were specified, use CFLAGS.
15647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15648
15649 # Allow CC to be a program name with arguments.
15650 compiler=$CC
15651
15652
15653 # save warnings/boilerplate of simple test code
15654 ac_outfile=conftest.$ac_objext
15655 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15657 _lt_compiler_boilerplate=`cat conftest.err`
15658 $RM conftest*
15659
15660 ac_outfile=conftest.$ac_objext
15661 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15663 _lt_linker_boilerplate=`cat conftest.err`
15664 $RM -r conftest*
15665
15666
15667 # Allow CC to be a program name with arguments.
15668 lt_save_CC=$CC
15669 lt_save_CFLAGS=$CFLAGS
15670 lt_save_LD=$LD
15671 lt_save_GCC=$GCC
15672 GCC=$GXX
15673 lt_save_with_gnu_ld=$with_gnu_ld
15674 lt_save_path_LD=$lt_cv_path_LD
15675 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15676 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15677 else
15678 $as_unset lt_cv_prog_gnu_ld
15679 fi
15680 if test -n "${lt_cv_path_LDCXX+set}"; then
15681 lt_cv_path_LD=$lt_cv_path_LDCXX
15682 else
15683 $as_unset lt_cv_path_LD
15684 fi
15685 test -z "${LDCXX+set}" || LD=$LDCXX
15686 CC=${CXX-"c++"}
15687 CFLAGS=$CXXFLAGS
15688 compiler=$CC
15689 compiler_CXX=$CC
15690 func_cc_basename $compiler
15691 cc_basename=$func_cc_basename_result
15692
15693
15694 if test -n "$compiler"; then
15695 # We don't want -fno-exception when compiling C++ code, so set the
15696 # no_builtin_flag separately
15697 if test yes = "$GXX"; then
15698 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15699 else
15700 lt_prog_compiler_no_builtin_flag_CXX=
15701 fi
15702
15703 if test yes = "$GXX"; then
15704 # Set up default GNU C++ configuration
15705
15706
15707
15708 # Check whether --with-gnu-ld was given.
15709 if test ${with_gnu_ld+y}
15710 then :
15711 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15712 else $as_nop
15713 with_gnu_ld=no
15714 fi
15715
15716 ac_prog=ld
15717 if test yes = "$GCC"; then
15718 # Check if gcc -print-prog-name=ld gives a path.
15719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15720 printf %s "checking for ld used by $CC... " >&6; }
15721 case $host in
15722 *-*-mingw*)
15723 # gcc leaves a trailing carriage return, which upsets mingw
15724 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15725 *)
15726 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15727 esac
15728 case $ac_prog in
15729 # Accept absolute paths.
15730 [\\/]* | ?:[\\/]*)
15731 re_direlt='/[^/][^/]*/\.\./'
15732 # Canonicalize the pathname of ld
15733 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15734 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15735 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15736 done
15737 test -z "$LD" && LD=$ac_prog
15738 ;;
15739 "")
15740 # If it fails, then pretend we aren't using GCC.
15741 ac_prog=ld
15742 ;;
15743 *)
15744 # If it is relative, then search for the first ld in PATH.
15745 with_gnu_ld=unknown
15746 ;;
15747 esac
15748 elif test yes = "$with_gnu_ld"; then
15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15750 printf %s "checking for GNU ld... " >&6; }
15751 else
15752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15753 printf %s "checking for non-GNU ld... " >&6; }
15754 fi
15755 if test ${lt_cv_path_LD+y}
15756 then :
15757 printf %s "(cached) " >&6
15758 else $as_nop
15759 if test -z "$LD"; then
15760 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15761 for ac_dir in $PATH; do
15762 IFS=$lt_save_ifs
15763 test -z "$ac_dir" && ac_dir=.
15764 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15765 lt_cv_path_LD=$ac_dir/$ac_prog
15766 # Check to see if the program is GNU ld. I'd rather use --version,
15767 # but apparently some variants of GNU ld only accept -v.
15768 # Break only if it was the GNU/non-GNU ld that we prefer.
15769 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15770 *GNU* | *'with BFD'*)
15771 test no != "$with_gnu_ld" && break
15772 ;;
15773 *)
15774 test yes != "$with_gnu_ld" && break
15775 ;;
15776 esac
15777 fi
15778 done
15779 IFS=$lt_save_ifs
15780 else
15781 lt_cv_path_LD=$LD # Let the user override the test with a path.
15782 fi
15783 fi
15784
15785 LD=$lt_cv_path_LD
15786 if test -n "$LD"; then
15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15788 printf "%s\n" "$LD" >&6; }
15789 else
15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15791 printf "%s\n" "no" >&6; }
15792 fi
15793 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15795 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15796 if test ${lt_cv_prog_gnu_ld+y}
15797 then :
15798 printf %s "(cached) " >&6
15799 else $as_nop
15800 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15801 case `$LD -v 2>&1 </dev/null` in
15802 *GNU* | *'with BFD'*)
15803 lt_cv_prog_gnu_ld=yes
15804 ;;
15805 *)
15806 lt_cv_prog_gnu_ld=no
15807 ;;
15808 esac
15809 fi
15810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15811 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15812 with_gnu_ld=$lt_cv_prog_gnu_ld
15813
15814
15815
15816
15817
15818
15819
15820 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15821 # archiving commands below assume that GNU ld is being used.
15822 if test yes = "$with_gnu_ld"; then
15823 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15824 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'
15825
15826 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15827 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15828
15829 # If archive_cmds runs LD, not CC, wlarc should be empty
15830 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15831 # investigate it a little bit more. (MM)
15832 wlarc='$wl'
15833
15834 # ancient GNU ld didn't support --whole-archive et. al.
15835 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15836 $GREP 'no-whole-archive' > /dev/null; then
15837 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15838 else
15839 whole_archive_flag_spec_CXX=
15840 fi
15841 else
15842 with_gnu_ld=no
15843 wlarc=
15844
15845 # A generic and very simple default shared library creation
15846 # command for GNU C++ for the case where it uses the native
15847 # linker, instead of GNU ld. If possible, this setting should
15848 # overridden to take advantage of the native linker features on
15849 # the platform it is being used on.
15850 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15851 fi
15852
15853 # Commands to make compiler produce verbose output that lists
15854 # what "hidden" libraries, object files and flags are used when
15855 # linking a shared library.
15856 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15857
15858 else
15859 GXX=no
15860 with_gnu_ld=no
15861 wlarc=
15862 fi
15863
15864 # PORTME: fill in a description of your system's C++ link characteristics
15865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15866 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15867 ld_shlibs_CXX=yes
15868 case $host_os in
15869 aix3*)
15870 # FIXME: insert proper C++ library support
15871 ld_shlibs_CXX=no
15872 ;;
15873 aix[4-9]*)
15874 if test ia64 = "$host_cpu"; then
15875 # On IA64, the linker does run time linking by default, so we don't
15876 # have to do anything special.
15877 aix_use_runtimelinking=no
15878 exp_sym_flag='-Bexport'
15879 no_entry_flag=
15880 else
15881 aix_use_runtimelinking=no
15882
15883 # Test if we are trying to use run time linking or normal
15884 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15885 # have runtime linking enabled, and use it for executables.
15886 # For shared libraries, we enable/disable runtime linking
15887 # depending on the kind of the shared library created -
15888 # when "with_aix_soname,aix_use_runtimelinking" is:
15889 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15890 # "aix,yes" lib.so shared, rtl:yes, for executables
15891 # lib.a static archive
15892 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15893 # lib.a(lib.so.V) shared, rtl:no, for executables
15894 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15895 # lib.a(lib.so.V) shared, rtl:no
15896 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15897 # lib.a static archive
15898 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15899 for ld_flag in $LDFLAGS; do
15900 case $ld_flag in
15901 *-brtl*)
15902 aix_use_runtimelinking=yes
15903 break
15904 ;;
15905 esac
15906 done
15907 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15908 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15909 # so we don't have lib.a shared libs to link our executables.
15910 # We have to force runtime linking in this case.
15911 aix_use_runtimelinking=yes
15912 LDFLAGS="$LDFLAGS -Wl,-brtl"
15913 fi
15914 ;;
15915 esac
15916
15917 exp_sym_flag='-bexport'
15918 no_entry_flag='-bnoentry'
15919 fi
15920
15921 # When large executables or shared objects are built, AIX ld can
15922 # have problems creating the table of contents. If linking a library
15923 # or program results in "error TOC overflow" add -mminimal-toc to
15924 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15925 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15926
15927 archive_cmds_CXX=''
15928 hardcode_direct_CXX=yes
15929 hardcode_direct_absolute_CXX=yes
15930 hardcode_libdir_separator_CXX=':'
15931 link_all_deplibs_CXX=yes
15932 file_list_spec_CXX='$wl-f,'
15933 case $with_aix_soname,$aix_use_runtimelinking in
15934 aix,*) ;; # no import file
15935 svr4,* | *,yes) # use import file
15936 # The Import File defines what to hardcode.
15937 hardcode_direct_CXX=no
15938 hardcode_direct_absolute_CXX=no
15939 ;;
15940 esac
15941
15942 if test yes = "$GXX"; then
15943 case $host_os in aix4.[012]|aix4.[012].*)
15944 # We only want to do this on AIX 4.2 and lower, the check
15945 # below for broken collect2 doesn't work under 4.3+
15946 collect2name=`$CC -print-prog-name=collect2`
15947 if test -f "$collect2name" &&
15948 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15949 then
15950 # We have reworked collect2
15951 :
15952 else
15953 # We have old collect2
15954 hardcode_direct_CXX=unsupported
15955 # It fails to find uninstalled libraries when the uninstalled
15956 # path is not listed in the libpath. Setting hardcode_minus_L
15957 # to unsupported forces relinking
15958 hardcode_minus_L_CXX=yes
15959 hardcode_libdir_flag_spec_CXX='-L$libdir'
15960 hardcode_libdir_separator_CXX=
15961 fi
15962 esac
15963 shared_flag='-shared'
15964 if test yes = "$aix_use_runtimelinking"; then
15965 shared_flag=$shared_flag' $wl-G'
15966 fi
15967 # Need to ensure runtime linking is disabled for the traditional
15968 # shared library, or the linker may eventually find shared libraries
15969 # /with/ Import File - we do not want to mix them.
15970 shared_flag_aix='-shared'
15971 shared_flag_svr4='-shared $wl-G'
15972 else
15973 # not using gcc
15974 if test ia64 = "$host_cpu"; then
15975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15976 # chokes on -Wl,-G. The following line is correct:
15977 shared_flag='-G'
15978 else
15979 if test yes = "$aix_use_runtimelinking"; then
15980 shared_flag='$wl-G'
15981 else
15982 shared_flag='$wl-bM:SRE'
15983 fi
15984 shared_flag_aix='$wl-bM:SRE'
15985 shared_flag_svr4='$wl-G'
15986 fi
15987 fi
15988
15989 export_dynamic_flag_spec_CXX='$wl-bexpall'
15990 # It seems that -bexpall does not export symbols beginning with
15991 # underscore (_), so it is better to generate a list of symbols to
15992 # export.
15993 always_export_symbols_CXX=yes
15994 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15995 # Warning - without using the other runtime loading flags (-brtl),
15996 # -berok will link without error, but may produce a broken library.
15997 # The "-G" linker flag allows undefined symbols.
15998 no_undefined_flag_CXX='-bernotok'
15999 # Determine the default libpath from the value encoded in an empty
16000 # executable.
16001 if test set = "${lt_cv_aix_libpath+set}"; then
16002 aix_libpath=$lt_cv_aix_libpath
16003 else
16004 if test ${lt_cv_aix_libpath__CXX+y}
16005 then :
16006 printf %s "(cached) " >&6
16007 else $as_nop
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16010
16011 int
16012 main (void)
16013 {
16014
16015 ;
16016 return 0;
16017 }
16018 _ACEOF
16019 if ac_fn_cxx_try_link "$LINENO"
16020 then :
16021
16022 lt_aix_libpath_sed='
16023 /Import File Strings/,/^$/ {
16024 /^0/ {
16025 s/^0 *\([^ ]*\) *$/\1/
16026 p
16027 }
16028 }'
16029 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16030 # Check for a 64-bit object if we didn't find anything.
16031 if test -z "$lt_cv_aix_libpath__CXX"; then
16032 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16033 fi
16034 fi
16035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16036 conftest$ac_exeext conftest.$ac_ext
16037 if test -z "$lt_cv_aix_libpath__CXX"; then
16038 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16039 fi
16040
16041 fi
16042
16043 aix_libpath=$lt_cv_aix_libpath__CXX
16044 fi
16045
16046 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16047
16048 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
16049 else
16050 if test ia64 = "$host_cpu"; then
16051 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16052 allow_undefined_flag_CXX="-z nodefs"
16053 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"
16054 else
16055 # Determine the default libpath from the value encoded in an
16056 # empty executable.
16057 if test set = "${lt_cv_aix_libpath+set}"; then
16058 aix_libpath=$lt_cv_aix_libpath
16059 else
16060 if test ${lt_cv_aix_libpath__CXX+y}
16061 then :
16062 printf %s "(cached) " >&6
16063 else $as_nop
16064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065 /* end confdefs.h. */
16066
16067 int
16068 main (void)
16069 {
16070
16071 ;
16072 return 0;
16073 }
16074 _ACEOF
16075 if ac_fn_cxx_try_link "$LINENO"
16076 then :
16077
16078 lt_aix_libpath_sed='
16079 /Import File Strings/,/^$/ {
16080 /^0/ {
16081 s/^0 *\([^ ]*\) *$/\1/
16082 p
16083 }
16084 }'
16085 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16086 # Check for a 64-bit object if we didn't find anything.
16087 if test -z "$lt_cv_aix_libpath__CXX"; then
16088 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16089 fi
16090 fi
16091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16092 conftest$ac_exeext conftest.$ac_ext
16093 if test -z "$lt_cv_aix_libpath__CXX"; then
16094 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16095 fi
16096
16097 fi
16098
16099 aix_libpath=$lt_cv_aix_libpath__CXX
16100 fi
16101
16102 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16103 # Warning - without using the other run time loading flags,
16104 # -berok will link without error, but may produce a broken library.
16105 no_undefined_flag_CXX=' $wl-bernotok'
16106 allow_undefined_flag_CXX=' $wl-berok'
16107 if test yes = "$with_gnu_ld"; then
16108 # We only use this code for GNU lds that support --whole-archive.
16109 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16110 else
16111 # Exported symbols can be pulled into shared objects from archives
16112 whole_archive_flag_spec_CXX='$convenience'
16113 fi
16114 archive_cmds_need_lc_CXX=yes
16115 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16116 # -brtl affects multiple linker settings, -berok does not and is overridden later
16117 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16118 if test svr4 != "$with_aix_soname"; then
16119 # This is similar to how AIX traditionally builds its shared
16120 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16121 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'
16122 fi
16123 if test aix != "$with_aix_soname"; then
16124 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'
16125 else
16126 # used by -dlpreopen to get the symbols
16127 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16128 fi
16129 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16130 fi
16131 fi
16132 ;;
16133
16134 beos*)
16135 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16136 allow_undefined_flag_CXX=unsupported
16137 # Joseph Beckenbach <[email protected]> says some releases of gcc
16138 # support --undefined. This deserves some investigation. FIXME
16139 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16140 else
16141 ld_shlibs_CXX=no
16142 fi
16143 ;;
16144
16145 chorus*)
16146 case $cc_basename in
16147 *)
16148 # FIXME: insert proper C++ library support
16149 ld_shlibs_CXX=no
16150 ;;
16151 esac
16152 ;;
16153
16154 cygwin* | mingw* | pw32* | cegcc*)
16155 case $GXX,$cc_basename in
16156 ,cl* | no,cl* | ,icl* | no,icl*)
16157 # Native MSVC or ICC
16158 # hardcode_libdir_flag_spec is actually meaningless, as there is
16159 # no search path for DLLs.
16160 hardcode_libdir_flag_spec_CXX=' '
16161 allow_undefined_flag_CXX=unsupported
16162 always_export_symbols_CXX=yes
16163 file_list_spec_CXX='@'
16164 # Tell ltmain to make .lib files, not .a files.
16165 libext=lib
16166 # Tell ltmain to make .dll files, not .so files.
16167 shrext_cmds=.dll
16168 # FIXME: Setting linknames here is a bad hack.
16169 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16170 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16171 cp "$export_symbols" "$output_objdir/$soname.def";
16172 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16173 else
16174 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16175 fi~
16176 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16177 linknames='
16178 # The linker will not automatically build a static lib if we build a DLL.
16179 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16180 enable_shared_with_static_runtimes_CXX=yes
16181 # Don't use ranlib
16182 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16183 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16184 lt_tool_outputfile="@TOOL_OUTPUT@"~
16185 case $lt_outputfile in
16186 *.exe|*.EXE) ;;
16187 *)
16188 lt_outputfile=$lt_outputfile.exe
16189 lt_tool_outputfile=$lt_tool_outputfile.exe
16190 ;;
16191 esac~
16192 func_to_tool_file "$lt_outputfile"~
16193 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16194 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16195 $RM "$lt_outputfile.manifest";
16196 fi'
16197 ;;
16198 *)
16199 # g++
16200 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16201 # as there is no search path for DLLs.
16202 hardcode_libdir_flag_spec_CXX='-L$libdir'
16203 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16204 allow_undefined_flag_CXX=unsupported
16205 always_export_symbols_CXX=no
16206 enable_shared_with_static_runtimes_CXX=yes
16207
16208 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16209 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'
16210 # If the export-symbols file already is a .def file, use it as
16211 # is; otherwise, prepend EXPORTS...
16212 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16213 cp $export_symbols $output_objdir/$soname.def;
16214 else
16215 echo EXPORTS > $output_objdir/$soname.def;
16216 cat $export_symbols >> $output_objdir/$soname.def;
16217 fi~
16218 $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'
16219 else
16220 ld_shlibs_CXX=no
16221 fi
16222 ;;
16223 esac
16224 ;;
16225 darwin* | rhapsody*)
16226
16227
16228 archive_cmds_need_lc_CXX=no
16229 hardcode_direct_CXX=no
16230 hardcode_automatic_CXX=yes
16231 hardcode_shlibpath_var_CXX=unsupported
16232 if test yes = "$lt_cv_ld_force_load"; then
16233 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\"`'
16234
16235 else
16236 whole_archive_flag_spec_CXX=''
16237 fi
16238 link_all_deplibs_CXX=yes
16239 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16240 case $cc_basename in
16241 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16242 *) _lt_dar_can_shared=$GCC ;;
16243 esac
16244 if test yes = "$_lt_dar_can_shared"; then
16245 output_verbose_link_cmd=func_echo_all
16246 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"
16247 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16248 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"
16249 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"
16250 if test yes != "$lt_cv_apple_cc_single_mod"; then
16251 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"
16252 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"
16253 fi
16254
16255 else
16256 ld_shlibs_CXX=no
16257 fi
16258
16259 ;;
16260
16261 os2*)
16262 hardcode_libdir_flag_spec_CXX='-L$libdir'
16263 hardcode_minus_L_CXX=yes
16264 allow_undefined_flag_CXX=unsupported
16265 shrext_cmds=.dll
16266 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16267 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16268 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16269 $ECHO EXPORTS >> $output_objdir/$libname.def~
16270 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16271 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16272 emximp -o $lib $output_objdir/$libname.def'
16273 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16274 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16275 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16276 $ECHO EXPORTS >> $output_objdir/$libname.def~
16277 prefix_cmds="$SED"~
16278 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16279 prefix_cmds="$prefix_cmds -e 1d";
16280 fi~
16281 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16282 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16283 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16284 emximp -o $lib $output_objdir/$libname.def'
16285 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16286 enable_shared_with_static_runtimes_CXX=yes
16287 file_list_spec_CXX='@'
16288 ;;
16289
16290 dgux*)
16291 case $cc_basename in
16292 ec++*)
16293 # FIXME: insert proper C++ library support
16294 ld_shlibs_CXX=no
16295 ;;
16296 ghcx*)
16297 # Green Hills C++ Compiler
16298 # FIXME: insert proper C++ library support
16299 ld_shlibs_CXX=no
16300 ;;
16301 *)
16302 # FIXME: insert proper C++ library support
16303 ld_shlibs_CXX=no
16304 ;;
16305 esac
16306 ;;
16307
16308 freebsd2.*)
16309 # C++ shared libraries reported to be fairly broken before
16310 # switch to ELF
16311 ld_shlibs_CXX=no
16312 ;;
16313
16314 freebsd-elf*)
16315 archive_cmds_need_lc_CXX=no
16316 ;;
16317
16318 freebsd* | dragonfly* | midnightbsd*)
16319 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16320 # conventions
16321 ld_shlibs_CXX=yes
16322 ;;
16323
16324 haiku*)
16325 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16326 link_all_deplibs_CXX=yes
16327 ;;
16328
16329 hpux9*)
16330 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16331 hardcode_libdir_separator_CXX=:
16332 export_dynamic_flag_spec_CXX='$wl-E'
16333 hardcode_direct_CXX=yes
16334 hardcode_minus_L_CXX=yes # Not in the search PATH,
16335 # but as the default
16336 # location of the library.
16337
16338 case $cc_basename in
16339 CC*)
16340 # FIXME: insert proper C++ library support
16341 ld_shlibs_CXX=no
16342 ;;
16343 aCC*)
16344 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'
16345 # Commands to make compiler produce verbose output that lists
16346 # what "hidden" libraries, object files and flags are used when
16347 # linking a shared library.
16348 #
16349 # There doesn't appear to be a way to prevent this compiler from
16350 # explicitly linking system object files so we need to strip them
16351 # from the output so that they don't get included in the library
16352 # dependencies.
16353 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"'
16354 ;;
16355 *)
16356 if test yes = "$GXX"; then
16357 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'
16358 else
16359 # FIXME: insert proper C++ library support
16360 ld_shlibs_CXX=no
16361 fi
16362 ;;
16363 esac
16364 ;;
16365
16366 hpux10*|hpux11*)
16367 if test no = "$with_gnu_ld"; then
16368 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16369 hardcode_libdir_separator_CXX=:
16370
16371 case $host_cpu in
16372 hppa*64*|ia64*)
16373 ;;
16374 *)
16375 export_dynamic_flag_spec_CXX='$wl-E'
16376 ;;
16377 esac
16378 fi
16379 case $host_cpu in
16380 hppa*64*|ia64*)
16381 hardcode_direct_CXX=no
16382 hardcode_shlibpath_var_CXX=no
16383 ;;
16384 *)
16385 hardcode_direct_CXX=yes
16386 hardcode_direct_absolute_CXX=yes
16387 hardcode_minus_L_CXX=yes # Not in the search PATH,
16388 # but as the default
16389 # location of the library.
16390 ;;
16391 esac
16392
16393 case $cc_basename in
16394 CC*)
16395 # FIXME: insert proper C++ library support
16396 ld_shlibs_CXX=no
16397 ;;
16398 aCC*)
16399 case $host_cpu in
16400 hppa*64*)
16401 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16402 ;;
16403 ia64*)
16404 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16405 ;;
16406 *)
16407 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16408 ;;
16409 esac
16410 # Commands to make compiler produce verbose output that lists
16411 # what "hidden" libraries, object files and flags are used when
16412 # linking a shared library.
16413 #
16414 # There doesn't appear to be a way to prevent this compiler from
16415 # explicitly linking system object files so we need to strip them
16416 # from the output so that they don't get included in the library
16417 # dependencies.
16418 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"'
16419 ;;
16420 *)
16421 if test yes = "$GXX"; then
16422 if test no = "$with_gnu_ld"; then
16423 case $host_cpu in
16424 hppa*64*)
16425 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16426 ;;
16427 ia64*)
16428 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16429 ;;
16430 *)
16431 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'
16432 ;;
16433 esac
16434 fi
16435 else
16436 # FIXME: insert proper C++ library support
16437 ld_shlibs_CXX=no
16438 fi
16439 ;;
16440 esac
16441 ;;
16442
16443 interix[3-9]*)
16444 hardcode_direct_CXX=no
16445 hardcode_shlibpath_var_CXX=no
16446 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16447 export_dynamic_flag_spec_CXX='$wl-E'
16448 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16449 # Instead, shared libraries are loaded at an image base (0x10000000 by
16450 # default) and relocated if they conflict, which is a slow very memory
16451 # consuming and fragmenting process. To avoid this, we pick a random,
16452 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16453 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16454 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'
16455 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'
16456 ;;
16457 irix5* | irix6*)
16458 case $cc_basename in
16459 CC*)
16460 # SGI C++
16461 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'
16462
16463 # Archives containing C++ object files must be created using
16464 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16465 # necessary to make sure instantiated templates are included
16466 # in the archive.
16467 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16468 ;;
16469 *)
16470 if test yes = "$GXX"; then
16471 if test no = "$with_gnu_ld"; then
16472 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'
16473 else
16474 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'
16475 fi
16476 fi
16477 link_all_deplibs_CXX=yes
16478 ;;
16479 esac
16480 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16481 hardcode_libdir_separator_CXX=:
16482 inherit_rpath_CXX=yes
16483 ;;
16484
16485 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16486 case $cc_basename in
16487 KCC*)
16488 # Kuck and Associates, Inc. (KAI) C++ Compiler
16489
16490 # KCC will only create a shared library if the output file
16491 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16492 # to its proper name (with version) after linking.
16493 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'
16494 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'
16495 # Commands to make compiler produce verbose output that lists
16496 # what "hidden" libraries, object files and flags are used when
16497 # linking a shared library.
16498 #
16499 # There doesn't appear to be a way to prevent this compiler from
16500 # explicitly linking system object files so we need to strip them
16501 # from the output so that they don't get included in the library
16502 # dependencies.
16503 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"'
16504
16505 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16506 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16507
16508 # Archives containing C++ object files must be created using
16509 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16510 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16511 ;;
16512 icpc* | ecpc* )
16513 # Intel C++
16514 with_gnu_ld=yes
16515 # version 8.0 and above of icpc choke on multiply defined symbols
16516 # if we add $predep_objects and $postdep_objects, however 7.1 and
16517 # earlier do not add the objects themselves.
16518 case `$CC -V 2>&1` in
16519 *"Version 7."*)
16520 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16521 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'
16522 ;;
16523 *) # Version 8.0 or newer
16524 tmp_idyn=
16525 case $host_cpu in
16526 ia64*) tmp_idyn=' -i_dynamic';;
16527 esac
16528 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16529 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'
16530 ;;
16531 esac
16532 archive_cmds_need_lc_CXX=no
16533 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16534 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16535 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16536 ;;
16537 pgCC* | pgcpp*)
16538 # Portland Group C++ compiler
16539 case `$CC -V` in
16540 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16541 prelink_cmds_CXX='tpldir=Template.dir~
16542 rm -rf $tpldir~
16543 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16544 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16545 old_archive_cmds_CXX='tpldir=Template.dir~
16546 rm -rf $tpldir~
16547 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16548 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16549 $RANLIB $oldlib'
16550 archive_cmds_CXX='tpldir=Template.dir~
16551 rm -rf $tpldir~
16552 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16553 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16554 archive_expsym_cmds_CXX='tpldir=Template.dir~
16555 rm -rf $tpldir~
16556 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16557 $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'
16558 ;;
16559 *) # Version 6 and above use weak symbols
16560 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16561 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'
16562 ;;
16563 esac
16564
16565 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16566 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16567 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'
16568 ;;
16569 cxx*)
16570 # Compaq C++
16571 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16572 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'
16573
16574 runpath_var=LD_RUN_PATH
16575 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16576 hardcode_libdir_separator_CXX=:
16577
16578 # Commands to make compiler produce verbose output that lists
16579 # what "hidden" libraries, object files and flags are used when
16580 # linking a shared library.
16581 #
16582 # There doesn't appear to be a way to prevent this compiler from
16583 # explicitly linking system object files so we need to strip them
16584 # from the output so that they don't get included in the library
16585 # dependencies.
16586 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'
16587 ;;
16588 xl* | mpixl* | bgxl*)
16589 # IBM XL 8.0 on PPC, with GNU ld
16590 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16591 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16592 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16593 if test yes = "$supports_anon_versioning"; then
16594 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16595 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16596 echo "local: *; };" >> $output_objdir/$libname.ver~
16597 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16598 fi
16599 ;;
16600 *)
16601 case `$CC -V 2>&1 | $SED 5q` in
16602 *Sun\ C*)
16603 # Sun C++ 5.9
16604 no_undefined_flag_CXX=' -zdefs'
16605 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16606 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'
16607 hardcode_libdir_flag_spec_CXX='-R$libdir'
16608 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'
16609 compiler_needs_object_CXX=yes
16610
16611 # Not sure whether something based on
16612 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16613 # would be better.
16614 output_verbose_link_cmd='func_echo_all'
16615
16616 # Archives containing C++ object files must be created using
16617 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16618 # necessary to make sure instantiated templates are included
16619 # in the archive.
16620 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16621 ;;
16622 esac
16623 ;;
16624 esac
16625 ;;
16626
16627 lynxos*)
16628 # FIXME: insert proper C++ library support
16629 ld_shlibs_CXX=no
16630 ;;
16631
16632 m88k*)
16633 # FIXME: insert proper C++ library support
16634 ld_shlibs_CXX=no
16635 ;;
16636
16637 mvs*)
16638 case $cc_basename in
16639 cxx*)
16640 # FIXME: insert proper C++ library support
16641 ld_shlibs_CXX=no
16642 ;;
16643 *)
16644 # FIXME: insert proper C++ library support
16645 ld_shlibs_CXX=no
16646 ;;
16647 esac
16648 ;;
16649
16650 netbsd*)
16651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16652 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16653 wlarc=
16654 hardcode_libdir_flag_spec_CXX='-R$libdir'
16655 hardcode_direct_CXX=yes
16656 hardcode_shlibpath_var_CXX=no
16657 fi
16658 # Workaround some broken pre-1.5 toolchains
16659 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16660 ;;
16661
16662 *nto* | *qnx*)
16663 ld_shlibs_CXX=yes
16664 ;;
16665
16666 openbsd* | bitrig*)
16667 if test -f /usr/libexec/ld.so; then
16668 hardcode_direct_CXX=yes
16669 hardcode_shlibpath_var_CXX=no
16670 hardcode_direct_absolute_CXX=yes
16671 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16672 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16674 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16675 export_dynamic_flag_spec_CXX='$wl-E'
16676 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16677 fi
16678 output_verbose_link_cmd=func_echo_all
16679 else
16680 ld_shlibs_CXX=no
16681 fi
16682 ;;
16683
16684 osf3* | osf4* | osf5*)
16685 case $cc_basename in
16686 KCC*)
16687 # Kuck and Associates, Inc. (KAI) C++ Compiler
16688
16689 # KCC will only create a shared library if the output file
16690 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16691 # to its proper name (with version) after linking.
16692 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'
16693
16694 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16695 hardcode_libdir_separator_CXX=:
16696
16697 # Archives containing C++ object files must be created using
16698 # the KAI C++ compiler.
16699 case $host in
16700 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16701 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16702 esac
16703 ;;
16704 RCC*)
16705 # Rational C++ 2.4.1
16706 # FIXME: insert proper C++ library support
16707 ld_shlibs_CXX=no
16708 ;;
16709 cxx*)
16710 case $host in
16711 osf3*)
16712 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16713 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'
16714 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16715 ;;
16716 *)
16717 allow_undefined_flag_CXX=' -expect_unresolved \*'
16718 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'
16719 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16720 echo "-hidden">> $lib.exp~
16721 $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~
16722 $RM $lib.exp'
16723 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16724 ;;
16725 esac
16726
16727 hardcode_libdir_separator_CXX=:
16728
16729 # Commands to make compiler produce verbose output that lists
16730 # what "hidden" libraries, object files and flags are used when
16731 # linking a shared library.
16732 #
16733 # There doesn't appear to be a way to prevent this compiler from
16734 # explicitly linking system object files so we need to strip them
16735 # from the output so that they don't get included in the library
16736 # dependencies.
16737 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"'
16738 ;;
16739 *)
16740 if test yes,no = "$GXX,$with_gnu_ld"; then
16741 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16742 case $host in
16743 osf3*)
16744 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'
16745 ;;
16746 *)
16747 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'
16748 ;;
16749 esac
16750
16751 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16752 hardcode_libdir_separator_CXX=:
16753
16754 # Commands to make compiler produce verbose output that lists
16755 # what "hidden" libraries, object files and flags are used when
16756 # linking a shared library.
16757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16758
16759 else
16760 # FIXME: insert proper C++ library support
16761 ld_shlibs_CXX=no
16762 fi
16763 ;;
16764 esac
16765 ;;
16766
16767 psos*)
16768 # FIXME: insert proper C++ library support
16769 ld_shlibs_CXX=no
16770 ;;
16771
16772 sunos4*)
16773 case $cc_basename in
16774 CC*)
16775 # Sun C++ 4.x
16776 # FIXME: insert proper C++ library support
16777 ld_shlibs_CXX=no
16778 ;;
16779 lcc*)
16780 # Lucid
16781 # FIXME: insert proper C++ library support
16782 ld_shlibs_CXX=no
16783 ;;
16784 *)
16785 # FIXME: insert proper C++ library support
16786 ld_shlibs_CXX=no
16787 ;;
16788 esac
16789 ;;
16790
16791 solaris*)
16792 case $cc_basename in
16793 CC* | sunCC*)
16794 # Sun C++ 4.2, 5.x and Centerline C++
16795 archive_cmds_need_lc_CXX=yes
16796 no_undefined_flag_CXX=' -zdefs'
16797 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16798 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16799 $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'
16800
16801 hardcode_libdir_flag_spec_CXX='-R$libdir'
16802 hardcode_shlibpath_var_CXX=no
16803 case $host_os in
16804 solaris2.[0-5] | solaris2.[0-5].*) ;;
16805 *)
16806 # The compiler driver will combine and reorder linker options,
16807 # but understands '-z linker_flag'.
16808 # Supported since Solaris 2.6 (maybe 2.5.1?)
16809 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16810 ;;
16811 esac
16812 link_all_deplibs_CXX=yes
16813
16814 output_verbose_link_cmd='func_echo_all'
16815
16816 # Archives containing C++ object files must be created using
16817 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16818 # necessary to make sure instantiated templates are included
16819 # in the archive.
16820 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16821 ;;
16822 gcx*)
16823 # Green Hills C++ Compiler
16824 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16825
16826 # The C++ compiler must be used to create the archive.
16827 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16828 ;;
16829 *)
16830 # GNU C++ compiler with Solaris linker
16831 if test yes,no = "$GXX,$with_gnu_ld"; then
16832 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16833 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16834 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16835 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16836 $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'
16837
16838 # Commands to make compiler produce verbose output that lists
16839 # what "hidden" libraries, object files and flags are used when
16840 # linking a shared library.
16841 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16842 else
16843 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16844 # platform.
16845 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16846 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16847 $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'
16848
16849 # Commands to make compiler produce verbose output that lists
16850 # what "hidden" libraries, object files and flags are used when
16851 # linking a shared library.
16852 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16853 fi
16854
16855 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16856 case $host_os in
16857 solaris2.[0-5] | solaris2.[0-5].*) ;;
16858 *)
16859 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16860 ;;
16861 esac
16862 fi
16863 ;;
16864 esac
16865 ;;
16866
16867 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16868 no_undefined_flag_CXX='$wl-z,text'
16869 archive_cmds_need_lc_CXX=no
16870 hardcode_shlibpath_var_CXX=no
16871 runpath_var='LD_RUN_PATH'
16872
16873 case $cc_basename in
16874 CC*)
16875 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16876 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16877 ;;
16878 *)
16879 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16880 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16881 ;;
16882 esac
16883 ;;
16884
16885 sysv5* | sco3.2v5* | sco5v6*)
16886 # Note: We CANNOT use -z defs as we might desire, because we do not
16887 # link with -lc, and that would cause any symbols used from libc to
16888 # always be unresolved, which means just about no library would
16889 # ever link correctly. If we're not using GNU ld we use -z text
16890 # though, which does catch some bad symbols but isn't as heavy-handed
16891 # as -z defs.
16892 no_undefined_flag_CXX='$wl-z,text'
16893 allow_undefined_flag_CXX='$wl-z,nodefs'
16894 archive_cmds_need_lc_CXX=no
16895 hardcode_shlibpath_var_CXX=no
16896 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16897 hardcode_libdir_separator_CXX=':'
16898 link_all_deplibs_CXX=yes
16899 export_dynamic_flag_spec_CXX='$wl-Bexport'
16900 runpath_var='LD_RUN_PATH'
16901
16902 case $cc_basename in
16903 CC*)
16904 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16905 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16906 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16907 '"$old_archive_cmds_CXX"
16908 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16909 '"$reload_cmds_CXX"
16910 ;;
16911 *)
16912 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16913 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16914 ;;
16915 esac
16916 ;;
16917
16918 tandem*)
16919 case $cc_basename in
16920 NCC*)
16921 # NonStop-UX NCC 3.20
16922 # FIXME: insert proper C++ library support
16923 ld_shlibs_CXX=no
16924 ;;
16925 *)
16926 # FIXME: insert proper C++ library support
16927 ld_shlibs_CXX=no
16928 ;;
16929 esac
16930 ;;
16931
16932 vxworks*)
16933 # FIXME: insert proper C++ library support
16934 ld_shlibs_CXX=no
16935 ;;
16936
16937 *)
16938 # FIXME: insert proper C++ library support
16939 ld_shlibs_CXX=no
16940 ;;
16941 esac
16942
16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16944 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16945 test no = "$ld_shlibs_CXX" && can_build_shared=no
16946
16947 GCC_CXX=$GXX
16948 LD_CXX=$LD
16949
16950 ## CAVEAT EMPTOR:
16951 ## There is no encapsulation within the following macros, do not change
16952 ## the running order or otherwise move them around unless you know exactly
16953 ## what you are doing...
16954 # Dependencies to place before and after the object being linked:
16955 predep_objects_CXX=
16956 postdep_objects_CXX=
16957 predeps_CXX=
16958 postdeps_CXX=
16959 compiler_lib_search_path_CXX=
16960
16961 cat > conftest.$ac_ext <<_LT_EOF
16962 class Foo
16963 {
16964 public:
16965 Foo (void) { a = 0; }
16966 private:
16967 int a;
16968 };
16969 _LT_EOF
16970
16971
16972 _lt_libdeps_save_CFLAGS=$CFLAGS
16973 case "$CC $CFLAGS " in #(
16974 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16975 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16976 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16977 esac
16978
16979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16980 (eval $ac_compile) 2>&5
16981 ac_status=$?
16982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16983 test $ac_status = 0; }; then
16984 # Parse the compiler output and extract the necessary
16985 # objects, libraries and library flags.
16986
16987 # Sentinel used to keep track of whether or not we are before
16988 # the conftest object file.
16989 pre_test_object_deps_done=no
16990
16991 for p in `eval "$output_verbose_link_cmd"`; do
16992 case $prev$p in
16993
16994 -L* | -R* | -l*)
16995 # Some compilers place space between "-{L,R}" and the path.
16996 # Remove the space.
16997 if test x-L = "$p" ||
16998 test x-R = "$p"; then
16999 prev=$p
17000 continue
17001 fi
17002
17003 # Expand the sysroot to ease extracting the directories later.
17004 if test -z "$prev"; then
17005 case $p in
17006 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17007 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17008 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17009 esac
17010 fi
17011 case $p in
17012 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17013 esac
17014 if test no = "$pre_test_object_deps_done"; then
17015 case $prev in
17016 -L | -R)
17017 # Internal compiler library paths should come after those
17018 # provided the user. The postdeps already come after the
17019 # user supplied libs so there is no need to process them.
17020 if test -z "$compiler_lib_search_path_CXX"; then
17021 compiler_lib_search_path_CXX=$prev$p
17022 else
17023 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17024 fi
17025 ;;
17026 # The "-l" case would never come before the object being
17027 # linked, so don't bother handling this case.
17028 esac
17029 else
17030 if test -z "$postdeps_CXX"; then
17031 postdeps_CXX=$prev$p
17032 else
17033 postdeps_CXX="${postdeps_CXX} $prev$p"
17034 fi
17035 fi
17036 prev=
17037 ;;
17038
17039 *.lto.$objext) ;; # Ignore GCC LTO objects
17040 *.$objext)
17041 # This assumes that the test object file only shows up
17042 # once in the compiler output.
17043 if test "$p" = "conftest.$objext"; then
17044 pre_test_object_deps_done=yes
17045 continue
17046 fi
17047
17048 if test no = "$pre_test_object_deps_done"; then
17049 if test -z "$predep_objects_CXX"; then
17050 predep_objects_CXX=$p
17051 else
17052 predep_objects_CXX="$predep_objects_CXX $p"
17053 fi
17054 else
17055 if test -z "$postdep_objects_CXX"; then
17056 postdep_objects_CXX=$p
17057 else
17058 postdep_objects_CXX="$postdep_objects_CXX $p"
17059 fi
17060 fi
17061 ;;
17062
17063 *) ;; # Ignore the rest.
17064
17065 esac
17066 done
17067
17068 # Clean up.
17069 rm -f a.out a.exe
17070 else
17071 echo "libtool.m4: error: problem compiling CXX test program"
17072 fi
17073
17074 $RM -f confest.$objext
17075 CFLAGS=$_lt_libdeps_save_CFLAGS
17076
17077 # PORTME: override above test on systems where it is broken
17078 case $host_os in
17079 interix[3-9]*)
17080 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17081 # hack all around it, let's just trust "g++" to DTRT.
17082 predep_objects_CXX=
17083 postdep_objects_CXX=
17084 postdeps_CXX=
17085 ;;
17086 esac
17087
17088
17089 case " $postdeps_CXX " in
17090 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17091 esac
17092 compiler_lib_search_dirs_CXX=
17093 if test -n "${compiler_lib_search_path_CXX}"; then
17094 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17095 fi
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127 lt_prog_compiler_wl_CXX=
17128 lt_prog_compiler_pic_CXX=
17129 lt_prog_compiler_static_CXX=
17130
17131
17132 # C++ specific cases for pic, static, wl, etc.
17133 if test yes = "$GXX"; then
17134 lt_prog_compiler_wl_CXX='-Wl,'
17135 lt_prog_compiler_static_CXX='-static'
17136
17137 case $host_os in
17138 aix*)
17139 # All AIX code is PIC.
17140 if test ia64 = "$host_cpu"; then
17141 # AIX 5 now supports IA64 processor
17142 lt_prog_compiler_static_CXX='-Bstatic'
17143 fi
17144 lt_prog_compiler_pic_CXX='-fPIC'
17145 ;;
17146
17147 amigaos*)
17148 case $host_cpu in
17149 powerpc)
17150 # see comment about AmigaOS4 .so support
17151 lt_prog_compiler_pic_CXX='-fPIC'
17152 ;;
17153 m68k)
17154 # FIXME: we need at least 68020 code to build shared libraries, but
17155 # adding the '-m68020' flag to GCC prevents building anything better,
17156 # like '-m68040'.
17157 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17158 ;;
17159 esac
17160 ;;
17161
17162 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17163 # PIC is the default for these OSes.
17164 ;;
17165 mingw* | cygwin* | os2* | pw32* | cegcc*)
17166 # This hack is so that the source file can tell whether it is being
17167 # built for inclusion in a dll (and should export symbols for example).
17168 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17169 # (--disable-auto-import) libraries
17170 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17171 case $host_os in
17172 os2*)
17173 lt_prog_compiler_static_CXX='$wl-static'
17174 ;;
17175 esac
17176 ;;
17177 darwin* | rhapsody*)
17178 # PIC is the default on this platform
17179 # Common symbols not allowed in MH_DYLIB files
17180 lt_prog_compiler_pic_CXX='-fno-common'
17181 ;;
17182 *djgpp*)
17183 # DJGPP does not support shared libraries at all
17184 lt_prog_compiler_pic_CXX=
17185 ;;
17186 haiku*)
17187 # PIC is the default for Haiku.
17188 # The "-static" flag exists, but is broken.
17189 lt_prog_compiler_static_CXX=
17190 ;;
17191 interix[3-9]*)
17192 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17193 # Instead, we relocate shared libraries at runtime.
17194 ;;
17195 sysv4*MP*)
17196 if test -d /usr/nec; then
17197 lt_prog_compiler_pic_CXX=-Kconform_pic
17198 fi
17199 ;;
17200 hpux*)
17201 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17202 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17203 # sets the default TLS model and affects inlining.
17204 case $host_cpu in
17205 hppa*64*)
17206 ;;
17207 *)
17208 lt_prog_compiler_pic_CXX='-fPIC'
17209 ;;
17210 esac
17211 ;;
17212 *qnx* | *nto*)
17213 # QNX uses GNU C++, but need to define -shared option too, otherwise
17214 # it will coredump.
17215 lt_prog_compiler_pic_CXX='-fPIC -shared'
17216 ;;
17217 *)
17218 lt_prog_compiler_pic_CXX='-fPIC'
17219 ;;
17220 esac
17221 else
17222 case $host_os in
17223 aix[4-9]*)
17224 # All AIX code is PIC.
17225 if test ia64 = "$host_cpu"; then
17226 # AIX 5 now supports IA64 processor
17227 lt_prog_compiler_static_CXX='-Bstatic'
17228 else
17229 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17230 fi
17231 ;;
17232 chorus*)
17233 case $cc_basename in
17234 cxch68*)
17235 # Green Hills C++ Compiler
17236 # _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"
17237 ;;
17238 esac
17239 ;;
17240 mingw* | cygwin* | os2* | pw32* | cegcc*)
17241 # This hack is so that the source file can tell whether it is being
17242 # built for inclusion in a dll (and should export symbols for example).
17243 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17244 ;;
17245 dgux*)
17246 case $cc_basename in
17247 ec++*)
17248 lt_prog_compiler_pic_CXX='-KPIC'
17249 ;;
17250 ghcx*)
17251 # Green Hills C++ Compiler
17252 lt_prog_compiler_pic_CXX='-pic'
17253 ;;
17254 *)
17255 ;;
17256 esac
17257 ;;
17258 freebsd* | dragonfly* | midnightbsd*)
17259 # FreeBSD uses GNU C++
17260 ;;
17261 hpux9* | hpux10* | hpux11*)
17262 case $cc_basename in
17263 CC*)
17264 lt_prog_compiler_wl_CXX='-Wl,'
17265 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17266 if test ia64 != "$host_cpu"; then
17267 lt_prog_compiler_pic_CXX='+Z'
17268 fi
17269 ;;
17270 aCC*)
17271 lt_prog_compiler_wl_CXX='-Wl,'
17272 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17273 case $host_cpu in
17274 hppa*64*|ia64*)
17275 # +Z the default
17276 ;;
17277 *)
17278 lt_prog_compiler_pic_CXX='+Z'
17279 ;;
17280 esac
17281 ;;
17282 *)
17283 ;;
17284 esac
17285 ;;
17286 interix*)
17287 # This is c89, which is MS Visual C++ (no shared libs)
17288 # Anyone wants to do a port?
17289 ;;
17290 irix5* | irix6* | nonstopux*)
17291 case $cc_basename in
17292 CC*)
17293 lt_prog_compiler_wl_CXX='-Wl,'
17294 lt_prog_compiler_static_CXX='-non_shared'
17295 # CC pic flag -KPIC is the default.
17296 ;;
17297 *)
17298 ;;
17299 esac
17300 ;;
17301 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17302 case $cc_basename in
17303 KCC*)
17304 # KAI C++ Compiler
17305 lt_prog_compiler_wl_CXX='--backend -Wl,'
17306 lt_prog_compiler_pic_CXX='-fPIC'
17307 ;;
17308 ecpc* )
17309 # old Intel C++ for x86_64, which still supported -KPIC.
17310 lt_prog_compiler_wl_CXX='-Wl,'
17311 lt_prog_compiler_pic_CXX='-KPIC'
17312 lt_prog_compiler_static_CXX='-static'
17313 ;;
17314 icpc* )
17315 # Intel C++, used to be incompatible with GCC.
17316 # ICC 10 doesn't accept -KPIC any more.
17317 lt_prog_compiler_wl_CXX='-Wl,'
17318 lt_prog_compiler_pic_CXX='-fPIC'
17319 lt_prog_compiler_static_CXX='-static'
17320 ;;
17321 pgCC* | pgcpp*)
17322 # Portland Group C++ compiler
17323 lt_prog_compiler_wl_CXX='-Wl,'
17324 lt_prog_compiler_pic_CXX='-fpic'
17325 lt_prog_compiler_static_CXX='-Bstatic'
17326 ;;
17327 cxx*)
17328 # Compaq C++
17329 # Make sure the PIC flag is empty. It appears that all Alpha
17330 # Linux and Compaq Tru64 Unix objects are PIC.
17331 lt_prog_compiler_pic_CXX=
17332 lt_prog_compiler_static_CXX='-non_shared'
17333 ;;
17334 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17335 # IBM XL 8.0, 9.0 on PPC and BlueGene
17336 lt_prog_compiler_wl_CXX='-Wl,'
17337 lt_prog_compiler_pic_CXX='-qpic'
17338 lt_prog_compiler_static_CXX='-qstaticlink'
17339 ;;
17340 *)
17341 case `$CC -V 2>&1 | $SED 5q` in
17342 *Sun\ C*)
17343 # Sun C++ 5.9
17344 lt_prog_compiler_pic_CXX='-KPIC'
17345 lt_prog_compiler_static_CXX='-Bstatic'
17346 lt_prog_compiler_wl_CXX='-Qoption ld '
17347 ;;
17348 esac
17349 ;;
17350 esac
17351 ;;
17352 lynxos*)
17353 ;;
17354 m88k*)
17355 ;;
17356 mvs*)
17357 case $cc_basename in
17358 cxx*)
17359 lt_prog_compiler_pic_CXX='-W c,exportall'
17360 ;;
17361 *)
17362 ;;
17363 esac
17364 ;;
17365 netbsd*)
17366 ;;
17367 *qnx* | *nto*)
17368 # QNX uses GNU C++, but need to define -shared option too, otherwise
17369 # it will coredump.
17370 lt_prog_compiler_pic_CXX='-fPIC -shared'
17371 ;;
17372 osf3* | osf4* | osf5*)
17373 case $cc_basename in
17374 KCC*)
17375 lt_prog_compiler_wl_CXX='--backend -Wl,'
17376 ;;
17377 RCC*)
17378 # Rational C++ 2.4.1
17379 lt_prog_compiler_pic_CXX='-pic'
17380 ;;
17381 cxx*)
17382 # Digital/Compaq C++
17383 lt_prog_compiler_wl_CXX='-Wl,'
17384 # Make sure the PIC flag is empty. It appears that all Alpha
17385 # Linux and Compaq Tru64 Unix objects are PIC.
17386 lt_prog_compiler_pic_CXX=
17387 lt_prog_compiler_static_CXX='-non_shared'
17388 ;;
17389 *)
17390 ;;
17391 esac
17392 ;;
17393 psos*)
17394 ;;
17395 solaris*)
17396 case $cc_basename in
17397 CC* | sunCC*)
17398 # Sun C++ 4.2, 5.x and Centerline C++
17399 lt_prog_compiler_pic_CXX='-KPIC'
17400 lt_prog_compiler_static_CXX='-Bstatic'
17401 lt_prog_compiler_wl_CXX='-Qoption ld '
17402 ;;
17403 gcx*)
17404 # Green Hills C++ Compiler
17405 lt_prog_compiler_pic_CXX='-PIC'
17406 ;;
17407 *)
17408 ;;
17409 esac
17410 ;;
17411 sunos4*)
17412 case $cc_basename in
17413 CC*)
17414 # Sun C++ 4.x
17415 lt_prog_compiler_pic_CXX='-pic'
17416 lt_prog_compiler_static_CXX='-Bstatic'
17417 ;;
17418 lcc*)
17419 # Lucid
17420 lt_prog_compiler_pic_CXX='-pic'
17421 ;;
17422 *)
17423 ;;
17424 esac
17425 ;;
17426 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17427 case $cc_basename in
17428 CC*)
17429 lt_prog_compiler_wl_CXX='-Wl,'
17430 lt_prog_compiler_pic_CXX='-KPIC'
17431 lt_prog_compiler_static_CXX='-Bstatic'
17432 ;;
17433 esac
17434 ;;
17435 tandem*)
17436 case $cc_basename in
17437 NCC*)
17438 # NonStop-UX NCC 3.20
17439 lt_prog_compiler_pic_CXX='-KPIC'
17440 ;;
17441 *)
17442 ;;
17443 esac
17444 ;;
17445 vxworks*)
17446 ;;
17447 *)
17448 lt_prog_compiler_can_build_shared_CXX=no
17449 ;;
17450 esac
17451 fi
17452
17453 case $host_os in
17454 # For platforms that do not support PIC, -DPIC is meaningless:
17455 *djgpp*)
17456 lt_prog_compiler_pic_CXX=
17457 ;;
17458 *)
17459 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17460 ;;
17461 esac
17462
17463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17464 printf %s "checking for $compiler option to produce PIC... " >&6; }
17465 if test ${lt_cv_prog_compiler_pic_CXX+y}
17466 then :
17467 printf %s "(cached) " >&6
17468 else $as_nop
17469 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17470 fi
17471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17472 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17473 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17474
17475 #
17476 # Check to make sure the PIC flag actually works.
17477 #
17478 if test -n "$lt_prog_compiler_pic_CXX"; then
17479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17480 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17481 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17482 then :
17483 printf %s "(cached) " >&6
17484 else $as_nop
17485 lt_cv_prog_compiler_pic_works_CXX=no
17486 ac_outfile=conftest.$ac_objext
17487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17488 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17489 # Insert the option either (1) after the last *FLAGS variable, or
17490 # (2) before a word containing "conftest.", or (3) at the end.
17491 # Note that $ac_compile itself does not contain backslashes and begins
17492 # with a dollar sign (not a hyphen), so the echo should work correctly.
17493 # The option is referenced via a variable to avoid confusing sed.
17494 lt_compile=`echo "$ac_compile" | $SED \
17495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17497 -e 's:$: $lt_compiler_flag:'`
17498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17499 (eval "$lt_compile" 2>conftest.err)
17500 ac_status=$?
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 if (exit $ac_status) && test -s "$ac_outfile"; then
17504 # The compiler can only warn and ignore the option if not recognized
17505 # So say no if there are warnings other than the usual output.
17506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17509 lt_cv_prog_compiler_pic_works_CXX=yes
17510 fi
17511 fi
17512 $RM conftest*
17513
17514 fi
17515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17516 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17517
17518 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17519 case $lt_prog_compiler_pic_CXX in
17520 "" | " "*) ;;
17521 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17522 esac
17523 else
17524 lt_prog_compiler_pic_CXX=
17525 lt_prog_compiler_can_build_shared_CXX=no
17526 fi
17527
17528 fi
17529
17530
17531
17532
17533
17534 #
17535 # Check to make sure the static flag actually works.
17536 #
17537 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17539 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17540 if test ${lt_cv_prog_compiler_static_works_CXX+y}
17541 then :
17542 printf %s "(cached) " >&6
17543 else $as_nop
17544 lt_cv_prog_compiler_static_works_CXX=no
17545 save_LDFLAGS=$LDFLAGS
17546 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17547 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17548 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17549 # The linker can only warn and ignore the option if not recognized
17550 # So say no if there are warnings
17551 if test -s conftest.err; then
17552 # Append any errors to the config.log.
17553 cat conftest.err 1>&5
17554 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17556 if diff conftest.exp conftest.er2 >/dev/null; then
17557 lt_cv_prog_compiler_static_works_CXX=yes
17558 fi
17559 else
17560 lt_cv_prog_compiler_static_works_CXX=yes
17561 fi
17562 fi
17563 $RM -r conftest*
17564 LDFLAGS=$save_LDFLAGS
17565
17566 fi
17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17568 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17569
17570 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17571 :
17572 else
17573 lt_prog_compiler_static_CXX=
17574 fi
17575
17576
17577
17578
17579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17580 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17581 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17582 then :
17583 printf %s "(cached) " >&6
17584 else $as_nop
17585 lt_cv_prog_compiler_c_o_CXX=no
17586 $RM -r conftest 2>/dev/null
17587 mkdir conftest
17588 cd conftest
17589 mkdir out
17590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17591
17592 lt_compiler_flag="-o out/conftest2.$ac_objext"
17593 # Insert the option either (1) after the last *FLAGS variable, or
17594 # (2) before a word containing "conftest.", or (3) at the end.
17595 # Note that $ac_compile itself does not contain backslashes and begins
17596 # with a dollar sign (not a hyphen), so the echo should work correctly.
17597 lt_compile=`echo "$ac_compile" | $SED \
17598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17600 -e 's:$: $lt_compiler_flag:'`
17601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17602 (eval "$lt_compile" 2>out/conftest.err)
17603 ac_status=$?
17604 cat out/conftest.err >&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17607 then
17608 # The compiler can only warn and ignore the option if not recognized
17609 # So say no if there are warnings
17610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17613 lt_cv_prog_compiler_c_o_CXX=yes
17614 fi
17615 fi
17616 chmod u+w . 2>&5
17617 $RM conftest*
17618 # SGI C++ compiler will create directory out/ii_files/ for
17619 # template instantiation
17620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17621 $RM out/* && rmdir out
17622 cd ..
17623 $RM -r conftest
17624 $RM conftest*
17625
17626 fi
17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17628 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17629
17630
17631
17632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17633 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17634 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17635 then :
17636 printf %s "(cached) " >&6
17637 else $as_nop
17638 lt_cv_prog_compiler_c_o_CXX=no
17639 $RM -r conftest 2>/dev/null
17640 mkdir conftest
17641 cd conftest
17642 mkdir out
17643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17644
17645 lt_compiler_flag="-o out/conftest2.$ac_objext"
17646 # Insert the option either (1) after the last *FLAGS variable, or
17647 # (2) before a word containing "conftest.", or (3) at the end.
17648 # Note that $ac_compile itself does not contain backslashes and begins
17649 # with a dollar sign (not a hyphen), so the echo should work correctly.
17650 lt_compile=`echo "$ac_compile" | $SED \
17651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17653 -e 's:$: $lt_compiler_flag:'`
17654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17655 (eval "$lt_compile" 2>out/conftest.err)
17656 ac_status=$?
17657 cat out/conftest.err >&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17660 then
17661 # The compiler can only warn and ignore the option if not recognized
17662 # So say no if there are warnings
17663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17666 lt_cv_prog_compiler_c_o_CXX=yes
17667 fi
17668 fi
17669 chmod u+w . 2>&5
17670 $RM conftest*
17671 # SGI C++ compiler will create directory out/ii_files/ for
17672 # template instantiation
17673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17674 $RM out/* && rmdir out
17675 cd ..
17676 $RM -r conftest
17677 $RM conftest*
17678
17679 fi
17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17681 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17682
17683
17684
17685
17686 hard_links=nottested
17687 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17688 # do not overwrite the value of need_locks provided by the user
17689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17690 printf %s "checking if we can lock with hard links... " >&6; }
17691 hard_links=yes
17692 $RM conftest*
17693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17694 touch conftest.a
17695 ln conftest.a conftest.b 2>&5 || hard_links=no
17696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17698 printf "%s\n" "$hard_links" >&6; }
17699 if test no = "$hard_links"; then
17700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17701 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17702 need_locks=warn
17703 fi
17704 else
17705 need_locks=no
17706 fi
17707
17708
17709
17710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17711 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17712
17713 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17714 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17715 case $host_os in
17716 aix[4-9]*)
17717 # If we're using GNU nm, then we don't want the "-C" option.
17718 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17719 # Without the "-l" option, or with the "-B" option, AIX nm treats
17720 # weak defined symbols like other global defined symbols, whereas
17721 # GNU nm marks them as "W".
17722 # While the 'weak' keyword is ignored in the Export File, we need
17723 # it in the Import File for the 'aix-soname' feature, so we have
17724 # to replace the "-B" option with "-P" for AIX nm.
17725 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17726 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'
17727 else
17728 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'
17729 fi
17730 ;;
17731 pw32*)
17732 export_symbols_cmds_CXX=$ltdll_cmds
17733 ;;
17734 cygwin* | mingw* | cegcc*)
17735 case $cc_basename in
17736 cl* | icl*)
17737 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17738 ;;
17739 *)
17740 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'
17741 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17742 ;;
17743 esac
17744 ;;
17745 *)
17746 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17747 ;;
17748 esac
17749
17750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17751 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17752 test no = "$ld_shlibs_CXX" && can_build_shared=no
17753
17754 with_gnu_ld_CXX=$with_gnu_ld
17755
17756
17757
17758
17759
17760
17761 #
17762 # Do we need to explicitly link libc?
17763 #
17764 case "x$archive_cmds_need_lc_CXX" in
17765 x|xyes)
17766 # Assume -lc should be added
17767 archive_cmds_need_lc_CXX=yes
17768
17769 if test yes,yes = "$GCC,$enable_shared"; then
17770 case $archive_cmds_CXX in
17771 *'~'*)
17772 # FIXME: we may have to deal with multi-command sequences.
17773 ;;
17774 '$CC '*)
17775 # Test whether the compiler implicitly links with -lc since on some
17776 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17777 # to ld, don't add -lc before -lgcc.
17778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17779 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17780 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17781 then :
17782 printf %s "(cached) " >&6
17783 else $as_nop
17784 $RM conftest*
17785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17786
17787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17788 (eval $ac_compile) 2>&5
17789 ac_status=$?
17790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17791 test $ac_status = 0; } 2>conftest.err; then
17792 soname=conftest
17793 lib=conftest
17794 libobjs=conftest.$ac_objext
17795 deplibs=
17796 wl=$lt_prog_compiler_wl_CXX
17797 pic_flag=$lt_prog_compiler_pic_CXX
17798 compiler_flags=-v
17799 linker_flags=-v
17800 verstring=
17801 output_objdir=.
17802 libname=conftest
17803 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17804 allow_undefined_flag_CXX=
17805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17806 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17807 ac_status=$?
17808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17809 test $ac_status = 0; }
17810 then
17811 lt_cv_archive_cmds_need_lc_CXX=no
17812 else
17813 lt_cv_archive_cmds_need_lc_CXX=yes
17814 fi
17815 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17816 else
17817 cat conftest.err 1>&5
17818 fi
17819 $RM conftest*
17820
17821 fi
17822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17823 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17824 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17825 ;;
17826 esac
17827 fi
17828 ;;
17829 esac
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17893 printf %s "checking dynamic linker characteristics... " >&6; }
17894
17895 library_names_spec=
17896 libname_spec='lib$name'
17897 soname_spec=
17898 shrext_cmds=.so
17899 postinstall_cmds=
17900 postuninstall_cmds=
17901 finish_cmds=
17902 finish_eval=
17903 shlibpath_var=
17904 shlibpath_overrides_runpath=unknown
17905 version_type=none
17906 dynamic_linker="$host_os ld.so"
17907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17908 need_lib_prefix=unknown
17909 hardcode_into_libs=no
17910
17911 # when you set need_version to no, make sure it does not cause -set_version
17912 # flags to be left without arguments
17913 need_version=unknown
17914
17915
17916
17917 case $host_os in
17918 aix3*)
17919 version_type=linux # correct to gnu/linux during the next big refactor
17920 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17921 shlibpath_var=LIBPATH
17922
17923 # AIX 3 has no versioning support, so we append a major version to the name.
17924 soname_spec='$libname$release$shared_ext$major'
17925 ;;
17926
17927 aix[4-9]*)
17928 version_type=linux # correct to gnu/linux during the next big refactor
17929 need_lib_prefix=no
17930 need_version=no
17931 hardcode_into_libs=yes
17932 if test ia64 = "$host_cpu"; then
17933 # AIX 5 supports IA64
17934 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 else
17937 # With GCC up to 2.95.x, collect2 would create an import file
17938 # for dependence libraries. The import file would start with
17939 # the line '#! .'. This would cause the generated library to
17940 # depend on '.', always an invalid library. This was fixed in
17941 # development snapshots of GCC prior to 3.0.
17942 case $host_os in
17943 aix4 | aix4.[01] | aix4.[01].*)
17944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17945 echo ' yes '
17946 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17947 :
17948 else
17949 can_build_shared=no
17950 fi
17951 ;;
17952 esac
17953 # Using Import Files as archive members, it is possible to support
17954 # filename-based versioning of shared library archives on AIX. While
17955 # this would work for both with and without runtime linking, it will
17956 # prevent static linking of such archives. So we do filename-based
17957 # shared library versioning with .so extension only, which is used
17958 # when both runtime linking and shared linking is enabled.
17959 # Unfortunately, runtime linking may impact performance, so we do
17960 # not want this to be the default eventually. Also, we use the
17961 # versioned .so libs for executables only if there is the -brtl
17962 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17963 # To allow for filename-based versioning support, we need to create
17964 # libNAME.so.V as an archive file, containing:
17965 # *) an Import File, referring to the versioned filename of the
17966 # archive as well as the shared archive member, telling the
17967 # bitwidth (32 or 64) of that shared object, and providing the
17968 # list of exported symbols of that shared object, eventually
17969 # decorated with the 'weak' keyword
17970 # *) the shared object with the F_LOADONLY flag set, to really avoid
17971 # it being seen by the linker.
17972 # At run time we better use the real file rather than another symlink,
17973 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17974
17975 case $with_aix_soname,$aix_use_runtimelinking in
17976 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17977 # soname into executable. Probably we can add versioning support to
17978 # collect2, so additional links can be useful in future.
17979 aix,yes) # traditional libtool
17980 dynamic_linker='AIX unversionable lib.so'
17981 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17982 # instead of lib<name>.a to let people know that these are not
17983 # typical AIX shared libraries.
17984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17985 ;;
17986 aix,no) # traditional AIX only
17987 dynamic_linker='AIX lib.a(lib.so.V)'
17988 # We preserve .a as extension for shared libraries through AIX4.2
17989 # and later when we are not doing run time linking.
17990 library_names_spec='$libname$release.a $libname.a'
17991 soname_spec='$libname$release$shared_ext$major'
17992 ;;
17993 svr4,*) # full svr4 only
17994 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17995 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17996 # We do not specify a path in Import Files, so LIBPATH fires.
17997 shlibpath_overrides_runpath=yes
17998 ;;
17999 *,yes) # both, prefer svr4
18000 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18001 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18002 # unpreferred sharedlib libNAME.a needs extra handling
18003 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"'
18004 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"'
18005 # We do not specify a path in Import Files, so LIBPATH fires.
18006 shlibpath_overrides_runpath=yes
18007 ;;
18008 *,no) # both, prefer aix
18009 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18010 library_names_spec='$libname$release.a $libname.a'
18011 soname_spec='$libname$release$shared_ext$major'
18012 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18013 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)'
18014 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"'
18015 ;;
18016 esac
18017 shlibpath_var=LIBPATH
18018 fi
18019 ;;
18020
18021 amigaos*)
18022 case $host_cpu in
18023 powerpc)
18024 # Since July 2007 AmigaOS4 officially supports .so libraries.
18025 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18027 ;;
18028 m68k)
18029 library_names_spec='$libname.ixlibrary $libname.a'
18030 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18031 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'
18032 ;;
18033 esac
18034 ;;
18035
18036 beos*)
18037 library_names_spec='$libname$shared_ext'
18038 dynamic_linker="$host_os ld.so"
18039 shlibpath_var=LIBRARY_PATH
18040 ;;
18041
18042 bsdi[45]*)
18043 version_type=linux # correct to gnu/linux during the next big refactor
18044 need_version=no
18045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18046 soname_spec='$libname$release$shared_ext$major'
18047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18048 shlibpath_var=LD_LIBRARY_PATH
18049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18051 # the default ld.so.conf also contains /usr/contrib/lib and
18052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18053 # libtool to hard-code these into programs
18054 ;;
18055
18056 cygwin* | mingw* | pw32* | cegcc*)
18057 version_type=windows
18058 shrext_cmds=.dll
18059 need_version=no
18060 need_lib_prefix=no
18061
18062 case $GCC,$cc_basename in
18063 yes,*)
18064 # gcc
18065 library_names_spec='$libname.dll.a'
18066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18067 postinstall_cmds='base_file=`basename \$file`~
18068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18069 dldir=$destdir/`dirname \$dlpath`~
18070 test -d \$dldir || mkdir -p \$dldir~
18071 $install_prog $dir/$dlname \$dldir/$dlname~
18072 chmod a+x \$dldir/$dlname~
18073 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18074 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18075 fi'
18076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18077 dlpath=$dir/\$dldll~
18078 $RM \$dlpath'
18079 shlibpath_overrides_runpath=yes
18080
18081 case $host_os in
18082 cygwin*)
18083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18084 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18085
18086 ;;
18087 mingw* | cegcc*)
18088 # MinGW DLLs use traditional 'lib' prefix
18089 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18090 ;;
18091 pw32*)
18092 # pw32 DLLs use 'pw' prefix rather than 'lib'
18093 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18094 ;;
18095 esac
18096 dynamic_linker='Win32 ld.exe'
18097 ;;
18098
18099 *,cl* | *,icl*)
18100 # Native MSVC or ICC
18101 libname_spec='$name'
18102 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18103 library_names_spec='$libname.dll.lib'
18104
18105 case $build_os in
18106 mingw*)
18107 sys_lib_search_path_spec=
18108 lt_save_ifs=$IFS
18109 IFS=';'
18110 for lt_path in $LIB
18111 do
18112 IFS=$lt_save_ifs
18113 # Let DOS variable expansion print the short 8.3 style file name.
18114 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18115 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18116 done
18117 IFS=$lt_save_ifs
18118 # Convert to MSYS style.
18119 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18120 ;;
18121 cygwin*)
18122 # Convert to unix form, then to dos form, then back to unix form
18123 # but this time dos style (no spaces!) so that the unix form looks
18124 # like /cygdrive/c/PROGRA~1:/cygdr...
18125 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18126 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18127 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18128 ;;
18129 *)
18130 sys_lib_search_path_spec=$LIB
18131 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18132 # It is most probably a Windows format PATH.
18133 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18134 else
18135 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18136 fi
18137 # FIXME: find the short name or the path components, as spaces are
18138 # common. (e.g. "Program Files" -> "PROGRA~1")
18139 ;;
18140 esac
18141
18142 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18143 postinstall_cmds='base_file=`basename \$file`~
18144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18145 dldir=$destdir/`dirname \$dlpath`~
18146 test -d \$dldir || mkdir -p \$dldir~
18147 $install_prog $dir/$dlname \$dldir/$dlname'
18148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18149 dlpath=$dir/\$dldll~
18150 $RM \$dlpath'
18151 shlibpath_overrides_runpath=yes
18152 dynamic_linker='Win32 link.exe'
18153 ;;
18154
18155 *)
18156 # Assume MSVC and ICC wrapper
18157 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18158 dynamic_linker='Win32 ld.exe'
18159 ;;
18160 esac
18161 # FIXME: first we should search . and the directory the executable is in
18162 shlibpath_var=PATH
18163 ;;
18164
18165 darwin* | rhapsody*)
18166 dynamic_linker="$host_os dyld"
18167 version_type=darwin
18168 need_lib_prefix=no
18169 need_version=no
18170 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18171 soname_spec='$libname$release$major$shared_ext'
18172 shlibpath_overrides_runpath=yes
18173 shlibpath_var=DYLD_LIBRARY_PATH
18174 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18175
18176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18177 ;;
18178
18179 dgux*)
18180 version_type=linux # correct to gnu/linux during the next big refactor
18181 need_lib_prefix=no
18182 need_version=no
18183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18184 soname_spec='$libname$release$shared_ext$major'
18185 shlibpath_var=LD_LIBRARY_PATH
18186 ;;
18187
18188 freebsd* | dragonfly* | midnightbsd*)
18189 # DragonFly does not have aout. When/if they implement a new
18190 # versioning mechanism, adjust this.
18191 if test -x /usr/bin/objformat; then
18192 objformat=`/usr/bin/objformat`
18193 else
18194 case $host_os in
18195 freebsd[23].*) objformat=aout ;;
18196 *) objformat=elf ;;
18197 esac
18198 fi
18199 version_type=freebsd-$objformat
18200 case $version_type in
18201 freebsd-elf*)
18202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18203 soname_spec='$libname$release$shared_ext$major'
18204 need_version=no
18205 need_lib_prefix=no
18206 ;;
18207 freebsd-*)
18208 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18209 need_version=yes
18210 ;;
18211 esac
18212 shlibpath_var=LD_LIBRARY_PATH
18213 case $host_os in
18214 freebsd2.*)
18215 shlibpath_overrides_runpath=yes
18216 ;;
18217 freebsd3.[01]* | freebsdelf3.[01]*)
18218 shlibpath_overrides_runpath=yes
18219 hardcode_into_libs=yes
18220 ;;
18221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18223 shlibpath_overrides_runpath=no
18224 hardcode_into_libs=yes
18225 ;;
18226 *) # from 4.6 on, and DragonFly
18227 shlibpath_overrides_runpath=yes
18228 hardcode_into_libs=yes
18229 ;;
18230 esac
18231 ;;
18232
18233 haiku*)
18234 version_type=linux # correct to gnu/linux during the next big refactor
18235 need_lib_prefix=no
18236 need_version=no
18237 dynamic_linker="$host_os runtime_loader"
18238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18239 soname_spec='$libname$release$shared_ext$major'
18240 shlibpath_var=LIBRARY_PATH
18241 shlibpath_overrides_runpath=no
18242 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18243 hardcode_into_libs=yes
18244 ;;
18245
18246 hpux9* | hpux10* | hpux11*)
18247 # Give a soname corresponding to the major version so that dld.sl refuses to
18248 # link against other versions.
18249 version_type=sunos
18250 need_lib_prefix=no
18251 need_version=no
18252 case $host_cpu in
18253 ia64*)
18254 shrext_cmds='.so'
18255 hardcode_into_libs=yes
18256 dynamic_linker="$host_os dld.so"
18257 shlibpath_var=LD_LIBRARY_PATH
18258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18260 soname_spec='$libname$release$shared_ext$major'
18261 if test 32 = "$HPUX_IA64_MODE"; then
18262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18263 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18264 else
18265 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18266 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18267 fi
18268 ;;
18269 hppa*64*)
18270 shrext_cmds='.sl'
18271 hardcode_into_libs=yes
18272 dynamic_linker="$host_os dld.sl"
18273 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18276 soname_spec='$libname$release$shared_ext$major'
18277 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18279 ;;
18280 *)
18281 shrext_cmds='.sl'
18282 dynamic_linker="$host_os dld.sl"
18283 shlibpath_var=SHLIB_PATH
18284 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18286 soname_spec='$libname$release$shared_ext$major'
18287 ;;
18288 esac
18289 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18290 postinstall_cmds='chmod 555 $lib'
18291 # or fails outright, so override atomically:
18292 install_override_mode=555
18293 ;;
18294
18295 interix[3-9]*)
18296 version_type=linux # correct to gnu/linux during the next big refactor
18297 need_lib_prefix=no
18298 need_version=no
18299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18300 soname_spec='$libname$release$shared_ext$major'
18301 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18302 shlibpath_var=LD_LIBRARY_PATH
18303 shlibpath_overrides_runpath=no
18304 hardcode_into_libs=yes
18305 ;;
18306
18307 irix5* | irix6* | nonstopux*)
18308 case $host_os in
18309 nonstopux*) version_type=nonstopux ;;
18310 *)
18311 if test yes = "$lt_cv_prog_gnu_ld"; then
18312 version_type=linux # correct to gnu/linux during the next big refactor
18313 else
18314 version_type=irix
18315 fi ;;
18316 esac
18317 need_lib_prefix=no
18318 need_version=no
18319 soname_spec='$libname$release$shared_ext$major'
18320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18321 case $host_os in
18322 irix5* | nonstopux*)
18323 libsuff= shlibsuff=
18324 ;;
18325 *)
18326 case $LD in # libtool.m4 will add one of these switches to LD
18327 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18328 libsuff= shlibsuff= libmagic=32-bit;;
18329 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18330 libsuff=32 shlibsuff=N32 libmagic=N32;;
18331 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18332 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18333 *) libsuff= shlibsuff= libmagic=never-match;;
18334 esac
18335 ;;
18336 esac
18337 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18338 shlibpath_overrides_runpath=no
18339 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18340 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18341 hardcode_into_libs=yes
18342 ;;
18343
18344 # No shared lib support for Linux oldld, aout, or coff.
18345 linux*oldld* | linux*aout* | linux*coff*)
18346 dynamic_linker=no
18347 ;;
18348
18349 linux*android*)
18350 version_type=none # Android doesn't support versioned libraries.
18351 need_lib_prefix=no
18352 need_version=no
18353 library_names_spec='$libname$release$shared_ext'
18354 soname_spec='$libname$release$shared_ext'
18355 finish_cmds=
18356 shlibpath_var=LD_LIBRARY_PATH
18357 shlibpath_overrides_runpath=yes
18358
18359 # This implies no fast_install, which is unacceptable.
18360 # Some rework will be needed to allow for fast_install
18361 # before this can be enabled.
18362 hardcode_into_libs=yes
18363
18364 dynamic_linker='Android linker'
18365 # Don't embed -rpath directories since the linker doesn't support them.
18366 hardcode_libdir_flag_spec_CXX='-L$libdir'
18367 ;;
18368
18369 # This must be glibc/ELF.
18370 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18371 version_type=linux # correct to gnu/linux during the next big refactor
18372 need_lib_prefix=no
18373 need_version=no
18374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18375 soname_spec='$libname$release$shared_ext$major'
18376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18377 shlibpath_var=LD_LIBRARY_PATH
18378 shlibpath_overrides_runpath=no
18379
18380 # Some binutils ld are patched to set DT_RUNPATH
18381 if test ${lt_cv_shlibpath_overrides_runpath+y}
18382 then :
18383 printf %s "(cached) " >&6
18384 else $as_nop
18385 lt_cv_shlibpath_overrides_runpath=no
18386 save_LDFLAGS=$LDFLAGS
18387 save_libdir=$libdir
18388 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18389 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391 /* end confdefs.h. */
18392
18393 int
18394 main (void)
18395 {
18396
18397 ;
18398 return 0;
18399 }
18400 _ACEOF
18401 if ac_fn_cxx_try_link "$LINENO"
18402 then :
18403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18404 then :
18405 lt_cv_shlibpath_overrides_runpath=yes
18406 fi
18407 fi
18408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18409 conftest$ac_exeext conftest.$ac_ext
18410 LDFLAGS=$save_LDFLAGS
18411 libdir=$save_libdir
18412
18413 fi
18414
18415 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18416
18417 # This implies no fast_install, which is unacceptable.
18418 # Some rework will be needed to allow for fast_install
18419 # before this can be enabled.
18420 hardcode_into_libs=yes
18421
18422 # Add ABI-specific directories to the system library path.
18423 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18424
18425 # Ideally, we could use ldconfig to report *all* directores which are
18426 # searched for libraries, however this is still not possible. Aside from not
18427 # being certain /sbin/ldconfig is available, command
18428 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18429 # even though it is searched at run-time. Try to do the best guess by
18430 # appending ld.so.conf contents (and includes) to the search path.
18431 if test -f /etc/ld.so.conf; then
18432 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' ' '`
18433 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18434 fi
18435
18436 # We used to test for /lib/ld.so.1 and disable shared libraries on
18437 # powerpc, because MkLinux only supported shared libraries with the
18438 # GNU dynamic linker. Since this was broken with cross compilers,
18439 # most powerpc-linux boxes support dynamic linking these days and
18440 # people can always --disable-shared, the test was removed, and we
18441 # assume the GNU/Linux dynamic linker is in use.
18442 dynamic_linker='GNU/Linux ld.so'
18443 ;;
18444
18445 netbsd*)
18446 version_type=sunos
18447 need_lib_prefix=no
18448 need_version=no
18449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18450 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18452 dynamic_linker='NetBSD (a.out) ld.so'
18453 else
18454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18455 soname_spec='$libname$release$shared_ext$major'
18456 dynamic_linker='NetBSD ld.elf_so'
18457 fi
18458 shlibpath_var=LD_LIBRARY_PATH
18459 shlibpath_overrides_runpath=yes
18460 hardcode_into_libs=yes
18461 ;;
18462
18463 newsos6)
18464 version_type=linux # correct to gnu/linux during the next big refactor
18465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18466 shlibpath_var=LD_LIBRARY_PATH
18467 shlibpath_overrides_runpath=yes
18468 ;;
18469
18470 *nto* | *qnx*)
18471 version_type=qnx
18472 need_lib_prefix=no
18473 need_version=no
18474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18475 soname_spec='$libname$release$shared_ext$major'
18476 shlibpath_var=LD_LIBRARY_PATH
18477 shlibpath_overrides_runpath=no
18478 hardcode_into_libs=yes
18479 dynamic_linker='ldqnx.so'
18480 ;;
18481
18482 openbsd* | bitrig*)
18483 version_type=sunos
18484 sys_lib_dlsearch_path_spec=/usr/lib
18485 need_lib_prefix=no
18486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18487 need_version=no
18488 else
18489 need_version=yes
18490 fi
18491 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18493 shlibpath_var=LD_LIBRARY_PATH
18494 shlibpath_overrides_runpath=yes
18495 ;;
18496
18497 os2*)
18498 libname_spec='$name'
18499 version_type=windows
18500 shrext_cmds=.dll
18501 need_version=no
18502 need_lib_prefix=no
18503 # OS/2 can only load a DLL with a base name of 8 characters or less.
18504 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18505 v=$($ECHO $release$versuffix | tr -d .-);
18506 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18507 $ECHO $n$v`$shared_ext'
18508 library_names_spec='${libname}_dll.$libext'
18509 dynamic_linker='OS/2 ld.exe'
18510 shlibpath_var=BEGINLIBPATH
18511 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18513 postinstall_cmds='base_file=`basename \$file`~
18514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18515 dldir=$destdir/`dirname \$dlpath`~
18516 test -d \$dldir || mkdir -p \$dldir~
18517 $install_prog $dir/$dlname \$dldir/$dlname~
18518 chmod a+x \$dldir/$dlname~
18519 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18520 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18521 fi'
18522 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18523 dlpath=$dir/\$dldll~
18524 $RM \$dlpath'
18525 ;;
18526
18527 osf3* | osf4* | osf5*)
18528 version_type=osf
18529 need_lib_prefix=no
18530 need_version=no
18531 soname_spec='$libname$release$shared_ext$major'
18532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18533 shlibpath_var=LD_LIBRARY_PATH
18534 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18536 ;;
18537
18538 rdos*)
18539 dynamic_linker=no
18540 ;;
18541
18542 solaris*)
18543 version_type=linux # correct to gnu/linux during the next big refactor
18544 need_lib_prefix=no
18545 need_version=no
18546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18547 soname_spec='$libname$release$shared_ext$major'
18548 shlibpath_var=LD_LIBRARY_PATH
18549 shlibpath_overrides_runpath=yes
18550 hardcode_into_libs=yes
18551 # ldd complains unless libraries are executable
18552 postinstall_cmds='chmod +x $lib'
18553 ;;
18554
18555 sunos4*)
18556 version_type=sunos
18557 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18559 shlibpath_var=LD_LIBRARY_PATH
18560 shlibpath_overrides_runpath=yes
18561 if test yes = "$with_gnu_ld"; then
18562 need_lib_prefix=no
18563 fi
18564 need_version=yes
18565 ;;
18566
18567 sysv4 | sysv4.3*)
18568 version_type=linux # correct to gnu/linux during the next big refactor
18569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18570 soname_spec='$libname$release$shared_ext$major'
18571 shlibpath_var=LD_LIBRARY_PATH
18572 case $host_vendor in
18573 sni)
18574 shlibpath_overrides_runpath=no
18575 need_lib_prefix=no
18576 runpath_var=LD_RUN_PATH
18577 ;;
18578 siemens)
18579 need_lib_prefix=no
18580 ;;
18581 motorola)
18582 need_lib_prefix=no
18583 need_version=no
18584 shlibpath_overrides_runpath=no
18585 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18586 ;;
18587 esac
18588 ;;
18589
18590 sysv4*MP*)
18591 if test -d /usr/nec; then
18592 version_type=linux # correct to gnu/linux during the next big refactor
18593 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18594 soname_spec='$libname$shared_ext.$major'
18595 shlibpath_var=LD_LIBRARY_PATH
18596 fi
18597 ;;
18598
18599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18600 version_type=sco
18601 need_lib_prefix=no
18602 need_version=no
18603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18604 soname_spec='$libname$release$shared_ext$major'
18605 shlibpath_var=LD_LIBRARY_PATH
18606 shlibpath_overrides_runpath=yes
18607 hardcode_into_libs=yes
18608 if test yes = "$with_gnu_ld"; then
18609 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18610 else
18611 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18612 case $host_os in
18613 sco3.2v5*)
18614 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18615 ;;
18616 esac
18617 fi
18618 sys_lib_dlsearch_path_spec='/usr/lib'
18619 ;;
18620
18621 tpf*)
18622 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18623 version_type=linux # correct to gnu/linux during the next big refactor
18624 need_lib_prefix=no
18625 need_version=no
18626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18627 shlibpath_var=LD_LIBRARY_PATH
18628 shlibpath_overrides_runpath=no
18629 hardcode_into_libs=yes
18630 ;;
18631
18632 uts4*)
18633 version_type=linux # correct to gnu/linux during the next big refactor
18634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18635 soname_spec='$libname$release$shared_ext$major'
18636 shlibpath_var=LD_LIBRARY_PATH
18637 ;;
18638
18639 *)
18640 dynamic_linker=no
18641 ;;
18642 esac
18643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18644 printf "%s\n" "$dynamic_linker" >&6; }
18645 test no = "$dynamic_linker" && can_build_shared=no
18646
18647 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18648 if test yes = "$GCC"; then
18649 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18650 fi
18651
18652 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18653 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18654 fi
18655
18656 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18657 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18658 fi
18659
18660 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18661 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18662
18663 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18664 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18665
18666 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18667 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18709 printf %s "checking how to hardcode library paths into programs... " >&6; }
18710 hardcode_action_CXX=
18711 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18712 test -n "$runpath_var_CXX" ||
18713 test yes = "$hardcode_automatic_CXX"; then
18714
18715 # We can hardcode non-existent directories.
18716 if test no != "$hardcode_direct_CXX" &&
18717 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18718 # have to relink, otherwise we might link with an installed library
18719 # when we should be linking with a yet-to-be-installed one
18720 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18721 test no != "$hardcode_minus_L_CXX"; then
18722 # Linking always hardcodes the temporary library directory.
18723 hardcode_action_CXX=relink
18724 else
18725 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18726 hardcode_action_CXX=immediate
18727 fi
18728 else
18729 # We cannot hardcode anything, or else we can only hardcode existing
18730 # directories.
18731 hardcode_action_CXX=unsupported
18732 fi
18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18734 printf "%s\n" "$hardcode_action_CXX" >&6; }
18735
18736 if test relink = "$hardcode_action_CXX" ||
18737 test yes = "$inherit_rpath_CXX"; then
18738 # Fast installation is not supported
18739 enable_fast_install=no
18740 elif test yes = "$shlibpath_overrides_runpath" ||
18741 test no = "$enable_shared"; then
18742 # Fast installation is not necessary
18743 enable_fast_install=needless
18744 fi
18745
18746
18747
18748
18749
18750
18751
18752 fi # test -n "$compiler"
18753
18754 CC=$lt_save_CC
18755 CFLAGS=$lt_save_CFLAGS
18756 LDCXX=$LD
18757 LD=$lt_save_LD
18758 GCC=$lt_save_GCC
18759 with_gnu_ld=$lt_save_with_gnu_ld
18760 lt_cv_path_LDCXX=$lt_cv_path_LD
18761 lt_cv_path_LD=$lt_save_path_LD
18762 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18763 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18764 fi # test yes != "$_lt_caught_CXX_error"
18765
18766 ac_ext=c
18767 ac_cpp='$CPP $CPPFLAGS'
18768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18771
18772
18773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18774 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18775 set x ${MAKE-make}
18776 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18777 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
18778 then :
18779 printf %s "(cached) " >&6
18780 else $as_nop
18781 cat >conftest.make <<\_ACEOF
18782 SHELL = /bin/sh
18783 all:
18784 @echo '@@@%%%=$(MAKE)=@@@%%%'
18785 _ACEOF
18786 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18787 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18788 *@@@%%%=?*=@@@%%%*)
18789 eval ac_cv_prog_make_${ac_make}_set=yes;;
18790 *)
18791 eval ac_cv_prog_make_${ac_make}_set=no;;
18792 esac
18793 rm -f conftest.make
18794 fi
18795 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18797 printf "%s\n" "yes" >&6; }
18798 SET_MAKE=
18799 else
18800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18801 printf "%s\n" "no" >&6; }
18802 SET_MAKE="MAKE=${MAKE-make}"
18803 fi
18804
18805
18806
18807
18808
18809 # Extract the first word of "pkg-config", so it can be a program name with args.
18810 set dummy pkg-config; ac_word=$2
18811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18812 printf %s "checking for $ac_word... " >&6; }
18813 if test ${ac_cv_path_PKGCONFIG+y}
18814 then :
18815 printf %s "(cached) " >&6
18816 else $as_nop
18817 case $PKGCONFIG in
18818 [\\/]* | ?:[\\/]*)
18819 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
18820 ;;
18821 *)
18822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823 for as_dir in $PATH
18824 do
18825 IFS=$as_save_IFS
18826 case $as_dir in #(((
18827 '') as_dir=./ ;;
18828 */) ;;
18829 *) as_dir=$as_dir/ ;;
18830 esac
18831 for ac_exec_ext in '' $ac_executable_extensions; do
18832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18833 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
18834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18835 break 2
18836 fi
18837 done
18838 done
18839 IFS=$as_save_IFS
18840
18841 ;;
18842 esac
18843 fi
18844 PKGCONFIG=$ac_cv_path_PKGCONFIG
18845 if test -n "$PKGCONFIG"; then
18846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
18847 printf "%s\n" "$PKGCONFIG" >&6; }
18848 else
18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850 printf "%s\n" "no" >&6; }
18851 fi
18852
18853
18854
18855
18856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18857 printf %s "checking whether NLS is requested... " >&6; }
18858 # Check whether --enable-nls was given.
18859 if test ${enable_nls+y}
18860 then :
18861 enableval=$enable_nls; USE_NLS=$enableval
18862 else $as_nop
18863 USE_NLS=yes
18864 fi
18865
18866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18867 printf "%s\n" "$USE_NLS" >&6; }
18868
18869
18870
18871
18872 GETTEXT_MACRO_VERSION=0.20
18873
18874
18875
18876
18877 # Prepare PATH_SEPARATOR.
18878 # The user is always right.
18879 if test "${PATH_SEPARATOR+set}" != set; then
18880 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18881 # contains only /bin. Note that ksh looks also at the FPATH variable,
18882 # so we have to set that as well for the test.
18883 PATH_SEPARATOR=:
18884 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18885 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18886 || PATH_SEPARATOR=';'
18887 }
18888 fi
18889
18890 # Find out how to test for executable files. Don't use a zero-byte file,
18891 # as systems may use methods other than mode bits to determine executability.
18892 cat >conf$$.file <<_ASEOF
18893 #! /bin/sh
18894 exit 0
18895 _ASEOF
18896 chmod +x conf$$.file
18897 if test -x conf$$.file >/dev/null 2>&1; then
18898 ac_executable_p="test -x"
18899 else
18900 ac_executable_p="test -f"
18901 fi
18902 rm -f conf$$.file
18903
18904 # Extract the first word of "msgfmt", so it can be a program name with args.
18905 set dummy msgfmt; ac_word=$2
18906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18907 printf %s "checking for $ac_word... " >&6; }
18908 if test ${ac_cv_path_MSGFMT+y}
18909 then :
18910 printf %s "(cached) " >&6
18911 else $as_nop
18912 case "$MSGFMT" in
18913 [\\/]* | ?:[\\/]*)
18914 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18915 ;;
18916 *)
18917 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18918 for ac_dir in $PATH; do
18919 IFS="$ac_save_IFS"
18920 test -z "$ac_dir" && ac_dir=.
18921 for ac_exec_ext in '' $ac_executable_extensions; do
18922 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18923 echo "$as_me: trying $ac_dir/$ac_word..." >&5
18924 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
18925 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18926 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18927 break 2
18928 fi
18929 fi
18930 done
18931 done
18932 IFS="$ac_save_IFS"
18933 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18934 ;;
18935 esac
18936 fi
18937 MSGFMT="$ac_cv_path_MSGFMT"
18938 if test "$MSGFMT" != ":"; then
18939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18940 printf "%s\n" "$MSGFMT" >&6; }
18941 else
18942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18943 printf "%s\n" "no" >&6; }
18944 fi
18945
18946 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18947 set dummy gmsgfmt; ac_word=$2
18948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18949 printf %s "checking for $ac_word... " >&6; }
18950 if test ${ac_cv_path_GMSGFMT+y}
18951 then :
18952 printf %s "(cached) " >&6
18953 else $as_nop
18954 case $GMSGFMT in
18955 [\\/]* | ?:[\\/]*)
18956 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18957 ;;
18958 *)
18959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18960 for as_dir in $PATH
18961 do
18962 IFS=$as_save_IFS
18963 case $as_dir in #(((
18964 '') as_dir=./ ;;
18965 */) ;;
18966 *) as_dir=$as_dir/ ;;
18967 esac
18968 for ac_exec_ext in '' $ac_executable_extensions; do
18969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18970 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
18971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18972 break 2
18973 fi
18974 done
18975 done
18976 IFS=$as_save_IFS
18977
18978 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18979 ;;
18980 esac
18981 fi
18982 GMSGFMT=$ac_cv_path_GMSGFMT
18983 if test -n "$GMSGFMT"; then
18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18985 printf "%s\n" "$GMSGFMT" >&6; }
18986 else
18987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18988 printf "%s\n" "no" >&6; }
18989 fi
18990
18991
18992
18993 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18994 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
18995 *) GMSGFMT_015=$GMSGFMT ;;
18996 esac
18997
18998
18999
19000 # Prepare PATH_SEPARATOR.
19001 # The user is always right.
19002 if test "${PATH_SEPARATOR+set}" != set; then
19003 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19004 # contains only /bin. Note that ksh looks also at the FPATH variable,
19005 # so we have to set that as well for the test.
19006 PATH_SEPARATOR=:
19007 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19008 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19009 || PATH_SEPARATOR=';'
19010 }
19011 fi
19012
19013 # Find out how to test for executable files. Don't use a zero-byte file,
19014 # as systems may use methods other than mode bits to determine executability.
19015 cat >conf$$.file <<_ASEOF
19016 #! /bin/sh
19017 exit 0
19018 _ASEOF
19019 chmod +x conf$$.file
19020 if test -x conf$$.file >/dev/null 2>&1; then
19021 ac_executable_p="test -x"
19022 else
19023 ac_executable_p="test -f"
19024 fi
19025 rm -f conf$$.file
19026
19027 # Extract the first word of "xgettext", so it can be a program name with args.
19028 set dummy xgettext; ac_word=$2
19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19030 printf %s "checking for $ac_word... " >&6; }
19031 if test ${ac_cv_path_XGETTEXT+y}
19032 then :
19033 printf %s "(cached) " >&6
19034 else $as_nop
19035 case "$XGETTEXT" in
19036 [\\/]* | ?:[\\/]*)
19037 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19038 ;;
19039 *)
19040 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
19041 for ac_dir in $PATH; do
19042 IFS="$ac_save_IFS"
19043 test -z "$ac_dir" && ac_dir=.
19044 for ac_exec_ext in '' $ac_executable_extensions; do
19045 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19046 echo "$as_me: trying $ac_dir/$ac_word..." >&5
19047 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
19048 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
19049 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
19050 break 2
19051 fi
19052 fi
19053 done
19054 done
19055 IFS="$ac_save_IFS"
19056 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
19057 ;;
19058 esac
19059 fi
19060 XGETTEXT="$ac_cv_path_XGETTEXT"
19061 if test "$XGETTEXT" != ":"; then
19062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19063 printf "%s\n" "$XGETTEXT" >&6; }
19064 else
19065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19066 printf "%s\n" "no" >&6; }
19067 fi
19068
19069 rm -f messages.po
19070
19071 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
19072 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
19073 *) XGETTEXT_015=$XGETTEXT ;;
19074 esac
19075
19076
19077
19078 # Prepare PATH_SEPARATOR.
19079 # The user is always right.
19080 if test "${PATH_SEPARATOR+set}" != set; then
19081 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19082 # contains only /bin. Note that ksh looks also at the FPATH variable,
19083 # so we have to set that as well for the test.
19084 PATH_SEPARATOR=:
19085 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19086 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19087 || PATH_SEPARATOR=';'
19088 }
19089 fi
19090
19091 # Find out how to test for executable files. Don't use a zero-byte file,
19092 # as systems may use methods other than mode bits to determine executability.
19093 cat >conf$$.file <<_ASEOF
19094 #! /bin/sh
19095 exit 0
19096 _ASEOF
19097 chmod +x conf$$.file
19098 if test -x conf$$.file >/dev/null 2>&1; then
19099 ac_executable_p="test -x"
19100 else
19101 ac_executable_p="test -f"
19102 fi
19103 rm -f conf$$.file
19104
19105 # Extract the first word of "msgmerge", so it can be a program name with args.
19106 set dummy msgmerge; ac_word=$2
19107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19108 printf %s "checking for $ac_word... " >&6; }
19109 if test ${ac_cv_path_MSGMERGE+y}
19110 then :
19111 printf %s "(cached) " >&6
19112 else $as_nop
19113 case "$MSGMERGE" in
19114 [\\/]* | ?:[\\/]*)
19115 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19116 ;;
19117 *)
19118 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
19119 for ac_dir in $PATH; do
19120 IFS="$ac_save_IFS"
19121 test -z "$ac_dir" && ac_dir=.
19122 for ac_exec_ext in '' $ac_executable_extensions; do
19123 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19124 echo "$as_me: trying $ac_dir/$ac_word..." >&5
19125 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
19126 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
19127 break 2
19128 fi
19129 fi
19130 done
19131 done
19132 IFS="$ac_save_IFS"
19133 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
19134 ;;
19135 esac
19136 fi
19137 MSGMERGE="$ac_cv_path_MSGMERGE"
19138 if test "$MSGMERGE" != ":"; then
19139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19140 printf "%s\n" "$MSGMERGE" >&6; }
19141 else
19142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19143 printf "%s\n" "no" >&6; }
19144 fi
19145
19146
19147 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
19148 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
19149 else
19150 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
19151 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
19152 else
19153 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
19154 fi
19155 fi
19156
19157
19158 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
19159
19160
19161 ac_config_commands="$ac_config_commands po-directories"
19162
19163
19164
19165 if test "X$prefix" = "XNONE"; then
19166 acl_final_prefix="$ac_default_prefix"
19167 else
19168 acl_final_prefix="$prefix"
19169 fi
19170 if test "X$exec_prefix" = "XNONE"; then
19171 acl_final_exec_prefix='${prefix}'
19172 else
19173 acl_final_exec_prefix="$exec_prefix"
19174 fi
19175 acl_save_prefix="$prefix"
19176 prefix="$acl_final_prefix"
19177 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19178 prefix="$acl_save_prefix"
19179
19180
19181
19182 # Check whether --with-gnu-ld was given.
19183 if test ${with_gnu_ld+y}
19184 then :
19185 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19186 else $as_nop
19187 with_gnu_ld=no
19188 fi
19189
19190 # Prepare PATH_SEPARATOR.
19191 # The user is always right.
19192 if test "${PATH_SEPARATOR+set}" != set; then
19193 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19194 # contains only /bin. Note that ksh looks also at the FPATH variable,
19195 # so we have to set that as well for the test.
19196 PATH_SEPARATOR=:
19197 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19198 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19199 || PATH_SEPARATOR=';'
19200 }
19201 fi
19202
19203 if test -n "$LD"; then
19204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
19205 printf %s "checking for ld... " >&6; }
19206 elif test "$GCC" = yes; then
19207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19208 printf %s "checking for ld used by $CC... " >&6; }
19209 elif test "$with_gnu_ld" = yes; then
19210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19211 printf %s "checking for GNU ld... " >&6; }
19212 else
19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19214 printf %s "checking for non-GNU ld... " >&6; }
19215 fi
19216 if test -n "$LD"; then
19217 # Let the user override the test with a path.
19218 :
19219 else
19220 if test ${acl_cv_path_LD+y}
19221 then :
19222 printf %s "(cached) " >&6
19223 else $as_nop
19224
19225 acl_cv_path_LD= # Final result of this test
19226 ac_prog=ld # Program to search in $PATH
19227 if test "$GCC" = yes; then
19228 # Check if gcc -print-prog-name=ld gives a path.
19229 case $host in
19230 *-*-mingw*)
19231 # gcc leaves a trailing carriage return which upsets mingw
19232 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19233 *)
19234 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
19235 esac
19236 case $acl_output in
19237 # Accept absolute paths.
19238 [\\/]* | ?:[\\/]*)
19239 re_direlt='/[^/][^/]*/\.\./'
19240 # Canonicalize the pathname of ld
19241 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
19242 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
19243 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
19244 done
19245 # Got the pathname. No search in PATH is needed.
19246 acl_cv_path_LD="$acl_output"
19247 ac_prog=
19248 ;;
19249 "")
19250 # If it fails, then pretend we aren't using GCC.
19251 ;;
19252 *)
19253 # If it is relative, then search for the first ld in PATH.
19254 with_gnu_ld=unknown
19255 ;;
19256 esac
19257 fi
19258 if test -n "$ac_prog"; then
19259 # Search for $ac_prog in $PATH.
19260 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19261 for ac_dir in $PATH; do
19262 IFS="$acl_save_ifs"
19263 test -z "$ac_dir" && ac_dir=.
19264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19265 acl_cv_path_LD="$ac_dir/$ac_prog"
19266 # Check to see if the program is GNU ld. I'd rather use --version,
19267 # but apparently some variants of GNU ld only accept -v.
19268 # Break only if it was the GNU/non-GNU ld that we prefer.
19269 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
19270 *GNU* | *'with BFD'*)
19271 test "$with_gnu_ld" != no && break
19272 ;;
19273 *)
19274 test "$with_gnu_ld" != yes && break
19275 ;;
19276 esac
19277 fi
19278 done
19279 IFS="$acl_save_ifs"
19280 fi
19281 case $host in
19282 *-*-aix*)
19283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284 /* end confdefs.h. */
19285 #if defined __powerpc64__ || defined _ARCH_PPC64
19286 int ok;
19287 #else
19288 error fail
19289 #endif
19290
19291 _ACEOF
19292 if ac_fn_c_try_compile "$LINENO"
19293 then :
19294 # The compiler produces 64-bit code. Add option '-b64' so that the
19295 # linker groks 64-bit object files.
19296 case "$acl_cv_path_LD " in
19297 *" -b64 "*) ;;
19298 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
19299 esac
19300
19301 fi
19302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19303 ;;
19304 sparc64-*-netbsd*)
19305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306 /* end confdefs.h. */
19307 #if defined __sparcv9 || defined __arch64__
19308 int ok;
19309 #else
19310 error fail
19311 #endif
19312
19313 _ACEOF
19314 if ac_fn_c_try_compile "$LINENO"
19315 then :
19316
19317 else $as_nop
19318 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
19319 # so that the linker groks 32-bit object files.
19320 case "$acl_cv_path_LD " in
19321 *" -m elf32_sparc "*) ;;
19322 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
19323 esac
19324
19325 fi
19326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19327 ;;
19328 esac
19329
19330 fi
19331
19332 LD="$acl_cv_path_LD"
19333 fi
19334 if test -n "$LD"; then
19335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19336 printf "%s\n" "$LD" >&6; }
19337 else
19338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19339 printf "%s\n" "no" >&6; }
19340 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19341 fi
19342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19343 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
19344 if test ${acl_cv_prog_gnu_ld+y}
19345 then :
19346 printf %s "(cached) " >&6
19347 else $as_nop
19348 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19349 case `$LD -v 2>&1 </dev/null` in
19350 *GNU* | *'with BFD'*)
19351 acl_cv_prog_gnu_ld=yes
19352 ;;
19353 *)
19354 acl_cv_prog_gnu_ld=no
19355 ;;
19356 esac
19357 fi
19358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19359 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
19360 with_gnu_ld=$acl_cv_prog_gnu_ld
19361
19362
19363
19364
19365
19366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19367 printf %s "checking for shared library run path origin... " >&6; }
19368 if test ${acl_cv_rpath+y}
19369 then :
19370 printf %s "(cached) " >&6
19371 else $as_nop
19372
19373 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19374 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19375 . ./conftest.sh
19376 rm -f ./conftest.sh
19377 acl_cv_rpath=done
19378
19379 fi
19380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19381 printf "%s\n" "$acl_cv_rpath" >&6; }
19382 wl="$acl_cv_wl"
19383 acl_libext="$acl_cv_libext"
19384 acl_shlibext="$acl_cv_shlibext"
19385 acl_libname_spec="$acl_cv_libname_spec"
19386 acl_library_names_spec="$acl_cv_library_names_spec"
19387 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19388 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19389 acl_hardcode_direct="$acl_cv_hardcode_direct"
19390 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
19391 # Check whether --enable-rpath was given.
19392 if test ${enable_rpath+y}
19393 then :
19394 enableval=$enable_rpath; :
19395 else $as_nop
19396 enable_rpath=yes
19397 fi
19398
19399
19400
19401
19402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
19403 printf %s "checking 32-bit host C ABI... " >&6; }
19404 if test ${gl_cv_host_cpu_c_abi_32bit+y}
19405 then :
19406 printf %s "(cached) " >&6
19407 else $as_nop
19408 if test -n "$gl_cv_host_cpu_c_abi"; then
19409 case "$gl_cv_host_cpu_c_abi" in
19410 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
19411 gl_cv_host_cpu_c_abi_32bit=yes ;;
19412 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
19413 gl_cv_host_cpu_c_abi_32bit=no ;;
19414 *)
19415 gl_cv_host_cpu_c_abi_32bit=unknown ;;
19416 esac
19417 else
19418 case "$host_cpu" in
19419
19420 # CPUs that only support a 32-bit ABI.
19421 arc \
19422 | bfin \
19423 | cris* \
19424 | csky \
19425 | epiphany \
19426 | ft32 \
19427 | h8300 \
19428 | m68k \
19429 | microblaze | microblazeel \
19430 | nds32 | nds32le | nds32be \
19431 | nios2 | nios2eb | nios2el \
19432 | or1k* \
19433 | or32 \
19434 | sh | sh1234 | sh1234elb \
19435 | tic6x \
19436 | xtensa* )
19437 gl_cv_host_cpu_c_abi_32bit=yes
19438 ;;
19439
19440 # CPUs that only support a 64-bit ABI.
19441 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
19442 | mmix )
19443 gl_cv_host_cpu_c_abi_32bit=no
19444 ;;
19445
19446 i[34567]86 )
19447 gl_cv_host_cpu_c_abi_32bit=yes
19448 ;;
19449
19450 x86_64 )
19451 # On x86_64 systems, the C compiler may be generating code in one of
19452 # these ABIs:
19453 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
19454 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
19455 # with native Windows (mingw, MSVC).
19456 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
19457 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19460 #if (defined __x86_64__ || defined __amd64__ \
19461 || defined _M_X64 || defined _M_AMD64) \
19462 && !(defined __ILP32__ || defined _ILP32)
19463 int ok;
19464 #else
19465 error fail
19466 #endif
19467
19468 _ACEOF
19469 if ac_fn_c_try_compile "$LINENO"
19470 then :
19471 gl_cv_host_cpu_c_abi_32bit=no
19472 else $as_nop
19473 gl_cv_host_cpu_c_abi_32bit=yes
19474 fi
19475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19476 ;;
19477
19478 arm* | aarch64 )
19479 # Assume arm with EABI.
19480 # On arm64 systems, the C compiler may be generating code in one of
19481 # these ABIs:
19482 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
19483 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
19484 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
19485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486 /* end confdefs.h. */
19487 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
19488 int ok;
19489 #else
19490 error fail
19491 #endif
19492
19493 _ACEOF
19494 if ac_fn_c_try_compile "$LINENO"
19495 then :
19496 gl_cv_host_cpu_c_abi_32bit=no
19497 else $as_nop
19498 gl_cv_host_cpu_c_abi_32bit=yes
19499 fi
19500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19501 ;;
19502
19503 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
19504 # On hppa, the C compiler may be generating 32-bit code or 64-bit
19505 # code. In the latter case, it defines _LP64 and __LP64__.
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19508 #ifdef __LP64__
19509 int ok;
19510 #else
19511 error fail
19512 #endif
19513
19514 _ACEOF
19515 if ac_fn_c_try_compile "$LINENO"
19516 then :
19517 gl_cv_host_cpu_c_abi_32bit=no
19518 else $as_nop
19519 gl_cv_host_cpu_c_abi_32bit=yes
19520 fi
19521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19522 ;;
19523
19524 ia64* )
19525 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
19526 # 32-bit code. In the latter case, it defines _ILP32.
19527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h. */
19529 #ifdef _ILP32
19530 int ok;
19531 #else
19532 error fail
19533 #endif
19534
19535 _ACEOF
19536 if ac_fn_c_try_compile "$LINENO"
19537 then :
19538 gl_cv_host_cpu_c_abi_32bit=yes
19539 else $as_nop
19540 gl_cv_host_cpu_c_abi_32bit=no
19541 fi
19542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19543 ;;
19544
19545 mips* )
19546 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
19547 # at 32.
19548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h. */
19550 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
19551 int ok;
19552 #else
19553 error fail
19554 #endif
19555
19556 _ACEOF
19557 if ac_fn_c_try_compile "$LINENO"
19558 then :
19559 gl_cv_host_cpu_c_abi_32bit=no
19560 else $as_nop
19561 gl_cv_host_cpu_c_abi_32bit=yes
19562 fi
19563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19564 ;;
19565
19566 powerpc* )
19567 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
19568 # No need to distinguish them here; the caller may distinguish
19569 # them based on the OS.
19570 # On powerpc64 systems, the C compiler may still be generating
19571 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
19572 # be generating 64-bit code.
19573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19575 #if defined __powerpc64__ || defined _ARCH_PPC64
19576 int ok;
19577 #else
19578 error fail
19579 #endif
19580
19581 _ACEOF
19582 if ac_fn_c_try_compile "$LINENO"
19583 then :
19584 gl_cv_host_cpu_c_abi_32bit=no
19585 else $as_nop
19586 gl_cv_host_cpu_c_abi_32bit=yes
19587 fi
19588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19589 ;;
19590
19591 rs6000 )
19592 gl_cv_host_cpu_c_abi_32bit=yes
19593 ;;
19594
19595 riscv32 | riscv64 )
19596 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
19597 # Size of 'long' and 'void *':
19598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19600 #if defined __LP64__
19601 int ok;
19602 #else
19603 error fail
19604 #endif
19605
19606 _ACEOF
19607 if ac_fn_c_try_compile "$LINENO"
19608 then :
19609 gl_cv_host_cpu_c_abi_32bit=no
19610 else $as_nop
19611 gl_cv_host_cpu_c_abi_32bit=yes
19612 fi
19613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19614 ;;
19615
19616 s390* )
19617 # On s390x, the C compiler may be generating 64-bit (= s390x) code
19618 # or 31-bit (= s390) code.
19619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19621 #if defined __LP64__ || defined __s390x__
19622 int ok;
19623 #else
19624 error fail
19625 #endif
19626
19627 _ACEOF
19628 if ac_fn_c_try_compile "$LINENO"
19629 then :
19630 gl_cv_host_cpu_c_abi_32bit=no
19631 else $as_nop
19632 gl_cv_host_cpu_c_abi_32bit=yes
19633 fi
19634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19635 ;;
19636
19637 sparc | sparc64 )
19638 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
19639 # C compiler still generates 32-bit code.
19640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19641 /* end confdefs.h. */
19642 #if defined __sparcv9 || defined __arch64__
19643 int ok;
19644 #else
19645 error fail
19646 #endif
19647
19648 _ACEOF
19649 if ac_fn_c_try_compile "$LINENO"
19650 then :
19651 gl_cv_host_cpu_c_abi_32bit=no
19652 else $as_nop
19653 gl_cv_host_cpu_c_abi_32bit=yes
19654 fi
19655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19656 ;;
19657
19658 *)
19659 gl_cv_host_cpu_c_abi_32bit=unknown
19660 ;;
19661 esac
19662 fi
19663
19664 fi
19665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
19666 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
19667
19668 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
19669
19670
19671
19672
19673
19674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
19675 printf %s "checking for ELF binary format... " >&6; }
19676 if test ${gl_cv_elf+y}
19677 then :
19678 printf %s "(cached) " >&6
19679 else $as_nop
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19682 #ifdef __ELF__
19683 Extensible Linking Format
19684 #endif
19685
19686 _ACEOF
19687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19688 $EGREP "Extensible Linking Format" >/dev/null 2>&1
19689 then :
19690 gl_cv_elf=yes
19691 else $as_nop
19692 gl_cv_elf=no
19693 fi
19694 rm -rf conftest*
19695
19696
19697 fi
19698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
19699 printf "%s\n" "$gl_cv_elf" >&6; }
19700 if test $gl_cv_elf; then
19701 # Extract the ELF class of a file (5th byte) in decimal.
19702 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
19703 if od -A x < /dev/null >/dev/null 2>/dev/null; then
19704 # Use POSIX od.
19705 func_elfclass ()
19706 {
19707 od -A n -t d1 -j 4 -N 1
19708 }
19709 else
19710 # Use BSD hexdump.
19711 func_elfclass ()
19712 {
19713 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
19714 echo
19715 }
19716 fi
19717 case $HOST_CPU_C_ABI_32BIT in
19718 yes)
19719 # 32-bit ABI.
19720 acl_is_expected_elfclass ()
19721 {
19722 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
19723 }
19724 ;;
19725 no)
19726 # 64-bit ABI.
19727 acl_is_expected_elfclass ()
19728 {
19729 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
19730 }
19731 ;;
19732 *)
19733 # Unknown.
19734 acl_is_expected_elfclass ()
19735 {
19736 :
19737 }
19738 ;;
19739 esac
19740 else
19741 acl_is_expected_elfclass ()
19742 {
19743 :
19744 }
19745 fi
19746
19747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
19748 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
19749 if test ${acl_cv_libdirstems+y}
19750 then :
19751 printf %s "(cached) " >&6
19752 else $as_nop
19753 acl_libdirstem=lib
19754 acl_libdirstem2=
19755 acl_libdirstem3=
19756 case "$host_os" in
19757 solaris*)
19758 if test $HOST_CPU_C_ABI_32BIT = no; then
19759 acl_libdirstem2=lib/64
19760 case "$host_cpu" in
19761 sparc*) acl_libdirstem3=lib/sparcv9 ;;
19762 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
19763 esac
19764 fi
19765 ;;
19766 *)
19767 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
19768 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19769 if test $HOST_CPU_C_ABI_32BIT != no; then
19770 # 32-bit or unknown ABI.
19771 if test -d /usr/lib32; then
19772 acl_libdirstem2=lib32
19773 fi
19774 fi
19775 if test $HOST_CPU_C_ABI_32BIT != yes; then
19776 # 64-bit or unknown ABI.
19777 if test -d /usr/lib64; then
19778 acl_libdirstem3=lib64
19779 fi
19780 fi
19781 if test -n "$searchpath"; then
19782 acl_save_IFS="${IFS= }"; IFS=":"
19783 for searchdir in $searchpath; do
19784 if test -d "$searchdir"; then
19785 case "$searchdir" in
19786 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
19787 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
19788 */../ | */.. )
19789 # Better ignore directories of this form. They are misleading.
19790 ;;
19791 *) searchdir=`cd "$searchdir" && pwd`
19792 case "$searchdir" in
19793 */lib32 ) acl_libdirstem2=lib32 ;;
19794 */lib64 ) acl_libdirstem3=lib64 ;;
19795 esac ;;
19796 esac
19797 fi
19798 done
19799 IFS="$acl_save_IFS"
19800 if test $HOST_CPU_C_ABI_32BIT = yes; then
19801 # 32-bit ABI.
19802 acl_libdirstem3=
19803 fi
19804 if test $HOST_CPU_C_ABI_32BIT = no; then
19805 # 64-bit ABI.
19806 acl_libdirstem2=
19807 fi
19808 fi
19809 ;;
19810 esac
19811 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
19812 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
19813 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
19814
19815 fi
19816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
19817 printf "%s\n" "$acl_cv_libdirstems" >&6; }
19818 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
19819 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
19820 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832 use_additional=yes
19833
19834 acl_save_prefix="$prefix"
19835 prefix="$acl_final_prefix"
19836 acl_save_exec_prefix="$exec_prefix"
19837 exec_prefix="$acl_final_exec_prefix"
19838
19839 eval additional_includedir=\"$includedir\"
19840 eval additional_libdir=\"$libdir\"
19841 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
19842 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
19843
19844 exec_prefix="$acl_save_exec_prefix"
19845 prefix="$acl_save_prefix"
19846
19847
19848 # Check whether --with-libiconv-prefix was given.
19849 if test ${with_libiconv_prefix+y}
19850 then :
19851 withval=$with_libiconv_prefix;
19852 if test "X$withval" = "Xno"; then
19853 use_additional=no
19854 else
19855 if test "X$withval" = "X"; then
19856
19857 acl_save_prefix="$prefix"
19858 prefix="$acl_final_prefix"
19859 acl_save_exec_prefix="$exec_prefix"
19860 exec_prefix="$acl_final_exec_prefix"
19861
19862 eval additional_includedir=\"$includedir\"
19863 eval additional_libdir=\"$libdir\"
19864 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
19865 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
19866
19867 exec_prefix="$acl_save_exec_prefix"
19868 prefix="$acl_save_prefix"
19869
19870 else
19871 additional_includedir="$withval/include"
19872 additional_libdir="$withval/$acl_libdirstem"
19873 additional_libdir2="$withval/$acl_libdirstem2"
19874 additional_libdir3="$withval/$acl_libdirstem3"
19875 fi
19876 fi
19877
19878 fi
19879
19880 if test "X$additional_libdir2" = "X$additional_libdir"; then
19881 additional_libdir2=
19882 fi
19883 if test "X$additional_libdir3" = "X$additional_libdir"; then
19884 additional_libdir3=
19885 fi
19886 LIBICONV=
19887 LTLIBICONV=
19888 INCICONV=
19889 LIBICONV_PREFIX=
19890 HAVE_LIBICONV=
19891 rpathdirs=
19892 ltrpathdirs=
19893 names_already_handled=
19894 names_next_round='iconv '
19895 while test -n "$names_next_round"; do
19896 names_this_round="$names_next_round"
19897 names_next_round=
19898 for name in $names_this_round; do
19899 already_handled=
19900 for n in $names_already_handled; do
19901 if test "$n" = "$name"; then
19902 already_handled=yes
19903 break
19904 fi
19905 done
19906 if test -z "$already_handled"; then
19907 names_already_handled="$names_already_handled $name"
19908 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19909 eval value=\"\$HAVE_LIB$uppername\"
19910 if test -n "$value"; then
19911 if test "$value" = yes; then
19912 eval value=\"\$LIB$uppername\"
19913 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19914 eval value=\"\$LTLIB$uppername\"
19915 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19916 else
19917 :
19918 fi
19919 else
19920 found_dir=
19921 found_la=
19922 found_so=
19923 found_a=
19924 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19925 if test -n "$acl_shlibext"; then
19926 shrext=".$acl_shlibext" # typically: shrext=.so
19927 else
19928 shrext=
19929 fi
19930 if test $use_additional = yes; then
19931 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
19932 if test "X$found_dir" = "X"; then
19933 eval dir=\$$additional_libdir_variable
19934 if test -n "$dir"; then
19935 if test -n "$acl_shlibext"; then
19936 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19937 found_dir="$dir"
19938 found_so="$dir/$libname$shrext"
19939 else
19940 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19941 ver=`(cd "$dir" && \
19942 for f in "$libname$shrext".*; do echo "$f"; done \
19943 | sed -e "s,^$libname$shrext\\\\.,," \
19944 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19945 | sed 1q ) 2>/dev/null`
19946 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
19947 found_dir="$dir"
19948 found_so="$dir/$libname$shrext.$ver"
19949 fi
19950 else
19951 eval library_names=\"$acl_library_names_spec\"
19952 for f in $library_names; do
19953 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19954 found_dir="$dir"
19955 found_so="$dir/$f"
19956 break
19957 fi
19958 done
19959 fi
19960 fi
19961 fi
19962 if test "X$found_dir" = "X"; then
19963 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19964 found_dir="$dir"
19965 found_a="$dir/$libname.$acl_libext"
19966 fi
19967 fi
19968 if test "X$found_dir" != "X"; then
19969 if test -f "$dir/$libname.la"; then
19970 found_la="$dir/$libname.la"
19971 fi
19972 fi
19973 fi
19974 fi
19975 done
19976 fi
19977 if test "X$found_dir" = "X"; then
19978 for x in $LDFLAGS $LTLIBICONV; do
19979
19980 acl_save_prefix="$prefix"
19981 prefix="$acl_final_prefix"
19982 acl_save_exec_prefix="$exec_prefix"
19983 exec_prefix="$acl_final_exec_prefix"
19984 eval x=\"$x\"
19985 exec_prefix="$acl_save_exec_prefix"
19986 prefix="$acl_save_prefix"
19987
19988 case "$x" in
19989 -L*)
19990 dir=`echo "X$x" | sed -e 's/^X-L//'`
19991 if test -n "$acl_shlibext"; then
19992 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19993 found_dir="$dir"
19994 found_so="$dir/$libname$shrext"
19995 else
19996 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19997 ver=`(cd "$dir" && \
19998 for f in "$libname$shrext".*; do echo "$f"; done \
19999 | sed -e "s,^$libname$shrext\\\\.,," \
20000 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20001 | sed 1q ) 2>/dev/null`
20002 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
20003 found_dir="$dir"
20004 found_so="$dir/$libname$shrext.$ver"
20005 fi
20006 else
20007 eval library_names=\"$acl_library_names_spec\"
20008 for f in $library_names; do
20009 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
20010 found_dir="$dir"
20011 found_so="$dir/$f"
20012 break
20013 fi
20014 done
20015 fi
20016 fi
20017 fi
20018 if test "X$found_dir" = "X"; then
20019 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
20020 found_dir="$dir"
20021 found_a="$dir/$libname.$acl_libext"
20022 fi
20023 fi
20024 if test "X$found_dir" != "X"; then
20025 if test -f "$dir/$libname.la"; then
20026 found_la="$dir/$libname.la"
20027 fi
20028 fi
20029 ;;
20030 esac
20031 if test "X$found_dir" != "X"; then
20032 break
20033 fi
20034 done
20035 fi
20036 if test "X$found_dir" != "X"; then
20037 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20038 if test "X$found_so" != "X"; then
20039 if test "$enable_rpath" = no \
20040 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20041 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
20042 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
20043 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20044 else
20045 haveit=
20046 for x in $ltrpathdirs; do
20047 if test "X$x" = "X$found_dir"; then
20048 haveit=yes
20049 break
20050 fi
20051 done
20052 if test -z "$haveit"; then
20053 ltrpathdirs="$ltrpathdirs $found_dir"
20054 fi
20055 if test "$acl_hardcode_direct" = yes; then
20056 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20057 else
20058 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20059 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20060 haveit=
20061 for x in $rpathdirs; do
20062 if test "X$x" = "X$found_dir"; then
20063 haveit=yes
20064 break
20065 fi
20066 done
20067 if test -z "$haveit"; then
20068 rpathdirs="$rpathdirs $found_dir"
20069 fi
20070 else
20071 haveit=
20072 for x in $LDFLAGS $LIBICONV; do
20073
20074 acl_save_prefix="$prefix"
20075 prefix="$acl_final_prefix"
20076 acl_save_exec_prefix="$exec_prefix"
20077 exec_prefix="$acl_final_exec_prefix"
20078 eval x=\"$x\"
20079 exec_prefix="$acl_save_exec_prefix"
20080 prefix="$acl_save_prefix"
20081
20082 if test "X$x" = "X-L$found_dir"; then
20083 haveit=yes
20084 break
20085 fi
20086 done
20087 if test -z "$haveit"; then
20088 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20089 fi
20090 if test "$acl_hardcode_minus_L" != no; then
20091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20092 else
20093 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20094 fi
20095 fi
20096 fi
20097 fi
20098 else
20099 if test "X$found_a" != "X"; then
20100 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20101 else
20102 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20103 fi
20104 fi
20105 additional_includedir=
20106 case "$found_dir" in
20107 */$acl_libdirstem | */$acl_libdirstem/)
20108 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20109 if test "$name" = 'iconv'; then
20110 LIBICONV_PREFIX="$basedir"
20111 fi
20112 additional_includedir="$basedir/include"
20113 ;;
20114 */$acl_libdirstem2 | */$acl_libdirstem2/)
20115 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20116 if test "$name" = 'iconv'; then
20117 LIBICONV_PREFIX="$basedir"
20118 fi
20119 additional_includedir="$basedir/include"
20120 ;;
20121 */$acl_libdirstem3 | */$acl_libdirstem3/)
20122 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
20123 if test "$name" = 'iconv'; then
20124 LIBICONV_PREFIX="$basedir"
20125 fi
20126 additional_includedir="$basedir/include"
20127 ;;
20128 esac
20129 if test "X$additional_includedir" != "X"; then
20130 if test "X$additional_includedir" != "X/usr/include"; then
20131 haveit=
20132 if test "X$additional_includedir" = "X/usr/local/include"; then
20133 if test -n "$GCC"; then
20134 case $host_os in
20135 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20136 esac
20137 fi
20138 fi
20139 if test -z "$haveit"; then
20140 for x in $CPPFLAGS $INCICONV; do
20141
20142 acl_save_prefix="$prefix"
20143 prefix="$acl_final_prefix"
20144 acl_save_exec_prefix="$exec_prefix"
20145 exec_prefix="$acl_final_exec_prefix"
20146 eval x=\"$x\"
20147 exec_prefix="$acl_save_exec_prefix"
20148 prefix="$acl_save_prefix"
20149
20150 if test "X$x" = "X-I$additional_includedir"; then
20151 haveit=yes
20152 break
20153 fi
20154 done
20155 if test -z "$haveit"; then
20156 if test -d "$additional_includedir"; then
20157 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20158 fi
20159 fi
20160 fi
20161 fi
20162 fi
20163 if test -n "$found_la"; then
20164 save_libdir="$libdir"
20165 case "$found_la" in
20166 */* | *\\*) . "$found_la" ;;
20167 *) . "./$found_la" ;;
20168 esac
20169 libdir="$save_libdir"
20170 for dep in $dependency_libs; do
20171 case "$dep" in
20172 -L*)
20173 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20174 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
20175 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
20176 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
20177 haveit=
20178 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
20179 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
20180 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
20181 if test -n "$GCC"; then
20182 case $host_os in
20183 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20184 esac
20185 fi
20186 fi
20187 if test -z "$haveit"; then
20188 haveit=
20189 for x in $LDFLAGS $LIBICONV; do
20190
20191 acl_save_prefix="$prefix"
20192 prefix="$acl_final_prefix"
20193 acl_save_exec_prefix="$exec_prefix"
20194 exec_prefix="$acl_final_exec_prefix"
20195 eval x=\"$x\"
20196 exec_prefix="$acl_save_exec_prefix"
20197 prefix="$acl_save_prefix"
20198
20199 if test "X$x" = "X-L$dependency_libdir"; then
20200 haveit=yes
20201 break
20202 fi
20203 done
20204 if test -z "$haveit"; then
20205 if test -d "$dependency_libdir"; then
20206 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
20207 fi
20208 fi
20209 haveit=
20210 for x in $LDFLAGS $LTLIBICONV; do
20211
20212 acl_save_prefix="$prefix"
20213 prefix="$acl_final_prefix"
20214 acl_save_exec_prefix="$exec_prefix"
20215 exec_prefix="$acl_final_exec_prefix"
20216 eval x=\"$x\"
20217 exec_prefix="$acl_save_exec_prefix"
20218 prefix="$acl_save_prefix"
20219
20220 if test "X$x" = "X-L$dependency_libdir"; then
20221 haveit=yes
20222 break
20223 fi
20224 done
20225 if test -z "$haveit"; then
20226 if test -d "$dependency_libdir"; then
20227 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
20228 fi
20229 fi
20230 fi
20231 fi
20232 ;;
20233 -R*)
20234 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20235 if test "$enable_rpath" != no; then
20236 haveit=
20237 for x in $rpathdirs; do
20238 if test "X$x" = "X$dir"; then
20239 haveit=yes
20240 break
20241 fi
20242 done
20243 if test -z "$haveit"; then
20244 rpathdirs="$rpathdirs $dir"
20245 fi
20246 haveit=
20247 for x in $ltrpathdirs; do
20248 if test "X$x" = "X$dir"; then
20249 haveit=yes
20250 break
20251 fi
20252 done
20253 if test -z "$haveit"; then
20254 ltrpathdirs="$ltrpathdirs $dir"
20255 fi
20256 fi
20257 ;;
20258 -l*)
20259 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20260 ;;
20261 *.la)
20262 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20263 ;;
20264 *)
20265 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20266 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20267 ;;
20268 esac
20269 done
20270 fi
20271 else
20272 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20273 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20274 fi
20275 fi
20276 fi
20277 done
20278 done
20279 if test "X$rpathdirs" != "X"; then
20280 if test -n "$acl_hardcode_libdir_separator"; then
20281 alldirs=
20282 for found_dir in $rpathdirs; do
20283 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20284 done
20285 acl_save_libdir="$libdir"
20286 libdir="$alldirs"
20287 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20288 libdir="$acl_save_libdir"
20289 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20290 else
20291 for found_dir in $rpathdirs; do
20292 acl_save_libdir="$libdir"
20293 libdir="$found_dir"
20294 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20295 libdir="$acl_save_libdir"
20296 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20297 done
20298 fi
20299 fi
20300 if test "X$ltrpathdirs" != "X"; then
20301 for found_dir in $ltrpathdirs; do
20302 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20303 done
20304 fi
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20335 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
20336 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
20337 then :
20338 printf %s "(cached) " >&6
20339 else $as_nop
20340 gt_save_LIBS="$LIBS"
20341 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h. */
20344 #include <CoreFoundation/CFPreferences.h>
20345 int
20346 main (void)
20347 {
20348 CFPreferencesCopyAppValue(NULL, NULL)
20349 ;
20350 return 0;
20351 }
20352 _ACEOF
20353 if ac_fn_c_try_link "$LINENO"
20354 then :
20355 gt_cv_func_CFPreferencesCopyAppValue=yes
20356 else $as_nop
20357 gt_cv_func_CFPreferencesCopyAppValue=no
20358 fi
20359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20360 conftest$ac_exeext conftest.$ac_ext
20361 LIBS="$gt_save_LIBS"
20362 fi
20363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20364 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20365 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20366
20367 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20368
20369 fi
20370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
20371 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
20372 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
20373 then :
20374 printf %s "(cached) " >&6
20375 else $as_nop
20376 gt_save_LIBS="$LIBS"
20377 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20379 /* end confdefs.h. */
20380 #include <CoreFoundation/CFLocale.h>
20381 int
20382 main (void)
20383 {
20384 CFLocaleCopyPreferredLanguages();
20385 ;
20386 return 0;
20387 }
20388 _ACEOF
20389 if ac_fn_c_try_link "$LINENO"
20390 then :
20391 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
20392 else $as_nop
20393 gt_cv_func_CFLocaleCopyPreferredLanguages=no
20394 fi
20395 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20396 conftest$ac_exeext conftest.$ac_ext
20397 LIBS="$gt_save_LIBS"
20398 fi
20399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
20400 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
20401 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
20402
20403 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
20404
20405 fi
20406 INTL_MACOSX_LIBS=
20407 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
20408 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
20409 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20410 fi
20411
20412
20413
20414
20415
20416
20417 LIBINTL=
20418 LTLIBINTL=
20419 POSUB=
20420
20421 case " $gt_needs " in
20422 *" need-formatstring-macros "*) gt_api_version=3 ;;
20423 *" need-ngettext "*) gt_api_version=2 ;;
20424 *) gt_api_version=1 ;;
20425 esac
20426 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
20427 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
20428
20429 if test "$USE_NLS" = "yes"; then
20430 gt_use_preinstalled_gnugettext=no
20431
20432
20433 if test $gt_api_version -ge 3; then
20434 gt_revision_test_code='
20435 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20436 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
20437 #endif
20438 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
20439 '
20440 else
20441 gt_revision_test_code=
20442 fi
20443 if test $gt_api_version -ge 2; then
20444 gt_expression_test_code=' + * ngettext ("", "", 0)'
20445 else
20446 gt_expression_test_code=
20447 fi
20448
20449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20450 printf %s "checking for GNU gettext in libc... " >&6; }
20451 if eval test \${$gt_func_gnugettext_libc+y}
20452 then :
20453 printf %s "(cached) " >&6
20454 else $as_nop
20455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20456 /* end confdefs.h. */
20457
20458 #include <libintl.h>
20459 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20460 extern int _nl_msg_cat_cntr;
20461 extern int *_nl_domain_bindings;
20462 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
20463 #else
20464 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20465 #endif
20466 $gt_revision_test_code
20467
20468 int
20469 main (void)
20470 {
20471
20472 bindtextdomain ("", "");
20473 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20474
20475 ;
20476 return 0;
20477 }
20478 _ACEOF
20479 if ac_fn_c_try_link "$LINENO"
20480 then :
20481 eval "$gt_func_gnugettext_libc=yes"
20482 else $as_nop
20483 eval "$gt_func_gnugettext_libc=no"
20484 fi
20485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20486 conftest$ac_exeext conftest.$ac_ext
20487 fi
20488 eval ac_res=\$$gt_func_gnugettext_libc
20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20490 printf "%s\n" "$ac_res" >&6; }
20491
20492 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
20493
20494
20495
20496
20497
20498 am_save_CPPFLAGS="$CPPFLAGS"
20499
20500 for element in $INCICONV; do
20501 haveit=
20502 for x in $CPPFLAGS; do
20503
20504 acl_save_prefix="$prefix"
20505 prefix="$acl_final_prefix"
20506 acl_save_exec_prefix="$exec_prefix"
20507 exec_prefix="$acl_final_exec_prefix"
20508 eval x=\"$x\"
20509 exec_prefix="$acl_save_exec_prefix"
20510 prefix="$acl_save_prefix"
20511
20512 if test "X$x" = "X$element"; then
20513 haveit=yes
20514 break
20515 fi
20516 done
20517 if test -z "$haveit"; then
20518 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20519 fi
20520 done
20521
20522
20523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20524 printf %s "checking for iconv... " >&6; }
20525 if test ${am_cv_func_iconv+y}
20526 then :
20527 printf %s "(cached) " >&6
20528 else $as_nop
20529
20530 am_cv_func_iconv="no, consider installing GNU libiconv"
20531 am_cv_lib_iconv=no
20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h. */
20534
20535 #include <stdlib.h>
20536 #include <iconv.h>
20537
20538 int
20539 main (void)
20540 {
20541 iconv_t cd = iconv_open("","");
20542 iconv(cd,NULL,NULL,NULL,NULL);
20543 iconv_close(cd);
20544 ;
20545 return 0;
20546 }
20547 _ACEOF
20548 if ac_fn_c_try_link "$LINENO"
20549 then :
20550 am_cv_func_iconv=yes
20551 fi
20552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20553 conftest$ac_exeext conftest.$ac_ext
20554 if test "$am_cv_func_iconv" != yes; then
20555 am_save_LIBS="$LIBS"
20556 LIBS="$LIBS $LIBICONV"
20557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20558 /* end confdefs.h. */
20559
20560 #include <stdlib.h>
20561 #include <iconv.h>
20562
20563 int
20564 main (void)
20565 {
20566 iconv_t cd = iconv_open("","");
20567 iconv(cd,NULL,NULL,NULL,NULL);
20568 iconv_close(cd);
20569 ;
20570 return 0;
20571 }
20572 _ACEOF
20573 if ac_fn_c_try_link "$LINENO"
20574 then :
20575 am_cv_lib_iconv=yes
20576 am_cv_func_iconv=yes
20577 fi
20578 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20579 conftest$ac_exeext conftest.$ac_ext
20580 LIBS="$am_save_LIBS"
20581 fi
20582
20583 fi
20584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20585 printf "%s\n" "$am_cv_func_iconv" >&6; }
20586 if test "$am_cv_func_iconv" = yes; then
20587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20588 printf %s "checking for working iconv... " >&6; }
20589 if test ${am_cv_func_iconv_works+y}
20590 then :
20591 printf %s "(cached) " >&6
20592 else $as_nop
20593
20594 am_save_LIBS="$LIBS"
20595 if test $am_cv_lib_iconv = yes; then
20596 LIBS="$LIBS $LIBICONV"
20597 fi
20598 am_cv_func_iconv_works=no
20599 for ac_iconv_const in '' 'const'; do
20600 if test "$cross_compiling" = yes
20601 then :
20602 case "$host_os" in
20603 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20604 *) am_cv_func_iconv_works="guessing yes" ;;
20605 esac
20606 else $as_nop
20607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20608 /* end confdefs.h. */
20609
20610 #include <iconv.h>
20611 #include <string.h>
20612
20613 #ifndef ICONV_CONST
20614 # define ICONV_CONST $ac_iconv_const
20615 #endif
20616
20617 int
20618 main (void)
20619 {
20620 int result = 0;
20621 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20622 returns. */
20623 {
20624 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20625 if (cd_utf8_to_88591 != (iconv_t)(-1))
20626 {
20627 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
20628 char buf[10];
20629 ICONV_CONST char *inptr = input;
20630 size_t inbytesleft = strlen (input);
20631 char *outptr = buf;
20632 size_t outbytesleft = sizeof (buf);
20633 size_t res = iconv (cd_utf8_to_88591,
20634 &inptr, &inbytesleft,
20635 &outptr, &outbytesleft);
20636 if (res == 0)
20637 result |= 1;
20638 iconv_close (cd_utf8_to_88591);
20639 }
20640 }
20641 /* Test against Solaris 10 bug: Failures are not distinguishable from
20642 successful returns. */
20643 {
20644 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20645 if (cd_ascii_to_88591 != (iconv_t)(-1))
20646 {
20647 static ICONV_CONST char input[] = "\263";
20648 char buf[10];
20649 ICONV_CONST char *inptr = input;
20650 size_t inbytesleft = strlen (input);
20651 char *outptr = buf;
20652 size_t outbytesleft = sizeof (buf);
20653 size_t res = iconv (cd_ascii_to_88591,
20654 &inptr, &inbytesleft,
20655 &outptr, &outbytesleft);
20656 if (res == 0)
20657 result |= 2;
20658 iconv_close (cd_ascii_to_88591);
20659 }
20660 }
20661 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
20662 {
20663 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20664 if (cd_88591_to_utf8 != (iconv_t)(-1))
20665 {
20666 static ICONV_CONST char input[] = "\304";
20667 static char buf[2] = { (char)0xDE, (char)0xAD };
20668 ICONV_CONST char *inptr = input;
20669 size_t inbytesleft = 1;
20670 char *outptr = buf;
20671 size_t outbytesleft = 1;
20672 size_t res = iconv (cd_88591_to_utf8,
20673 &inptr, &inbytesleft,
20674 &outptr, &outbytesleft);
20675 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20676 result |= 4;
20677 iconv_close (cd_88591_to_utf8);
20678 }
20679 }
20680 #if 0 /* This bug could be worked around by the caller. */
20681 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
20682 {
20683 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20684 if (cd_88591_to_utf8 != (iconv_t)(-1))
20685 {
20686 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20687 char buf[50];
20688 ICONV_CONST char *inptr = input;
20689 size_t inbytesleft = strlen (input);
20690 char *outptr = buf;
20691 size_t outbytesleft = sizeof (buf);
20692 size_t res = iconv (cd_88591_to_utf8,
20693 &inptr, &inbytesleft,
20694 &outptr, &outbytesleft);
20695 if ((int)res > 0)
20696 result |= 8;
20697 iconv_close (cd_88591_to_utf8);
20698 }
20699 }
20700 #endif
20701 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20702 provided. */
20703 {
20704 /* Try standardized names. */
20705 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
20706 /* Try IRIX, OSF/1 names. */
20707 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
20708 /* Try AIX names. */
20709 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
20710 /* Try HP-UX names. */
20711 iconv_t cd4 = iconv_open ("utf8", "eucJP");
20712 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
20713 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
20714 result |= 16;
20715 if (cd1 != (iconv_t)(-1))
20716 iconv_close (cd1);
20717 if (cd2 != (iconv_t)(-1))
20718 iconv_close (cd2);
20719 if (cd3 != (iconv_t)(-1))
20720 iconv_close (cd3);
20721 if (cd4 != (iconv_t)(-1))
20722 iconv_close (cd4);
20723 }
20724 return result;
20725
20726 ;
20727 return 0;
20728 }
20729 _ACEOF
20730 if ac_fn_c_try_run "$LINENO"
20731 then :
20732 am_cv_func_iconv_works=yes
20733 fi
20734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20735 conftest.$ac_objext conftest.beam conftest.$ac_ext
20736 fi
20737
20738 test "$am_cv_func_iconv_works" = no || break
20739 done
20740 LIBS="$am_save_LIBS"
20741
20742 fi
20743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20744 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
20745 case "$am_cv_func_iconv_works" in
20746 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20747 *) am_func_iconv=yes ;;
20748 esac
20749 else
20750 am_func_iconv=no am_cv_lib_iconv=no
20751 fi
20752 if test "$am_func_iconv" = yes; then
20753
20754 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
20755
20756 fi
20757 if test "$am_cv_lib_iconv" = yes; then
20758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20759 printf %s "checking how to link with libiconv... " >&6; }
20760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20761 printf "%s\n" "$LIBICONV" >&6; }
20762 else
20763 CPPFLAGS="$am_save_CPPFLAGS"
20764 LIBICONV=
20765 LTLIBICONV=
20766 fi
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777 use_additional=yes
20778
20779 acl_save_prefix="$prefix"
20780 prefix="$acl_final_prefix"
20781 acl_save_exec_prefix="$exec_prefix"
20782 exec_prefix="$acl_final_exec_prefix"
20783
20784 eval additional_includedir=\"$includedir\"
20785 eval additional_libdir=\"$libdir\"
20786 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
20787 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
20788
20789 exec_prefix="$acl_save_exec_prefix"
20790 prefix="$acl_save_prefix"
20791
20792
20793 # Check whether --with-libintl-prefix was given.
20794 if test ${with_libintl_prefix+y}
20795 then :
20796 withval=$with_libintl_prefix;
20797 if test "X$withval" = "Xno"; then
20798 use_additional=no
20799 else
20800 if test "X$withval" = "X"; then
20801
20802 acl_save_prefix="$prefix"
20803 prefix="$acl_final_prefix"
20804 acl_save_exec_prefix="$exec_prefix"
20805 exec_prefix="$acl_final_exec_prefix"
20806
20807 eval additional_includedir=\"$includedir\"
20808 eval additional_libdir=\"$libdir\"
20809 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
20810 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
20811
20812 exec_prefix="$acl_save_exec_prefix"
20813 prefix="$acl_save_prefix"
20814
20815 else
20816 additional_includedir="$withval/include"
20817 additional_libdir="$withval/$acl_libdirstem"
20818 additional_libdir2="$withval/$acl_libdirstem2"
20819 additional_libdir3="$withval/$acl_libdirstem3"
20820 fi
20821 fi
20822
20823 fi
20824
20825 if test "X$additional_libdir2" = "X$additional_libdir"; then
20826 additional_libdir2=
20827 fi
20828 if test "X$additional_libdir3" = "X$additional_libdir"; then
20829 additional_libdir3=
20830 fi
20831 LIBINTL=
20832 LTLIBINTL=
20833 INCINTL=
20834 LIBINTL_PREFIX=
20835 HAVE_LIBINTL=
20836 rpathdirs=
20837 ltrpathdirs=
20838 names_already_handled=
20839 names_next_round='intl '
20840 while test -n "$names_next_round"; do
20841 names_this_round="$names_next_round"
20842 names_next_round=
20843 for name in $names_this_round; do
20844 already_handled=
20845 for n in $names_already_handled; do
20846 if test "$n" = "$name"; then
20847 already_handled=yes
20848 break
20849 fi
20850 done
20851 if test -z "$already_handled"; then
20852 names_already_handled="$names_already_handled $name"
20853 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20854 eval value=\"\$HAVE_LIB$uppername\"
20855 if test -n "$value"; then
20856 if test "$value" = yes; then
20857 eval value=\"\$LIB$uppername\"
20858 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20859 eval value=\"\$LTLIB$uppername\"
20860 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20861 else
20862 :
20863 fi
20864 else
20865 found_dir=
20866 found_la=
20867 found_so=
20868 found_a=
20869 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20870 if test -n "$acl_shlibext"; then
20871 shrext=".$acl_shlibext" # typically: shrext=.so
20872 else
20873 shrext=
20874 fi
20875 if test $use_additional = yes; then
20876 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
20877 if test "X$found_dir" = "X"; then
20878 eval dir=\$$additional_libdir_variable
20879 if test -n "$dir"; then
20880 if test -n "$acl_shlibext"; then
20881 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
20882 found_dir="$dir"
20883 found_so="$dir/$libname$shrext"
20884 else
20885 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20886 ver=`(cd "$dir" && \
20887 for f in "$libname$shrext".*; do echo "$f"; done \
20888 | sed -e "s,^$libname$shrext\\\\.,," \
20889 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20890 | sed 1q ) 2>/dev/null`
20891 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
20892 found_dir="$dir"
20893 found_so="$dir/$libname$shrext.$ver"
20894 fi
20895 else
20896 eval library_names=\"$acl_library_names_spec\"
20897 for f in $library_names; do
20898 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
20899 found_dir="$dir"
20900 found_so="$dir/$f"
20901 break
20902 fi
20903 done
20904 fi
20905 fi
20906 fi
20907 if test "X$found_dir" = "X"; then
20908 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
20909 found_dir="$dir"
20910 found_a="$dir/$libname.$acl_libext"
20911 fi
20912 fi
20913 if test "X$found_dir" != "X"; then
20914 if test -f "$dir/$libname.la"; then
20915 found_la="$dir/$libname.la"
20916 fi
20917 fi
20918 fi
20919 fi
20920 done
20921 fi
20922 if test "X$found_dir" = "X"; then
20923 for x in $LDFLAGS $LTLIBINTL; do
20924
20925 acl_save_prefix="$prefix"
20926 prefix="$acl_final_prefix"
20927 acl_save_exec_prefix="$exec_prefix"
20928 exec_prefix="$acl_final_exec_prefix"
20929 eval x=\"$x\"
20930 exec_prefix="$acl_save_exec_prefix"
20931 prefix="$acl_save_prefix"
20932
20933 case "$x" in
20934 -L*)
20935 dir=`echo "X$x" | sed -e 's/^X-L//'`
20936 if test -n "$acl_shlibext"; then
20937 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
20938 found_dir="$dir"
20939 found_so="$dir/$libname$shrext"
20940 else
20941 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20942 ver=`(cd "$dir" && \
20943 for f in "$libname$shrext".*; do echo "$f"; done \
20944 | sed -e "s,^$libname$shrext\\\\.,," \
20945 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20946 | sed 1q ) 2>/dev/null`
20947 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
20948 found_dir="$dir"
20949 found_so="$dir/$libname$shrext.$ver"
20950 fi
20951 else
20952 eval library_names=\"$acl_library_names_spec\"
20953 for f in $library_names; do
20954 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
20955 found_dir="$dir"
20956 found_so="$dir/$f"
20957 break
20958 fi
20959 done
20960 fi
20961 fi
20962 fi
20963 if test "X$found_dir" = "X"; then
20964 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
20965 found_dir="$dir"
20966 found_a="$dir/$libname.$acl_libext"
20967 fi
20968 fi
20969 if test "X$found_dir" != "X"; then
20970 if test -f "$dir/$libname.la"; then
20971 found_la="$dir/$libname.la"
20972 fi
20973 fi
20974 ;;
20975 esac
20976 if test "X$found_dir" != "X"; then
20977 break
20978 fi
20979 done
20980 fi
20981 if test "X$found_dir" != "X"; then
20982 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20983 if test "X$found_so" != "X"; then
20984 if test "$enable_rpath" = no \
20985 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20986 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
20987 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
20988 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20989 else
20990 haveit=
20991 for x in $ltrpathdirs; do
20992 if test "X$x" = "X$found_dir"; then
20993 haveit=yes
20994 break
20995 fi
20996 done
20997 if test -z "$haveit"; then
20998 ltrpathdirs="$ltrpathdirs $found_dir"
20999 fi
21000 if test "$acl_hardcode_direct" = yes; then
21001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21002 else
21003 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21004 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21005 haveit=
21006 for x in $rpathdirs; do
21007 if test "X$x" = "X$found_dir"; then
21008 haveit=yes
21009 break
21010 fi
21011 done
21012 if test -z "$haveit"; then
21013 rpathdirs="$rpathdirs $found_dir"
21014 fi
21015 else
21016 haveit=
21017 for x in $LDFLAGS $LIBINTL; do
21018
21019 acl_save_prefix="$prefix"
21020 prefix="$acl_final_prefix"
21021 acl_save_exec_prefix="$exec_prefix"
21022 exec_prefix="$acl_final_exec_prefix"
21023 eval x=\"$x\"
21024 exec_prefix="$acl_save_exec_prefix"
21025 prefix="$acl_save_prefix"
21026
21027 if test "X$x" = "X-L$found_dir"; then
21028 haveit=yes
21029 break
21030 fi
21031 done
21032 if test -z "$haveit"; then
21033 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21034 fi
21035 if test "$acl_hardcode_minus_L" != no; then
21036 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21037 else
21038 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21039 fi
21040 fi
21041 fi
21042 fi
21043 else
21044 if test "X$found_a" != "X"; then
21045 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21046 else
21047 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21048 fi
21049 fi
21050 additional_includedir=
21051 case "$found_dir" in
21052 */$acl_libdirstem | */$acl_libdirstem/)
21053 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21054 if test "$name" = 'intl'; then
21055 LIBINTL_PREFIX="$basedir"
21056 fi
21057 additional_includedir="$basedir/include"
21058 ;;
21059 */$acl_libdirstem2 | */$acl_libdirstem2/)
21060 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
21061 if test "$name" = 'intl'; then
21062 LIBINTL_PREFIX="$basedir"
21063 fi
21064 additional_includedir="$basedir/include"
21065 ;;
21066 */$acl_libdirstem3 | */$acl_libdirstem3/)
21067 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
21068 if test "$name" = 'intl'; then
21069 LIBINTL_PREFIX="$basedir"
21070 fi
21071 additional_includedir="$basedir/include"
21072 ;;
21073 esac
21074 if test "X$additional_includedir" != "X"; then
21075 if test "X$additional_includedir" != "X/usr/include"; then
21076 haveit=
21077 if test "X$additional_includedir" = "X/usr/local/include"; then
21078 if test -n "$GCC"; then
21079 case $host_os in
21080 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21081 esac
21082 fi
21083 fi
21084 if test -z "$haveit"; then
21085 for x in $CPPFLAGS $INCINTL; do
21086
21087 acl_save_prefix="$prefix"
21088 prefix="$acl_final_prefix"
21089 acl_save_exec_prefix="$exec_prefix"
21090 exec_prefix="$acl_final_exec_prefix"
21091 eval x=\"$x\"
21092 exec_prefix="$acl_save_exec_prefix"
21093 prefix="$acl_save_prefix"
21094
21095 if test "X$x" = "X-I$additional_includedir"; then
21096 haveit=yes
21097 break
21098 fi
21099 done
21100 if test -z "$haveit"; then
21101 if test -d "$additional_includedir"; then
21102 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21103 fi
21104 fi
21105 fi
21106 fi
21107 fi
21108 if test -n "$found_la"; then
21109 save_libdir="$libdir"
21110 case "$found_la" in
21111 */* | *\\*) . "$found_la" ;;
21112 *) . "./$found_la" ;;
21113 esac
21114 libdir="$save_libdir"
21115 for dep in $dependency_libs; do
21116 case "$dep" in
21117 -L*)
21118 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21119 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
21120 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
21121 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
21122 haveit=
21123 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
21124 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
21125 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
21126 if test -n "$GCC"; then
21127 case $host_os in
21128 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21129 esac
21130 fi
21131 fi
21132 if test -z "$haveit"; then
21133 haveit=
21134 for x in $LDFLAGS $LIBINTL; do
21135
21136 acl_save_prefix="$prefix"
21137 prefix="$acl_final_prefix"
21138 acl_save_exec_prefix="$exec_prefix"
21139 exec_prefix="$acl_final_exec_prefix"
21140 eval x=\"$x\"
21141 exec_prefix="$acl_save_exec_prefix"
21142 prefix="$acl_save_prefix"
21143
21144 if test "X$x" = "X-L$dependency_libdir"; then
21145 haveit=yes
21146 break
21147 fi
21148 done
21149 if test -z "$haveit"; then
21150 if test -d "$dependency_libdir"; then
21151 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
21152 fi
21153 fi
21154 haveit=
21155 for x in $LDFLAGS $LTLIBINTL; do
21156
21157 acl_save_prefix="$prefix"
21158 prefix="$acl_final_prefix"
21159 acl_save_exec_prefix="$exec_prefix"
21160 exec_prefix="$acl_final_exec_prefix"
21161 eval x=\"$x\"
21162 exec_prefix="$acl_save_exec_prefix"
21163 prefix="$acl_save_prefix"
21164
21165 if test "X$x" = "X-L$dependency_libdir"; then
21166 haveit=yes
21167 break
21168 fi
21169 done
21170 if test -z "$haveit"; then
21171 if test -d "$dependency_libdir"; then
21172 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
21173 fi
21174 fi
21175 fi
21176 fi
21177 ;;
21178 -R*)
21179 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21180 if test "$enable_rpath" != no; then
21181 haveit=
21182 for x in $rpathdirs; do
21183 if test "X$x" = "X$dir"; then
21184 haveit=yes
21185 break
21186 fi
21187 done
21188 if test -z "$haveit"; then
21189 rpathdirs="$rpathdirs $dir"
21190 fi
21191 haveit=
21192 for x in $ltrpathdirs; do
21193 if test "X$x" = "X$dir"; then
21194 haveit=yes
21195 break
21196 fi
21197 done
21198 if test -z "$haveit"; then
21199 ltrpathdirs="$ltrpathdirs $dir"
21200 fi
21201 fi
21202 ;;
21203 -l*)
21204 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21205 ;;
21206 *.la)
21207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21208 ;;
21209 *)
21210 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21212 ;;
21213 esac
21214 done
21215 fi
21216 else
21217 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21218 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21219 fi
21220 fi
21221 fi
21222 done
21223 done
21224 if test "X$rpathdirs" != "X"; then
21225 if test -n "$acl_hardcode_libdir_separator"; then
21226 alldirs=
21227 for found_dir in $rpathdirs; do
21228 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21229 done
21230 acl_save_libdir="$libdir"
21231 libdir="$alldirs"
21232 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21233 libdir="$acl_save_libdir"
21234 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21235 else
21236 for found_dir in $rpathdirs; do
21237 acl_save_libdir="$libdir"
21238 libdir="$found_dir"
21239 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21240 libdir="$acl_save_libdir"
21241 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21242 done
21243 fi
21244 fi
21245 if test "X$ltrpathdirs" != "X"; then
21246 for found_dir in $ltrpathdirs; do
21247 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21248 done
21249 fi
21250
21251
21252
21253
21254
21255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21256 printf %s "checking for GNU gettext in libintl... " >&6; }
21257 if eval test \${$gt_func_gnugettext_libintl+y}
21258 then :
21259 printf %s "(cached) " >&6
21260 else $as_nop
21261 gt_save_CPPFLAGS="$CPPFLAGS"
21262 CPPFLAGS="$CPPFLAGS $INCINTL"
21263 gt_save_LIBS="$LIBS"
21264 LIBS="$LIBS $LIBINTL"
21265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h. */
21267
21268 #include <libintl.h>
21269 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
21270 extern int _nl_msg_cat_cntr;
21271 extern
21272 #ifdef __cplusplus
21273 "C"
21274 #endif
21275 const char *_nl_expand_alias (const char *);
21276 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
21277 #else
21278 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
21279 #endif
21280 $gt_revision_test_code
21281
21282 int
21283 main (void)
21284 {
21285
21286 bindtextdomain ("", "");
21287 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
21288
21289 ;
21290 return 0;
21291 }
21292 _ACEOF
21293 if ac_fn_c_try_link "$LINENO"
21294 then :
21295 eval "$gt_func_gnugettext_libintl=yes"
21296 else $as_nop
21297 eval "$gt_func_gnugettext_libintl=no"
21298 fi
21299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21300 conftest$ac_exeext conftest.$ac_ext
21301 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
21302 LIBS="$LIBS $LIBICONV"
21303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21304 /* end confdefs.h. */
21305
21306 #include <libintl.h>
21307 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
21308 extern int _nl_msg_cat_cntr;
21309 extern
21310 #ifdef __cplusplus
21311 "C"
21312 #endif
21313 const char *_nl_expand_alias (const char *);
21314 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
21315 #else
21316 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
21317 #endif
21318 $gt_revision_test_code
21319
21320 int
21321 main (void)
21322 {
21323
21324 bindtextdomain ("", "");
21325 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
21326
21327 ;
21328 return 0;
21329 }
21330 _ACEOF
21331 if ac_fn_c_try_link "$LINENO"
21332 then :
21333 LIBINTL="$LIBINTL $LIBICONV"
21334 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21335 eval "$gt_func_gnugettext_libintl=yes"
21336
21337 fi
21338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21339 conftest$ac_exeext conftest.$ac_ext
21340 fi
21341 CPPFLAGS="$gt_save_CPPFLAGS"
21342 LIBS="$gt_save_LIBS"
21343 fi
21344 eval ac_res=\$$gt_func_gnugettext_libintl
21345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21346 printf "%s\n" "$ac_res" >&6; }
21347 fi
21348
21349 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
21350 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
21351 && test "$PACKAGE" != gettext-runtime \
21352 && test "$PACKAGE" != gettext-tools; }; then
21353 gt_use_preinstalled_gnugettext=yes
21354 else
21355 LIBINTL=
21356 LTLIBINTL=
21357 INCINTL=
21358 fi
21359
21360
21361
21362 if test -n "$INTL_MACOSX_LIBS"; then
21363 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21364 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21365 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21366 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21367 fi
21368 fi
21369
21370 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21371 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21372
21373 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
21374
21375 else
21376 USE_NLS=no
21377 fi
21378 fi
21379
21380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21381 printf %s "checking whether to use NLS... " >&6; }
21382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21383 printf "%s\n" "$USE_NLS" >&6; }
21384 if test "$USE_NLS" = "yes"; then
21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21386 printf %s "checking where the gettext function comes from... " >&6; }
21387 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21388 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
21389 gt_source="external libintl"
21390 else
21391 gt_source="libc"
21392 fi
21393 else
21394 gt_source="included intl directory"
21395 fi
21396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21397 printf "%s\n" "$gt_source" >&6; }
21398 fi
21399
21400 if test "$USE_NLS" = "yes"; then
21401
21402 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21403 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
21404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21405 printf %s "checking how to link with libintl... " >&6; }
21406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21407 printf "%s\n" "$LIBINTL" >&6; }
21408
21409 for element in $INCINTL; do
21410 haveit=
21411 for x in $CPPFLAGS; do
21412
21413 acl_save_prefix="$prefix"
21414 prefix="$acl_final_prefix"
21415 acl_save_exec_prefix="$exec_prefix"
21416 exec_prefix="$acl_final_exec_prefix"
21417 eval x=\"$x\"
21418 exec_prefix="$acl_save_exec_prefix"
21419 prefix="$acl_save_prefix"
21420
21421 if test "X$x" = "X$element"; then
21422 haveit=yes
21423 break
21424 fi
21425 done
21426 if test -z "$haveit"; then
21427 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21428 fi
21429 done
21430
21431 fi
21432
21433
21434 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
21435
21436
21437 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
21438
21439 fi
21440
21441 POSUB=po
21442 fi
21443
21444
21445
21446 INTLLIBS="$LIBINTL"
21447
21448
21449
21450
21451
21452
21453
21454
21455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21456 printf %s "checking for an ANSI C-conforming const... " >&6; }
21457 if test ${ac_cv_c_const+y}
21458 then :
21459 printf %s "(cached) " >&6
21460 else $as_nop
21461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21462 /* end confdefs.h. */
21463
21464 int
21465 main (void)
21466 {
21467
21468 #ifndef __cplusplus
21469 /* Ultrix mips cc rejects this sort of thing. */
21470 typedef int charset[2];
21471 const charset cs = { 0, 0 };
21472 /* SunOS 4.1.1 cc rejects this. */
21473 char const *const *pcpcc;
21474 char **ppc;
21475 /* NEC SVR4.0.2 mips cc rejects this. */
21476 struct point {int x, y;};
21477 static struct point const zero = {0,0};
21478 /* IBM XL C 1.02.0.0 rejects this.
21479 It does not let you subtract one const X* pointer from another in
21480 an arm of an if-expression whose if-part is not a constant
21481 expression */
21482 const char *g = "string";
21483 pcpcc = &g + (g ? g-g : 0);
21484 /* HPUX 7.0 cc rejects these. */
21485 ++pcpcc;
21486 ppc = (char**) pcpcc;
21487 pcpcc = (char const *const *) ppc;
21488 { /* SCO 3.2v4 cc rejects this sort of thing. */
21489 char tx;
21490 char *t = &tx;
21491 char const *s = 0 ? (char *) 0 : (char const *) 0;
21492
21493 *t++ = 0;
21494 if (s) return 0;
21495 }
21496 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21497 int x[] = {25, 17};
21498 const int *foo = &x[0];
21499 ++foo;
21500 }
21501 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21502 typedef const int *iptr;
21503 iptr p = 0;
21504 ++p;
21505 }
21506 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
21507 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21508 struct s { int j; const int *ap[3]; } bx;
21509 struct s *b = &bx; b->j = 5;
21510 }
21511 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21512 const int foo = 10;
21513 if (!foo) return 0;
21514 }
21515 return !cs[0] && !zero.x;
21516 #endif
21517
21518 ;
21519 return 0;
21520 }
21521 _ACEOF
21522 if ac_fn_c_try_compile "$LINENO"
21523 then :
21524 ac_cv_c_const=yes
21525 else $as_nop
21526 ac_cv_c_const=no
21527 fi
21528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21529 fi
21530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21531 printf "%s\n" "$ac_cv_c_const" >&6; }
21532 if test $ac_cv_c_const = no; then
21533
21534 printf "%s\n" "#define const /**/" >>confdefs.h
21535
21536 fi
21537
21538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21539 printf %s "checking for working volatile... " >&6; }
21540 if test ${ac_cv_c_volatile+y}
21541 then :
21542 printf %s "(cached) " >&6
21543 else $as_nop
21544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h. */
21546
21547 int
21548 main (void)
21549 {
21550
21551 volatile int x;
21552 int * volatile y = (int *) 0;
21553 return !x && !y;
21554 ;
21555 return 0;
21556 }
21557 _ACEOF
21558 if ac_fn_c_try_compile "$LINENO"
21559 then :
21560 ac_cv_c_volatile=yes
21561 else $as_nop
21562 ac_cv_c_volatile=no
21563 fi
21564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21565 fi
21566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21567 printf "%s\n" "$ac_cv_c_volatile" >&6; }
21568 if test $ac_cv_c_volatile = no; then
21569
21570 printf "%s\n" "#define volatile /**/" >>confdefs.h
21571
21572 fi
21573
21574
21575 # Check whether --enable-largefile was given.
21576 if test ${enable_largefile+y}
21577 then :
21578 enableval=$enable_largefile;
21579 fi
21580
21581 if test "$enable_largefile" != no; then
21582
21583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
21584 printf %s "checking for special C compiler options needed for large files... " >&6; }
21585 if test ${ac_cv_sys_largefile_CC+y}
21586 then :
21587 printf %s "(cached) " >&6
21588 else $as_nop
21589 ac_cv_sys_largefile_CC=no
21590 if test "$GCC" != yes; then
21591 ac_save_CC=$CC
21592 while :; do
21593 # IRIX 6.2 and later do not support large files by default,
21594 # so use the C compiler's -n32 option if that helps.
21595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21596 /* end confdefs.h. */
21597 #include <sys/types.h>
21598 /* Check that off_t can represent 2**63 - 1 correctly.
21599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21600 since some C++ compilers masquerading as C compilers
21601 incorrectly reject 9223372036854775807. */
21602 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
21603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21604 && LARGE_OFF_T % 2147483647 == 1)
21605 ? 1 : -1];
21606 int
21607 main (void)
21608 {
21609
21610 ;
21611 return 0;
21612 }
21613 _ACEOF
21614 if ac_fn_c_try_compile "$LINENO"
21615 then :
21616 break
21617 fi
21618 rm -f core conftest.err conftest.$ac_objext conftest.beam
21619 CC="$CC -n32"
21620 if ac_fn_c_try_compile "$LINENO"
21621 then :
21622 ac_cv_sys_largefile_CC=' -n32'; break
21623 fi
21624 rm -f core conftest.err conftest.$ac_objext conftest.beam
21625 break
21626 done
21627 CC=$ac_save_CC
21628 rm -f conftest.$ac_ext
21629 fi
21630 fi
21631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
21632 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
21633 if test "$ac_cv_sys_largefile_CC" != no; then
21634 CC=$CC$ac_cv_sys_largefile_CC
21635 fi
21636
21637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21638 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
21639 if test ${ac_cv_sys_file_offset_bits+y}
21640 then :
21641 printf %s "(cached) " >&6
21642 else $as_nop
21643 while :; do
21644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21645 /* end confdefs.h. */
21646 #include <sys/types.h>
21647 /* Check that off_t can represent 2**63 - 1 correctly.
21648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21649 since some C++ compilers masquerading as C compilers
21650 incorrectly reject 9223372036854775807. */
21651 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
21652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21653 && LARGE_OFF_T % 2147483647 == 1)
21654 ? 1 : -1];
21655 int
21656 main (void)
21657 {
21658
21659 ;
21660 return 0;
21661 }
21662 _ACEOF
21663 if ac_fn_c_try_compile "$LINENO"
21664 then :
21665 ac_cv_sys_file_offset_bits=no; break
21666 fi
21667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21669 /* end confdefs.h. */
21670 #define _FILE_OFFSET_BITS 64
21671 #include <sys/types.h>
21672 /* Check that off_t can represent 2**63 - 1 correctly.
21673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21674 since some C++ compilers masquerading as C compilers
21675 incorrectly reject 9223372036854775807. */
21676 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
21677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21678 && LARGE_OFF_T % 2147483647 == 1)
21679 ? 1 : -1];
21680 int
21681 main (void)
21682 {
21683
21684 ;
21685 return 0;
21686 }
21687 _ACEOF
21688 if ac_fn_c_try_compile "$LINENO"
21689 then :
21690 ac_cv_sys_file_offset_bits=64; break
21691 fi
21692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21693 ac_cv_sys_file_offset_bits=unknown
21694 break
21695 done
21696 fi
21697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
21698 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
21699 case $ac_cv_sys_file_offset_bits in #(
21700 no | unknown) ;;
21701 *)
21702 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
21703 ;;
21704 esac
21705 rm -rf conftest*
21706 if test $ac_cv_sys_file_offset_bits = unknown; then
21707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
21708 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
21709 if test ${ac_cv_sys_large_files+y}
21710 then :
21711 printf %s "(cached) " >&6
21712 else $as_nop
21713 while :; do
21714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21715 /* end confdefs.h. */
21716 #include <sys/types.h>
21717 /* Check that off_t can represent 2**63 - 1 correctly.
21718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21719 since some C++ compilers masquerading as C compilers
21720 incorrectly reject 9223372036854775807. */
21721 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
21722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21723 && LARGE_OFF_T % 2147483647 == 1)
21724 ? 1 : -1];
21725 int
21726 main (void)
21727 {
21728
21729 ;
21730 return 0;
21731 }
21732 _ACEOF
21733 if ac_fn_c_try_compile "$LINENO"
21734 then :
21735 ac_cv_sys_large_files=no; break
21736 fi
21737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21739 /* end confdefs.h. */
21740 #define _LARGE_FILES 1
21741 #include <sys/types.h>
21742 /* Check that off_t can represent 2**63 - 1 correctly.
21743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21744 since some C++ compilers masquerading as C compilers
21745 incorrectly reject 9223372036854775807. */
21746 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
21747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21748 && LARGE_OFF_T % 2147483647 == 1)
21749 ? 1 : -1];
21750 int
21751 main (void)
21752 {
21753
21754 ;
21755 return 0;
21756 }
21757 _ACEOF
21758 if ac_fn_c_try_compile "$LINENO"
21759 then :
21760 ac_cv_sys_large_files=1; break
21761 fi
21762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21763 ac_cv_sys_large_files=unknown
21764 break
21765 done
21766 fi
21767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
21768 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
21769 case $ac_cv_sys_large_files in #(
21770 no | unknown) ;;
21771 *)
21772 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
21773 ;;
21774 esac
21775 rm -rf conftest*
21776 fi
21777 fi
21778
21779
21780
21781
21782 # Check whether --enable-shared-libs was given.
21783 if test ${enable_shared_libs+y}
21784 then :
21785 enableval=$enable_shared_libs; ac_cv_enable_shared_libs=$enableval
21786 else $as_nop
21787 ac_cv_enable_shared_libs="yes"
21788 fi
21789
21790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable disable shared library support" >&5
21791 printf %s "checking whether to disable disable shared library support... " >&6; }
21792 if test ${ac_cv_enable_shared_libs+y}
21793 then :
21794 printf %s "(cached) " >&6
21795 else $as_nop
21796 ac_cv_enable_shared_libs="yes"
21797 fi
21798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_shared_libs" >&5
21799 printf "%s\n" "$ac_cv_enable_shared_libs" >&6; }
21800
21801
21802
21803
21804 # Check whether --enable-winapi was given.
21805 if test ${enable_winapi+y}
21806 then :
21807 enableval=$enable_winapi; ac_cv_enable_winapi=$enableval
21808 else $as_nop
21809 ac_cv_enable_winapi=auto-detect
21810 fi
21811
21812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable enable WINAPI support for cross-compilation" >&5
21813 printf %s "checking whether to enable enable WINAPI support for cross-compilation... " >&6; }
21814 if test ${ac_cv_enable_winapi+y}
21815 then :
21816 printf %s "(cached) " >&6
21817 else $as_nop
21818 ac_cv_enable_winapi=auto-detect
21819 fi
21820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_winapi" >&5
21821 printf "%s\n" "$ac_cv_enable_winapi" >&6; }
21822
21823 if test "x$ac_cv_enable_winapi" = xauto-detect
21824 then :
21825 ac_common_check_winapi_target_string="$target"
21826
21827 if test "x$ac_common_check_winapi_target_string" = x
21828 then :
21829 ac_common_check_winapi_target_string="$host"
21830 fi
21831
21832 case $ac_common_check_winapi_target_string in #(
21833 *mingw*) :
21834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected MinGW enabling WINAPI support for cross-compilation" >&5
21835 printf "%s\n" "$as_me: detected MinGW enabling WINAPI support for cross-compilation" >&6;}
21836 ac_cv_enable_winapi=yes ;; #(
21837 *msys*) :
21838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected MSYS enabling WINAPI support for cross-compilation" >&5
21839 printf "%s\n" "$as_me: detected MSYS enabling WINAPI support for cross-compilation" >&6;}
21840 ac_cv_enable_winapi=yes ;; #(
21841 *) :
21842 ac_cv_enable_winapi=no ;; #(
21843 *) :
21844 ;;
21845 esac
21846
21847 fi
21848
21849
21850 if test "x$ac_cv_enable_winapi" = xyes
21851 then :
21852 ac_cv_enable_wide_character_type=yes
21853 fi
21854
21855 if test "x$ac_cv_enable_wide_character_type" = xyes
21856 then :
21857
21858 printf "%s\n" "#define HAVE_WIDE_CHARACTER_TYPE 1" >>confdefs.h
21859
21860 HAVE_WIDE_CHARACTER_TYPE=1
21861
21862 else $as_nop
21863 HAVE_WIDE_CHARACTER_TYPE=0
21864
21865
21866 fi
21867
21868 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21869 if test "x$ac_cv_header_sys_types_h" = xyes
21870 then :
21871 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
21872
21873 fi
21874 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21875 if test "x$ac_cv_header_inttypes_h" = xyes
21876 then :
21877 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
21878
21879 fi
21880 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21881 if test "x$ac_cv_header_stdint_h" = xyes
21882 then :
21883 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
21884
21885 fi
21886 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
21887 if test "x$ac_cv_header_wchar_h" = xyes
21888 then :
21889 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
21890
21891 fi
21892
21893
21894 if test "x$ac_cv_header_sys_types_h" = xyes
21895 then :
21896 HAVE_SYS_TYPES_H=1
21897
21898 else $as_nop
21899 HAVE_SYS_TYPES_H=0
21900
21901
21902 fi
21903
21904 if test "x$ac_cv_header_inttypes_h" = xyes
21905 then :
21906 HAVE_INTTYPES_H=1
21907
21908 else $as_nop
21909 HAVE_INTTYPES_H=0
21910
21911
21912 fi
21913
21914 if test "x$ac_cv_header_stdint_h" = xyes
21915 then :
21916 HAVE_STDINT_H=1
21917
21918 else $as_nop
21919 HAVE_STDINT_H=0
21920
21921
21922 fi
21923
21924 if test "x$ac_cv_header_wchar_h" = xyes
21925 then :
21926 HAVE_WCHAR_H=1
21927
21928 else $as_nop
21929 HAVE_WCHAR_H=0
21930
21931
21932 fi
21933
21934 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21935 if test "x$ac_cv_type_mode_t" = xyes
21936 then :
21937
21938 else $as_nop
21939
21940 printf "%s\n" "#define mode_t int" >>confdefs.h
21941
21942 fi
21943
21944 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21945 if test "x$ac_cv_type_off_t" = xyes
21946 then :
21947
21948 else $as_nop
21949
21950 printf "%s\n" "#define off_t long int" >>confdefs.h
21951
21952 fi
21953
21954 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21955 if test "x$ac_cv_type_size_t" = xyes
21956 then :
21957
21958 else $as_nop
21959
21960 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
21961
21962 fi
21963
21964
21965 ac_fn_c_check_type "$LINENO" "size32_t" "ac_cv_type_size32_t" "$ac_includes_default"
21966 if test "x$ac_cv_type_size32_t" = xyes
21967 then :
21968 HAVE_SIZE32_T=1
21969
21970 else $as_nop
21971 HAVE_SIZE32_T=0
21972
21973
21974 fi
21975
21976
21977 ac_fn_c_check_type "$LINENO" "ssize32_t" "ac_cv_type_ssize32_t" "$ac_includes_default"
21978 if test "x$ac_cv_type_ssize32_t" = xyes
21979 then :
21980 HAVE_SSIZE32_T=1
21981
21982 else $as_nop
21983 HAVE_SSIZE32_T=0
21984
21985
21986 fi
21987
21988
21989 ac_fn_c_check_type "$LINENO" "size64_t" "ac_cv_type_size64_t" "$ac_includes_default"
21990 if test "x$ac_cv_type_size64_t" = xyes
21991 then :
21992 HAVE_SIZE64_T=1
21993
21994 else $as_nop
21995 HAVE_SIZE64_T=0
21996
21997
21998 fi
21999
22000
22001 ac_fn_c_check_type "$LINENO" "ssize64_t" "ac_cv_type_ssize64_t" "$ac_includes_default"
22002 if test "x$ac_cv_type_ssize64_t" = xyes
22003 then :
22004 HAVE_SSIZE64_T=1
22005
22006 else $as_nop
22007 HAVE_SSIZE64_T=0
22008
22009
22010 fi
22011
22012
22013 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
22014 if test "x$ac_cv_type_off64_t" = xyes
22015 then :
22016 HAVE_OFF64_T=1
22017
22018 else $as_nop
22019 HAVE_OFF64_T=0
22020
22021
22022 fi
22023
22024
22025 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22026 if test "x$ac_cv_type_ssize_t" = xyes
22027 then :
22028
22029 fi
22030
22031 ac_fn_c_check_type "$LINENO" "u64" "ac_cv_type_u64" "$ac_includes_default"
22032 if test "x$ac_cv_type_u64" = xyes
22033 then :
22034
22035 fi
22036
22037
22038 # The cast to long int works around a bug in the HP C Compiler
22039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22041 # This bug is HP SR number 8606223364.
22042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22043 printf %s "checking size of int... " >&6; }
22044 if test ${ac_cv_sizeof_int+y}
22045 then :
22046 printf %s "(cached) " >&6
22047 else $as_nop
22048 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
22049 then :
22050
22051 else $as_nop
22052 if test "$ac_cv_type_int" = yes; then
22053 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22054 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22055 as_fn_error 77 "cannot compute sizeof (int)
22056 See \`config.log' for more details" "$LINENO" 5; }
22057 else
22058 ac_cv_sizeof_int=0
22059 fi
22060 fi
22061
22062 fi
22063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22064 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
22065
22066
22067
22068 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
22069
22070
22071 # The cast to long int works around a bug in the HP C Compiler
22072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22074 # This bug is HP SR number 8606223364.
22075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22076 printf %s "checking size of long... " >&6; }
22077 if test ${ac_cv_sizeof_long+y}
22078 then :
22079 printf %s "(cached) " >&6
22080 else $as_nop
22081 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
22082 then :
22083
22084 else $as_nop
22085 if test "$ac_cv_type_long" = yes; then
22086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22087 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22088 as_fn_error 77 "cannot compute sizeof (long)
22089 See \`config.log' for more details" "$LINENO" 5; }
22090 else
22091 ac_cv_sizeof_long=0
22092 fi
22093 fi
22094
22095 fi
22096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22097 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
22098
22099
22100
22101 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
22102
22103
22104 # The cast to long int works around a bug in the HP C Compiler
22105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22107 # This bug is HP SR number 8606223364.
22108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
22109 printf %s "checking size of off_t... " >&6; }
22110 if test ${ac_cv_sizeof_off_t+y}
22111 then :
22112 printf %s "(cached) " >&6
22113 else $as_nop
22114 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
22115 then :
22116
22117 else $as_nop
22118 if test "$ac_cv_type_off_t" = yes; then
22119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22120 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22121 as_fn_error 77 "cannot compute sizeof (off_t)
22122 See \`config.log' for more details" "$LINENO" 5; }
22123 else
22124 ac_cv_sizeof_off_t=0
22125 fi
22126 fi
22127
22128 fi
22129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
22130 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
22131
22132
22133
22134 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
22135
22136
22137 # The cast to long int works around a bug in the HP C Compiler
22138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22140 # This bug is HP SR number 8606223364.
22141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22142 printf %s "checking size of size_t... " >&6; }
22143 if test ${ac_cv_sizeof_size_t+y}
22144 then :
22145 printf %s "(cached) " >&6
22146 else $as_nop
22147 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
22148 then :
22149
22150 else $as_nop
22151 if test "$ac_cv_type_size_t" = yes; then
22152 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22153 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22154 as_fn_error 77 "cannot compute sizeof (size_t)
22155 See \`config.log' for more details" "$LINENO" 5; }
22156 else
22157 ac_cv_sizeof_size_t=0
22158 fi
22159 fi
22160
22161 fi
22162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22163 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
22164
22165
22166
22167 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
22168
22169
22170
22171 if test "x$ac_cv_header_wchar_h" = xyes
22172 then :
22173 # The cast to long int works around a bug in the HP C Compiler
22174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22176 # This bug is HP SR number 8606223364.
22177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
22178 printf %s "checking size of wchar_t... " >&6; }
22179 if test ${ac_cv_sizeof_wchar_t+y}
22180 then :
22181 printf %s "(cached) " >&6
22182 else $as_nop
22183 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"
22184 then :
22185
22186 else $as_nop
22187 if test "$ac_cv_type_wchar_t" = yes; then
22188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22189 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22190 as_fn_error 77 "cannot compute sizeof (wchar_t)
22191 See \`config.log' for more details" "$LINENO" 5; }
22192 else
22193 ac_cv_sizeof_wchar_t=0
22194 fi
22195 fi
22196
22197 fi
22198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
22199 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
22200
22201
22202
22203 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
22204
22205
22206 fi
22207
22208
22209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
22210 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
22211 if test ${ac_cv_c_undeclared_builtin_options+y}
22212 then :
22213 printf %s "(cached) " >&6
22214 else $as_nop
22215 ac_save_CFLAGS=$CFLAGS
22216 ac_cv_c_undeclared_builtin_options='cannot detect'
22217 for ac_arg in '' -fno-builtin; do
22218 CFLAGS="$ac_save_CFLAGS $ac_arg"
22219 # This test program should *not* compile successfully.
22220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22221 /* end confdefs.h. */
22222
22223 int
22224 main (void)
22225 {
22226 (void) strchr;
22227 ;
22228 return 0;
22229 }
22230 _ACEOF
22231 if ac_fn_c_try_compile "$LINENO"
22232 then :
22233
22234 else $as_nop
22235 # This test program should compile successfully.
22236 # No library function is consistently available on
22237 # freestanding implementations, so test against a dummy
22238 # declaration. Include always-available headers on the
22239 # off chance that they somehow elicit warnings.
22240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22241 /* end confdefs.h. */
22242 #include <float.h>
22243 #include <limits.h>
22244 #include <stdarg.h>
22245 #include <stddef.h>
22246 extern void ac_decl (int, char *);
22247
22248 int
22249 main (void)
22250 {
22251 (void) ac_decl (0, (char *) 0);
22252 (void) ac_decl;
22253
22254 ;
22255 return 0;
22256 }
22257 _ACEOF
22258 if ac_fn_c_try_compile "$LINENO"
22259 then :
22260 if test x"$ac_arg" = x
22261 then :
22262 ac_cv_c_undeclared_builtin_options='none needed'
22263 else $as_nop
22264 ac_cv_c_undeclared_builtin_options=$ac_arg
22265 fi
22266 break
22267 fi
22268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22269 fi
22270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22271 done
22272 CFLAGS=$ac_save_CFLAGS
22273
22274 fi
22275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
22276 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
22277 case $ac_cv_c_undeclared_builtin_options in #(
22278 'cannot detect') :
22279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22280 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22281 as_fn_error $? "cannot make $CC report undeclared builtins
22282 See \`config.log' for more details" "$LINENO" 5; } ;; #(
22283 'none needed') :
22284 ac_c_undeclared_builtin_options='' ;; #(
22285 *) :
22286 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
22287 esac
22288
22289
22290 if test "x$ac_cv_enable_winapi" = xyes
22291 then :
22292 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
22293 if test "x$ac_cv_header_windows_h" = xyes
22294 then :
22295 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
22296
22297 fi
22298
22299
22300 if test "x$ac_cv_header_windows_h" = xno
22301 then :
22302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22303 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22304 as_fn_error 1 "Missing header: windows.h header is required to compile with winapi support
22305 See \`config.log' for more details" "$LINENO" 5; }
22306
22307 fi
22308
22309 fi
22310
22311 if test "x$ac_cv_enable_winapi" = xno
22312 then :
22313 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
22314 if test "x$ac_cv_header_libintl_h" = xyes
22315 then :
22316 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
22317
22318 fi
22319
22320
22321 fi
22322
22323 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
22324 if test "x$ac_cv_header_limits_h" = xyes
22325 then :
22326 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
22327
22328 fi
22329
22330
22331 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
22332 if test "x$ac_cv_header_stdlib_h" = xyes
22333 then :
22334 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
22335
22336 fi
22337 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
22338 if test "x$ac_cv_header_string_h" = xyes
22339 then :
22340 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
22341
22342 fi
22343
22344
22345 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
22346 if test "x$ac_cv_header_wchar_h" = xyes
22347 then :
22348 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
22349
22350 fi
22351 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
22352 if test "x$ac_cv_header_wctype_h" = xyes
22353 then :
22354 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
22355
22356 fi
22357
22358
22359 ac_fn_c_check_func "$LINENO" "fclose" "ac_cv_func_fclose"
22360 if test "x$ac_cv_func_fclose" = xyes
22361 then :
22362 printf "%s\n" "#define HAVE_FCLOSE 1" >>confdefs.h
22363
22364 fi
22365 ac_fn_c_check_func "$LINENO" "feof" "ac_cv_func_feof"
22366 if test "x$ac_cv_func_feof" = xyes
22367 then :
22368 printf "%s\n" "#define HAVE_FEOF 1" >>confdefs.h
22369
22370 fi
22371 ac_fn_c_check_func "$LINENO" "fgets" "ac_cv_func_fgets"
22372 if test "x$ac_cv_func_fgets" = xyes
22373 then :
22374 printf "%s\n" "#define HAVE_FGETS 1" >>confdefs.h
22375
22376 fi
22377 ac_fn_c_check_func "$LINENO" "fopen" "ac_cv_func_fopen"
22378 if test "x$ac_cv_func_fopen" = xyes
22379 then :
22380 printf "%s\n" "#define HAVE_FOPEN 1" >>confdefs.h
22381
22382 fi
22383 ac_fn_c_check_func "$LINENO" "fread" "ac_cv_func_fread"
22384 if test "x$ac_cv_func_fread" = xyes
22385 then :
22386 printf "%s\n" "#define HAVE_FREAD 1" >>confdefs.h
22387
22388 fi
22389 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
22390 if test "x$ac_cv_func_fseeko" = xyes
22391 then :
22392 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
22393
22394 fi
22395 ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
22396 if test "x$ac_cv_func_fseeko64" = xyes
22397 then :
22398 printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
22399
22400 fi
22401 ac_fn_c_check_func "$LINENO" "fwrite" "ac_cv_func_fwrite"
22402 if test "x$ac_cv_func_fwrite" = xyes
22403 then :
22404 printf "%s\n" "#define HAVE_FWRITE 1" >>confdefs.h
22405
22406 fi
22407 ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
22408 if test "x$ac_cv_func_vfprintf" = xyes
22409 then :
22410 printf "%s\n" "#define HAVE_VFPRINTF 1" >>confdefs.h
22411
22412 fi
22413
22414
22415 if test "x$ac_cv_func_fclose" != xyes
22416 then :
22417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22418 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22419 as_fn_error 1 "Missing function: fclose
22420 See \`config.log' for more details" "$LINENO" 5; }
22421
22422 fi
22423
22424 if test "x$ac_cv_func_feof" != xyes
22425 then :
22426 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22427 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22428 as_fn_error 1 "Missing function: feof
22429 See \`config.log' for more details" "$LINENO" 5; }
22430
22431 fi
22432
22433 if test "x$ac_cv_func_fgets" != xyes
22434 then :
22435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22436 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22437 as_fn_error 1 "Missing function: fgets
22438 See \`config.log' for more details" "$LINENO" 5; }
22439
22440 fi
22441
22442 if test "x$ac_cv_func_fopen" != xyes
22443 then :
22444 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22445 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22446 as_fn_error 1 "Missing function: fopen
22447 See \`config.log' for more details" "$LINENO" 5; }
22448
22449 fi
22450
22451 if test "x$ac_cv_func_fread" != xyes
22452 then :
22453 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22454 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22455 as_fn_error 1 "Missing function: fread
22456 See \`config.log' for more details" "$LINENO" 5; }
22457
22458 fi
22459
22460 if test "x$ac_cv_func_fseeko" != xyes && test "x$ac_cv_func_fseeko64" != xyes
22461 then :
22462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22463 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22464 as_fn_error 1 "Missing function: fseeko and fseeko64
22465 See \`config.log' for more details" "$LINENO" 5; }
22466
22467 fi
22468
22469 if test "x$ac_cv_func_fwrite" != xyes
22470 then :
22471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22472 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22473 as_fn_error 1 "Missing function: fwrite
22474 See \`config.log' for more details" "$LINENO" 5; }
22475
22476 fi
22477
22478 if test "x$ac_cv_func_vfprintf" != xyes
22479 then :
22480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22481 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22482 as_fn_error 1 "Missing function: vfprintf
22483 See \`config.log' for more details" "$LINENO" 5; }
22484
22485 fi
22486
22487 if test "x$ac_cv_enable_wide_character_type" != xno
22488 then :
22489 ac_fn_c_check_func "$LINENO" "fgetws" "ac_cv_func_fgetws"
22490 if test "x$ac_cv_func_fgetws" = xyes
22491 then :
22492 printf "%s\n" "#define HAVE_FGETWS 1" >>confdefs.h
22493
22494 fi
22495
22496
22497 if test "x$ac_cv_func_fgetws" != xyes
22498 then :
22499 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22500 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22501 as_fn_error 1 "Missing function: fgetws
22502 See \`config.log' for more details" "$LINENO" 5; }
22503
22504 fi
22505
22506 fi
22507
22508 ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
22509 if test "x$ac_cv_func_free" = xyes
22510 then :
22511 printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
22512
22513 fi
22514 ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
22515 if test "x$ac_cv_func_malloc" = xyes
22516 then :
22517 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
22518
22519 fi
22520 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
22521 if test "x$ac_cv_func_memcmp" = xyes
22522 then :
22523 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
22524
22525 fi
22526 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22527 if test "x$ac_cv_func_memcpy" = xyes
22528 then :
22529 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
22530
22531 fi
22532 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
22533 if test "x$ac_cv_func_memset" = xyes
22534 then :
22535 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
22536
22537 fi
22538 ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
22539 if test "x$ac_cv_func_realloc" = xyes
22540 then :
22541 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
22542
22543 fi
22544
22545
22546 if test "x$ac_cv_func_free" != xyes
22547 then :
22548 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22549 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22550 as_fn_error 1 "Missing function: free
22551 See \`config.log' for more details" "$LINENO" 5; }
22552
22553 fi
22554
22555 if test "x$ac_cv_func_malloc" != xyes
22556 then :
22557 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22558 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22559 as_fn_error 1 "Missing function: malloc
22560 See \`config.log' for more details" "$LINENO" 5; }
22561
22562 fi
22563
22564 if test "x$ac_cv_func_memcmp" != xyes
22565 then :
22566 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22567 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22568 as_fn_error 1 "Missing function: memcmp
22569 See \`config.log' for more details" "$LINENO" 5; }
22570
22571 fi
22572
22573 if test "x$ac_cv_func_memcpy" != xyes
22574 then :
22575 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22576 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22577 as_fn_error 1 "Missing function: memcpy
22578 See \`config.log' for more details" "$LINENO" 5; }
22579
22580 fi
22581
22582 if test "x$ac_cv_func_memset" != xyes
22583 then :
22584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22585 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22586 as_fn_error 1 "Missing function: memset
22587 See \`config.log' for more details" "$LINENO" 5; }
22588
22589 fi
22590
22591 if test "x$ac_cv_func_realloc" != xyes
22592 then :
22593 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22594 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22595 as_fn_error 1 "Missing function: realloc
22596 See \`config.log' for more details" "$LINENO" 5; }
22597
22598 fi
22599
22600 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
22601 if test "x$ac_cv_func_memchr" = xyes
22602 then :
22603 printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h
22604
22605 fi
22606 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
22607 if test "x$ac_cv_func_memrchr" = xyes
22608 then :
22609 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
22610
22611 fi
22612 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22613 if test "x$ac_cv_func_snprintf" = xyes
22614 then :
22615 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
22616
22617 fi
22618 ac_fn_c_check_func "$LINENO" "sscanf" "ac_cv_func_sscanf"
22619 if test "x$ac_cv_func_sscanf" = xyes
22620 then :
22621 printf "%s\n" "#define HAVE_SSCANF 1" >>confdefs.h
22622
22623 fi
22624 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22625 if test "x$ac_cv_func_strcasecmp" = xyes
22626 then :
22627 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
22628
22629 fi
22630 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
22631 if test "x$ac_cv_func_strchr" = xyes
22632 then :
22633 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
22634
22635 fi
22636 ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
22637 if test "x$ac_cv_func_strlen" = xyes
22638 then :
22639 printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
22640
22641 fi
22642 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
22643 if test "x$ac_cv_func_strncasecmp" = xyes
22644 then :
22645 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
22646
22647 fi
22648 ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
22649 if test "x$ac_cv_func_strncmp" = xyes
22650 then :
22651 printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
22652
22653 fi
22654 ac_fn_c_check_func "$LINENO" "strncpy" "ac_cv_func_strncpy"
22655 if test "x$ac_cv_func_strncpy" = xyes
22656 then :
22657 printf "%s\n" "#define HAVE_STRNCPY 1" >>confdefs.h
22658
22659 fi
22660 ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
22661 if test "x$ac_cv_func_strnicmp" = xyes
22662 then :
22663 printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
22664
22665 fi
22666 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
22667 if test "x$ac_cv_func_strrchr" = xyes
22668 then :
22669 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
22670
22671 fi
22672 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
22673 if test "x$ac_cv_func_strstr" = xyes
22674 then :
22675 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
22676
22677 fi
22678 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
22679 if test "x$ac_cv_func_vsnprintf" = xyes
22680 then :
22681 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
22682
22683 fi
22684
22685
22686 if test "x$ac_cv_func_memchr" != xyes && test "x$ac_cv_func_strchr" != xyes
22687 then :
22688 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22689 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22690 as_fn_error 1 "Missing functions: memchr and strchr
22691 See \`config.log' for more details" "$LINENO" 5; }
22692
22693 fi
22694
22695 if test "x$ac_cv_func_memcmp" != xyes && test "x$ac_cv_func_strncmp" != xyes
22696 then :
22697 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22698 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22699 as_fn_error 1 "Missing functions: memcmp and strncmp
22700 See \`config.log' for more details" "$LINENO" 5; }
22701
22702 fi
22703
22704 if test "x$ac_cv_func_memcpy" != xyes && test "x$ac_cv_func_strncpy" != xyes
22705 then :
22706 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22707 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22708 as_fn_error 1 "Missing functions: memcpy and strncpy
22709 See \`config.log' for more details" "$LINENO" 5; }
22710
22711 fi
22712
22713 if test "x$ac_cv_func_memrchr" = xyes
22714 then :
22715 ac_fn_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22716 if test "x$ac_cv_have_decl_memrchr" = xyes
22717 then :
22718 ac_have_decl=1
22719 else $as_nop
22720 ac_have_decl=0
22721 fi
22722 printf "%s\n" "#define HAVE_DECL_MEMRCHR $ac_have_decl" >>confdefs.h
22723
22724
22725 if test "x$ac_cv_decl_memrchr" != xyes
22726 then :
22727 ac_cv_func_memrchr=no
22728 fi
22729
22730 fi
22731
22732 if test "x$ac_cv_func_memrchr" != xyes && test "x$ac_cv_func_strrchr" != xyes
22733 then :
22734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22735 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22736 as_fn_error 1 "Missing functions: strrchr and memrchr
22737 See \`config.log' for more details" "$LINENO" 5; }
22738
22739 fi
22740
22741 if test "x$ac_cv_func_snprintf" != xyes
22742 then :
22743 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22744 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22745 as_fn_error 1 "Missing function: snprintf
22746 See \`config.log' for more details" "$LINENO" 5; }
22747
22748 fi
22749
22750 if test "x$ac_cv_func_sscanf" != xyes
22751 then :
22752 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22753 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22754 as_fn_error 1 "Missing function: sscanf
22755 See \`config.log' for more details" "$LINENO" 5; }
22756
22757 fi
22758
22759 if test "x$ac_cv_func_strlen" != xyes
22760 then :
22761 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22762 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22763 as_fn_error 1 "Missing function: strlen
22764 See \`config.log' for more details" "$LINENO" 5; }
22765
22766 fi
22767
22768 if test "x$ac_cv_func_strcasecmp" != xyes && test "x$ac_cv_func_strncasecmp" != xyes && test "x$ac_cv_func_strnicmp" != xyes
22769 then :
22770 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22771 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22772 as_fn_error 1 "Missing functions: strncasecmp, strcasecmp and strnicmp
22773 See \`config.log' for more details" "$LINENO" 5; }
22774
22775 fi
22776
22777 if test "x$ac_cv_func_strstr" != xyes
22778 then :
22779 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22780 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22781 as_fn_error 1 "Missing function: strstr
22782 See \`config.log' for more details" "$LINENO" 5; }
22783
22784 fi
22785
22786 if test "x$ac_cv_func_vsnprintf" != xyes
22787 then :
22788 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22789 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22790 as_fn_error 1 "Missing function: vsnprintf
22791 See \`config.log' for more details" "$LINENO" 5; }
22792
22793 fi
22794
22795 if test "x$ac_cv_enable_wide_character_type" != xno
22796 then :
22797 ac_fn_c_check_func "$LINENO" "swprintf" "ac_cv_func_swprintf"
22798 if test "x$ac_cv_func_swprintf" = xyes
22799 then :
22800 printf "%s\n" "#define HAVE_SWPRINTF 1" >>confdefs.h
22801
22802 fi
22803 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
22804 if test "x$ac_cv_func_towlower" = xyes
22805 then :
22806 printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h
22807
22808 fi
22809 ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
22810 if test "x$ac_cv_func_wcscasecmp" = xyes
22811 then :
22812 printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
22813
22814 fi
22815 ac_fn_c_check_func "$LINENO" "wcschr" "ac_cv_func_wcschr"
22816 if test "x$ac_cv_func_wcschr" = xyes
22817 then :
22818 printf "%s\n" "#define HAVE_WCSCHR 1" >>confdefs.h
22819
22820 fi
22821 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
22822 if test "x$ac_cv_func_wcslen" = xyes
22823 then :
22824 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
22825
22826 fi
22827 ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
22828 if test "x$ac_cv_func_wcsncasecmp" = xyes
22829 then :
22830 printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
22831
22832 fi
22833 ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
22834 if test "x$ac_cv_func_wcsncmp" = xyes
22835 then :
22836 printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
22837
22838 fi
22839 ac_fn_c_check_func "$LINENO" "wcsncpy" "ac_cv_func_wcsncpy"
22840 if test "x$ac_cv_func_wcsncpy" = xyes
22841 then :
22842 printf "%s\n" "#define HAVE_WCSNCPY 1" >>confdefs.h
22843
22844 fi
22845 ac_fn_c_check_func "$LINENO" "wcsnicmp" "ac_cv_func_wcsnicmp"
22846 if test "x$ac_cv_func_wcsnicmp" = xyes
22847 then :
22848 printf "%s\n" "#define HAVE_WCSNICMP 1" >>confdefs.h
22849
22850 fi
22851 ac_fn_c_check_func "$LINENO" "wcsrchr" "ac_cv_func_wcsrchr"
22852 if test "x$ac_cv_func_wcsrchr" = xyes
22853 then :
22854 printf "%s\n" "#define HAVE_WCSRCHR 1" >>confdefs.h
22855
22856 fi
22857 ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
22858 if test "x$ac_cv_func_wcsstr" = xyes
22859 then :
22860 printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
22861
22862 fi
22863 ac_fn_c_check_func "$LINENO" "wmemchr" "ac_cv_func_wmemchr"
22864 if test "x$ac_cv_func_wmemchr" = xyes
22865 then :
22866 printf "%s\n" "#define HAVE_WMEMCHR 1" >>confdefs.h
22867
22868 fi
22869 ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"
22870 if test "x$ac_cv_func_wmemcmp" = xyes
22871 then :
22872 printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h
22873
22874 fi
22875 ac_fn_c_check_func "$LINENO" "wmemcpy" "ac_cv_func_wmemcpy"
22876 if test "x$ac_cv_func_wmemcpy" = xyes
22877 then :
22878 printf "%s\n" "#define HAVE_WMEMCPY 1" >>confdefs.h
22879
22880 fi
22881 ac_fn_c_check_func "$LINENO" "wmemrchr" "ac_cv_func_wmemrchr"
22882 if test "x$ac_cv_func_wmemrchr" = xyes
22883 then :
22884 printf "%s\n" "#define HAVE_WMEMRCHR 1" >>confdefs.h
22885
22886 fi
22887
22888
22889 if test "x$ac_cv_func_swprintf" != xyes
22890 then :
22891 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22892 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22893 as_fn_error 1 "Missing function: swprintf
22894 See \`config.log' for more details" "$LINENO" 5; }
22895
22896 fi
22897
22898 if test "x$ac_cv_func_wmemchr" != xyes && test "x$ac_cv_func_wcschr" != xyes
22899 then :
22900 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22901 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22902 as_fn_error 1 "Missing functions: wmemchr and wcschr
22903 See \`config.log' for more details" "$LINENO" 5; }
22904
22905 fi
22906
22907 if test "x$ac_cv_func_wmemcmp" != xyes && test "x$ac_cv_func_wcsncmp" != xyes
22908 then :
22909 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22910 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22911 as_fn_error 1 "Missing functions: wmemcmp and wcsncmp
22912 See \`config.log' for more details" "$LINENO" 5; }
22913
22914 fi
22915
22916 if test "x$ac_cv_func_wmemcpy" != xyes && test "x$ac_cv_func_wcsncpy" != xyes
22917 then :
22918 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22919 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22920 as_fn_error 1 "Missing functions: wmemcpy and wcsncpy
22921 See \`config.log' for more details" "$LINENO" 5; }
22922
22923 fi
22924
22925 if test "x$ac_cv_func_wmemrchr" != xyes && test "x$ac_cv_func_wcsrchr" != xyes
22926 then :
22927 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22928 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22929 as_fn_error 1 "Missing functions: wmemrchr and wcsrchr
22930 See \`config.log' for more details" "$LINENO" 5; }
22931
22932 fi
22933
22934 if test "x$ac_cv_func_wcslen" != xyes
22935 then :
22936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22937 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22938 as_fn_error 1 "Missing function: wcslen
22939 See \`config.log' for more details" "$LINENO" 5; }
22940
22941 fi
22942
22943 if test "x$ac_cv_func_wcsncasecmp" != xyes && test "x$ac_cv_func_wcscasecmp" != xyes && test "x$ac_cv_func_wcsnicmp" != xyes && test "x$ac_cv_func_towlower" != xyes
22944 then :
22945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22946 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22947 as_fn_error 1 "Missing functions: wcsncasecmp, wcscasecmp, wcsnicmp and towlower
22948 See \`config.log' for more details" "$LINENO" 5; }
22949
22950 fi
22951
22952 if test "x$ac_cv_func_wcsstr" != xyes
22953 then :
22954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22956 as_fn_error 1 "Missing function: wcsstr
22957 See \`config.log' for more details" "$LINENO" 5; }
22958
22959 fi
22960
22961 fi
22962
22963
22964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the conversion specifier \"%jd\"" >&5
22965 printf %s "checking whether printf supports the conversion specifier \"%jd\"... " >&6; }
22966
22967 SAVE_CFLAGS="$CFLAGS"
22968 CFLAGS="$CFLAGS -Wall -Werror"
22969 ac_ext=c
22970 ac_cpp='$CPP $CPPFLAGS'
22971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22974
22975
22976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22977 /* end confdefs.h. */
22978 #include <stdio.h>
22979 int
22980 main (void)
22981 {
22982 printf( "%jd" );
22983 ;
22984 return 0;
22985 }
22986 _ACEOF
22987 if ac_fn_c_try_link "$LINENO"
22988 then :
22989 ac_cv_cv_have_printf_jd=no
22990 else $as_nop
22991 ac_cv_cv_have_printf_jd=yes
22992 fi
22993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22994 conftest$ac_exeext conftest.$ac_ext
22995
22996 if test "x$ac_cv_cv_have_printf_jd" = xyes
22997 then :
22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999 /* end confdefs.h. */
23000 #include <sys/types.h>
23001 #include <stdio.h>
23002 int
23003 main (void)
23004 {
23005 printf( "%jd", (off_t) 10 );
23006 ;
23007 return 0;
23008 }
23009 _ACEOF
23010 if ac_fn_c_try_link "$LINENO"
23011 then :
23012 ac_cv_cv_have_printf_jd=yes
23013 else $as_nop
23014 ac_cv_cv_have_printf_jd=no
23015 fi
23016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23017 conftest$ac_exeext conftest.$ac_ext
23018
23019 fi
23020
23021 if test "x$ac_cv_cv_have_printf_jd" = xyes
23022 then :
23023 if test "$cross_compiling" = yes
23024 then :
23025 ac_cv_cv_have_printf_jd=undetermined
23026 else $as_nop
23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23029 #include <sys/types.h>
23030 #include <stdio.h>
23031 int
23032 main (void)
23033 {
23034 char string[ 3 ];
23035 if( snprintf( string, 3, "%jd", (off_t) 10 ) < 0 ) return( 1 );
23036 if( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 );
23037 ;
23038 return 0;
23039 }
23040 _ACEOF
23041 if ac_fn_c_try_run "$LINENO"
23042 then :
23043 ac_cv_cv_have_printf_jd=yes
23044 else $as_nop
23045 ac_cv_cv_have_printf_jd=no
23046 fi
23047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23048 conftest.$ac_objext conftest.beam conftest.$ac_ext
23049 fi
23050
23051
23052 fi
23053
23054 ac_ext=c
23055 ac_cpp='$CPP $CPPFLAGS'
23056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23059
23060 CFLAGS="$SAVE_CFLAGS"
23061
23062 if test "x$ac_cv_cv_have_printf_jd" = xyes
23063 then :
23064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23065 printf "%s\n" "yes" >&6; }
23066
23067 printf "%s\n" "#define HAVE_PRINTF_JD 1" >>confdefs.h
23068
23069 else $as_nop
23070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cv_have_printf_jd" >&5
23071 printf "%s\n" "$ac_cv_cv_have_printf_jd" >&6; }
23072
23073 fi
23074
23075
23076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the conversion specifier \"%zd\"" >&5
23077 printf %s "checking whether printf supports the conversion specifier \"%zd\"... " >&6; }
23078
23079 SAVE_CFLAGS="$CFLAGS"
23080 CFLAGS="$CFLAGS -Wall -Werror"
23081 ac_ext=c
23082 ac_cpp='$CPP $CPPFLAGS'
23083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23086
23087
23088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089 /* end confdefs.h. */
23090 #include <stdio.h>
23091 int
23092 main (void)
23093 {
23094 printf( "%zd" );
23095 ;
23096 return 0;
23097 }
23098 _ACEOF
23099 if ac_fn_c_try_link "$LINENO"
23100 then :
23101 ac_cv_cv_have_printf_zd=no
23102 else $as_nop
23103 ac_cv_cv_have_printf_zd=yes
23104 fi
23105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23106 conftest$ac_exeext conftest.$ac_ext
23107
23108 if test "x$ac_cv_cv_have_printf_zd" = xyes
23109 then :
23110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23111 /* end confdefs.h. */
23112 #include <sys/types.h>
23113 #include <stdio.h>
23114 int
23115 main (void)
23116 {
23117 printf( "%zd", (size_t) 10 );
23118 ;
23119 return 0;
23120 }
23121 _ACEOF
23122 if ac_fn_c_try_link "$LINENO"
23123 then :
23124 ac_cv_cv_have_printf_zd=yes
23125 else $as_nop
23126 ac_cv_cv_have_printf_zd=no
23127 fi
23128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23129 conftest$ac_exeext conftest.$ac_ext
23130
23131 fi
23132
23133 if test "x$ac_cv_cv_have_printf_zd" = xyes
23134 then :
23135 if test "$cross_compiling" = yes
23136 then :
23137 ac_cv_cv_have_printf_zd=undetermined
23138 else $as_nop
23139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23140 /* end confdefs.h. */
23141 #include <sys/types.h>
23142 #include <stdio.h>
23143 int
23144 main (void)
23145 {
23146 char string[ 3 ];
23147 if( snprintf( string, 3, "%zd", (size_t) 10 ) < 0 ) return( 1 );
23148 if( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 );
23149 ;
23150 return 0;
23151 }
23152 _ACEOF
23153 if ac_fn_c_try_run "$LINENO"
23154 then :
23155 ac_cv_cv_have_printf_zd=yes
23156 else $as_nop
23157 ac_cv_cv_have_printf_zd=no
23158 fi
23159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23160 conftest.$ac_objext conftest.beam conftest.$ac_ext
23161 fi
23162
23163
23164 fi
23165
23166 ac_ext=c
23167 ac_cpp='$CPP $CPPFLAGS'
23168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23171
23172 CFLAGS="$SAVE_CFLAGS"
23173
23174 if test "x$ac_cv_cv_have_printf_zd" = xyes
23175 then :
23176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23177 printf "%s\n" "yes" >&6; }
23178
23179 printf "%s\n" "#define HAVE_PRINTF_ZD 1" >>confdefs.h
23180
23181 else $as_nop
23182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cv_have_printf_zd" >&5
23183 printf "%s\n" "$ac_cv_cv_have_printf_zd" >&6; }
23184
23185 fi
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23197 if test -n "$ac_tool_prefix"; then
23198 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23199 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23201 printf %s "checking for $ac_word... " >&6; }
23202 if test ${ac_cv_path_PKG_CONFIG+y}
23203 then :
23204 printf %s "(cached) " >&6
23205 else $as_nop
23206 case $PKG_CONFIG in
23207 [\\/]* | ?:[\\/]*)
23208 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23209 ;;
23210 *)
23211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23212 for as_dir in $PATH
23213 do
23214 IFS=$as_save_IFS
23215 case $as_dir in #(((
23216 '') as_dir=./ ;;
23217 */) ;;
23218 *) as_dir=$as_dir/ ;;
23219 esac
23220 for ac_exec_ext in '' $ac_executable_extensions; do
23221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23222 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23224 break 2
23225 fi
23226 done
23227 done
23228 IFS=$as_save_IFS
23229
23230 ;;
23231 esac
23232 fi
23233 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23234 if test -n "$PKG_CONFIG"; then
23235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23236 printf "%s\n" "$PKG_CONFIG" >&6; }
23237 else
23238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23239 printf "%s\n" "no" >&6; }
23240 fi
23241
23242
23243 fi
23244 if test -z "$ac_cv_path_PKG_CONFIG"; then
23245 ac_pt_PKG_CONFIG=$PKG_CONFIG
23246 # Extract the first word of "pkg-config", so it can be a program name with args.
23247 set dummy pkg-config; ac_word=$2
23248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23249 printf %s "checking for $ac_word... " >&6; }
23250 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
23251 then :
23252 printf %s "(cached) " >&6
23253 else $as_nop
23254 case $ac_pt_PKG_CONFIG in
23255 [\\/]* | ?:[\\/]*)
23256 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23257 ;;
23258 *)
23259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23260 for as_dir in $PATH
23261 do
23262 IFS=$as_save_IFS
23263 case $as_dir in #(((
23264 '') as_dir=./ ;;
23265 */) ;;
23266 *) as_dir=$as_dir/ ;;
23267 esac
23268 for ac_exec_ext in '' $ac_executable_extensions; do
23269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23270 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23272 break 2
23273 fi
23274 done
23275 done
23276 IFS=$as_save_IFS
23277
23278 ;;
23279 esac
23280 fi
23281 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23282 if test -n "$ac_pt_PKG_CONFIG"; then
23283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23284 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
23285 else
23286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23287 printf "%s\n" "no" >&6; }
23288 fi
23289
23290 if test "x$ac_pt_PKG_CONFIG" = x; then
23291 PKG_CONFIG=""
23292 else
23293 case $cross_compiling:$ac_tool_warned in
23294 yes:)
23295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23296 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23297 ac_tool_warned=yes ;;
23298 esac
23299 PKG_CONFIG=$ac_pt_PKG_CONFIG
23300 fi
23301 else
23302 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23303 fi
23304
23305 fi
23306 if test -n "$PKG_CONFIG"; then
23307 _pkg_min_version=0.9.0
23308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23309 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23310 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23312 printf "%s\n" "yes" >&6; }
23313 else
23314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23315 printf "%s\n" "no" >&6; }
23316 PKG_CONFIG=""
23317 fi
23318 fi
23319 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
23320 if test "x$ac_cv_have_decl_strerror_r" = xyes
23321 then :
23322 ac_have_decl=1
23323 else $as_nop
23324 ac_have_decl=0
23325 fi
23326 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
23327
23328
23329
23330 # Check whether --with-libcerror was given.
23331 if test ${with_libcerror+y}
23332 then :
23333 withval=$with_libcerror; ac_cv_with_libcerror=$withval
23334 else $as_nop
23335 ac_cv_with_libcerror=auto-detect
23336 fi
23337
23338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcerror in includedir and libdir or in the specified DIR, or no if to use local version" >&5
23339 printf %s "checking whether to use search for libcerror in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; }
23340 if test ${ac_cv_with_libcerror+y}
23341 then :
23342 printf %s "(cached) " >&6
23343 else $as_nop
23344 ac_cv_with_libcerror=auto-detect
23345 fi
23346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcerror" >&5
23347 printf "%s\n" "$ac_cv_with_libcerror" >&6; }
23348
23349 if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcerror" = xno
23350 then :
23351 ac_cv_libcerror=no
23352 else $as_nop
23353 ac_cv_libcerror=check
23354 if test "x$ac_cv_with_libcerror" != x && test "x$ac_cv_with_libcerror" != xauto-detect && test "x$ac_cv_with_libcerror" != xyes
23355 then :
23356 if test -d "$ac_cv_with_libcerror"
23357 then :
23358 CFLAGS="$CFLAGS -I${ac_cv_with_libcerror}/include"
23359 LDFLAGS="$LDFLAGS -L${ac_cv_with_libcerror}/lib"
23360 else $as_nop
23361 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23362 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23363 as_fn_error 1 "no such directory: $ac_cv_with_libcerror
23364 See \`config.log' for more details" "$LINENO" 5; }
23365
23366 fi
23367
23368 else $as_nop
23369 if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"
23370 then :
23371
23372 pkg_failed=no
23373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror >= 20120425" >&5
23374 printf %s "checking for libcerror >= 20120425... " >&6; }
23375
23376 if test -n "$libcerror_CFLAGS"; then
23377 pkg_cv_libcerror_CFLAGS="$libcerror_CFLAGS"
23378 elif test -n "$PKG_CONFIG"; then
23379 if test -n "$PKG_CONFIG" && \
23380 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcerror >= 20120425\""; } >&5
23381 ($PKG_CONFIG --exists --print-errors "libcerror >= 20120425") 2>&5
23382 ac_status=$?
23383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23384 test $ac_status = 0; }; then
23385 pkg_cv_libcerror_CFLAGS=`$PKG_CONFIG --cflags "libcerror >= 20120425" 2>/dev/null`
23386 test "x$?" != "x0" && pkg_failed=yes
23387 else
23388 pkg_failed=yes
23389 fi
23390 else
23391 pkg_failed=untried
23392 fi
23393 if test -n "$libcerror_LIBS"; then
23394 pkg_cv_libcerror_LIBS="$libcerror_LIBS"
23395 elif test -n "$PKG_CONFIG"; then
23396 if test -n "$PKG_CONFIG" && \
23397 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcerror >= 20120425\""; } >&5
23398 ($PKG_CONFIG --exists --print-errors "libcerror >= 20120425") 2>&5
23399 ac_status=$?
23400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23401 test $ac_status = 0; }; then
23402 pkg_cv_libcerror_LIBS=`$PKG_CONFIG --libs "libcerror >= 20120425" 2>/dev/null`
23403 test "x$?" != "x0" && pkg_failed=yes
23404 else
23405 pkg_failed=yes
23406 fi
23407 else
23408 pkg_failed=untried
23409 fi
23410
23411
23412
23413 if test $pkg_failed = yes; then
23414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23415 printf "%s\n" "no" >&6; }
23416
23417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23418 _pkg_short_errors_supported=yes
23419 else
23420 _pkg_short_errors_supported=no
23421 fi
23422 if test $_pkg_short_errors_supported = yes; then
23423 libcerror_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcerror >= 20120425" 2>&1`
23424 else
23425 libcerror_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcerror >= 20120425" 2>&1`
23426 fi
23427 # Put the nasty error message in config.log where it belongs
23428 echo "$libcerror_PKG_ERRORS" >&5
23429
23430 ac_cv_libcerror=check
23431 elif test $pkg_failed = untried; then
23432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23433 printf "%s\n" "no" >&6; }
23434 ac_cv_libcerror=check
23435 else
23436 libcerror_CFLAGS=$pkg_cv_libcerror_CFLAGS
23437 libcerror_LIBS=$pkg_cv_libcerror_LIBS
23438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23439 printf "%s\n" "yes" >&6; }
23440 ac_cv_libcerror=yes
23441 fi
23442
23443 fi
23444 if test "x$ac_cv_libcerror" = xyes
23445 then :
23446 ac_cv_libcerror_CPPFLAGS="$pkg_cv_libcerror_CFLAGS"
23447 ac_cv_libcerror_LIBADD="$pkg_cv_libcerror_LIBS"
23448 fi
23449
23450 fi
23451
23452 if test "x$ac_cv_libcerror" = xcheck
23453 then :
23454 ac_fn_c_check_header_compile "$LINENO" "libcerror.h" "ac_cv_header_libcerror_h" "$ac_includes_default"
23455 if test "x$ac_cv_header_libcerror_h" = xyes
23456 then :
23457 printf "%s\n" "#define HAVE_LIBCERROR_H 1" >>confdefs.h
23458
23459 fi
23460
23461
23462 if test "x$ac_cv_header_libcerror_h" = xno
23463 then :
23464 ac_cv_libcerror=no
23465 else $as_nop
23466 ac_cv_libcerror=yes
23467
23468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_get_version in -lcerror" >&5
23469 printf %s "checking for libcerror_get_version in -lcerror... " >&6; }
23470 if test ${ac_cv_lib_cerror_libcerror_get_version+y}
23471 then :
23472 printf %s "(cached) " >&6
23473 else $as_nop
23474 ac_check_lib_save_LIBS=$LIBS
23475 LIBS="-lcerror $LIBS"
23476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23477 /* end confdefs.h. */
23478
23479 /* Override any GCC internal prototype to avoid an error.
23480 Use char because int might match the return type of a GCC
23481 builtin and then its argument prototype would still apply. */
23482 char libcerror_get_version ();
23483 int
23484 main (void)
23485 {
23486 return libcerror_get_version ();
23487 ;
23488 return 0;
23489 }
23490 _ACEOF
23491 if ac_fn_c_try_link "$LINENO"
23492 then :
23493 ac_cv_lib_cerror_libcerror_get_version=yes
23494 else $as_nop
23495 ac_cv_lib_cerror_libcerror_get_version=no
23496 fi
23497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23498 conftest$ac_exeext conftest.$ac_ext
23499 LIBS=$ac_check_lib_save_LIBS
23500 fi
23501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_get_version" >&5
23502 printf "%s\n" "$ac_cv_lib_cerror_libcerror_get_version" >&6; }
23503 if test "x$ac_cv_lib_cerror_libcerror_get_version" = xyes
23504 then :
23505 ac_cv_libcerror_dummy=yes
23506 else $as_nop
23507 ac_cv_libcerror=no
23508 fi
23509
23510
23511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_free in -lcerror" >&5
23512 printf %s "checking for libcerror_error_free in -lcerror... " >&6; }
23513 if test ${ac_cv_lib_cerror_libcerror_error_free+y}
23514 then :
23515 printf %s "(cached) " >&6
23516 else $as_nop
23517 ac_check_lib_save_LIBS=$LIBS
23518 LIBS="-lcerror $LIBS"
23519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23520 /* end confdefs.h. */
23521
23522 /* Override any GCC internal prototype to avoid an error.
23523 Use char because int might match the return type of a GCC
23524 builtin and then its argument prototype would still apply. */
23525 char libcerror_error_free ();
23526 int
23527 main (void)
23528 {
23529 return libcerror_error_free ();
23530 ;
23531 return 0;
23532 }
23533 _ACEOF
23534 if ac_fn_c_try_link "$LINENO"
23535 then :
23536 ac_cv_lib_cerror_libcerror_error_free=yes
23537 else $as_nop
23538 ac_cv_lib_cerror_libcerror_error_free=no
23539 fi
23540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23541 conftest$ac_exeext conftest.$ac_ext
23542 LIBS=$ac_check_lib_save_LIBS
23543 fi
23544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_free" >&5
23545 printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_free" >&6; }
23546 if test "x$ac_cv_lib_cerror_libcerror_error_free" = xyes
23547 then :
23548 ac_cv_libcerror_dummy=yes
23549 else $as_nop
23550 ac_cv_libcerror=no
23551 fi
23552
23553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_set in -lcerror" >&5
23554 printf %s "checking for libcerror_error_set in -lcerror... " >&6; }
23555 if test ${ac_cv_lib_cerror_libcerror_error_set+y}
23556 then :
23557 printf %s "(cached) " >&6
23558 else $as_nop
23559 ac_check_lib_save_LIBS=$LIBS
23560 LIBS="-lcerror $LIBS"
23561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23562 /* end confdefs.h. */
23563
23564 /* Override any GCC internal prototype to avoid an error.
23565 Use char because int might match the return type of a GCC
23566 builtin and then its argument prototype would still apply. */
23567 char libcerror_error_set ();
23568 int
23569 main (void)
23570 {
23571 return libcerror_error_set ();
23572 ;
23573 return 0;
23574 }
23575 _ACEOF
23576 if ac_fn_c_try_link "$LINENO"
23577 then :
23578 ac_cv_lib_cerror_libcerror_error_set=yes
23579 else $as_nop
23580 ac_cv_lib_cerror_libcerror_error_set=no
23581 fi
23582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23583 conftest$ac_exeext conftest.$ac_ext
23584 LIBS=$ac_check_lib_save_LIBS
23585 fi
23586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_set" >&5
23587 printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_set" >&6; }
23588 if test "x$ac_cv_lib_cerror_libcerror_error_set" = xyes
23589 then :
23590 ac_cv_libcerror_dummy=yes
23591 else $as_nop
23592 ac_cv_libcerror=no
23593 fi
23594
23595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_matches in -lcerror" >&5
23596 printf %s "checking for libcerror_error_matches in -lcerror... " >&6; }
23597 if test ${ac_cv_lib_cerror_libcerror_error_matches+y}
23598 then :
23599 printf %s "(cached) " >&6
23600 else $as_nop
23601 ac_check_lib_save_LIBS=$LIBS
23602 LIBS="-lcerror $LIBS"
23603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23604 /* end confdefs.h. */
23605
23606 /* Override any GCC internal prototype to avoid an error.
23607 Use char because int might match the return type of a GCC
23608 builtin and then its argument prototype would still apply. */
23609 char libcerror_error_matches ();
23610 int
23611 main (void)
23612 {
23613 return libcerror_error_matches ();
23614 ;
23615 return 0;
23616 }
23617 _ACEOF
23618 if ac_fn_c_try_link "$LINENO"
23619 then :
23620 ac_cv_lib_cerror_libcerror_error_matches=yes
23621 else $as_nop
23622 ac_cv_lib_cerror_libcerror_error_matches=no
23623 fi
23624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23625 conftest$ac_exeext conftest.$ac_ext
23626 LIBS=$ac_check_lib_save_LIBS
23627 fi
23628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_matches" >&5
23629 printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_matches" >&6; }
23630 if test "x$ac_cv_lib_cerror_libcerror_error_matches" = xyes
23631 then :
23632 ac_cv_libcerror_dummy=yes
23633 else $as_nop
23634 ac_cv_libcerror=no
23635 fi
23636
23637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_fprint in -lcerror" >&5
23638 printf %s "checking for libcerror_error_fprint in -lcerror... " >&6; }
23639 if test ${ac_cv_lib_cerror_libcerror_error_fprint+y}
23640 then :
23641 printf %s "(cached) " >&6
23642 else $as_nop
23643 ac_check_lib_save_LIBS=$LIBS
23644 LIBS="-lcerror $LIBS"
23645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23646 /* end confdefs.h. */
23647
23648 /* Override any GCC internal prototype to avoid an error.
23649 Use char because int might match the return type of a GCC
23650 builtin and then its argument prototype would still apply. */
23651 char libcerror_error_fprint ();
23652 int
23653 main (void)
23654 {
23655 return libcerror_error_fprint ();
23656 ;
23657 return 0;
23658 }
23659 _ACEOF
23660 if ac_fn_c_try_link "$LINENO"
23661 then :
23662 ac_cv_lib_cerror_libcerror_error_fprint=yes
23663 else $as_nop
23664 ac_cv_lib_cerror_libcerror_error_fprint=no
23665 fi
23666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23667 conftest$ac_exeext conftest.$ac_ext
23668 LIBS=$ac_check_lib_save_LIBS
23669 fi
23670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_fprint" >&5
23671 printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_fprint" >&6; }
23672 if test "x$ac_cv_lib_cerror_libcerror_error_fprint" = xyes
23673 then :
23674 ac_cv_libcerror_dummy=yes
23675 else $as_nop
23676 ac_cv_libcerror=no
23677 fi
23678
23679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_sprint in -lcerror" >&5
23680 printf %s "checking for libcerror_error_sprint in -lcerror... " >&6; }
23681 if test ${ac_cv_lib_cerror_libcerror_error_sprint+y}
23682 then :
23683 printf %s "(cached) " >&6
23684 else $as_nop
23685 ac_check_lib_save_LIBS=$LIBS
23686 LIBS="-lcerror $LIBS"
23687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23688 /* end confdefs.h. */
23689
23690 /* Override any GCC internal prototype to avoid an error.
23691 Use char because int might match the return type of a GCC
23692 builtin and then its argument prototype would still apply. */
23693 char libcerror_error_sprint ();
23694 int
23695 main (void)
23696 {
23697 return libcerror_error_sprint ();
23698 ;
23699 return 0;
23700 }
23701 _ACEOF
23702 if ac_fn_c_try_link "$LINENO"
23703 then :
23704 ac_cv_lib_cerror_libcerror_error_sprint=yes
23705 else $as_nop
23706 ac_cv_lib_cerror_libcerror_error_sprint=no
23707 fi
23708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23709 conftest$ac_exeext conftest.$ac_ext
23710 LIBS=$ac_check_lib_save_LIBS
23711 fi
23712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_sprint" >&5
23713 printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_sprint" >&6; }
23714 if test "x$ac_cv_lib_cerror_libcerror_error_sprint" = xyes
23715 then :
23716 ac_cv_libcerror_dummy=yes
23717 else $as_nop
23718 ac_cv_libcerror=no
23719 fi
23720
23721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_backtrace_fprint in -lcerror" >&5
23722 printf %s "checking for libcerror_error_backtrace_fprint in -lcerror... " >&6; }
23723 if test ${ac_cv_lib_cerror_libcerror_error_backtrace_fprint+y}
23724 then :
23725 printf %s "(cached) " >&6
23726 else $as_nop
23727 ac_check_lib_save_LIBS=$LIBS
23728 LIBS="-lcerror $LIBS"
23729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23730 /* end confdefs.h. */
23731
23732 /* Override any GCC internal prototype to avoid an error.
23733 Use char because int might match the return type of a GCC
23734 builtin and then its argument prototype would still apply. */
23735 char libcerror_error_backtrace_fprint ();
23736 int
23737 main (void)
23738 {
23739 return libcerror_error_backtrace_fprint ();
23740 ;
23741 return 0;
23742 }
23743 _ACEOF
23744 if ac_fn_c_try_link "$LINENO"
23745 then :
23746 ac_cv_lib_cerror_libcerror_error_backtrace_fprint=yes
23747 else $as_nop
23748 ac_cv_lib_cerror_libcerror_error_backtrace_fprint=no
23749 fi
23750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23751 conftest$ac_exeext conftest.$ac_ext
23752 LIBS=$ac_check_lib_save_LIBS
23753 fi
23754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_backtrace_fprint" >&5
23755 printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_backtrace_fprint" >&6; }
23756 if test "x$ac_cv_lib_cerror_libcerror_error_backtrace_fprint" = xyes
23757 then :
23758 ac_cv_libcerror_dummy=yes
23759 else $as_nop
23760 ac_cv_libcerror=no
23761 fi
23762
23763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_backtrace_sprint in -lcerror" >&5
23764 printf %s "checking for libcerror_error_backtrace_sprint in -lcerror... " >&6; }
23765 if test ${ac_cv_lib_cerror_libcerror_error_backtrace_sprint+y}
23766 then :
23767 printf %s "(cached) " >&6
23768 else $as_nop
23769 ac_check_lib_save_LIBS=$LIBS
23770 LIBS="-lcerror $LIBS"
23771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23772 /* end confdefs.h. */
23773
23774 /* Override any GCC internal prototype to avoid an error.
23775 Use char because int might match the return type of a GCC
23776 builtin and then its argument prototype would still apply. */
23777 char libcerror_error_backtrace_sprint ();
23778 int
23779 main (void)
23780 {
23781 return libcerror_error_backtrace_sprint ();
23782 ;
23783 return 0;
23784 }
23785 _ACEOF
23786 if ac_fn_c_try_link "$LINENO"
23787 then :
23788 ac_cv_lib_cerror_libcerror_error_backtrace_sprint=yes
23789 else $as_nop
23790 ac_cv_lib_cerror_libcerror_error_backtrace_sprint=no
23791 fi
23792 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23793 conftest$ac_exeext conftest.$ac_ext
23794 LIBS=$ac_check_lib_save_LIBS
23795 fi
23796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_backtrace_sprint" >&5
23797 printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_backtrace_sprint" >&6; }
23798 if test "x$ac_cv_lib_cerror_libcerror_error_backtrace_sprint" = xyes
23799 then :
23800 ac_cv_libcerror_dummy=yes
23801 else $as_nop
23802 ac_cv_libcerror=no
23803 fi
23804
23805
23806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_system_set_error in -lcerror" >&5
23807 printf %s "checking for libcerror_system_set_error in -lcerror... " >&6; }
23808 if test ${ac_cv_lib_cerror_libcerror_system_set_error+y}
23809 then :
23810 printf %s "(cached) " >&6
23811 else $as_nop
23812 ac_check_lib_save_LIBS=$LIBS
23813 LIBS="-lcerror $LIBS"
23814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23815 /* end confdefs.h. */
23816
23817 /* Override any GCC internal prototype to avoid an error.
23818 Use char because int might match the return type of a GCC
23819 builtin and then its argument prototype would still apply. */
23820 char libcerror_system_set_error ();
23821 int
23822 main (void)
23823 {
23824 return libcerror_system_set_error ();
23825 ;
23826 return 0;
23827 }
23828 _ACEOF
23829 if ac_fn_c_try_link "$LINENO"
23830 then :
23831 ac_cv_lib_cerror_libcerror_system_set_error=yes
23832 else $as_nop
23833 ac_cv_lib_cerror_libcerror_system_set_error=no
23834 fi
23835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23836 conftest$ac_exeext conftest.$ac_ext
23837 LIBS=$ac_check_lib_save_LIBS
23838 fi
23839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_system_set_error" >&5
23840 printf "%s\n" "$ac_cv_lib_cerror_libcerror_system_set_error" >&6; }
23841 if test "x$ac_cv_lib_cerror_libcerror_system_set_error" = xyes
23842 then :
23843 ac_cv_libcerror_dummy=yes
23844 else $as_nop
23845 ac_cv_libcerror=no
23846 fi
23847
23848
23849 ac_cv_libcerror_LIBADD="-lcerror"
23850 fi
23851
23852 fi
23853
23854 if test "x$ac_cv_libcerror" != xyes && test "x$ac_cv_with_libcerror" != x && test "x$ac_cv_with_libcerror" != xauto-detect && test "x$ac_cv_with_libcerror" != xyes
23855 then :
23856 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23857 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23858 as_fn_error 1 "unable to find supported libcerror in directory: $ac_cv_with_libcerror
23859 See \`config.log' for more details" "$LINENO" 5; }
23860
23861 fi
23862
23863 fi
23864
23865 if test "x$ac_cv_libcerror" = xyes
23866 then :
23867
23868 printf "%s\n" "#define HAVE_LIBCERROR 1" >>confdefs.h
23869
23870
23871 fi
23872
23873 if test "x$ac_cv_libcerror" = xyes
23874 then :
23875 HAVE_LIBCERROR=1
23876
23877 else $as_nop
23878 HAVE_LIBCERROR=0
23879
23880
23881 fi
23882
23883
23884 if test "x$ac_cv_libcerror" != xyes
23885 then :
23886 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
23887 if test "x$ac_cv_header_stdarg_h" = xyes
23888 then :
23889 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
23890
23891 fi
23892 ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
23893 if test "x$ac_cv_header_varargs_h" = xyes
23894 then :
23895 printf "%s\n" "#define HAVE_VARARGS_H 1" >>confdefs.h
23896
23897 fi
23898
23899
23900 if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes
23901 then :
23902 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23903 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23904 as_fn_error 1 "Missing headers: stdarg.h and varargs.h
23905 See \`config.log' for more details" "$LINENO" 5; }
23906
23907 fi
23908
23909 if test "x$ac_cv_enable_wide_character_type" != xno
23910 then :
23911 ac_fn_c_check_func "$LINENO" "wcstombs" "ac_cv_func_wcstombs"
23912 if test "x$ac_cv_func_wcstombs" = xyes
23913 then :
23914 printf "%s\n" "#define HAVE_WCSTOMBS 1" >>confdefs.h
23915
23916 fi
23917
23918
23919 if test "x$ac_cv_func_wcstombs" != xyes
23920 then :
23921 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23922 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23923 as_fn_error 1 "Missing function: wcstombs
23924 See \`config.log' for more details" "$LINENO" 5; }
23925
23926 fi
23927
23928 fi
23929
23930
23931 if test $ac_cv_have_decl_strerror_r = yes; then
23932 # For backward compatibility's sake, define HAVE_STRERROR_R.
23933 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
23934 # as AC_CHECK_DECLS_ONCE.)
23935
23936 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
23937
23938 fi
23939
23940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
23941 printf %s "checking whether strerror_r returns char *... " >&6; }
23942 if test ${ac_cv_func_strerror_r_char_p+y}
23943 then :
23944 printf %s "(cached) " >&6
23945 else $as_nop
23946
23947 ac_cv_func_strerror_r_char_p=no
23948 if test $ac_cv_have_decl_strerror_r = yes; then
23949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23950 /* end confdefs.h. */
23951 #include <string.h>
23952 int
23953 main (void)
23954 {
23955
23956 char buf[100];
23957 char x = *strerror_r (0, buf, sizeof buf);
23958 char *p = strerror_r (0, buf, sizeof buf);
23959 return !p || x;
23960
23961 ;
23962 return 0;
23963 }
23964 _ACEOF
23965 if ac_fn_c_try_compile "$LINENO"
23966 then :
23967 ac_cv_func_strerror_r_char_p=yes
23968 fi
23969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23970
23971 fi
23972
23973 fi
23974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
23975 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
23976 if test $ac_cv_func_strerror_r_char_p = yes; then
23977
23978 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
23979
23980 fi
23981
23982
23983 if test "x$ac_cv_have_decl_strerror_r" != xyes
23984 then :
23985 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
23986 if test "x$ac_cv_func_strerror" = xyes
23987 then :
23988 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
23989
23990 fi
23991
23992
23993 if test "x$ac_cv_func_strerror" != xyes
23994 then :
23995 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23996 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23997 as_fn_error 1 "Missing functions: strerror_r and strerror
23998 See \`config.log' for more details" "$LINENO" 5; }
23999
24000 fi
24001
24002 fi
24003
24004 ac_cv_libcerror_CPPFLAGS="-I../libcerror -I\$(top_srcdir)/libcerror";
24005 ac_cv_libcerror_LIBADD="../libcerror/libcerror.la";
24006
24007 ac_cv_libcerror=local
24008
24009
24010
24011 printf "%s\n" "#define HAVE_LOCAL_LIBCERROR 1" >>confdefs.h
24012
24013 HAVE_LOCAL_LIBCERROR=1
24014
24015
24016 fi
24017
24018 if test "x$ac_cv_libcerror" = xlocal; then
24019 HAVE_LOCAL_LIBCERROR_TRUE=
24020 HAVE_LOCAL_LIBCERROR_FALSE='#'
24021 else
24022 HAVE_LOCAL_LIBCERROR_TRUE='#'
24023 HAVE_LOCAL_LIBCERROR_FALSE=
24024 fi
24025
24026 if test "x$ac_cv_libcerror_CPPFLAGS" != "x"
24027 then :
24028 LIBCERROR_CPPFLAGS=$ac_cv_libcerror_CPPFLAGS
24029
24030
24031 fi
24032 if test "x$ac_cv_libcerror_LIBADD" != "x"
24033 then :
24034 LIBCERROR_LIBADD=$ac_cv_libcerror_LIBADD
24035
24036
24037 fi
24038
24039 if test "x$ac_cv_libcerror" = xyes
24040 then :
24041 ax_libcerror_pc_libs_private=-lcerror
24042
24043
24044 fi
24045
24046 if test "x$ac_cv_libcerror" = xyes
24047 then :
24048 ax_libcerror_spec_requires=libcerror
24049
24050 ax_libcerror_spec_build_requires=libcerror-devel
24051
24052
24053 fi
24054
24055
24056
24057
24058
24059
24060 # Check whether --with-pyprefix was given.
24061 if test ${with_pyprefix+y}
24062 then :
24063 withval=$with_pyprefix; ac_cv_with_pyprefix=$withval
24064 else $as_nop
24065 ac_cv_with_pyprefix=no
24066 fi
24067
24068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use use \`python-config --prefix' to determine the prefix of pythondir instead of --prefix" >&5
24069 printf %s "checking whether to use use \`python-config --prefix' to determine the prefix of pythondir instead of --prefix... " >&6; }
24070 if test ${ac_cv_with_pyprefix+y}
24071 then :
24072 printf %s "(cached) " >&6
24073 else $as_nop
24074 ac_cv_with_pyprefix=no
24075 fi
24076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pyprefix" >&5
24077 printf "%s\n" "$ac_cv_with_pyprefix" >&6; }
24078
24079
24080
24081 # Check whether --enable-python was given.
24082 if test ${enable_python+y}
24083 then :
24084 enableval=$enable_python; ac_cv_enable_python=$enableval
24085 else $as_nop
24086 ac_cv_enable_python=no
24087 fi
24088
24089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable build Python bindings" >&5
24090 printf %s "checking whether to enable build Python bindings... " >&6; }
24091 if test ${ac_cv_enable_python+y}
24092 then :
24093 printf %s "(cached) " >&6
24094 else $as_nop
24095 ac_cv_enable_python=no
24096 fi
24097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_python" >&5
24098 printf "%s\n" "$ac_cv_enable_python" >&6; }
24099
24100
24101 # Check whether --with-pythondir was given.
24102 if test ${with_pythondir+y}
24103 then :
24104 withval=$with_pythondir; ac_cv_with_pythondir=$withval
24105 else $as_nop
24106 ac_cv_with_pythondir=no
24107 fi
24108
24109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use use to specify the Python directory (pythondir)" >&5
24110 printf %s "checking whether to use use to specify the Python directory (pythondir)... " >&6; }
24111 if test ${ac_cv_with_pythondir+y}
24112 then :
24113 printf %s "(cached) " >&6
24114 else $as_nop
24115 ac_cv_with_pythondir=no
24116 fi
24117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pythondir" >&5
24118 printf "%s\n" "$ac_cv_with_pythondir" >&6; }
24119
24120 if test "x${ac_cv_enable_python}" != xno
24121 then :
24122 if test "x${PYTHON_VERSION}" != x
24123 then :
24124 ax_python_progs="python${PYTHON_VERSION}"
24125 else $as_nop
24126 ax_python_progs="python python3 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5"
24127 fi
24128 for ac_prog in $ax_python_progs
24129 do
24130 # Extract the first word of "$ac_prog", so it can be a program name with args.
24131 set dummy $ac_prog; ac_word=$2
24132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24133 printf %s "checking for $ac_word... " >&6; }
24134 if test ${ac_cv_prog_PYTHON+y}
24135 then :
24136 printf %s "(cached) " >&6
24137 else $as_nop
24138 if test -n "$PYTHON"; then
24139 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
24140 else
24141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24142 for as_dir in $PATH
24143 do
24144 IFS=$as_save_IFS
24145 case $as_dir in #(((
24146 '') as_dir=./ ;;
24147 */) ;;
24148 *) as_dir=$as_dir/ ;;
24149 esac
24150 for ac_exec_ext in '' $ac_executable_extensions; do
24151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24152 ac_cv_prog_PYTHON="$ac_prog"
24153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24154 break 2
24155 fi
24156 done
24157 done
24158 IFS=$as_save_IFS
24159
24160 fi
24161 fi
24162 PYTHON=$ac_cv_prog_PYTHON
24163 if test -n "$PYTHON"; then
24164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24165 printf "%s\n" "$PYTHON" >&6; }
24166 else
24167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24168 printf "%s\n" "no" >&6; }
24169 fi
24170
24171
24172 test -n "$PYTHON" && break
24173 done
24174
24175 if test "x${PYTHON}" != x
24176 then :
24177 ax_prog_python_version=`${PYTHON} -c "import sys; sys.stdout.write('%d.%d' % (sys.version_info[0], sys.version_info[1]))" 2>/dev/null`;
24178 ax_prog_python_platform=`${PYTHON} -c "import sys; sys.stdout.write(sys.platform)" 2>/dev/null`;
24179 PYTHON_PLATFORM=$ax_prog_python_platform
24180
24181
24182 else $as_nop
24183 as_fn_error $? "Unable to find python" "$LINENO" 5
24184
24185 fi
24186 PYTHON=$PYTHON
24187
24188
24189 if test "x${PYTHON_CONFIG}" = x && test "x${PYTHON_VERSION}" != x
24190 then :
24191 for ac_prog in python${PYTHON_VERSION}-config
24192 do
24193 # Extract the first word of "$ac_prog", so it can be a program name with args.
24194 set dummy $ac_prog; ac_word=$2
24195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24196 printf %s "checking for $ac_word... " >&6; }
24197 if test ${ac_cv_prog_PYTHON_CONFIG+y}
24198 then :
24199 printf %s "(cached) " >&6
24200 else $as_nop
24201 if test -n "$PYTHON_CONFIG"; then
24202 ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
24203 else
24204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24205 for as_dir in $PATH
24206 do
24207 IFS=$as_save_IFS
24208 case $as_dir in #(((
24209 '') as_dir=./ ;;
24210 */) ;;
24211 *) as_dir=$as_dir/ ;;
24212 esac
24213 for ac_exec_ext in '' $ac_executable_extensions; do
24214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24215 ac_cv_prog_PYTHON_CONFIG="$ac_prog"
24216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24217 break 2
24218 fi
24219 done
24220 done
24221 IFS=$as_save_IFS
24222
24223 fi
24224 fi
24225 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
24226 if test -n "$PYTHON_CONFIG"; then
24227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
24228 printf "%s\n" "$PYTHON_CONFIG" >&6; }
24229 else
24230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24231 printf "%s\n" "no" >&6; }
24232 fi
24233
24234
24235 test -n "$PYTHON_CONFIG" && break
24236 done
24237
24238
24239 fi
24240 if test "x${PYTHON_CONFIG}" = x
24241 then :
24242 for ac_prog in python-config python3-config python3.12-config python3.11-config python3.10-config python3.9-config python3.8-config python3.7-config python3.6-config python3.5-config python3.4-config python3.3-config python3.2-config python3.1-config python3.0-config python2-config python2.7-config python2.6-config python2.5-config
24243 do
24244 # Extract the first word of "$ac_prog", so it can be a program name with args.
24245 set dummy $ac_prog; ac_word=$2
24246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24247 printf %s "checking for $ac_word... " >&6; }
24248 if test ${ac_cv_prog_PYTHON_CONFIG+y}
24249 then :
24250 printf %s "(cached) " >&6
24251 else $as_nop
24252 if test -n "$PYTHON_CONFIG"; then
24253 ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
24254 else
24255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24256 for as_dir in $PATH
24257 do
24258 IFS=$as_save_IFS
24259 case $as_dir in #(((
24260 '') as_dir=./ ;;
24261 */) ;;
24262 *) as_dir=$as_dir/ ;;
24263 esac
24264 for ac_exec_ext in '' $ac_executable_extensions; do
24265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24266 ac_cv_prog_PYTHON_CONFIG="$ac_prog"
24267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24268 break 2
24269 fi
24270 done
24271 done
24272 IFS=$as_save_IFS
24273
24274 fi
24275 fi
24276 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
24277 if test -n "$PYTHON_CONFIG"; then
24278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
24279 printf "%s\n" "$PYTHON_CONFIG" >&6; }
24280 else
24281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24282 printf "%s\n" "no" >&6; }
24283 fi
24284
24285
24286 test -n "$PYTHON_CONFIG" && break
24287 done
24288
24289
24290 fi
24291 if test "x${PYTHON_CONFIG}" = x
24292 then :
24293 as_fn_error $? "Unable to find python-config" "$LINENO" 5
24294
24295 fi
24296 PYTHON_CONFIG=$PYTHON_CONFIG
24297
24298
24299
24300 if test "x${PYTHON_CONFIG}" != x
24301 then :
24302 PYTHON_INCLUDES=`${PYTHON_CONFIG} --includes 2>/dev/null`;
24303
24304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24305 printf %s "checking for Python includes... " >&6; }
24306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5
24307 printf "%s\n" "$PYTHON_INCLUDES" >&6; }
24308
24309 PYTHON_LDFLAGS=`${PYTHON_CONFIG} --ldflags 2>/dev/null`;
24310
24311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python libraries" >&5
24312 printf %s "checking for Python libraries... " >&6; }
24313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
24314 printf "%s\n" "$PYTHON_LDFLAGS" >&6; }
24315
24316 case $host_os in #(
24317 cygwin*) :
24318 PYTHON_LDFLAGS="${PYTHON_LDFLAGS} -no-undefined" ;; #(
24319 *) :
24320 ;; #(
24321 *) :
24322 ;;
24323 esac
24324
24325 BACKUP_CPPFLAGS="${CPPFLAGS}"
24326 CPPFLAGS="${CPPFLAGS} ${PYTHON_INCLUDES}"
24327
24328 for ac_header in Python.h
24329 do :
24330 ac_fn_c_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
24331 if test "x$ac_cv_header_Python_h" = xyes
24332 then :
24333 printf "%s\n" "#define HAVE_PYTHON_H 1" >>confdefs.h
24334 ac_cv_header_python_h=yes
24335 else $as_nop
24336 ac_cv_header_python_h=no
24337 fi
24338
24339 done
24340
24341 CPPFLAGS="${BACKUP_CPPFLAGS}"
24342
24343 fi
24344
24345 if test "x${ac_cv_header_python_h}" != xyes
24346 then :
24347 ac_cv_enable_python=no
24348 else $as_nop
24349 ac_cv_enable_python=${ax_prog_python_version}
24350 PYTHON_CPPFLAGS=$PYTHON_INCLUDES
24351
24352
24353 PYTHON_LDFLAGS=$PYTHON_LDFLAGS
24354
24355
24356 if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno
24357 then :
24358 ax_python_prefix="\${prefix}"
24359 else $as_nop
24360 ax_python_prefix=`${PYTHON_CONFIG} --prefix 2>/dev/null`
24361 fi
24362
24363 PYTHON_PREFIX=$ax_python_prefix
24364
24365
24366 if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno
24367 then :
24368 ax_python_exec_prefix="\${exec_prefix}"
24369 else $as_nop
24370 ax_python_exec_prefix=`${PYTHON_CONFIG} --exec-prefix 2>/dev/null`
24371 fi
24372
24373 PYTHON_EXEC_PREFIX=$ax_python_exec_prefix
24374
24375
24376 ax_python_pythondir_suffix=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(0, 0, prefix=''))" 2>/dev/null`;
24377
24378 if test "x${ac_cv_with_pythondir}" = x || test "x${ac_cv_with_pythondir}" = xno
24379 then :
24380 if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno
24381 then :
24382 ax_python_pythondir="${ax_python_prefix}/${ax_python_pythondir_suffix}"
24383 else $as_nop
24384 ax_python_pythondir=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib()) " 2>/dev/null`
24385 fi
24386 else $as_nop
24387 ax_python_pythondir=$ac_cv_with_pythondir
24388 fi
24389
24390 pythondir=$ax_python_pythondir
24391
24392
24393 ax_python_pyexecdir_suffix=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(1, 0, prefix=''))" 2>/dev/null`;
24394 ax_python_library_dir=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(True)) " 2>/dev/null`;
24395
24396 if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno
24397 then :
24398 ax_python_pyexecdir="${ax_python_exec_prefix}/${ax_python_pyexecdir_suffix}"
24399 else $as_nop
24400 ax_python_pyexecdir=$ax_python_library_dir
24401 fi
24402
24403 pyexecdir=$ax_python_pyexecdir
24404
24405
24406 PYTHON_LIBRARY_DIR=$ax_python_pyexecdir_suffix
24407
24408
24409 PYTHON_PACKAGE_DIR=$ax_python_library_dir
24410
24411
24412 fi
24413
24414 fi
24415
24416 if test "x${ac_cv_enable_python}" != xno; then
24417 HAVE_PYTHON_TRUE=
24418 HAVE_PYTHON_FALSE='#'
24419 else
24420 HAVE_PYTHON_TRUE='#'
24421 HAVE_PYTHON_FALSE=
24422 fi
24423
24424
24425 if test "x${ac_cv_enable_python}" != xno; then
24426 HAVE_PYTHON_TESTS_TRUE=
24427 HAVE_PYTHON_TESTS_FALSE='#'
24428 else
24429 HAVE_PYTHON_TESTS_TRUE='#'
24430 HAVE_PYTHON_TESTS_FALSE=
24431 fi
24432
24433
24434
24435 if test "x${ac_cv_enable_python}" != xno
24436 then :
24437 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
24438 if test "x$ac_cv_header_stdarg_h" = xyes
24439 then :
24440 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
24441
24442 fi
24443 ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
24444 if test "x$ac_cv_header_varargs_h" = xyes
24445 then :
24446 printf "%s\n" "#define HAVE_VARARGS_H 1" >>confdefs.h
24447
24448 fi
24449
24450
24451 if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes
24452 then :
24453 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24454 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24455 as_fn_error 1 "Missing headers: stdarg.h and varargs.h
24456 See \`config.log' for more details" "$LINENO" 5; }
24457
24458 fi
24459
24460 fi
24461
24462 if test "x$enable_shared" = xyes
24463 then :
24464 case $host in #(
24465 *cygwin* | *mingw* | *msys*) :
24466
24467 printf "%s\n" "#define HAVE_DLLMAIN 1" >>confdefs.h
24468
24469 HAVE_DLLMAIN=1
24470
24471
24472 LIBFCRYPTO_DLL_EXPORT="-DLIBFCRYPTO_DLL_EXPORT"
24473
24474
24475 LIBFCRYPTO_DLL_IMPORT="-DLIBFCRYPTO_DLL_IMPORT"
24476
24477 ;; #(
24478 *) :
24479 ;;
24480 esac
24481
24482 fi
24483
24484
24485 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
24486 if test "x$ac_cv_header_dlfcn_h" = xyes
24487 then :
24488 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
24489
24490 fi
24491
24492
24493 ac_fn_c_check_func "$LINENO" "fmemopen" "ac_cv_func_fmemopen"
24494 if test "x$ac_cv_func_fmemopen" = xyes
24495 then :
24496 printf "%s\n" "#define HAVE_FMEMOPEN 1" >>confdefs.h
24497
24498 fi
24499 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
24500 if test "x$ac_cv_func_getopt" = xyes
24501 then :
24502 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
24503
24504 fi
24505 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
24506 if test "x$ac_cv_func_mkstemp" = xyes
24507 then :
24508 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
24509
24510 fi
24511 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
24512 if test "x$ac_cv_func_setenv" = xyes
24513 then :
24514 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
24515
24516 fi
24517 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
24518 if test "x$ac_cv_func_tzset" = xyes
24519 then :
24520 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
24521
24522 fi
24523 ac_fn_c_check_func "$LINENO" "unlink" "ac_cv_func_unlink"
24524 if test "x$ac_cv_func_unlink" = xyes
24525 then :
24526 printf "%s\n" "#define HAVE_UNLINK 1" >>confdefs.h
24527
24528 fi
24529
24530
24531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
24532 printf %s "checking for dlsym in -ldl... " >&6; }
24533 if test ${ac_cv_lib_dl_dlsym+y}
24534 then :
24535 printf %s "(cached) " >&6
24536 else $as_nop
24537 ac_check_lib_save_LIBS=$LIBS
24538 LIBS="-ldl $LIBS"
24539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24540 /* end confdefs.h. */
24541
24542 /* Override any GCC internal prototype to avoid an error.
24543 Use char because int might match the return type of a GCC
24544 builtin and then its argument prototype would still apply. */
24545 char dlsym ();
24546 int
24547 main (void)
24548 {
24549 return dlsym ();
24550 ;
24551 return 0;
24552 }
24553 _ACEOF
24554 if ac_fn_c_try_link "$LINENO"
24555 then :
24556 ac_cv_lib_dl_dlsym=yes
24557 else $as_nop
24558 ac_cv_lib_dl_dlsym=no
24559 fi
24560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24561 conftest$ac_exeext conftest.$ac_ext
24562 LIBS=$ac_check_lib_save_LIBS
24563 fi
24564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
24565 printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; }
24566 if test "x$ac_cv_lib_dl_dlsym" = xyes
24567 then :
24568 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
24569
24570 LIBS="-ldl $LIBS"
24571
24572 fi
24573
24574
24575 if test "x$lt_cv_prog_gnu_ld" = xyes && test "x$ac_cv_lib_dl_dlsym" = xyes
24576 then :
24577
24578 printf "%s\n" "#define HAVE_GNU_DL_DLSYM 1" >>confdefs.h
24579
24580
24581 fi
24582
24583 if test "x${LIB_FUZZING_ENGINE}" != x; then
24584 HAVE_LIB_FUZZING_ENGINE_TRUE=
24585 HAVE_LIB_FUZZING_ENGINE_FALSE='#'
24586 else
24587 HAVE_LIB_FUZZING_ENGINE_TRUE='#'
24588 HAVE_LIB_FUZZING_ENGINE_FALSE=
24589 fi
24590
24591 LIB_FUZZING_ENGINE="${LIB_FUZZING_ENGINE}"
24592
24593
24594
24595 CFLAGS="$CFLAGS -Wall";
24596
24597 if test "x$ac_cv_libcerror" = xyes
24598 then :
24599 libfcrypto_spec_requires=Requires:
24600
24601
24602 fi
24603
24604 DPKG_DATE=`date -R 2> /dev/null`
24605
24606
24607 SPEC_DATE=`date +"%a %b %e %Y" 2> /dev/null`
24608
24609
24610 ac_config_files="$ac_config_files Makefile"
24611
24612 ac_config_files="$ac_config_files include/Makefile"
24613
24614 ac_config_files="$ac_config_files common/Makefile"
24615
24616 ac_config_files="$ac_config_files libcerror/Makefile"
24617
24618 ac_config_files="$ac_config_files libfcrypto/Makefile"
24619
24620 ac_config_files="$ac_config_files pyfcrypto/Makefile"
24621
24622 ac_config_files="$ac_config_files po/Makefile.in"
24623
24624 ac_config_files="$ac_config_files po/Makevars"
24625
24626 ac_config_files="$ac_config_files manuals/Makefile"
24627
24628 ac_config_files="$ac_config_files tests/Makefile"
24629
24630 ac_config_files="$ac_config_files ossfuzz/Makefile"
24631
24632 ac_config_files="$ac_config_files msvscpp/Makefile"
24633
24634 ac_config_files="$ac_config_files include/libfcrypto.h"
24635
24636 ac_config_files="$ac_config_files include/libfcrypto/definitions.h"
24637
24638 ac_config_files="$ac_config_files include/libfcrypto/features.h"
24639
24640 ac_config_files="$ac_config_files include/libfcrypto/types.h"
24641
24642 ac_config_files="$ac_config_files libfcrypto/libfcrypto_definitions.h"
24643
24644 ac_config_files="$ac_config_files common/types.h"
24645
24646 ac_config_files="$ac_config_files dpkg/changelog"
24647
24648 ac_config_files="$ac_config_files libfcrypto/libfcrypto.rc"
24649
24650 ac_config_files="$ac_config_files libfcrypto.pc"
24651
24652 ac_config_files="$ac_config_files libfcrypto.spec"
24653
24654 ac_config_files="$ac_config_files setup.cfg"
24655
24656 ac_config_headers="$ac_config_headers common/config.h"
24657
24658
24659 cat >confcache <<\_ACEOF
24660 # This file is a shell script that caches the results of configure
24661 # tests run on this system so they can be shared between configure
24662 # scripts and configure runs, see configure's option --config-cache.
24663 # It is not useful on other systems. If it contains results you don't
24664 # want to keep, you may remove or edit it.
24665 #
24666 # config.status only pays attention to the cache file if you give it
24667 # the --recheck option to rerun configure.
24668 #
24669 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24670 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24671 # following values.
24672
24673 _ACEOF
24674
24675 # The following way of writing the cache mishandles newlines in values,
24676 # but we know of no workaround that is simple, portable, and efficient.
24677 # So, we kill variables containing newlines.
24678 # Ultrix sh set writes to stderr and can't be redirected directly,
24679 # and sets the high bit in the cache file unless we assign to the vars.
24680 (
24681 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24682 eval ac_val=\$$ac_var
24683 case $ac_val in #(
24684 *${as_nl}*)
24685 case $ac_var in #(
24686 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24687 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24688 esac
24689 case $ac_var in #(
24690 _ | IFS | as_nl) ;; #(
24691 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24692 *) { eval $ac_var=; unset $ac_var;} ;;
24693 esac ;;
24694 esac
24695 done
24696
24697 (set) 2>&1 |
24698 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24699 *${as_nl}ac_space=\ *)
24700 # `set' does not quote correctly, so add quotes: double-quote
24701 # substitution turns \\\\ into \\, and sed turns \\ into \.
24702 sed -n \
24703 "s/'/'\\\\''/g;
24704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24705 ;; #(
24706 *)
24707 # `set' quotes correctly as required by POSIX, so do not add quotes.
24708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24709 ;;
24710 esac |
24711 sort
24712 ) |
24713 sed '
24714 /^ac_cv_env_/b end
24715 t clear
24716 :clear
24717 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
24718 t end
24719 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24720 :end' >>confcache
24721 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24722 if test -w "$cache_file"; then
24723 if test "x$cache_file" != "x/dev/null"; then
24724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24725 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
24726 if test ! -f "$cache_file" || test -h "$cache_file"; then
24727 cat confcache >"$cache_file"
24728 else
24729 case $cache_file in #(
24730 */* | ?:*)
24731 mv -f confcache "$cache_file"$$ &&
24732 mv -f "$cache_file"$$ "$cache_file" ;; #(
24733 *)
24734 mv -f confcache "$cache_file" ;;
24735 esac
24736 fi
24737 fi
24738 else
24739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24740 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
24741 fi
24742 fi
24743 rm -f confcache
24744
24745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24746 # Let make expand exec_prefix.
24747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24748
24749 DEFS=-DHAVE_CONFIG_H
24750
24751 ac_libobjs=
24752 ac_ltlibobjs=
24753 U=
24754 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24755 # 1. Remove the extension, and $U if already installed.
24756 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24757 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
24758 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24759 # will be set to the directory where LIBOBJS objects are built.
24760 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24761 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24762 done
24763 LIBOBJS=$ac_libobjs
24764
24765 LTLIBOBJS=$ac_ltlibobjs
24766
24767
24768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24769 printf %s "checking that generated files are newer than configure... " >&6; }
24770 if test -n "$am_sleep_pid"; then
24771 # Hide warnings about reused PIDs.
24772 wait $am_sleep_pid 2>/dev/null
24773 fi
24774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
24775 printf "%s\n" "done" >&6; }
24776 if test -n "$EXEEXT"; then
24777 am__EXEEXT_TRUE=
24778 am__EXEEXT_FALSE='#'
24779 else
24780 am__EXEEXT_TRUE='#'
24781 am__EXEEXT_FALSE=
24782 fi
24783
24784 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24785 as_fn_error $? "conditional \"AMDEP\" was never defined.
24786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24787 fi
24788 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24789 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24791 fi
24792 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24793 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24795 fi
24796 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24797 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24799 fi
24800 if test -z "${HAVE_LOCAL_LIBCERROR_TRUE}" && test -z "${HAVE_LOCAL_LIBCERROR_FALSE}"; then
24801 as_fn_error $? "conditional \"HAVE_LOCAL_LIBCERROR\" was never defined.
24802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24803 fi
24804 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
24805 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
24806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24807 fi
24808 if test -z "${HAVE_PYTHON_TESTS_TRUE}" && test -z "${HAVE_PYTHON_TESTS_FALSE}"; then
24809 as_fn_error $? "conditional \"HAVE_PYTHON_TESTS\" was never defined.
24810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24811 fi
24812 if test -z "${HAVE_LIB_FUZZING_ENGINE_TRUE}" && test -z "${HAVE_LIB_FUZZING_ENGINE_FALSE}"; then
24813 as_fn_error $? "conditional \"HAVE_LIB_FUZZING_ENGINE\" was never defined.
24814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24815 fi
24816
24817 : "${CONFIG_STATUS=./config.status}"
24818 ac_write_fail=0
24819 ac_clean_files_save=$ac_clean_files
24820 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24822 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
24823 as_write_fail=0
24824 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24825 #! $SHELL
24826 # Generated by $as_me.
24827 # Run this file to recreate the current configuration.
24828 # Compiler output produced by configure, useful for debugging
24829 # configure, is in config.log if it exists.
24830
24831 debug=false
24832 ac_cs_recheck=false
24833 ac_cs_silent=false
24834
24835 SHELL=\${CONFIG_SHELL-$SHELL}
24836 export SHELL
24837 _ASEOF
24838 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24839 ## -------------------- ##
24840 ## M4sh Initialization. ##
24841 ## -------------------- ##
24842
24843 # Be more Bourne compatible
24844 DUALCASE=1; export DUALCASE # for MKS sh
24845 as_nop=:
24846 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
24847 then :
24848 emulate sh
24849 NULLCMD=:
24850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24851 # is contrary to our usage. Disable this feature.
24852 alias -g '${1+"$@"}'='"$@"'
24853 setopt NO_GLOB_SUBST
24854 else $as_nop
24855 case `(set -o) 2>/dev/null` in #(
24856 *posix*) :
24857 set -o posix ;; #(
24858 *) :
24859 ;;
24860 esac
24861 fi
24862
24863
24864
24865 # Reset variables that may have inherited troublesome values from
24866 # the environment.
24867
24868 # IFS needs to be set, to space, tab, and newline, in precisely that order.
24869 # (If _AS_PATH_WALK were called with IFS unset, it would have the
24870 # side effect of setting IFS to empty, thus disabling word splitting.)
24871 # Quoting is to prevent editors from complaining about space-tab.
24872 as_nl='
24873 '
24874 export as_nl
24875 IFS=" "" $as_nl"
24876
24877 PS1='$ '
24878 PS2='> '
24879 PS4='+ '
24880
24881 # Ensure predictable behavior from utilities with locale-dependent output.
24882 LC_ALL=C
24883 export LC_ALL
24884 LANGUAGE=C
24885 export LANGUAGE
24886
24887 # We cannot yet rely on "unset" to work, but we need these variables
24888 # to be unset--not just set to an empty or harmless value--now, to
24889 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
24890 # also avoids known problems related to "unset" and subshell syntax
24891 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
24892 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
24893 do eval test \${$as_var+y} \
24894 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24895 done
24896
24897 # Ensure that fds 0, 1, and 2 are open.
24898 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
24899 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
24900 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
24901
24902 # The user is always right.
24903 if ${PATH_SEPARATOR+false} :; then
24904 PATH_SEPARATOR=:
24905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24907 PATH_SEPARATOR=';'
24908 }
24909 fi
24910
24911
24912 # Find who we are. Look in the path if we contain no directory separator.
24913 as_myself=
24914 case $0 in #((
24915 *[\\/]* ) as_myself=$0 ;;
24916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24917 for as_dir in $PATH
24918 do
24919 IFS=$as_save_IFS
24920 case $as_dir in #(((
24921 '') as_dir=./ ;;
24922 */) ;;
24923 *) as_dir=$as_dir/ ;;
24924 esac
24925 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
24926 done
24927 IFS=$as_save_IFS
24928
24929 ;;
24930 esac
24931 # We did not find ourselves, most probably we were run as `sh COMMAND'
24932 # in which case we are not to be found in the path.
24933 if test "x$as_myself" = x; then
24934 as_myself=$0
24935 fi
24936 if test ! -f "$as_myself"; then
24937 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24938 exit 1
24939 fi
24940
24941
24942
24943 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24944 # ----------------------------------------
24945 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24946 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24947 # script with STATUS, using 1 if that was 0.
24948 as_fn_error ()
24949 {
24950 as_status=$1; test $as_status -eq 0 && as_status=1
24951 if test "$4"; then
24952 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24954 fi
24955 printf "%s\n" "$as_me: error: $2" >&2
24956 as_fn_exit $as_status
24957 } # as_fn_error
24958
24959
24960
24961 # as_fn_set_status STATUS
24962 # -----------------------
24963 # Set $? to STATUS, without forking.
24964 as_fn_set_status ()
24965 {
24966 return $1
24967 } # as_fn_set_status
24968
24969 # as_fn_exit STATUS
24970 # -----------------
24971 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24972 as_fn_exit ()
24973 {
24974 set +e
24975 as_fn_set_status $1
24976 exit $1
24977 } # as_fn_exit
24978
24979 # as_fn_unset VAR
24980 # ---------------
24981 # Portably unset VAR.
24982 as_fn_unset ()
24983 {
24984 { eval $1=; unset $1;}
24985 }
24986 as_unset=as_fn_unset
24987
24988 # as_fn_append VAR VALUE
24989 # ----------------------
24990 # Append the text in VALUE to the end of the definition contained in VAR. Take
24991 # advantage of any shell optimizations that allow amortized linear growth over
24992 # repeated appends, instead of the typical quadratic growth present in naive
24993 # implementations.
24994 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
24995 then :
24996 eval 'as_fn_append ()
24997 {
24998 eval $1+=\$2
24999 }'
25000 else $as_nop
25001 as_fn_append ()
25002 {
25003 eval $1=\$$1\$2
25004 }
25005 fi # as_fn_append
25006
25007 # as_fn_arith ARG...
25008 # ------------------
25009 # Perform arithmetic evaluation on the ARGs, and store the result in the
25010 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25011 # must be portable across $(()) and expr.
25012 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
25013 then :
25014 eval 'as_fn_arith ()
25015 {
25016 as_val=$(( $* ))
25017 }'
25018 else $as_nop
25019 as_fn_arith ()
25020 {
25021 as_val=`expr "$@" || test $? -eq 1`
25022 }
25023 fi # as_fn_arith
25024
25025
25026 if expr a : '\(a\)' >/dev/null 2>&1 &&
25027 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25028 as_expr=expr
25029 else
25030 as_expr=false
25031 fi
25032
25033 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25034 as_basename=basename
25035 else
25036 as_basename=false
25037 fi
25038
25039 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25040 as_dirname=dirname
25041 else
25042 as_dirname=false
25043 fi
25044
25045 as_me=`$as_basename -- "$0" ||
25046 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25047 X"$0" : 'X\(//\)$' \| \
25048 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25049 printf "%s\n" X/"$0" |
25050 sed '/^.*\/\([^/][^/]*\)\/*$/{
25051 s//\1/
25052 q
25053 }
25054 /^X\/\(\/\/\)$/{
25055 s//\1/
25056 q
25057 }
25058 /^X\/\(\/\).*/{
25059 s//\1/
25060 q
25061 }
25062 s/.*/./; q'`
25063
25064 # Avoid depending upon Character Ranges.
25065 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25066 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25067 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25068 as_cr_digits='0123456789'
25069 as_cr_alnum=$as_cr_Letters$as_cr_digits
25070
25071
25072 # Determine whether it's possible to make 'echo' print without a newline.
25073 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
25074 # for compatibility with existing Makefiles.
25075 ECHO_C= ECHO_N= ECHO_T=
25076 case `echo -n x` in #(((((
25077 -n*)
25078 case `echo 'xy\c'` in
25079 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25080 xy) ECHO_C='\c';;
25081 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25082 ECHO_T=' ';;
25083 esac;;
25084 *)
25085 ECHO_N='-n';;
25086 esac
25087
25088 # For backward compatibility with old third-party macros, we provide
25089 # the shell variables $as_echo and $as_echo_n. New code should use
25090 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
25091 as_echo='printf %s\n'
25092 as_echo_n='printf %s'
25093
25094 rm -f conf$$ conf$$.exe conf$$.file
25095 if test -d conf$$.dir; then
25096 rm -f conf$$.dir/conf$$.file
25097 else
25098 rm -f conf$$.dir
25099 mkdir conf$$.dir 2>/dev/null
25100 fi
25101 if (echo >conf$$.file) 2>/dev/null; then
25102 if ln -s conf$$.file conf$$ 2>/dev/null; then
25103 as_ln_s='ln -s'
25104 # ... but there are two gotchas:
25105 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25106 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25107 # In both cases, we have to default to `cp -pR'.
25108 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25109 as_ln_s='cp -pR'
25110 elif ln conf$$.file conf$$ 2>/dev/null; then
25111 as_ln_s=ln
25112 else
25113 as_ln_s='cp -pR'
25114 fi
25115 else
25116 as_ln_s='cp -pR'
25117 fi
25118 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25119 rmdir conf$$.dir 2>/dev/null
25120
25121
25122 # as_fn_mkdir_p
25123 # -------------
25124 # Create "$as_dir" as a directory, including parents if necessary.
25125 as_fn_mkdir_p ()
25126 {
25127
25128 case $as_dir in #(
25129 -*) as_dir=./$as_dir;;
25130 esac
25131 test -d "$as_dir" || eval $as_mkdir_p || {
25132 as_dirs=
25133 while :; do
25134 case $as_dir in #(
25135 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25136 *) as_qdir=$as_dir;;
25137 esac
25138 as_dirs="'$as_qdir' $as_dirs"
25139 as_dir=`$as_dirname -- "$as_dir" ||
25140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25141 X"$as_dir" : 'X\(//\)[^/]' \| \
25142 X"$as_dir" : 'X\(//\)$' \| \
25143 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25144 printf "%s\n" X"$as_dir" |
25145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25146 s//\1/
25147 q
25148 }
25149 /^X\(\/\/\)[^/].*/{
25150 s//\1/
25151 q
25152 }
25153 /^X\(\/\/\)$/{
25154 s//\1/
25155 q
25156 }
25157 /^X\(\/\).*/{
25158 s//\1/
25159 q
25160 }
25161 s/.*/./; q'`
25162 test -d "$as_dir" && break
25163 done
25164 test -z "$as_dirs" || eval "mkdir $as_dirs"
25165 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25166
25167
25168 } # as_fn_mkdir_p
25169 if mkdir -p . 2>/dev/null; then
25170 as_mkdir_p='mkdir -p "$as_dir"'
25171 else
25172 test -d ./-p && rmdir ./-p
25173 as_mkdir_p=false
25174 fi
25175
25176
25177 # as_fn_executable_p FILE
25178 # -----------------------
25179 # Test if FILE is an executable regular file.
25180 as_fn_executable_p ()
25181 {
25182 test -f "$1" && test -x "$1"
25183 } # as_fn_executable_p
25184 as_test_x='test -x'
25185 as_executable_p=as_fn_executable_p
25186
25187 # Sed expression to map a string onto a valid CPP name.
25188 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25189
25190 # Sed expression to map a string onto a valid variable name.
25191 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25192
25193
25194 exec 6>&1
25195 ## ----------------------------------- ##
25196 ## Main body of $CONFIG_STATUS script. ##
25197 ## ----------------------------------- ##
25198 _ASEOF
25199 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25200
25201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25202 # Save the log message, to keep $0 and so on meaningful, and to
25203 # report actual input values of CONFIG_FILES etc. instead of their
25204 # values after options handling.
25205 ac_log="
25206 This file was extended by libfcrypto $as_me 20240414, which was
25207 generated by GNU Autoconf 2.71. Invocation command line was
25208
25209 CONFIG_FILES = $CONFIG_FILES
25210 CONFIG_HEADERS = $CONFIG_HEADERS
25211 CONFIG_LINKS = $CONFIG_LINKS
25212 CONFIG_COMMANDS = $CONFIG_COMMANDS
25213 $ $0 $@
25214
25215 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25216 "
25217
25218 _ACEOF
25219
25220 case $ac_config_files in *"
25221 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25222 esac
25223
25224 case $ac_config_headers in *"
25225 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25226 esac
25227
25228
25229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25230 # Files that config.status was made for.
25231 config_files="$ac_config_files"
25232 config_headers="$ac_config_headers"
25233 config_commands="$ac_config_commands"
25234
25235 _ACEOF
25236
25237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25238 ac_cs_usage="\
25239 \`$as_me' instantiates files and other configuration actions
25240 from templates according to the current configuration. Unless the files
25241 and actions are specified as TAGs, all are instantiated by default.
25242
25243 Usage: $0 [OPTION]... [TAG]...
25244
25245 -h, --help print this help, then exit
25246 -V, --version print version number and configuration settings, then exit
25247 --config print configuration, then exit
25248 -q, --quiet, --silent
25249 do not print progress messages
25250 -d, --debug don't remove temporary files
25251 --recheck update $as_me by reconfiguring in the same conditions
25252 --file=FILE[:TEMPLATE]
25253 instantiate the configuration file FILE
25254 --header=FILE[:TEMPLATE]
25255 instantiate the configuration header FILE
25256
25257 Configuration files:
25258 $config_files
25259
25260 Configuration headers:
25261 $config_headers
25262
25263 Configuration commands:
25264 $config_commands
25265
25266 Report bugs to <[email protected]>."
25267
25268 _ACEOF
25269 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
25270 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
25271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25272 ac_cs_config='$ac_cs_config_escaped'
25273 ac_cs_version="\\
25274 libfcrypto config.status 20240414
25275 configured by $0, generated by GNU Autoconf 2.71,
25276 with options \\"\$ac_cs_config\\"
25277
25278 Copyright (C) 2021 Free Software Foundation, Inc.
25279 This config.status script is free software; the Free Software Foundation
25280 gives unlimited permission to copy, distribute and modify it."
25281
25282 ac_pwd='$ac_pwd'
25283 srcdir='$srcdir'
25284 INSTALL='$INSTALL'
25285 MKDIR_P='$MKDIR_P'
25286 AWK='$AWK'
25287 test -n "\$AWK" || AWK=awk
25288 _ACEOF
25289
25290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25291 # The default lists apply if the user does not specify any file.
25292 ac_need_defaults=:
25293 while test $# != 0
25294 do
25295 case $1 in
25296 --*=?*)
25297 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25298 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25299 ac_shift=:
25300 ;;
25301 --*=)
25302 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25303 ac_optarg=
25304 ac_shift=:
25305 ;;
25306 *)
25307 ac_option=$1
25308 ac_optarg=$2
25309 ac_shift=shift
25310 ;;
25311 esac
25312
25313 case $ac_option in
25314 # Handling of the options.
25315 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25316 ac_cs_recheck=: ;;
25317 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25318 printf "%s\n" "$ac_cs_version"; exit ;;
25319 --config | --confi | --conf | --con | --co | --c )
25320 printf "%s\n" "$ac_cs_config"; exit ;;
25321 --debug | --debu | --deb | --de | --d | -d )
25322 debug=: ;;
25323 --file | --fil | --fi | --f )
25324 $ac_shift
25325 case $ac_optarg in
25326 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25327 '') as_fn_error $? "missing file argument" ;;
25328 esac
25329 as_fn_append CONFIG_FILES " '$ac_optarg'"
25330 ac_need_defaults=false;;
25331 --header | --heade | --head | --hea )
25332 $ac_shift
25333 case $ac_optarg in
25334 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25335 esac
25336 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25337 ac_need_defaults=false;;
25338 --he | --h)
25339 # Conflict between --help and --header
25340 as_fn_error $? "ambiguous option: \`$1'
25341 Try \`$0 --help' for more information.";;
25342 --help | --hel | -h )
25343 printf "%s\n" "$ac_cs_usage"; exit ;;
25344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25346 ac_cs_silent=: ;;
25347
25348 # This is an error.
25349 -*) as_fn_error $? "unrecognized option: \`$1'
25350 Try \`$0 --help' for more information." ;;
25351
25352 *) as_fn_append ac_config_targets " $1"
25353 ac_need_defaults=false ;;
25354
25355 esac
25356 shift
25357 done
25358
25359 ac_configure_extra_args=
25360
25361 if $ac_cs_silent; then
25362 exec 6>/dev/null
25363 ac_configure_extra_args="$ac_configure_extra_args --silent"
25364 fi
25365
25366 _ACEOF
25367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25368 if \$ac_cs_recheck; then
25369 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25370 shift
25371 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
25372 CONFIG_SHELL='$SHELL'
25373 export CONFIG_SHELL
25374 exec "\$@"
25375 fi
25376
25377 _ACEOF
25378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25379 exec 5>>config.log
25380 {
25381 echo
25382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25383 ## Running $as_me. ##
25384 _ASBOX
25385 printf "%s\n" "$ac_log"
25386 } >&5
25387
25388 _ACEOF
25389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25390 #
25391 # INIT-COMMANDS
25392 #
25393 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25394
25395
25396 # The HP-UX ksh and POSIX shell print the target directory to stdout
25397 # if CDPATH is set.
25398 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25399
25400 sed_quote_subst='$sed_quote_subst'
25401 double_quote_subst='$double_quote_subst'
25402 delay_variable_subst='$delay_variable_subst'
25403 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25404 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25405 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
25406 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25407 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25408 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25409 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25410 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25411 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25412 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25413 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25414 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25415 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25416 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25417 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25418 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25419 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25420 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25421 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25422 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25423 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25424 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25425 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25426 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25427 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25428 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25429 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25430 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25431 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25432 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25433 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25434 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25435 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25436 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25437 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25438 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25439 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25440 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
25441 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25442 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25443 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25444 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25445 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25446 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25447 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
25448 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25449 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25450 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25451 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25452 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25453 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25454 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25455 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25456 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25457 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25458 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25459 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25460 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25461 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25462 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25463 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25464 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"`'
25465 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25466 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25467 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25468 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25469 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25470 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25471 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25472 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25473 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25474 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25475 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25476 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25477 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25478 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25479 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25480 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25481 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25482 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25483 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25484 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25485 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25486 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25487 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25488 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25489 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25490 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25491 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25492 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25493 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25494 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25495 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25496 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25497 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25498 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25499 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25500 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25501 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25502 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25503 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25504 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25505 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25506 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25507 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25508 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25509 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25510 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25511 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25512 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25513 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25514 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25515 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25516 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25517 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25518 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25519 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25520 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25521 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25522 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25523 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25524 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25525 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25526 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25527 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25528 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25529 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25530 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25531 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25532 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25533 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25534 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25535 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25536 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25537 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25538 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25539 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25540 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25541 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25542 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25543 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25544 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25545 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25546 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25547 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25548 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25549 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25550 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25551 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25552 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25553 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25554 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25555 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25556 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25557 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25558 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25559 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25560 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25561 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25562 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25563 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25564 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25565 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25566 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25567 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25568 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25569 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25570 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25571 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25572 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25573 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25574 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25575 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25576 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25577 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25578 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25579 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25580 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25581 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25582 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25583 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25584 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25585 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25586 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25587 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25588 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25589 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25590 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25591 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25592 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25593 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25594 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25595
25596 LTCC='$LTCC'
25597 LTCFLAGS='$LTCFLAGS'
25598 compiler='$compiler_DEFAULT'
25599
25600 # A function that is used when there is no print builtin or printf.
25601 func_fallback_echo ()
25602 {
25603 eval 'cat <<_LTECHO_EOF
25604 \$1
25605 _LTECHO_EOF'
25606 }
25607
25608 # Quote evaled strings.
25609 for var in AS \
25610 DLLTOOL \
25611 OBJDUMP \
25612 SHELL \
25613 ECHO \
25614 PATH_SEPARATOR \
25615 SED \
25616 GREP \
25617 EGREP \
25618 FGREP \
25619 LD \
25620 NM \
25621 LN_S \
25622 lt_SP2NL \
25623 lt_NL2SP \
25624 reload_flag \
25625 FILECMD \
25626 deplibs_check_method \
25627 file_magic_cmd \
25628 file_magic_glob \
25629 want_nocaseglob \
25630 sharedlib_from_linklib_cmd \
25631 AR \
25632 archiver_list_spec \
25633 STRIP \
25634 RANLIB \
25635 CC \
25636 CFLAGS \
25637 compiler \
25638 lt_cv_sys_global_symbol_pipe \
25639 lt_cv_sys_global_symbol_to_cdecl \
25640 lt_cv_sys_global_symbol_to_import \
25641 lt_cv_sys_global_symbol_to_c_name_address \
25642 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25643 lt_cv_nm_interface \
25644 nm_file_list_spec \
25645 lt_cv_truncate_bin \
25646 lt_prog_compiler_no_builtin_flag \
25647 lt_prog_compiler_pic \
25648 lt_prog_compiler_wl \
25649 lt_prog_compiler_static \
25650 lt_cv_prog_compiler_c_o \
25651 need_locks \
25652 MANIFEST_TOOL \
25653 DSYMUTIL \
25654 NMEDIT \
25655 LIPO \
25656 OTOOL \
25657 OTOOL64 \
25658 shrext_cmds \
25659 export_dynamic_flag_spec \
25660 whole_archive_flag_spec \
25661 compiler_needs_object \
25662 with_gnu_ld \
25663 allow_undefined_flag \
25664 no_undefined_flag \
25665 hardcode_libdir_flag_spec \
25666 hardcode_libdir_separator \
25667 exclude_expsyms \
25668 include_expsyms \
25669 file_list_spec \
25670 variables_saved_for_relink \
25671 libname_spec \
25672 library_names_spec \
25673 soname_spec \
25674 install_override_mode \
25675 finish_eval \
25676 old_striplib \
25677 striplib \
25678 compiler_lib_search_dirs \
25679 predep_objects \
25680 postdep_objects \
25681 predeps \
25682 postdeps \
25683 compiler_lib_search_path \
25684 LD_CXX \
25685 reload_flag_CXX \
25686 compiler_CXX \
25687 lt_prog_compiler_no_builtin_flag_CXX \
25688 lt_prog_compiler_pic_CXX \
25689 lt_prog_compiler_wl_CXX \
25690 lt_prog_compiler_static_CXX \
25691 lt_cv_prog_compiler_c_o_CXX \
25692 export_dynamic_flag_spec_CXX \
25693 whole_archive_flag_spec_CXX \
25694 compiler_needs_object_CXX \
25695 with_gnu_ld_CXX \
25696 allow_undefined_flag_CXX \
25697 no_undefined_flag_CXX \
25698 hardcode_libdir_flag_spec_CXX \
25699 hardcode_libdir_separator_CXX \
25700 exclude_expsyms_CXX \
25701 include_expsyms_CXX \
25702 file_list_spec_CXX \
25703 compiler_lib_search_dirs_CXX \
25704 predep_objects_CXX \
25705 postdep_objects_CXX \
25706 predeps_CXX \
25707 postdeps_CXX \
25708 compiler_lib_search_path_CXX; do
25709 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25710 *[\\\\\\\`\\"\\\$]*)
25711 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25712 ;;
25713 *)
25714 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25715 ;;
25716 esac
25717 done
25718
25719 # Double-quote double-evaled strings.
25720 for var in reload_cmds \
25721 old_postinstall_cmds \
25722 old_postuninstall_cmds \
25723 old_archive_cmds \
25724 extract_expsyms_cmds \
25725 old_archive_from_new_cmds \
25726 old_archive_from_expsyms_cmds \
25727 archive_cmds \
25728 archive_expsym_cmds \
25729 module_cmds \
25730 module_expsym_cmds \
25731 export_symbols_cmds \
25732 prelink_cmds \
25733 postlink_cmds \
25734 postinstall_cmds \
25735 postuninstall_cmds \
25736 finish_cmds \
25737 sys_lib_search_path_spec \
25738 configure_time_dlsearch_path \
25739 configure_time_lt_sys_library_path \
25740 reload_cmds_CXX \
25741 old_archive_cmds_CXX \
25742 old_archive_from_new_cmds_CXX \
25743 old_archive_from_expsyms_cmds_CXX \
25744 archive_cmds_CXX \
25745 archive_expsym_cmds_CXX \
25746 module_cmds_CXX \
25747 module_expsym_cmds_CXX \
25748 export_symbols_cmds_CXX \
25749 prelink_cmds_CXX \
25750 postlink_cmds_CXX; do
25751 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25752 *[\\\\\\\`\\"\\\$]*)
25753 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25754 ;;
25755 *)
25756 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25757 ;;
25758 esac
25759 done
25760
25761 ac_aux_dir='$ac_aux_dir'
25762
25763 # See if we are running on zsh, and set the options that allow our
25764 # commands through without removal of \ escapes INIT.
25765 if test -n "\${ZSH_VERSION+set}"; then
25766 setopt NO_GLOB_SUBST
25767 fi
25768
25769
25770 PACKAGE='$PACKAGE'
25771 VERSION='$VERSION'
25772 RM='$RM'
25773 ofile='$ofile'
25774
25775
25776
25777
25778
25779 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
25780 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
25781 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
25782 # Capture the value of LINGUAS because we need it to compute CATALOGS.
25783 LINGUAS="${LINGUAS-%UNSET%}"
25784
25785
25786 _ACEOF
25787
25788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25789
25790 # Handling of arguments.
25791 for ac_config_target in $ac_config_targets
25792 do
25793 case $ac_config_target in
25794 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25795 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25796 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
25797 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25798 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25799 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
25800 "libcerror/Makefile") CONFIG_FILES="$CONFIG_FILES libcerror/Makefile" ;;
25801 "libfcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES libfcrypto/Makefile" ;;
25802 "pyfcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES pyfcrypto/Makefile" ;;
25803 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
25804 "po/Makevars") CONFIG_FILES="$CONFIG_FILES po/Makevars" ;;
25805 "manuals/Makefile") CONFIG_FILES="$CONFIG_FILES manuals/Makefile" ;;
25806 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25807 "ossfuzz/Makefile") CONFIG_FILES="$CONFIG_FILES ossfuzz/Makefile" ;;
25808 "msvscpp/Makefile") CONFIG_FILES="$CONFIG_FILES msvscpp/Makefile" ;;
25809 "include/libfcrypto.h") CONFIG_FILES="$CONFIG_FILES include/libfcrypto.h" ;;
25810 "include/libfcrypto/definitions.h") CONFIG_FILES="$CONFIG_FILES include/libfcrypto/definitions.h" ;;
25811 "include/libfcrypto/features.h") CONFIG_FILES="$CONFIG_FILES include/libfcrypto/features.h" ;;
25812 "include/libfcrypto/types.h") CONFIG_FILES="$CONFIG_FILES include/libfcrypto/types.h" ;;
25813 "libfcrypto/libfcrypto_definitions.h") CONFIG_FILES="$CONFIG_FILES libfcrypto/libfcrypto_definitions.h" ;;
25814 "common/types.h") CONFIG_FILES="$CONFIG_FILES common/types.h" ;;
25815 "dpkg/changelog") CONFIG_FILES="$CONFIG_FILES dpkg/changelog" ;;
25816 "libfcrypto/libfcrypto.rc") CONFIG_FILES="$CONFIG_FILES libfcrypto/libfcrypto.rc" ;;
25817 "libfcrypto.pc") CONFIG_FILES="$CONFIG_FILES libfcrypto.pc" ;;
25818 "libfcrypto.spec") CONFIG_FILES="$CONFIG_FILES libfcrypto.spec" ;;
25819 "setup.cfg") CONFIG_FILES="$CONFIG_FILES setup.cfg" ;;
25820 "common/config.h") CONFIG_HEADERS="$CONFIG_HEADERS common/config.h" ;;
25821
25822 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25823 esac
25824 done
25825
25826
25827 # If the user did not use the arguments to specify the items to instantiate,
25828 # then the envvar interface is used. Set only those that are not.
25829 # We use the long form for the default assignment because of an extremely
25830 # bizarre bug on SunOS 4.1.3.
25831 if $ac_need_defaults; then
25832 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
25833 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
25834 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
25835 fi
25836
25837 # Have a temporary directory for convenience. Make it in the build tree
25838 # simply because there is no reason against having it here, and in addition,
25839 # creating and moving files from /tmp can sometimes cause problems.
25840 # Hook for its removal unless debugging.
25841 # Note that there is a small window in which the directory will not be cleaned:
25842 # after its creation but before its name has been assigned to `$tmp'.
25843 $debug ||
25844 {
25845 tmp= ac_tmp=
25846 trap 'exit_status=$?
25847 : "${ac_tmp:=$tmp}"
25848 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25849 ' 0
25850 trap 'as_fn_exit 1' 1 2 13 15
25851 }
25852 # Create a (secure) tmp directory for tmp files.
25853
25854 {
25855 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25856 test -d "$tmp"
25857 } ||
25858 {
25859 tmp=./conf$$-$RANDOM
25860 (umask 077 && mkdir "$tmp")
25861 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25862 ac_tmp=$tmp
25863
25864 # Set up the scripts for CONFIG_FILES section.
25865 # No need to generate them if there are no CONFIG_FILES.
25866 # This happens for instance with `./config.status config.h'.
25867 if test -n "$CONFIG_FILES"; then
25868
25869
25870 ac_cr=`echo X | tr X '\015'`
25871 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25872 # But we know of no other shell where ac_cr would be empty at this
25873 # point, so we can use a bashism as a fallback.
25874 if test "x$ac_cr" = x; then
25875 eval ac_cr=\$\'\\r\'
25876 fi
25877 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25878 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25879 ac_cs_awk_cr='\\r'
25880 else
25881 ac_cs_awk_cr=$ac_cr
25882 fi
25883
25884 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25885 _ACEOF
25886
25887
25888 {
25889 echo "cat >conf$$subs.awk <<_ACEOF" &&
25890 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25891 echo "_ACEOF"
25892 } >conf$$subs.sh ||
25893 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25894 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25895 ac_delim='%!_!# '
25896 for ac_last_try in false false false false false :; do
25897 . ./conf$$subs.sh ||
25898 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25899
25900 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25901 if test $ac_delim_n = $ac_delim_num; then
25902 break
25903 elif $ac_last_try; then
25904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25905 else
25906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25907 fi
25908 done
25909 rm -f conf$$subs.sh
25910
25911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25912 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25913 _ACEOF
25914 sed -n '
25915 h
25916 s/^/S["/; s/!.*/"]=/
25917 p
25918 g
25919 s/^[^!]*!//
25920 :repl
25921 t repl
25922 s/'"$ac_delim"'$//
25923 t delim
25924 :nl
25925 h
25926 s/\(.\{148\}\)..*/\1/
25927 t more1
25928 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25929 p
25930 n
25931 b repl
25932 :more1
25933 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25934 p
25935 g
25936 s/.\{148\}//
25937 t nl
25938 :delim
25939 h
25940 s/\(.\{148\}\)..*/\1/
25941 t more2
25942 s/["\\]/\\&/g; s/^/"/; s/$/"/
25943 p
25944 b
25945 :more2
25946 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25947 p
25948 g
25949 s/.\{148\}//
25950 t delim
25951 ' <conf$$subs.awk | sed '
25952 /^[^""]/{
25953 N
25954 s/\n//
25955 }
25956 ' >>$CONFIG_STATUS || ac_write_fail=1
25957 rm -f conf$$subs.awk
25958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25959 _ACAWK
25960 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25961 for (key in S) S_is_set[key] = 1
25962 FS = ""
25963
25964 }
25965 {
25966 line = $ 0
25967 nfields = split(line, field, "@")
25968 substed = 0
25969 len = length(field[1])
25970 for (i = 2; i < nfields; i++) {
25971 key = field[i]
25972 keylen = length(key)
25973 if (S_is_set[key]) {
25974 value = S[key]
25975 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25976 len += length(value) + length(field[++i])
25977 substed = 1
25978 } else
25979 len += 1 + keylen
25980 }
25981
25982 print line
25983 }
25984
25985 _ACAWK
25986 _ACEOF
25987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25988 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25989 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25990 else
25991 cat
25992 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25993 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25994 _ACEOF
25995
25996 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25997 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25998 # trailing colons and then remove the whole line if VPATH becomes empty
25999 # (actually we leave an empty line to preserve line numbers).
26000 if test "x$srcdir" = x.; then
26001 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26002 h
26003 s///
26004 s/^/:/
26005 s/[ ]*$/:/
26006 s/:\$(srcdir):/:/g
26007 s/:\${srcdir}:/:/g
26008 s/:@srcdir@:/:/g
26009 s/^:*//
26010 s/:*$//
26011 x
26012 s/\(=[ ]*\).*/\1/
26013 G
26014 s/\n//
26015 s/^[^=]*=[ ]*$//
26016 }'
26017 fi
26018
26019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26020 fi # test -n "$CONFIG_FILES"
26021
26022 # Set up the scripts for CONFIG_HEADERS section.
26023 # No need to generate them if there are no CONFIG_HEADERS.
26024 # This happens for instance with `./config.status Makefile'.
26025 if test -n "$CONFIG_HEADERS"; then
26026 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26027 BEGIN {
26028 _ACEOF
26029
26030 # Transform confdefs.h into an awk script `defines.awk', embedded as
26031 # here-document in config.status, that substitutes the proper values into
26032 # config.h.in to produce config.h.
26033
26034 # Create a delimiter string that does not exist in confdefs.h, to ease
26035 # handling of long lines.
26036 ac_delim='%!_!# '
26037 for ac_last_try in false false :; do
26038 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26039 if test -z "$ac_tt"; then
26040 break
26041 elif $ac_last_try; then
26042 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26043 else
26044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26045 fi
26046 done
26047
26048 # For the awk script, D is an array of macro values keyed by name,
26049 # likewise P contains macro parameters if any. Preserve backslash
26050 # newline sequences.
26051
26052 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26053 sed -n '
26054 s/.\{148\}/&'"$ac_delim"'/g
26055 t rset
26056 :rset
26057 s/^[ ]*#[ ]*define[ ][ ]*/ /
26058 t def
26059 d
26060 :def
26061 s/\\$//
26062 t bsnl
26063 s/["\\]/\\&/g
26064 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26065 D["\1"]=" \3"/p
26066 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26067 d
26068 :bsnl
26069 s/["\\]/\\&/g
26070 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26071 D["\1"]=" \3\\\\\\n"\\/p
26072 t cont
26073 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26074 t cont
26075 d
26076 :cont
26077 n
26078 s/.\{148\}/&'"$ac_delim"'/g
26079 t clear
26080 :clear
26081 s/\\$//
26082 t bsnlc
26083 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26084 d
26085 :bsnlc
26086 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26087 b cont
26088 ' <confdefs.h | sed '
26089 s/'"$ac_delim"'/"\\\
26090 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26091
26092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26093 for (key in D) D_is_set[key] = 1
26094 FS = ""
26095 }
26096 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26097 line = \$ 0
26098 split(line, arg, " ")
26099 if (arg[1] == "#") {
26100 defundef = arg[2]
26101 mac1 = arg[3]
26102 } else {
26103 defundef = substr(arg[1], 2)
26104 mac1 = arg[2]
26105 }
26106 split(mac1, mac2, "(") #)
26107 macro = mac2[1]
26108 prefix = substr(line, 1, index(line, defundef) - 1)
26109 if (D_is_set[macro]) {
26110 # Preserve the white space surrounding the "#".
26111 print prefix "define", macro P[macro] D[macro]
26112 next
26113 } else {
26114 # Replace #undef with comments. This is necessary, for example,
26115 # in the case of _POSIX_SOURCE, which is predefined and required
26116 # on some systems where configure will not decide to define it.
26117 if (defundef == "undef") {
26118 print "/*", prefix defundef, macro, "*/"
26119 next
26120 }
26121 }
26122 }
26123 { print }
26124 _ACAWK
26125 _ACEOF
26126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26127 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26128 fi # test -n "$CONFIG_HEADERS"
26129
26130
26131 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26132 shift
26133 for ac_tag
26134 do
26135 case $ac_tag in
26136 :[FHLC]) ac_mode=$ac_tag; continue;;
26137 esac
26138 case $ac_mode$ac_tag in
26139 :[FHL]*:*);;
26140 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26141 :[FH]-) ac_tag=-:-;;
26142 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26143 esac
26144 ac_save_IFS=$IFS
26145 IFS=:
26146 set x $ac_tag
26147 IFS=$ac_save_IFS
26148 shift
26149 ac_file=$1
26150 shift
26151
26152 case $ac_mode in
26153 :L) ac_source=$1;;
26154 :[FH])
26155 ac_file_inputs=
26156 for ac_f
26157 do
26158 case $ac_f in
26159 -) ac_f="$ac_tmp/stdin";;
26160 *) # Look for the file first in the build tree, then in the source tree
26161 # (if the path is not absolute). The absolute path cannot be DOS-style,
26162 # because $ac_f cannot contain `:'.
26163 test -f "$ac_f" ||
26164 case $ac_f in
26165 [\\/$]*) false;;
26166 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26167 esac ||
26168 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26169 esac
26170 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26171 as_fn_append ac_file_inputs " '$ac_f'"
26172 done
26173
26174 # Let's still pretend it is `configure' which instantiates (i.e., don't
26175 # use $as_me), people would be surprised to read:
26176 # /* config.h. Generated by config.status. */
26177 configure_input='Generated from '`
26178 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26179 `' by configure.'
26180 if test x"$ac_file" != x-; then
26181 configure_input="$ac_file. $configure_input"
26182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26183 printf "%s\n" "$as_me: creating $ac_file" >&6;}
26184 fi
26185 # Neutralize special characters interpreted by sed in replacement strings.
26186 case $configure_input in #(
26187 *\&* | *\|* | *\\* )
26188 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
26189 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26190 *) ac_sed_conf_input=$configure_input;;
26191 esac
26192
26193 case $ac_tag in
26194 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26196 esac
26197 ;;
26198 esac
26199
26200 ac_dir=`$as_dirname -- "$ac_file" ||
26201 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26202 X"$ac_file" : 'X\(//\)[^/]' \| \
26203 X"$ac_file" : 'X\(//\)$' \| \
26204 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26205 printf "%s\n" X"$ac_file" |
26206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26207 s//\1/
26208 q
26209 }
26210 /^X\(\/\/\)[^/].*/{
26211 s//\1/
26212 q
26213 }
26214 /^X\(\/\/\)$/{
26215 s//\1/
26216 q
26217 }
26218 /^X\(\/\).*/{
26219 s//\1/
26220 q
26221 }
26222 s/.*/./; q'`
26223 as_dir="$ac_dir"; as_fn_mkdir_p
26224 ac_builddir=.
26225
26226 case "$ac_dir" in
26227 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26228 *)
26229 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
26230 # A ".." for each directory in $ac_dir_suffix.
26231 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26232 case $ac_top_builddir_sub in
26233 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26234 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26235 esac ;;
26236 esac
26237 ac_abs_top_builddir=$ac_pwd
26238 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26239 # for backward compatibility:
26240 ac_top_builddir=$ac_top_build_prefix
26241
26242 case $srcdir in
26243 .) # We are building in place.
26244 ac_srcdir=.
26245 ac_top_srcdir=$ac_top_builddir_sub
26246 ac_abs_top_srcdir=$ac_pwd ;;
26247 [\\/]* | ?:[\\/]* ) # Absolute name.
26248 ac_srcdir=$srcdir$ac_dir_suffix;
26249 ac_top_srcdir=$srcdir
26250 ac_abs_top_srcdir=$srcdir ;;
26251 *) # Relative name.
26252 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26253 ac_top_srcdir=$ac_top_build_prefix$srcdir
26254 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26255 esac
26256 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26257
26258
26259 case $ac_mode in
26260 :F)
26261 #
26262 # CONFIG_FILE
26263 #
26264
26265 case $INSTALL in
26266 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26267 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26268 esac
26269 ac_MKDIR_P=$MKDIR_P
26270 case $MKDIR_P in
26271 [\\/$]* | ?:[\\/]* ) ;;
26272 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26273 esac
26274 _ACEOF
26275
26276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26277 # If the template does not know about datarootdir, expand it.
26278 # FIXME: This hack should be removed a few years after 2.60.
26279 ac_datarootdir_hack=; ac_datarootdir_seen=
26280 ac_sed_dataroot='
26281 /datarootdir/ {
26282 p
26283 q
26284 }
26285 /@datadir@/p
26286 /@docdir@/p
26287 /@infodir@/p
26288 /@localedir@/p
26289 /@mandir@/p'
26290 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26291 *datarootdir*) ac_datarootdir_seen=yes;;
26292 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26294 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26295 _ACEOF
26296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26297 ac_datarootdir_hack='
26298 s&@datadir@&$datadir&g
26299 s&@docdir@&$docdir&g
26300 s&@infodir@&$infodir&g
26301 s&@localedir@&$localedir&g
26302 s&@mandir@&$mandir&g
26303 s&\\\${datarootdir}&$datarootdir&g' ;;
26304 esac
26305 _ACEOF
26306
26307 # Neutralize VPATH when `$srcdir' = `.'.
26308 # Shell code in configure.ac might set extrasub.
26309 # FIXME: do we really want to maintain this feature?
26310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26311 ac_sed_extra="$ac_vpsub
26312 $extrasub
26313 _ACEOF
26314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26315 :t
26316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26317 s|@configure_input@|$ac_sed_conf_input|;t t
26318 s&@top_builddir@&$ac_top_builddir_sub&;t t
26319 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26320 s&@srcdir@&$ac_srcdir&;t t
26321 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26322 s&@top_srcdir@&$ac_top_srcdir&;t t
26323 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26324 s&@builddir@&$ac_builddir&;t t
26325 s&@abs_builddir@&$ac_abs_builddir&;t t
26326 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26327 s&@INSTALL@&$ac_INSTALL&;t t
26328 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26329 $ac_datarootdir_hack
26330 "
26331 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26332 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26333
26334 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26335 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26336 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26337 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26339 which seems to be undefined. Please make sure it is defined" >&5
26340 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26341 which seems to be undefined. Please make sure it is defined" >&2;}
26342
26343 rm -f "$ac_tmp/stdin"
26344 case $ac_file in
26345 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26346 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26347 esac \
26348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26349 ;;
26350 :H)
26351 #
26352 # CONFIG_HEADER
26353 #
26354 if test x"$ac_file" != x-; then
26355 {
26356 printf "%s\n" "/* $configure_input */" >&1 \
26357 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26358 } >"$ac_tmp/config.h" \
26359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26360 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26362 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
26363 else
26364 rm -f "$ac_file"
26365 mv "$ac_tmp/config.h" "$ac_file" \
26366 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26367 fi
26368 else
26369 printf "%s\n" "/* $configure_input */" >&1 \
26370 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26371 || as_fn_error $? "could not create -" "$LINENO" 5
26372 fi
26373 # Compute "$ac_file"'s index in $config_headers.
26374 _am_arg="$ac_file"
26375 _am_stamp_count=1
26376 for _am_header in $config_headers :; do
26377 case $_am_header in
26378 $_am_arg | $_am_arg:* )
26379 break ;;
26380 * )
26381 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26382 esac
26383 done
26384 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26385 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26386 X"$_am_arg" : 'X\(//\)[^/]' \| \
26387 X"$_am_arg" : 'X\(//\)$' \| \
26388 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26389 printf "%s\n" X"$_am_arg" |
26390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26391 s//\1/
26392 q
26393 }
26394 /^X\(\/\/\)[^/].*/{
26395 s//\1/
26396 q
26397 }
26398 /^X\(\/\/\)$/{
26399 s//\1/
26400 q
26401 }
26402 /^X\(\/\).*/{
26403 s//\1/
26404 q
26405 }
26406 s/.*/./; q'`/stamp-h$_am_stamp_count
26407 ;;
26408
26409 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26410 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
26411 ;;
26412 esac
26413
26414
26415 case $ac_file$ac_mode in
26416 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26417 # Older Autoconf quotes --file arguments for eval, but not when files
26418 # are listed without --file. Let's play safe and only enable the eval
26419 # if we detect the quoting.
26420 # TODO: see whether this extra hack can be removed once we start
26421 # requiring Autoconf 2.70 or later.
26422 case $CONFIG_FILES in #(
26423 *\'*) :
26424 eval set x "$CONFIG_FILES" ;; #(
26425 *) :
26426 set x $CONFIG_FILES ;; #(
26427 *) :
26428 ;;
26429 esac
26430 shift
26431 # Used to flag and report bootstrapping failures.
26432 am_rc=0
26433 for am_mf
26434 do
26435 # Strip MF so we end up with the name of the file.
26436 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
26437 # Check whether this is an Automake generated Makefile which includes
26438 # dependency-tracking related rules and includes.
26439 # Grep'ing the whole file directly is not great: AIX grep has a line
26440 # limit of 2048, but all sed's we know have understand at least 4000.
26441 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26442 || continue
26443 am_dirpart=`$as_dirname -- "$am_mf" ||
26444 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26445 X"$am_mf" : 'X\(//\)[^/]' \| \
26446 X"$am_mf" : 'X\(//\)$' \| \
26447 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26448 printf "%s\n" X"$am_mf" |
26449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26450 s//\1/
26451 q
26452 }
26453 /^X\(\/\/\)[^/].*/{
26454 s//\1/
26455 q
26456 }
26457 /^X\(\/\/\)$/{
26458 s//\1/
26459 q
26460 }
26461 /^X\(\/\).*/{
26462 s//\1/
26463 q
26464 }
26465 s/.*/./; q'`
26466 am_filepart=`$as_basename -- "$am_mf" ||
26467 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26468 X"$am_mf" : 'X\(//\)$' \| \
26469 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26470 printf "%s\n" X/"$am_mf" |
26471 sed '/^.*\/\([^/][^/]*\)\/*$/{
26472 s//\1/
26473 q
26474 }
26475 /^X\/\(\/\/\)$/{
26476 s//\1/
26477 q
26478 }
26479 /^X\/\(\/\).*/{
26480 s//\1/
26481 q
26482 }
26483 s/.*/./; q'`
26484 { echo "$as_me:$LINENO: cd "$am_dirpart" \
26485 && sed -e '/# am--include-marker/d' "$am_filepart" \
26486 | $MAKE -f - am--depfiles" >&5
26487 (cd "$am_dirpart" \
26488 && sed -e '/# am--include-marker/d' "$am_filepart" \
26489 | $MAKE -f - am--depfiles) >&5 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); } || am_rc=$?
26493 done
26494 if test $am_rc -ne 0; then
26495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26496 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26497 as_fn_error $? "Something went wrong bootstrapping makefile fragments
26498 for automatic dependency tracking. If GNU make was not used, consider
26499 re-running the configure script with MAKE=\"gmake\" (or whatever is
26500 necessary). You can also try re-running configure with the
26501 '--disable-dependency-tracking' option to at least be able to build
26502 the package (albeit without support for automatic dependency tracking).
26503 See \`config.log' for more details" "$LINENO" 5; }
26504 fi
26505 { am_dirpart=; unset am_dirpart;}
26506 { am_filepart=; unset am_filepart;}
26507 { am_mf=; unset am_mf;}
26508 { am_rc=; unset am_rc;}
26509 rm -f conftest-deps.mk
26510 }
26511 ;;
26512 "libtool":C)
26513
26514 # See if we are running on zsh, and set the options that allow our
26515 # commands through without removal of \ escapes.
26516 if test -n "${ZSH_VERSION+set}"; then
26517 setopt NO_GLOB_SUBST
26518 fi
26519
26520 cfgfile=${ofile}T
26521 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26522 $RM "$cfgfile"
26523
26524 cat <<_LT_EOF >> "$cfgfile"
26525 #! $SHELL
26526 # Generated automatically by $as_me ($PACKAGE) $VERSION
26527 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26528 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26529
26530 # Provide generalized library-building support services.
26531 # Written by Gordon Matzigkeit, 1996
26532
26533 # Copyright (C) 2014 Free Software Foundation, Inc.
26534 # This is free software; see the source for copying conditions. There is NO
26535 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26536
26537 # GNU Libtool is free software; you can redistribute it and/or modify
26538 # it under the terms of the GNU General Public License as published by
26539 # the Free Software Foundation; either version 2 of of the License, or
26540 # (at your option) any later version.
26541 #
26542 # As a special exception to the GNU General Public License, if you
26543 # distribute this file as part of a program or library that is built
26544 # using GNU Libtool, you may include this file under the same
26545 # distribution terms that you use for the rest of that program.
26546 #
26547 # GNU Libtool is distributed in the hope that it will be useful, but
26548 # WITHOUT ANY WARRANTY; without even the implied warranty of
26549 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26550 # GNU General Public License for more details.
26551 #
26552 # You should have received a copy of the GNU General Public License
26553 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26554
26555
26556 # The names of the tagged configurations supported by this script.
26557 available_tags='CXX '
26558
26559 # Configured defaults for sys_lib_dlsearch_path munging.
26560 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26561
26562 # ### BEGIN LIBTOOL CONFIG
26563
26564 # Which release of libtool.m4 was used?
26565 macro_version=$macro_version
26566 macro_revision=$macro_revision
26567
26568 # Assembler program.
26569 AS=$lt_AS
26570
26571 # DLL creation program.
26572 DLLTOOL=$lt_DLLTOOL
26573
26574 # Object dumper program.
26575 OBJDUMP=$lt_OBJDUMP
26576
26577 # Whether or not to build shared libraries.
26578 build_libtool_libs=$enable_shared
26579
26580 # Whether or not to build static libraries.
26581 build_old_libs=$enable_static
26582
26583 # What type of objects to build.
26584 pic_mode=$pic_mode
26585
26586 # Whether or not to optimize for fast installation.
26587 fast_install=$enable_fast_install
26588
26589 # Shared archive member basename,for filename based shared library versioning on AIX.
26590 shared_archive_member_spec=$shared_archive_member_spec
26591
26592 # Shell to use when invoking shell scripts.
26593 SHELL=$lt_SHELL
26594
26595 # An echo program that protects backslashes.
26596 ECHO=$lt_ECHO
26597
26598 # The PATH separator for the build system.
26599 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26600
26601 # The host system.
26602 host_alias=$host_alias
26603 host=$host
26604 host_os=$host_os
26605
26606 # The build system.
26607 build_alias=$build_alias
26608 build=$build
26609 build_os=$build_os
26610
26611 # A sed program that does not truncate output.
26612 SED=$lt_SED
26613
26614 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26615 Xsed="\$SED -e 1s/^X//"
26616
26617 # A grep program that handles long lines.
26618 GREP=$lt_GREP
26619
26620 # An ERE matcher.
26621 EGREP=$lt_EGREP
26622
26623 # A literal string matcher.
26624 FGREP=$lt_FGREP
26625
26626 # A BSD- or MS-compatible name lister.
26627 NM=$lt_NM
26628
26629 # Whether we need soft or hard links.
26630 LN_S=$lt_LN_S
26631
26632 # What is the maximum length of a command?
26633 max_cmd_len=$max_cmd_len
26634
26635 # Object file suffix (normally "o").
26636 objext=$ac_objext
26637
26638 # Executable file suffix (normally "").
26639 exeext=$exeext
26640
26641 # whether the shell understands "unset".
26642 lt_unset=$lt_unset
26643
26644 # turn spaces into newlines.
26645 SP2NL=$lt_lt_SP2NL
26646
26647 # turn newlines into spaces.
26648 NL2SP=$lt_lt_NL2SP
26649
26650 # convert \$build file names to \$host format.
26651 to_host_file_cmd=$lt_cv_to_host_file_cmd
26652
26653 # convert \$build files to toolchain format.
26654 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26655
26656 # A file(cmd) program that detects file types.
26657 FILECMD=$lt_FILECMD
26658
26659 # Method to check whether dependent libraries are shared objects.
26660 deplibs_check_method=$lt_deplibs_check_method
26661
26662 # Command to use when deplibs_check_method = "file_magic".
26663 file_magic_cmd=$lt_file_magic_cmd
26664
26665 # How to find potential files when deplibs_check_method = "file_magic".
26666 file_magic_glob=$lt_file_magic_glob
26667
26668 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26669 want_nocaseglob=$lt_want_nocaseglob
26670
26671 # Command to associate shared and link libraries.
26672 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26673
26674 # The archiver.
26675 AR=$lt_AR
26676
26677 # Flags to create an archive (by configure).
26678 lt_ar_flags=$lt_ar_flags
26679
26680 # Flags to create an archive.
26681 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
26682
26683 # How to feed a file listing to the archiver.
26684 archiver_list_spec=$lt_archiver_list_spec
26685
26686 # A symbol stripping program.
26687 STRIP=$lt_STRIP
26688
26689 # Commands used to install an old-style archive.
26690 RANLIB=$lt_RANLIB
26691 old_postinstall_cmds=$lt_old_postinstall_cmds
26692 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26693
26694 # Whether to use a lock for old archive extraction.
26695 lock_old_archive_extraction=$lock_old_archive_extraction
26696
26697 # A C compiler.
26698 LTCC=$lt_CC
26699
26700 # LTCC compiler flags.
26701 LTCFLAGS=$lt_CFLAGS
26702
26703 # Take the output of nm and produce a listing of raw symbols and C names.
26704 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26705
26706 # Transform the output of nm in a proper C declaration.
26707 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26708
26709 # Transform the output of nm into a list of symbols to manually relocate.
26710 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26711
26712 # Transform the output of nm in a C name address pair.
26713 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26714
26715 # Transform the output of nm in a C name address pair when lib prefix is needed.
26716 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26717
26718 # The name lister interface.
26719 nm_interface=$lt_lt_cv_nm_interface
26720
26721 # Specify filename containing input files for \$NM.
26722 nm_file_list_spec=$lt_nm_file_list_spec
26723
26724 # The root where to search for dependent libraries,and where our libraries should be installed.
26725 lt_sysroot=$lt_sysroot
26726
26727 # Command to truncate a binary pipe.
26728 lt_truncate_bin=$lt_lt_cv_truncate_bin
26729
26730 # The name of the directory that contains temporary libtool files.
26731 objdir=$objdir
26732
26733 # Used to examine libraries when file_magic_cmd begins with "file".
26734 MAGIC_CMD=$MAGIC_CMD
26735
26736 # Must we lock files when doing compilation?
26737 need_locks=$lt_need_locks
26738
26739 # Manifest tool.
26740 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26741
26742 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26743 DSYMUTIL=$lt_DSYMUTIL
26744
26745 # Tool to change global to local symbols on Mac OS X.
26746 NMEDIT=$lt_NMEDIT
26747
26748 # Tool to manipulate fat objects and archives on Mac OS X.
26749 LIPO=$lt_LIPO
26750
26751 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26752 OTOOL=$lt_OTOOL
26753
26754 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26755 OTOOL64=$lt_OTOOL64
26756
26757 # Old archive suffix (normally "a").
26758 libext=$libext
26759
26760 # Shared library suffix (normally ".so").
26761 shrext_cmds=$lt_shrext_cmds
26762
26763 # The commands to extract the exported symbol list from a shared archive.
26764 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26765
26766 # Variables whose values should be saved in libtool wrapper scripts and
26767 # restored at link time.
26768 variables_saved_for_relink=$lt_variables_saved_for_relink
26769
26770 # Do we need the "lib" prefix for modules?
26771 need_lib_prefix=$need_lib_prefix
26772
26773 # Do we need a version for libraries?
26774 need_version=$need_version
26775
26776 # Library versioning type.
26777 version_type=$version_type
26778
26779 # Shared library runtime path variable.
26780 runpath_var=$runpath_var
26781
26782 # Shared library path variable.
26783 shlibpath_var=$shlibpath_var
26784
26785 # Is shlibpath searched before the hard-coded library search path?
26786 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26787
26788 # Format of library name prefix.
26789 libname_spec=$lt_libname_spec
26790
26791 # List of archive names. First name is the real one, the rest are links.
26792 # The last name is the one that the linker finds with -lNAME
26793 library_names_spec=$lt_library_names_spec
26794
26795 # The coded name of the library, if different from the real name.
26796 soname_spec=$lt_soname_spec
26797
26798 # Permission mode override for installation of shared libraries.
26799 install_override_mode=$lt_install_override_mode
26800
26801 # Command to use after installation of a shared archive.
26802 postinstall_cmds=$lt_postinstall_cmds
26803
26804 # Command to use after uninstallation of a shared archive.
26805 postuninstall_cmds=$lt_postuninstall_cmds
26806
26807 # Commands used to finish a libtool library installation in a directory.
26808 finish_cmds=$lt_finish_cmds
26809
26810 # As "finish_cmds", except a single script fragment to be evaled but
26811 # not shown.
26812 finish_eval=$lt_finish_eval
26813
26814 # Whether we should hardcode library paths into libraries.
26815 hardcode_into_libs=$hardcode_into_libs
26816
26817 # Compile-time system search path for libraries.
26818 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26819
26820 # Detected run-time system search path for libraries.
26821 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26822
26823 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26824 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26825
26826 # Whether dlopen is supported.
26827 dlopen_support=$enable_dlopen
26828
26829 # Whether dlopen of programs is supported.
26830 dlopen_self=$enable_dlopen_self
26831
26832 # Whether dlopen of statically linked programs is supported.
26833 dlopen_self_static=$enable_dlopen_self_static
26834
26835 # Commands to strip libraries.
26836 old_striplib=$lt_old_striplib
26837 striplib=$lt_striplib
26838
26839
26840 # The linker used to build libraries.
26841 LD=$lt_LD
26842
26843 # How to create reloadable object files.
26844 reload_flag=$lt_reload_flag
26845 reload_cmds=$lt_reload_cmds
26846
26847 # Commands used to build an old-style archive.
26848 old_archive_cmds=$lt_old_archive_cmds
26849
26850 # A language specific compiler.
26851 CC=$lt_compiler
26852
26853 # Is the compiler the GNU compiler?
26854 with_gcc=$GCC
26855
26856 # Compiler flag to turn off builtin functions.
26857 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26858
26859 # Additional compiler flags for building library objects.
26860 pic_flag=$lt_lt_prog_compiler_pic
26861
26862 # How to pass a linker flag through the compiler.
26863 wl=$lt_lt_prog_compiler_wl
26864
26865 # Compiler flag to prevent dynamic linking.
26866 link_static_flag=$lt_lt_prog_compiler_static
26867
26868 # Does compiler simultaneously support -c and -o options?
26869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26870
26871 # Whether or not to add -lc for building shared libraries.
26872 build_libtool_need_lc=$archive_cmds_need_lc
26873
26874 # Whether or not to disallow shared libs when runtime libs are static.
26875 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26876
26877 # Compiler flag to allow reflexive dlopens.
26878 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26879
26880 # Compiler flag to generate shared objects directly from archives.
26881 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26882
26883 # Whether the compiler copes with passing no objects directly.
26884 compiler_needs_object=$lt_compiler_needs_object
26885
26886 # Create an old-style archive from a shared archive.
26887 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26888
26889 # Create a temporary old-style archive to link instead of a shared archive.
26890 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26891
26892 # Commands used to build a shared archive.
26893 archive_cmds=$lt_archive_cmds
26894 archive_expsym_cmds=$lt_archive_expsym_cmds
26895
26896 # Commands used to build a loadable module if different from building
26897 # a shared archive.
26898 module_cmds=$lt_module_cmds
26899 module_expsym_cmds=$lt_module_expsym_cmds
26900
26901 # Whether we are building with GNU ld or not.
26902 with_gnu_ld=$lt_with_gnu_ld
26903
26904 # Flag that allows shared libraries with undefined symbols to be built.
26905 allow_undefined_flag=$lt_allow_undefined_flag
26906
26907 # Flag that enforces no undefined symbols.
26908 no_undefined_flag=$lt_no_undefined_flag
26909
26910 # Flag to hardcode \$libdir into a binary during linking.
26911 # This must work even if \$libdir does not exist
26912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26913
26914 # Whether we need a single "-rpath" flag with a separated argument.
26915 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26916
26917 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26918 # DIR into the resulting binary.
26919 hardcode_direct=$hardcode_direct
26920
26921 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26922 # DIR into the resulting binary and the resulting library dependency is
26923 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26924 # library is relocated.
26925 hardcode_direct_absolute=$hardcode_direct_absolute
26926
26927 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26928 # into the resulting binary.
26929 hardcode_minus_L=$hardcode_minus_L
26930
26931 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26932 # into the resulting binary.
26933 hardcode_shlibpath_var=$hardcode_shlibpath_var
26934
26935 # Set to "yes" if building a shared library automatically hardcodes DIR
26936 # into the library and all subsequent libraries and executables linked
26937 # against it.
26938 hardcode_automatic=$hardcode_automatic
26939
26940 # Set to yes if linker adds runtime paths of dependent libraries
26941 # to runtime path list.
26942 inherit_rpath=$inherit_rpath
26943
26944 # Whether libtool must link a program against all its dependency libraries.
26945 link_all_deplibs=$link_all_deplibs
26946
26947 # Set to "yes" if exported symbols are required.
26948 always_export_symbols=$always_export_symbols
26949
26950 # The commands to list exported symbols.
26951 export_symbols_cmds=$lt_export_symbols_cmds
26952
26953 # Symbols that should not be listed in the preloaded symbols.
26954 exclude_expsyms=$lt_exclude_expsyms
26955
26956 # Symbols that must always be exported.
26957 include_expsyms=$lt_include_expsyms
26958
26959 # Commands necessary for linking programs (against libraries) with templates.
26960 prelink_cmds=$lt_prelink_cmds
26961
26962 # Commands necessary for finishing linking programs.
26963 postlink_cmds=$lt_postlink_cmds
26964
26965 # Specify filename containing input files.
26966 file_list_spec=$lt_file_list_spec
26967
26968 # How to hardcode a shared library path into an executable.
26969 hardcode_action=$hardcode_action
26970
26971 # The directories searched by this compiler when creating a shared library.
26972 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26973
26974 # Dependencies to place before and after the objects being linked to
26975 # create a shared library.
26976 predep_objects=$lt_predep_objects
26977 postdep_objects=$lt_postdep_objects
26978 predeps=$lt_predeps
26979 postdeps=$lt_postdeps
26980
26981 # The library search path used internally by the compiler when linking
26982 # a shared library.
26983 compiler_lib_search_path=$lt_compiler_lib_search_path
26984
26985 # ### END LIBTOOL CONFIG
26986
26987 _LT_EOF
26988
26989 cat <<'_LT_EOF' >> "$cfgfile"
26990
26991 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26992
26993 # func_munge_path_list VARIABLE PATH
26994 # -----------------------------------
26995 # VARIABLE is name of variable containing _space_ separated list of
26996 # directories to be munged by the contents of PATH, which is string
26997 # having a format:
26998 # "DIR[:DIR]:"
26999 # string "DIR[ DIR]" will be prepended to VARIABLE
27000 # ":DIR[:DIR]"
27001 # string "DIR[ DIR]" will be appended to VARIABLE
27002 # "DIRP[:DIRP]::[DIRA:]DIRA"
27003 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
27004 # "DIRA[ DIRA]" will be appended to VARIABLE
27005 # "DIR[:DIR]"
27006 # VARIABLE will be replaced by "DIR[ DIR]"
27007 func_munge_path_list ()
27008 {
27009 case x$2 in
27010 x)
27011 ;;
27012 *:)
27013 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
27014 ;;
27015 x:*)
27016 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
27017 ;;
27018 *::*)
27019 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
27020 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
27021 ;;
27022 *)
27023 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
27024 ;;
27025 esac
27026 }
27027
27028
27029 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
27030 func_cc_basename ()
27031 {
27032 for cc_temp in $*""; do
27033 case $cc_temp in
27034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27036 \-*) ;;
27037 *) break;;
27038 esac
27039 done
27040 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27041 }
27042
27043
27044 # ### END FUNCTIONS SHARED WITH CONFIGURE
27045
27046 _LT_EOF
27047
27048 case $host_os in
27049 aix3*)
27050 cat <<\_LT_EOF >> "$cfgfile"
27051 # AIX sometimes has problems with the GCC collect2 program. For some
27052 # reason, if we set the COLLECT_NAMES environment variable, the problems
27053 # vanish in a puff of smoke.
27054 if test set != "${COLLECT_NAMES+set}"; then
27055 COLLECT_NAMES=
27056 export COLLECT_NAMES
27057 fi
27058 _LT_EOF
27059 ;;
27060 esac
27061
27062
27063
27064 ltmain=$ac_aux_dir/ltmain.sh
27065
27066
27067 # We use sed instead of cat because bash on DJGPP gets confused if
27068 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27069 # text mode, it properly converts lines to CR/LF. This bash problem
27070 # is reportedly fixed, but why not run on old versions too?
27071 $SED '$q' "$ltmain" >> "$cfgfile" \
27072 || (rm -f "$cfgfile"; exit 1)
27073
27074 mv -f "$cfgfile" "$ofile" ||
27075 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27076 chmod +x "$ofile"
27077
27078
27079 cat <<_LT_EOF >> "$ofile"
27080
27081 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27082
27083 # The linker used to build libraries.
27084 LD=$lt_LD_CXX
27085
27086 # How to create reloadable object files.
27087 reload_flag=$lt_reload_flag_CXX
27088 reload_cmds=$lt_reload_cmds_CXX
27089
27090 # Commands used to build an old-style archive.
27091 old_archive_cmds=$lt_old_archive_cmds_CXX
27092
27093 # A language specific compiler.
27094 CC=$lt_compiler_CXX
27095
27096 # Is the compiler the GNU compiler?
27097 with_gcc=$GCC_CXX
27098
27099 # Compiler flag to turn off builtin functions.
27100 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27101
27102 # Additional compiler flags for building library objects.
27103 pic_flag=$lt_lt_prog_compiler_pic_CXX
27104
27105 # How to pass a linker flag through the compiler.
27106 wl=$lt_lt_prog_compiler_wl_CXX
27107
27108 # Compiler flag to prevent dynamic linking.
27109 link_static_flag=$lt_lt_prog_compiler_static_CXX
27110
27111 # Does compiler simultaneously support -c and -o options?
27112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27113
27114 # Whether or not to add -lc for building shared libraries.
27115 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27116
27117 # Whether or not to disallow shared libs when runtime libs are static.
27118 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27119
27120 # Compiler flag to allow reflexive dlopens.
27121 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27122
27123 # Compiler flag to generate shared objects directly from archives.
27124 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27125
27126 # Whether the compiler copes with passing no objects directly.
27127 compiler_needs_object=$lt_compiler_needs_object_CXX
27128
27129 # Create an old-style archive from a shared archive.
27130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27131
27132 # Create a temporary old-style archive to link instead of a shared archive.
27133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27134
27135 # Commands used to build a shared archive.
27136 archive_cmds=$lt_archive_cmds_CXX
27137 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27138
27139 # Commands used to build a loadable module if different from building
27140 # a shared archive.
27141 module_cmds=$lt_module_cmds_CXX
27142 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27143
27144 # Whether we are building with GNU ld or not.
27145 with_gnu_ld=$lt_with_gnu_ld_CXX
27146
27147 # Flag that allows shared libraries with undefined symbols to be built.
27148 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27149
27150 # Flag that enforces no undefined symbols.
27151 no_undefined_flag=$lt_no_undefined_flag_CXX
27152
27153 # Flag to hardcode \$libdir into a binary during linking.
27154 # This must work even if \$libdir does not exist
27155 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27156
27157 # Whether we need a single "-rpath" flag with a separated argument.
27158 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27159
27160 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27161 # DIR into the resulting binary.
27162 hardcode_direct=$hardcode_direct_CXX
27163
27164 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27165 # DIR into the resulting binary and the resulting library dependency is
27166 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
27167 # library is relocated.
27168 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27169
27170 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27171 # into the resulting binary.
27172 hardcode_minus_L=$hardcode_minus_L_CXX
27173
27174 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27175 # into the resulting binary.
27176 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27177
27178 # Set to "yes" if building a shared library automatically hardcodes DIR
27179 # into the library and all subsequent libraries and executables linked
27180 # against it.
27181 hardcode_automatic=$hardcode_automatic_CXX
27182
27183 # Set to yes if linker adds runtime paths of dependent libraries
27184 # to runtime path list.
27185 inherit_rpath=$inherit_rpath_CXX
27186
27187 # Whether libtool must link a program against all its dependency libraries.
27188 link_all_deplibs=$link_all_deplibs_CXX
27189
27190 # Set to "yes" if exported symbols are required.
27191 always_export_symbols=$always_export_symbols_CXX
27192
27193 # The commands to list exported symbols.
27194 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27195
27196 # Symbols that should not be listed in the preloaded symbols.
27197 exclude_expsyms=$lt_exclude_expsyms_CXX
27198
27199 # Symbols that must always be exported.
27200 include_expsyms=$lt_include_expsyms_CXX
27201
27202 # Commands necessary for linking programs (against libraries) with templates.
27203 prelink_cmds=$lt_prelink_cmds_CXX
27204
27205 # Commands necessary for finishing linking programs.
27206 postlink_cmds=$lt_postlink_cmds_CXX
27207
27208 # Specify filename containing input files.
27209 file_list_spec=$lt_file_list_spec_CXX
27210
27211 # How to hardcode a shared library path into an executable.
27212 hardcode_action=$hardcode_action_CXX
27213
27214 # The directories searched by this compiler when creating a shared library.
27215 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27216
27217 # Dependencies to place before and after the objects being linked to
27218 # create a shared library.
27219 predep_objects=$lt_predep_objects_CXX
27220 postdep_objects=$lt_postdep_objects_CXX
27221 predeps=$lt_predeps_CXX
27222 postdeps=$lt_postdeps_CXX
27223
27224 # The library search path used internally by the compiler when linking
27225 # a shared library.
27226 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27227
27228 # ### END LIBTOOL TAG CONFIG: CXX
27229 _LT_EOF
27230
27231 ;;
27232 "po-directories":C)
27233 for ac_file in $CONFIG_FILES; do
27234 # Support "outfile[:infile[:infile...]]"
27235 case "$ac_file" in
27236 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
27237 esac
27238 # PO directories have a Makefile.in generated from Makefile.in.in.
27239 case "$ac_file" in */Makefile.in)
27240 # Adjust a relative srcdir.
27241 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
27242 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
27243 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
27244 # In autoconf-2.13 it is called $ac_given_srcdir.
27245 # In autoconf-2.50 it is called $srcdir.
27246 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
27247 case "$ac_given_srcdir" in
27248 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
27249 /*) top_srcdir="$ac_given_srcdir" ;;
27250 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
27251 esac
27252 # Treat a directory as a PO directory if and only if it has a
27253 # POTFILES.in file. This allows packages to have multiple PO
27254 # directories under different names or in different locations.
27255 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
27256 rm -f "$ac_dir/POTFILES"
27257 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
27258 gt_tab=`printf '\t'`
27259 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
27260 POMAKEFILEDEPS="POTFILES.in"
27261 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
27262 # on $ac_dir but don't depend on user-specified configuration
27263 # parameters.
27264 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
27265 # The LINGUAS file contains the set of available languages.
27266 if test -n "$OBSOLETE_ALL_LINGUAS"; then
27267 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
27268 fi
27269 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
27270 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
27271 else
27272 # The set of available languages was given in configure.in.
27273 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
27274 fi
27275 # Compute POFILES
27276 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
27277 # Compute UPDATEPOFILES
27278 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
27279 # Compute DUMMYPOFILES
27280 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
27281 # Compute GMOFILES
27282 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
27283 case "$ac_given_srcdir" in
27284 .) srcdirpre= ;;
27285 *) srcdirpre='$(srcdir)/' ;;
27286 esac
27287 POFILES=
27288 UPDATEPOFILES=
27289 DUMMYPOFILES=
27290 GMOFILES=
27291 for lang in $ALL_LINGUAS; do
27292 POFILES="$POFILES $srcdirpre$lang.po"
27293 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
27294 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
27295 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
27296 done
27297 # CATALOGS depends on both $ac_dir and the user's LINGUAS
27298 # environment variable.
27299 INST_LINGUAS=
27300 if test -n "$ALL_LINGUAS"; then
27301 for presentlang in $ALL_LINGUAS; do
27302 useit=no
27303 if test "%UNSET%" != "$LINGUAS"; then
27304 desiredlanguages="$LINGUAS"
27305 else
27306 desiredlanguages="$ALL_LINGUAS"
27307 fi
27308 for desiredlang in $desiredlanguages; do
27309 # Use the presentlang catalog if desiredlang is
27310 # a. equal to presentlang, or
27311 # b. a variant of presentlang (because in this case,
27312 # presentlang can be used as a fallback for messages
27313 # which are not translated in the desiredlang catalog).
27314 case "$desiredlang" in
27315 "$presentlang"*) useit=yes;;
27316 esac
27317 done
27318 if test $useit = yes; then
27319 INST_LINGUAS="$INST_LINGUAS $presentlang"
27320 fi
27321 done
27322 fi
27323 CATALOGS=
27324 if test -n "$INST_LINGUAS"; then
27325 for lang in $INST_LINGUAS; do
27326 CATALOGS="$CATALOGS $lang.gmo"
27327 done
27328 fi
27329 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
27330 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
27331 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
27332 if test -f "$f"; then
27333 case "$f" in
27334 *.orig | *.bak | *~) ;;
27335 *) cat "$f" >> "$ac_dir/Makefile" ;;
27336 esac
27337 fi
27338 done
27339 fi
27340 ;;
27341 esac
27342 done ;;
27343
27344 esac
27345 done # for ac_tag
27346
27347
27348 as_fn_exit 0
27349 _ACEOF
27350 ac_clean_files=$ac_clean_files_save
27351
27352 test $ac_write_fail = 0 ||
27353 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27354
27355
27356 # configure is writing to config.log, and then calls config.status.
27357 # config.status does its own redirection, appending to config.log.
27358 # Unfortunately, on DOS this fails, as config.log is still kept open
27359 # by configure, so config.status won't be able to write to it; its
27360 # output is simply discarded. So we exec the FD to /dev/null,
27361 # effectively closing config.log, so it can be properly (re)opened and
27362 # appended to by config.status. When coming back to configure, we
27363 # need to make the FD available again.
27364 if test "$no_create" != yes; then
27365 ac_cs_success=:
27366 ac_config_status_args=
27367 test "$silent" = yes &&
27368 ac_config_status_args="$ac_config_status_args --quiet"
27369 exec 5>/dev/null
27370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27371 exec 5>>config.log
27372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27373 # would make configure fail if this is the last instruction.
27374 $ac_cs_success || as_fn_exit 1
27375 fi
27376 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27378 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27379 fi
27380
27381
27382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
27383 Building:
27384 libcerror support: $ac_cv_libcerror
27385
27386 Features:
27387 Python (pyfcrypto) support: $ac_cv_enable_python
27388 " >&5
27389 printf "%s\n" "$as_me:
27390 Building:
27391 libcerror support: $ac_cv_libcerror
27392
27393 Features:
27394 Python (pyfcrypto) support: $ac_cv_enable_python
27395 " >&6;};
27396
27397