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 libigloo 0.9.5.
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 [email protected]
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: 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='libigloo'
623 PACKAGE_TARNAME='libigloo'
624 PACKAGE_VERSION='0.9.5'
625 PACKAGE_STRING='libigloo 0.9.5'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_func_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBOBJS
666 PTHREAD_CPPFLAGS
667 PTHREAD_CFLAGS
668 PTHREAD_LIBS
669 PTHREAD_CC
670 acx_pthread_config
671 LIBRHASH_LIBS
672 LIBRHASH_CFLAGS
673 PKG_CONFIG_LIBDIR
674 PKG_CONFIG_PATH
675 PKG_CONFIG
676 LT_SYS_LIBRARY_PATH
677 OTOOL64
678 OTOOL
679 LIPO
680 NMEDIT
681 DSYMUTIL
682 MANIFEST_TOOL
683 RANLIB
684 DLLTOOL
685 OBJDUMP
686 FILECMD
687 LN_S
688 NM
689 ac_ct_DUMPBIN
690 DUMPBIN
691 LD
692 FGREP
693 EGREP
694 GREP
695 SED
696 LIBTOOL
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 pkgconfigdir
706 ac_ct_AR
707 AR
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 CSCOPE
729 ETAGS
730 CTAGS
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 runstatedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL
793 am__quote'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_dependency_tracking
799 with_pkgconfigdir
800 enable_largefile
801 enable_shared
802 enable_static
803 with_pic
804 enable_fast_install
805 with_aix_soname
806 with_gnu_ld
807 with_sysroot
808 enable_libtool_lock
809 with_sanitizer
810 enable_assert
811 with_machine_id
812 with_boot_id
813 with_urandom
814 '
815 ac_precious_vars='build_alias
816 host_alias
817 target_alias
818 CC
819 CFLAGS
820 LDFLAGS
821 LIBS
822 CPPFLAGS
823 LT_SYS_LIBRARY_PATH
824 PKG_CONFIG
825 PKG_CONFIG_PATH
826 PKG_CONFIG_LIBDIR
827 LIBRHASH_CFLAGS
828 LIBRHASH_LIBS'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 runstatedir='${localstatedir}/run'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *=) ac_optarg= ;;
894 *) ac_optarg=yes ;;
895 esac
896
897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
900
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
905
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
910
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
917
918 --config-cache | -C)
919 cache_file=config.cache ;;
920
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
925
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
932
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: \`$ac_useropt'"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
948
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
953
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
958
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: \`$ac_useropt'"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=\$ac_optarg ;;
974
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
983
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
987
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
994
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
999
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1005
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1012
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1017
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1022
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1029
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1034
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1041
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1046
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1050
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1053 no_create=yes ;;
1054
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1058
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1067
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1072
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1079
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1086
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1103
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1108
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1113
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1117
1118 -runstatedir | --runstatedir | --runstatedi | --runstated \
1119 | --runstate | --runstat | --runsta | --runst | --runs \
1120 | --run | --ru | --r)
1121 ac_prev=runstatedir ;;
1122 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1123 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1124 | --run=* | --ru=* | --r=*)
1125 runstatedir=$ac_optarg ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1171
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: \`$ac_useropt'"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1187
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: \`$ac_useropt'"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1221
1222 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information"
1224 ;;
1225
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1235
1236 *)
1237 # FIXME: should be removed in autoconf 3.0.
1238 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242 ;;
1243
1244 esac
1245 done
1246
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $? "missing argument to $ac_option"
1250 fi
1251
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1258 fi
1259
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir runstatedir
1265 do
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 printf "%s\n" X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342 else
1343 ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356 fi
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1369
1370 #
1371 # Report the --help message.
1372 #
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377 \`configure' configures libigloo 0.9.5 to adapt to many kinds of systems.
1378
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384 Defaults for the options are specified in brackets.
1385
1386 Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1402
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1407
1408 For better control, use the options below.
1409
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/libigloo]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1432
1433 cat <<\_ACEOF
1434
1435 Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of libigloo 0.9.5:";;
1449 esac
1450 cat <<\_ACEOF
1451
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --disable-largefile omit support for large files
1463 --enable-shared[=PKGS] build shared libraries [default=yes]
1464 --enable-static[=PKGS] build static libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468 --disable-assert turn off assertions
1469
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --with-pkgconfigdir pkg-config installation directory
1474 ['${libdir}/pkgconfig']
1475 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --with-aix-soname=aix|svr4|both
1478 shared library versioning (aka "SONAME") variant to
1479 provide on AIX, [default=aix].
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1482 compiler's sysroot if not specified).
1483 --with-sanitizer=(address/memory/undefined/thread)
1484 build with sanitizer flags (default disabled)
1485 --with-machine-id=PATH Sets the path to the machine-id file
1486 --with-boot-id=PATH Sets the path to the boot-id file
1487 --with-urandom=PATH Sets the path to the urandom file
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 LT_SYS_LIBRARY_PATH
1498 User-defined run-time library search path.
1499 PKG_CONFIG path to pkg-config utility
1500 PKG_CONFIG_PATH
1501 directories to add to pkg-config's search path
1502 PKG_CONFIG_LIBDIR
1503 path overriding pkg-config's built-in search path
1504 LIBRHASH_CFLAGS
1505 C compiler flags for LIBRHASH, overriding pkg-config
1506 LIBRHASH_LIBS
1507 linker flags for LIBRHASH, overriding pkg-config
1508
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1511
1512 Report bugs to <[email protected]>.
1513 _ACEOF
1514 ac_status=$?
1515 fi
1516
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 continue
1523 ac_builddir=.
1524
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *)
1528 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1540
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for configure.gnu first; this name is used for a wrapper for
1559 # Metaconfig's "Configure" on case-insensitive file systems.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 libigloo configure 0.9.5
1577 generated by GNU Autoconf 2.71
1578
1579 Copyright (C) 2021 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest.beam
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 printf "%s\n" "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext
1616 then :
1617 ac_retval=0
1618 else $as_nop
1619 printf "%s\n" "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623 fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_compile
1628
1629 # ac_fn_c_try_link LINENO
1630 # -----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_link ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1636 if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 printf "%s\n" "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest$ac_exeext && {
1655 test "$cross_compiling" = yes ||
1656 test -x conftest$ac_exeext
1657 }
1658 then :
1659 ac_retval=0
1660 else $as_nop
1661 printf "%s\n" "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=1
1665 fi
1666 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668 # interfere with the next link command; also delete a directory that is
1669 # left behind by Apple's compiler. We do this before executing the actions.
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_link
1675
1676 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists and can be compiled using the include files in
1679 # INCLUDES, setting the cache variable VAR accordingly.
1680 ac_fn_c_check_header_compile ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 printf %s "checking for $2... " >&6; }
1685 if eval test \${$3+y}
1686 then :
1687 printf %s "(cached) " >&6
1688 else $as_nop
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 $4
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_compile "$LINENO"
1695 then :
1696 eval "$3=yes"
1697 else $as_nop
1698 eval "$3=no"
1699 fi
1700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1701 fi
1702 eval ac_res=\$$3
1703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 printf "%s\n" "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707 } # ac_fn_c_check_header_compile
1708
1709 # ac_fn_c_check_func LINENO FUNC VAR
1710 # ----------------------------------
1711 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1712 ac_fn_c_check_func ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 printf %s "checking for $2... " >&6; }
1717 if eval test \${$3+y}
1718 then :
1719 printf %s "(cached) " >&6
1720 else $as_nop
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1725 #define $2 innocuous_$2
1726
1727 /* System header to define __stub macros and hopefully few prototypes,
1728 which can conflict with char $2 (); below. */
1729
1730 #include <limits.h>
1731 #undef $2
1732
1733 /* Override any GCC internal prototype to avoid an error.
1734 Use char because int might match the return type of a GCC
1735 builtin and then its argument prototype would still apply. */
1736 #ifdef __cplusplus
1737 extern "C"
1738 #endif
1739 char $2 ();
1740 /* The GNU C library defines this for functions which it implements
1741 to always fail with ENOSYS. Some functions are actually named
1742 something starting with __ and the normal name is an alias. */
1743 #if defined __stub_$2 || defined __stub___$2
1744 choke me
1745 #endif
1746
1747 int
1748 main (void)
1749 {
1750 return $2 ();
1751 ;
1752 return 0;
1753 }
1754 _ACEOF
1755 if ac_fn_c_try_link "$LINENO"
1756 then :
1757 eval "$3=yes"
1758 else $as_nop
1759 eval "$3=no"
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1762 conftest$ac_exeext conftest.$ac_ext
1763 fi
1764 eval ac_res=\$$3
1765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 printf "%s\n" "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769 } # ac_fn_c_check_func
1770
1771 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1772 # -------------------------------------------
1773 # Tests whether TYPE exists after having included INCLUDES, setting cache
1774 # variable VAR accordingly.
1775 ac_fn_c_check_type ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 printf %s "checking for $2... " >&6; }
1780 if eval test \${$3+y}
1781 then :
1782 printf %s "(cached) " >&6
1783 else $as_nop
1784 eval "$3=no"
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 $4
1788 int
1789 main (void)
1790 {
1791 if (sizeof ($2))
1792 return 0;
1793 ;
1794 return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"
1798 then :
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 $4
1802 int
1803 main (void)
1804 {
1805 if (sizeof (($2)))
1806 return 0;
1807 ;
1808 return 0;
1809 }
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"
1812 then :
1813
1814 else $as_nop
1815 eval "$3=yes"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 printf "%s\n" "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_type
1827 ac_configure_args_raw=
1828 for ac_arg
1829 do
1830 case $ac_arg in
1831 *\'*)
1832 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1833 esac
1834 as_fn_append ac_configure_args_raw " '$ac_arg'"
1835 done
1836
1837 case $ac_configure_args_raw in
1838 *$as_nl*)
1839 ac_safe_unquote= ;;
1840 *)
1841 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1842 ac_unsafe_a="$ac_unsafe_z#~"
1843 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1844 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1845 esac
1846
1847 cat >config.log <<_ACEOF
1848 This file contains any messages produced by compilers while
1849 running configure, to aid debugging if configure makes a mistake.
1850
1851 It was created by libigloo $as_me 0.9.5, which was
1852 generated by GNU Autoconf 2.71. Invocation command line was
1853
1854 $ $0$ac_configure_args_raw
1855
1856 _ACEOF
1857 exec 5>>config.log
1858 {
1859 cat <<_ASUNAME
1860 ## --------- ##
1861 ## Platform. ##
1862 ## --------- ##
1863
1864 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869
1870 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872
1873 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1874 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1875 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1877 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1878 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1879 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1880
1881 _ASUNAME
1882
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886 IFS=$as_save_IFS
1887 case $as_dir in #(((
1888 '') as_dir=./ ;;
1889 */) ;;
1890 *) as_dir=$as_dir/ ;;
1891 esac
1892 printf "%s\n" "PATH: $as_dir"
1893 done
1894 IFS=$as_save_IFS
1895
1896 } >&5
1897
1898 cat >&5 <<_ACEOF
1899
1900
1901 ## ----------- ##
1902 ## Core tests. ##
1903 ## ----------- ##
1904
1905 _ACEOF
1906
1907
1908 # Keep a trace of the command line.
1909 # Strip out --no-create and --no-recursion so they do not pile up.
1910 # Strip out --silent because we don't want to record it for future runs.
1911 # Also quote any args containing shell meta-characters.
1912 # Make two passes to allow for proper duplicate-argument suppression.
1913 ac_configure_args=
1914 ac_configure_args0=
1915 ac_configure_args1=
1916 ac_must_keep_next=false
1917 for ac_pass in 1 2
1918 do
1919 for ac_arg
1920 do
1921 case $ac_arg in
1922 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1924 | -silent | --silent | --silen | --sile | --sil)
1925 continue ;;
1926 *\'*)
1927 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928 esac
1929 case $ac_pass in
1930 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931 2)
1932 as_fn_append ac_configure_args1 " '$ac_arg'"
1933 if test $ac_must_keep_next = true; then
1934 ac_must_keep_next=false # Got value, back to normal.
1935 else
1936 case $ac_arg in
1937 *=* | --config-cache | -C | -disable-* | --disable-* \
1938 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1939 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1940 | -with-* | --with-* | -without-* | --without-* | --x)
1941 case "$ac_configure_args0 " in
1942 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943 esac
1944 ;;
1945 -* ) ac_must_keep_next=true ;;
1946 esac
1947 fi
1948 as_fn_append ac_configure_args " '$ac_arg'"
1949 ;;
1950 esac
1951 done
1952 done
1953 { ac_configure_args0=; unset ac_configure_args0;}
1954 { ac_configure_args1=; unset ac_configure_args1;}
1955
1956 # When interrupted or exit'd, cleanup temporary files, and complete
1957 # config.log. We remove comments because anyway the quotes in there
1958 # would cause problems or look ugly.
1959 # WARNING: Use '\'' to represent an apostrophe within the trap.
1960 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1961 trap 'exit_status=$?
1962 # Sanitize IFS.
1963 IFS=" "" $as_nl"
1964 # Save into config.log some information that might help in debugging.
1965 {
1966 echo
1967
1968 printf "%s\n" "## ---------------- ##
1969 ## Cache variables. ##
1970 ## ---------------- ##"
1971 echo
1972 # The following way of writing the cache mishandles newlines in values,
1973 (
1974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975 eval ac_val=\$$ac_var
1976 case $ac_val in #(
1977 *${as_nl}*)
1978 case $ac_var in #(
1979 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1980 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1981 esac
1982 case $ac_var in #(
1983 _ | IFS | as_nl) ;; #(
1984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1985 *) { eval $ac_var=; unset $ac_var;} ;;
1986 esac ;;
1987 esac
1988 done
1989 (set) 2>&1 |
1990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1991 *${as_nl}ac_space=\ *)
1992 sed -n \
1993 "s/'\''/'\''\\\\'\'''\''/g;
1994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1995 ;; #(
1996 *)
1997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998 ;;
1999 esac |
2000 sort
2001 )
2002 echo
2003
2004 printf "%s\n" "## ----------------- ##
2005 ## Output variables. ##
2006 ## ----------------- ##"
2007 echo
2008 for ac_var in $ac_subst_vars
2009 do
2010 eval ac_val=\$$ac_var
2011 case $ac_val in
2012 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 esac
2014 printf "%s\n" "$ac_var='\''$ac_val'\''"
2015 done | sort
2016 echo
2017
2018 if test -n "$ac_subst_files"; then
2019 printf "%s\n" "## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##"
2022 echo
2023 for ac_var in $ac_subst_files
2024 do
2025 eval ac_val=\$$ac_var
2026 case $ac_val in
2027 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 esac
2029 printf "%s\n" "$ac_var='\''$ac_val'\''"
2030 done | sort
2031 echo
2032 fi
2033
2034 if test -s confdefs.h; then
2035 printf "%s\n" "## ----------- ##
2036 ## confdefs.h. ##
2037 ## ----------- ##"
2038 echo
2039 cat confdefs.h
2040 echo
2041 fi
2042 test "$ac_signal" != 0 &&
2043 printf "%s\n" "$as_me: caught signal $ac_signal"
2044 printf "%s\n" "$as_me: exit $exit_status"
2045 } >&5
2046 rm -f core *.core core.conftest.* &&
2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2048 exit $exit_status
2049 ' 0
2050 for ac_signal in 1 2 13 15; do
2051 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2052 done
2053 ac_signal=0
2054
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2057
2058 printf "%s\n" "/* confdefs.h */" > confdefs.h
2059
2060 # Predefined preprocessor variables.
2061
2062 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2063
2064 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2065
2066 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2067
2068 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2069
2070 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2071
2072 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2073
2074
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer an explicitly selected file to automatically selected ones.
2077 if test -n "$CONFIG_SITE"; then
2078 ac_site_files="$CONFIG_SITE"
2079 elif test "x$prefix" != xNONE; then
2080 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2081 else
2082 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2083 fi
2084
2085 for ac_site_file in $ac_site_files
2086 do
2087 case $ac_site_file in #(
2088 */*) :
2089 ;; #(
2090 *) :
2091 ac_site_file=./$ac_site_file ;;
2092 esac
2093 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2095 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2096 sed 's/^/| /' "$ac_site_file" >&5
2097 . "$ac_site_file" \
2098 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2100 as_fn_error $? "failed to load site script $ac_site_file
2101 See \`config.log' for more details" "$LINENO" 5; }
2102 fi
2103 done
2104
2105 if test -r "$cache_file"; then
2106 # Some versions of bash will fail to source /dev/null (special files
2107 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2108 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2111 case $cache_file in
2112 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2113 *) . "./$cache_file";;
2114 esac
2115 fi
2116 else
2117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2119 >$cache_file
2120 fi
2121
2122 # Test code for whether the C compiler supports C89 (global declarations)
2123 ac_c_conftest_c89_globals='
2124 /* Does the compiler advertise C89 conformance?
2125 Do not test the value of __STDC__, because some compilers set it to 0
2126 while being otherwise adequately conformant. */
2127 #if !defined __STDC__
2128 # error "Compiler does not advertise C89 conformance"
2129 #endif
2130
2131 #include <stddef.h>
2132 #include <stdarg.h>
2133 struct stat;
2134 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2135 struct buf { int x; };
2136 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2137 static char *e (p, i)
2138 char **p;
2139 int i;
2140 {
2141 return p[i];
2142 }
2143 static char *f (char * (*g) (char **, int), char **p, ...)
2144 {
2145 char *s;
2146 va_list v;
2147 va_start (v,p);
2148 s = g (p, va_arg (v,int));
2149 va_end (v);
2150 return s;
2151 }
2152
2153 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2154 function prototypes and stuff, but not \xHH hex character constants.
2155 These do not provoke an error unfortunately, instead are silently treated
2156 as an "x". The following induces an error, until -std is added to get
2157 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2158 array size at least. It is necessary to write \x00 == 0 to get something
2159 that is true only with -std. */
2160 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2161
2162 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2163 inside strings and character constants. */
2164 #define FOO(x) '\''x'\''
2165 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2166
2167 int test (int i, double x);
2168 struct s1 {int (*f) (int a);};
2169 struct s2 {int (*f) (double a);};
2170 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2171 int, int);'
2172
2173 # Test code for whether the C compiler supports C89 (body of main).
2174 ac_c_conftest_c89_main='
2175 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2176 '
2177
2178 # Test code for whether the C compiler supports C99 (global declarations)
2179 ac_c_conftest_c99_globals='
2180 // Does the compiler advertise C99 conformance?
2181 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2182 # error "Compiler does not advertise C99 conformance"
2183 #endif
2184
2185 #include <stdbool.h>
2186 extern int puts (const char *);
2187 extern int printf (const char *, ...);
2188 extern int dprintf (int, const char *, ...);
2189 extern void *malloc (size_t);
2190
2191 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2192 // dprintf is used instead of fprintf to avoid needing to declare
2193 // FILE and stderr.
2194 #define debug(...) dprintf (2, __VA_ARGS__)
2195 #define showlist(...) puts (#__VA_ARGS__)
2196 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2197 static void
2198 test_varargs_macros (void)
2199 {
2200 int x = 1234;
2201 int y = 5678;
2202 debug ("Flag");
2203 debug ("X = %d\n", x);
2204 showlist (The first, second, and third items.);
2205 report (x>y, "x is %d but y is %d", x, y);
2206 }
2207
2208 // Check long long types.
2209 #define BIG64 18446744073709551615ull
2210 #define BIG32 4294967295ul
2211 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2212 #if !BIG_OK
2213 #error "your preprocessor is broken"
2214 #endif
2215 #if BIG_OK
2216 #else
2217 #error "your preprocessor is broken"
2218 #endif
2219 static long long int bignum = -9223372036854775807LL;
2220 static unsigned long long int ubignum = BIG64;
2221
2222 struct incomplete_array
2223 {
2224 int datasize;
2225 double data[];
2226 };
2227
2228 struct named_init {
2229 int number;
2230 const wchar_t *name;
2231 double average;
2232 };
2233
2234 typedef const char *ccp;
2235
2236 static inline int
2237 test_restrict (ccp restrict text)
2238 {
2239 // See if C++-style comments work.
2240 // Iterate through items via the restricted pointer.
2241 // Also check for declarations in for loops.
2242 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2243 continue;
2244 return 0;
2245 }
2246
2247 // Check varargs and va_copy.
2248 static bool
2249 test_varargs (const char *format, ...)
2250 {
2251 va_list args;
2252 va_start (args, format);
2253 va_list args_copy;
2254 va_copy (args_copy, args);
2255
2256 const char *str = "";
2257 int number = 0;
2258 float fnumber = 0;
2259
2260 while (*format)
2261 {
2262 switch (*format++)
2263 {
2264 case '\''s'\'': // string
2265 str = va_arg (args_copy, const char *);
2266 break;
2267 case '\''d'\'': // int
2268 number = va_arg (args_copy, int);
2269 break;
2270 case '\''f'\'': // float
2271 fnumber = va_arg (args_copy, double);
2272 break;
2273 default:
2274 break;
2275 }
2276 }
2277 va_end (args_copy);
2278 va_end (args);
2279
2280 return *str && number && fnumber;
2281 }
2282 '
2283
2284 # Test code for whether the C compiler supports C99 (body of main).
2285 ac_c_conftest_c99_main='
2286 // Check bool.
2287 _Bool success = false;
2288 success |= (argc != 0);
2289
2290 // Check restrict.
2291 if (test_restrict ("String literal") == 0)
2292 success = true;
2293 char *restrict newvar = "Another string";
2294
2295 // Check varargs.
2296 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2297 test_varargs_macros ();
2298
2299 // Check flexible array members.
2300 struct incomplete_array *ia =
2301 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2302 ia->datasize = 10;
2303 for (int i = 0; i < ia->datasize; ++i)
2304 ia->data[i] = i * 1.234;
2305
2306 // Check named initializers.
2307 struct named_init ni = {
2308 .number = 34,
2309 .name = L"Test wide string",
2310 .average = 543.34343,
2311 };
2312
2313 ni.number = 58;
2314
2315 int dynamic_array[ni.number];
2316 dynamic_array[0] = argv[0][0];
2317 dynamic_array[ni.number - 1] = 543;
2318
2319 // work around unused variable warnings
2320 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2321 || dynamic_array[ni.number - 1] != 543);
2322 '
2323
2324 # Test code for whether the C compiler supports C11 (global declarations)
2325 ac_c_conftest_c11_globals='
2326 // Does the compiler advertise C11 conformance?
2327 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2328 # error "Compiler does not advertise C11 conformance"
2329 #endif
2330
2331 // Check _Alignas.
2332 char _Alignas (double) aligned_as_double;
2333 char _Alignas (0) no_special_alignment;
2334 extern char aligned_as_int;
2335 char _Alignas (0) _Alignas (int) aligned_as_int;
2336
2337 // Check _Alignof.
2338 enum
2339 {
2340 int_alignment = _Alignof (int),
2341 int_array_alignment = _Alignof (int[100]),
2342 char_alignment = _Alignof (char)
2343 };
2344 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2345
2346 // Check _Noreturn.
2347 int _Noreturn does_not_return (void) { for (;;) continue; }
2348
2349 // Check _Static_assert.
2350 struct test_static_assert
2351 {
2352 int x;
2353 _Static_assert (sizeof (int) <= sizeof (long int),
2354 "_Static_assert does not work in struct");
2355 long int y;
2356 };
2357
2358 // Check UTF-8 literals.
2359 #define u8 syntax error!
2360 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2361
2362 // Check duplicate typedefs.
2363 typedef long *long_ptr;
2364 typedef long int *long_ptr;
2365 typedef long_ptr long_ptr;
2366
2367 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2368 struct anonymous
2369 {
2370 union {
2371 struct { int i; int j; };
2372 struct { int k; long int l; } w;
2373 };
2374 int m;
2375 } v1;
2376 '
2377
2378 # Test code for whether the C compiler supports C11 (body of main).
2379 ac_c_conftest_c11_main='
2380 _Static_assert ((offsetof (struct anonymous, i)
2381 == offsetof (struct anonymous, w.k)),
2382 "Anonymous union alignment botch");
2383 v1.i = 2;
2384 v1.w.k = 5;
2385 ok |= v1.i != 5;
2386 '
2387
2388 # Test code for whether the C compiler supports C11 (complete).
2389 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2390 ${ac_c_conftest_c99_globals}
2391 ${ac_c_conftest_c11_globals}
2392
2393 int
2394 main (int argc, char **argv)
2395 {
2396 int ok = 0;
2397 ${ac_c_conftest_c89_main}
2398 ${ac_c_conftest_c99_main}
2399 ${ac_c_conftest_c11_main}
2400 return ok;
2401 }
2402 "
2403
2404 # Test code for whether the C compiler supports C99 (complete).
2405 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2406 ${ac_c_conftest_c99_globals}
2407
2408 int
2409 main (int argc, char **argv)
2410 {
2411 int ok = 0;
2412 ${ac_c_conftest_c89_main}
2413 ${ac_c_conftest_c99_main}
2414 return ok;
2415 }
2416 "
2417
2418 # Test code for whether the C compiler supports C89 (complete).
2419 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2420
2421 int
2422 main (int argc, char **argv)
2423 {
2424 int ok = 0;
2425 ${ac_c_conftest_c89_main}
2426 return ok;
2427 }
2428 "
2429
2430 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2431 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2432 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2433 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2434 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2435 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2436 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2437 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2438 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2439 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2440 as_fn_append ac_func_c_list " clock_gettime HAVE_CLOCK_GETTIME"
2441 as_fn_append ac_func_c_list " gettimeofday HAVE_GETTIMEOFDAY"
2442 as_fn_append ac_func_c_list " ftime HAVE_FTIME"
2443 as_fn_append ac_func_c_list " clock_nanosleep HAVE_CLOCK_NANOSLEEP"
2444 as_fn_append ac_func_c_list " nanosleep HAVE_NANOSLEEP"
2445 as_fn_append ac_func_c_list " usleep HAVE_USLEEP"
2446 as_fn_append ac_func_c_list " select HAVE_SELECT"
2447 as_fn_append ac_func_c_list " sysconf HAVE_SYSCONF"
2448 as_fn_append ac_func_c_list " uname HAVE_UNAME"
2449 as_fn_append ac_func_c_list " getuid HAVE_GETUID"
2450 as_fn_append ac_func_c_list " getpid HAVE_GETPID"
2451 as_fn_append ac_func_c_list " getppid HAVE_GETPPID"
2452 as_fn_append ac_func_c_list " getrandom HAVE_GETRANDOM"
2453 as_fn_append ac_func_c_list " getentropy HAVE_GETENTROPY"
2454
2455 # Auxiliary files required by this configure script.
2456 ac_aux_files="tap-driver.sh ltmain.sh config.guess config.sub ar-lib compile missing install-sh"
2457
2458 # Locations in which to look for auxiliary files.
2459 ac_aux_dir_candidates="${srcdir}/build-aux"
2460
2461 # Search for a directory containing all of the required auxiliary files,
2462 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2463 # If we don't find one directory that contains all the files we need,
2464 # we report the set of missing files from the *first* directory in
2465 # $ac_aux_dir_candidates and give up.
2466 ac_missing_aux_files=""
2467 ac_first_candidate=:
2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 as_found=false
2471 for as_dir in $ac_aux_dir_candidates
2472 do
2473 IFS=$as_save_IFS
2474 case $as_dir in #(((
2475 '') as_dir=./ ;;
2476 */) ;;
2477 *) as_dir=$as_dir/ ;;
2478 esac
2479 as_found=:
2480
2481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2482 ac_aux_dir_found=yes
2483 ac_install_sh=
2484 for ac_aux in $ac_aux_files
2485 do
2486 # As a special case, if "install-sh" is required, that requirement
2487 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2488 # and $ac_install_sh is set appropriately for whichever one is found.
2489 if test x"$ac_aux" = x"install-sh"
2490 then
2491 if test -f "${as_dir}install-sh"; then
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2493 ac_install_sh="${as_dir}install-sh -c"
2494 elif test -f "${as_dir}install.sh"; then
2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2496 ac_install_sh="${as_dir}install.sh -c"
2497 elif test -f "${as_dir}shtool"; then
2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2499 ac_install_sh="${as_dir}shtool install -c"
2500 else
2501 ac_aux_dir_found=no
2502 if $ac_first_candidate; then
2503 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2504 else
2505 break
2506 fi
2507 fi
2508 else
2509 if test -f "${as_dir}${ac_aux}"; then
2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2511 else
2512 ac_aux_dir_found=no
2513 if $ac_first_candidate; then
2514 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2515 else
2516 break
2517 fi
2518 fi
2519 fi
2520 done
2521 if test "$ac_aux_dir_found" = yes; then
2522 ac_aux_dir="$as_dir"
2523 break
2524 fi
2525 ac_first_candidate=false
2526
2527 as_found=false
2528 done
2529 IFS=$as_save_IFS
2530 if $as_found
2531 then :
2532
2533 else $as_nop
2534 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2535 fi
2536
2537
2538 # These three variables are undocumented and unsupported,
2539 # and are intended to be withdrawn in a future Autoconf release.
2540 # They can cause serious problems if a builder's source tree is in a directory
2541 # whose full name contains unusual characters.
2542 if test -f "${ac_aux_dir}config.guess"; then
2543 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2544 fi
2545 if test -f "${ac_aux_dir}config.sub"; then
2546 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2547 fi
2548 if test -f "$ac_aux_dir/configure"; then
2549 ac_configure="$SHELL ${ac_aux_dir}configure"
2550 fi
2551
2552 # Check that the precious variables saved in the cache have kept the same
2553 # value.
2554 ac_cache_corrupted=false
2555 for ac_var in $ac_precious_vars; do
2556 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2557 eval ac_new_set=\$ac_env_${ac_var}_set
2558 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2559 eval ac_new_val=\$ac_env_${ac_var}_value
2560 case $ac_old_set,$ac_new_set in
2561 set,)
2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2563 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2564 ac_cache_corrupted=: ;;
2565 ,set)
2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2567 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2568 ac_cache_corrupted=: ;;
2569 ,);;
2570 *)
2571 if test "x$ac_old_val" != "x$ac_new_val"; then
2572 # differences in whitespace do not lead to failure.
2573 ac_old_val_w=`echo x $ac_old_val`
2574 ac_new_val_w=`echo x $ac_new_val`
2575 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2577 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2578 ac_cache_corrupted=:
2579 else
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2581 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2582 eval $ac_var=\$ac_old_val
2583 fi
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2585 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2587 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2588 fi;;
2589 esac
2590 # Pass precious variables to config.status.
2591 if test "$ac_new_set" = set; then
2592 case $ac_new_val in
2593 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2594 *) ac_arg=$ac_var=$ac_new_val ;;
2595 esac
2596 case " $ac_configure_args " in
2597 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2598 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2599 esac
2600 fi
2601 done
2602 if $ac_cache_corrupted; then
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2606 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2607 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2608 and start over" "$LINENO" 5
2609 fi
2610 ## -------------------- ##
2611 ## Main body of script. ##
2612 ## -------------------- ##
2613
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619
2620
2621
2622
2623
2624
2625
2626
2627 am__api_version='1.16'
2628
2629
2630
2631 # Find a good install program. We prefer a C program (faster),
2632 # so one script is as good as another. But avoid the broken or
2633 # incompatible versions:
2634 # SysV /etc/install, /usr/sbin/install
2635 # SunOS /usr/etc/install
2636 # IRIX /sbin/install
2637 # AIX /bin/install
2638 # AmigaOS /C/install, which installs bootblocks on floppy discs
2639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2642 # OS/2's system install, which has a completely different semantic
2643 # ./install, which can be erroneously created by make from ./install.sh.
2644 # Reject install programs that cannot install multiple files.
2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2646 printf %s "checking for a BSD-compatible install... " >&6; }
2647 if test -z "$INSTALL"; then
2648 if test ${ac_cv_path_install+y}
2649 then :
2650 printf %s "(cached) " >&6
2651 else $as_nop
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 case $as_dir in #(((
2657 '') as_dir=./ ;;
2658 */) ;;
2659 *) as_dir=$as_dir/ ;;
2660 esac
2661 # Account for fact that we put trailing slashes in our PATH walk.
2662 case $as_dir in #((
2663 ./ | /[cC]/* | \
2664 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2665 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2666 /usr/ucb/* ) ;;
2667 *)
2668 # OSF1 and SCO ODT 3.0 have their own names for install.
2669 # Don't use installbsd from OSF since it installs stuff as root
2670 # by default.
2671 for ac_prog in ginstall scoinst install; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2674 if test $ac_prog = install &&
2675 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676 # AIX install. It has an incompatible calling convention.
2677 :
2678 elif test $ac_prog = install &&
2679 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680 # program-specific install script used by HP pwplus--don't use.
2681 :
2682 else
2683 rm -rf conftest.one conftest.two conftest.dir
2684 echo one > conftest.one
2685 echo two > conftest.two
2686 mkdir conftest.dir
2687 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2688 test -s conftest.one && test -s conftest.two &&
2689 test -s conftest.dir/conftest.one &&
2690 test -s conftest.dir/conftest.two
2691 then
2692 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2693 break 3
2694 fi
2695 fi
2696 fi
2697 done
2698 done
2699 ;;
2700 esac
2701
2702 done
2703 IFS=$as_save_IFS
2704
2705 rm -rf conftest.one conftest.two conftest.dir
2706
2707 fi
2708 if test ${ac_cv_path_install+y}; then
2709 INSTALL=$ac_cv_path_install
2710 else
2711 # As a last resort, use the slow shell script. Don't cache a
2712 # value for INSTALL within a source directory, because that will
2713 # break other packages using the cache if that directory is
2714 # removed, or if the value is a relative name.
2715 INSTALL=$ac_install_sh
2716 fi
2717 fi
2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2719 printf "%s\n" "$INSTALL" >&6; }
2720
2721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2722 # It thinks the first close brace ends the variable substitution.
2723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2724
2725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2726
2727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2728
2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2730 printf %s "checking whether build environment is sane... " >&6; }
2731 # Reject unsafe characters in $srcdir or the absolute working directory
2732 # name. Accept space and tab only in the latter.
2733 am_lf='
2734 '
2735 case `pwd` in
2736 *[\\\"\#\$\&\'\`$am_lf]*)
2737 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2738 esac
2739 case $srcdir in
2740 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2741 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2742 esac
2743
2744 # Do 'set' in a subshell so we don't clobber the current shell's
2745 # arguments. Must try -L first in case configure is actually a
2746 # symlink; some systems play weird games with the mod time of symlinks
2747 # (eg FreeBSD returns the mod time of the symlink's containing
2748 # directory).
2749 if (
2750 am_has_slept=no
2751 for am_try in 1 2; do
2752 echo "timestamp, slept: $am_has_slept" > conftest.file
2753 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2754 if test "$*" = "X"; then
2755 # -L didn't work.
2756 set X `ls -t "$srcdir/configure" conftest.file`
2757 fi
2758 if test "$*" != "X $srcdir/configure conftest.file" \
2759 && test "$*" != "X conftest.file $srcdir/configure"; then
2760
2761 # If neither matched, then we have a broken ls. This can happen
2762 # if, for instance, CONFIG_SHELL is bash and it inherits a
2763 # broken ls alias from the environment. This has actually
2764 # happened. Such a system could not be considered "sane".
2765 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2766 alias in your environment" "$LINENO" 5
2767 fi
2768 if test "$2" = conftest.file || test $am_try -eq 2; then
2769 break
2770 fi
2771 # Just in case.
2772 sleep 1
2773 am_has_slept=yes
2774 done
2775 test "$2" = conftest.file
2776 )
2777 then
2778 # Ok.
2779 :
2780 else
2781 as_fn_error $? "newly created file is older than distributed files!
2782 Check your system clock" "$LINENO" 5
2783 fi
2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2785 printf "%s\n" "yes" >&6; }
2786 # If we didn't sleep, we still need to ensure time stamps of config.status and
2787 # generated files are strictly newer.
2788 am_sleep_pid=
2789 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2790 ( sleep 1 ) &
2791 am_sleep_pid=$!
2792 fi
2793
2794 rm -f conftest.file
2795
2796 test "$program_prefix" != NONE &&
2797 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2798 # Use a double $ so make ignores it.
2799 test "$program_suffix" != NONE &&
2800 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2801 # Double any \ or $.
2802 # By default was `s,x,x', remove it if useless.
2803 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2804 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2805
2806
2807 # Expand $ac_aux_dir to an absolute path.
2808 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2809
2810
2811 if test x"${MISSING+set}" != xset; then
2812 MISSING="\${SHELL} '$am_aux_dir/missing'"
2813 fi
2814 # Use eval to expand $SHELL
2815 if eval "$MISSING --is-lightweight"; then
2816 am_missing_run="$MISSING "
2817 else
2818 am_missing_run=
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2820 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2821 fi
2822
2823 if test x"${install_sh+set}" != xset; then
2824 case $am_aux_dir in
2825 *\ * | *\ *)
2826 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2827 *)
2828 install_sh="\${SHELL} $am_aux_dir/install-sh"
2829 esac
2830 fi
2831
2832 # Installed binaries are usually stripped using 'strip' when the user
2833 # run "make install-strip". However 'strip' might not be the right
2834 # tool to use in cross-compilation environments, therefore Automake
2835 # will honor the 'STRIP' environment variable to overrule this program.
2836 if test "$cross_compiling" != no; then
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}strip; ac_word=$2
2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 printf %s "checking for $ac_word... " >&6; }
2842 if test ${ac_cv_prog_STRIP+y}
2843 then :
2844 printf %s "(cached) " >&6
2845 else $as_nop
2846 if test -n "$STRIP"; then
2847 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852 IFS=$as_save_IFS
2853 case $as_dir in #(((
2854 '') as_dir=./ ;;
2855 */) ;;
2856 *) as_dir=$as_dir/ ;;
2857 esac
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 STRIP=$ac_cv_prog_STRIP
2871 if test -n "$STRIP"; then
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2873 printf "%s\n" "$STRIP" >&6; }
2874 else
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 printf "%s\n" "no" >&6; }
2877 fi
2878
2879
2880 fi
2881 if test -z "$ac_cv_prog_STRIP"; then
2882 ac_ct_STRIP=$STRIP
2883 # Extract the first word of "strip", so it can be a program name with args.
2884 set dummy strip; ac_word=$2
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 printf %s "checking for $ac_word... " >&6; }
2887 if test ${ac_cv_prog_ac_ct_STRIP+y}
2888 then :
2889 printf %s "(cached) " >&6
2890 else $as_nop
2891 if test -n "$ac_ct_STRIP"; then
2892 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 case $as_dir in #(((
2899 '') as_dir=./ ;;
2900 */) ;;
2901 *) as_dir=$as_dir/ ;;
2902 esac
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_ac_ct_STRIP="strip"
2906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2916 if test -n "$ac_ct_STRIP"; then
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2918 printf "%s\n" "$ac_ct_STRIP" >&6; }
2919 else
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 printf "%s\n" "no" >&6; }
2922 fi
2923
2924 if test "x$ac_ct_STRIP" = x; then
2925 STRIP=":"
2926 else
2927 case $cross_compiling:$ac_tool_warned in
2928 yes:)
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2932 esac
2933 STRIP=$ac_ct_STRIP
2934 fi
2935 else
2936 STRIP="$ac_cv_prog_STRIP"
2937 fi
2938
2939 fi
2940 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2941
2942
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2944 printf %s "checking for a race-free mkdir -p... " >&6; }
2945 if test -z "$MKDIR_P"; then
2946 if test ${ac_cv_path_mkdir+y}
2947 then :
2948 printf %s "(cached) " >&6
2949 else $as_nop
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2952 do
2953 IFS=$as_save_IFS
2954 case $as_dir in #(((
2955 '') as_dir=./ ;;
2956 */) ;;
2957 *) as_dir=$as_dir/ ;;
2958 esac
2959 for ac_prog in mkdir gmkdir; do
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2962 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2963 'mkdir ('*'coreutils) '* | \
2964 'BusyBox '* | \
2965 'mkdir (fileutils) '4.1*)
2966 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2967 break 3;;
2968 esac
2969 done
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975
2976 test -d ./--version && rmdir ./--version
2977 if test ${ac_cv_path_mkdir+y}; then
2978 MKDIR_P="$ac_cv_path_mkdir -p"
2979 else
2980 # As a last resort, use the slow shell script. Don't cache a
2981 # value for MKDIR_P within a source directory, because that will
2982 # break other packages using the cache if that directory is
2983 # removed, or if the value is a relative name.
2984 MKDIR_P="$ac_install_sh -d"
2985 fi
2986 fi
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2988 printf "%s\n" "$MKDIR_P" >&6; }
2989
2990 for ac_prog in gawk mawk nawk awk
2991 do
2992 # Extract the first word of "$ac_prog", so it can be a program name with args.
2993 set dummy $ac_prog; ac_word=$2
2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 printf %s "checking for $ac_word... " >&6; }
2996 if test ${ac_cv_prog_AWK+y}
2997 then :
2998 printf %s "(cached) " >&6
2999 else $as_nop
3000 if test -n "$AWK"; then
3001 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006 IFS=$as_save_IFS
3007 case $as_dir in #(((
3008 '') as_dir=./ ;;
3009 */) ;;
3010 *) as_dir=$as_dir/ ;;
3011 esac
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3014 ac_cv_prog_AWK="$ac_prog"
3015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3016 break 2
3017 fi
3018 done
3019 done
3020 IFS=$as_save_IFS
3021
3022 fi
3023 fi
3024 AWK=$ac_cv_prog_AWK
3025 if test -n "$AWK"; then
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3027 printf "%s\n" "$AWK" >&6; }
3028 else
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 printf "%s\n" "no" >&6; }
3031 fi
3032
3033
3034 test -n "$AWK" && break
3035 done
3036
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3038 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3039 set x ${MAKE-make}
3040 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3041 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3042 then :
3043 printf %s "(cached) " >&6
3044 else $as_nop
3045 cat >conftest.make <<\_ACEOF
3046 SHELL = /bin/sh
3047 all:
3048 @echo '@@@%%%=$(MAKE)=@@@%%%'
3049 _ACEOF
3050 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3051 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3052 *@@@%%%=?*=@@@%%%*)
3053 eval ac_cv_prog_make_${ac_make}_set=yes;;
3054 *)
3055 eval ac_cv_prog_make_${ac_make}_set=no;;
3056 esac
3057 rm -f conftest.make
3058 fi
3059 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3061 printf "%s\n" "yes" >&6; }
3062 SET_MAKE=
3063 else
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 printf "%s\n" "no" >&6; }
3066 SET_MAKE="MAKE=${MAKE-make}"
3067 fi
3068
3069 rm -rf .tst 2>/dev/null
3070 mkdir .tst 2>/dev/null
3071 if test -d .tst; then
3072 am__leading_dot=.
3073 else
3074 am__leading_dot=_
3075 fi
3076 rmdir .tst 2>/dev/null
3077
3078 # Check whether --enable-silent-rules was given.
3079 if test ${enable_silent_rules+y}
3080 then :
3081 enableval=$enable_silent_rules;
3082 fi
3083
3084 case $enable_silent_rules in # (((
3085 yes) AM_DEFAULT_VERBOSITY=0;;
3086 no) AM_DEFAULT_VERBOSITY=1;;
3087 *) AM_DEFAULT_VERBOSITY=1;;
3088 esac
3089 am_make=${MAKE-make}
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3091 printf %s "checking whether $am_make supports nested variables... " >&6; }
3092 if test ${am_cv_make_support_nested_variables+y}
3093 then :
3094 printf %s "(cached) " >&6
3095 else $as_nop
3096 if printf "%s\n" 'TRUE=$(BAR$(V))
3097 BAR0=false
3098 BAR1=true
3099 V=1
3100 am__doit:
3101 @$(TRUE)
3102 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3103 am_cv_make_support_nested_variables=yes
3104 else
3105 am_cv_make_support_nested_variables=no
3106 fi
3107 fi
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3109 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3110 if test $am_cv_make_support_nested_variables = yes; then
3111 AM_V='$(V)'
3112 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3113 else
3114 AM_V=$AM_DEFAULT_VERBOSITY
3115 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3116 fi
3117 AM_BACKSLASH='\'
3118
3119 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3120 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3121 # is not polluted with repeated "-I."
3122 am__isrc=' -I$(srcdir)'
3123 # test to see if srcdir already configured
3124 if test -f $srcdir/config.status; then
3125 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3126 fi
3127 fi
3128
3129 # test whether we have cygpath
3130 if test -z "$CYGPATH_W"; then
3131 if (cygpath --version) >/dev/null 2>/dev/null; then
3132 CYGPATH_W='cygpath -w'
3133 else
3134 CYGPATH_W=echo
3135 fi
3136 fi
3137
3138
3139 # Define the identity of the package.
3140 PACKAGE='libigloo'
3141 VERSION='0.9.5'
3142
3143
3144 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3145
3146
3147 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3148
3149 # Some tools Automake needs.
3150
3151 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3152
3153
3154 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3155
3156
3157 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3158
3159
3160 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3161
3162
3163 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3164
3165 # For better backward compatibility. To be removed once Automake 1.9.x
3166 # dies out for good. For more background, see:
3167 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3168 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3169 mkdir_p='$(MKDIR_P)'
3170
3171 # We need awk for the "check" target (and possibly the TAP driver). The
3172 # system "awk" is bad on some platforms.
3173 # Always define AMTAR for backward compatibility. Yes, it's still used
3174 # in the wild :-( We should find a proper way to deprecate it ...
3175 AMTAR='$${TAR-tar}'
3176
3177
3178 # We'll loop over all known methods to create a tar archive until one works.
3179 _am_tools='gnutar plaintar pax cpio none'
3180
3181 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3182 # There is notably a 21 bits limit for the UID and the GID. In fact,
3183 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3184 # and bug#13588).
3185 am_max_uid=2097151 # 2^21 - 1
3186 am_max_gid=$am_max_uid
3187 # The $UID and $GID variables are not portable, so we need to resort
3188 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3189 # below are definitely unexpected, so allow the users to see them
3190 # (that is, avoid stderr redirection).
3191 am_uid=`id -u || echo unknown`
3192 am_gid=`id -g || echo unknown`
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3194 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3195 if test $am_uid -le $am_max_uid; then
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197 printf "%s\n" "yes" >&6; }
3198 else
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 printf "%s\n" "no" >&6; }
3201 _am_tools=none
3202 fi
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3204 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3205 if test $am_gid -le $am_max_gid; then
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 printf "%s\n" "yes" >&6; }
3208 else
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 printf "%s\n" "no" >&6; }
3211 _am_tools=none
3212 fi
3213
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3215 printf %s "checking how to create a ustar tar archive... " >&6; }
3216
3217 # Go ahead even if we have the value already cached. We do so because we
3218 # need to set the values for the 'am__tar' and 'am__untar' variables.
3219 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3220
3221 for _am_tool in $_am_tools; do
3222 case $_am_tool in
3223 gnutar)
3224 for _am_tar in tar gnutar gtar; do
3225 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3226 ($_am_tar --version) >&5 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } && break
3230 done
3231 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3232 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3233 am__untar="$_am_tar -xf -"
3234 ;;
3235 plaintar)
3236 # Must skip GNU tar: if it does not support --format= it doesn't create
3237 # ustar tarball either.
3238 (tar --version) >/dev/null 2>&1 && continue
3239 am__tar='tar chf - "$$tardir"'
3240 am__tar_='tar chf - "$tardir"'
3241 am__untar='tar xf -'
3242 ;;
3243 pax)
3244 am__tar='pax -L -x ustar -w "$$tardir"'
3245 am__tar_='pax -L -x ustar -w "$tardir"'
3246 am__untar='pax -r'
3247 ;;
3248 cpio)
3249 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3250 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3251 am__untar='cpio -i -H ustar -d'
3252 ;;
3253 none)
3254 am__tar=false
3255 am__tar_=false
3256 am__untar=false
3257 ;;
3258 esac
3259
3260 # If the value was cached, stop now. We just wanted to have am__tar
3261 # and am__untar set.
3262 test -n "${am_cv_prog_tar_ustar}" && break
3263
3264 # tar/untar a dummy directory, and stop if the command works.
3265 rm -rf conftest.dir
3266 mkdir conftest.dir
3267 echo GrepMe > conftest.dir/file
3268 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3269 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3273 rm -rf conftest.dir
3274 if test -s conftest.tar; then
3275 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3276 ($am__untar <conftest.tar) >&5 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }
3280 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3281 (cat conftest.dir/file) >&5 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }
3285 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3286 fi
3287 done
3288 rm -rf conftest.dir
3289
3290 if test ${am_cv_prog_tar_ustar+y}
3291 then :
3292 printf %s "(cached) " >&6
3293 else $as_nop
3294 am_cv_prog_tar_ustar=$_am_tool
3295 fi
3296
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3298 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3299
3300
3301
3302
3303
3304 # Variables for tags utilities; see am/tags.am
3305 if test -z "$CTAGS"; then
3306 CTAGS=ctags
3307 fi
3308
3309 if test -z "$ETAGS"; then
3310 ETAGS=etags
3311 fi
3312
3313 if test -z "$CSCOPE"; then
3314 CSCOPE=cscope
3315 fi
3316
3317
3318
3319 # POSIX will say in a future version that running "rm -f" with no argument
3320 # is OK; and we want to be able to make that assumption in our Makefile
3321 # recipes. So use an aggressive probe to check that the usage we want is
3322 # actually supported "in the wild" to an acceptable degree.
3323 # See automake bug#10828.
3324 # To make any issue more visible, cause the running configure to be aborted
3325 # by default if the 'rm' program in use doesn't match our expectations; the
3326 # user can still override this though.
3327 if rm -f && rm -fr && rm -rf; then : OK; else
3328 cat >&2 <<'END'
3329 Oops!
3330
3331 Your 'rm' program seems unable to run without file operands specified
3332 on the command line, even when the '-f' option is present. This is contrary
3333 to the behaviour of most rm programs out there, and not conforming with
3334 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3335
3336 Please tell [email protected] about your system, including the value
3337 of your $PATH and any error possibly output before this message. This
3338 can help us improve future automake versions.
3339
3340 END
3341 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3342 echo 'Configuration will proceed anyway, since you have set the' >&2
3343 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3344 echo >&2
3345 else
3346 cat >&2 <<'END'
3347 Aborting the configuration process, to ensure you take notice of the issue.
3348
3349 You can download and install GNU coreutils to get an 'rm' implementation
3350 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3351
3352 If you want to complete the configuration process using your problematic
3353 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3354 to "yes", and re-run configure.
3355
3356 END
3357 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3358 fi
3359 fi
3360
3361
3362
3363 printf "%s\n" "#define igloo_VERSION_MAJOR 0" >>confdefs.h
3364
3365
3366 printf "%s\n" "#define igloo_VERSION_MINOR 9" >>confdefs.h
3367
3368
3369 printf "%s\n" "#define igloo_VERSION_PATCH 5" >>confdefs.h
3370
3371
3372 printf "%s\n" "#define igloo_VERSION_STRING \"libigloo/0.9.5\"" >>confdefs.h
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 if test -n "$ac_tool_prefix"; then
3390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3391 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 printf %s "checking for $ac_word... " >&6; }
3394 if test ${ac_cv_prog_CC+y}
3395 then :
3396 printf %s "(cached) " >&6
3397 else $as_nop
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 case $as_dir in #(((
3406 '') as_dir=./ ;;
3407 */) ;;
3408 *) as_dir=$as_dir/ ;;
3409 esac
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 CC=$ac_cv_prog_CC
3423 if test -n "$CC"; then
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 printf "%s\n" "$CC" >&6; }
3426 else
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 printf "%s\n" "no" >&6; }
3429 fi
3430
3431
3432 fi
3433 if test -z "$ac_cv_prog_CC"; then
3434 ac_ct_CC=$CC
3435 # Extract the first word of "gcc", so it can be a program name with args.
3436 set dummy gcc; ac_word=$2
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 printf %s "checking for $ac_word... " >&6; }
3439 if test ${ac_cv_prog_ac_ct_CC+y}
3440 then :
3441 printf %s "(cached) " >&6
3442 else $as_nop
3443 if test -n "$ac_ct_CC"; then
3444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449 IFS=$as_save_IFS
3450 case $as_dir in #(((
3451 '') as_dir=./ ;;
3452 */) ;;
3453 *) as_dir=$as_dir/ ;;
3454 esac
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3457 ac_cv_prog_ac_ct_CC="gcc"
3458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3459 break 2
3460 fi
3461 done
3462 done
3463 IFS=$as_save_IFS
3464
3465 fi
3466 fi
3467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3468 if test -n "$ac_ct_CC"; then
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3470 printf "%s\n" "$ac_ct_CC" >&6; }
3471 else
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 printf "%s\n" "no" >&6; }
3474 fi
3475
3476 if test "x$ac_ct_CC" = x; then
3477 CC=""
3478 else
3479 case $cross_compiling:$ac_tool_warned in
3480 yes:)
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3482 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483 ac_tool_warned=yes ;;
3484 esac
3485 CC=$ac_ct_CC
3486 fi
3487 else
3488 CC="$ac_cv_prog_CC"
3489 fi
3490
3491 if test -z "$CC"; then
3492 if test -n "$ac_tool_prefix"; then
3493 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3494 set dummy ${ac_tool_prefix}cc; ac_word=$2
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 printf %s "checking for $ac_word... " >&6; }
3497 if test ${ac_cv_prog_CC+y}
3498 then :
3499 printf %s "(cached) " >&6
3500 else $as_nop
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 case $as_dir in #(((
3509 '') as_dir=./ ;;
3510 */) ;;
3511 *) as_dir=$as_dir/ ;;
3512 esac
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_CC="${ac_tool_prefix}cc"
3516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3517 break 2
3518 fi
3519 done
3520 done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 CC=$ac_cv_prog_CC
3526 if test -n "$CC"; then
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 printf "%s\n" "$CC" >&6; }
3529 else
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 printf "%s\n" "no" >&6; }
3532 fi
3533
3534
3535 fi
3536 fi
3537 if test -z "$CC"; then
3538 # Extract the first word of "cc", so it can be a program name with args.
3539 set dummy cc; ac_word=$2
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 printf %s "checking for $ac_word... " >&6; }
3542 if test ${ac_cv_prog_CC+y}
3543 then :
3544 printf %s "(cached) " >&6
3545 else $as_nop
3546 if test -n "$CC"; then
3547 ac_cv_prog_CC="$CC" # Let the user override the test.
3548 else
3549 ac_prog_rejected=no
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553 IFS=$as_save_IFS
3554 case $as_dir in #(((
3555 '') as_dir=./ ;;
3556 */) ;;
3557 *) as_dir=$as_dir/ ;;
3558 esac
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3561 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3562 ac_prog_rejected=yes
3563 continue
3564 fi
3565 ac_cv_prog_CC="cc"
3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 if test $ac_prog_rejected = yes; then
3574 # We found a bogon in the path, so make sure we never use it.
3575 set dummy $ac_cv_prog_CC
3576 shift
3577 if test $# != 0; then
3578 # We chose a different compiler from the bogus one.
3579 # However, it has the same basename, so the bogon will be chosen
3580 # first if we set CC to just the basename; use the full file name.
3581 shift
3582 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3583 fi
3584 fi
3585 fi
3586 fi
3587 CC=$ac_cv_prog_CC
3588 if test -n "$CC"; then
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3590 printf "%s\n" "$CC" >&6; }
3591 else
3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 printf "%s\n" "no" >&6; }
3594 fi
3595
3596
3597 fi
3598 if test -z "$CC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 for ac_prog in cl.exe
3601 do
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 printf %s "checking for $ac_word... " >&6; }
3606 if test ${ac_cv_prog_CC+y}
3607 then :
3608 printf %s "(cached) " >&6
3609 else $as_nop
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616 IFS=$as_save_IFS
3617 case $as_dir in #(((
3618 '') as_dir=./ ;;
3619 */) ;;
3620 *) as_dir=$as_dir/ ;;
3621 esac
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3626 break 2
3627 fi
3628 done
3629 done
3630 IFS=$as_save_IFS
3631
3632 fi
3633 fi
3634 CC=$ac_cv_prog_CC
3635 if test -n "$CC"; then
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 printf "%s\n" "$CC" >&6; }
3638 else
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 printf "%s\n" "no" >&6; }
3641 fi
3642
3643
3644 test -n "$CC" && break
3645 done
3646 fi
3647 if test -z "$CC"; then
3648 ac_ct_CC=$CC
3649 for ac_prog in cl.exe
3650 do
3651 # Extract the first word of "$ac_prog", so it can be a program name with args.
3652 set dummy $ac_prog; ac_word=$2
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 printf %s "checking for $ac_word... " >&6; }
3655 if test ${ac_cv_prog_ac_ct_CC+y}
3656 then :
3657 printf %s "(cached) " >&6
3658 else $as_nop
3659 if test -n "$ac_ct_CC"; then
3660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665 IFS=$as_save_IFS
3666 case $as_dir in #(((
3667 '') as_dir=./ ;;
3668 */) ;;
3669 *) as_dir=$as_dir/ ;;
3670 esac
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_ac_ct_CC="$ac_prog"
3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi
3682 fi
3683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684 if test -n "$ac_ct_CC"; then
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3686 printf "%s\n" "$ac_ct_CC" >&6; }
3687 else
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 printf "%s\n" "no" >&6; }
3690 fi
3691
3692
3693 test -n "$ac_ct_CC" && break
3694 done
3695
3696 if test "x$ac_ct_CC" = x; then
3697 CC=""
3698 else
3699 case $cross_compiling:$ac_tool_warned in
3700 yes:)
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3702 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3703 ac_tool_warned=yes ;;
3704 esac
3705 CC=$ac_ct_CC
3706 fi
3707 fi
3708
3709 fi
3710 if test -z "$CC"; then
3711 if test -n "$ac_tool_prefix"; then
3712 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3713 set dummy ${ac_tool_prefix}clang; ac_word=$2
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 printf %s "checking for $ac_word... " >&6; }
3716 if test ${ac_cv_prog_CC+y}
3717 then :
3718 printf %s "(cached) " >&6
3719 else $as_nop
3720 if test -n "$CC"; then
3721 ac_cv_prog_CC="$CC" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726 IFS=$as_save_IFS
3727 case $as_dir in #(((
3728 '') as_dir=./ ;;
3729 */) ;;
3730 *) as_dir=$as_dir/ ;;
3731 esac
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_CC="${ac_tool_prefix}clang"
3735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3736 break 2
3737 fi
3738 done
3739 done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 CC=$ac_cv_prog_CC
3745 if test -n "$CC"; then
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747 printf "%s\n" "$CC" >&6; }
3748 else
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 printf "%s\n" "no" >&6; }
3751 fi
3752
3753
3754 fi
3755 if test -z "$ac_cv_prog_CC"; then
3756 ac_ct_CC=$CC
3757 # Extract the first word of "clang", so it can be a program name with args.
3758 set dummy clang; ac_word=$2
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 printf %s "checking for $ac_word... " >&6; }
3761 if test ${ac_cv_prog_ac_ct_CC+y}
3762 then :
3763 printf %s "(cached) " >&6
3764 else $as_nop
3765 if test -n "$ac_ct_CC"; then
3766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3770 do
3771 IFS=$as_save_IFS
3772 case $as_dir in #(((
3773 '') as_dir=./ ;;
3774 */) ;;
3775 *) as_dir=$as_dir/ ;;
3776 esac
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_ac_ct_CC="clang"
3780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783 done
3784 done
3785 IFS=$as_save_IFS
3786
3787 fi
3788 fi
3789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3790 if test -n "$ac_ct_CC"; then
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3792 printf "%s\n" "$ac_ct_CC" >&6; }
3793 else
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 printf "%s\n" "no" >&6; }
3796 fi
3797
3798 if test "x$ac_ct_CC" = x; then
3799 CC=""
3800 else
3801 case $cross_compiling:$ac_tool_warned in
3802 yes:)
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805 ac_tool_warned=yes ;;
3806 esac
3807 CC=$ac_ct_CC
3808 fi
3809 else
3810 CC="$ac_cv_prog_CC"
3811 fi
3812
3813 fi
3814
3815
3816 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3818 as_fn_error $? "no acceptable C compiler found in \$PATH
3819 See \`config.log' for more details" "$LINENO" 5; }
3820
3821 # Provide some information about the compiler.
3822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3823 set X $ac_compile
3824 ac_compiler=$2
3825 for ac_option in --version -v -V -qversion -version; do
3826 { { ac_try="$ac_compiler $ac_option >&5"
3827 case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832 printf "%s\n" "$ac_try_echo"; } >&5
3833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3834 ac_status=$?
3835 if test -s conftest.err; then
3836 sed '10a\
3837 ... rest of stderr output deleted ...
3838 10q' conftest.err >conftest.er1
3839 cat conftest.er1 >&5
3840 fi
3841 rm -f conftest.er1 conftest.err
3842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }
3844 done
3845
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848
3849 int
3850 main (void)
3851 {
3852
3853 ;
3854 return 0;
3855 }
3856 _ACEOF
3857 ac_clean_files_save=$ac_clean_files
3858 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3859 # Try to create an executable without -o first, disregard a.out.
3860 # It will help us diagnose broken compilers, and finding out an intuition
3861 # of exeext.
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3863 printf %s "checking whether the C compiler works... " >&6; }
3864 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3865
3866 # The possible output files:
3867 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3868
3869 ac_rmfiles=
3870 for ac_file in $ac_files
3871 do
3872 case $ac_file in
3873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3874 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3875 esac
3876 done
3877 rm -f $ac_rmfiles
3878
3879 if { { ac_try="$ac_link_default"
3880 case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883 esac
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 printf "%s\n" "$ac_try_echo"; } >&5
3886 (eval "$ac_link_default") 2>&5
3887 ac_status=$?
3888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }
3890 then :
3891 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3892 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3893 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3894 # so that the user can short-circuit this test for compilers unknown to
3895 # Autoconf.
3896 for ac_file in $ac_files ''
3897 do
3898 test -f "$ac_file" || continue
3899 case $ac_file in
3900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3901 ;;
3902 [ab].out )
3903 # We found the default executable, but exeext='' is most
3904 # certainly right.
3905 break;;
3906 *.* )
3907 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3908 then :; else
3909 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3910 fi
3911 # We set ac_cv_exeext here because the later test for it is not
3912 # safe: cross compilers may not add the suffix if given an `-o'
3913 # argument, so we may need to know it at that point already.
3914 # Even if this section looks crufty: it has the advantage of
3915 # actually working.
3916 break;;
3917 * )
3918 break;;
3919 esac
3920 done
3921 test "$ac_cv_exeext" = no && ac_cv_exeext=
3922
3923 else $as_nop
3924 ac_file=''
3925 fi
3926 if test -z "$ac_file"
3927 then :
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 printf "%s\n" "no" >&6; }
3930 printf "%s\n" "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3935 as_fn_error 77 "C compiler cannot create executables
3936 See \`config.log' for more details" "$LINENO" 5; }
3937 else $as_nop
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 printf "%s\n" "yes" >&6; }
3940 fi
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3942 printf %s "checking for C compiler default output file name... " >&6; }
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3944 printf "%s\n" "$ac_file" >&6; }
3945 ac_exeext=$ac_cv_exeext
3946
3947 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3948 ac_clean_files=$ac_clean_files_save
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3950 printf %s "checking for suffix of executables... " >&6; }
3951 if { { ac_try="$ac_link"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 printf "%s\n" "$ac_try_echo"; } >&5
3958 (eval "$ac_link") 2>&5
3959 ac_status=$?
3960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3962 then :
3963 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3964 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3965 # work properly (i.e., refer to `conftest.exe'), while it won't with
3966 # `rm'.
3967 for ac_file in conftest.exe conftest conftest.*; do
3968 test -f "$ac_file" || continue
3969 case $ac_file in
3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972 break;;
3973 * ) break;;
3974 esac
3975 done
3976 else $as_nop
3977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3980 See \`config.log' for more details" "$LINENO" 5; }
3981 fi
3982 rm -f conftest conftest$ac_cv_exeext
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984 printf "%s\n" "$ac_cv_exeext" >&6; }
3985
3986 rm -f conftest.$ac_ext
3987 EXEEXT=$ac_cv_exeext
3988 ac_exeext=$EXEEXT
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991 #include <stdio.h>
3992 int
3993 main (void)
3994 {
3995 FILE *f = fopen ("conftest.out", "w");
3996 return ferror (f) || fclose (f) != 0;
3997
3998 ;
3999 return 0;
4000 }
4001 _ACEOF
4002 ac_clean_files="$ac_clean_files conftest.out"
4003 # Check that the compiler produces executables we can run. If not, either
4004 # the compiler is broken, or we cross compile.
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4006 printf %s "checking whether we are cross compiling... " >&6; }
4007 if test "$cross_compiling" != yes; then
4008 { { ac_try="$ac_link"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 printf "%s\n" "$ac_try_echo"; } >&5
4015 (eval "$ac_link") 2>&5
4016 ac_status=$?
4017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }
4019 if { ac_try='./conftest$ac_cv_exeext'
4020 { { case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 printf "%s\n" "$ac_try_echo"; } >&5
4026 (eval "$ac_try") 2>&5
4027 ac_status=$?
4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }; }; then
4030 cross_compiling=no
4031 else
4032 if test "$cross_compiling" = maybe; then
4033 cross_compiling=yes
4034 else
4035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error 77 "cannot run C compiled programs.
4038 If you meant to cross compile, use \`--host'.
4039 See \`config.log' for more details" "$LINENO" 5; }
4040 fi
4041 fi
4042 fi
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4044 printf "%s\n" "$cross_compiling" >&6; }
4045
4046 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4047 ac_clean_files=$ac_clean_files_save
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4049 printf %s "checking for suffix of object files... " >&6; }
4050 if test ${ac_cv_objext+y}
4051 then :
4052 printf %s "(cached) " >&6
4053 else $as_nop
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056
4057 int
4058 main (void)
4059 {
4060
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.o conftest.obj
4066 if { { ac_try="$ac_compile"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 printf "%s\n" "$ac_try_echo"; } >&5
4073 (eval "$ac_compile") 2>&5
4074 ac_status=$?
4075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }
4077 then :
4078 for ac_file in conftest.o conftest.obj conftest.*; do
4079 test -f "$ac_file" || continue;
4080 case $ac_file in
4081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4082 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4083 break;;
4084 esac
4085 done
4086 else $as_nop
4087 printf "%s\n" "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4092 as_fn_error $? "cannot compute suffix of object files: cannot compile
4093 See \`config.log' for more details" "$LINENO" 5; }
4094 fi
4095 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4096 fi
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4098 printf "%s\n" "$ac_cv_objext" >&6; }
4099 OBJEXT=$ac_cv_objext
4100 ac_objext=$OBJEXT
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4102 printf %s "checking whether the compiler supports GNU C... " >&6; }
4103 if test ${ac_cv_c_compiler_gnu+y}
4104 then :
4105 printf %s "(cached) " >&6
4106 else $as_nop
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109
4110 int
4111 main (void)
4112 {
4113 #ifndef __GNUC__
4114 choke me
4115 #endif
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"
4122 then :
4123 ac_compiler_gnu=yes
4124 else $as_nop
4125 ac_compiler_gnu=no
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4128 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4129
4130 fi
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4132 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134
4135 if test $ac_compiler_gnu = yes; then
4136 GCC=yes
4137 else
4138 GCC=
4139 fi
4140 ac_test_CFLAGS=${CFLAGS+y}
4141 ac_save_CFLAGS=$CFLAGS
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4143 printf %s "checking whether $CC accepts -g... " >&6; }
4144 if test ${ac_cv_prog_cc_g+y}
4145 then :
4146 printf %s "(cached) " >&6
4147 else $as_nop
4148 ac_save_c_werror_flag=$ac_c_werror_flag
4149 ac_c_werror_flag=yes
4150 ac_cv_prog_cc_g=no
4151 CFLAGS="-g"
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154
4155 int
4156 main (void)
4157 {
4158
4159 ;
4160 return 0;
4161 }
4162 _ACEOF
4163 if ac_fn_c_try_compile "$LINENO"
4164 then :
4165 ac_cv_prog_cc_g=yes
4166 else $as_nop
4167 CFLAGS=""
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170
4171 int
4172 main (void)
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"
4180 then :
4181
4182 else $as_nop
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4184 CFLAGS="-g"
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187
4188 int
4189 main (void)
4190 {
4191
4192 ;
4193 return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"
4197 then :
4198 ac_cv_prog_cc_g=yes
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4201 fi
4202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4205 ac_c_werror_flag=$ac_save_c_werror_flag
4206 fi
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4208 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4209 if test $ac_test_CFLAGS; then
4210 CFLAGS=$ac_save_CFLAGS
4211 elif test $ac_cv_prog_cc_g = yes; then
4212 if test "$GCC" = yes; then
4213 CFLAGS="-g -O2"
4214 else
4215 CFLAGS="-g"
4216 fi
4217 else
4218 if test "$GCC" = yes; then
4219 CFLAGS="-O2"
4220 else
4221 CFLAGS=
4222 fi
4223 fi
4224 ac_prog_cc_stdc=no
4225 if test x$ac_prog_cc_stdc = xno
4226 then :
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4228 printf %s "checking for $CC option to enable C11 features... " >&6; }
4229 if test ${ac_cv_prog_cc_c11+y}
4230 then :
4231 printf %s "(cached) " >&6
4232 else $as_nop
4233 ac_cv_prog_cc_c11=no
4234 ac_save_CC=$CC
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 $ac_c_conftest_c11_program
4238 _ACEOF
4239 for ac_arg in '' -std=gnu11
4240 do
4241 CC="$ac_save_CC $ac_arg"
4242 if ac_fn_c_try_compile "$LINENO"
4243 then :
4244 ac_cv_prog_cc_c11=$ac_arg
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext conftest.beam
4247 test "x$ac_cv_prog_cc_c11" != "xno" && break
4248 done
4249 rm -f conftest.$ac_ext
4250 CC=$ac_save_CC
4251 fi
4252
4253 if test "x$ac_cv_prog_cc_c11" = xno
4254 then :
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4256 printf "%s\n" "unsupported" >&6; }
4257 else $as_nop
4258 if test "x$ac_cv_prog_cc_c11" = x
4259 then :
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4261 printf "%s\n" "none needed" >&6; }
4262 else $as_nop
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4264 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4265 CC="$CC $ac_cv_prog_cc_c11"
4266 fi
4267 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4268 ac_prog_cc_stdc=c11
4269 fi
4270 fi
4271 if test x$ac_prog_cc_stdc = xno
4272 then :
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4274 printf %s "checking for $CC option to enable C99 features... " >&6; }
4275 if test ${ac_cv_prog_cc_c99+y}
4276 then :
4277 printf %s "(cached) " >&6
4278 else $as_nop
4279 ac_cv_prog_cc_c99=no
4280 ac_save_CC=$CC
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 $ac_c_conftest_c99_program
4284 _ACEOF
4285 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4286 do
4287 CC="$ac_save_CC $ac_arg"
4288 if ac_fn_c_try_compile "$LINENO"
4289 then :
4290 ac_cv_prog_cc_c99=$ac_arg
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext conftest.beam
4293 test "x$ac_cv_prog_cc_c99" != "xno" && break
4294 done
4295 rm -f conftest.$ac_ext
4296 CC=$ac_save_CC
4297 fi
4298
4299 if test "x$ac_cv_prog_cc_c99" = xno
4300 then :
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4302 printf "%s\n" "unsupported" >&6; }
4303 else $as_nop
4304 if test "x$ac_cv_prog_cc_c99" = x
4305 then :
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4307 printf "%s\n" "none needed" >&6; }
4308 else $as_nop
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4310 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4311 CC="$CC $ac_cv_prog_cc_c99"
4312 fi
4313 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4314 ac_prog_cc_stdc=c99
4315 fi
4316 fi
4317 if test x$ac_prog_cc_stdc = xno
4318 then :
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4320 printf %s "checking for $CC option to enable C89 features... " >&6; }
4321 if test ${ac_cv_prog_cc_c89+y}
4322 then :
4323 printf %s "(cached) " >&6
4324 else $as_nop
4325 ac_cv_prog_cc_c89=no
4326 ac_save_CC=$CC
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 $ac_c_conftest_c89_program
4330 _ACEOF
4331 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4332 do
4333 CC="$ac_save_CC $ac_arg"
4334 if ac_fn_c_try_compile "$LINENO"
4335 then :
4336 ac_cv_prog_cc_c89=$ac_arg
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.beam
4339 test "x$ac_cv_prog_cc_c89" != "xno" && break
4340 done
4341 rm -f conftest.$ac_ext
4342 CC=$ac_save_CC
4343 fi
4344
4345 if test "x$ac_cv_prog_cc_c89" = xno
4346 then :
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4348 printf "%s\n" "unsupported" >&6; }
4349 else $as_nop
4350 if test "x$ac_cv_prog_cc_c89" = x
4351 then :
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4353 printf "%s\n" "none needed" >&6; }
4354 else $as_nop
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4356 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4357 CC="$CC $ac_cv_prog_cc_c89"
4358 fi
4359 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4360 ac_prog_cc_stdc=c89
4361 fi
4362 fi
4363
4364 ac_ext=c
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369
4370
4371 ac_ext=c
4372 ac_cpp='$CPP $CPPFLAGS'
4373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4377 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4378 if test ${am_cv_prog_cc_c_o+y}
4379 then :
4380 printf %s "(cached) " >&6
4381 else $as_nop
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384
4385 int
4386 main (void)
4387 {
4388
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 # Make sure it works both with $CC and with simple cc.
4394 # Following AC_PROG_CC_C_O, we do the test twice because some
4395 # compilers refuse to overwrite an existing .o file with -o,
4396 # though they will create one.
4397 am_cv_prog_cc_c_o=yes
4398 for am_i in 1 2; do
4399 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4400 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } \
4404 && test -f conftest2.$ac_objext; then
4405 : OK
4406 else
4407 am_cv_prog_cc_c_o=no
4408 break
4409 fi
4410 done
4411 rm -f core conftest*
4412 unset am_i
4413 fi
4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4415 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4416 if test "$am_cv_prog_cc_c_o" != yes; then
4417 # Losing compiler, so override with the script.
4418 # FIXME: It is wrong to rewrite CC.
4419 # But if we don't then we get into trouble of one sort or another.
4420 # A longer-term fix would be to have automake use am__CC in this case,
4421 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4422 CC="$am_aux_dir/compile $CC"
4423 fi
4424 ac_ext=c
4425 ac_cpp='$CPP $CPPFLAGS'
4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429
4430 DEPDIR="${am__leading_dot}deps"
4431
4432 ac_config_commands="$ac_config_commands depfiles"
4433
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4435 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4436 cat > confinc.mk << 'END'
4437 am__doit:
4438 @echo this is the am__doit target >confinc.out
4439 .PHONY: am__doit
4440 END
4441 am__include="#"
4442 am__quote=
4443 # BSD make does it like this.
4444 echo '.include "confinc.mk" # ignored' > confmf.BSD
4445 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4446 echo 'include confinc.mk # ignored' > confmf.GNU
4447 _am_result=no
4448 for s in GNU BSD; do
4449 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4450 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }
4454 case $?:`cat confinc.out 2>/dev/null` in #(
4455 '0:this is the am__doit target') :
4456 case $s in #(
4457 BSD) :
4458 am__include='.include' am__quote='"' ;; #(
4459 *) :
4460 am__include='include' am__quote='' ;;
4461 esac ;; #(
4462 *) :
4463 ;;
4464 esac
4465 if test "$am__include" != "#"; then
4466 _am_result="yes ($s style)"
4467 break
4468 fi
4469 done
4470 rm -f confinc.* confmf.*
4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4472 printf "%s\n" "${_am_result}" >&6; }
4473
4474 # Check whether --enable-dependency-tracking was given.
4475 if test ${enable_dependency_tracking+y}
4476 then :
4477 enableval=$enable_dependency_tracking;
4478 fi
4479
4480 if test "x$enable_dependency_tracking" != xno; then
4481 am_depcomp="$ac_aux_dir/depcomp"
4482 AMDEPBACKSLASH='\'
4483 am__nodep='_no'
4484 fi
4485 if test "x$enable_dependency_tracking" != xno; then
4486 AMDEP_TRUE=
4487 AMDEP_FALSE='#'
4488 else
4489 AMDEP_TRUE='#'
4490 AMDEP_FALSE=
4491 fi
4492
4493
4494
4495 depcc="$CC" am_compiler_list=
4496
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4498 printf %s "checking dependency style of $depcc... " >&6; }
4499 if test ${am_cv_CC_dependencies_compiler_type+y}
4500 then :
4501 printf %s "(cached) " >&6
4502 else $as_nop
4503 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4504 # We make a subdir and do the tests there. Otherwise we can end up
4505 # making bogus files that we don't know about and never remove. For
4506 # instance it was reported that on HP-UX the gcc test will end up
4507 # making a dummy file named 'D' -- because '-MD' means "put the output
4508 # in D".
4509 rm -rf conftest.dir
4510 mkdir conftest.dir
4511 # Copy depcomp to subdir because otherwise we won't find it if we're
4512 # using a relative directory.
4513 cp "$am_depcomp" conftest.dir
4514 cd conftest.dir
4515 # We will build objects and dependencies in a subdirectory because
4516 # it helps to detect inapplicable dependency modes. For instance
4517 # both Tru64's cc and ICC support -MD to output dependencies as a
4518 # side effect of compilation, but ICC will put the dependencies in
4519 # the current directory while Tru64 will put them in the object
4520 # directory.
4521 mkdir sub
4522
4523 am_cv_CC_dependencies_compiler_type=none
4524 if test "$am_compiler_list" = ""; then
4525 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4526 fi
4527 am__universal=false
4528 case " $depcc " in #(
4529 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4530 esac
4531
4532 for depmode in $am_compiler_list; do
4533 # Setup a source with many dependencies, because some compilers
4534 # like to wrap large dependency lists on column 80 (with \), and
4535 # we should not choose a depcomp mode which is confused by this.
4536 #
4537 # We need to recreate these files for each test, as the compiler may
4538 # overwrite some of them when testing with obscure command lines.
4539 # This happens at least with the AIX C compiler.
4540 : > sub/conftest.c
4541 for i in 1 2 3 4 5 6; do
4542 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4543 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4544 # Solaris 10 /bin/sh.
4545 echo '/* dummy */' > sub/conftst$i.h
4546 done
4547 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4548
4549 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4550 # mode. It turns out that the SunPro C++ compiler does not properly
4551 # handle '-M -o', and we need to detect this. Also, some Intel
4552 # versions had trouble with output in subdirs.
4553 am__obj=sub/conftest.${OBJEXT-o}
4554 am__minus_obj="-o $am__obj"
4555 case $depmode in
4556 gcc)
4557 # This depmode causes a compiler race in universal mode.
4558 test "$am__universal" = false || continue
4559 ;;
4560 nosideeffect)
4561 # After this tag, mechanisms are not by side-effect, so they'll
4562 # only be used when explicitly requested.
4563 if test "x$enable_dependency_tracking" = xyes; then
4564 continue
4565 else
4566 break
4567 fi
4568 ;;
4569 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4570 # This compiler won't grok '-c -o', but also, the minuso test has
4571 # not run yet. These depmodes are late enough in the game, and
4572 # so weak that their functioning should not be impacted.
4573 am__obj=conftest.${OBJEXT-o}
4574 am__minus_obj=
4575 ;;
4576 none) break ;;
4577 esac
4578 if depmode=$depmode \
4579 source=sub/conftest.c object=$am__obj \
4580 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4581 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4582 >/dev/null 2>conftest.err &&
4583 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4584 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4585 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4586 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4587 # icc doesn't choke on unknown options, it will just issue warnings
4588 # or remarks (even with -Werror). So we grep stderr for any message
4589 # that says an option was ignored or not supported.
4590 # When given -MP, icc 7.0 and 7.1 complain thusly:
4591 # icc: Command line warning: ignoring option '-M'; no argument required
4592 # The diagnosis changed in icc 8.0:
4593 # icc: Command line remark: option '-MP' not supported
4594 if (grep 'ignoring option' conftest.err ||
4595 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4596 am_cv_CC_dependencies_compiler_type=$depmode
4597 break
4598 fi
4599 fi
4600 done
4601
4602 cd ..
4603 rm -rf conftest.dir
4604 else
4605 am_cv_CC_dependencies_compiler_type=none
4606 fi
4607
4608 fi
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4610 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4611 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4612
4613 if
4614 test "x$enable_dependency_tracking" != xno \
4615 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4616 am__fastdepCC_TRUE=
4617 am__fastdepCC_FALSE='#'
4618 else
4619 am__fastdepCC_TRUE='#'
4620 am__fastdepCC_FALSE=
4621 fi
4622
4623
4624
4625
4626 if test -n "$ac_tool_prefix"; then
4627 for ac_prog in ar lib "link -lib"
4628 do
4629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 printf %s "checking for $ac_word... " >&6; }
4633 if test ${ac_cv_prog_AR+y}
4634 then :
4635 printf %s "(cached) " >&6
4636 else $as_nop
4637 if test -n "$AR"; then
4638 ac_cv_prog_AR="$AR" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643 IFS=$as_save_IFS
4644 case $as_dir in #(((
4645 '') as_dir=./ ;;
4646 */) ;;
4647 *) as_dir=$as_dir/ ;;
4648 esac
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659 fi
4660 fi
4661 AR=$ac_cv_prog_AR
4662 if test -n "$AR"; then
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4664 printf "%s\n" "$AR" >&6; }
4665 else
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 printf "%s\n" "no" >&6; }
4668 fi
4669
4670
4671 test -n "$AR" && break
4672 done
4673 fi
4674 if test -z "$AR"; then
4675 ac_ct_AR=$AR
4676 for ac_prog in ar lib "link -lib"
4677 do
4678 # Extract the first word of "$ac_prog", so it can be a program name with args.
4679 set dummy $ac_prog; ac_word=$2
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 printf %s "checking for $ac_word... " >&6; }
4682 if test ${ac_cv_prog_ac_ct_AR+y}
4683 then :
4684 printf %s "(cached) " >&6
4685 else $as_nop
4686 if test -n "$ac_ct_AR"; then
4687 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692 IFS=$as_save_IFS
4693 case $as_dir in #(((
4694 '') as_dir=./ ;;
4695 */) ;;
4696 *) as_dir=$as_dir/ ;;
4697 esac
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_ac_ct_AR="$ac_prog"
4701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4702 break 2
4703 fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4711 if test -n "$ac_ct_AR"; then
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4713 printf "%s\n" "$ac_ct_AR" >&6; }
4714 else
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 printf "%s\n" "no" >&6; }
4717 fi
4718
4719
4720 test -n "$ac_ct_AR" && break
4721 done
4722
4723 if test "x$ac_ct_AR" = x; then
4724 AR="false"
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 AR=$ac_ct_AR
4733 fi
4734 fi
4735
4736 : ${AR=ar}
4737
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4739 printf %s "checking the archiver ($AR) interface... " >&6; }
4740 if test ${am_cv_ar_interface+y}
4741 then :
4742 printf %s "(cached) " >&6
4743 else $as_nop
4744 ac_ext=c
4745 ac_cpp='$CPP $CPPFLAGS'
4746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4749
4750 am_cv_ar_interface=ar
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 int some_variable = 0;
4754 _ACEOF
4755 if ac_fn_c_try_compile "$LINENO"
4756 then :
4757 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4759 (eval $am_ar_try) 2>&5
4760 ac_status=$?
4761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4762 test $ac_status = 0; }
4763 if test "$ac_status" -eq 0; then
4764 am_cv_ar_interface=ar
4765 else
4766 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4768 (eval $am_ar_try) 2>&5
4769 ac_status=$?
4770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4771 test $ac_status = 0; }
4772 if test "$ac_status" -eq 0; then
4773 am_cv_ar_interface=lib
4774 else
4775 am_cv_ar_interface=unknown
4776 fi
4777 fi
4778 rm -f conftest.lib libconftest.a
4779
4780 fi
4781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4782 ac_ext=c
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787
4788 fi
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4790 printf "%s\n" "$am_cv_ar_interface" >&6; }
4791
4792 case $am_cv_ar_interface in
4793 ar)
4794 ;;
4795 lib)
4796 # Microsoft lib, so override with the ar-lib wrapper script.
4797 # FIXME: It is wrong to rewrite AR.
4798 # But if we don't then we get into trouble of one sort or another.
4799 # A longer-term fix would be to have automake use am__AR in this case,
4800 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4801 # similar.
4802 AR="$am_aux_dir/ar-lib $AR"
4803 ;;
4804 unknown)
4805 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4806 ;;
4807 esac
4808
4809
4810
4811
4812
4813 # Check whether --with-pkgconfigdir was given.
4814 if test ${with_pkgconfigdir+y}
4815 then :
4816 withval=$with_pkgconfigdir;
4817 else $as_nop
4818 with_pkgconfigdir='${libdir}/pkgconfig'
4819 fi
4820
4821 pkgconfigdir=$with_pkgconfigdir
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831 for flag in -Wall -Wextra; do
4832 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
4834 printf %s "checking whether C compiler accepts $flag... " >&6; }
4835 if eval test \${$as_CACHEVAR+y}
4836 then :
4837 printf %s "(cached) " >&6
4838 else $as_nop
4839
4840 ax_check_save_flags=$CFLAGS
4841 CFLAGS="$CFLAGS $flag"
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844
4845 int
4846 main (void)
4847 {
4848
4849 ;
4850 return 0;
4851 }
4852 _ACEOF
4853 if ac_fn_c_try_compile "$LINENO"
4854 then :
4855 eval "$as_CACHEVAR=yes"
4856 else $as_nop
4857 eval "$as_CACHEVAR=no"
4858 fi
4859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4860 CFLAGS=$ax_check_save_flags
4861 fi
4862 eval ac_res=\$$as_CACHEVAR
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4864 printf "%s\n" "$ac_res" >&6; }
4865 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
4866 then :
4867
4868 if test ${CFLAGS+y}
4869 then :
4870
4871 case " $CFLAGS " in #(
4872 *" $flag "*) :
4873 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
4874 (: CFLAGS already contains $flag) 2>&5
4875 ac_status=$?
4876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4877 test $ac_status = 0; } ;; #(
4878 *) :
4879
4880 as_fn_append CFLAGS " $flag"
4881 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
4882 (: CFLAGS="$CFLAGS") 2>&5
4883 ac_status=$?
4884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885 test $ac_status = 0; }
4886 ;;
4887 esac
4888
4889 else $as_nop
4890
4891 CFLAGS=$flag
4892 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
4893 (: CFLAGS="$CFLAGS") 2>&5
4894 ac_status=$?
4895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4896 test $ac_status = 0; }
4897
4898 fi
4899
4900 else $as_nop
4901 :
4902 fi
4903
4904 done
4905
4906
4907
4908
4909
4910
4911 for flag in -Werror=unknown-warning-option -Werror=invalid-command-line-argument; do
4912 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
4914 printf %s "checking whether C compiler accepts $flag... " >&6; }
4915 if eval test \${$as_CACHEVAR+y}
4916 then :
4917 printf %s "(cached) " >&6
4918 else $as_nop
4919
4920 ax_check_save_flags=$CFLAGS
4921 CFLAGS="$CFLAGS $flag"
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924
4925 int
4926 main (void)
4927 {
4928
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 if ac_fn_c_try_compile "$LINENO"
4934 then :
4935 eval "$as_CACHEVAR=yes"
4936 else $as_nop
4937 eval "$as_CACHEVAR=no"
4938 fi
4939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4940 CFLAGS=$ax_check_save_flags
4941 fi
4942 eval ac_res=\$$as_CACHEVAR
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4944 printf "%s\n" "$ac_res" >&6; }
4945 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
4946 then :
4947
4948 if test ${CFLAGS+y}
4949 then :
4950
4951 case " $CFLAGS " in #(
4952 *" $flag "*) :
4953 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
4954 (: CFLAGS already contains $flag) 2>&5
4955 ac_status=$?
4956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4957 test $ac_status = 0; } ;; #(
4958 *) :
4959
4960 as_fn_append CFLAGS " $flag"
4961 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
4962 (: CFLAGS="$CFLAGS") 2>&5
4963 ac_status=$?
4964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4965 test $ac_status = 0; }
4966 ;;
4967 esac
4968
4969 else $as_nop
4970
4971 CFLAGS=$flag
4972 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
4973 (: CFLAGS="$CFLAGS") 2>&5
4974 ac_status=$?
4975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4976 test $ac_status = 0; }
4977
4978 fi
4979
4980 else $as_nop
4981 :
4982 fi
4983
4984 done
4985
4986
4987 # Check whether --enable-largefile was given.
4988 if test ${enable_largefile+y}
4989 then :
4990 enableval=$enable_largefile;
4991 fi
4992
4993 if test "$enable_largefile" != no; then
4994
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4996 printf %s "checking for special C compiler options needed for large files... " >&6; }
4997 if test ${ac_cv_sys_largefile_CC+y}
4998 then :
4999 printf %s "(cached) " >&6
5000 else $as_nop
5001 ac_cv_sys_largefile_CC=no
5002 if test "$GCC" != yes; then
5003 ac_save_CC=$CC
5004 while :; do
5005 # IRIX 6.2 and later do not support large files by default,
5006 # so use the C compiler's -n32 option if that helps.
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 #include <sys/types.h>
5010 /* Check that off_t can represent 2**63 - 1 correctly.
5011 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5012 since some C++ compilers masquerading as C compilers
5013 incorrectly reject 9223372036854775807. */
5014 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5016 && LARGE_OFF_T % 2147483647 == 1)
5017 ? 1 : -1];
5018 int
5019 main (void)
5020 {
5021
5022 ;
5023 return 0;
5024 }
5025 _ACEOF
5026 if ac_fn_c_try_compile "$LINENO"
5027 then :
5028 break
5029 fi
5030 rm -f core conftest.err conftest.$ac_objext conftest.beam
5031 CC="$CC -n32"
5032 if ac_fn_c_try_compile "$LINENO"
5033 then :
5034 ac_cv_sys_largefile_CC=' -n32'; break
5035 fi
5036 rm -f core conftest.err conftest.$ac_objext conftest.beam
5037 break
5038 done
5039 CC=$ac_save_CC
5040 rm -f conftest.$ac_ext
5041 fi
5042 fi
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5044 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
5045 if test "$ac_cv_sys_largefile_CC" != no; then
5046 CC=$CC$ac_cv_sys_largefile_CC
5047 fi
5048
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5050 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5051 if test ${ac_cv_sys_file_offset_bits+y}
5052 then :
5053 printf %s "(cached) " >&6
5054 else $as_nop
5055 while :; do
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058 #include <sys/types.h>
5059 /* Check that off_t can represent 2**63 - 1 correctly.
5060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5061 since some C++ compilers masquerading as C compilers
5062 incorrectly reject 9223372036854775807. */
5063 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5065 && LARGE_OFF_T % 2147483647 == 1)
5066 ? 1 : -1];
5067 int
5068 main (void)
5069 {
5070
5071 ;
5072 return 0;
5073 }
5074 _ACEOF
5075 if ac_fn_c_try_compile "$LINENO"
5076 then :
5077 ac_cv_sys_file_offset_bits=no; break
5078 fi
5079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5082 #define _FILE_OFFSET_BITS 64
5083 #include <sys/types.h>
5084 /* Check that off_t can represent 2**63 - 1 correctly.
5085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5086 since some C++ compilers masquerading as C compilers
5087 incorrectly reject 9223372036854775807. */
5088 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5090 && LARGE_OFF_T % 2147483647 == 1)
5091 ? 1 : -1];
5092 int
5093 main (void)
5094 {
5095
5096 ;
5097 return 0;
5098 }
5099 _ACEOF
5100 if ac_fn_c_try_compile "$LINENO"
5101 then :
5102 ac_cv_sys_file_offset_bits=64; break
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5105 ac_cv_sys_file_offset_bits=unknown
5106 break
5107 done
5108 fi
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5110 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5111 case $ac_cv_sys_file_offset_bits in #(
5112 no | unknown) ;;
5113 *)
5114 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5115 ;;
5116 esac
5117 rm -rf conftest*
5118 if test $ac_cv_sys_file_offset_bits = unknown; then
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5120 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5121 if test ${ac_cv_sys_large_files+y}
5122 then :
5123 printf %s "(cached) " >&6
5124 else $as_nop
5125 while :; do
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128 #include <sys/types.h>
5129 /* Check that off_t can represent 2**63 - 1 correctly.
5130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5131 since some C++ compilers masquerading as C compilers
5132 incorrectly reject 9223372036854775807. */
5133 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5135 && LARGE_OFF_T % 2147483647 == 1)
5136 ? 1 : -1];
5137 int
5138 main (void)
5139 {
5140
5141 ;
5142 return 0;
5143 }
5144 _ACEOF
5145 if ac_fn_c_try_compile "$LINENO"
5146 then :
5147 ac_cv_sys_large_files=no; break
5148 fi
5149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5152 #define _LARGE_FILES 1
5153 #include <sys/types.h>
5154 /* Check that off_t can represent 2**63 - 1 correctly.
5155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5156 since some C++ compilers masquerading as C compilers
5157 incorrectly reject 9223372036854775807. */
5158 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5160 && LARGE_OFF_T % 2147483647 == 1)
5161 ? 1 : -1];
5162 int
5163 main (void)
5164 {
5165
5166 ;
5167 return 0;
5168 }
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"
5171 then :
5172 ac_cv_sys_large_files=1; break
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5175 ac_cv_sys_large_files=unknown
5176 break
5177 done
5178 fi
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5180 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5181 case $ac_cv_sys_large_files in #(
5182 no | unknown) ;;
5183 *)
5184 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5185 ;;
5186 esac
5187 rm -rf conftest*
5188 fi
5189 fi
5190
5191
5192 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5193
5194
5195
5196
5197 # Make sure we can run config.sub.
5198 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5199 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5200
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5202 printf %s "checking build system type... " >&6; }
5203 if test ${ac_cv_build+y}
5204 then :
5205 printf %s "(cached) " >&6
5206 else $as_nop
5207 ac_build_alias=$build_alias
5208 test "x$ac_build_alias" = x &&
5209 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5210 test "x$ac_build_alias" = x &&
5211 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5212 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5213 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5214
5215 fi
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5217 printf "%s\n" "$ac_cv_build" >&6; }
5218 case $ac_cv_build in
5219 *-*-*) ;;
5220 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5221 esac
5222 build=$ac_cv_build
5223 ac_save_IFS=$IFS; IFS='-'
5224 set x $ac_cv_build
5225 shift
5226 build_cpu=$1
5227 build_vendor=$2
5228 shift; shift
5229 # Remember, the first character of IFS is used to create $*,
5230 # except with old shells:
5231 build_os=$*
5232 IFS=$ac_save_IFS
5233 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5234
5235
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5237 printf %s "checking host system type... " >&6; }
5238 if test ${ac_cv_host+y}
5239 then :
5240 printf %s "(cached) " >&6
5241 else $as_nop
5242 if test "x$host_alias" = x; then
5243 ac_cv_host=$ac_cv_build
5244 else
5245 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5246 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5247 fi
5248
5249 fi
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5251 printf "%s\n" "$ac_cv_host" >&6; }
5252 case $ac_cv_host in
5253 *-*-*) ;;
5254 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5255 esac
5256 host=$ac_cv_host
5257 ac_save_IFS=$IFS; IFS='-'
5258 set x $ac_cv_host
5259 shift
5260 host_cpu=$1
5261 host_vendor=$2
5262 shift; shift
5263 # Remember, the first character of IFS is used to create $*,
5264 # except with old shells:
5265 host_os=$*
5266 IFS=$ac_save_IFS
5267 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5268
5269
5270
5271
5272
5273 case `pwd` in
5274 *\ * | *\ *)
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5276 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5277 esac
5278
5279
5280
5281 macro_version='2.4.7'
5282 macro_revision='2.4.7'
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297 ltmain=$ac_aux_dir/ltmain.sh
5298
5299 # Backslashify metacharacters that are still active within
5300 # double-quoted strings.
5301 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5302
5303 # Same as above, but do not quote variable references.
5304 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5305
5306 # Sed substitution to delay expansion of an escaped shell variable in a
5307 # double_quote_subst'ed string.
5308 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5309
5310 # Sed substitution to delay expansion of an escaped single quote.
5311 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5312
5313 # Sed substitution to avoid accidental globbing in evaled expressions
5314 no_glob_subst='s/\*/\\\*/g'
5315
5316 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5317 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5318 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5319
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5321 printf %s "checking how to print strings... " >&6; }
5322 # Test print first, because it will be a builtin if present.
5323 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5324 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5325 ECHO='print -r --'
5326 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5327 ECHO='printf %s\n'
5328 else
5329 # Use this function as a fallback that always works.
5330 func_fallback_echo ()
5331 {
5332 eval 'cat <<_LTECHO_EOF
5333 $1
5334 _LTECHO_EOF'
5335 }
5336 ECHO='func_fallback_echo'
5337 fi
5338
5339 # func_echo_all arg...
5340 # Invoke $ECHO with all args, space-separated.
5341 func_echo_all ()
5342 {
5343 $ECHO ""
5344 }
5345
5346 case $ECHO in
5347 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5348 printf "%s\n" "printf" >&6; } ;;
5349 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5350 printf "%s\n" "print -r" >&6; } ;;
5351 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5352 printf "%s\n" "cat" >&6; } ;;
5353 esac
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5369 printf %s "checking for a sed that does not truncate output... " >&6; }
5370 if test ${ac_cv_path_SED+y}
5371 then :
5372 printf %s "(cached) " >&6
5373 else $as_nop
5374 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5375 for ac_i in 1 2 3 4 5 6 7; do
5376 ac_script="$ac_script$as_nl$ac_script"
5377 done
5378 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5379 { ac_script=; unset ac_script;}
5380 if test -z "$SED"; then
5381 ac_path_SED_found=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5385 do
5386 IFS=$as_save_IFS
5387 case $as_dir in #(((
5388 '') as_dir=./ ;;
5389 */) ;;
5390 *) as_dir=$as_dir/ ;;
5391 esac
5392 for ac_prog in sed gsed
5393 do
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5396 as_fn_executable_p "$ac_path_SED" || continue
5397 # Check for GNU ac_path_SED and select it if it is found.
5398 # Check for GNU $ac_path_SED
5399 case `"$ac_path_SED" --version 2>&1` in
5400 *GNU*)
5401 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5402 *)
5403 ac_count=0
5404 printf %s 0123456789 >"conftest.in"
5405 while :
5406 do
5407 cat "conftest.in" "conftest.in" >"conftest.tmp"
5408 mv "conftest.tmp" "conftest.in"
5409 cp "conftest.in" "conftest.nl"
5410 printf "%s\n" '' >> "conftest.nl"
5411 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413 as_fn_arith $ac_count + 1 && ac_count=$as_val
5414 if test $ac_count -gt ${ac_path_SED_max-0}; then
5415 # Best one so far, save it but keep looking for a better one
5416 ac_cv_path_SED="$ac_path_SED"
5417 ac_path_SED_max=$ac_count
5418 fi
5419 # 10*(2^10) chars as input seems more than enough
5420 test $ac_count -gt 10 && break
5421 done
5422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5423 esac
5424
5425 $ac_path_SED_found && break 3
5426 done
5427 done
5428 done
5429 IFS=$as_save_IFS
5430 if test -z "$ac_cv_path_SED"; then
5431 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5432 fi
5433 else
5434 ac_cv_path_SED=$SED
5435 fi
5436
5437 fi
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5439 printf "%s\n" "$ac_cv_path_SED" >&6; }
5440 SED="$ac_cv_path_SED"
5441 rm -f conftest.sed
5442
5443 test -z "$SED" && SED=sed
5444 Xsed="$SED -e 1s/^X//"
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5457 printf %s "checking for grep that handles long lines and -e... " >&6; }
5458 if test ${ac_cv_path_GREP+y}
5459 then :
5460 printf %s "(cached) " >&6
5461 else $as_nop
5462 if test -z "$GREP"; then
5463 ac_path_GREP_found=false
5464 # Loop through the user's path and test for each of PROGNAME-LIST
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5467 do
5468 IFS=$as_save_IFS
5469 case $as_dir in #(((
5470 '') as_dir=./ ;;
5471 */) ;;
5472 *) as_dir=$as_dir/ ;;
5473 esac
5474 for ac_prog in grep ggrep
5475 do
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5478 as_fn_executable_p "$ac_path_GREP" || continue
5479 # Check for GNU ac_path_GREP and select it if it is found.
5480 # Check for GNU $ac_path_GREP
5481 case `"$ac_path_GREP" --version 2>&1` in
5482 *GNU*)
5483 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5484 *)
5485 ac_count=0
5486 printf %s 0123456789 >"conftest.in"
5487 while :
5488 do
5489 cat "conftest.in" "conftest.in" >"conftest.tmp"
5490 mv "conftest.tmp" "conftest.in"
5491 cp "conftest.in" "conftest.nl"
5492 printf "%s\n" 'GREP' >> "conftest.nl"
5493 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5495 as_fn_arith $ac_count + 1 && ac_count=$as_val
5496 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5497 # Best one so far, save it but keep looking for a better one
5498 ac_cv_path_GREP="$ac_path_GREP"
5499 ac_path_GREP_max=$ac_count
5500 fi
5501 # 10*(2^10) chars as input seems more than enough
5502 test $ac_count -gt 10 && break
5503 done
5504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5505 esac
5506
5507 $ac_path_GREP_found && break 3
5508 done
5509 done
5510 done
5511 IFS=$as_save_IFS
5512 if test -z "$ac_cv_path_GREP"; then
5513 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5514 fi
5515 else
5516 ac_cv_path_GREP=$GREP
5517 fi
5518
5519 fi
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5521 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5522 GREP="$ac_cv_path_GREP"
5523
5524
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5526 printf %s "checking for egrep... " >&6; }
5527 if test ${ac_cv_path_EGREP+y}
5528 then :
5529 printf %s "(cached) " >&6
5530 else $as_nop
5531 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5532 then ac_cv_path_EGREP="$GREP -E"
5533 else
5534 if test -z "$EGREP"; then
5535 ac_path_EGREP_found=false
5536 # Loop through the user's path and test for each of PROGNAME-LIST
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539 do
5540 IFS=$as_save_IFS
5541 case $as_dir in #(((
5542 '') as_dir=./ ;;
5543 */) ;;
5544 *) as_dir=$as_dir/ ;;
5545 esac
5546 for ac_prog in egrep
5547 do
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5550 as_fn_executable_p "$ac_path_EGREP" || continue
5551 # Check for GNU ac_path_EGREP and select it if it is found.
5552 # Check for GNU $ac_path_EGREP
5553 case `"$ac_path_EGREP" --version 2>&1` in
5554 *GNU*)
5555 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5556 *)
5557 ac_count=0
5558 printf %s 0123456789 >"conftest.in"
5559 while :
5560 do
5561 cat "conftest.in" "conftest.in" >"conftest.tmp"
5562 mv "conftest.tmp" "conftest.in"
5563 cp "conftest.in" "conftest.nl"
5564 printf "%s\n" 'EGREP' >> "conftest.nl"
5565 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5567 as_fn_arith $ac_count + 1 && ac_count=$as_val
5568 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5569 # Best one so far, save it but keep looking for a better one
5570 ac_cv_path_EGREP="$ac_path_EGREP"
5571 ac_path_EGREP_max=$ac_count
5572 fi
5573 # 10*(2^10) chars as input seems more than enough
5574 test $ac_count -gt 10 && break
5575 done
5576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5577 esac
5578
5579 $ac_path_EGREP_found && break 3
5580 done
5581 done
5582 done
5583 IFS=$as_save_IFS
5584 if test -z "$ac_cv_path_EGREP"; then
5585 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5586 fi
5587 else
5588 ac_cv_path_EGREP=$EGREP
5589 fi
5590
5591 fi
5592 fi
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5594 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5595 EGREP="$ac_cv_path_EGREP"
5596
5597
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5599 printf %s "checking for fgrep... " >&6; }
5600 if test ${ac_cv_path_FGREP+y}
5601 then :
5602 printf %s "(cached) " >&6
5603 else $as_nop
5604 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5605 then ac_cv_path_FGREP="$GREP -F"
5606 else
5607 if test -z "$FGREP"; then
5608 ac_path_FGREP_found=false
5609 # Loop through the user's path and test for each of PROGNAME-LIST
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5612 do
5613 IFS=$as_save_IFS
5614 case $as_dir in #(((
5615 '') as_dir=./ ;;
5616 */) ;;
5617 *) as_dir=$as_dir/ ;;
5618 esac
5619 for ac_prog in fgrep
5620 do
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5623 as_fn_executable_p "$ac_path_FGREP" || continue
5624 # Check for GNU ac_path_FGREP and select it if it is found.
5625 # Check for GNU $ac_path_FGREP
5626 case `"$ac_path_FGREP" --version 2>&1` in
5627 *GNU*)
5628 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5629 *)
5630 ac_count=0
5631 printf %s 0123456789 >"conftest.in"
5632 while :
5633 do
5634 cat "conftest.in" "conftest.in" >"conftest.tmp"
5635 mv "conftest.tmp" "conftest.in"
5636 cp "conftest.in" "conftest.nl"
5637 printf "%s\n" 'FGREP' >> "conftest.nl"
5638 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5640 as_fn_arith $ac_count + 1 && ac_count=$as_val
5641 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5642 # Best one so far, save it but keep looking for a better one
5643 ac_cv_path_FGREP="$ac_path_FGREP"
5644 ac_path_FGREP_max=$ac_count
5645 fi
5646 # 10*(2^10) chars as input seems more than enough
5647 test $ac_count -gt 10 && break
5648 done
5649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5650 esac
5651
5652 $ac_path_FGREP_found && break 3
5653 done
5654 done
5655 done
5656 IFS=$as_save_IFS
5657 if test -z "$ac_cv_path_FGREP"; then
5658 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5659 fi
5660 else
5661 ac_cv_path_FGREP=$FGREP
5662 fi
5663
5664 fi
5665 fi
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5667 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5668 FGREP="$ac_cv_path_FGREP"
5669
5670
5671 test -z "$GREP" && GREP=grep
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691 # Check whether --with-gnu-ld was given.
5692 if test ${with_gnu_ld+y}
5693 then :
5694 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5695 else $as_nop
5696 with_gnu_ld=no
5697 fi
5698
5699 ac_prog=ld
5700 if test yes = "$GCC"; then
5701 # Check if gcc -print-prog-name=ld gives a path.
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5703 printf %s "checking for ld used by $CC... " >&6; }
5704 case $host in
5705 *-*-mingw*)
5706 # gcc leaves a trailing carriage return, which upsets mingw
5707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5708 *)
5709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5710 esac
5711 case $ac_prog in
5712 # Accept absolute paths.
5713 [\\/]* | ?:[\\/]*)
5714 re_direlt='/[^/][^/]*/\.\./'
5715 # Canonicalize the pathname of ld
5716 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5717 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5718 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5719 done
5720 test -z "$LD" && LD=$ac_prog
5721 ;;
5722 "")
5723 # If it fails, then pretend we aren't using GCC.
5724 ac_prog=ld
5725 ;;
5726 *)
5727 # If it is relative, then search for the first ld in PATH.
5728 with_gnu_ld=unknown
5729 ;;
5730 esac
5731 elif test yes = "$with_gnu_ld"; then
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5733 printf %s "checking for GNU ld... " >&6; }
5734 else
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5736 printf %s "checking for non-GNU ld... " >&6; }
5737 fi
5738 if test ${lt_cv_path_LD+y}
5739 then :
5740 printf %s "(cached) " >&6
5741 else $as_nop
5742 if test -z "$LD"; then
5743 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5744 for ac_dir in $PATH; do
5745 IFS=$lt_save_ifs
5746 test -z "$ac_dir" && ac_dir=.
5747 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5748 lt_cv_path_LD=$ac_dir/$ac_prog
5749 # Check to see if the program is GNU ld. I'd rather use --version,
5750 # but apparently some variants of GNU ld only accept -v.
5751 # Break only if it was the GNU/non-GNU ld that we prefer.
5752 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5753 *GNU* | *'with BFD'*)
5754 test no != "$with_gnu_ld" && break
5755 ;;
5756 *)
5757 test yes != "$with_gnu_ld" && break
5758 ;;
5759 esac
5760 fi
5761 done
5762 IFS=$lt_save_ifs
5763 else
5764 lt_cv_path_LD=$LD # Let the user override the test with a path.
5765 fi
5766 fi
5767
5768 LD=$lt_cv_path_LD
5769 if test -n "$LD"; then
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5771 printf "%s\n" "$LD" >&6; }
5772 else
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 printf "%s\n" "no" >&6; }
5775 fi
5776 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5778 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5779 if test ${lt_cv_prog_gnu_ld+y}
5780 then :
5781 printf %s "(cached) " >&6
5782 else $as_nop
5783 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5784 case `$LD -v 2>&1 </dev/null` in
5785 *GNU* | *'with BFD'*)
5786 lt_cv_prog_gnu_ld=yes
5787 ;;
5788 *)
5789 lt_cv_prog_gnu_ld=no
5790 ;;
5791 esac
5792 fi
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5794 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5795 with_gnu_ld=$lt_cv_prog_gnu_ld
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5806 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5807 if test ${lt_cv_path_NM+y}
5808 then :
5809 printf %s "(cached) " >&6
5810 else $as_nop
5811 if test -n "$NM"; then
5812 # Let the user override the test.
5813 lt_cv_path_NM=$NM
5814 else
5815 lt_nm_to_check=${ac_tool_prefix}nm
5816 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5817 lt_nm_to_check="$lt_nm_to_check nm"
5818 fi
5819 for lt_tmp_nm in $lt_nm_to_check; do
5820 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5821 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5822 IFS=$lt_save_ifs
5823 test -z "$ac_dir" && ac_dir=.
5824 tmp_nm=$ac_dir/$lt_tmp_nm
5825 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5826 # Check to see if the nm accepts a BSD-compat flag.
5827 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5828 # nm: unknown option "B" ignored
5829 # Tru64's nm complains that /dev/null is an invalid object file
5830 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5831 case $build_os in
5832 mingw*) lt_bad_file=conftest.nm/nofile ;;
5833 *) lt_bad_file=/dev/null ;;
5834 esac
5835 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5836 *$lt_bad_file* | *'Invalid file or object type'*)
5837 lt_cv_path_NM="$tmp_nm -B"
5838 break 2
5839 ;;
5840 *)
5841 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5842 */dev/null*)
5843 lt_cv_path_NM="$tmp_nm -p"
5844 break 2
5845 ;;
5846 *)
5847 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5848 continue # so that we can try to find one that supports BSD flags
5849 ;;
5850 esac
5851 ;;
5852 esac
5853 fi
5854 done
5855 IFS=$lt_save_ifs
5856 done
5857 : ${lt_cv_path_NM=no}
5858 fi
5859 fi
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5861 printf "%s\n" "$lt_cv_path_NM" >&6; }
5862 if test no != "$lt_cv_path_NM"; then
5863 NM=$lt_cv_path_NM
5864 else
5865 # Didn't find any BSD compatible name lister, look for dumpbin.
5866 if test -n "$DUMPBIN"; then :
5867 # Let the user override the test.
5868 else
5869 if test -n "$ac_tool_prefix"; then
5870 for ac_prog in dumpbin "link -dump"
5871 do
5872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 printf %s "checking for $ac_word... " >&6; }
5876 if test ${ac_cv_prog_DUMPBIN+y}
5877 then :
5878 printf %s "(cached) " >&6
5879 else $as_nop
5880 if test -n "$DUMPBIN"; then
5881 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886 IFS=$as_save_IFS
5887 case $as_dir in #(((
5888 '') as_dir=./ ;;
5889 */) ;;
5890 *) as_dir=$as_dir/ ;;
5891 esac
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 DUMPBIN=$ac_cv_prog_DUMPBIN
5905 if test -n "$DUMPBIN"; then
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5907 printf "%s\n" "$DUMPBIN" >&6; }
5908 else
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 printf "%s\n" "no" >&6; }
5911 fi
5912
5913
5914 test -n "$DUMPBIN" && break
5915 done
5916 fi
5917 if test -z "$DUMPBIN"; then
5918 ac_ct_DUMPBIN=$DUMPBIN
5919 for ac_prog in dumpbin "link -dump"
5920 do
5921 # Extract the first word of "$ac_prog", so it can be a program name with args.
5922 set dummy $ac_prog; ac_word=$2
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 printf %s "checking for $ac_word... " >&6; }
5925 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5926 then :
5927 printf %s "(cached) " >&6
5928 else $as_nop
5929 if test -n "$ac_ct_DUMPBIN"; then
5930 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935 IFS=$as_save_IFS
5936 case $as_dir in #(((
5937 '') as_dir=./ ;;
5938 */) ;;
5939 *) as_dir=$as_dir/ ;;
5940 esac
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947 done
5948 done
5949 IFS=$as_save_IFS
5950
5951 fi
5952 fi
5953 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5954 if test -n "$ac_ct_DUMPBIN"; then
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5956 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5957 else
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 printf "%s\n" "no" >&6; }
5960 fi
5961
5962
5963 test -n "$ac_ct_DUMPBIN" && break
5964 done
5965
5966 if test "x$ac_ct_DUMPBIN" = x; then
5967 DUMPBIN=":"
5968 else
5969 case $cross_compiling:$ac_tool_warned in
5970 yes:)
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5972 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5973 ac_tool_warned=yes ;;
5974 esac
5975 DUMPBIN=$ac_ct_DUMPBIN
5976 fi
5977 fi
5978
5979 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5980 *COFF*)
5981 DUMPBIN="$DUMPBIN -symbols -headers"
5982 ;;
5983 *)
5984 DUMPBIN=:
5985 ;;
5986 esac
5987 fi
5988
5989 if test : != "$DUMPBIN"; then
5990 NM=$DUMPBIN
5991 fi
5992 fi
5993 test -z "$NM" && NM=nm
5994
5995
5996
5997
5998
5999
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6001 printf %s "checking the name lister ($NM) interface... " >&6; }
6002 if test ${lt_cv_nm_interface+y}
6003 then :
6004 printf %s "(cached) " >&6
6005 else $as_nop
6006 lt_cv_nm_interface="BSD nm"
6007 echo "int some_variable = 0;" > conftest.$ac_ext
6008 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6009 (eval "$ac_compile" 2>conftest.err)
6010 cat conftest.err >&5
6011 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6012 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6013 cat conftest.err >&5
6014 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6015 cat conftest.out >&5
6016 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6017 lt_cv_nm_interface="MS dumpbin"
6018 fi
6019 rm -f conftest*
6020 fi
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6022 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6023
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6025 printf %s "checking whether ln -s works... " >&6; }
6026 LN_S=$as_ln_s
6027 if test "$LN_S" = "ln -s"; then
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6029 printf "%s\n" "yes" >&6; }
6030 else
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6032 printf "%s\n" "no, using $LN_S" >&6; }
6033 fi
6034
6035 # find the maximum length of command line arguments
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6037 printf %s "checking the maximum length of command line arguments... " >&6; }
6038 if test ${lt_cv_sys_max_cmd_len+y}
6039 then :
6040 printf %s "(cached) " >&6
6041 else $as_nop
6042 i=0
6043 teststring=ABCD
6044
6045 case $build_os in
6046 msdosdjgpp*)
6047 # On DJGPP, this test can blow up pretty badly due to problems in libc
6048 # (any single argument exceeding 2000 bytes causes a buffer overrun
6049 # during glob expansion). Even if it were fixed, the result of this
6050 # check would be larger than it should be.
6051 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6052 ;;
6053
6054 gnu*)
6055 # Under GNU Hurd, this test is not required because there is
6056 # no limit to the length of command line arguments.
6057 # Libtool will interpret -1 as no limit whatsoever
6058 lt_cv_sys_max_cmd_len=-1;
6059 ;;
6060
6061 cygwin* | mingw* | cegcc*)
6062 # On Win9x/ME, this test blows up -- it succeeds, but takes
6063 # about 5 minutes as the teststring grows exponentially.
6064 # Worse, since 9x/ME are not pre-emptively multitasking,
6065 # you end up with a "frozen" computer, even though with patience
6066 # the test eventually succeeds (with a max line length of 256k).
6067 # Instead, let's just punt: use the minimum linelength reported by
6068 # all of the supported platforms: 8192 (on NT/2K/XP).
6069 lt_cv_sys_max_cmd_len=8192;
6070 ;;
6071
6072 mint*)
6073 # On MiNT this can take a long time and run out of memory.
6074 lt_cv_sys_max_cmd_len=8192;
6075 ;;
6076
6077 amigaos*)
6078 # On AmigaOS with pdksh, this test takes hours, literally.
6079 # So we just punt and use a minimum line length of 8192.
6080 lt_cv_sys_max_cmd_len=8192;
6081 ;;
6082
6083 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6084 # This has been around since 386BSD, at least. Likely further.
6085 if test -x /sbin/sysctl; then
6086 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6087 elif test -x /usr/sbin/sysctl; then
6088 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6089 else
6090 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6091 fi
6092 # And add a safety zone
6093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6095 ;;
6096
6097 interix*)
6098 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6099 lt_cv_sys_max_cmd_len=196608
6100 ;;
6101
6102 os2*)
6103 # The test takes a long time on OS/2.
6104 lt_cv_sys_max_cmd_len=8192
6105 ;;
6106
6107 osf*)
6108 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6109 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6110 # nice to cause kernel panics so lets avoid the loop below.
6111 # First set a reasonable default.
6112 lt_cv_sys_max_cmd_len=16384
6113 #
6114 if test -x /sbin/sysconfig; then
6115 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6116 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6117 esac
6118 fi
6119 ;;
6120 sco3.2v5*)
6121 lt_cv_sys_max_cmd_len=102400
6122 ;;
6123 sysv5* | sco5v6* | sysv4.2uw2*)
6124 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6125 if test -n "$kargmax"; then
6126 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6127 else
6128 lt_cv_sys_max_cmd_len=32768
6129 fi
6130 ;;
6131 *)
6132 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6133 if test -n "$lt_cv_sys_max_cmd_len" && \
6134 test undefined != "$lt_cv_sys_max_cmd_len"; then
6135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6137 else
6138 # Make teststring a little bigger before we do anything with it.
6139 # a 1K string should be a reasonable start.
6140 for i in 1 2 3 4 5 6 7 8; do
6141 teststring=$teststring$teststring
6142 done
6143 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6144 # If test is not a shell built-in, we'll probably end up computing a
6145 # maximum length that is only half of the actual maximum length, but
6146 # we can't tell.
6147 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6148 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6149 test 17 != "$i" # 1/2 MB should be enough
6150 do
6151 i=`expr $i + 1`
6152 teststring=$teststring$teststring
6153 done
6154 # Only check the string length outside the loop.
6155 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6156 teststring=
6157 # Add a significant safety factor because C++ compilers can tack on
6158 # massive amounts of additional arguments before passing them to the
6159 # linker. It appears as though 1/2 is a usable value.
6160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6161 fi
6162 ;;
6163 esac
6164
6165 fi
6166
6167 if test -n "$lt_cv_sys_max_cmd_len"; then
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6169 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6170 else
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6172 printf "%s\n" "none" >&6; }
6173 fi
6174 max_cmd_len=$lt_cv_sys_max_cmd_len
6175
6176
6177
6178
6179
6180
6181 : ${CP="cp -f"}
6182 : ${MV="mv -f"}
6183 : ${RM="rm -f"}
6184
6185 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6186 lt_unset=unset
6187 else
6188 lt_unset=false
6189 fi
6190
6191
6192
6193
6194
6195 # test EBCDIC or ASCII
6196 case `echo X|tr X '\101'` in
6197 A) # ASCII based system
6198 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6199 lt_SP2NL='tr \040 \012'
6200 lt_NL2SP='tr \015\012 \040\040'
6201 ;;
6202 *) # EBCDIC based system
6203 lt_SP2NL='tr \100 \n'
6204 lt_NL2SP='tr \r\n \100\100'
6205 ;;
6206 esac
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6217 printf %s "checking how to convert $build file names to $host format... " >&6; }
6218 if test ${lt_cv_to_host_file_cmd+y}
6219 then :
6220 printf %s "(cached) " >&6
6221 else $as_nop
6222 case $host in
6223 *-*-mingw* )
6224 case $build in
6225 *-*-mingw* ) # actually msys
6226 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6227 ;;
6228 *-*-cygwin* )
6229 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6230 ;;
6231 * ) # otherwise, assume *nix
6232 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6233 ;;
6234 esac
6235 ;;
6236 *-*-cygwin* )
6237 case $build in
6238 *-*-mingw* ) # actually msys
6239 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6240 ;;
6241 *-*-cygwin* )
6242 lt_cv_to_host_file_cmd=func_convert_file_noop
6243 ;;
6244 * ) # otherwise, assume *nix
6245 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6246 ;;
6247 esac
6248 ;;
6249 * ) # unhandled hosts (and "normal" native builds)
6250 lt_cv_to_host_file_cmd=func_convert_file_noop
6251 ;;
6252 esac
6253
6254 fi
6255
6256 to_host_file_cmd=$lt_cv_to_host_file_cmd
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6258 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6259
6260
6261
6262
6263
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6265 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6266 if test ${lt_cv_to_tool_file_cmd+y}
6267 then :
6268 printf %s "(cached) " >&6
6269 else $as_nop
6270 #assume ordinary cross tools, or native build.
6271 lt_cv_to_tool_file_cmd=func_convert_file_noop
6272 case $host in
6273 *-*-mingw* )
6274 case $build in
6275 *-*-mingw* ) # actually msys
6276 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6277 ;;
6278 esac
6279 ;;
6280 esac
6281
6282 fi
6283
6284 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6286 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6287
6288
6289
6290
6291
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6293 printf %s "checking for $LD option to reload object files... " >&6; }
6294 if test ${lt_cv_ld_reload_flag+y}
6295 then :
6296 printf %s "(cached) " >&6
6297 else $as_nop
6298 lt_cv_ld_reload_flag='-r'
6299 fi
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6301 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6302 reload_flag=$lt_cv_ld_reload_flag
6303 case $reload_flag in
6304 "" | " "*) ;;
6305 *) reload_flag=" $reload_flag" ;;
6306 esac
6307 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6308 case $host_os in
6309 cygwin* | mingw* | pw32* | cegcc*)
6310 if test yes != "$GCC"; then
6311 reload_cmds=false
6312 fi
6313 ;;
6314 darwin*)
6315 if test yes = "$GCC"; then
6316 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6317 else
6318 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6319 fi
6320 ;;
6321 esac
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}file; ac_word=$2
6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 printf %s "checking for $ac_word... " >&6; }
6336 if test ${ac_cv_prog_FILECMD+y}
6337 then :
6338 printf %s "(cached) " >&6
6339 else $as_nop
6340 if test -n "$FILECMD"; then
6341 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346 IFS=$as_save_IFS
6347 case $as_dir in #(((
6348 '') as_dir=./ ;;
6349 */) ;;
6350 *) as_dir=$as_dir/ ;;
6351 esac
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 FILECMD=$ac_cv_prog_FILECMD
6365 if test -n "$FILECMD"; then
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6367 printf "%s\n" "$FILECMD" >&6; }
6368 else
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 printf "%s\n" "no" >&6; }
6371 fi
6372
6373
6374 fi
6375 if test -z "$ac_cv_prog_FILECMD"; then
6376 ac_ct_FILECMD=$FILECMD
6377 # Extract the first word of "file", so it can be a program name with args.
6378 set dummy file; ac_word=$2
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 printf %s "checking for $ac_word... " >&6; }
6381 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6382 then :
6383 printf %s "(cached) " >&6
6384 else $as_nop
6385 if test -n "$ac_ct_FILECMD"; then
6386 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6390 do
6391 IFS=$as_save_IFS
6392 case $as_dir in #(((
6393 '') as_dir=./ ;;
6394 */) ;;
6395 *) as_dir=$as_dir/ ;;
6396 esac
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_ac_ct_FILECMD="file"
6400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6401 break 2
6402 fi
6403 done
6404 done
6405 IFS=$as_save_IFS
6406
6407 fi
6408 fi
6409 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6410 if test -n "$ac_ct_FILECMD"; then
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6412 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6413 else
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 printf "%s\n" "no" >&6; }
6416 fi
6417
6418 if test "x$ac_ct_FILECMD" = x; then
6419 FILECMD=":"
6420 else
6421 case $cross_compiling:$ac_tool_warned in
6422 yes:)
6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6426 esac
6427 FILECMD=$ac_ct_FILECMD
6428 fi
6429 else
6430 FILECMD="$ac_cv_prog_FILECMD"
6431 fi
6432
6433
6434
6435
6436
6437
6438
6439 if test -n "$ac_tool_prefix"; then
6440 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 printf %s "checking for $ac_word... " >&6; }
6444 if test ${ac_cv_prog_OBJDUMP+y}
6445 then :
6446 printf %s "(cached) " >&6
6447 else $as_nop
6448 if test -n "$OBJDUMP"; then
6449 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454 IFS=$as_save_IFS
6455 case $as_dir in #(((
6456 '') as_dir=./ ;;
6457 */) ;;
6458 *) as_dir=$as_dir/ ;;
6459 esac
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 OBJDUMP=$ac_cv_prog_OBJDUMP
6473 if test -n "$OBJDUMP"; then
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6475 printf "%s\n" "$OBJDUMP" >&6; }
6476 else
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 printf "%s\n" "no" >&6; }
6479 fi
6480
6481
6482 fi
6483 if test -z "$ac_cv_prog_OBJDUMP"; then
6484 ac_ct_OBJDUMP=$OBJDUMP
6485 # Extract the first word of "objdump", so it can be a program name with args.
6486 set dummy objdump; ac_word=$2
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 printf %s "checking for $ac_word... " >&6; }
6489 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6490 then :
6491 printf %s "(cached) " >&6
6492 else $as_nop
6493 if test -n "$ac_ct_OBJDUMP"; then
6494 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499 IFS=$as_save_IFS
6500 case $as_dir in #(((
6501 '') as_dir=./ ;;
6502 */) ;;
6503 *) as_dir=$as_dir/ ;;
6504 esac
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511 done
6512 done
6513 IFS=$as_save_IFS
6514
6515 fi
6516 fi
6517 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6518 if test -n "$ac_ct_OBJDUMP"; then
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6520 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6521 else
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 printf "%s\n" "no" >&6; }
6524 fi
6525
6526 if test "x$ac_ct_OBJDUMP" = x; then
6527 OBJDUMP="false"
6528 else
6529 case $cross_compiling:$ac_tool_warned in
6530 yes:)
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533 ac_tool_warned=yes ;;
6534 esac
6535 OBJDUMP=$ac_ct_OBJDUMP
6536 fi
6537 else
6538 OBJDUMP="$ac_cv_prog_OBJDUMP"
6539 fi
6540
6541 test -z "$OBJDUMP" && OBJDUMP=objdump
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6552 printf %s "checking how to recognize dependent libraries... " >&6; }
6553 if test ${lt_cv_deplibs_check_method+y}
6554 then :
6555 printf %s "(cached) " >&6
6556 else $as_nop
6557 lt_cv_file_magic_cmd='$MAGIC_CMD'
6558 lt_cv_file_magic_test_file=
6559 lt_cv_deplibs_check_method='unknown'
6560 # Need to set the preceding variable on all platforms that support
6561 # interlibrary dependencies.
6562 # 'none' -- dependencies not supported.
6563 # 'unknown' -- same as none, but documents that we really don't know.
6564 # 'pass_all' -- all dependencies passed with no checks.
6565 # 'test_compile' -- check by making test program.
6566 # 'file_magic [[regex]]' -- check by looking for files in library path
6567 # that responds to the $file_magic_cmd with a given extended regex.
6568 # If you have 'file' or equivalent on your system and you're not sure
6569 # whether 'pass_all' will *always* work, you probably want this one.
6570
6571 case $host_os in
6572 aix[4-9]*)
6573 lt_cv_deplibs_check_method=pass_all
6574 ;;
6575
6576 beos*)
6577 lt_cv_deplibs_check_method=pass_all
6578 ;;
6579
6580 bsdi[45]*)
6581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6582 lt_cv_file_magic_cmd='$FILECMD -L'
6583 lt_cv_file_magic_test_file=/shlib/libc.so
6584 ;;
6585
6586 cygwin*)
6587 # func_win32_libid is a shell function defined in ltmain.sh
6588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6589 lt_cv_file_magic_cmd='func_win32_libid'
6590 ;;
6591
6592 mingw* | pw32*)
6593 # Base MSYS/MinGW do not provide the 'file' command needed by
6594 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6595 # unless we find 'file', for example because we are cross-compiling.
6596 if ( file / ) >/dev/null 2>&1; then
6597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6598 lt_cv_file_magic_cmd='func_win32_libid'
6599 else
6600 # Keep this pattern in sync with the one in func_win32_libid.
6601 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6602 lt_cv_file_magic_cmd='$OBJDUMP -f'
6603 fi
6604 ;;
6605
6606 cegcc*)
6607 # use the weaker test based on 'objdump'. See mingw*.
6608 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6609 lt_cv_file_magic_cmd='$OBJDUMP -f'
6610 ;;
6611
6612 darwin* | rhapsody*)
6613 lt_cv_deplibs_check_method=pass_all
6614 ;;
6615
6616 freebsd* | dragonfly* | midnightbsd*)
6617 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6618 case $host_cpu in
6619 i*86 )
6620 # Not sure whether the presence of OpenBSD here was a mistake.
6621 # Let's accept both of them until this is cleared up.
6622 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6623 lt_cv_file_magic_cmd=$FILECMD
6624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6625 ;;
6626 esac
6627 else
6628 lt_cv_deplibs_check_method=pass_all
6629 fi
6630 ;;
6631
6632 haiku*)
6633 lt_cv_deplibs_check_method=pass_all
6634 ;;
6635
6636 hpux10.20* | hpux11*)
6637 lt_cv_file_magic_cmd=$FILECMD
6638 case $host_cpu in
6639 ia64*)
6640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6641 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6642 ;;
6643 hppa*64*)
6644 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]'
6645 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6646 ;;
6647 *)
6648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6649 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6650 ;;
6651 esac
6652 ;;
6653
6654 interix[3-9]*)
6655 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6657 ;;
6658
6659 irix5* | irix6* | nonstopux*)
6660 case $LD in
6661 *-32|*"-32 ") libmagic=32-bit;;
6662 *-n32|*"-n32 ") libmagic=N32;;
6663 *-64|*"-64 ") libmagic=64-bit;;
6664 *) libmagic=never-match;;
6665 esac
6666 lt_cv_deplibs_check_method=pass_all
6667 ;;
6668
6669 # This must be glibc/ELF.
6670 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6671 lt_cv_deplibs_check_method=pass_all
6672 ;;
6673
6674 netbsd* | netbsdelf*-gnu)
6675 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6677 else
6678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6679 fi
6680 ;;
6681
6682 newos6*)
6683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6684 lt_cv_file_magic_cmd=$FILECMD
6685 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6686 ;;
6687
6688 *nto* | *qnx*)
6689 lt_cv_deplibs_check_method=pass_all
6690 ;;
6691
6692 openbsd* | bitrig*)
6693 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6695 else
6696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6697 fi
6698 ;;
6699
6700 osf3* | osf4* | osf5*)
6701 lt_cv_deplibs_check_method=pass_all
6702 ;;
6703
6704 rdos*)
6705 lt_cv_deplibs_check_method=pass_all
6706 ;;
6707
6708 solaris*)
6709 lt_cv_deplibs_check_method=pass_all
6710 ;;
6711
6712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6713 lt_cv_deplibs_check_method=pass_all
6714 ;;
6715
6716 sysv4 | sysv4.3*)
6717 case $host_vendor in
6718 motorola)
6719 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]'
6720 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6721 ;;
6722 ncr)
6723 lt_cv_deplibs_check_method=pass_all
6724 ;;
6725 sequent)
6726 lt_cv_file_magic_cmd='/bin/file'
6727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6728 ;;
6729 sni)
6730 lt_cv_file_magic_cmd='/bin/file'
6731 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6732 lt_cv_file_magic_test_file=/lib/libc.so
6733 ;;
6734 siemens)
6735 lt_cv_deplibs_check_method=pass_all
6736 ;;
6737 pc)
6738 lt_cv_deplibs_check_method=pass_all
6739 ;;
6740 esac
6741 ;;
6742
6743 tpf*)
6744 lt_cv_deplibs_check_method=pass_all
6745 ;;
6746 os2*)
6747 lt_cv_deplibs_check_method=pass_all
6748 ;;
6749 esac
6750
6751 fi
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6753 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6754
6755 file_magic_glob=
6756 want_nocaseglob=no
6757 if test "$build" = "$host"; then
6758 case $host_os in
6759 mingw* | pw32*)
6760 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6761 want_nocaseglob=yes
6762 else
6763 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6764 fi
6765 ;;
6766 esac
6767 fi
6768
6769 file_magic_cmd=$lt_cv_file_magic_cmd
6770 deplibs_check_method=$lt_cv_deplibs_check_method
6771 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794 if test -n "$ac_tool_prefix"; then
6795 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6796 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 printf %s "checking for $ac_word... " >&6; }
6799 if test ${ac_cv_prog_DLLTOOL+y}
6800 then :
6801 printf %s "(cached) " >&6
6802 else $as_nop
6803 if test -n "$DLLTOOL"; then
6804 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 case $as_dir in #(((
6811 '') as_dir=./ ;;
6812 */) ;;
6813 *) as_dir=$as_dir/ ;;
6814 esac
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6817 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 DLLTOOL=$ac_cv_prog_DLLTOOL
6828 if test -n "$DLLTOOL"; then
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6830 printf "%s\n" "$DLLTOOL" >&6; }
6831 else
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 printf "%s\n" "no" >&6; }
6834 fi
6835
6836
6837 fi
6838 if test -z "$ac_cv_prog_DLLTOOL"; then
6839 ac_ct_DLLTOOL=$DLLTOOL
6840 # Extract the first word of "dlltool", so it can be a program name with args.
6841 set dummy dlltool; ac_word=$2
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 printf %s "checking for $ac_word... " >&6; }
6844 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6845 then :
6846 printf %s "(cached) " >&6
6847 else $as_nop
6848 if test -n "$ac_ct_DLLTOOL"; then
6849 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6850 else
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854 IFS=$as_save_IFS
6855 case $as_dir in #(((
6856 '') as_dir=./ ;;
6857 */) ;;
6858 *) as_dir=$as_dir/ ;;
6859 esac
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6862 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6873 if test -n "$ac_ct_DLLTOOL"; then
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6875 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6876 else
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 printf "%s\n" "no" >&6; }
6879 fi
6880
6881 if test "x$ac_ct_DLLTOOL" = x; then
6882 DLLTOOL="false"
6883 else
6884 case $cross_compiling:$ac_tool_warned in
6885 yes:)
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6887 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888 ac_tool_warned=yes ;;
6889 esac
6890 DLLTOOL=$ac_ct_DLLTOOL
6891 fi
6892 else
6893 DLLTOOL="$ac_cv_prog_DLLTOOL"
6894 fi
6895
6896 test -z "$DLLTOOL" && DLLTOOL=dlltool
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6908 printf %s "checking how to associate runtime and link libraries... " >&6; }
6909 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6910 then :
6911 printf %s "(cached) " >&6
6912 else $as_nop
6913 lt_cv_sharedlib_from_linklib_cmd='unknown'
6914
6915 case $host_os in
6916 cygwin* | mingw* | pw32* | cegcc*)
6917 # two different shell functions defined in ltmain.sh;
6918 # decide which one to use based on capabilities of $DLLTOOL
6919 case `$DLLTOOL --help 2>&1` in
6920 *--identify-strict*)
6921 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6922 ;;
6923 *)
6924 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6925 ;;
6926 esac
6927 ;;
6928 *)
6929 # fallback: assume linklib IS sharedlib
6930 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6931 ;;
6932 esac
6933
6934 fi
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6936 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6937 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6938 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6939
6940
6941
6942
6943
6944
6945
6946 if test -n "$ac_tool_prefix"; then
6947 for ac_prog in ar
6948 do
6949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 printf %s "checking for $ac_word... " >&6; }
6953 if test ${ac_cv_prog_AR+y}
6954 then :
6955 printf %s "(cached) " >&6
6956 else $as_nop
6957 if test -n "$AR"; then
6958 ac_cv_prog_AR="$AR" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963 IFS=$as_save_IFS
6964 case $as_dir in #(((
6965 '') as_dir=./ ;;
6966 */) ;;
6967 *) as_dir=$as_dir/ ;;
6968 esac
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6971 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975 done
6976 done
6977 IFS=$as_save_IFS
6978
6979 fi
6980 fi
6981 AR=$ac_cv_prog_AR
6982 if test -n "$AR"; then
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6984 printf "%s\n" "$AR" >&6; }
6985 else
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 printf "%s\n" "no" >&6; }
6988 fi
6989
6990
6991 test -n "$AR" && break
6992 done
6993 fi
6994 if test -z "$AR"; then
6995 ac_ct_AR=$AR
6996 for ac_prog in ar
6997 do
6998 # Extract the first word of "$ac_prog", so it can be a program name with args.
6999 set dummy $ac_prog; ac_word=$2
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 printf %s "checking for $ac_word... " >&6; }
7002 if test ${ac_cv_prog_ac_ct_AR+y}
7003 then :
7004 printf %s "(cached) " >&6
7005 else $as_nop
7006 if test -n "$ac_ct_AR"; then
7007 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7008 else
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7011 do
7012 IFS=$as_save_IFS
7013 case $as_dir in #(((
7014 '') as_dir=./ ;;
7015 */) ;;
7016 *) as_dir=$as_dir/ ;;
7017 esac
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7020 ac_cv_prog_ac_ct_AR="$ac_prog"
7021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7022 break 2
7023 fi
7024 done
7025 done
7026 IFS=$as_save_IFS
7027
7028 fi
7029 fi
7030 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7031 if test -n "$ac_ct_AR"; then
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7033 printf "%s\n" "$ac_ct_AR" >&6; }
7034 else
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 printf "%s\n" "no" >&6; }
7037 fi
7038
7039
7040 test -n "$ac_ct_AR" && break
7041 done
7042
7043 if test "x$ac_ct_AR" = x; then
7044 AR="false"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050 ac_tool_warned=yes ;;
7051 esac
7052 AR=$ac_ct_AR
7053 fi
7054 fi
7055
7056 : ${AR=ar}
7057
7058
7059
7060
7061
7062
7063 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7064 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7065 # higher priority because thats what people were doing historically (setting
7066 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7067 # variable obsoleted/removed.
7068
7069 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7070 lt_ar_flags=$AR_FLAGS
7071
7072
7073
7074
7075
7076
7077 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7078 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7079
7080
7081
7082
7083
7084
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7086 printf %s "checking for archiver @FILE support... " >&6; }
7087 if test ${lt_cv_ar_at_file+y}
7088 then :
7089 printf %s "(cached) " >&6
7090 else $as_nop
7091 lt_cv_ar_at_file=no
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094
7095 int
7096 main (void)
7097 {
7098
7099 ;
7100 return 0;
7101 }
7102 _ACEOF
7103 if ac_fn_c_try_compile "$LINENO"
7104 then :
7105 echo conftest.$ac_objext > conftest.lst
7106 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7108 (eval $lt_ar_try) 2>&5
7109 ac_status=$?
7110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7111 test $ac_status = 0; }
7112 if test 0 -eq "$ac_status"; then
7113 # Ensure the archiver fails upon bogus file names.
7114 rm -f conftest.$ac_objext libconftest.a
7115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7116 (eval $lt_ar_try) 2>&5
7117 ac_status=$?
7118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7119 test $ac_status = 0; }
7120 if test 0 -ne "$ac_status"; then
7121 lt_cv_ar_at_file=@
7122 fi
7123 fi
7124 rm -f conftest.* libconftest.a
7125
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7128
7129 fi
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7131 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7132
7133 if test no = "$lt_cv_ar_at_file"; then
7134 archiver_list_spec=
7135 else
7136 archiver_list_spec=$lt_cv_ar_at_file
7137 fi
7138
7139
7140
7141
7142
7143
7144
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}strip; ac_word=$2
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 printf %s "checking for $ac_word... " >&6; }
7150 if test ${ac_cv_prog_STRIP+y}
7151 then :
7152 printf %s "(cached) " >&6
7153 else $as_nop
7154 if test -n "$STRIP"; then
7155 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7156 else
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160 IFS=$as_save_IFS
7161 case $as_dir in #(((
7162 '') as_dir=./ ;;
7163 */) ;;
7164 *) as_dir=$as_dir/ ;;
7165 esac
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 STRIP=$ac_cv_prog_STRIP
7179 if test -n "$STRIP"; then
7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7181 printf "%s\n" "$STRIP" >&6; }
7182 else
7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 printf "%s\n" "no" >&6; }
7185 fi
7186
7187
7188 fi
7189 if test -z "$ac_cv_prog_STRIP"; then
7190 ac_ct_STRIP=$STRIP
7191 # Extract the first word of "strip", so it can be a program name with args.
7192 set dummy strip; ac_word=$2
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 printf %s "checking for $ac_word... " >&6; }
7195 if test ${ac_cv_prog_ac_ct_STRIP+y}
7196 then :
7197 printf %s "(cached) " >&6
7198 else $as_nop
7199 if test -n "$ac_ct_STRIP"; then
7200 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205 IFS=$as_save_IFS
7206 case $as_dir in #(((
7207 '') as_dir=./ ;;
7208 */) ;;
7209 *) as_dir=$as_dir/ ;;
7210 esac
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7213 ac_cv_prog_ac_ct_STRIP="strip"
7214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217 done
7218 done
7219 IFS=$as_save_IFS
7220
7221 fi
7222 fi
7223 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7224 if test -n "$ac_ct_STRIP"; then
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7226 printf "%s\n" "$ac_ct_STRIP" >&6; }
7227 else
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 printf "%s\n" "no" >&6; }
7230 fi
7231
7232 if test "x$ac_ct_STRIP" = x; then
7233 STRIP=":"
7234 else
7235 case $cross_compiling:$ac_tool_warned in
7236 yes:)
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239 ac_tool_warned=yes ;;
7240 esac
7241 STRIP=$ac_ct_STRIP
7242 fi
7243 else
7244 STRIP="$ac_cv_prog_STRIP"
7245 fi
7246
7247 test -z "$STRIP" && STRIP=:
7248
7249
7250
7251
7252
7253
7254 if test -n "$ac_tool_prefix"; then
7255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 printf %s "checking for $ac_word... " >&6; }
7259 if test ${ac_cv_prog_RANLIB+y}
7260 then :
7261 printf %s "(cached) " >&6
7262 else $as_nop
7263 if test -n "$RANLIB"; then
7264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7265 else
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269 IFS=$as_save_IFS
7270 case $as_dir in #(((
7271 '') as_dir=./ ;;
7272 */) ;;
7273 *) as_dir=$as_dir/ ;;
7274 esac
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 RANLIB=$ac_cv_prog_RANLIB
7288 if test -n "$RANLIB"; then
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7290 printf "%s\n" "$RANLIB" >&6; }
7291 else
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 printf "%s\n" "no" >&6; }
7294 fi
7295
7296
7297 fi
7298 if test -z "$ac_cv_prog_RANLIB"; then
7299 ac_ct_RANLIB=$RANLIB
7300 # Extract the first word of "ranlib", so it can be a program name with args.
7301 set dummy ranlib; ac_word=$2
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 printf %s "checking for $ac_word... " >&6; }
7304 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7305 then :
7306 printf %s "(cached) " >&6
7307 else $as_nop
7308 if test -n "$ac_ct_RANLIB"; then
7309 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314 IFS=$as_save_IFS
7315 case $as_dir in #(((
7316 '') as_dir=./ ;;
7317 */) ;;
7318 *) as_dir=$as_dir/ ;;
7319 esac
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_ac_ct_RANLIB="ranlib"
7323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326 done
7327 done
7328 IFS=$as_save_IFS
7329
7330 fi
7331 fi
7332 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7333 if test -n "$ac_ct_RANLIB"; then
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7335 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7336 else
7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 printf "%s\n" "no" >&6; }
7339 fi
7340
7341 if test "x$ac_ct_RANLIB" = x; then
7342 RANLIB=":"
7343 else
7344 case $cross_compiling:$ac_tool_warned in
7345 yes:)
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348 ac_tool_warned=yes ;;
7349 esac
7350 RANLIB=$ac_ct_RANLIB
7351 fi
7352 else
7353 RANLIB="$ac_cv_prog_RANLIB"
7354 fi
7355
7356 test -z "$RANLIB" && RANLIB=:
7357
7358
7359
7360
7361
7362
7363 # Determine commands to create old-style static archives.
7364 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7365 old_postinstall_cmds='chmod 644 $oldlib'
7366 old_postuninstall_cmds=
7367
7368 if test -n "$RANLIB"; then
7369 case $host_os in
7370 bitrig* | openbsd*)
7371 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7372 ;;
7373 *)
7374 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7375 ;;
7376 esac
7377 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7378 fi
7379
7380 case $host_os in
7381 darwin*)
7382 lock_old_archive_extraction=yes ;;
7383 *)
7384 lock_old_archive_extraction=no ;;
7385 esac
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425 # If no C compiler was specified, use CC.
7426 LTCC=${LTCC-"$CC"}
7427
7428 # If no C compiler flags were specified, use CFLAGS.
7429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7430
7431 # Allow CC to be a program name with arguments.
7432 compiler=$CC
7433
7434
7435 # Check for command to grab the raw symbol name followed by C symbol from nm.
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7437 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7438 if test ${lt_cv_sys_global_symbol_pipe+y}
7439 then :
7440 printf %s "(cached) " >&6
7441 else $as_nop
7442
7443 # These are sane defaults that work on at least a few old systems.
7444 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7445
7446 # Character class describing NM global symbol codes.
7447 symcode='[BCDEGRST]'
7448
7449 # Regexp to match symbols that can be accessed directly from C.
7450 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7451
7452 # Define system-specific variables.
7453 case $host_os in
7454 aix*)
7455 symcode='[BCDT]'
7456 ;;
7457 cygwin* | mingw* | pw32* | cegcc*)
7458 symcode='[ABCDGISTW]'
7459 ;;
7460 hpux*)
7461 if test ia64 = "$host_cpu"; then
7462 symcode='[ABCDEGRST]'
7463 fi
7464 ;;
7465 irix* | nonstopux*)
7466 symcode='[BCDEGRST]'
7467 ;;
7468 osf*)
7469 symcode='[BCDEGQRST]'
7470 ;;
7471 solaris*)
7472 symcode='[BDRT]'
7473 ;;
7474 sco3.2v5*)
7475 symcode='[DT]'
7476 ;;
7477 sysv4.2uw2*)
7478 symcode='[DT]'
7479 ;;
7480 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7481 symcode='[ABDT]'
7482 ;;
7483 sysv4)
7484 symcode='[DFNSTU]'
7485 ;;
7486 esac
7487
7488 # If we're using GNU nm, then use its standard symbol codes.
7489 case `$NM -V 2>&1` in
7490 *GNU* | *'with BFD'*)
7491 symcode='[ABCDGIRSTW]' ;;
7492 esac
7493
7494 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7495 # Gets list of data symbols to import.
7496 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7497 # Adjust the below global symbol transforms to fixup imported variables.
7498 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7499 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7500 lt_c_name_lib_hook="\
7501 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7502 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7503 else
7504 # Disable hooks by default.
7505 lt_cv_sys_global_symbol_to_import=
7506 lt_cdecl_hook=
7507 lt_c_name_hook=
7508 lt_c_name_lib_hook=
7509 fi
7510
7511 # Transform an extracted symbol line into a proper C declaration.
7512 # Some systems (esp. on ia64) link data and code symbols differently,
7513 # so use this general approach.
7514 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7515 $lt_cdecl_hook\
7516 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7517 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7518
7519 # Transform an extracted symbol line into symbol name and symbol address
7520 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7521 $lt_c_name_hook\
7522 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7523 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7524
7525 # Transform an extracted symbol line into symbol name with lib prefix and
7526 # symbol address.
7527 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7528 $lt_c_name_lib_hook\
7529 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7530 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7531 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7532
7533 # Handle CRLF in mingw tool chain
7534 opt_cr=
7535 case $build_os in
7536 mingw*)
7537 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7538 ;;
7539 esac
7540
7541 # Try without a prefix underscore, then with it.
7542 for ac_symprfx in "" "_"; do
7543
7544 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7545 symxfrm="\\1 $ac_symprfx\\2 \\2"
7546
7547 # Write the raw and C identifiers.
7548 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7549 # Fake it for dumpbin and say T for any non-static function,
7550 # D for any global variable and I for any imported variable.
7551 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7552 # which start with @ or ?.
7553 lt_cv_sys_global_symbol_pipe="$AWK '"\
7554 " {last_section=section; section=\$ 3};"\
7555 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7556 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7557 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7558 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7559 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7560 " \$ 0!~/External *\|/{next};"\
7561 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7562 " {if(hide[section]) next};"\
7563 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7564 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7565 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7566 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7567 " ' prfx=^$ac_symprfx"
7568 else
7569 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7570 fi
7571 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7572
7573 # Check to see that the pipe works correctly.
7574 pipe_works=no
7575
7576 rm -f conftest*
7577 cat > conftest.$ac_ext <<_LT_EOF
7578 #ifdef __cplusplus
7579 extern "C" {
7580 #endif
7581 char nm_test_var;
7582 void nm_test_func(void);
7583 void nm_test_func(void){}
7584 #ifdef __cplusplus
7585 }
7586 #endif
7587 int main(){nm_test_var='a';nm_test_func();return(0);}
7588 _LT_EOF
7589
7590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7591 (eval $ac_compile) 2>&5
7592 ac_status=$?
7593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7594 test $ac_status = 0; }; then
7595 # Now try to grab the symbols.
7596 nlist=conftest.nm
7597 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7598 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7599 # Try sorting and uniquifying the output.
7600 if sort "$nlist" | uniq > "$nlist"T; then
7601 mv -f "$nlist"T "$nlist"
7602 else
7603 rm -f "$nlist"T
7604 fi
7605
7606 # Make sure that we snagged all the symbols we need.
7607 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7608 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7609 cat <<_LT_EOF > conftest.$ac_ext
7610 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7611 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7612 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7613 relocations are performed -- see ld's documentation on pseudo-relocs. */
7614 # define LT_DLSYM_CONST
7615 #elif defined __osf__
7616 /* This system does not cope well with relocations in const data. */
7617 # define LT_DLSYM_CONST
7618 #else
7619 # define LT_DLSYM_CONST const
7620 #endif
7621
7622 #ifdef __cplusplus
7623 extern "C" {
7624 #endif
7625
7626 _LT_EOF
7627 # Now generate the symbol file.
7628 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7629
7630 cat <<_LT_EOF >> conftest.$ac_ext
7631
7632 /* The mapping between symbol names and symbols. */
7633 LT_DLSYM_CONST struct {
7634 const char *name;
7635 void *address;
7636 }
7637 lt__PROGRAM__LTX_preloaded_symbols[] =
7638 {
7639 { "@PROGRAM@", (void *) 0 },
7640 _LT_EOF
7641 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7642 cat <<\_LT_EOF >> conftest.$ac_ext
7643 {0, (void *) 0}
7644 };
7645
7646 /* This works around a problem in FreeBSD linker */
7647 #ifdef FREEBSD_WORKAROUND
7648 static const void *lt_preloaded_setup() {
7649 return lt__PROGRAM__LTX_preloaded_symbols;
7650 }
7651 #endif
7652
7653 #ifdef __cplusplus
7654 }
7655 #endif
7656 _LT_EOF
7657 # Now try linking the two files.
7658 mv conftest.$ac_objext conftstm.$ac_objext
7659 lt_globsym_save_LIBS=$LIBS
7660 lt_globsym_save_CFLAGS=$CFLAGS
7661 LIBS=conftstm.$ac_objext
7662 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7664 (eval $ac_link) 2>&5
7665 ac_status=$?
7666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7667 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7668 pipe_works=yes
7669 fi
7670 LIBS=$lt_globsym_save_LIBS
7671 CFLAGS=$lt_globsym_save_CFLAGS
7672 else
7673 echo "cannot find nm_test_func in $nlist" >&5
7674 fi
7675 else
7676 echo "cannot find nm_test_var in $nlist" >&5
7677 fi
7678 else
7679 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7680 fi
7681 else
7682 echo "$progname: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7684 fi
7685 rm -rf conftest* conftst*
7686
7687 # Do not use the global_symbol_pipe unless it works.
7688 if test yes = "$pipe_works"; then
7689 break
7690 else
7691 lt_cv_sys_global_symbol_pipe=
7692 fi
7693 done
7694
7695 fi
7696
7697 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7698 lt_cv_sys_global_symbol_to_cdecl=
7699 fi
7700 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7702 printf "%s\n" "failed" >&6; }
7703 else
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7705 printf "%s\n" "ok" >&6; }
7706 fi
7707
7708 # Response file support.
7709 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7710 nm_file_list_spec='@'
7711 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7712 nm_file_list_spec='@'
7713 fi
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7752 printf %s "checking for sysroot... " >&6; }
7753
7754 # Check whether --with-sysroot was given.
7755 if test ${with_sysroot+y}
7756 then :
7757 withval=$with_sysroot;
7758 else $as_nop
7759 with_sysroot=no
7760 fi
7761
7762
7763 lt_sysroot=
7764 case $with_sysroot in #(
7765 yes)
7766 if test yes = "$GCC"; then
7767 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7768 fi
7769 ;; #(
7770 /*)
7771 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7772 ;; #(
7773 no|'')
7774 ;; #(
7775 *)
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7777 printf "%s\n" "$with_sysroot" >&6; }
7778 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7779 ;;
7780 esac
7781
7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7783 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7784
7785
7786
7787
7788
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7790 printf %s "checking for a working dd... " >&6; }
7791 if test ${ac_cv_path_lt_DD+y}
7792 then :
7793 printf %s "(cached) " >&6
7794 else $as_nop
7795 printf 0123456789abcdef0123456789abcdef >conftest.i
7796 cat conftest.i conftest.i >conftest2.i
7797 : ${lt_DD:=$DD}
7798 if test -z "$lt_DD"; then
7799 ac_path_lt_DD_found=false
7800 # Loop through the user's path and test for each of PROGNAME-LIST
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7803 do
7804 IFS=$as_save_IFS
7805 case $as_dir in #(((
7806 '') as_dir=./ ;;
7807 */) ;;
7808 *) as_dir=$as_dir/ ;;
7809 esac
7810 for ac_prog in dd
7811 do
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7814 as_fn_executable_p "$ac_path_lt_DD" || continue
7815 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7816 cmp -s conftest.i conftest.out \
7817 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7818 fi
7819 $ac_path_lt_DD_found && break 3
7820 done
7821 done
7822 done
7823 IFS=$as_save_IFS
7824 if test -z "$ac_cv_path_lt_DD"; then
7825 :
7826 fi
7827 else
7828 ac_cv_path_lt_DD=$lt_DD
7829 fi
7830
7831 rm -f conftest.i conftest2.i conftest.out
7832 fi
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7834 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7835
7836
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7838 printf %s "checking how to truncate binary pipes... " >&6; }
7839 if test ${lt_cv_truncate_bin+y}
7840 then :
7841 printf %s "(cached) " >&6
7842 else $as_nop
7843 printf 0123456789abcdef0123456789abcdef >conftest.i
7844 cat conftest.i conftest.i >conftest2.i
7845 lt_cv_truncate_bin=
7846 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7847 cmp -s conftest.i conftest.out \
7848 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7849 fi
7850 rm -f conftest.i conftest2.i conftest.out
7851 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7852 fi
7853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7854 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7855
7856
7857
7858
7859
7860
7861
7862 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7863 func_cc_basename ()
7864 {
7865 for cc_temp in $*""; do
7866 case $cc_temp in
7867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7869 \-*) ;;
7870 *) break;;
7871 esac
7872 done
7873 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7874 }
7875
7876 # Check whether --enable-libtool-lock was given.
7877 if test ${enable_libtool_lock+y}
7878 then :
7879 enableval=$enable_libtool_lock;
7880 fi
7881
7882 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7883
7884 # Some flags need to be propagated to the compiler or linker for good
7885 # libtool support.
7886 case $host in
7887 ia64-*-hpux*)
7888 # Find out what ABI is being produced by ac_compile, and set mode
7889 # options accordingly.
7890 echo 'int i;' > conftest.$ac_ext
7891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7892 (eval $ac_compile) 2>&5
7893 ac_status=$?
7894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895 test $ac_status = 0; }; then
7896 case `$FILECMD conftest.$ac_objext` in
7897 *ELF-32*)
7898 HPUX_IA64_MODE=32
7899 ;;
7900 *ELF-64*)
7901 HPUX_IA64_MODE=64
7902 ;;
7903 esac
7904 fi
7905 rm -rf conftest*
7906 ;;
7907 *-*-irix6*)
7908 # Find out what ABI is being produced by ac_compile, and set linker
7909 # options accordingly.
7910 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7912 (eval $ac_compile) 2>&5
7913 ac_status=$?
7914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7915 test $ac_status = 0; }; then
7916 if test yes = "$lt_cv_prog_gnu_ld"; then
7917 case `$FILECMD conftest.$ac_objext` in
7918 *32-bit*)
7919 LD="${LD-ld} -melf32bsmip"
7920 ;;
7921 *N32*)
7922 LD="${LD-ld} -melf32bmipn32"
7923 ;;
7924 *64-bit*)
7925 LD="${LD-ld} -melf64bmip"
7926 ;;
7927 esac
7928 else
7929 case `$FILECMD conftest.$ac_objext` in
7930 *32-bit*)
7931 LD="${LD-ld} -32"
7932 ;;
7933 *N32*)
7934 LD="${LD-ld} -n32"
7935 ;;
7936 *64-bit*)
7937 LD="${LD-ld} -64"
7938 ;;
7939 esac
7940 fi
7941 fi
7942 rm -rf conftest*
7943 ;;
7944
7945 mips64*-*linux*)
7946 # Find out what ABI is being produced by ac_compile, and set linker
7947 # options accordingly.
7948 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7950 (eval $ac_compile) 2>&5
7951 ac_status=$?
7952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7953 test $ac_status = 0; }; then
7954 emul=elf
7955 case `$FILECMD conftest.$ac_objext` in
7956 *32-bit*)
7957 emul="${emul}32"
7958 ;;
7959 *64-bit*)
7960 emul="${emul}64"
7961 ;;
7962 esac
7963 case `$FILECMD conftest.$ac_objext` in
7964 *MSB*)
7965 emul="${emul}btsmip"
7966 ;;
7967 *LSB*)
7968 emul="${emul}ltsmip"
7969 ;;
7970 esac
7971 case `$FILECMD conftest.$ac_objext` in
7972 *N32*)
7973 emul="${emul}n32"
7974 ;;
7975 esac
7976 LD="${LD-ld} -m $emul"
7977 fi
7978 rm -rf conftest*
7979 ;;
7980
7981 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7982 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7983 # Find out what ABI is being produced by ac_compile, and set linker
7984 # options accordingly. Note that the listed cases only cover the
7985 # situations where additional linker options are needed (such as when
7986 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7987 # vice versa); the common cases where no linker options are needed do
7988 # not appear in the list.
7989 echo 'int i;' > conftest.$ac_ext
7990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7991 (eval $ac_compile) 2>&5
7992 ac_status=$?
7993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7994 test $ac_status = 0; }; then
7995 case `$FILECMD conftest.o` in
7996 *32-bit*)
7997 case $host in
7998 x86_64-*kfreebsd*-gnu)
7999 LD="${LD-ld} -m elf_i386_fbsd"
8000 ;;
8001 x86_64-*linux*)
8002 case `$FILECMD conftest.o` in
8003 *x86-64*)
8004 LD="${LD-ld} -m elf32_x86_64"
8005 ;;
8006 *)
8007 LD="${LD-ld} -m elf_i386"
8008 ;;
8009 esac
8010 ;;
8011 powerpc64le-*linux*)
8012 LD="${LD-ld} -m elf32lppclinux"
8013 ;;
8014 powerpc64-*linux*)
8015 LD="${LD-ld} -m elf32ppclinux"
8016 ;;
8017 s390x-*linux*)
8018 LD="${LD-ld} -m elf_s390"
8019 ;;
8020 sparc64-*linux*)
8021 LD="${LD-ld} -m elf32_sparc"
8022 ;;
8023 esac
8024 ;;
8025 *64-bit*)
8026 case $host in
8027 x86_64-*kfreebsd*-gnu)
8028 LD="${LD-ld} -m elf_x86_64_fbsd"
8029 ;;
8030 x86_64-*linux*)
8031 LD="${LD-ld} -m elf_x86_64"
8032 ;;
8033 powerpcle-*linux*)
8034 LD="${LD-ld} -m elf64lppc"
8035 ;;
8036 powerpc-*linux*)
8037 LD="${LD-ld} -m elf64ppc"
8038 ;;
8039 s390*-*linux*|s390*-*tpf*)
8040 LD="${LD-ld} -m elf64_s390"
8041 ;;
8042 sparc*-*linux*)
8043 LD="${LD-ld} -m elf64_sparc"
8044 ;;
8045 esac
8046 ;;
8047 esac
8048 fi
8049 rm -rf conftest*
8050 ;;
8051
8052 *-*-sco3.2v5*)
8053 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8054 SAVE_CFLAGS=$CFLAGS
8055 CFLAGS="$CFLAGS -belf"
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8057 printf %s "checking whether the C compiler needs -belf... " >&6; }
8058 if test ${lt_cv_cc_needs_belf+y}
8059 then :
8060 printf %s "(cached) " >&6
8061 else $as_nop
8062 ac_ext=c
8063 ac_cpp='$CPP $CPPFLAGS'
8064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8067
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070
8071 int
8072 main (void)
8073 {
8074
8075 ;
8076 return 0;
8077 }
8078 _ACEOF
8079 if ac_fn_c_try_link "$LINENO"
8080 then :
8081 lt_cv_cc_needs_belf=yes
8082 else $as_nop
8083 lt_cv_cc_needs_belf=no
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8086 conftest$ac_exeext conftest.$ac_ext
8087 ac_ext=c
8088 ac_cpp='$CPP $CPPFLAGS'
8089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8092
8093 fi
8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8095 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8096 if test yes != "$lt_cv_cc_needs_belf"; then
8097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8098 CFLAGS=$SAVE_CFLAGS
8099 fi
8100 ;;
8101 *-*solaris*)
8102 # Find out what ABI is being produced by ac_compile, and set linker
8103 # options accordingly.
8104 echo 'int i;' > conftest.$ac_ext
8105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8106 (eval $ac_compile) 2>&5
8107 ac_status=$?
8108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8109 test $ac_status = 0; }; then
8110 case `$FILECMD conftest.o` in
8111 *64-bit*)
8112 case $lt_cv_prog_gnu_ld in
8113 yes*)
8114 case $host in
8115 i?86-*-solaris*|x86_64-*-solaris*)
8116 LD="${LD-ld} -m elf_x86_64"
8117 ;;
8118 sparc*-*-solaris*)
8119 LD="${LD-ld} -m elf64_sparc"
8120 ;;
8121 esac
8122 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8123 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8124 LD=${LD-ld}_sol2
8125 fi
8126 ;;
8127 *)
8128 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8129 LD="${LD-ld} -64"
8130 fi
8131 ;;
8132 esac
8133 ;;
8134 esac
8135 fi
8136 rm -rf conftest*
8137 ;;
8138 esac
8139
8140 need_locks=$enable_libtool_lock
8141
8142 if test -n "$ac_tool_prefix"; then
8143 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8144 set dummy ${ac_tool_prefix}mt; ac_word=$2
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146 printf %s "checking for $ac_word... " >&6; }
8147 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8148 then :
8149 printf %s "(cached) " >&6
8150 else $as_nop
8151 if test -n "$MANIFEST_TOOL"; then
8152 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8153 else
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 for as_dir in $PATH
8156 do
8157 IFS=$as_save_IFS
8158 case $as_dir in #(((
8159 '') as_dir=./ ;;
8160 */) ;;
8161 *) as_dir=$as_dir/ ;;
8162 esac
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8165 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8167 break 2
8168 fi
8169 done
8170 done
8171 IFS=$as_save_IFS
8172
8173 fi
8174 fi
8175 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8176 if test -n "$MANIFEST_TOOL"; then
8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8178 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8179 else
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 printf "%s\n" "no" >&6; }
8182 fi
8183
8184
8185 fi
8186 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8187 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8188 # Extract the first word of "mt", so it can be a program name with args.
8189 set dummy mt; ac_word=$2
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 printf %s "checking for $ac_word... " >&6; }
8192 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8193 then :
8194 printf %s "(cached) " >&6
8195 else $as_nop
8196 if test -n "$ac_ct_MANIFEST_TOOL"; then
8197 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8198 else
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8201 do
8202 IFS=$as_save_IFS
8203 case $as_dir in #(((
8204 '') as_dir=./ ;;
8205 */) ;;
8206 *) as_dir=$as_dir/ ;;
8207 esac
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8210 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8212 break 2
8213 fi
8214 done
8215 done
8216 IFS=$as_save_IFS
8217
8218 fi
8219 fi
8220 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8221 if test -n "$ac_ct_MANIFEST_TOOL"; then
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8223 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8224 else
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 printf "%s\n" "no" >&6; }
8227 fi
8228
8229 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8230 MANIFEST_TOOL=":"
8231 else
8232 case $cross_compiling:$ac_tool_warned in
8233 yes:)
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8237 esac
8238 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8239 fi
8240 else
8241 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8242 fi
8243
8244 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8246 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8247 if test ${lt_cv_path_mainfest_tool+y}
8248 then :
8249 printf %s "(cached) " >&6
8250 else $as_nop
8251 lt_cv_path_mainfest_tool=no
8252 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8253 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8254 cat conftest.err >&5
8255 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8256 lt_cv_path_mainfest_tool=yes
8257 fi
8258 rm -f conftest*
8259 fi
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8261 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8262 if test yes != "$lt_cv_path_mainfest_tool"; then
8263 MANIFEST_TOOL=:
8264 fi
8265
8266
8267
8268
8269
8270
8271 case $host_os in
8272 rhapsody* | darwin*)
8273 if test -n "$ac_tool_prefix"; then
8274 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8275 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 printf %s "checking for $ac_word... " >&6; }
8278 if test ${ac_cv_prog_DSYMUTIL+y}
8279 then :
8280 printf %s "(cached) " >&6
8281 else $as_nop
8282 if test -n "$DSYMUTIL"; then
8283 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8287 do
8288 IFS=$as_save_IFS
8289 case $as_dir in #(((
8290 '') as_dir=./ ;;
8291 */) ;;
8292 *) as_dir=$as_dir/ ;;
8293 esac
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8298 break 2
8299 fi
8300 done
8301 done
8302 IFS=$as_save_IFS
8303
8304 fi
8305 fi
8306 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8307 if test -n "$DSYMUTIL"; then
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8309 printf "%s\n" "$DSYMUTIL" >&6; }
8310 else
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 printf "%s\n" "no" >&6; }
8313 fi
8314
8315
8316 fi
8317 if test -z "$ac_cv_prog_DSYMUTIL"; then
8318 ac_ct_DSYMUTIL=$DSYMUTIL
8319 # Extract the first word of "dsymutil", so it can be a program name with args.
8320 set dummy dsymutil; ac_word=$2
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 printf %s "checking for $ac_word... " >&6; }
8323 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8324 then :
8325 printf %s "(cached) " >&6
8326 else $as_nop
8327 if test -n "$ac_ct_DSYMUTIL"; then
8328 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333 IFS=$as_save_IFS
8334 case $as_dir in #(((
8335 '') as_dir=./ ;;
8336 */) ;;
8337 *) as_dir=$as_dir/ ;;
8338 esac
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8343 break 2
8344 fi
8345 done
8346 done
8347 IFS=$as_save_IFS
8348
8349 fi
8350 fi
8351 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8352 if test -n "$ac_ct_DSYMUTIL"; then
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8354 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8355 else
8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 printf "%s\n" "no" >&6; }
8358 fi
8359
8360 if test "x$ac_ct_DSYMUTIL" = x; then
8361 DSYMUTIL=":"
8362 else
8363 case $cross_compiling:$ac_tool_warned in
8364 yes:)
8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8366 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8367 ac_tool_warned=yes ;;
8368 esac
8369 DSYMUTIL=$ac_ct_DSYMUTIL
8370 fi
8371 else
8372 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8373 fi
8374
8375 if test -n "$ac_tool_prefix"; then
8376 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8377 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 printf %s "checking for $ac_word... " >&6; }
8380 if test ${ac_cv_prog_NMEDIT+y}
8381 then :
8382 printf %s "(cached) " >&6
8383 else $as_nop
8384 if test -n "$NMEDIT"; then
8385 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390 IFS=$as_save_IFS
8391 case $as_dir in #(((
8392 '') as_dir=./ ;;
8393 */) ;;
8394 *) as_dir=$as_dir/ ;;
8395 esac
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8398 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8400 break 2
8401 fi
8402 done
8403 done
8404 IFS=$as_save_IFS
8405
8406 fi
8407 fi
8408 NMEDIT=$ac_cv_prog_NMEDIT
8409 if test -n "$NMEDIT"; then
8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8411 printf "%s\n" "$NMEDIT" >&6; }
8412 else
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 printf "%s\n" "no" >&6; }
8415 fi
8416
8417
8418 fi
8419 if test -z "$ac_cv_prog_NMEDIT"; then
8420 ac_ct_NMEDIT=$NMEDIT
8421 # Extract the first word of "nmedit", so it can be a program name with args.
8422 set dummy nmedit; ac_word=$2
8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 printf %s "checking for $ac_word... " >&6; }
8425 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8426 then :
8427 printf %s "(cached) " >&6
8428 else $as_nop
8429 if test -n "$ac_ct_NMEDIT"; then
8430 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8434 do
8435 IFS=$as_save_IFS
8436 case $as_dir in #(((
8437 '') as_dir=./ ;;
8438 */) ;;
8439 *) as_dir=$as_dir/ ;;
8440 esac
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8443 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8445 break 2
8446 fi
8447 done
8448 done
8449 IFS=$as_save_IFS
8450
8451 fi
8452 fi
8453 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8454 if test -n "$ac_ct_NMEDIT"; then
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8456 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8457 else
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 printf "%s\n" "no" >&6; }
8460 fi
8461
8462 if test "x$ac_ct_NMEDIT" = x; then
8463 NMEDIT=":"
8464 else
8465 case $cross_compiling:$ac_tool_warned in
8466 yes:)
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469 ac_tool_warned=yes ;;
8470 esac
8471 NMEDIT=$ac_ct_NMEDIT
8472 fi
8473 else
8474 NMEDIT="$ac_cv_prog_NMEDIT"
8475 fi
8476
8477 if test -n "$ac_tool_prefix"; then
8478 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8479 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 printf %s "checking for $ac_word... " >&6; }
8482 if test ${ac_cv_prog_LIPO+y}
8483 then :
8484 printf %s "(cached) " >&6
8485 else $as_nop
8486 if test -n "$LIPO"; then
8487 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492 IFS=$as_save_IFS
8493 case $as_dir in #(((
8494 '') as_dir=./ ;;
8495 */) ;;
8496 *) as_dir=$as_dir/ ;;
8497 esac
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504 done
8505 done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 LIPO=$ac_cv_prog_LIPO
8511 if test -n "$LIPO"; then
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8513 printf "%s\n" "$LIPO" >&6; }
8514 else
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 printf "%s\n" "no" >&6; }
8517 fi
8518
8519
8520 fi
8521 if test -z "$ac_cv_prog_LIPO"; then
8522 ac_ct_LIPO=$LIPO
8523 # Extract the first word of "lipo", so it can be a program name with args.
8524 set dummy lipo; ac_word=$2
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 printf %s "checking for $ac_word... " >&6; }
8527 if test ${ac_cv_prog_ac_ct_LIPO+y}
8528 then :
8529 printf %s "(cached) " >&6
8530 else $as_nop
8531 if test -n "$ac_ct_LIPO"; then
8532 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8533 else
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8536 do
8537 IFS=$as_save_IFS
8538 case $as_dir in #(((
8539 '') as_dir=./ ;;
8540 */) ;;
8541 *) as_dir=$as_dir/ ;;
8542 esac
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8545 ac_cv_prog_ac_ct_LIPO="lipo"
8546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8547 break 2
8548 fi
8549 done
8550 done
8551 IFS=$as_save_IFS
8552
8553 fi
8554 fi
8555 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8556 if test -n "$ac_ct_LIPO"; then
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8558 printf "%s\n" "$ac_ct_LIPO" >&6; }
8559 else
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 printf "%s\n" "no" >&6; }
8562 fi
8563
8564 if test "x$ac_ct_LIPO" = x; then
8565 LIPO=":"
8566 else
8567 case $cross_compiling:$ac_tool_warned in
8568 yes:)
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8570 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8571 ac_tool_warned=yes ;;
8572 esac
8573 LIPO=$ac_ct_LIPO
8574 fi
8575 else
8576 LIPO="$ac_cv_prog_LIPO"
8577 fi
8578
8579 if test -n "$ac_tool_prefix"; then
8580 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}otool; ac_word=$2
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 printf %s "checking for $ac_word... " >&6; }
8584 if test ${ac_cv_prog_OTOOL+y}
8585 then :
8586 printf %s "(cached) " >&6
8587 else $as_nop
8588 if test -n "$OTOOL"; then
8589 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594 IFS=$as_save_IFS
8595 case $as_dir in #(((
8596 '') as_dir=./ ;;
8597 */) ;;
8598 *) as_dir=$as_dir/ ;;
8599 esac
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8602 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8604 break 2
8605 fi
8606 done
8607 done
8608 IFS=$as_save_IFS
8609
8610 fi
8611 fi
8612 OTOOL=$ac_cv_prog_OTOOL
8613 if test -n "$OTOOL"; then
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8615 printf "%s\n" "$OTOOL" >&6; }
8616 else
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 printf "%s\n" "no" >&6; }
8619 fi
8620
8621
8622 fi
8623 if test -z "$ac_cv_prog_OTOOL"; then
8624 ac_ct_OTOOL=$OTOOL
8625 # Extract the first word of "otool", so it can be a program name with args.
8626 set dummy otool; ac_word=$2
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 printf %s "checking for $ac_word... " >&6; }
8629 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8630 then :
8631 printf %s "(cached) " >&6
8632 else $as_nop
8633 if test -n "$ac_ct_OTOOL"; then
8634 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8635 else
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8638 do
8639 IFS=$as_save_IFS
8640 case $as_dir in #(((
8641 '') as_dir=./ ;;
8642 */) ;;
8643 *) as_dir=$as_dir/ ;;
8644 esac
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8647 ac_cv_prog_ac_ct_OTOOL="otool"
8648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8649 break 2
8650 fi
8651 done
8652 done
8653 IFS=$as_save_IFS
8654
8655 fi
8656 fi
8657 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8658 if test -n "$ac_ct_OTOOL"; then
8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8660 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8661 else
8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 printf "%s\n" "no" >&6; }
8664 fi
8665
8666 if test "x$ac_ct_OTOOL" = x; then
8667 OTOOL=":"
8668 else
8669 case $cross_compiling:$ac_tool_warned in
8670 yes:)
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8674 esac
8675 OTOOL=$ac_ct_OTOOL
8676 fi
8677 else
8678 OTOOL="$ac_cv_prog_OTOOL"
8679 fi
8680
8681 if test -n "$ac_tool_prefix"; then
8682 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8683 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 printf %s "checking for $ac_word... " >&6; }
8686 if test ${ac_cv_prog_OTOOL64+y}
8687 then :
8688 printf %s "(cached) " >&6
8689 else $as_nop
8690 if test -n "$OTOOL64"; then
8691 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8692 else
8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 for as_dir in $PATH
8695 do
8696 IFS=$as_save_IFS
8697 case $as_dir in #(((
8698 '') as_dir=./ ;;
8699 */) ;;
8700 *) as_dir=$as_dir/ ;;
8701 esac
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8704 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8706 break 2
8707 fi
8708 done
8709 done
8710 IFS=$as_save_IFS
8711
8712 fi
8713 fi
8714 OTOOL64=$ac_cv_prog_OTOOL64
8715 if test -n "$OTOOL64"; then
8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8717 printf "%s\n" "$OTOOL64" >&6; }
8718 else
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 printf "%s\n" "no" >&6; }
8721 fi
8722
8723
8724 fi
8725 if test -z "$ac_cv_prog_OTOOL64"; then
8726 ac_ct_OTOOL64=$OTOOL64
8727 # Extract the first word of "otool64", so it can be a program name with args.
8728 set dummy otool64; ac_word=$2
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 printf %s "checking for $ac_word... " >&6; }
8731 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8732 then :
8733 printf %s "(cached) " >&6
8734 else $as_nop
8735 if test -n "$ac_ct_OTOOL64"; then
8736 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8737 else
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8740 do
8741 IFS=$as_save_IFS
8742 case $as_dir in #(((
8743 '') as_dir=./ ;;
8744 */) ;;
8745 *) as_dir=$as_dir/ ;;
8746 esac
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8749 ac_cv_prog_ac_ct_OTOOL64="otool64"
8750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8751 break 2
8752 fi
8753 done
8754 done
8755 IFS=$as_save_IFS
8756
8757 fi
8758 fi
8759 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8760 if test -n "$ac_ct_OTOOL64"; then
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8762 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8763 else
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 printf "%s\n" "no" >&6; }
8766 fi
8767
8768 if test "x$ac_ct_OTOOL64" = x; then
8769 OTOOL64=":"
8770 else
8771 case $cross_compiling:$ac_tool_warned in
8772 yes:)
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8775 ac_tool_warned=yes ;;
8776 esac
8777 OTOOL64=$ac_ct_OTOOL64
8778 fi
8779 else
8780 OTOOL64="$ac_cv_prog_OTOOL64"
8781 fi
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8810 printf %s "checking for -single_module linker flag... " >&6; }
8811 if test ${lt_cv_apple_cc_single_mod+y}
8812 then :
8813 printf %s "(cached) " >&6
8814 else $as_nop
8815 lt_cv_apple_cc_single_mod=no
8816 if test -z "$LT_MULTI_MODULE"; then
8817 # By default we will add the -single_module flag. You can override
8818 # by either setting the environment variable LT_MULTI_MODULE
8819 # non-empty at configure time, or by adding -multi_module to the
8820 # link flags.
8821 rm -rf libconftest.dylib*
8822 echo "int foo(void){return 1;}" > conftest.c
8823 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8824 -dynamiclib -Wl,-single_module conftest.c" >&5
8825 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8826 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8827 _lt_result=$?
8828 # If there is a non-empty error log, and "single_module"
8829 # appears in it, assume the flag caused a linker warning
8830 if test -s conftest.err && $GREP single_module conftest.err; then
8831 cat conftest.err >&5
8832 # Otherwise, if the output was created with a 0 exit code from
8833 # the compiler, it worked.
8834 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8835 lt_cv_apple_cc_single_mod=yes
8836 else
8837 cat conftest.err >&5
8838 fi
8839 rm -rf libconftest.dylib*
8840 rm -f conftest.*
8841 fi
8842 fi
8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8844 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8845
8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8847 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8848 if test ${lt_cv_ld_exported_symbols_list+y}
8849 then :
8850 printf %s "(cached) " >&6
8851 else $as_nop
8852 lt_cv_ld_exported_symbols_list=no
8853 save_LDFLAGS=$LDFLAGS
8854 echo "_main" > conftest.sym
8855 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858
8859 int
8860 main (void)
8861 {
8862
8863 ;
8864 return 0;
8865 }
8866 _ACEOF
8867 if ac_fn_c_try_link "$LINENO"
8868 then :
8869 lt_cv_ld_exported_symbols_list=yes
8870 else $as_nop
8871 lt_cv_ld_exported_symbols_list=no
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8874 conftest$ac_exeext conftest.$ac_ext
8875 LDFLAGS=$save_LDFLAGS
8876
8877 fi
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8879 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8880
8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8882 printf %s "checking for -force_load linker flag... " >&6; }
8883 if test ${lt_cv_ld_force_load+y}
8884 then :
8885 printf %s "(cached) " >&6
8886 else $as_nop
8887 lt_cv_ld_force_load=no
8888 cat > conftest.c << _LT_EOF
8889 int forced_loaded() { return 2;}
8890 _LT_EOF
8891 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8892 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8893 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8894 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8895 echo "$RANLIB libconftest.a" >&5
8896 $RANLIB libconftest.a 2>&5
8897 cat > conftest.c << _LT_EOF
8898 int main() { return 0;}
8899 _LT_EOF
8900 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8901 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8902 _lt_result=$?
8903 if test -s conftest.err && $GREP force_load conftest.err; then
8904 cat conftest.err >&5
8905 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8906 lt_cv_ld_force_load=yes
8907 else
8908 cat conftest.err >&5
8909 fi
8910 rm -f conftest.err libconftest.a conftest conftest.c
8911 rm -rf conftest.dSYM
8912
8913 fi
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8915 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8916 case $host_os in
8917 rhapsody* | darwin1.[012])
8918 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8919 darwin1.*)
8920 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8921 darwin*)
8922 case $MACOSX_DEPLOYMENT_TARGET,$host in
8923 10.[012],*|,*powerpc*-darwin[5-8]*)
8924 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8925 *)
8926 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8927 esac
8928 ;;
8929 esac
8930 if test yes = "$lt_cv_apple_cc_single_mod"; then
8931 _lt_dar_single_mod='$single_module'
8932 fi
8933 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8934 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8935 else
8936 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8937 fi
8938 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8939 _lt_dsymutil='~$DSYMUTIL $lib || :'
8940 else
8941 _lt_dsymutil=
8942 fi
8943 ;;
8944 esac
8945
8946 # func_munge_path_list VARIABLE PATH
8947 # -----------------------------------
8948 # VARIABLE is name of variable containing _space_ separated list of
8949 # directories to be munged by the contents of PATH, which is string
8950 # having a format:
8951 # "DIR[:DIR]:"
8952 # string "DIR[ DIR]" will be prepended to VARIABLE
8953 # ":DIR[:DIR]"
8954 # string "DIR[ DIR]" will be appended to VARIABLE
8955 # "DIRP[:DIRP]::[DIRA:]DIRA"
8956 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8957 # "DIRA[ DIRA]" will be appended to VARIABLE
8958 # "DIR[:DIR]"
8959 # VARIABLE will be replaced by "DIR[ DIR]"
8960 func_munge_path_list ()
8961 {
8962 case x$2 in
8963 x)
8964 ;;
8965 *:)
8966 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8967 ;;
8968 x:*)
8969 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8970 ;;
8971 *::*)
8972 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8973 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8974 ;;
8975 *)
8976 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8977 ;;
8978 esac
8979 }
8980
8981 ac_header= ac_cache=
8982 for ac_item in $ac_header_c_list
8983 do
8984 if test $ac_cache; then
8985 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8986 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8987 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8988 fi
8989 ac_header= ac_cache=
8990 elif test $ac_header; then
8991 ac_cache=$ac_item
8992 else
8993 ac_header=$ac_item
8994 fi
8995 done
8996
8997
8998
8999
9000
9001
9002
9003
9004 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9005 then :
9006
9007 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9008
9009 fi
9010 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9011 "
9012 if test "x$ac_cv_header_dlfcn_h" = xyes
9013 then :
9014 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9015
9016 fi
9017
9018
9019
9020
9021
9022 # Set options
9023
9024
9025
9026 enable_dlopen=no
9027
9028
9029 enable_win32_dll=no
9030
9031
9032 # Check whether --enable-shared was given.
9033 if test ${enable_shared+y}
9034 then :
9035 enableval=$enable_shared; p=${PACKAGE-default}
9036 case $enableval in
9037 yes) enable_shared=yes ;;
9038 no) enable_shared=no ;;
9039 *)
9040 enable_shared=no
9041 # Look at the argument we got. We use all the common list separators.
9042 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9043 for pkg in $enableval; do
9044 IFS=$lt_save_ifs
9045 if test "X$pkg" = "X$p"; then
9046 enable_shared=yes
9047 fi
9048 done
9049 IFS=$lt_save_ifs
9050 ;;
9051 esac
9052 else $as_nop
9053 enable_shared=yes
9054 fi
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064 # Check whether --enable-static was given.
9065 if test ${enable_static+y}
9066 then :
9067 enableval=$enable_static; p=${PACKAGE-default}
9068 case $enableval in
9069 yes) enable_static=yes ;;
9070 no) enable_static=no ;;
9071 *)
9072 enable_static=no
9073 # Look at the argument we got. We use all the common list separators.
9074 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9075 for pkg in $enableval; do
9076 IFS=$lt_save_ifs
9077 if test "X$pkg" = "X$p"; then
9078 enable_static=yes
9079 fi
9080 done
9081 IFS=$lt_save_ifs
9082 ;;
9083 esac
9084 else $as_nop
9085 enable_static=yes
9086 fi
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097 # Check whether --with-pic was given.
9098 if test ${with_pic+y}
9099 then :
9100 withval=$with_pic; lt_p=${PACKAGE-default}
9101 case $withval in
9102 yes|no) pic_mode=$withval ;;
9103 *)
9104 pic_mode=default
9105 # Look at the argument we got. We use all the common list separators.
9106 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9107 for lt_pkg in $withval; do
9108 IFS=$lt_save_ifs
9109 if test "X$lt_pkg" = "X$lt_p"; then
9110 pic_mode=yes
9111 fi
9112 done
9113 IFS=$lt_save_ifs
9114 ;;
9115 esac
9116 else $as_nop
9117 pic_mode=default
9118 fi
9119
9120
9121
9122
9123
9124
9125
9126
9127 # Check whether --enable-fast-install was given.
9128 if test ${enable_fast_install+y}
9129 then :
9130 enableval=$enable_fast_install; p=${PACKAGE-default}
9131 case $enableval in
9132 yes) enable_fast_install=yes ;;
9133 no) enable_fast_install=no ;;
9134 *)
9135 enable_fast_install=no
9136 # Look at the argument we got. We use all the common list separators.
9137 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9138 for pkg in $enableval; do
9139 IFS=$lt_save_ifs
9140 if test "X$pkg" = "X$p"; then
9141 enable_fast_install=yes
9142 fi
9143 done
9144 IFS=$lt_save_ifs
9145 ;;
9146 esac
9147 else $as_nop
9148 enable_fast_install=yes
9149 fi
9150
9151
9152
9153
9154
9155
9156
9157
9158 shared_archive_member_spec=
9159 case $host,$enable_shared in
9160 power*-*-aix[5-9]*,yes)
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9162 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9163
9164 # Check whether --with-aix-soname was given.
9165 if test ${with_aix_soname+y}
9166 then :
9167 withval=$with_aix_soname; case $withval in
9168 aix|svr4|both)
9169 ;;
9170 *)
9171 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9172 ;;
9173 esac
9174 lt_cv_with_aix_soname=$with_aix_soname
9175 else $as_nop
9176 if test ${lt_cv_with_aix_soname+y}
9177 then :
9178 printf %s "(cached) " >&6
9179 else $as_nop
9180 lt_cv_with_aix_soname=aix
9181 fi
9182
9183 with_aix_soname=$lt_cv_with_aix_soname
9184 fi
9185
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9187 printf "%s\n" "$with_aix_soname" >&6; }
9188 if test aix != "$with_aix_soname"; then
9189 # For the AIX way of multilib, we name the shared archive member
9190 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9191 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9192 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9193 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9194 if test 64 = "${OBJECT_MODE-32}"; then
9195 shared_archive_member_spec=shr_64
9196 else
9197 shared_archive_member_spec=shr
9198 fi
9199 fi
9200 ;;
9201 *)
9202 with_aix_soname=aix
9203 ;;
9204 esac
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215 # This can be used to rebuild libtool when needed
9216 LIBTOOL_DEPS=$ltmain
9217
9218 # Always use our own libtool.
9219 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250 test -z "$LN_S" && LN_S="ln -s"
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265 if test -n "${ZSH_VERSION+set}"; then
9266 setopt NO_GLOB_SUBST
9267 fi
9268
9269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9270 printf %s "checking for objdir... " >&6; }
9271 if test ${lt_cv_objdir+y}
9272 then :
9273 printf %s "(cached) " >&6
9274 else $as_nop
9275 rm -f .libs 2>/dev/null
9276 mkdir .libs 2>/dev/null
9277 if test -d .libs; then
9278 lt_cv_objdir=.libs
9279 else
9280 # MS-DOS does not allow filenames that begin with a dot.
9281 lt_cv_objdir=_libs
9282 fi
9283 rmdir .libs 2>/dev/null
9284 fi
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9286 printf "%s\n" "$lt_cv_objdir" >&6; }
9287 objdir=$lt_cv_objdir
9288
9289
9290
9291
9292
9293 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9294
9295
9296
9297
9298 case $host_os in
9299 aix3*)
9300 # AIX sometimes has problems with the GCC collect2 program. For some
9301 # reason, if we set the COLLECT_NAMES environment variable, the problems
9302 # vanish in a puff of smoke.
9303 if test set != "${COLLECT_NAMES+set}"; then
9304 COLLECT_NAMES=
9305 export COLLECT_NAMES
9306 fi
9307 ;;
9308 esac
9309
9310 # Global variables:
9311 ofile=libtool
9312 can_build_shared=yes
9313
9314 # All known linkers require a '.a' archive for static linking (except MSVC and
9315 # ICC, which need '.lib').
9316 libext=a
9317
9318 with_gnu_ld=$lt_cv_prog_gnu_ld
9319
9320 old_CC=$CC
9321 old_CFLAGS=$CFLAGS
9322
9323 # Set sane defaults for various variables
9324 test -z "$CC" && CC=cc
9325 test -z "$LTCC" && LTCC=$CC
9326 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9327 test -z "$LD" && LD=ld
9328 test -z "$ac_objext" && ac_objext=o
9329
9330 func_cc_basename $compiler
9331 cc_basename=$func_cc_basename_result
9332
9333
9334 # Only perform the check for file, if the check method requires it
9335 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9336 case $deplibs_check_method in
9337 file_magic*)
9338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9340 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9341 if test ${lt_cv_path_MAGIC_CMD+y}
9342 then :
9343 printf %s "(cached) " >&6
9344 else $as_nop
9345 case $MAGIC_CMD in
9346 [\\/*] | ?:[\\/]*)
9347 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9348 ;;
9349 *)
9350 lt_save_MAGIC_CMD=$MAGIC_CMD
9351 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9353 for ac_dir in $ac_dummy; do
9354 IFS=$lt_save_ifs
9355 test -z "$ac_dir" && ac_dir=.
9356 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9357 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9358 if test -n "$file_magic_test_file"; then
9359 case $deplibs_check_method in
9360 "file_magic "*)
9361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9362 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9364 $EGREP "$file_magic_regex" > /dev/null; then
9365 :
9366 else
9367 cat <<_LT_EOF 1>&2
9368
9369 *** Warning: the command libtool uses to detect shared libraries,
9370 *** $file_magic_cmd, produces output that libtool cannot recognize.
9371 *** The result is that libtool may fail to recognize shared libraries
9372 *** as such. This will affect the creation of libtool libraries that
9373 *** depend on shared libraries, but programs linked with such libtool
9374 *** libraries will work regardless of this problem. Nevertheless, you
9375 *** may want to report the problem to your system manager and/or to
9376 *** [email protected]
9377
9378 _LT_EOF
9379 fi ;;
9380 esac
9381 fi
9382 break
9383 fi
9384 done
9385 IFS=$lt_save_ifs
9386 MAGIC_CMD=$lt_save_MAGIC_CMD
9387 ;;
9388 esac
9389 fi
9390
9391 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9392 if test -n "$MAGIC_CMD"; then
9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9394 printf "%s\n" "$MAGIC_CMD" >&6; }
9395 else
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 printf "%s\n" "no" >&6; }
9398 fi
9399
9400
9401
9402
9403
9404 if test -z "$lt_cv_path_MAGIC_CMD"; then
9405 if test -n "$ac_tool_prefix"; then
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9407 printf %s "checking for file... " >&6; }
9408 if test ${lt_cv_path_MAGIC_CMD+y}
9409 then :
9410 printf %s "(cached) " >&6
9411 else $as_nop
9412 case $MAGIC_CMD in
9413 [\\/*] | ?:[\\/]*)
9414 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9415 ;;
9416 *)
9417 lt_save_MAGIC_CMD=$MAGIC_CMD
9418 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9419 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9420 for ac_dir in $ac_dummy; do
9421 IFS=$lt_save_ifs
9422 test -z "$ac_dir" && ac_dir=.
9423 if test -f "$ac_dir/file"; then
9424 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9425 if test -n "$file_magic_test_file"; then
9426 case $deplibs_check_method in
9427 "file_magic "*)
9428 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9429 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9430 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9431 $EGREP "$file_magic_regex" > /dev/null; then
9432 :
9433 else
9434 cat <<_LT_EOF 1>&2
9435
9436 *** Warning: the command libtool uses to detect shared libraries,
9437 *** $file_magic_cmd, produces output that libtool cannot recognize.
9438 *** The result is that libtool may fail to recognize shared libraries
9439 *** as such. This will affect the creation of libtool libraries that
9440 *** depend on shared libraries, but programs linked with such libtool
9441 *** libraries will work regardless of this problem. Nevertheless, you
9442 *** may want to report the problem to your system manager and/or to
9443 *** [email protected]
9444
9445 _LT_EOF
9446 fi ;;
9447 esac
9448 fi
9449 break
9450 fi
9451 done
9452 IFS=$lt_save_ifs
9453 MAGIC_CMD=$lt_save_MAGIC_CMD
9454 ;;
9455 esac
9456 fi
9457
9458 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9459 if test -n "$MAGIC_CMD"; then
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9461 printf "%s\n" "$MAGIC_CMD" >&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
9468 else
9469 MAGIC_CMD=:
9470 fi
9471 fi
9472
9473 fi
9474 ;;
9475 esac
9476
9477 # Use C for the default configuration in the libtool script
9478
9479 lt_save_CC=$CC
9480 ac_ext=c
9481 ac_cpp='$CPP $CPPFLAGS'
9482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9485
9486
9487 # Source file extension for C test sources.
9488 ac_ext=c
9489
9490 # Object file extension for compiled C test sources.
9491 objext=o
9492 objext=$objext
9493
9494 # Code to be used in simple compile tests
9495 lt_simple_compile_test_code="int some_variable = 0;"
9496
9497 # Code to be used in simple link tests
9498 lt_simple_link_test_code='int main(){return(0);}'
9499
9500
9501
9502
9503
9504
9505
9506 # If no C compiler was specified, use CC.
9507 LTCC=${LTCC-"$CC"}
9508
9509 # If no C compiler flags were specified, use CFLAGS.
9510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9511
9512 # Allow CC to be a program name with arguments.
9513 compiler=$CC
9514
9515 # Save the default compiler, since it gets overwritten when the other
9516 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9517 compiler_DEFAULT=$CC
9518
9519 # save warnings/boilerplate of simple test code
9520 ac_outfile=conftest.$ac_objext
9521 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9522 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9523 _lt_compiler_boilerplate=`cat conftest.err`
9524 $RM conftest*
9525
9526 ac_outfile=conftest.$ac_objext
9527 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9528 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9529 _lt_linker_boilerplate=`cat conftest.err`
9530 $RM -r conftest*
9531
9532
9533 ## CAVEAT EMPTOR:
9534 ## There is no encapsulation within the following macros, do not change
9535 ## the running order or otherwise move them around unless you know exactly
9536 ## what you are doing...
9537 if test -n "$compiler"; then
9538
9539 lt_prog_compiler_no_builtin_flag=
9540
9541 if test yes = "$GCC"; then
9542 case $cc_basename in
9543 nvcc*)
9544 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9545 *)
9546 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9547 esac
9548
9549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9550 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9551 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9552 then :
9553 printf %s "(cached) " >&6
9554 else $as_nop
9555 lt_cv_prog_compiler_rtti_exceptions=no
9556 ac_outfile=conftest.$ac_objext
9557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9558 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9559 # Insert the option either (1) after the last *FLAGS variable, or
9560 # (2) before a word containing "conftest.", or (3) at the end.
9561 # Note that $ac_compile itself does not contain backslashes and begins
9562 # with a dollar sign (not a hyphen), so the echo should work correctly.
9563 # The option is referenced via a variable to avoid confusing sed.
9564 lt_compile=`echo "$ac_compile" | $SED \
9565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9567 -e 's:$: $lt_compiler_flag:'`
9568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9569 (eval "$lt_compile" 2>conftest.err)
9570 ac_status=$?
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 if (exit $ac_status) && test -s "$ac_outfile"; then
9574 # The compiler can only warn and ignore the option if not recognized
9575 # So say no if there are warnings other than the usual output.
9576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9579 lt_cv_prog_compiler_rtti_exceptions=yes
9580 fi
9581 fi
9582 $RM conftest*
9583
9584 fi
9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9586 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9587
9588 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9589 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9590 else
9591 :
9592 fi
9593
9594 fi
9595
9596
9597
9598
9599
9600
9601 lt_prog_compiler_wl=
9602 lt_prog_compiler_pic=
9603 lt_prog_compiler_static=
9604
9605
9606 if test yes = "$GCC"; then
9607 lt_prog_compiler_wl='-Wl,'
9608 lt_prog_compiler_static='-static'
9609
9610 case $host_os in
9611 aix*)
9612 # All AIX code is PIC.
9613 if test ia64 = "$host_cpu"; then
9614 # AIX 5 now supports IA64 processor
9615 lt_prog_compiler_static='-Bstatic'
9616 fi
9617 lt_prog_compiler_pic='-fPIC'
9618 ;;
9619
9620 amigaos*)
9621 case $host_cpu in
9622 powerpc)
9623 # see comment about AmigaOS4 .so support
9624 lt_prog_compiler_pic='-fPIC'
9625 ;;
9626 m68k)
9627 # FIXME: we need at least 68020 code to build shared libraries, but
9628 # adding the '-m68020' flag to GCC prevents building anything better,
9629 # like '-m68040'.
9630 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9631 ;;
9632 esac
9633 ;;
9634
9635 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9636 # PIC is the default for these OSes.
9637 ;;
9638
9639 mingw* | cygwin* | pw32* | os2* | cegcc*)
9640 # This hack is so that the source file can tell whether it is being
9641 # built for inclusion in a dll (and should export symbols for example).
9642 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9643 # (--disable-auto-import) libraries
9644 lt_prog_compiler_pic='-DDLL_EXPORT'
9645 case $host_os in
9646 os2*)
9647 lt_prog_compiler_static='$wl-static'
9648 ;;
9649 esac
9650 ;;
9651
9652 darwin* | rhapsody*)
9653 # PIC is the default on this platform
9654 # Common symbols not allowed in MH_DYLIB files
9655 lt_prog_compiler_pic='-fno-common'
9656 ;;
9657
9658 haiku*)
9659 # PIC is the default for Haiku.
9660 # The "-static" flag exists, but is broken.
9661 lt_prog_compiler_static=
9662 ;;
9663
9664 hpux*)
9665 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9666 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9667 # sets the default TLS model and affects inlining.
9668 case $host_cpu in
9669 hppa*64*)
9670 # +Z the default
9671 ;;
9672 *)
9673 lt_prog_compiler_pic='-fPIC'
9674 ;;
9675 esac
9676 ;;
9677
9678 interix[3-9]*)
9679 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9680 # Instead, we relocate shared libraries at runtime.
9681 ;;
9682
9683 msdosdjgpp*)
9684 # Just because we use GCC doesn't mean we suddenly get shared libraries
9685 # on systems that don't support them.
9686 lt_prog_compiler_can_build_shared=no
9687 enable_shared=no
9688 ;;
9689
9690 *nto* | *qnx*)
9691 # QNX uses GNU C++, but need to define -shared option too, otherwise
9692 # it will coredump.
9693 lt_prog_compiler_pic='-fPIC -shared'
9694 ;;
9695
9696 sysv4*MP*)
9697 if test -d /usr/nec; then
9698 lt_prog_compiler_pic=-Kconform_pic
9699 fi
9700 ;;
9701
9702 *)
9703 lt_prog_compiler_pic='-fPIC'
9704 ;;
9705 esac
9706
9707 case $cc_basename in
9708 nvcc*) # Cuda Compiler Driver 2.2
9709 lt_prog_compiler_wl='-Xlinker '
9710 if test -n "$lt_prog_compiler_pic"; then
9711 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9712 fi
9713 ;;
9714 esac
9715 else
9716 # PORTME Check for flag to pass linker flags through the system compiler.
9717 case $host_os in
9718 aix*)
9719 lt_prog_compiler_wl='-Wl,'
9720 if test ia64 = "$host_cpu"; then
9721 # AIX 5 now supports IA64 processor
9722 lt_prog_compiler_static='-Bstatic'
9723 else
9724 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9725 fi
9726 ;;
9727
9728 darwin* | rhapsody*)
9729 # PIC is the default on this platform
9730 # Common symbols not allowed in MH_DYLIB files
9731 lt_prog_compiler_pic='-fno-common'
9732 case $cc_basename in
9733 nagfor*)
9734 # NAG Fortran compiler
9735 lt_prog_compiler_wl='-Wl,-Wl,,'
9736 lt_prog_compiler_pic='-PIC'
9737 lt_prog_compiler_static='-Bstatic'
9738 ;;
9739 esac
9740 ;;
9741
9742 mingw* | cygwin* | pw32* | os2* | cegcc*)
9743 # This hack is so that the source file can tell whether it is being
9744 # built for inclusion in a dll (and should export symbols for example).
9745 lt_prog_compiler_pic='-DDLL_EXPORT'
9746 case $host_os in
9747 os2*)
9748 lt_prog_compiler_static='$wl-static'
9749 ;;
9750 esac
9751 ;;
9752
9753 hpux9* | hpux10* | hpux11*)
9754 lt_prog_compiler_wl='-Wl,'
9755 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9756 # not for PA HP-UX.
9757 case $host_cpu in
9758 hppa*64*|ia64*)
9759 # +Z the default
9760 ;;
9761 *)
9762 lt_prog_compiler_pic='+Z'
9763 ;;
9764 esac
9765 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9766 lt_prog_compiler_static='$wl-a ${wl}archive'
9767 ;;
9768
9769 irix5* | irix6* | nonstopux*)
9770 lt_prog_compiler_wl='-Wl,'
9771 # PIC (with -KPIC) is the default.
9772 lt_prog_compiler_static='-non_shared'
9773 ;;
9774
9775 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9776 case $cc_basename in
9777 # old Intel for x86_64, which still supported -KPIC.
9778 ecc*)
9779 lt_prog_compiler_wl='-Wl,'
9780 lt_prog_compiler_pic='-KPIC'
9781 lt_prog_compiler_static='-static'
9782 ;;
9783 # flang / f18. f95 an alias for gfortran or flang on Debian
9784 flang* | f18* | f95*)
9785 lt_prog_compiler_wl='-Wl,'
9786 lt_prog_compiler_pic='-fPIC'
9787 lt_prog_compiler_static='-static'
9788 ;;
9789 # icc used to be incompatible with GCC.
9790 # ICC 10 doesn't accept -KPIC any more.
9791 icc* | ifort*)
9792 lt_prog_compiler_wl='-Wl,'
9793 lt_prog_compiler_pic='-fPIC'
9794 lt_prog_compiler_static='-static'
9795 ;;
9796 # Lahey Fortran 8.1.
9797 lf95*)
9798 lt_prog_compiler_wl='-Wl,'
9799 lt_prog_compiler_pic='--shared'
9800 lt_prog_compiler_static='--static'
9801 ;;
9802 nagfor*)
9803 # NAG Fortran compiler
9804 lt_prog_compiler_wl='-Wl,-Wl,,'
9805 lt_prog_compiler_pic='-PIC'
9806 lt_prog_compiler_static='-Bstatic'
9807 ;;
9808 tcc*)
9809 # Fabrice Bellard et al's Tiny C Compiler
9810 lt_prog_compiler_wl='-Wl,'
9811 lt_prog_compiler_pic='-fPIC'
9812 lt_prog_compiler_static='-static'
9813 ;;
9814 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9815 # Portland Group compilers (*not* the Pentium gcc compiler,
9816 # which looks to be a dead project)
9817 lt_prog_compiler_wl='-Wl,'
9818 lt_prog_compiler_pic='-fpic'
9819 lt_prog_compiler_static='-Bstatic'
9820 ;;
9821 ccc*)
9822 lt_prog_compiler_wl='-Wl,'
9823 # All Alpha code is PIC.
9824 lt_prog_compiler_static='-non_shared'
9825 ;;
9826 xl* | bgxl* | bgf* | mpixl*)
9827 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9828 lt_prog_compiler_wl='-Wl,'
9829 lt_prog_compiler_pic='-qpic'
9830 lt_prog_compiler_static='-qstaticlink'
9831 ;;
9832 *)
9833 case `$CC -V 2>&1 | $SED 5q` in
9834 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9835 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9836 lt_prog_compiler_pic='-KPIC'
9837 lt_prog_compiler_static='-Bstatic'
9838 lt_prog_compiler_wl=''
9839 ;;
9840 *Sun\ F* | *Sun*Fortran*)
9841 lt_prog_compiler_pic='-KPIC'
9842 lt_prog_compiler_static='-Bstatic'
9843 lt_prog_compiler_wl='-Qoption ld '
9844 ;;
9845 *Sun\ C*)
9846 # Sun C 5.9
9847 lt_prog_compiler_pic='-KPIC'
9848 lt_prog_compiler_static='-Bstatic'
9849 lt_prog_compiler_wl='-Wl,'
9850 ;;
9851 *Intel*\ [CF]*Compiler*)
9852 lt_prog_compiler_wl='-Wl,'
9853 lt_prog_compiler_pic='-fPIC'
9854 lt_prog_compiler_static='-static'
9855 ;;
9856 *Portland\ Group*)
9857 lt_prog_compiler_wl='-Wl,'
9858 lt_prog_compiler_pic='-fpic'
9859 lt_prog_compiler_static='-Bstatic'
9860 ;;
9861 esac
9862 ;;
9863 esac
9864 ;;
9865
9866 newsos6)
9867 lt_prog_compiler_pic='-KPIC'
9868 lt_prog_compiler_static='-Bstatic'
9869 ;;
9870
9871 *nto* | *qnx*)
9872 # QNX uses GNU C++, but need to define -shared option too, otherwise
9873 # it will coredump.
9874 lt_prog_compiler_pic='-fPIC -shared'
9875 ;;
9876
9877 osf3* | osf4* | osf5*)
9878 lt_prog_compiler_wl='-Wl,'
9879 # All OSF/1 code is PIC.
9880 lt_prog_compiler_static='-non_shared'
9881 ;;
9882
9883 rdos*)
9884 lt_prog_compiler_static='-non_shared'
9885 ;;
9886
9887 solaris*)
9888 lt_prog_compiler_pic='-KPIC'
9889 lt_prog_compiler_static='-Bstatic'
9890 case $cc_basename in
9891 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9892 lt_prog_compiler_wl='-Qoption ld ';;
9893 *)
9894 lt_prog_compiler_wl='-Wl,';;
9895 esac
9896 ;;
9897
9898 sunos4*)
9899 lt_prog_compiler_wl='-Qoption ld '
9900 lt_prog_compiler_pic='-PIC'
9901 lt_prog_compiler_static='-Bstatic'
9902 ;;
9903
9904 sysv4 | sysv4.2uw2* | sysv4.3*)
9905 lt_prog_compiler_wl='-Wl,'
9906 lt_prog_compiler_pic='-KPIC'
9907 lt_prog_compiler_static='-Bstatic'
9908 ;;
9909
9910 sysv4*MP*)
9911 if test -d /usr/nec; then
9912 lt_prog_compiler_pic='-Kconform_pic'
9913 lt_prog_compiler_static='-Bstatic'
9914 fi
9915 ;;
9916
9917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9918 lt_prog_compiler_wl='-Wl,'
9919 lt_prog_compiler_pic='-KPIC'
9920 lt_prog_compiler_static='-Bstatic'
9921 ;;
9922
9923 unicos*)
9924 lt_prog_compiler_wl='-Wl,'
9925 lt_prog_compiler_can_build_shared=no
9926 ;;
9927
9928 uts4*)
9929 lt_prog_compiler_pic='-pic'
9930 lt_prog_compiler_static='-Bstatic'
9931 ;;
9932
9933 *)
9934 lt_prog_compiler_can_build_shared=no
9935 ;;
9936 esac
9937 fi
9938
9939 case $host_os in
9940 # For platforms that do not support PIC, -DPIC is meaningless:
9941 *djgpp*)
9942 lt_prog_compiler_pic=
9943 ;;
9944 *)
9945 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9946 ;;
9947 esac
9948
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9950 printf %s "checking for $compiler option to produce PIC... " >&6; }
9951 if test ${lt_cv_prog_compiler_pic+y}
9952 then :
9953 printf %s "(cached) " >&6
9954 else $as_nop
9955 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9956 fi
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9958 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9959 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9960
9961 #
9962 # Check to make sure the PIC flag actually works.
9963 #
9964 if test -n "$lt_prog_compiler_pic"; then
9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9966 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9967 if test ${lt_cv_prog_compiler_pic_works+y}
9968 then :
9969 printf %s "(cached) " >&6
9970 else $as_nop
9971 lt_cv_prog_compiler_pic_works=no
9972 ac_outfile=conftest.$ac_objext
9973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9974 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9975 # Insert the option either (1) after the last *FLAGS variable, or
9976 # (2) before a word containing "conftest.", or (3) at the end.
9977 # Note that $ac_compile itself does not contain backslashes and begins
9978 # with a dollar sign (not a hyphen), so the echo should work correctly.
9979 # The option is referenced via a variable to avoid confusing sed.
9980 lt_compile=`echo "$ac_compile" | $SED \
9981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9983 -e 's:$: $lt_compiler_flag:'`
9984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9985 (eval "$lt_compile" 2>conftest.err)
9986 ac_status=$?
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 if (exit $ac_status) && test -s "$ac_outfile"; then
9990 # The compiler can only warn and ignore the option if not recognized
9991 # So say no if there are warnings other than the usual output.
9992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9995 lt_cv_prog_compiler_pic_works=yes
9996 fi
9997 fi
9998 $RM conftest*
9999
10000 fi
10001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10002 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10003
10004 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10005 case $lt_prog_compiler_pic in
10006 "" | " "*) ;;
10007 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10008 esac
10009 else
10010 lt_prog_compiler_pic=
10011 lt_prog_compiler_can_build_shared=no
10012 fi
10013
10014 fi
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026 #
10027 # Check to make sure the static flag actually works.
10028 #
10029 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10031 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10032 if test ${lt_cv_prog_compiler_static_works+y}
10033 then :
10034 printf %s "(cached) " >&6
10035 else $as_nop
10036 lt_cv_prog_compiler_static_works=no
10037 save_LDFLAGS=$LDFLAGS
10038 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10039 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10040 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10041 # The linker can only warn and ignore the option if not recognized
10042 # So say no if there are warnings
10043 if test -s conftest.err; then
10044 # Append any errors to the config.log.
10045 cat conftest.err 1>&5
10046 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10048 if diff conftest.exp conftest.er2 >/dev/null; then
10049 lt_cv_prog_compiler_static_works=yes
10050 fi
10051 else
10052 lt_cv_prog_compiler_static_works=yes
10053 fi
10054 fi
10055 $RM -r conftest*
10056 LDFLAGS=$save_LDFLAGS
10057
10058 fi
10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10060 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10061
10062 if test yes = "$lt_cv_prog_compiler_static_works"; then
10063 :
10064 else
10065 lt_prog_compiler_static=
10066 fi
10067
10068
10069
10070
10071
10072
10073
10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10075 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10076 if test ${lt_cv_prog_compiler_c_o+y}
10077 then :
10078 printf %s "(cached) " >&6
10079 else $as_nop
10080 lt_cv_prog_compiler_c_o=no
10081 $RM -r conftest 2>/dev/null
10082 mkdir conftest
10083 cd conftest
10084 mkdir out
10085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10086
10087 lt_compiler_flag="-o out/conftest2.$ac_objext"
10088 # Insert the option either (1) after the last *FLAGS variable, or
10089 # (2) before a word containing "conftest.", or (3) at the end.
10090 # Note that $ac_compile itself does not contain backslashes and begins
10091 # with a dollar sign (not a hyphen), so the echo should work correctly.
10092 lt_compile=`echo "$ac_compile" | $SED \
10093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10095 -e 's:$: $lt_compiler_flag:'`
10096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10097 (eval "$lt_compile" 2>out/conftest.err)
10098 ac_status=$?
10099 cat out/conftest.err >&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10102 then
10103 # The compiler can only warn and ignore the option if not recognized
10104 # So say no if there are warnings
10105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10108 lt_cv_prog_compiler_c_o=yes
10109 fi
10110 fi
10111 chmod u+w . 2>&5
10112 $RM conftest*
10113 # SGI C++ compiler will create directory out/ii_files/ for
10114 # template instantiation
10115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10116 $RM out/* && rmdir out
10117 cd ..
10118 $RM -r conftest
10119 $RM conftest*
10120
10121 fi
10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10123 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10124
10125
10126
10127
10128
10129
10130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10131 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10132 if test ${lt_cv_prog_compiler_c_o+y}
10133 then :
10134 printf %s "(cached) " >&6
10135 else $as_nop
10136 lt_cv_prog_compiler_c_o=no
10137 $RM -r conftest 2>/dev/null
10138 mkdir conftest
10139 cd conftest
10140 mkdir out
10141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10142
10143 lt_compiler_flag="-o out/conftest2.$ac_objext"
10144 # Insert the option either (1) after the last *FLAGS variable, or
10145 # (2) before a word containing "conftest.", or (3) at the end.
10146 # Note that $ac_compile itself does not contain backslashes and begins
10147 # with a dollar sign (not a hyphen), so the echo should work correctly.
10148 lt_compile=`echo "$ac_compile" | $SED \
10149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10151 -e 's:$: $lt_compiler_flag:'`
10152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10153 (eval "$lt_compile" 2>out/conftest.err)
10154 ac_status=$?
10155 cat out/conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10158 then
10159 # The compiler can only warn and ignore the option if not recognized
10160 # So say no if there are warnings
10161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10164 lt_cv_prog_compiler_c_o=yes
10165 fi
10166 fi
10167 chmod u+w . 2>&5
10168 $RM conftest*
10169 # SGI C++ compiler will create directory out/ii_files/ for
10170 # template instantiation
10171 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10172 $RM out/* && rmdir out
10173 cd ..
10174 $RM -r conftest
10175 $RM conftest*
10176
10177 fi
10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10179 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10180
10181
10182
10183
10184 hard_links=nottested
10185 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10186 # do not overwrite the value of need_locks provided by the user
10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10188 printf %s "checking if we can lock with hard links... " >&6; }
10189 hard_links=yes
10190 $RM conftest*
10191 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10192 touch conftest.a
10193 ln conftest.a conftest.b 2>&5 || hard_links=no
10194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10196 printf "%s\n" "$hard_links" >&6; }
10197 if test no = "$hard_links"; then
10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10199 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10200 need_locks=warn
10201 fi
10202 else
10203 need_locks=no
10204 fi
10205
10206
10207
10208
10209
10210
10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10212 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10213
10214 runpath_var=
10215 allow_undefined_flag=
10216 always_export_symbols=no
10217 archive_cmds=
10218 archive_expsym_cmds=
10219 compiler_needs_object=no
10220 enable_shared_with_static_runtimes=no
10221 export_dynamic_flag_spec=
10222 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10223 hardcode_automatic=no
10224 hardcode_direct=no
10225 hardcode_direct_absolute=no
10226 hardcode_libdir_flag_spec=
10227 hardcode_libdir_separator=
10228 hardcode_minus_L=no
10229 hardcode_shlibpath_var=unsupported
10230 inherit_rpath=no
10231 link_all_deplibs=unknown
10232 module_cmds=
10233 module_expsym_cmds=
10234 old_archive_from_new_cmds=
10235 old_archive_from_expsyms_cmds=
10236 thread_safe_flag_spec=
10237 whole_archive_flag_spec=
10238 # include_expsyms should be a list of space-separated symbols to be *always*
10239 # included in the symbol list
10240 include_expsyms=
10241 # exclude_expsyms can be an extended regexp of symbols to exclude
10242 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10243 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10244 # as well as any symbol that contains 'd'.
10245 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10246 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10247 # platforms (ab)use it in PIC code, but their linkers get confused if
10248 # the symbol is explicitly referenced. Since portable code cannot
10249 # rely on this symbol name, it's probably fine to never include it in
10250 # preloaded symbol tables.
10251 # Exclude shared library initialization/finalization symbols.
10252 extract_expsyms_cmds=
10253
10254 case $host_os in
10255 cygwin* | mingw* | pw32* | cegcc*)
10256 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10257 # When not using gcc, we currently assume that we are using
10258 # Microsoft Visual C++ or Intel C++ Compiler.
10259 if test yes != "$GCC"; then
10260 with_gnu_ld=no
10261 fi
10262 ;;
10263 interix*)
10264 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10265 with_gnu_ld=yes
10266 ;;
10267 openbsd* | bitrig*)
10268 with_gnu_ld=no
10269 ;;
10270 linux* | k*bsd*-gnu | gnu*)
10271 link_all_deplibs=no
10272 ;;
10273 esac
10274
10275 ld_shlibs=yes
10276
10277 # On some targets, GNU ld is compatible enough with the native linker
10278 # that we're better off using the native interface for both.
10279 lt_use_gnu_ld_interface=no
10280 if test yes = "$with_gnu_ld"; then
10281 case $host_os in
10282 aix*)
10283 # The AIX port of GNU ld has always aspired to compatibility
10284 # with the native linker. However, as the warning in the GNU ld
10285 # block says, versions before 2.19.5* couldn't really create working
10286 # shared libraries, regardless of the interface used.
10287 case `$LD -v 2>&1` in
10288 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10289 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10290 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10291 *)
10292 lt_use_gnu_ld_interface=yes
10293 ;;
10294 esac
10295 ;;
10296 *)
10297 lt_use_gnu_ld_interface=yes
10298 ;;
10299 esac
10300 fi
10301
10302 if test yes = "$lt_use_gnu_ld_interface"; then
10303 # If archive_cmds runs LD, not CC, wlarc should be empty
10304 wlarc='$wl'
10305
10306 # Set some defaults for GNU ld with shared library support. These
10307 # are reset later if shared libraries are not supported. Putting them
10308 # here allows them to be overridden if necessary.
10309 runpath_var=LD_RUN_PATH
10310 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10311 export_dynamic_flag_spec='$wl--export-dynamic'
10312 # ancient GNU ld didn't support --whole-archive et. al.
10313 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10314 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10315 else
10316 whole_archive_flag_spec=
10317 fi
10318 supports_anon_versioning=no
10319 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10320 *GNU\ gold*) supports_anon_versioning=yes ;;
10321 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10322 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10323 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10324 *\ 2.11.*) ;; # other 2.11 versions
10325 *) supports_anon_versioning=yes ;;
10326 esac
10327
10328 # See if GNU ld supports shared libraries.
10329 case $host_os in
10330 aix[3-9]*)
10331 # On AIX/PPC, the GNU linker is very broken
10332 if test ia64 != "$host_cpu"; then
10333 ld_shlibs=no
10334 cat <<_LT_EOF 1>&2
10335
10336 *** Warning: the GNU linker, at least up to release 2.19, is reported
10337 *** to be unable to reliably create shared libraries on AIX.
10338 *** Therefore, libtool is disabling shared libraries support. If you
10339 *** really care for shared libraries, you may want to install binutils
10340 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10341 *** You will then need to restart the configuration process.
10342
10343 _LT_EOF
10344 fi
10345 ;;
10346
10347 amigaos*)
10348 case $host_cpu in
10349 powerpc)
10350 # see comment about AmigaOS4 .so support
10351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10352 archive_expsym_cmds=''
10353 ;;
10354 m68k)
10355 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)'
10356 hardcode_libdir_flag_spec='-L$libdir'
10357 hardcode_minus_L=yes
10358 ;;
10359 esac
10360 ;;
10361
10362 beos*)
10363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10364 allow_undefined_flag=unsupported
10365 # Joseph Beckenbach <[email protected]> says some releases of gcc
10366 # support --undefined. This deserves some investigation. FIXME
10367 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10368 else
10369 ld_shlibs=no
10370 fi
10371 ;;
10372
10373 cygwin* | mingw* | pw32* | cegcc*)
10374 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10375 # as there is no search path for DLLs.
10376 hardcode_libdir_flag_spec='-L$libdir'
10377 export_dynamic_flag_spec='$wl--export-all-symbols'
10378 allow_undefined_flag=unsupported
10379 always_export_symbols=no
10380 enable_shared_with_static_runtimes=yes
10381 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'
10382 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10383
10384 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10386 # If the export-symbols file already is a .def file, use it as
10387 # is; otherwise, prepend EXPORTS...
10388 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10389 cp $export_symbols $output_objdir/$soname.def;
10390 else
10391 echo EXPORTS > $output_objdir/$soname.def;
10392 cat $export_symbols >> $output_objdir/$soname.def;
10393 fi~
10394 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10395 else
10396 ld_shlibs=no
10397 fi
10398 ;;
10399
10400 haiku*)
10401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10402 link_all_deplibs=yes
10403 ;;
10404
10405 os2*)
10406 hardcode_libdir_flag_spec='-L$libdir'
10407 hardcode_minus_L=yes
10408 allow_undefined_flag=unsupported
10409 shrext_cmds=.dll
10410 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10411 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10412 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10413 $ECHO EXPORTS >> $output_objdir/$libname.def~
10414 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10415 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10416 emximp -o $lib $output_objdir/$libname.def'
10417 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10418 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10419 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10420 $ECHO EXPORTS >> $output_objdir/$libname.def~
10421 prefix_cmds="$SED"~
10422 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10423 prefix_cmds="$prefix_cmds -e 1d";
10424 fi~
10425 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10426 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10427 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10428 emximp -o $lib $output_objdir/$libname.def'
10429 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10430 enable_shared_with_static_runtimes=yes
10431 file_list_spec='@'
10432 ;;
10433
10434 interix[3-9]*)
10435 hardcode_direct=no
10436 hardcode_shlibpath_var=no
10437 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10438 export_dynamic_flag_spec='$wl-E'
10439 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10440 # Instead, shared libraries are loaded at an image base (0x10000000 by
10441 # default) and relocated if they conflict, which is a slow very memory
10442 # consuming and fragmenting process. To avoid this, we pick a random,
10443 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10444 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10445 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10446 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'
10447 ;;
10448
10449 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10450 tmp_diet=no
10451 if test linux-dietlibc = "$host_os"; then
10452 case $cc_basename in
10453 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10454 esac
10455 fi
10456 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10457 && test no = "$tmp_diet"
10458 then
10459 tmp_addflag=' $pic_flag'
10460 tmp_sharedflag='-shared'
10461 case $cc_basename,$host_cpu in
10462 pgcc*) # Portland Group C compiler
10463 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'
10464 tmp_addflag=' $pic_flag'
10465 ;;
10466 pgf77* | pgf90* | pgf95* | pgfortran*)
10467 # Portland Group f77 and f90 compilers
10468 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'
10469 tmp_addflag=' $pic_flag -Mnomain' ;;
10470 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10471 tmp_addflag=' -i_dynamic' ;;
10472 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10473 tmp_addflag=' -i_dynamic -nofor_main' ;;
10474 ifc* | ifort*) # Intel Fortran compiler
10475 tmp_addflag=' -nofor_main' ;;
10476 lf95*) # Lahey Fortran 8.1
10477 whole_archive_flag_spec=
10478 tmp_sharedflag='--shared' ;;
10479 nagfor*) # NAGFOR 5.3
10480 tmp_sharedflag='-Wl,-shared' ;;
10481 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10482 tmp_sharedflag='-qmkshrobj'
10483 tmp_addflag= ;;
10484 nvcc*) # Cuda Compiler Driver 2.2
10485 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'
10486 compiler_needs_object=yes
10487 ;;
10488 esac
10489 case `$CC -V 2>&1 | $SED 5q` in
10490 *Sun\ C*) # Sun C 5.9
10491 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'
10492 compiler_needs_object=yes
10493 tmp_sharedflag='-G' ;;
10494 *Sun\ F*) # Sun Fortran 8.3
10495 tmp_sharedflag='-G' ;;
10496 esac
10497 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10498
10499 if test yes = "$supports_anon_versioning"; then
10500 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10501 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10502 echo "local: *; };" >> $output_objdir/$libname.ver~
10503 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10504 fi
10505
10506 case $cc_basename in
10507 tcc*)
10508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10509 export_dynamic_flag_spec='-rdynamic'
10510 ;;
10511 xlf* | bgf* | bgxlf* | mpixlf*)
10512 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10513 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10514 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10515 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10516 if test yes = "$supports_anon_versioning"; then
10517 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10518 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10519 echo "local: *; };" >> $output_objdir/$libname.ver~
10520 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10521 fi
10522 ;;
10523 esac
10524 else
10525 ld_shlibs=no
10526 fi
10527 ;;
10528
10529 netbsd* | netbsdelf*-gnu)
10530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10531 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10532 wlarc=
10533 else
10534 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10535 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10536 fi
10537 ;;
10538
10539 solaris*)
10540 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10541 ld_shlibs=no
10542 cat <<_LT_EOF 1>&2
10543
10544 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10545 *** create shared libraries on Solaris systems. Therefore, libtool
10546 *** is disabling shared libraries support. We urge you to upgrade GNU
10547 *** binutils to release 2.9.1 or newer. Another option is to modify
10548 *** your PATH or compiler configuration so that the native linker is
10549 *** used, and then restart.
10550
10551 _LT_EOF
10552 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10554 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10555 else
10556 ld_shlibs=no
10557 fi
10558 ;;
10559
10560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10561 case `$LD -v 2>&1` in
10562 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10563 ld_shlibs=no
10564 cat <<_LT_EOF 1>&2
10565
10566 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10567 *** reliably create shared libraries on SCO systems. Therefore, libtool
10568 *** is disabling shared libraries support. We urge you to upgrade GNU
10569 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10570 *** your PATH or compiler configuration so that the native linker is
10571 *** used, and then restart.
10572
10573 _LT_EOF
10574 ;;
10575 *)
10576 # For security reasons, it is highly recommended that you always
10577 # use absolute paths for naming shared libraries, and exclude the
10578 # DT_RUNPATH tag from executables and libraries. But doing so
10579 # requires that you compile everything twice, which is a pain.
10580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10581 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10583 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10584 else
10585 ld_shlibs=no
10586 fi
10587 ;;
10588 esac
10589 ;;
10590
10591 sunos4*)
10592 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10593 wlarc=
10594 hardcode_direct=yes
10595 hardcode_shlibpath_var=no
10596 ;;
10597
10598 *)
10599 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10600 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10601 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10602 else
10603 ld_shlibs=no
10604 fi
10605 ;;
10606 esac
10607
10608 if test no = "$ld_shlibs"; then
10609 runpath_var=
10610 hardcode_libdir_flag_spec=
10611 export_dynamic_flag_spec=
10612 whole_archive_flag_spec=
10613 fi
10614 else
10615 # PORTME fill in a description of your system's linker (not GNU ld)
10616 case $host_os in
10617 aix3*)
10618 allow_undefined_flag=unsupported
10619 always_export_symbols=yes
10620 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'
10621 # Note: this linker hardcodes the directories in LIBPATH if there
10622 # are no directories specified by -L.
10623 hardcode_minus_L=yes
10624 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10625 # Neither direct hardcoding nor static linking is supported with a
10626 # broken collect2.
10627 hardcode_direct=unsupported
10628 fi
10629 ;;
10630
10631 aix[4-9]*)
10632 if test ia64 = "$host_cpu"; then
10633 # On IA64, the linker does run time linking by default, so we don't
10634 # have to do anything special.
10635 aix_use_runtimelinking=no
10636 exp_sym_flag='-Bexport'
10637 no_entry_flag=
10638 else
10639 # If we're using GNU nm, then we don't want the "-C" option.
10640 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10641 # Without the "-l" option, or with the "-B" option, AIX nm treats
10642 # weak defined symbols like other global defined symbols, whereas
10643 # GNU nm marks them as "W".
10644 # While the 'weak' keyword is ignored in the Export File, we need
10645 # it in the Import File for the 'aix-soname' feature, so we have
10646 # to replace the "-B" option with "-P" for AIX nm.
10647 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10648 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'
10649 else
10650 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'
10651 fi
10652 aix_use_runtimelinking=no
10653
10654 # Test if we are trying to use run time linking or normal
10655 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10656 # have runtime linking enabled, and use it for executables.
10657 # For shared libraries, we enable/disable runtime linking
10658 # depending on the kind of the shared library created -
10659 # when "with_aix_soname,aix_use_runtimelinking" is:
10660 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10661 # "aix,yes" lib.so shared, rtl:yes, for executables
10662 # lib.a static archive
10663 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10664 # lib.a(lib.so.V) shared, rtl:no, for executables
10665 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10666 # lib.a(lib.so.V) shared, rtl:no
10667 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10668 # lib.a static archive
10669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10670 for ld_flag in $LDFLAGS; do
10671 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10672 aix_use_runtimelinking=yes
10673 break
10674 fi
10675 done
10676 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10677 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10678 # so we don't have lib.a shared libs to link our executables.
10679 # We have to force runtime linking in this case.
10680 aix_use_runtimelinking=yes
10681 LDFLAGS="$LDFLAGS -Wl,-brtl"
10682 fi
10683 ;;
10684 esac
10685
10686 exp_sym_flag='-bexport'
10687 no_entry_flag='-bnoentry'
10688 fi
10689
10690 # When large executables or shared objects are built, AIX ld can
10691 # have problems creating the table of contents. If linking a library
10692 # or program results in "error TOC overflow" add -mminimal-toc to
10693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10695
10696 archive_cmds=''
10697 hardcode_direct=yes
10698 hardcode_direct_absolute=yes
10699 hardcode_libdir_separator=':'
10700 link_all_deplibs=yes
10701 file_list_spec='$wl-f,'
10702 case $with_aix_soname,$aix_use_runtimelinking in
10703 aix,*) ;; # traditional, no import file
10704 svr4,* | *,yes) # use import file
10705 # The Import File defines what to hardcode.
10706 hardcode_direct=no
10707 hardcode_direct_absolute=no
10708 ;;
10709 esac
10710
10711 if test yes = "$GCC"; then
10712 case $host_os in aix4.[012]|aix4.[012].*)
10713 # We only want to do this on AIX 4.2 and lower, the check
10714 # below for broken collect2 doesn't work under 4.3+
10715 collect2name=`$CC -print-prog-name=collect2`
10716 if test -f "$collect2name" &&
10717 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10718 then
10719 # We have reworked collect2
10720 :
10721 else
10722 # We have old collect2
10723 hardcode_direct=unsupported
10724 # It fails to find uninstalled libraries when the uninstalled
10725 # path is not listed in the libpath. Setting hardcode_minus_L
10726 # to unsupported forces relinking
10727 hardcode_minus_L=yes
10728 hardcode_libdir_flag_spec='-L$libdir'
10729 hardcode_libdir_separator=
10730 fi
10731 ;;
10732 esac
10733 shared_flag='-shared'
10734 if test yes = "$aix_use_runtimelinking"; then
10735 shared_flag="$shared_flag "'$wl-G'
10736 fi
10737 # Need to ensure runtime linking is disabled for the traditional
10738 # shared library, or the linker may eventually find shared libraries
10739 # /with/ Import File - we do not want to mix them.
10740 shared_flag_aix='-shared'
10741 shared_flag_svr4='-shared $wl-G'
10742 else
10743 # not using gcc
10744 if test ia64 = "$host_cpu"; then
10745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10746 # chokes on -Wl,-G. The following line is correct:
10747 shared_flag='-G'
10748 else
10749 if test yes = "$aix_use_runtimelinking"; then
10750 shared_flag='$wl-G'
10751 else
10752 shared_flag='$wl-bM:SRE'
10753 fi
10754 shared_flag_aix='$wl-bM:SRE'
10755 shared_flag_svr4='$wl-G'
10756 fi
10757 fi
10758
10759 export_dynamic_flag_spec='$wl-bexpall'
10760 # It seems that -bexpall does not export symbols beginning with
10761 # underscore (_), so it is better to generate a list of symbols to export.
10762 always_export_symbols=yes
10763 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10764 # Warning - without using the other runtime loading flags (-brtl),
10765 # -berok will link without error, but may produce a broken library.
10766 allow_undefined_flag='-berok'
10767 # Determine the default libpath from the value encoded in an
10768 # empty executable.
10769 if test set = "${lt_cv_aix_libpath+set}"; then
10770 aix_libpath=$lt_cv_aix_libpath
10771 else
10772 if test ${lt_cv_aix_libpath_+y}
10773 then :
10774 printf %s "(cached) " >&6
10775 else $as_nop
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778
10779 int
10780 main (void)
10781 {
10782
10783 ;
10784 return 0;
10785 }
10786 _ACEOF
10787 if ac_fn_c_try_link "$LINENO"
10788 then :
10789
10790 lt_aix_libpath_sed='
10791 /Import File Strings/,/^$/ {
10792 /^0/ {
10793 s/^0 *\([^ ]*\) *$/\1/
10794 p
10795 }
10796 }'
10797 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10798 # Check for a 64-bit object if we didn't find anything.
10799 if test -z "$lt_cv_aix_libpath_"; then
10800 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10801 fi
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10804 conftest$ac_exeext conftest.$ac_ext
10805 if test -z "$lt_cv_aix_libpath_"; then
10806 lt_cv_aix_libpath_=/usr/lib:/lib
10807 fi
10808
10809 fi
10810
10811 aix_libpath=$lt_cv_aix_libpath_
10812 fi
10813
10814 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10815 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
10816 else
10817 if test ia64 = "$host_cpu"; then
10818 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10819 allow_undefined_flag="-z nodefs"
10820 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"
10821 else
10822 # Determine the default libpath from the value encoded in an
10823 # empty executable.
10824 if test set = "${lt_cv_aix_libpath+set}"; then
10825 aix_libpath=$lt_cv_aix_libpath
10826 else
10827 if test ${lt_cv_aix_libpath_+y}
10828 then :
10829 printf %s "(cached) " >&6
10830 else $as_nop
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833
10834 int
10835 main (void)
10836 {
10837
10838 ;
10839 return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"
10843 then :
10844
10845 lt_aix_libpath_sed='
10846 /Import File Strings/,/^$/ {
10847 /^0/ {
10848 s/^0 *\([^ ]*\) *$/\1/
10849 p
10850 }
10851 }'
10852 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10853 # Check for a 64-bit object if we didn't find anything.
10854 if test -z "$lt_cv_aix_libpath_"; then
10855 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10856 fi
10857 fi
10858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10859 conftest$ac_exeext conftest.$ac_ext
10860 if test -z "$lt_cv_aix_libpath_"; then
10861 lt_cv_aix_libpath_=/usr/lib:/lib
10862 fi
10863
10864 fi
10865
10866 aix_libpath=$lt_cv_aix_libpath_
10867 fi
10868
10869 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10870 # Warning - without using the other run time loading flags,
10871 # -berok will link without error, but may produce a broken library.
10872 no_undefined_flag=' $wl-bernotok'
10873 allow_undefined_flag=' $wl-berok'
10874 if test yes = "$with_gnu_ld"; then
10875 # We only use this code for GNU lds that support --whole-archive.
10876 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10877 else
10878 # Exported symbols can be pulled into shared objects from archives
10879 whole_archive_flag_spec='$convenience'
10880 fi
10881 archive_cmds_need_lc=yes
10882 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10883 # -brtl affects multiple linker settings, -berok does not and is overridden later
10884 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10885 if test svr4 != "$with_aix_soname"; then
10886 # This is similar to how AIX traditionally builds its shared libraries.
10887 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'
10888 fi
10889 if test aix != "$with_aix_soname"; then
10890 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'
10891 else
10892 # used by -dlpreopen to get the symbols
10893 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10894 fi
10895 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10896 fi
10897 fi
10898 ;;
10899
10900 amigaos*)
10901 case $host_cpu in
10902 powerpc)
10903 # see comment about AmigaOS4 .so support
10904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10905 archive_expsym_cmds=''
10906 ;;
10907 m68k)
10908 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)'
10909 hardcode_libdir_flag_spec='-L$libdir'
10910 hardcode_minus_L=yes
10911 ;;
10912 esac
10913 ;;
10914
10915 bsdi[45]*)
10916 export_dynamic_flag_spec=-rdynamic
10917 ;;
10918
10919 cygwin* | mingw* | pw32* | cegcc*)
10920 # When not using gcc, we currently assume that we are using
10921 # Microsoft Visual C++ or Intel C++ Compiler.
10922 # hardcode_libdir_flag_spec is actually meaningless, as there is
10923 # no search path for DLLs.
10924 case $cc_basename in
10925 cl* | icl*)
10926 # Native MSVC or ICC
10927 hardcode_libdir_flag_spec=' '
10928 allow_undefined_flag=unsupported
10929 always_export_symbols=yes
10930 file_list_spec='@'
10931 # Tell ltmain to make .lib files, not .a files.
10932 libext=lib
10933 # Tell ltmain to make .dll files, not .so files.
10934 shrext_cmds=.dll
10935 # FIXME: Setting linknames here is a bad hack.
10936 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10937 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10938 cp "$export_symbols" "$output_objdir/$soname.def";
10939 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10940 else
10941 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10942 fi~
10943 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10944 linknames='
10945 # The linker will not automatically build a static lib if we build a DLL.
10946 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10947 enable_shared_with_static_runtimes=yes
10948 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10950 # Don't use ranlib
10951 old_postinstall_cmds='chmod 644 $oldlib'
10952 postlink_cmds='lt_outputfile="@OUTPUT@"~
10953 lt_tool_outputfile="@TOOL_OUTPUT@"~
10954 case $lt_outputfile in
10955 *.exe|*.EXE) ;;
10956 *)
10957 lt_outputfile=$lt_outputfile.exe
10958 lt_tool_outputfile=$lt_tool_outputfile.exe
10959 ;;
10960 esac~
10961 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10962 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10963 $RM "$lt_outputfile.manifest";
10964 fi'
10965 ;;
10966 *)
10967 # Assume MSVC and ICC wrapper
10968 hardcode_libdir_flag_spec=' '
10969 allow_undefined_flag=unsupported
10970 # Tell ltmain to make .lib files, not .a files.
10971 libext=lib
10972 # Tell ltmain to make .dll files, not .so files.
10973 shrext_cmds=.dll
10974 # FIXME: Setting linknames here is a bad hack.
10975 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10976 # The linker will automatically build a .lib file if we build a DLL.
10977 old_archive_from_new_cmds='true'
10978 # FIXME: Should let the user specify the lib program.
10979 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10980 enable_shared_with_static_runtimes=yes
10981 ;;
10982 esac
10983 ;;
10984
10985 darwin* | rhapsody*)
10986
10987
10988 archive_cmds_need_lc=no
10989 hardcode_direct=no
10990 hardcode_automatic=yes
10991 hardcode_shlibpath_var=unsupported
10992 if test yes = "$lt_cv_ld_force_load"; then
10993 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\"`'
10994
10995 else
10996 whole_archive_flag_spec=''
10997 fi
10998 link_all_deplibs=yes
10999 allow_undefined_flag=$_lt_dar_allow_undefined
11000 case $cc_basename in
11001 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11002 *) _lt_dar_can_shared=$GCC ;;
11003 esac
11004 if test yes = "$_lt_dar_can_shared"; then
11005 output_verbose_link_cmd=func_echo_all
11006 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11007 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11008 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"
11009 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"
11010
11011 else
11012 ld_shlibs=no
11013 fi
11014
11015 ;;
11016
11017 dgux*)
11018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11019 hardcode_libdir_flag_spec='-L$libdir'
11020 hardcode_shlibpath_var=no
11021 ;;
11022
11023 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11024 # support. Future versions do this automatically, but an explicit c++rt0.o
11025 # does not break anything, and helps significantly (at the cost of a little
11026 # extra space).
11027 freebsd2.2*)
11028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11029 hardcode_libdir_flag_spec='-R$libdir'
11030 hardcode_direct=yes
11031 hardcode_shlibpath_var=no
11032 ;;
11033
11034 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11035 freebsd2.*)
11036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11037 hardcode_direct=yes
11038 hardcode_minus_L=yes
11039 hardcode_shlibpath_var=no
11040 ;;
11041
11042 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11043 freebsd* | dragonfly* | midnightbsd*)
11044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11045 hardcode_libdir_flag_spec='-R$libdir'
11046 hardcode_direct=yes
11047 hardcode_shlibpath_var=no
11048 ;;
11049
11050 hpux9*)
11051 if test yes = "$GCC"; then
11052 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'
11053 else
11054 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'
11055 fi
11056 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11057 hardcode_libdir_separator=:
11058 hardcode_direct=yes
11059
11060 # hardcode_minus_L: Not really in the search PATH,
11061 # but as the default location of the library.
11062 hardcode_minus_L=yes
11063 export_dynamic_flag_spec='$wl-E'
11064 ;;
11065
11066 hpux10*)
11067 if test yes,no = "$GCC,$with_gnu_ld"; then
11068 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11069 else
11070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11071 fi
11072 if test no = "$with_gnu_ld"; then
11073 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11074 hardcode_libdir_separator=:
11075 hardcode_direct=yes
11076 hardcode_direct_absolute=yes
11077 export_dynamic_flag_spec='$wl-E'
11078 # hardcode_minus_L: Not really in the search PATH,
11079 # but as the default location of the library.
11080 hardcode_minus_L=yes
11081 fi
11082 ;;
11083
11084 hpux11*)
11085 if test yes,no = "$GCC,$with_gnu_ld"; then
11086 case $host_cpu in
11087 hppa*64*)
11088 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11089 ;;
11090 ia64*)
11091 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11092 ;;
11093 *)
11094 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11095 ;;
11096 esac
11097 else
11098 case $host_cpu in
11099 hppa*64*)
11100 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11101 ;;
11102 ia64*)
11103 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11104 ;;
11105 *)
11106
11107 # Older versions of the 11.00 compiler do not understand -b yet
11108 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11110 printf %s "checking if $CC understands -b... " >&6; }
11111 if test ${lt_cv_prog_compiler__b+y}
11112 then :
11113 printf %s "(cached) " >&6
11114 else $as_nop
11115 lt_cv_prog_compiler__b=no
11116 save_LDFLAGS=$LDFLAGS
11117 LDFLAGS="$LDFLAGS -b"
11118 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11120 # The linker can only warn and ignore the option if not recognized
11121 # So say no if there are warnings
11122 if test -s conftest.err; then
11123 # Append any errors to the config.log.
11124 cat conftest.err 1>&5
11125 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11127 if diff conftest.exp conftest.er2 >/dev/null; then
11128 lt_cv_prog_compiler__b=yes
11129 fi
11130 else
11131 lt_cv_prog_compiler__b=yes
11132 fi
11133 fi
11134 $RM -r conftest*
11135 LDFLAGS=$save_LDFLAGS
11136
11137 fi
11138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11139 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11140
11141 if test yes = "$lt_cv_prog_compiler__b"; then
11142 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11143 else
11144 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11145 fi
11146
11147 ;;
11148 esac
11149 fi
11150 if test no = "$with_gnu_ld"; then
11151 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11152 hardcode_libdir_separator=:
11153
11154 case $host_cpu in
11155 hppa*64*|ia64*)
11156 hardcode_direct=no
11157 hardcode_shlibpath_var=no
11158 ;;
11159 *)
11160 hardcode_direct=yes
11161 hardcode_direct_absolute=yes
11162 export_dynamic_flag_spec='$wl-E'
11163
11164 # hardcode_minus_L: Not really in the search PATH,
11165 # but as the default location of the library.
11166 hardcode_minus_L=yes
11167 ;;
11168 esac
11169 fi
11170 ;;
11171
11172 irix5* | irix6* | nonstopux*)
11173 if test yes = "$GCC"; then
11174 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'
11175 # Try to use the -exported_symbol ld option, if it does not
11176 # work, assume that -exports_file does not work either and
11177 # implicitly export all symbols.
11178 # This should be the same for all languages, so no per-tag cache variable.
11179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11180 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11181 if test ${lt_cv_irix_exported_symbol+y}
11182 then :
11183 printf %s "(cached) " >&6
11184 else $as_nop
11185 save_LDFLAGS=$LDFLAGS
11186 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189 int foo (void) { return 0; }
11190 _ACEOF
11191 if ac_fn_c_try_link "$LINENO"
11192 then :
11193 lt_cv_irix_exported_symbol=yes
11194 else $as_nop
11195 lt_cv_irix_exported_symbol=no
11196 fi
11197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11198 conftest$ac_exeext conftest.$ac_ext
11199 LDFLAGS=$save_LDFLAGS
11200 fi
11201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11202 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11203 if test yes = "$lt_cv_irix_exported_symbol"; then
11204 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'
11205 fi
11206 link_all_deplibs=no
11207 else
11208 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'
11209 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'
11210 fi
11211 archive_cmds_need_lc='no'
11212 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11213 hardcode_libdir_separator=:
11214 inherit_rpath=yes
11215 link_all_deplibs=yes
11216 ;;
11217
11218 linux*)
11219 case $cc_basename in
11220 tcc*)
11221 # Fabrice Bellard et al's Tiny C Compiler
11222 ld_shlibs=yes
11223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11224 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11225 ;;
11226 esac
11227 ;;
11228
11229 netbsd* | netbsdelf*-gnu)
11230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11232 else
11233 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11234 fi
11235 hardcode_libdir_flag_spec='-R$libdir'
11236 hardcode_direct=yes
11237 hardcode_shlibpath_var=no
11238 ;;
11239
11240 newsos6)
11241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11242 hardcode_direct=yes
11243 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11244 hardcode_libdir_separator=:
11245 hardcode_shlibpath_var=no
11246 ;;
11247
11248 *nto* | *qnx*)
11249 ;;
11250
11251 openbsd* | bitrig*)
11252 if test -f /usr/libexec/ld.so; then
11253 hardcode_direct=yes
11254 hardcode_shlibpath_var=no
11255 hardcode_direct_absolute=yes
11256 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11258 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11259 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11260 export_dynamic_flag_spec='$wl-E'
11261 else
11262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11263 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11264 fi
11265 else
11266 ld_shlibs=no
11267 fi
11268 ;;
11269
11270 os2*)
11271 hardcode_libdir_flag_spec='-L$libdir'
11272 hardcode_minus_L=yes
11273 allow_undefined_flag=unsupported
11274 shrext_cmds=.dll
11275 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11276 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11277 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11278 $ECHO EXPORTS >> $output_objdir/$libname.def~
11279 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11280 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11281 emximp -o $lib $output_objdir/$libname.def'
11282 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11283 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11284 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11285 $ECHO EXPORTS >> $output_objdir/$libname.def~
11286 prefix_cmds="$SED"~
11287 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11288 prefix_cmds="$prefix_cmds -e 1d";
11289 fi~
11290 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11291 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11292 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11293 emximp -o $lib $output_objdir/$libname.def'
11294 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11295 enable_shared_with_static_runtimes=yes
11296 file_list_spec='@'
11297 ;;
11298
11299 osf3*)
11300 if test yes = "$GCC"; then
11301 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11302 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'
11303 else
11304 allow_undefined_flag=' -expect_unresolved \*'
11305 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'
11306 fi
11307 archive_cmds_need_lc='no'
11308 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11309 hardcode_libdir_separator=:
11310 ;;
11311
11312 osf4* | osf5*) # as osf3* with the addition of -msym flag
11313 if test yes = "$GCC"; then
11314 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11315 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'
11316 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11317 else
11318 allow_undefined_flag=' -expect_unresolved \*'
11319 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'
11320 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~
11321 $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'
11322
11323 # Both c and cxx compiler support -rpath directly
11324 hardcode_libdir_flag_spec='-rpath $libdir'
11325 fi
11326 archive_cmds_need_lc='no'
11327 hardcode_libdir_separator=:
11328 ;;
11329
11330 solaris*)
11331 no_undefined_flag=' -z defs'
11332 if test yes = "$GCC"; then
11333 wlarc='$wl'
11334 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11336 $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'
11337 else
11338 case `$CC -V 2>&1` in
11339 *"Compilers 5.0"*)
11340 wlarc=''
11341 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11343 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11344 ;;
11345 *)
11346 wlarc='$wl'
11347 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11349 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11350 ;;
11351 esac
11352 fi
11353 hardcode_libdir_flag_spec='-R$libdir'
11354 hardcode_shlibpath_var=no
11355 case $host_os in
11356 solaris2.[0-5] | solaris2.[0-5].*) ;;
11357 *)
11358 # The compiler driver will combine and reorder linker options,
11359 # but understands '-z linker_flag'. GCC discards it without '$wl',
11360 # but is careful enough not to reorder.
11361 # Supported since Solaris 2.6 (maybe 2.5.1?)
11362 if test yes = "$GCC"; then
11363 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11364 else
11365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11366 fi
11367 ;;
11368 esac
11369 link_all_deplibs=yes
11370 ;;
11371
11372 sunos4*)
11373 if test sequent = "$host_vendor"; then
11374 # Use $CC to link under sequent, because it throws in some extra .o
11375 # files that make .init and .fini sections work.
11376 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11377 else
11378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11379 fi
11380 hardcode_libdir_flag_spec='-L$libdir'
11381 hardcode_direct=yes
11382 hardcode_minus_L=yes
11383 hardcode_shlibpath_var=no
11384 ;;
11385
11386 sysv4)
11387 case $host_vendor in
11388 sni)
11389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11390 hardcode_direct=yes # is this really true???
11391 ;;
11392 siemens)
11393 ## LD is ld it makes a PLAMLIB
11394 ## CC just makes a GrossModule.
11395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11396 reload_cmds='$CC -r -o $output$reload_objs'
11397 hardcode_direct=no
11398 ;;
11399 motorola)
11400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11402 ;;
11403 esac
11404 runpath_var='LD_RUN_PATH'
11405 hardcode_shlibpath_var=no
11406 ;;
11407
11408 sysv4.3*)
11409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11410 hardcode_shlibpath_var=no
11411 export_dynamic_flag_spec='-Bexport'
11412 ;;
11413
11414 sysv4*MP*)
11415 if test -d /usr/nec; then
11416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11417 hardcode_shlibpath_var=no
11418 runpath_var=LD_RUN_PATH
11419 hardcode_runpath_var=yes
11420 ld_shlibs=yes
11421 fi
11422 ;;
11423
11424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11425 no_undefined_flag='$wl-z,text'
11426 archive_cmds_need_lc=no
11427 hardcode_shlibpath_var=no
11428 runpath_var='LD_RUN_PATH'
11429
11430 if test yes = "$GCC"; then
11431 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11432 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11433 else
11434 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11435 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11436 fi
11437 ;;
11438
11439 sysv5* | sco3.2v5* | sco5v6*)
11440 # Note: We CANNOT use -z defs as we might desire, because we do not
11441 # link with -lc, and that would cause any symbols used from libc to
11442 # always be unresolved, which means just about no library would
11443 # ever link correctly. If we're not using GNU ld we use -z text
11444 # though, which does catch some bad symbols but isn't as heavy-handed
11445 # as -z defs.
11446 no_undefined_flag='$wl-z,text'
11447 allow_undefined_flag='$wl-z,nodefs'
11448 archive_cmds_need_lc=no
11449 hardcode_shlibpath_var=no
11450 hardcode_libdir_flag_spec='$wl-R,$libdir'
11451 hardcode_libdir_separator=':'
11452 link_all_deplibs=yes
11453 export_dynamic_flag_spec='$wl-Bexport'
11454 runpath_var='LD_RUN_PATH'
11455
11456 if test yes = "$GCC"; then
11457 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11458 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11459 else
11460 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11461 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11462 fi
11463 ;;
11464
11465 uts4*)
11466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11467 hardcode_libdir_flag_spec='-L$libdir'
11468 hardcode_shlibpath_var=no
11469 ;;
11470
11471 *)
11472 ld_shlibs=no
11473 ;;
11474 esac
11475
11476 if test sni = "$host_vendor"; then
11477 case $host in
11478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11479 export_dynamic_flag_spec='$wl-Blargedynsym'
11480 ;;
11481 esac
11482 fi
11483 fi
11484
11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11486 printf "%s\n" "$ld_shlibs" >&6; }
11487 test no = "$ld_shlibs" && can_build_shared=no
11488
11489 with_gnu_ld=$with_gnu_ld
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505 #
11506 # Do we need to explicitly link libc?
11507 #
11508 case "x$archive_cmds_need_lc" in
11509 x|xyes)
11510 # Assume -lc should be added
11511 archive_cmds_need_lc=yes
11512
11513 if test yes,yes = "$GCC,$enable_shared"; then
11514 case $archive_cmds in
11515 *'~'*)
11516 # FIXME: we may have to deal with multi-command sequences.
11517 ;;
11518 '$CC '*)
11519 # Test whether the compiler implicitly links with -lc since on some
11520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11521 # to ld, don't add -lc before -lgcc.
11522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11523 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11524 if test ${lt_cv_archive_cmds_need_lc+y}
11525 then :
11526 printf %s "(cached) " >&6
11527 else $as_nop
11528 $RM conftest*
11529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11530
11531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11532 (eval $ac_compile) 2>&5
11533 ac_status=$?
11534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11535 test $ac_status = 0; } 2>conftest.err; then
11536 soname=conftest
11537 lib=conftest
11538 libobjs=conftest.$ac_objext
11539 deplibs=
11540 wl=$lt_prog_compiler_wl
11541 pic_flag=$lt_prog_compiler_pic
11542 compiler_flags=-v
11543 linker_flags=-v
11544 verstring=
11545 output_objdir=.
11546 libname=conftest
11547 lt_save_allow_undefined_flag=$allow_undefined_flag
11548 allow_undefined_flag=
11549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11550 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11551 ac_status=$?
11552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11553 test $ac_status = 0; }
11554 then
11555 lt_cv_archive_cmds_need_lc=no
11556 else
11557 lt_cv_archive_cmds_need_lc=yes
11558 fi
11559 allow_undefined_flag=$lt_save_allow_undefined_flag
11560 else
11561 cat conftest.err 1>&5
11562 fi
11563 $RM conftest*
11564
11565 fi
11566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11567 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11568 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11569 ;;
11570 esac
11571 fi
11572 ;;
11573 esac
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11727 printf %s "checking dynamic linker characteristics... " >&6; }
11728
11729 if test yes = "$GCC"; then
11730 case $host_os in
11731 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11732 *) lt_awk_arg='/^libraries:/' ;;
11733 esac
11734 case $host_os in
11735 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11736 *) lt_sed_strip_eq='s|=/|/|g' ;;
11737 esac
11738 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11739 case $lt_search_path_spec in
11740 *\;*)
11741 # if the path contains ";" then we assume it to be the separator
11742 # otherwise default to the standard path separator (i.e. ":") - it is
11743 # assumed that no part of a normal pathname contains ";" but that should
11744 # okay in the real world where ";" in dirpaths is itself problematic.
11745 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11746 ;;
11747 *)
11748 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11749 ;;
11750 esac
11751 # Ok, now we have the path, separated by spaces, we can step through it
11752 # and add multilib dir if necessary...
11753 lt_tmp_lt_search_path_spec=
11754 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11755 # ...but if some path component already ends with the multilib dir we assume
11756 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11757 case "$lt_multi_os_dir; $lt_search_path_spec " in
11758 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11759 lt_multi_os_dir=
11760 ;;
11761 esac
11762 for lt_sys_path in $lt_search_path_spec; do
11763 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11764 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11765 elif test -n "$lt_multi_os_dir"; then
11766 test -d "$lt_sys_path" && \
11767 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11768 fi
11769 done
11770 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11771 BEGIN {RS = " "; FS = "/|\n";} {
11772 lt_foo = "";
11773 lt_count = 0;
11774 for (lt_i = NF; lt_i > 0; lt_i--) {
11775 if ($lt_i != "" && $lt_i != ".") {
11776 if ($lt_i == "..") {
11777 lt_count++;
11778 } else {
11779 if (lt_count == 0) {
11780 lt_foo = "/" $lt_i lt_foo;
11781 } else {
11782 lt_count--;
11783 }
11784 }
11785 }
11786 }
11787 if (lt_foo != "") { lt_freq[lt_foo]++; }
11788 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11789 }'`
11790 # AWK program above erroneously prepends '/' to C:/dos/paths
11791 # for these hosts.
11792 case $host_os in
11793 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11794 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11795 esac
11796 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11797 else
11798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11799 fi
11800 library_names_spec=
11801 libname_spec='lib$name'
11802 soname_spec=
11803 shrext_cmds=.so
11804 postinstall_cmds=
11805 postuninstall_cmds=
11806 finish_cmds=
11807 finish_eval=
11808 shlibpath_var=
11809 shlibpath_overrides_runpath=unknown
11810 version_type=none
11811 dynamic_linker="$host_os ld.so"
11812 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11813 need_lib_prefix=unknown
11814 hardcode_into_libs=no
11815
11816 # when you set need_version to no, make sure it does not cause -set_version
11817 # flags to be left without arguments
11818 need_version=unknown
11819
11820
11821
11822 case $host_os in
11823 aix3*)
11824 version_type=linux # correct to gnu/linux during the next big refactor
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11826 shlibpath_var=LIBPATH
11827
11828 # AIX 3 has no versioning support, so we append a major version to the name.
11829 soname_spec='$libname$release$shared_ext$major'
11830 ;;
11831
11832 aix[4-9]*)
11833 version_type=linux # correct to gnu/linux during the next big refactor
11834 need_lib_prefix=no
11835 need_version=no
11836 hardcode_into_libs=yes
11837 if test ia64 = "$host_cpu"; then
11838 # AIX 5 supports IA64
11839 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11840 shlibpath_var=LD_LIBRARY_PATH
11841 else
11842 # With GCC up to 2.95.x, collect2 would create an import file
11843 # for dependence libraries. The import file would start with
11844 # the line '#! .'. This would cause the generated library to
11845 # depend on '.', always an invalid library. This was fixed in
11846 # development snapshots of GCC prior to 3.0.
11847 case $host_os in
11848 aix4 | aix4.[01] | aix4.[01].*)
11849 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11850 echo ' yes '
11851 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11852 :
11853 else
11854 can_build_shared=no
11855 fi
11856 ;;
11857 esac
11858 # Using Import Files as archive members, it is possible to support
11859 # filename-based versioning of shared library archives on AIX. While
11860 # this would work for both with and without runtime linking, it will
11861 # prevent static linking of such archives. So we do filename-based
11862 # shared library versioning with .so extension only, which is used
11863 # when both runtime linking and shared linking is enabled.
11864 # Unfortunately, runtime linking may impact performance, so we do
11865 # not want this to be the default eventually. Also, we use the
11866 # versioned .so libs for executables only if there is the -brtl
11867 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11868 # To allow for filename-based versioning support, we need to create
11869 # libNAME.so.V as an archive file, containing:
11870 # *) an Import File, referring to the versioned filename of the
11871 # archive as well as the shared archive member, telling the
11872 # bitwidth (32 or 64) of that shared object, and providing the
11873 # list of exported symbols of that shared object, eventually
11874 # decorated with the 'weak' keyword
11875 # *) the shared object with the F_LOADONLY flag set, to really avoid
11876 # it being seen by the linker.
11877 # At run time we better use the real file rather than another symlink,
11878 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11879
11880 case $with_aix_soname,$aix_use_runtimelinking in
11881 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11882 # soname into executable. Probably we can add versioning support to
11883 # collect2, so additional links can be useful in future.
11884 aix,yes) # traditional libtool
11885 dynamic_linker='AIX unversionable lib.so'
11886 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11887 # instead of lib<name>.a to let people know that these are not
11888 # typical AIX shared libraries.
11889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11890 ;;
11891 aix,no) # traditional AIX only
11892 dynamic_linker='AIX lib.a(lib.so.V)'
11893 # We preserve .a as extension for shared libraries through AIX4.2
11894 # and later when we are not doing run time linking.
11895 library_names_spec='$libname$release.a $libname.a'
11896 soname_spec='$libname$release$shared_ext$major'
11897 ;;
11898 svr4,*) # full svr4 only
11899 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11900 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11901 # We do not specify a path in Import Files, so LIBPATH fires.
11902 shlibpath_overrides_runpath=yes
11903 ;;
11904 *,yes) # both, prefer svr4
11905 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11906 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11907 # unpreferred sharedlib libNAME.a needs extra handling
11908 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"'
11909 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"'
11910 # We do not specify a path in Import Files, so LIBPATH fires.
11911 shlibpath_overrides_runpath=yes
11912 ;;
11913 *,no) # both, prefer aix
11914 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11915 library_names_spec='$libname$release.a $libname.a'
11916 soname_spec='$libname$release$shared_ext$major'
11917 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11918 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)'
11919 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"'
11920 ;;
11921 esac
11922 shlibpath_var=LIBPATH
11923 fi
11924 ;;
11925
11926 amigaos*)
11927 case $host_cpu in
11928 powerpc)
11929 # Since July 2007 AmigaOS4 officially supports .so libraries.
11930 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11932 ;;
11933 m68k)
11934 library_names_spec='$libname.ixlibrary $libname.a'
11935 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11936 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'
11937 ;;
11938 esac
11939 ;;
11940
11941 beos*)
11942 library_names_spec='$libname$shared_ext'
11943 dynamic_linker="$host_os ld.so"
11944 shlibpath_var=LIBRARY_PATH
11945 ;;
11946
11947 bsdi[45]*)
11948 version_type=linux # correct to gnu/linux during the next big refactor
11949 need_version=no
11950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11951 soname_spec='$libname$release$shared_ext$major'
11952 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11955 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11956 # the default ld.so.conf also contains /usr/contrib/lib and
11957 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11958 # libtool to hard-code these into programs
11959 ;;
11960
11961 cygwin* | mingw* | pw32* | cegcc*)
11962 version_type=windows
11963 shrext_cmds=.dll
11964 need_version=no
11965 need_lib_prefix=no
11966
11967 case $GCC,$cc_basename in
11968 yes,*)
11969 # gcc
11970 library_names_spec='$libname.dll.a'
11971 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11972 postinstall_cmds='base_file=`basename \$file`~
11973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11974 dldir=$destdir/`dirname \$dlpath`~
11975 test -d \$dldir || mkdir -p \$dldir~
11976 $install_prog $dir/$dlname \$dldir/$dlname~
11977 chmod a+x \$dldir/$dlname~
11978 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11979 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11980 fi'
11981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11982 dlpath=$dir/\$dldll~
11983 $RM \$dlpath'
11984 shlibpath_overrides_runpath=yes
11985
11986 case $host_os in
11987 cygwin*)
11988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11989 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11990
11991 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11992 ;;
11993 mingw* | cegcc*)
11994 # MinGW DLLs use traditional 'lib' prefix
11995 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11996 ;;
11997 pw32*)
11998 # pw32 DLLs use 'pw' prefix rather than 'lib'
11999 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12000 ;;
12001 esac
12002 dynamic_linker='Win32 ld.exe'
12003 ;;
12004
12005 *,cl* | *,icl*)
12006 # Native MSVC or ICC
12007 libname_spec='$name'
12008 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12009 library_names_spec='$libname.dll.lib'
12010
12011 case $build_os in
12012 mingw*)
12013 sys_lib_search_path_spec=
12014 lt_save_ifs=$IFS
12015 IFS=';'
12016 for lt_path in $LIB
12017 do
12018 IFS=$lt_save_ifs
12019 # Let DOS variable expansion print the short 8.3 style file name.
12020 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12021 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12022 done
12023 IFS=$lt_save_ifs
12024 # Convert to MSYS style.
12025 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12026 ;;
12027 cygwin*)
12028 # Convert to unix form, then to dos form, then back to unix form
12029 # but this time dos style (no spaces!) so that the unix form looks
12030 # like /cygdrive/c/PROGRA~1:/cygdr...
12031 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12032 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12033 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12034 ;;
12035 *)
12036 sys_lib_search_path_spec=$LIB
12037 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12038 # It is most probably a Windows format PATH.
12039 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12040 else
12041 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12042 fi
12043 # FIXME: find the short name or the path components, as spaces are
12044 # common. (e.g. "Program Files" -> "PROGRA~1")
12045 ;;
12046 esac
12047
12048 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12049 postinstall_cmds='base_file=`basename \$file`~
12050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12051 dldir=$destdir/`dirname \$dlpath`~
12052 test -d \$dldir || mkdir -p \$dldir~
12053 $install_prog $dir/$dlname \$dldir/$dlname'
12054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12055 dlpath=$dir/\$dldll~
12056 $RM \$dlpath'
12057 shlibpath_overrides_runpath=yes
12058 dynamic_linker='Win32 link.exe'
12059 ;;
12060
12061 *)
12062 # Assume MSVC and ICC wrapper
12063 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12064 dynamic_linker='Win32 ld.exe'
12065 ;;
12066 esac
12067 # FIXME: first we should search . and the directory the executable is in
12068 shlibpath_var=PATH
12069 ;;
12070
12071 darwin* | rhapsody*)
12072 dynamic_linker="$host_os dyld"
12073 version_type=darwin
12074 need_lib_prefix=no
12075 need_version=no
12076 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12077 soname_spec='$libname$release$major$shared_ext'
12078 shlibpath_overrides_runpath=yes
12079 shlibpath_var=DYLD_LIBRARY_PATH
12080 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12081
12082 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12083 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12084 ;;
12085
12086 dgux*)
12087 version_type=linux # correct to gnu/linux during the next big refactor
12088 need_lib_prefix=no
12089 need_version=no
12090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12091 soname_spec='$libname$release$shared_ext$major'
12092 shlibpath_var=LD_LIBRARY_PATH
12093 ;;
12094
12095 freebsd* | dragonfly* | midnightbsd*)
12096 # DragonFly does not have aout. When/if they implement a new
12097 # versioning mechanism, adjust this.
12098 if test -x /usr/bin/objformat; then
12099 objformat=`/usr/bin/objformat`
12100 else
12101 case $host_os in
12102 freebsd[23].*) objformat=aout ;;
12103 *) objformat=elf ;;
12104 esac
12105 fi
12106 version_type=freebsd-$objformat
12107 case $version_type in
12108 freebsd-elf*)
12109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12110 soname_spec='$libname$release$shared_ext$major'
12111 need_version=no
12112 need_lib_prefix=no
12113 ;;
12114 freebsd-*)
12115 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12116 need_version=yes
12117 ;;
12118 esac
12119 shlibpath_var=LD_LIBRARY_PATH
12120 case $host_os in
12121 freebsd2.*)
12122 shlibpath_overrides_runpath=yes
12123 ;;
12124 freebsd3.[01]* | freebsdelf3.[01]*)
12125 shlibpath_overrides_runpath=yes
12126 hardcode_into_libs=yes
12127 ;;
12128 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12129 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12130 shlibpath_overrides_runpath=no
12131 hardcode_into_libs=yes
12132 ;;
12133 *) # from 4.6 on, and DragonFly
12134 shlibpath_overrides_runpath=yes
12135 hardcode_into_libs=yes
12136 ;;
12137 esac
12138 ;;
12139
12140 haiku*)
12141 version_type=linux # correct to gnu/linux during the next big refactor
12142 need_lib_prefix=no
12143 need_version=no
12144 dynamic_linker="$host_os runtime_loader"
12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12146 soname_spec='$libname$release$shared_ext$major'
12147 shlibpath_var=LIBRARY_PATH
12148 shlibpath_overrides_runpath=no
12149 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12150 hardcode_into_libs=yes
12151 ;;
12152
12153 hpux9* | hpux10* | hpux11*)
12154 # Give a soname corresponding to the major version so that dld.sl refuses to
12155 # link against other versions.
12156 version_type=sunos
12157 need_lib_prefix=no
12158 need_version=no
12159 case $host_cpu in
12160 ia64*)
12161 shrext_cmds='.so'
12162 hardcode_into_libs=yes
12163 dynamic_linker="$host_os dld.so"
12164 shlibpath_var=LD_LIBRARY_PATH
12165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12167 soname_spec='$libname$release$shared_ext$major'
12168 if test 32 = "$HPUX_IA64_MODE"; then
12169 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12170 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12171 else
12172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12173 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12174 fi
12175 ;;
12176 hppa*64*)
12177 shrext_cmds='.sl'
12178 hardcode_into_libs=yes
12179 dynamic_linker="$host_os dld.sl"
12180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12183 soname_spec='$libname$release$shared_ext$major'
12184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12186 ;;
12187 *)
12188 shrext_cmds='.sl'
12189 dynamic_linker="$host_os dld.sl"
12190 shlibpath_var=SHLIB_PATH
12191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12193 soname_spec='$libname$release$shared_ext$major'
12194 ;;
12195 esac
12196 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12197 postinstall_cmds='chmod 555 $lib'
12198 # or fails outright, so override atomically:
12199 install_override_mode=555
12200 ;;
12201
12202 interix[3-9]*)
12203 version_type=linux # correct to gnu/linux during the next big refactor
12204 need_lib_prefix=no
12205 need_version=no
12206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12207 soname_spec='$libname$release$shared_ext$major'
12208 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12209 shlibpath_var=LD_LIBRARY_PATH
12210 shlibpath_overrides_runpath=no
12211 hardcode_into_libs=yes
12212 ;;
12213
12214 irix5* | irix6* | nonstopux*)
12215 case $host_os in
12216 nonstopux*) version_type=nonstopux ;;
12217 *)
12218 if test yes = "$lt_cv_prog_gnu_ld"; then
12219 version_type=linux # correct to gnu/linux during the next big refactor
12220 else
12221 version_type=irix
12222 fi ;;
12223 esac
12224 need_lib_prefix=no
12225 need_version=no
12226 soname_spec='$libname$release$shared_ext$major'
12227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12228 case $host_os in
12229 irix5* | nonstopux*)
12230 libsuff= shlibsuff=
12231 ;;
12232 *)
12233 case $LD in # libtool.m4 will add one of these switches to LD
12234 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12235 libsuff= shlibsuff= libmagic=32-bit;;
12236 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12237 libsuff=32 shlibsuff=N32 libmagic=N32;;
12238 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12239 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12240 *) libsuff= shlibsuff= libmagic=never-match;;
12241 esac
12242 ;;
12243 esac
12244 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12245 shlibpath_overrides_runpath=no
12246 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12247 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12248 hardcode_into_libs=yes
12249 ;;
12250
12251 # No shared lib support for Linux oldld, aout, or coff.
12252 linux*oldld* | linux*aout* | linux*coff*)
12253 dynamic_linker=no
12254 ;;
12255
12256 linux*android*)
12257 version_type=none # Android doesn't support versioned libraries.
12258 need_lib_prefix=no
12259 need_version=no
12260 library_names_spec='$libname$release$shared_ext'
12261 soname_spec='$libname$release$shared_ext'
12262 finish_cmds=
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=yes
12265
12266 # This implies no fast_install, which is unacceptable.
12267 # Some rework will be needed to allow for fast_install
12268 # before this can be enabled.
12269 hardcode_into_libs=yes
12270
12271 dynamic_linker='Android linker'
12272 # Don't embed -rpath directories since the linker doesn't support them.
12273 hardcode_libdir_flag_spec='-L$libdir'
12274 ;;
12275
12276 # This must be glibc/ELF.
12277 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12278 version_type=linux # correct to gnu/linux during the next big refactor
12279 need_lib_prefix=no
12280 need_version=no
12281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12282 soname_spec='$libname$release$shared_ext$major'
12283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=no
12286
12287 # Some binutils ld are patched to set DT_RUNPATH
12288 if test ${lt_cv_shlibpath_overrides_runpath+y}
12289 then :
12290 printf %s "(cached) " >&6
12291 else $as_nop
12292 lt_cv_shlibpath_overrides_runpath=no
12293 save_LDFLAGS=$LDFLAGS
12294 save_libdir=$libdir
12295 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12296 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12299
12300 int
12301 main (void)
12302 {
12303
12304 ;
12305 return 0;
12306 }
12307 _ACEOF
12308 if ac_fn_c_try_link "$LINENO"
12309 then :
12310 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12311 then :
12312 lt_cv_shlibpath_overrides_runpath=yes
12313 fi
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LDFLAGS=$save_LDFLAGS
12318 libdir=$save_libdir
12319
12320 fi
12321
12322 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12323
12324 # This implies no fast_install, which is unacceptable.
12325 # Some rework will be needed to allow for fast_install
12326 # before this can be enabled.
12327 hardcode_into_libs=yes
12328
12329 # Ideally, we could use ldconfig to report *all* directores which are
12330 # searched for libraries, however this is still not possible. Aside from not
12331 # being certain /sbin/ldconfig is available, command
12332 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12333 # even though it is searched at run-time. Try to do the best guess by
12334 # appending ld.so.conf contents (and includes) to the search path.
12335 if test -f /etc/ld.so.conf; then
12336 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' ' '`
12337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12338 fi
12339
12340 # We used to test for /lib/ld.so.1 and disable shared libraries on
12341 # powerpc, because MkLinux only supported shared libraries with the
12342 # GNU dynamic linker. Since this was broken with cross compilers,
12343 # most powerpc-linux boxes support dynamic linking these days and
12344 # people can always --disable-shared, the test was removed, and we
12345 # assume the GNU/Linux dynamic linker is in use.
12346 dynamic_linker='GNU/Linux ld.so'
12347 ;;
12348
12349 netbsdelf*-gnu)
12350 version_type=linux
12351 need_lib_prefix=no
12352 need_version=no
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12354 soname_spec='${libname}${release}${shared_ext}$major'
12355 shlibpath_var=LD_LIBRARY_PATH
12356 shlibpath_overrides_runpath=no
12357 hardcode_into_libs=yes
12358 dynamic_linker='NetBSD ld.elf_so'
12359 ;;
12360
12361 netbsd*)
12362 version_type=sunos
12363 need_lib_prefix=no
12364 need_version=no
12365 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12366 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12368 dynamic_linker='NetBSD (a.out) ld.so'
12369 else
12370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12371 soname_spec='$libname$release$shared_ext$major'
12372 dynamic_linker='NetBSD ld.elf_so'
12373 fi
12374 shlibpath_var=LD_LIBRARY_PATH
12375 shlibpath_overrides_runpath=yes
12376 hardcode_into_libs=yes
12377 ;;
12378
12379 newsos6)
12380 version_type=linux # correct to gnu/linux during the next big refactor
12381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12382 shlibpath_var=LD_LIBRARY_PATH
12383 shlibpath_overrides_runpath=yes
12384 ;;
12385
12386 *nto* | *qnx*)
12387 version_type=qnx
12388 need_lib_prefix=no
12389 need_version=no
12390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12391 soname_spec='$libname$release$shared_ext$major'
12392 shlibpath_var=LD_LIBRARY_PATH
12393 shlibpath_overrides_runpath=no
12394 hardcode_into_libs=yes
12395 dynamic_linker='ldqnx.so'
12396 ;;
12397
12398 openbsd* | bitrig*)
12399 version_type=sunos
12400 sys_lib_dlsearch_path_spec=/usr/lib
12401 need_lib_prefix=no
12402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12403 need_version=no
12404 else
12405 need_version=yes
12406 fi
12407 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12409 shlibpath_var=LD_LIBRARY_PATH
12410 shlibpath_overrides_runpath=yes
12411 ;;
12412
12413 os2*)
12414 libname_spec='$name'
12415 version_type=windows
12416 shrext_cmds=.dll
12417 need_version=no
12418 need_lib_prefix=no
12419 # OS/2 can only load a DLL with a base name of 8 characters or less.
12420 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12421 v=$($ECHO $release$versuffix | tr -d .-);
12422 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12423 $ECHO $n$v`$shared_ext'
12424 library_names_spec='${libname}_dll.$libext'
12425 dynamic_linker='OS/2 ld.exe'
12426 shlibpath_var=BEGINLIBPATH
12427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12428 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12429 postinstall_cmds='base_file=`basename \$file`~
12430 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12431 dldir=$destdir/`dirname \$dlpath`~
12432 test -d \$dldir || mkdir -p \$dldir~
12433 $install_prog $dir/$dlname \$dldir/$dlname~
12434 chmod a+x \$dldir/$dlname~
12435 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12436 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12437 fi'
12438 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12439 dlpath=$dir/\$dldll~
12440 $RM \$dlpath'
12441 ;;
12442
12443 osf3* | osf4* | osf5*)
12444 version_type=osf
12445 need_lib_prefix=no
12446 need_version=no
12447 soname_spec='$libname$release$shared_ext$major'
12448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12449 shlibpath_var=LD_LIBRARY_PATH
12450 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12452 ;;
12453
12454 rdos*)
12455 dynamic_linker=no
12456 ;;
12457
12458 solaris*)
12459 version_type=linux # correct to gnu/linux during the next big refactor
12460 need_lib_prefix=no
12461 need_version=no
12462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12463 soname_spec='$libname$release$shared_ext$major'
12464 shlibpath_var=LD_LIBRARY_PATH
12465 shlibpath_overrides_runpath=yes
12466 hardcode_into_libs=yes
12467 # ldd complains unless libraries are executable
12468 postinstall_cmds='chmod +x $lib'
12469 ;;
12470
12471 sunos4*)
12472 version_type=sunos
12473 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12474 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12475 shlibpath_var=LD_LIBRARY_PATH
12476 shlibpath_overrides_runpath=yes
12477 if test yes = "$with_gnu_ld"; then
12478 need_lib_prefix=no
12479 fi
12480 need_version=yes
12481 ;;
12482
12483 sysv4 | sysv4.3*)
12484 version_type=linux # correct to gnu/linux during the next big refactor
12485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12486 soname_spec='$libname$release$shared_ext$major'
12487 shlibpath_var=LD_LIBRARY_PATH
12488 case $host_vendor in
12489 sni)
12490 shlibpath_overrides_runpath=no
12491 need_lib_prefix=no
12492 runpath_var=LD_RUN_PATH
12493 ;;
12494 siemens)
12495 need_lib_prefix=no
12496 ;;
12497 motorola)
12498 need_lib_prefix=no
12499 need_version=no
12500 shlibpath_overrides_runpath=no
12501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12502 ;;
12503 esac
12504 ;;
12505
12506 sysv4*MP*)
12507 if test -d /usr/nec; then
12508 version_type=linux # correct to gnu/linux during the next big refactor
12509 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12510 soname_spec='$libname$shared_ext.$major'
12511 shlibpath_var=LD_LIBRARY_PATH
12512 fi
12513 ;;
12514
12515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12516 version_type=sco
12517 need_lib_prefix=no
12518 need_version=no
12519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12520 soname_spec='$libname$release$shared_ext$major'
12521 shlibpath_var=LD_LIBRARY_PATH
12522 shlibpath_overrides_runpath=yes
12523 hardcode_into_libs=yes
12524 if test yes = "$with_gnu_ld"; then
12525 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12526 else
12527 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12528 case $host_os in
12529 sco3.2v5*)
12530 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12531 ;;
12532 esac
12533 fi
12534 sys_lib_dlsearch_path_spec='/usr/lib'
12535 ;;
12536
12537 tpf*)
12538 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12539 version_type=linux # correct to gnu/linux during the next big refactor
12540 need_lib_prefix=no
12541 need_version=no
12542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12543 shlibpath_var=LD_LIBRARY_PATH
12544 shlibpath_overrides_runpath=no
12545 hardcode_into_libs=yes
12546 ;;
12547
12548 uts4*)
12549 version_type=linux # correct to gnu/linux during the next big refactor
12550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12551 soname_spec='$libname$release$shared_ext$major'
12552 shlibpath_var=LD_LIBRARY_PATH
12553 ;;
12554
12555 *)
12556 dynamic_linker=no
12557 ;;
12558 esac
12559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12560 printf "%s\n" "$dynamic_linker" >&6; }
12561 test no = "$dynamic_linker" && can_build_shared=no
12562
12563 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12564 if test yes = "$GCC"; then
12565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12566 fi
12567
12568 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12569 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12570 fi
12571
12572 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12573 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12574 fi
12575
12576 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12577 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12578
12579 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12580 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12581
12582 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12583 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12682 printf %s "checking how to hardcode library paths into programs... " >&6; }
12683 hardcode_action=
12684 if test -n "$hardcode_libdir_flag_spec" ||
12685 test -n "$runpath_var" ||
12686 test yes = "$hardcode_automatic"; then
12687
12688 # We can hardcode non-existent directories.
12689 if test no != "$hardcode_direct" &&
12690 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12691 # have to relink, otherwise we might link with an installed library
12692 # when we should be linking with a yet-to-be-installed one
12693 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12694 test no != "$hardcode_minus_L"; then
12695 # Linking always hardcodes the temporary library directory.
12696 hardcode_action=relink
12697 else
12698 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12699 hardcode_action=immediate
12700 fi
12701 else
12702 # We cannot hardcode anything, or else we can only hardcode existing
12703 # directories.
12704 hardcode_action=unsupported
12705 fi
12706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12707 printf "%s\n" "$hardcode_action" >&6; }
12708
12709 if test relink = "$hardcode_action" ||
12710 test yes = "$inherit_rpath"; then
12711 # Fast installation is not supported
12712 enable_fast_install=no
12713 elif test yes = "$shlibpath_overrides_runpath" ||
12714 test no = "$enable_shared"; then
12715 # Fast installation is not necessary
12716 enable_fast_install=needless
12717 fi
12718
12719
12720
12721
12722
12723
12724 if test yes != "$enable_dlopen"; then
12725 enable_dlopen=unknown
12726 enable_dlopen_self=unknown
12727 enable_dlopen_self_static=unknown
12728 else
12729 lt_cv_dlopen=no
12730 lt_cv_dlopen_libs=
12731
12732 case $host_os in
12733 beos*)
12734 lt_cv_dlopen=load_add_on
12735 lt_cv_dlopen_libs=
12736 lt_cv_dlopen_self=yes
12737 ;;
12738
12739 mingw* | pw32* | cegcc*)
12740 lt_cv_dlopen=LoadLibrary
12741 lt_cv_dlopen_libs=
12742 ;;
12743
12744 cygwin*)
12745 lt_cv_dlopen=dlopen
12746 lt_cv_dlopen_libs=
12747 ;;
12748
12749 darwin*)
12750 # if libdl is installed we need to link against it
12751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12752 printf %s "checking for dlopen in -ldl... " >&6; }
12753 if test ${ac_cv_lib_dl_dlopen+y}
12754 then :
12755 printf %s "(cached) " >&6
12756 else $as_nop
12757 ac_check_lib_save_LIBS=$LIBS
12758 LIBS="-ldl $LIBS"
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12761
12762 /* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
12765 char dlopen ();
12766 int
12767 main (void)
12768 {
12769 return dlopen ();
12770 ;
12771 return 0;
12772 }
12773 _ACEOF
12774 if ac_fn_c_try_link "$LINENO"
12775 then :
12776 ac_cv_lib_dl_dlopen=yes
12777 else $as_nop
12778 ac_cv_lib_dl_dlopen=no
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12783 fi
12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12785 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12786 if test "x$ac_cv_lib_dl_dlopen" = xyes
12787 then :
12788 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12789 else $as_nop
12790
12791 lt_cv_dlopen=dyld
12792 lt_cv_dlopen_libs=
12793 lt_cv_dlopen_self=yes
12794
12795 fi
12796
12797 ;;
12798
12799 tpf*)
12800 # Don't try to run any link tests for TPF. We know it's impossible
12801 # because TPF is a cross-compiler, and we know how we open DSOs.
12802 lt_cv_dlopen=dlopen
12803 lt_cv_dlopen_libs=
12804 lt_cv_dlopen_self=no
12805 ;;
12806
12807 *)
12808 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12809 if test "x$ac_cv_func_shl_load" = xyes
12810 then :
12811 lt_cv_dlopen=shl_load
12812 else $as_nop
12813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12814 printf %s "checking for shl_load in -ldld... " >&6; }
12815 if test ${ac_cv_lib_dld_shl_load+y}
12816 then :
12817 printf %s "(cached) " >&6
12818 else $as_nop
12819 ac_check_lib_save_LIBS=$LIBS
12820 LIBS="-ldld $LIBS"
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12823
12824 /* Override any GCC internal prototype to avoid an error.
12825 Use char because int might match the return type of a GCC
12826 builtin and then its argument prototype would still apply. */
12827 char shl_load ();
12828 int
12829 main (void)
12830 {
12831 return shl_load ();
12832 ;
12833 return 0;
12834 }
12835 _ACEOF
12836 if ac_fn_c_try_link "$LINENO"
12837 then :
12838 ac_cv_lib_dld_shl_load=yes
12839 else $as_nop
12840 ac_cv_lib_dld_shl_load=no
12841 fi
12842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12843 conftest$ac_exeext conftest.$ac_ext
12844 LIBS=$ac_check_lib_save_LIBS
12845 fi
12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12847 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12848 if test "x$ac_cv_lib_dld_shl_load" = xyes
12849 then :
12850 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12851 else $as_nop
12852 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12853 if test "x$ac_cv_func_dlopen" = xyes
12854 then :
12855 lt_cv_dlopen=dlopen
12856 else $as_nop
12857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12858 printf %s "checking for dlopen in -ldl... " >&6; }
12859 if test ${ac_cv_lib_dl_dlopen+y}
12860 then :
12861 printf %s "(cached) " >&6
12862 else $as_nop
12863 ac_check_lib_save_LIBS=$LIBS
12864 LIBS="-ldl $LIBS"
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12871 char dlopen ();
12872 int
12873 main (void)
12874 {
12875 return dlopen ();
12876 ;
12877 return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_c_try_link "$LINENO"
12881 then :
12882 ac_cv_lib_dl_dlopen=yes
12883 else $as_nop
12884 ac_cv_lib_dl_dlopen=no
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12887 conftest$ac_exeext conftest.$ac_ext
12888 LIBS=$ac_check_lib_save_LIBS
12889 fi
12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12891 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12892 if test "x$ac_cv_lib_dl_dlopen" = xyes
12893 then :
12894 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12895 else $as_nop
12896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12897 printf %s "checking for dlopen in -lsvld... " >&6; }
12898 if test ${ac_cv_lib_svld_dlopen+y}
12899 then :
12900 printf %s "(cached) " >&6
12901 else $as_nop
12902 ac_check_lib_save_LIBS=$LIBS
12903 LIBS="-lsvld $LIBS"
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12906
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12910 char dlopen ();
12911 int
12912 main (void)
12913 {
12914 return dlopen ();
12915 ;
12916 return 0;
12917 }
12918 _ACEOF
12919 if ac_fn_c_try_link "$LINENO"
12920 then :
12921 ac_cv_lib_svld_dlopen=yes
12922 else $as_nop
12923 ac_cv_lib_svld_dlopen=no
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12928 fi
12929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12930 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12931 if test "x$ac_cv_lib_svld_dlopen" = xyes
12932 then :
12933 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12934 else $as_nop
12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12936 printf %s "checking for dld_link in -ldld... " >&6; }
12937 if test ${ac_cv_lib_dld_dld_link+y}
12938 then :
12939 printf %s "(cached) " >&6
12940 else $as_nop
12941 ac_check_lib_save_LIBS=$LIBS
12942 LIBS="-ldld $LIBS"
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12945
12946 /* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
12949 char dld_link ();
12950 int
12951 main (void)
12952 {
12953 return dld_link ();
12954 ;
12955 return 0;
12956 }
12957 _ACEOF
12958 if ac_fn_c_try_link "$LINENO"
12959 then :
12960 ac_cv_lib_dld_dld_link=yes
12961 else $as_nop
12962 ac_cv_lib_dld_dld_link=no
12963 fi
12964 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12965 conftest$ac_exeext conftest.$ac_ext
12966 LIBS=$ac_check_lib_save_LIBS
12967 fi
12968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12969 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12970 if test "x$ac_cv_lib_dld_dld_link" = xyes
12971 then :
12972 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12973 fi
12974
12975
12976 fi
12977
12978
12979 fi
12980
12981
12982 fi
12983
12984
12985 fi
12986
12987
12988 fi
12989
12990 ;;
12991 esac
12992
12993 if test no = "$lt_cv_dlopen"; then
12994 enable_dlopen=no
12995 else
12996 enable_dlopen=yes
12997 fi
12998
12999 case $lt_cv_dlopen in
13000 dlopen)
13001 save_CPPFLAGS=$CPPFLAGS
13002 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13003
13004 save_LDFLAGS=$LDFLAGS
13005 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13006
13007 save_LIBS=$LIBS
13008 LIBS="$lt_cv_dlopen_libs $LIBS"
13009
13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13011 printf %s "checking whether a program can dlopen itself... " >&6; }
13012 if test ${lt_cv_dlopen_self+y}
13013 then :
13014 printf %s "(cached) " >&6
13015 else $as_nop
13016 if test yes = "$cross_compiling"; then :
13017 lt_cv_dlopen_self=cross
13018 else
13019 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13020 lt_status=$lt_dlunknown
13021 cat > conftest.$ac_ext <<_LT_EOF
13022 #line $LINENO "configure"
13023 #include "confdefs.h"
13024
13025 #if HAVE_DLFCN_H
13026 #include <dlfcn.h>
13027 #endif
13028
13029 #include <stdio.h>
13030
13031 #ifdef RTLD_GLOBAL
13032 # define LT_DLGLOBAL RTLD_GLOBAL
13033 #else
13034 # ifdef DL_GLOBAL
13035 # define LT_DLGLOBAL DL_GLOBAL
13036 # else
13037 # define LT_DLGLOBAL 0
13038 # endif
13039 #endif
13040
13041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13042 find out it does not work in some platform. */
13043 #ifndef LT_DLLAZY_OR_NOW
13044 # ifdef RTLD_LAZY
13045 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13046 # else
13047 # ifdef DL_LAZY
13048 # define LT_DLLAZY_OR_NOW DL_LAZY
13049 # else
13050 # ifdef RTLD_NOW
13051 # define LT_DLLAZY_OR_NOW RTLD_NOW
13052 # else
13053 # ifdef DL_NOW
13054 # define LT_DLLAZY_OR_NOW DL_NOW
13055 # else
13056 # define LT_DLLAZY_OR_NOW 0
13057 # endif
13058 # endif
13059 # endif
13060 # endif
13061 #endif
13062
13063 /* When -fvisibility=hidden is used, assume the code has been annotated
13064 correspondingly for the symbols needed. */
13065 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13066 int fnord () __attribute__((visibility("default")));
13067 #endif
13068
13069 int fnord () { return 42; }
13070 int main ()
13071 {
13072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13073 int status = $lt_dlunknown;
13074
13075 if (self)
13076 {
13077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13078 else
13079 {
13080 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13081 else puts (dlerror ());
13082 }
13083 /* dlclose (self); */
13084 }
13085 else
13086 puts (dlerror ());
13087
13088 return status;
13089 }
13090 _LT_EOF
13091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13092 (eval $ac_link) 2>&5
13093 ac_status=$?
13094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13095 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13096 (./conftest; exit; ) >&5 2>/dev/null
13097 lt_status=$?
13098 case x$lt_status in
13099 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13100 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13101 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13102 esac
13103 else :
13104 # compilation failed
13105 lt_cv_dlopen_self=no
13106 fi
13107 fi
13108 rm -fr conftest*
13109
13110
13111 fi
13112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13113 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13114
13115 if test yes = "$lt_cv_dlopen_self"; then
13116 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13118 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13119 if test ${lt_cv_dlopen_self_static+y}
13120 then :
13121 printf %s "(cached) " >&6
13122 else $as_nop
13123 if test yes = "$cross_compiling"; then :
13124 lt_cv_dlopen_self_static=cross
13125 else
13126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13127 lt_status=$lt_dlunknown
13128 cat > conftest.$ac_ext <<_LT_EOF
13129 #line $LINENO "configure"
13130 #include "confdefs.h"
13131
13132 #if HAVE_DLFCN_H
13133 #include <dlfcn.h>
13134 #endif
13135
13136 #include <stdio.h>
13137
13138 #ifdef RTLD_GLOBAL
13139 # define LT_DLGLOBAL RTLD_GLOBAL
13140 #else
13141 # ifdef DL_GLOBAL
13142 # define LT_DLGLOBAL DL_GLOBAL
13143 # else
13144 # define LT_DLGLOBAL 0
13145 # endif
13146 #endif
13147
13148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13149 find out it does not work in some platform. */
13150 #ifndef LT_DLLAZY_OR_NOW
13151 # ifdef RTLD_LAZY
13152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13153 # else
13154 # ifdef DL_LAZY
13155 # define LT_DLLAZY_OR_NOW DL_LAZY
13156 # else
13157 # ifdef RTLD_NOW
13158 # define LT_DLLAZY_OR_NOW RTLD_NOW
13159 # else
13160 # ifdef DL_NOW
13161 # define LT_DLLAZY_OR_NOW DL_NOW
13162 # else
13163 # define LT_DLLAZY_OR_NOW 0
13164 # endif
13165 # endif
13166 # endif
13167 # endif
13168 #endif
13169
13170 /* When -fvisibility=hidden is used, assume the code has been annotated
13171 correspondingly for the symbols needed. */
13172 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13173 int fnord () __attribute__((visibility("default")));
13174 #endif
13175
13176 int fnord () { return 42; }
13177 int main ()
13178 {
13179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13180 int status = $lt_dlunknown;
13181
13182 if (self)
13183 {
13184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13185 else
13186 {
13187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13188 else puts (dlerror ());
13189 }
13190 /* dlclose (self); */
13191 }
13192 else
13193 puts (dlerror ());
13194
13195 return status;
13196 }
13197 _LT_EOF
13198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13199 (eval $ac_link) 2>&5
13200 ac_status=$?
13201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13202 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13203 (./conftest; exit; ) >&5 2>/dev/null
13204 lt_status=$?
13205 case x$lt_status in
13206 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13207 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13208 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13209 esac
13210 else :
13211 # compilation failed
13212 lt_cv_dlopen_self_static=no
13213 fi
13214 fi
13215 rm -fr conftest*
13216
13217
13218 fi
13219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13220 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13221 fi
13222
13223 CPPFLAGS=$save_CPPFLAGS
13224 LDFLAGS=$save_LDFLAGS
13225 LIBS=$save_LIBS
13226 ;;
13227 esac
13228
13229 case $lt_cv_dlopen_self in
13230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13231 *) enable_dlopen_self=unknown ;;
13232 esac
13233
13234 case $lt_cv_dlopen_self_static in
13235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13236 *) enable_dlopen_self_static=unknown ;;
13237 esac
13238 fi
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256 striplib=
13257 old_striplib=
13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13259 printf %s "checking whether stripping libraries is possible... " >&6; }
13260 if test -z "$STRIP"; then
13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 printf "%s\n" "no" >&6; }
13263 else
13264 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13265 old_striplib="$STRIP --strip-debug"
13266 striplib="$STRIP --strip-unneeded"
13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13268 printf "%s\n" "yes" >&6; }
13269 else
13270 case $host_os in
13271 darwin*)
13272 # FIXME - insert some real tests, host_os isn't really good enough
13273 striplib="$STRIP -x"
13274 old_striplib="$STRIP -S"
13275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13276 printf "%s\n" "yes" >&6; }
13277 ;;
13278 freebsd*)
13279 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13280 old_striplib="$STRIP --strip-debug"
13281 striplib="$STRIP --strip-unneeded"
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13283 printf "%s\n" "yes" >&6; }
13284 else
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 printf "%s\n" "no" >&6; }
13287 fi
13288 ;;
13289 *)
13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291 printf "%s\n" "no" >&6; }
13292 ;;
13293 esac
13294 fi
13295 fi
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308 # Report what library types will actually be built
13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13310 printf %s "checking if libtool supports shared libraries... " >&6; }
13311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13312 printf "%s\n" "$can_build_shared" >&6; }
13313
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13315 printf %s "checking whether to build shared libraries... " >&6; }
13316 test no = "$can_build_shared" && enable_shared=no
13317
13318 # On AIX, shared libraries and static libraries use the same namespace, and
13319 # are all built from PIC.
13320 case $host_os in
13321 aix3*)
13322 test yes = "$enable_shared" && enable_static=no
13323 if test -n "$RANLIB"; then
13324 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13325 postinstall_cmds='$RANLIB $lib'
13326 fi
13327 ;;
13328
13329 aix[4-9]*)
13330 if test ia64 != "$host_cpu"; then
13331 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13332 yes,aix,yes) ;; # shared object as lib.so file only
13333 yes,svr4,*) ;; # shared object as lib.so archive member only
13334 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13335 esac
13336 fi
13337 ;;
13338 esac
13339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13340 printf "%s\n" "$enable_shared" >&6; }
13341
13342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13343 printf %s "checking whether to build static libraries... " >&6; }
13344 # Make sure either enable_shared or enable_static is yes.
13345 test yes = "$enable_shared" || enable_static=yes
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13347 printf "%s\n" "$enable_static" >&6; }
13348
13349
13350
13351
13352 fi
13353 ac_ext=c
13354 ac_cpp='$CPP $CPPFLAGS'
13355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13358
13359 CC=$lt_save_CC
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375 ac_config_commands="$ac_config_commands libtool"
13376
13377
13378
13379
13380 # Only expand once:
13381
13382
13383
13384
13385
13386
13387 # Check whether --with-sanitizer was given.
13388 if test ${with_sanitizer+y}
13389 then :
13390 withval=$with_sanitizer;
13391 else $as_nop
13392 with_sanitizer=no
13393 fi
13394
13395
13396 if test "x$with_sanitizer" = xno
13397 then :
13398
13399 else $as_nop
13400
13401 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__-fsanitize=${with_sanitizer}" | $as_tr_sh`
13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=${with_sanitizer}" >&5
13403 printf %s "checking whether C compiler accepts -fsanitize=${with_sanitizer}... " >&6; }
13404 if eval test \${$as_CACHEVAR+y}
13405 then :
13406 printf %s "(cached) " >&6
13407 else $as_nop
13408
13409 ax_check_save_flags=$CFLAGS
13410 CFLAGS="$CFLAGS -fsanitize=${with_sanitizer}"
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13413
13414 int
13415 main (void)
13416 {
13417
13418 ;
13419 return 0;
13420 }
13421 _ACEOF
13422 if ac_fn_c_try_compile "$LINENO"
13423 then :
13424 eval "$as_CACHEVAR=yes"
13425 else $as_nop
13426 eval "$as_CACHEVAR=no"
13427 fi
13428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13429 CFLAGS=$ax_check_save_flags
13430 fi
13431 eval ac_res=\$$as_CACHEVAR
13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13433 printf "%s\n" "$ac_res" >&6; }
13434 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13435 then :
13436
13437
13438 if test ${CFLAGS+y}
13439 then :
13440
13441 case " $CFLAGS " in #(
13442 *" -fsanitize=${with_sanitizer} "*) :
13443 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fsanitize=\${with_sanitizer}"; } >&5
13444 (: CFLAGS already contains -fsanitize=${with_sanitizer}) 2>&5
13445 ac_status=$?
13446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13447 test $ac_status = 0; } ;; #(
13448 *) :
13449
13450 as_fn_append CFLAGS " -fsanitize=${with_sanitizer}"
13451 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13452 (: CFLAGS="$CFLAGS") 2>&5
13453 ac_status=$?
13454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13455 test $ac_status = 0; }
13456 ;;
13457 esac
13458
13459 else $as_nop
13460
13461 CFLAGS=-fsanitize=${with_sanitizer}
13462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13463 (: CFLAGS="$CFLAGS") 2>&5
13464 ac_status=$?
13465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13466 test $ac_status = 0; }
13467
13468 fi
13469
13470
13471 if test ${LDFLAGS+y}
13472 then :
13473
13474 case " $LDFLAGS " in #(
13475 *" -fsanitize=${with_sanitizer} "*) :
13476 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains -fsanitize=\${with_sanitizer}"; } >&5
13477 (: LDFLAGS already contains -fsanitize=${with_sanitizer}) 2>&5
13478 ac_status=$?
13479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13480 test $ac_status = 0; } ;; #(
13481 *) :
13482
13483 as_fn_append LDFLAGS " -fsanitize=${with_sanitizer}"
13484 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
13485 (: LDFLAGS="$LDFLAGS") 2>&5
13486 ac_status=$?
13487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13488 test $ac_status = 0; }
13489 ;;
13490 esac
13491
13492 else $as_nop
13493
13494 LDFLAGS=-fsanitize=${with_sanitizer}
13495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
13496 (: LDFLAGS="$LDFLAGS") 2>&5
13497 ac_status=$?
13498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13499 test $ac_status = 0; }
13500
13501 fi
13502
13503
13504 else $as_nop
13505
13506 as_fn_error $? "\"-fsanitize=${with_sanitizer} not supported!\"" "$LINENO" 5
13507
13508 fi
13509
13510
13511 if test ${CFLAGS+y}
13512 then :
13513
13514 case " $CFLAGS " in #(
13515 *" -g "*) :
13516 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -g"; } >&5
13517 (: CFLAGS already contains -g) 2>&5
13518 ac_status=$?
13519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520 test $ac_status = 0; } ;; #(
13521 *) :
13522
13523 as_fn_append CFLAGS " -g"
13524 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13525 (: CFLAGS="$CFLAGS") 2>&5
13526 ac_status=$?
13527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13528 test $ac_status = 0; }
13529 ;;
13530 esac
13531
13532 else $as_nop
13533
13534 CFLAGS=-g
13535 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13536 (: CFLAGS="$CFLAGS") 2>&5
13537 ac_status=$?
13538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13539 test $ac_status = 0; }
13540
13541 fi
13542
13543
13544 case "${with_sanitizer}" in #(
13545 address) :
13546
13547
13548
13549
13550
13551 for flag in -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=pointer-compare -fsanitize=pointer-subtract; do
13552 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13554 printf %s "checking whether C compiler accepts $flag... " >&6; }
13555 if eval test \${$as_CACHEVAR+y}
13556 then :
13557 printf %s "(cached) " >&6
13558 else $as_nop
13559
13560 ax_check_save_flags=$CFLAGS
13561 CFLAGS="$CFLAGS $flag"
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13564
13565 int
13566 main (void)
13567 {
13568
13569 ;
13570 return 0;
13571 }
13572 _ACEOF
13573 if ac_fn_c_try_compile "$LINENO"
13574 then :
13575 eval "$as_CACHEVAR=yes"
13576 else $as_nop
13577 eval "$as_CACHEVAR=no"
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13580 CFLAGS=$ax_check_save_flags
13581 fi
13582 eval ac_res=\$$as_CACHEVAR
13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13584 printf "%s\n" "$ac_res" >&6; }
13585 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13586 then :
13587
13588 if test ${CFLAGS+y}
13589 then :
13590
13591 case " $CFLAGS " in #(
13592 *" $flag "*) :
13593 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13594 (: CFLAGS already contains $flag) 2>&5
13595 ac_status=$?
13596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13597 test $ac_status = 0; } ;; #(
13598 *) :
13599
13600 as_fn_append CFLAGS " $flag"
13601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13602 (: CFLAGS="$CFLAGS") 2>&5
13603 ac_status=$?
13604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605 test $ac_status = 0; }
13606 ;;
13607 esac
13608
13609 else $as_nop
13610
13611 CFLAGS=$flag
13612 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13613 (: CFLAGS="$CFLAGS") 2>&5
13614 ac_status=$?
13615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13616 test $ac_status = 0; }
13617
13618 fi
13619
13620 else $as_nop
13621 :
13622 fi
13623
13624 done
13625
13626 ;; #(
13627 *) :
13628
13629 ;;
13630 esac
13631
13632 fi
13633
13634
13635
13636
13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((transparent_union))" >&5
13638 printf %s "checking for __attribute__((transparent_union))... " >&6; }
13639 if test ${ax_cv_have_type_attribute_transparent_union+y}
13640 then :
13641 printf %s "(cached) " >&6
13642 else $as_nop
13643
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646
13647
13648 union __attribute__((__transparent_union__)) { void *vp; } tu;
13649
13650 int
13651 main (void)
13652 {
13653
13654 ;
13655 return 0;
13656 }
13657
13658 _ACEOF
13659 if ac_fn_c_try_compile "$LINENO"
13660 then :
13661 if test -s conftest.err
13662 then :
13663 ax_cv_have_type_attribute_transparent_union=no
13664 else $as_nop
13665 ax_cv_have_type_attribute_transparent_union=yes
13666 fi
13667 else $as_nop
13668 ax_cv_have_type_attribute_transparent_union=no
13669 fi
13670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13671
13672 fi
13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_type_attribute_transparent_union" >&5
13674 printf "%s\n" "$ax_cv_have_type_attribute_transparent_union" >&6; }
13675
13676 if test yes = $ax_cv_have_type_attribute_transparent_union
13677 then :
13678
13679 printf "%s\n" "#define HAVE_TYPE_ATTRIBUTE_TRANSPARENT_UNION 1" >>confdefs.h
13680
13681 fi
13682
13683
13684
13685
13686
13687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
13688 printf %s "checking whether to enable assertions... " >&6; }
13689 # Check whether --enable-assert was given.
13690 if test ${enable_assert+y}
13691 then :
13692 enableval=$enable_assert; ac_enable_assert=$enableval
13693 if test "x$enableval" = xno
13694 then :
13695
13696 printf "%s\n" "#define NDEBUG 1" >>confdefs.h
13697
13698 elif test "x$enableval" != xyes
13699 then :
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
13701 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
13702 ac_enable_assert=yes
13703 fi
13704 else $as_nop
13705 ac_enable_assert=yes
13706 fi
13707
13708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
13709 printf "%s\n" "$ac_enable_assert" >&6; }
13710
13711 # Autoupdate added the next two lines to ensure that your configure
13712 # script's behavior did not change. They are probably safe to remove.
13713
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13715 printf %s "checking for egrep... " >&6; }
13716 if test ${ac_cv_path_EGREP+y}
13717 then :
13718 printf %s "(cached) " >&6
13719 else $as_nop
13720 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13721 then ac_cv_path_EGREP="$GREP -E"
13722 else
13723 if test -z "$EGREP"; then
13724 ac_path_EGREP_found=false
13725 # Loop through the user's path and test for each of PROGNAME-LIST
13726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13728 do
13729 IFS=$as_save_IFS
13730 case $as_dir in #(((
13731 '') as_dir=./ ;;
13732 */) ;;
13733 *) as_dir=$as_dir/ ;;
13734 esac
13735 for ac_prog in egrep
13736 do
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
13739 as_fn_executable_p "$ac_path_EGREP" || continue
13740 # Check for GNU ac_path_EGREP and select it if it is found.
13741 # Check for GNU $ac_path_EGREP
13742 case `"$ac_path_EGREP" --version 2>&1` in
13743 *GNU*)
13744 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13745 *)
13746 ac_count=0
13747 printf %s 0123456789 >"conftest.in"
13748 while :
13749 do
13750 cat "conftest.in" "conftest.in" >"conftest.tmp"
13751 mv "conftest.tmp" "conftest.in"
13752 cp "conftest.in" "conftest.nl"
13753 printf "%s\n" 'EGREP' >> "conftest.nl"
13754 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13756 as_fn_arith $ac_count + 1 && ac_count=$as_val
13757 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13758 # Best one so far, save it but keep looking for a better one
13759 ac_cv_path_EGREP="$ac_path_EGREP"
13760 ac_path_EGREP_max=$ac_count
13761 fi
13762 # 10*(2^10) chars as input seems more than enough
13763 test $ac_count -gt 10 && break
13764 done
13765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13766 esac
13767
13768 $ac_path_EGREP_found && break 3
13769 done
13770 done
13771 done
13772 IFS=$as_save_IFS
13773 if test -z "$ac_cv_path_EGREP"; then
13774 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13775 fi
13776 else
13777 ac_cv_path_EGREP=$EGREP
13778 fi
13779
13780 fi
13781 fi
13782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13783 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
13784 EGREP="$ac_cv_path_EGREP"
13785
13786
13787
13788
13789
13790 # Obsolete code to be removed.
13791 if test $ac_cv_header_sys_time_h = yes; then
13792
13793 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13794
13795 fi
13796 # End of obsolete code.
13797
13798
13799 for ac_header in stdint.h stdbool.h stdarg.h inttypes.h
13800 do :
13801 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13802 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13803 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13804 then :
13805 cat >>confdefs.h <<_ACEOF
13806 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13807 _ACEOF
13808
13809 ice_found_std_headers="yes";
13810 break;
13811
13812 fi
13813
13814 done
13815
13816 if test "$ice_found_std_headers" != "yes"
13817 then :
13818
13819 as_fn_error $? "Unable to find the standard headers" "$LINENO" 5
13820
13821 fi
13822
13823 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
13824 if test "x$ac_cv_header_sys_select_h" = xyes
13825 then :
13826 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
13827
13828 fi
13829 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
13830 if test "x$ac_cv_header_errno_h" = xyes
13831 then :
13832 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
13833
13834 fi
13835 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13836 if test "x$ac_cv_header_fcntl_h" = xyes
13837 then :
13838 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13839
13840 fi
13841 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
13842 if test "x$ac_cv_header_sys_random_h" = xyes
13843 then :
13844 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
13845
13846 fi
13847
13848
13849
13850 for ac_func in open close read write fopen fclose fread fwrite
13851 do :
13852 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
13853 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13854 if eval test \"x\$"$as_ac_var"\" = x"yes"
13855 then :
13856 cat >>confdefs.h <<_ACEOF
13857 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
13858 _ACEOF
13859
13860 else $as_nop
13861 as_fn_error $? "Required I/O functions missing" "$LINENO" 5
13862 fi
13863
13864 done
13865
13866 ac_func=
13867 for ac_item in $ac_func_c_list
13868 do
13869 if test $ac_func; then
13870 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
13871 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
13872 echo "#define $ac_item 1" >> confdefs.h
13873 fi
13874 ac_func=
13875 else
13876 ac_func=$ac_item
13877 fi
13878 done
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13901 if test "x$ac_cv_type_size_t" = xyes
13902 then :
13903
13904 else $as_nop
13905
13906 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13907
13908 fi
13909
13910 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13911 if test "x$ac_cv_type_ssize_t" = xyes
13912 then :
13913
13914 else $as_nop
13915
13916 printf "%s\n" "#define ssize_t int" >>confdefs.h
13917
13918 fi
13919
13920
13921 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13922 if test "x$ac_cv_type_uintptr_t" = xyes
13923 then :
13924
13925 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
13926
13927 else $as_nop
13928 for ac_type in 'unsigned int' 'unsigned long int' \
13929 'unsigned long long int'; do
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13932 $ac_includes_default
13933 int
13934 main (void)
13935 {
13936 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13937 test_array [0] = 0;
13938 return test_array [0];
13939
13940 ;
13941 return 0;
13942 }
13943 _ACEOF
13944 if ac_fn_c_try_compile "$LINENO"
13945 then :
13946
13947 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
13948
13949 ac_type=
13950 fi
13951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13952 test -z "$ac_type" && break
13953 done
13954 fi
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13967 if test -n "$ac_tool_prefix"; then
13968 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13969 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13971 printf %s "checking for $ac_word... " >&6; }
13972 if test ${ac_cv_path_PKG_CONFIG+y}
13973 then :
13974 printf %s "(cached) " >&6
13975 else $as_nop
13976 case $PKG_CONFIG in
13977 [\\/]* | ?:[\\/]*)
13978 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13979 ;;
13980 *)
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $PATH
13983 do
13984 IFS=$as_save_IFS
13985 case $as_dir in #(((
13986 '') as_dir=./ ;;
13987 */) ;;
13988 *) as_dir=$as_dir/ ;;
13989 esac
13990 for ac_exec_ext in '' $ac_executable_extensions; do
13991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13992 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13994 break 2
13995 fi
13996 done
13997 done
13998 IFS=$as_save_IFS
13999
14000 ;;
14001 esac
14002 fi
14003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14004 if test -n "$PKG_CONFIG"; then
14005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14006 printf "%s\n" "$PKG_CONFIG" >&6; }
14007 else
14008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 printf "%s\n" "no" >&6; }
14010 fi
14011
14012
14013 fi
14014 if test -z "$ac_cv_path_PKG_CONFIG"; then
14015 ac_pt_PKG_CONFIG=$PKG_CONFIG
14016 # Extract the first word of "pkg-config", so it can be a program name with args.
14017 set dummy pkg-config; ac_word=$2
14018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14019 printf %s "checking for $ac_word... " >&6; }
14020 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14021 then :
14022 printf %s "(cached) " >&6
14023 else $as_nop
14024 case $ac_pt_PKG_CONFIG in
14025 [\\/]* | ?:[\\/]*)
14026 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14027 ;;
14028 *)
14029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030 for as_dir in $PATH
14031 do
14032 IFS=$as_save_IFS
14033 case $as_dir in #(((
14034 '') as_dir=./ ;;
14035 */) ;;
14036 *) as_dir=$as_dir/ ;;
14037 esac
14038 for ac_exec_ext in '' $ac_executable_extensions; do
14039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14040 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14042 break 2
14043 fi
14044 done
14045 done
14046 IFS=$as_save_IFS
14047
14048 ;;
14049 esac
14050 fi
14051 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14052 if test -n "$ac_pt_PKG_CONFIG"; then
14053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14054 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14055 else
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057 printf "%s\n" "no" >&6; }
14058 fi
14059
14060 if test "x$ac_pt_PKG_CONFIG" = x; then
14061 PKG_CONFIG=""
14062 else
14063 case $cross_compiling:$ac_tool_warned in
14064 yes:)
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14066 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14067 ac_tool_warned=yes ;;
14068 esac
14069 PKG_CONFIG=$ac_pt_PKG_CONFIG
14070 fi
14071 else
14072 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14073 fi
14074
14075 fi
14076 if test -n "$PKG_CONFIG"; then
14077 _pkg_min_version=0.9.0
14078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14079 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14080 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14082 printf "%s\n" "yes" >&6; }
14083 else
14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14085 printf "%s\n" "no" >&6; }
14086 PKG_CONFIG=""
14087 fi
14088 fi
14089
14090 pkg_failed=no
14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librhash" >&5
14092 printf %s "checking for librhash... " >&6; }
14093
14094 if test -n "$LIBRHASH_CFLAGS"; then
14095 pkg_cv_LIBRHASH_CFLAGS="$LIBRHASH_CFLAGS"
14096 elif test -n "$PKG_CONFIG"; then
14097 if test -n "$PKG_CONFIG" && \
14098 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librhash\""; } >&5
14099 ($PKG_CONFIG --exists --print-errors "librhash") 2>&5
14100 ac_status=$?
14101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14102 test $ac_status = 0; }; then
14103 pkg_cv_LIBRHASH_CFLAGS=`$PKG_CONFIG --cflags "librhash" 2>/dev/null`
14104 test "x$?" != "x0" && pkg_failed=yes
14105 else
14106 pkg_failed=yes
14107 fi
14108 else
14109 pkg_failed=untried
14110 fi
14111 if test -n "$LIBRHASH_LIBS"; then
14112 pkg_cv_LIBRHASH_LIBS="$LIBRHASH_LIBS"
14113 elif test -n "$PKG_CONFIG"; then
14114 if test -n "$PKG_CONFIG" && \
14115 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librhash\""; } >&5
14116 ($PKG_CONFIG --exists --print-errors "librhash") 2>&5
14117 ac_status=$?
14118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14119 test $ac_status = 0; }; then
14120 pkg_cv_LIBRHASH_LIBS=`$PKG_CONFIG --libs "librhash" 2>/dev/null`
14121 test "x$?" != "x0" && pkg_failed=yes
14122 else
14123 pkg_failed=yes
14124 fi
14125 else
14126 pkg_failed=untried
14127 fi
14128
14129
14130
14131 if test $pkg_failed = yes; then
14132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 printf "%s\n" "no" >&6; }
14134
14135 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14136 _pkg_short_errors_supported=yes
14137 else
14138 _pkg_short_errors_supported=no
14139 fi
14140 if test $_pkg_short_errors_supported = yes; then
14141 LIBRHASH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librhash" 2>&1`
14142 else
14143 LIBRHASH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librhash" 2>&1`
14144 fi
14145 # Put the nasty error message in config.log where it belongs
14146 echo "$LIBRHASH_PKG_ERRORS" >&5
14147
14148
14149 ac_fn_c_check_header_compile "$LINENO" "rhash.h" "ac_cv_header_rhash_h" "$ac_includes_default"
14150 if test "x$ac_cv_header_rhash_h" = xyes
14151 then :
14152
14153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rhash_library_init in -lrhash" >&5
14154 printf %s "checking for rhash_library_init in -lrhash... " >&6; }
14155 if test ${ac_cv_lib_rhash_rhash_library_init+y}
14156 then :
14157 printf %s "(cached) " >&6
14158 else $as_nop
14159 ac_check_lib_save_LIBS=$LIBS
14160 LIBS="-lrhash $LIBS"
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14163
14164 /* Override any GCC internal prototype to avoid an error.
14165 Use char because int might match the return type of a GCC
14166 builtin and then its argument prototype would still apply. */
14167 char rhash_library_init ();
14168 int
14169 main (void)
14170 {
14171 return rhash_library_init ();
14172 ;
14173 return 0;
14174 }
14175 _ACEOF
14176 if ac_fn_c_try_link "$LINENO"
14177 then :
14178 ac_cv_lib_rhash_rhash_library_init=yes
14179 else $as_nop
14180 ac_cv_lib_rhash_rhash_library_init=no
14181 fi
14182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14183 conftest$ac_exeext conftest.$ac_ext
14184 LIBS=$ac_check_lib_save_LIBS
14185 fi
14186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rhash_rhash_library_init" >&5
14187 printf "%s\n" "$ac_cv_lib_rhash_rhash_library_init" >&6; }
14188 if test "x$ac_cv_lib_rhash_rhash_library_init" = xyes
14189 then :
14190 printf "%s\n" "#define HAVE_LIBRHASH 1" >>confdefs.h
14191
14192 LIBS="-lrhash $LIBS"
14193
14194 else $as_nop
14195
14196 as_fn_error $? "${LIBRHASH_PKG_ERRORS}. librhash is required." "$LINENO" 5
14197
14198 fi
14199
14200
14201 else $as_nop
14202
14203 as_fn_error $? "${LIBRHASH_PKG_ERRORS}. librhash is required." "$LINENO" 5
14204
14205 fi
14206
14207
14208 elif test $pkg_failed = untried; then
14209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 printf "%s\n" "no" >&6; }
14211
14212 ac_fn_c_check_header_compile "$LINENO" "rhash.h" "ac_cv_header_rhash_h" "$ac_includes_default"
14213 if test "x$ac_cv_header_rhash_h" = xyes
14214 then :
14215
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rhash_library_init in -lrhash" >&5
14217 printf %s "checking for rhash_library_init in -lrhash... " >&6; }
14218 if test ${ac_cv_lib_rhash_rhash_library_init+y}
14219 then :
14220 printf %s "(cached) " >&6
14221 else $as_nop
14222 ac_check_lib_save_LIBS=$LIBS
14223 LIBS="-lrhash $LIBS"
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226
14227 /* Override any GCC internal prototype to avoid an error.
14228 Use char because int might match the return type of a GCC
14229 builtin and then its argument prototype would still apply. */
14230 char rhash_library_init ();
14231 int
14232 main (void)
14233 {
14234 return rhash_library_init ();
14235 ;
14236 return 0;
14237 }
14238 _ACEOF
14239 if ac_fn_c_try_link "$LINENO"
14240 then :
14241 ac_cv_lib_rhash_rhash_library_init=yes
14242 else $as_nop
14243 ac_cv_lib_rhash_rhash_library_init=no
14244 fi
14245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14246 conftest$ac_exeext conftest.$ac_ext
14247 LIBS=$ac_check_lib_save_LIBS
14248 fi
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rhash_rhash_library_init" >&5
14250 printf "%s\n" "$ac_cv_lib_rhash_rhash_library_init" >&6; }
14251 if test "x$ac_cv_lib_rhash_rhash_library_init" = xyes
14252 then :
14253 printf "%s\n" "#define HAVE_LIBRHASH 1" >>confdefs.h
14254
14255 LIBS="-lrhash $LIBS"
14256
14257 else $as_nop
14258
14259 as_fn_error $? "${LIBRHASH_PKG_ERRORS}. librhash is required." "$LINENO" 5
14260
14261 fi
14262
14263
14264 else $as_nop
14265
14266 as_fn_error $? "${LIBRHASH_PKG_ERRORS}. librhash is required." "$LINENO" 5
14267
14268 fi
14269
14270
14271 else
14272 LIBRHASH_CFLAGS=$pkg_cv_LIBRHASH_CFLAGS
14273 LIBRHASH_LIBS=$pkg_cv_LIBRHASH_LIBS
14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14275 printf "%s\n" "yes" >&6; }
14276
14277 CFLAGS="${CFLAGS} ${LIBRHASH_CFLAGS}"
14278 LIBS="${LIBS} ${LIBRHASH_LIBS}"
14279
14280 fi
14281
14282
14283
14284
14285 ac_ext=c
14286 ac_cpp='$CPP $CPPFLAGS'
14287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14290
14291 acx_pthread_ok=no
14292
14293 # We used to check for pthread.h first, but this fails if pthread.h
14294 # requires special compiler flags (e.g. on True64 or Sequent).
14295 # It gets checked for in the link test anyway.
14296
14297 # First of all, check if the user has set any of the PTHREAD_LIBS,
14298 # etcetera environment variables, and if threads linking works using
14299 # them:
14300 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14301 save_CFLAGS="$CFLAGS"
14302 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14303 save_LIBS="$LIBS"
14304 LIBS="$PTHREAD_LIBS $LIBS"
14305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14306 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309
14310 /* Override any GCC internal prototype to avoid an error.
14311 Use char because int might match the return type of a GCC
14312 builtin and then its argument prototype would still apply. */
14313 char pthread_join ();
14314 int
14315 main (void)
14316 {
14317 return pthread_join ();
14318 ;
14319 return 0;
14320 }
14321 _ACEOF
14322 if ac_fn_c_try_link "$LINENO"
14323 then :
14324 acx_pthread_ok=yes
14325 fi
14326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14327 conftest$ac_exeext conftest.$ac_ext
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14329 printf "%s\n" "$acx_pthread_ok" >&6; }
14330 if test x"$acx_pthread_ok" = xno; then
14331 PTHREAD_LIBS=""
14332 PTHREAD_CFLAGS=""
14333 fi
14334 LIBS="$save_LIBS"
14335 CFLAGS="$save_CFLAGS"
14336 fi
14337
14338 # We must check for the threads library under a number of different
14339 # names; the ordering is very important because some systems
14340 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14341 # libraries is broken (non-POSIX).
14342
14343 # Create a list of thread flags to try. Items starting with a "-" are
14344 # C compiler flags, and other items are library names, except for "none"
14345 # which indicates that we try without any flags at all, and "pthread-config"
14346 # which is a program returning the flags for the Pth emulation library.
14347
14348 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14349
14350 # The ordering *is* (sometimes) important. Some notes on the
14351 # individual items follow:
14352
14353 # pthreads: AIX (must check this before -lpthread)
14354 # none: in case threads are in libc; should be tried before -Kthread and
14355 # other compiler flags to prevent continual compiler warnings
14356 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14357 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14358 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14359 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14360 # -pthreads: Solaris/gcc
14361 # -mthreads: Mingw32/gcc, Lynx/gcc
14362 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14363 # doesn't hurt to check since this sometimes defines pthreads too;
14364 # also defines -D_REENTRANT)
14365 # ... -mt is also the pthreads flag for HP/aCC
14366 # pthread: Linux, etcetera
14367 # --thread-safe: KAI C++
14368 # pthread-config: use pthread-config program (for GNU Pth library)
14369
14370 case "${host_cpu}-${host_os}" in
14371 *solaris*)
14372
14373 # On Solaris (at least, for some versions), libc contains stubbed
14374 # (non-functional) versions of the pthreads routines, so link-based
14375 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14376 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14377 # a function called by this macro, so we could check for that, but
14378 # who knows whether they'll stub that too in a future libc.) So,
14379 # we'll just look for -pthreads and -lpthread first:
14380
14381 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14382 ;;
14383 esac
14384
14385 if test x"$acx_pthread_ok" = xno; then
14386 for flag in $acx_pthread_flags; do
14387
14388 case $flag in
14389 none)
14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14391 printf %s "checking whether pthreads work without any flags... " >&6; }
14392 ;;
14393
14394 -*)
14395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14396 printf %s "checking whether pthreads work with $flag... " >&6; }
14397 PTHREAD_CFLAGS="$flag"
14398 ;;
14399
14400 pthread-config)
14401 # Extract the first word of "pthread-config", so it can be a program name with args.
14402 set dummy pthread-config; ac_word=$2
14403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14404 printf %s "checking for $ac_word... " >&6; }
14405 if test ${ac_cv_prog_acx_pthread_config+y}
14406 then :
14407 printf %s "(cached) " >&6
14408 else $as_nop
14409 if test -n "$acx_pthread_config"; then
14410 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14411 else
14412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14413 for as_dir in $PATH
14414 do
14415 IFS=$as_save_IFS
14416 case $as_dir in #(((
14417 '') as_dir=./ ;;
14418 */) ;;
14419 *) as_dir=$as_dir/ ;;
14420 esac
14421 for ac_exec_ext in '' $ac_executable_extensions; do
14422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14423 ac_cv_prog_acx_pthread_config="yes"
14424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14425 break 2
14426 fi
14427 done
14428 done
14429 IFS=$as_save_IFS
14430
14431 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14432 fi
14433 fi
14434 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14435 if test -n "$acx_pthread_config"; then
14436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14437 printf "%s\n" "$acx_pthread_config" >&6; }
14438 else
14439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440 printf "%s\n" "no" >&6; }
14441 fi
14442
14443
14444 if test x"$acx_pthread_config" = xno; then continue; fi
14445 PTHREAD_CFLAGS="`pthread-config --cflags`"
14446 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14447 ;;
14448
14449 *)
14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14451 printf %s "checking for the pthreads library -l$flag... " >&6; }
14452 PTHREAD_LIBS="-l$flag"
14453 ;;
14454 esac
14455
14456 save_LIBS="$LIBS"
14457 save_CFLAGS="$CFLAGS"
14458 LIBS="$PTHREAD_LIBS $LIBS"
14459 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14460
14461 # Check for various functions. We must include pthread.h,
14462 # since some functions may be macros. (On the Sequent, we
14463 # need a special flag -Kthread to make this header compile.)
14464 # We check for pthread_join because it is in -lpthread on IRIX
14465 # while pthread_create is in libc. We check for pthread_attr_init
14466 # due to DEC craziness with -lpthreads. We check for
14467 # pthread_cleanup_push because it is one of the few pthread
14468 # functions on Solaris that doesn't have a non-functional libc stub.
14469 # We try pthread_create on general principles.
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472 #include <pthread.h>
14473 int
14474 main (void)
14475 {
14476 pthread_t th; pthread_join(th, 0);
14477 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14478 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14479 ;
14480 return 0;
14481 }
14482 _ACEOF
14483 if ac_fn_c_try_link "$LINENO"
14484 then :
14485 acx_pthread_ok=yes
14486 fi
14487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14488 conftest$ac_exeext conftest.$ac_ext
14489
14490 LIBS="$save_LIBS"
14491 CFLAGS="$save_CFLAGS"
14492
14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14494 printf "%s\n" "$acx_pthread_ok" >&6; }
14495 if test "x$acx_pthread_ok" = xyes; then
14496 break;
14497 fi
14498
14499 PTHREAD_LIBS=""
14500 PTHREAD_CFLAGS=""
14501 done
14502 fi
14503
14504 # Various other checks:
14505 if test "x$acx_pthread_ok" = xyes; then
14506 save_LIBS="$LIBS"
14507 LIBS="$PTHREAD_LIBS $LIBS"
14508 save_CFLAGS="$CFLAGS"
14509 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14510
14511 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14513 printf %s "checking for joinable pthread attribute... " >&6; }
14514 attr_name=unknown
14515 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518 #include <pthread.h>
14519 int
14520 main (void)
14521 {
14522 int attr=$attr; return attr;
14523 ;
14524 return 0;
14525 }
14526 _ACEOF
14527 if ac_fn_c_try_link "$LINENO"
14528 then :
14529 attr_name=$attr; break
14530 fi
14531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14532 conftest$ac_exeext conftest.$ac_ext
14533 done
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14535 printf "%s\n" "$attr_name" >&6; }
14536 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14537
14538 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
14539
14540 fi
14541
14542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14543 printf %s "checking if more special flags are required for pthreads... " >&6; }
14544 flag=no
14545 case "${host_cpu}-${host_os}" in
14546 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14547 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14548 esac
14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14550 printf "%s\n" "${flag}" >&6; }
14551 if test "x$flag" != xno; then
14552 PTHREAD_CPPFLAGS="$flag $PTHREAD_CPPFLAGS"
14553 fi
14554
14555 ac_fn_c_check_func "$LINENO" "pthread_spin_lock" "ac_cv_func_pthread_spin_lock"
14556 if test "x$ac_cv_func_pthread_spin_lock" = xyes
14557 then :
14558 printf "%s\n" "#define HAVE_PTHREAD_SPIN_LOCK 1" >>confdefs.h
14559
14560 fi
14561
14562 LIBS="$save_LIBS"
14563 CFLAGS="$save_CFLAGS"
14564
14565 # More AIX lossage: must compile with xlc_r or cc_r
14566 if test x"$GCC" != xyes; then
14567 for ac_prog in xlc_r cc_r
14568 do
14569 # Extract the first word of "$ac_prog", so it can be a program name with args.
14570 set dummy $ac_prog; ac_word=$2
14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14572 printf %s "checking for $ac_word... " >&6; }
14573 if test ${ac_cv_prog_PTHREAD_CC+y}
14574 then :
14575 printf %s "(cached) " >&6
14576 else $as_nop
14577 if test -n "$PTHREAD_CC"; then
14578 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14579 else
14580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14581 for as_dir in $PATH
14582 do
14583 IFS=$as_save_IFS
14584 case $as_dir in #(((
14585 '') as_dir=./ ;;
14586 */) ;;
14587 *) as_dir=$as_dir/ ;;
14588 esac
14589 for ac_exec_ext in '' $ac_executable_extensions; do
14590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14591 ac_cv_prog_PTHREAD_CC="$ac_prog"
14592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14593 break 2
14594 fi
14595 done
14596 done
14597 IFS=$as_save_IFS
14598
14599 fi
14600 fi
14601 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14602 if test -n "$PTHREAD_CC"; then
14603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14604 printf "%s\n" "$PTHREAD_CC" >&6; }
14605 else
14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14607 printf "%s\n" "no" >&6; }
14608 fi
14609
14610
14611 test -n "$PTHREAD_CC" && break
14612 done
14613 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14614
14615 else
14616 PTHREAD_CC=$CC
14617 fi
14618 else
14619 PTHREAD_CC="$CC"
14620 fi
14621
14622
14623
14624
14625
14626
14627 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14628 if test x"$acx_pthread_ok" = xyes; then
14629
14630 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
14631
14632 :
14633 else
14634 acx_pthread_ok=no
14635 as_fn_error $? "POSIX threads missing" "$LINENO" 5
14636 fi
14637 ac_ext=c
14638 ac_cpp='$CPP $CPPFLAGS'
14639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14642
14643
14644
14645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
14646 printf %s "checking for library containing log2... " >&6; }
14647 if test ${ac_cv_search_log2+y}
14648 then :
14649 printf %s "(cached) " >&6
14650 else $as_nop
14651 ac_func_search_save_LIBS=$LIBS
14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14654
14655 /* Override any GCC internal prototype to avoid an error.
14656 Use char because int might match the return type of a GCC
14657 builtin and then its argument prototype would still apply. */
14658 char log2 ();
14659 int
14660 main (void)
14661 {
14662 return log2 ();
14663 ;
14664 return 0;
14665 }
14666 _ACEOF
14667 for ac_lib in '' m
14668 do
14669 if test -z "$ac_lib"; then
14670 ac_res="none required"
14671 else
14672 ac_res=-l$ac_lib
14673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14674 fi
14675 if ac_fn_c_try_link "$LINENO"
14676 then :
14677 ac_cv_search_log2=$ac_res
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14680 conftest$ac_exeext
14681 if test ${ac_cv_search_log2+y}
14682 then :
14683 break
14684 fi
14685 done
14686 if test ${ac_cv_search_log2+y}
14687 then :
14688
14689 else $as_nop
14690 ac_cv_search_log2=no
14691 fi
14692 rm conftest.$ac_ext
14693 LIBS=$ac_func_search_save_LIBS
14694 fi
14695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
14696 printf "%s\n" "$ac_cv_search_log2" >&6; }
14697 ac_res=$ac_cv_search_log2
14698 if test "$ac_res" != no
14699 then :
14700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14701
14702 else $as_nop
14703 as_fn_error $? "unable to find the log2() function" "$LINENO" 5
14704 fi
14705
14706
14707 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
14708 CPPFLAGS="${CPPFLAGS} ${PTHREAD_CPPFLAGS}"
14709 LIBS="${LIBS} ${PTHREAD_LIBS}"
14710
14711
14712
14713
14714
14715
14716 # Check whether --with-machine-id was given.
14717 if test ${with_machine_id+y}
14718 then :
14719 withval=$with_machine_id;
14720 else $as_nop
14721 if test "$build" = "$host"
14722 then :
14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /etc/machine-id" >&5
14724 printf %s "checking for /etc/machine-id... " >&6; }
14725 if test ${ac_cv_file__etc_machine_id+y}
14726 then :
14727 printf %s "(cached) " >&6
14728 else $as_nop
14729 test "$cross_compiling" = yes &&
14730 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14731 if test -r "/etc/machine-id"; then
14732 ac_cv_file__etc_machine_id=yes
14733 else
14734 ac_cv_file__etc_machine_id=no
14735 fi
14736 fi
14737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_machine_id" >&5
14738 printf "%s\n" "$ac_cv_file__etc_machine_id" >&6; }
14739 if test "x$ac_cv_file__etc_machine_id" = xyes
14740 then :
14741 with_machine_id="/etc/machine-id"
14742 fi
14743
14744 fi
14745 fi
14746
14747 if test "$with_machine_id" != "no"
14748 then :
14749
14750 if test "$with_machine_id" = "yes"
14751 then :
14752 as_fn_error $? "You need to supply a path as value for --with-machine-id" "$LINENO" 5
14753 fi
14754
14755 printf "%s\n" "#define PATH_MACHINE_ID \"$with_machine_id\"" >>confdefs.h
14756
14757
14758 fi
14759
14760
14761
14762 # Check whether --with-boot-id was given.
14763 if test ${with_boot_id+y}
14764 then :
14765 withval=$with_boot_id;
14766 else $as_nop
14767 if test "$build" = "$host"
14768 then :
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /proc/sys/kernel/random/boot_id" >&5
14770 printf %s "checking for /proc/sys/kernel/random/boot_id... " >&6; }
14771 if test ${ac_cv_file__proc_sys_kernel_random_boot_id+y}
14772 then :
14773 printf %s "(cached) " >&6
14774 else $as_nop
14775 test "$cross_compiling" = yes &&
14776 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14777 if test -r "/proc/sys/kernel/random/boot_id"; then
14778 ac_cv_file__proc_sys_kernel_random_boot_id=yes
14779 else
14780 ac_cv_file__proc_sys_kernel_random_boot_id=no
14781 fi
14782 fi
14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_sys_kernel_random_boot_id" >&5
14784 printf "%s\n" "$ac_cv_file__proc_sys_kernel_random_boot_id" >&6; }
14785 if test "x$ac_cv_file__proc_sys_kernel_random_boot_id" = xyes
14786 then :
14787 with_boot_id="/proc/sys/kernel/random/boot_id"
14788 fi
14789
14790 fi
14791 fi
14792
14793 if test "$with_boot_id" != "no"
14794 then :
14795
14796 if test "$with_boot_id" = "yes"
14797 then :
14798 as_fn_error $? "You need to supply a path as value for --with-boot-id" "$LINENO" 5
14799 fi
14800
14801 printf "%s\n" "#define PATH_BOOT_ID \"$with_boot_id\"" >>confdefs.h
14802
14803
14804 fi
14805
14806
14807
14808 # Check whether --with-urandom was given.
14809 if test ${with_urandom+y}
14810 then :
14811 withval=$with_urandom;
14812 else $as_nop
14813 if test "$build" = "$host"
14814 then :
14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
14816 printf %s "checking for /dev/urandom... " >&6; }
14817 if test ${ac_cv_file__dev_urandom+y}
14818 then :
14819 printf %s "(cached) " >&6
14820 else $as_nop
14821 test "$cross_compiling" = yes &&
14822 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14823 if test -r "/dev/urandom"; then
14824 ac_cv_file__dev_urandom=yes
14825 else
14826 ac_cv_file__dev_urandom=no
14827 fi
14828 fi
14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
14830 printf "%s\n" "$ac_cv_file__dev_urandom" >&6; }
14831 if test "x$ac_cv_file__dev_urandom" = xyes
14832 then :
14833 with_urandom="/dev/urandom"
14834 fi
14835
14836 fi
14837 fi
14838
14839 if test "$with_urandom" != "no"
14840 then :
14841
14842 if test "$with_urandom" = "yes"
14843 then :
14844 as_fn_error $? "You need to supply a path as value for --with-urandom" "$LINENO" 5
14845 fi
14846
14847 printf "%s\n" "#define PATH_URANDOM \"$with_urandom\"" >>confdefs.h
14848
14849
14850 fi
14851
14852
14853
14854
14855 printf "%s\n" "#define igloo_INTERNAL 1" >>confdefs.h
14856
14857
14858
14859
14860
14861 ac_config_headers="$ac_config_headers config.h"
14862
14863
14864 ac_config_files="$ac_config_files Makefile igloo.pc"
14865
14866
14867 cat >confcache <<\_ACEOF
14868 # This file is a shell script that caches the results of configure
14869 # tests run on this system so they can be shared between configure
14870 # scripts and configure runs, see configure's option --config-cache.
14871 # It is not useful on other systems. If it contains results you don't
14872 # want to keep, you may remove or edit it.
14873 #
14874 # config.status only pays attention to the cache file if you give it
14875 # the --recheck option to rerun configure.
14876 #
14877 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14878 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14879 # following values.
14880
14881 _ACEOF
14882
14883 # The following way of writing the cache mishandles newlines in values,
14884 # but we know of no workaround that is simple, portable, and efficient.
14885 # So, we kill variables containing newlines.
14886 # Ultrix sh set writes to stderr and can't be redirected directly,
14887 # and sets the high bit in the cache file unless we assign to the vars.
14888 (
14889 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14890 eval ac_val=\$$ac_var
14891 case $ac_val in #(
14892 *${as_nl}*)
14893 case $ac_var in #(
14894 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14895 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14896 esac
14897 case $ac_var in #(
14898 _ | IFS | as_nl) ;; #(
14899 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14900 *) { eval $ac_var=; unset $ac_var;} ;;
14901 esac ;;
14902 esac
14903 done
14904
14905 (set) 2>&1 |
14906 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14907 *${as_nl}ac_space=\ *)
14908 # `set' does not quote correctly, so add quotes: double-quote
14909 # substitution turns \\\\ into \\, and sed turns \\ into \.
14910 sed -n \
14911 "s/'/'\\\\''/g;
14912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14913 ;; #(
14914 *)
14915 # `set' quotes correctly as required by POSIX, so do not add quotes.
14916 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14917 ;;
14918 esac |
14919 sort
14920 ) |
14921 sed '
14922 /^ac_cv_env_/b end
14923 t clear
14924 :clear
14925 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14926 t end
14927 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14928 :end' >>confcache
14929 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14930 if test -w "$cache_file"; then
14931 if test "x$cache_file" != "x/dev/null"; then
14932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14933 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14934 if test ! -f "$cache_file" || test -h "$cache_file"; then
14935 cat confcache >"$cache_file"
14936 else
14937 case $cache_file in #(
14938 */* | ?:*)
14939 mv -f confcache "$cache_file"$$ &&
14940 mv -f "$cache_file"$$ "$cache_file" ;; #(
14941 *)
14942 mv -f confcache "$cache_file" ;;
14943 esac
14944 fi
14945 fi
14946 else
14947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14948 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14949 fi
14950 fi
14951 rm -f confcache
14952
14953 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14954 # Let make expand exec_prefix.
14955 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14956
14957 DEFS=-DHAVE_CONFIG_H
14958
14959 ac_libobjs=
14960 ac_ltlibobjs=
14961 U=
14962 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14963 # 1. Remove the extension, and $U if already installed.
14964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14965 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14967 # will be set to the directory where LIBOBJS objects are built.
14968 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14969 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14970 done
14971 LIBOBJS=$ac_libobjs
14972
14973 LTLIBOBJS=$ac_ltlibobjs
14974
14975
14976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14977 printf %s "checking that generated files are newer than configure... " >&6; }
14978 if test -n "$am_sleep_pid"; then
14979 # Hide warnings about reused PIDs.
14980 wait $am_sleep_pid 2>/dev/null
14981 fi
14982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14983 printf "%s\n" "done" >&6; }
14984 if test -n "$EXEEXT"; then
14985 am__EXEEXT_TRUE=
14986 am__EXEEXT_FALSE='#'
14987 else
14988 am__EXEEXT_TRUE='#'
14989 am__EXEEXT_FALSE=
14990 fi
14991
14992 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14993 as_fn_error $? "conditional \"AMDEP\" was never defined.
14994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14995 fi
14996 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14997 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14999 fi
15000
15001 : "${CONFIG_STATUS=./config.status}"
15002 ac_write_fail=0
15003 ac_clean_files_save=$ac_clean_files
15004 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15006 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15007 as_write_fail=0
15008 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15009 #! $SHELL
15010 # Generated by $as_me.
15011 # Run this file to recreate the current configuration.
15012 # Compiler output produced by configure, useful for debugging
15013 # configure, is in config.log if it exists.
15014
15015 debug=false
15016 ac_cs_recheck=false
15017 ac_cs_silent=false
15018
15019 SHELL=\${CONFIG_SHELL-$SHELL}
15020 export SHELL
15021 _ASEOF
15022 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15023 ## -------------------- ##
15024 ## M4sh Initialization. ##
15025 ## -------------------- ##
15026
15027 # Be more Bourne compatible
15028 DUALCASE=1; export DUALCASE # for MKS sh
15029 as_nop=:
15030 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15031 then :
15032 emulate sh
15033 NULLCMD=:
15034 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15035 # is contrary to our usage. Disable this feature.
15036 alias -g '${1+"$@"}'='"$@"'
15037 setopt NO_GLOB_SUBST
15038 else $as_nop
15039 case `(set -o) 2>/dev/null` in #(
15040 *posix*) :
15041 set -o posix ;; #(
15042 *) :
15043 ;;
15044 esac
15045 fi
15046
15047
15048
15049 # Reset variables that may have inherited troublesome values from
15050 # the environment.
15051
15052 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15053 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15054 # side effect of setting IFS to empty, thus disabling word splitting.)
15055 # Quoting is to prevent editors from complaining about space-tab.
15056 as_nl='
15057 '
15058 export as_nl
15059 IFS=" "" $as_nl"
15060
15061 PS1='$ '
15062 PS2='> '
15063 PS4='+ '
15064
15065 # Ensure predictable behavior from utilities with locale-dependent output.
15066 LC_ALL=C
15067 export LC_ALL
15068 LANGUAGE=C
15069 export LANGUAGE
15070
15071 # We cannot yet rely on "unset" to work, but we need these variables
15072 # to be unset--not just set to an empty or harmless value--now, to
15073 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15074 # also avoids known problems related to "unset" and subshell syntax
15075 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15076 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15077 do eval test \${$as_var+y} \
15078 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15079 done
15080
15081 # Ensure that fds 0, 1, and 2 are open.
15082 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15083 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15084 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15085
15086 # The user is always right.
15087 if ${PATH_SEPARATOR+false} :; then
15088 PATH_SEPARATOR=:
15089 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15090 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15091 PATH_SEPARATOR=';'
15092 }
15093 fi
15094
15095
15096 # Find who we are. Look in the path if we contain no directory separator.
15097 as_myself=
15098 case $0 in #((
15099 *[\\/]* ) as_myself=$0 ;;
15100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15101 for as_dir in $PATH
15102 do
15103 IFS=$as_save_IFS
15104 case $as_dir in #(((
15105 '') as_dir=./ ;;
15106 */) ;;
15107 *) as_dir=$as_dir/ ;;
15108 esac
15109 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15110 done
15111 IFS=$as_save_IFS
15112
15113 ;;
15114 esac
15115 # We did not find ourselves, most probably we were run as `sh COMMAND'
15116 # in which case we are not to be found in the path.
15117 if test "x$as_myself" = x; then
15118 as_myself=$0
15119 fi
15120 if test ! -f "$as_myself"; then
15121 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15122 exit 1
15123 fi
15124
15125
15126
15127 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15128 # ----------------------------------------
15129 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15130 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15131 # script with STATUS, using 1 if that was 0.
15132 as_fn_error ()
15133 {
15134 as_status=$1; test $as_status -eq 0 && as_status=1
15135 if test "$4"; then
15136 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15138 fi
15139 printf "%s\n" "$as_me: error: $2" >&2
15140 as_fn_exit $as_status
15141 } # as_fn_error
15142
15143
15144
15145 # as_fn_set_status STATUS
15146 # -----------------------
15147 # Set $? to STATUS, without forking.
15148 as_fn_set_status ()
15149 {
15150 return $1
15151 } # as_fn_set_status
15152
15153 # as_fn_exit STATUS
15154 # -----------------
15155 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15156 as_fn_exit ()
15157 {
15158 set +e
15159 as_fn_set_status $1
15160 exit $1
15161 } # as_fn_exit
15162
15163 # as_fn_unset VAR
15164 # ---------------
15165 # Portably unset VAR.
15166 as_fn_unset ()
15167 {
15168 { eval $1=; unset $1;}
15169 }
15170 as_unset=as_fn_unset
15171
15172 # as_fn_append VAR VALUE
15173 # ----------------------
15174 # Append the text in VALUE to the end of the definition contained in VAR. Take
15175 # advantage of any shell optimizations that allow amortized linear growth over
15176 # repeated appends, instead of the typical quadratic growth present in naive
15177 # implementations.
15178 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15179 then :
15180 eval 'as_fn_append ()
15181 {
15182 eval $1+=\$2
15183 }'
15184 else $as_nop
15185 as_fn_append ()
15186 {
15187 eval $1=\$$1\$2
15188 }
15189 fi # as_fn_append
15190
15191 # as_fn_arith ARG...
15192 # ------------------
15193 # Perform arithmetic evaluation on the ARGs, and store the result in the
15194 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15195 # must be portable across $(()) and expr.
15196 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15197 then :
15198 eval 'as_fn_arith ()
15199 {
15200 as_val=$(( $* ))
15201 }'
15202 else $as_nop
15203 as_fn_arith ()
15204 {
15205 as_val=`expr "$@" || test $? -eq 1`
15206 }
15207 fi # as_fn_arith
15208
15209
15210 if expr a : '\(a\)' >/dev/null 2>&1 &&
15211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15212 as_expr=expr
15213 else
15214 as_expr=false
15215 fi
15216
15217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15218 as_basename=basename
15219 else
15220 as_basename=false
15221 fi
15222
15223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15224 as_dirname=dirname
15225 else
15226 as_dirname=false
15227 fi
15228
15229 as_me=`$as_basename -- "$0" ||
15230 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15231 X"$0" : 'X\(//\)$' \| \
15232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15233 printf "%s\n" X/"$0" |
15234 sed '/^.*\/\([^/][^/]*\)\/*$/{
15235 s//\1/
15236 q
15237 }
15238 /^X\/\(\/\/\)$/{
15239 s//\1/
15240 q
15241 }
15242 /^X\/\(\/\).*/{
15243 s//\1/
15244 q
15245 }
15246 s/.*/./; q'`
15247
15248 # Avoid depending upon Character Ranges.
15249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15252 as_cr_digits='0123456789'
15253 as_cr_alnum=$as_cr_Letters$as_cr_digits
15254
15255
15256 # Determine whether it's possible to make 'echo' print without a newline.
15257 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15258 # for compatibility with existing Makefiles.
15259 ECHO_C= ECHO_N= ECHO_T=
15260 case `echo -n x` in #(((((
15261 -n*)
15262 case `echo 'xy\c'` in
15263 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15264 xy) ECHO_C='\c';;
15265 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15266 ECHO_T=' ';;
15267 esac;;
15268 *)
15269 ECHO_N='-n';;
15270 esac
15271
15272 # For backward compatibility with old third-party macros, we provide
15273 # the shell variables $as_echo and $as_echo_n. New code should use
15274 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15275 as_echo='printf %s\n'
15276 as_echo_n='printf %s'
15277
15278 rm -f conf$$ conf$$.exe conf$$.file
15279 if test -d conf$$.dir; then
15280 rm -f conf$$.dir/conf$$.file
15281 else
15282 rm -f conf$$.dir
15283 mkdir conf$$.dir 2>/dev/null
15284 fi
15285 if (echo >conf$$.file) 2>/dev/null; then
15286 if ln -s conf$$.file conf$$ 2>/dev/null; then
15287 as_ln_s='ln -s'
15288 # ... but there are two gotchas:
15289 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15290 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15291 # In both cases, we have to default to `cp -pR'.
15292 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15293 as_ln_s='cp -pR'
15294 elif ln conf$$.file conf$$ 2>/dev/null; then
15295 as_ln_s=ln
15296 else
15297 as_ln_s='cp -pR'
15298 fi
15299 else
15300 as_ln_s='cp -pR'
15301 fi
15302 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15303 rmdir conf$$.dir 2>/dev/null
15304
15305
15306 # as_fn_mkdir_p
15307 # -------------
15308 # Create "$as_dir" as a directory, including parents if necessary.
15309 as_fn_mkdir_p ()
15310 {
15311
15312 case $as_dir in #(
15313 -*) as_dir=./$as_dir;;
15314 esac
15315 test -d "$as_dir" || eval $as_mkdir_p || {
15316 as_dirs=
15317 while :; do
15318 case $as_dir in #(
15319 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15320 *) as_qdir=$as_dir;;
15321 esac
15322 as_dirs="'$as_qdir' $as_dirs"
15323 as_dir=`$as_dirname -- "$as_dir" ||
15324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15325 X"$as_dir" : 'X\(//\)[^/]' \| \
15326 X"$as_dir" : 'X\(//\)$' \| \
15327 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15328 printf "%s\n" X"$as_dir" |
15329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15330 s//\1/
15331 q
15332 }
15333 /^X\(\/\/\)[^/].*/{
15334 s//\1/
15335 q
15336 }
15337 /^X\(\/\/\)$/{
15338 s//\1/
15339 q
15340 }
15341 /^X\(\/\).*/{
15342 s//\1/
15343 q
15344 }
15345 s/.*/./; q'`
15346 test -d "$as_dir" && break
15347 done
15348 test -z "$as_dirs" || eval "mkdir $as_dirs"
15349 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15350
15351
15352 } # as_fn_mkdir_p
15353 if mkdir -p . 2>/dev/null; then
15354 as_mkdir_p='mkdir -p "$as_dir"'
15355 else
15356 test -d ./-p && rmdir ./-p
15357 as_mkdir_p=false
15358 fi
15359
15360
15361 # as_fn_executable_p FILE
15362 # -----------------------
15363 # Test if FILE is an executable regular file.
15364 as_fn_executable_p ()
15365 {
15366 test -f "$1" && test -x "$1"
15367 } # as_fn_executable_p
15368 as_test_x='test -x'
15369 as_executable_p=as_fn_executable_p
15370
15371 # Sed expression to map a string onto a valid CPP name.
15372 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15373
15374 # Sed expression to map a string onto a valid variable name.
15375 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15376
15377
15378 exec 6>&1
15379 ## ----------------------------------- ##
15380 ## Main body of $CONFIG_STATUS script. ##
15381 ## ----------------------------------- ##
15382 _ASEOF
15383 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15384
15385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15386 # Save the log message, to keep $0 and so on meaningful, and to
15387 # report actual input values of CONFIG_FILES etc. instead of their
15388 # values after options handling.
15389 ac_log="
15390 This file was extended by libigloo $as_me 0.9.5, which was
15391 generated by GNU Autoconf 2.71. Invocation command line was
15392
15393 CONFIG_FILES = $CONFIG_FILES
15394 CONFIG_HEADERS = $CONFIG_HEADERS
15395 CONFIG_LINKS = $CONFIG_LINKS
15396 CONFIG_COMMANDS = $CONFIG_COMMANDS
15397 $ $0 $@
15398
15399 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15400 "
15401
15402 _ACEOF
15403
15404 case $ac_config_files in *"
15405 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15406 esac
15407
15408 case $ac_config_headers in *"
15409 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15410 esac
15411
15412
15413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15414 # Files that config.status was made for.
15415 config_files="$ac_config_files"
15416 config_headers="$ac_config_headers"
15417 config_commands="$ac_config_commands"
15418
15419 _ACEOF
15420
15421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15422 ac_cs_usage="\
15423 \`$as_me' instantiates files and other configuration actions
15424 from templates according to the current configuration. Unless the files
15425 and actions are specified as TAGs, all are instantiated by default.
15426
15427 Usage: $0 [OPTION]... [TAG]...
15428
15429 -h, --help print this help, then exit
15430 -V, --version print version number and configuration settings, then exit
15431 --config print configuration, then exit
15432 -q, --quiet, --silent
15433 do not print progress messages
15434 -d, --debug don't remove temporary files
15435 --recheck update $as_me by reconfiguring in the same conditions
15436 --file=FILE[:TEMPLATE]
15437 instantiate the configuration file FILE
15438 --header=FILE[:TEMPLATE]
15439 instantiate the configuration header FILE
15440
15441 Configuration files:
15442 $config_files
15443
15444 Configuration headers:
15445 $config_headers
15446
15447 Configuration commands:
15448 $config_commands
15449
15450 Report bugs to <[email protected]>."
15451
15452 _ACEOF
15453 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15454 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15456 ac_cs_config='$ac_cs_config_escaped'
15457 ac_cs_version="\\
15458 libigloo config.status 0.9.5
15459 configured by $0, generated by GNU Autoconf 2.71,
15460 with options \\"\$ac_cs_config\\"
15461
15462 Copyright (C) 2021 Free Software Foundation, Inc.
15463 This config.status script is free software; the Free Software Foundation
15464 gives unlimited permission to copy, distribute and modify it."
15465
15466 ac_pwd='$ac_pwd'
15467 srcdir='$srcdir'
15468 INSTALL='$INSTALL'
15469 MKDIR_P='$MKDIR_P'
15470 AWK='$AWK'
15471 test -n "\$AWK" || AWK=awk
15472 _ACEOF
15473
15474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15475 # The default lists apply if the user does not specify any file.
15476 ac_need_defaults=:
15477 while test $# != 0
15478 do
15479 case $1 in
15480 --*=?*)
15481 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15482 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15483 ac_shift=:
15484 ;;
15485 --*=)
15486 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15487 ac_optarg=
15488 ac_shift=:
15489 ;;
15490 *)
15491 ac_option=$1
15492 ac_optarg=$2
15493 ac_shift=shift
15494 ;;
15495 esac
15496
15497 case $ac_option in
15498 # Handling of the options.
15499 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15500 ac_cs_recheck=: ;;
15501 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15502 printf "%s\n" "$ac_cs_version"; exit ;;
15503 --config | --confi | --conf | --con | --co | --c )
15504 printf "%s\n" "$ac_cs_config"; exit ;;
15505 --debug | --debu | --deb | --de | --d | -d )
15506 debug=: ;;
15507 --file | --fil | --fi | --f )
15508 $ac_shift
15509 case $ac_optarg in
15510 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15511 '') as_fn_error $? "missing file argument" ;;
15512 esac
15513 as_fn_append CONFIG_FILES " '$ac_optarg'"
15514 ac_need_defaults=false;;
15515 --header | --heade | --head | --hea )
15516 $ac_shift
15517 case $ac_optarg in
15518 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15519 esac
15520 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15521 ac_need_defaults=false;;
15522 --he | --h)
15523 # Conflict between --help and --header
15524 as_fn_error $? "ambiguous option: \`$1'
15525 Try \`$0 --help' for more information.";;
15526 --help | --hel | -h )
15527 printf "%s\n" "$ac_cs_usage"; exit ;;
15528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15529 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15530 ac_cs_silent=: ;;
15531
15532 # This is an error.
15533 -*) as_fn_error $? "unrecognized option: \`$1'
15534 Try \`$0 --help' for more information." ;;
15535
15536 *) as_fn_append ac_config_targets " $1"
15537 ac_need_defaults=false ;;
15538
15539 esac
15540 shift
15541 done
15542
15543 ac_configure_extra_args=
15544
15545 if $ac_cs_silent; then
15546 exec 6>/dev/null
15547 ac_configure_extra_args="$ac_configure_extra_args --silent"
15548 fi
15549
15550 _ACEOF
15551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15552 if \$ac_cs_recheck; then
15553 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15554 shift
15555 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15556 CONFIG_SHELL='$SHELL'
15557 export CONFIG_SHELL
15558 exec "\$@"
15559 fi
15560
15561 _ACEOF
15562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15563 exec 5>>config.log
15564 {
15565 echo
15566 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15567 ## Running $as_me. ##
15568 _ASBOX
15569 printf "%s\n" "$ac_log"
15570 } >&5
15571
15572 _ACEOF
15573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15574 #
15575 # INIT-COMMANDS
15576 #
15577 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15578
15579
15580 # The HP-UX ksh and POSIX shell print the target directory to stdout
15581 # if CDPATH is set.
15582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15583
15584 sed_quote_subst='$sed_quote_subst'
15585 double_quote_subst='$double_quote_subst'
15586 delay_variable_subst='$delay_variable_subst'
15587 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15588 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15589 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15590 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15591 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15592 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15593 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15594 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15595 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15596 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15597 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15598 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15599 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15600 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15601 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15602 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15603 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15604 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15605 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15606 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15607 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15608 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15609 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15610 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15611 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15612 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15613 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15614 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15615 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15616 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15617 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15618 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15619 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15620 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15621 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15622 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15623 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15624 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15625 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15626 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15627 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15628 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15629 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15630 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15631 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15632 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15633 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15634 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15635 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15636 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15637 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15638 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15639 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15640 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15641 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15642 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15643 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15644 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15645 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15646 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15647 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"`'
15648 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15649 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15650 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15651 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15652 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15653 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15654 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15655 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15656 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15657 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15658 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15659 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15660 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15661 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15662 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15663 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15664 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15665 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15666 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15667 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15668 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15669 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15670 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15671 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15672 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15673 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15674 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15675 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15676 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15677 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15678 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15679 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15680 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15681 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15682 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15683 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15684 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15685 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15686 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15687 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15688 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15689 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15690 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15691 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15692 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15693 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15694 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15695 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15696 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15697 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15698 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15699 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15700 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15701 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15702 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15703 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15704 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15705 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15706 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15707 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15708 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15709 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15710 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15711 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15712 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15713 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15714 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15715 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15716 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15717 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15718 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15719 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15720 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15721 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15722 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15723 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15724
15725 LTCC='$LTCC'
15726 LTCFLAGS='$LTCFLAGS'
15727 compiler='$compiler_DEFAULT'
15728
15729 # A function that is used when there is no print builtin or printf.
15730 func_fallback_echo ()
15731 {
15732 eval 'cat <<_LTECHO_EOF
15733 \$1
15734 _LTECHO_EOF'
15735 }
15736
15737 # Quote evaled strings.
15738 for var in SHELL \
15739 ECHO \
15740 PATH_SEPARATOR \
15741 SED \
15742 GREP \
15743 EGREP \
15744 FGREP \
15745 LD \
15746 NM \
15747 LN_S \
15748 lt_SP2NL \
15749 lt_NL2SP \
15750 reload_flag \
15751 FILECMD \
15752 OBJDUMP \
15753 deplibs_check_method \
15754 file_magic_cmd \
15755 file_magic_glob \
15756 want_nocaseglob \
15757 DLLTOOL \
15758 sharedlib_from_linklib_cmd \
15759 AR \
15760 archiver_list_spec \
15761 STRIP \
15762 RANLIB \
15763 CC \
15764 CFLAGS \
15765 compiler \
15766 lt_cv_sys_global_symbol_pipe \
15767 lt_cv_sys_global_symbol_to_cdecl \
15768 lt_cv_sys_global_symbol_to_import \
15769 lt_cv_sys_global_symbol_to_c_name_address \
15770 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15771 lt_cv_nm_interface \
15772 nm_file_list_spec \
15773 lt_cv_truncate_bin \
15774 lt_prog_compiler_no_builtin_flag \
15775 lt_prog_compiler_pic \
15776 lt_prog_compiler_wl \
15777 lt_prog_compiler_static \
15778 lt_cv_prog_compiler_c_o \
15779 need_locks \
15780 MANIFEST_TOOL \
15781 DSYMUTIL \
15782 NMEDIT \
15783 LIPO \
15784 OTOOL \
15785 OTOOL64 \
15786 shrext_cmds \
15787 export_dynamic_flag_spec \
15788 whole_archive_flag_spec \
15789 compiler_needs_object \
15790 with_gnu_ld \
15791 allow_undefined_flag \
15792 no_undefined_flag \
15793 hardcode_libdir_flag_spec \
15794 hardcode_libdir_separator \
15795 exclude_expsyms \
15796 include_expsyms \
15797 file_list_spec \
15798 variables_saved_for_relink \
15799 libname_spec \
15800 library_names_spec \
15801 soname_spec \
15802 install_override_mode \
15803 finish_eval \
15804 old_striplib \
15805 striplib; do
15806 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15807 *[\\\\\\\`\\"\\\$]*)
15808 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15809 ;;
15810 *)
15811 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15812 ;;
15813 esac
15814 done
15815
15816 # Double-quote double-evaled strings.
15817 for var in reload_cmds \
15818 old_postinstall_cmds \
15819 old_postuninstall_cmds \
15820 old_archive_cmds \
15821 extract_expsyms_cmds \
15822 old_archive_from_new_cmds \
15823 old_archive_from_expsyms_cmds \
15824 archive_cmds \
15825 archive_expsym_cmds \
15826 module_cmds \
15827 module_expsym_cmds \
15828 export_symbols_cmds \
15829 prelink_cmds \
15830 postlink_cmds \
15831 postinstall_cmds \
15832 postuninstall_cmds \
15833 finish_cmds \
15834 sys_lib_search_path_spec \
15835 configure_time_dlsearch_path \
15836 configure_time_lt_sys_library_path; do
15837 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15838 *[\\\\\\\`\\"\\\$]*)
15839 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15840 ;;
15841 *)
15842 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15843 ;;
15844 esac
15845 done
15846
15847 ac_aux_dir='$ac_aux_dir'
15848
15849 # See if we are running on zsh, and set the options that allow our
15850 # commands through without removal of \ escapes INIT.
15851 if test -n "\${ZSH_VERSION+set}"; then
15852 setopt NO_GLOB_SUBST
15853 fi
15854
15855
15856 PACKAGE='$PACKAGE'
15857 VERSION='$VERSION'
15858 RM='$RM'
15859 ofile='$ofile'
15860
15861
15862
15863
15864 _ACEOF
15865
15866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15867
15868 # Handling of arguments.
15869 for ac_config_target in $ac_config_targets
15870 do
15871 case $ac_config_target in
15872 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15873 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15874 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15875 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15876 "igloo.pc") CONFIG_FILES="$CONFIG_FILES igloo.pc" ;;
15877
15878 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15879 esac
15880 done
15881
15882
15883 # If the user did not use the arguments to specify the items to instantiate,
15884 # then the envvar interface is used. Set only those that are not.
15885 # We use the long form for the default assignment because of an extremely
15886 # bizarre bug on SunOS 4.1.3.
15887 if $ac_need_defaults; then
15888 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15889 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15890 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15891 fi
15892
15893 # Have a temporary directory for convenience. Make it in the build tree
15894 # simply because there is no reason against having it here, and in addition,
15895 # creating and moving files from /tmp can sometimes cause problems.
15896 # Hook for its removal unless debugging.
15897 # Note that there is a small window in which the directory will not be cleaned:
15898 # after its creation but before its name has been assigned to `$tmp'.
15899 $debug ||
15900 {
15901 tmp= ac_tmp=
15902 trap 'exit_status=$?
15903 : "${ac_tmp:=$tmp}"
15904 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15905 ' 0
15906 trap 'as_fn_exit 1' 1 2 13 15
15907 }
15908 # Create a (secure) tmp directory for tmp files.
15909
15910 {
15911 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15912 test -d "$tmp"
15913 } ||
15914 {
15915 tmp=./conf$$-$RANDOM
15916 (umask 077 && mkdir "$tmp")
15917 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15918 ac_tmp=$tmp
15919
15920 # Set up the scripts for CONFIG_FILES section.
15921 # No need to generate them if there are no CONFIG_FILES.
15922 # This happens for instance with `./config.status config.h'.
15923 if test -n "$CONFIG_FILES"; then
15924
15925
15926 ac_cr=`echo X | tr X '\015'`
15927 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15928 # But we know of no other shell where ac_cr would be empty at this
15929 # point, so we can use a bashism as a fallback.
15930 if test "x$ac_cr" = x; then
15931 eval ac_cr=\$\'\\r\'
15932 fi
15933 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15934 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15935 ac_cs_awk_cr='\\r'
15936 else
15937 ac_cs_awk_cr=$ac_cr
15938 fi
15939
15940 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15941 _ACEOF
15942
15943
15944 {
15945 echo "cat >conf$$subs.awk <<_ACEOF" &&
15946 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15947 echo "_ACEOF"
15948 } >conf$$subs.sh ||
15949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15950 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15951 ac_delim='%!_!# '
15952 for ac_last_try in false false false false false :; do
15953 . ./conf$$subs.sh ||
15954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15955
15956 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15957 if test $ac_delim_n = $ac_delim_num; then
15958 break
15959 elif $ac_last_try; then
15960 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15961 else
15962 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15963 fi
15964 done
15965 rm -f conf$$subs.sh
15966
15967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15968 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15969 _ACEOF
15970 sed -n '
15971 h
15972 s/^/S["/; s/!.*/"]=/
15973 p
15974 g
15975 s/^[^!]*!//
15976 :repl
15977 t repl
15978 s/'"$ac_delim"'$//
15979 t delim
15980 :nl
15981 h
15982 s/\(.\{148\}\)..*/\1/
15983 t more1
15984 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15985 p
15986 n
15987 b repl
15988 :more1
15989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15990 p
15991 g
15992 s/.\{148\}//
15993 t nl
15994 :delim
15995 h
15996 s/\(.\{148\}\)..*/\1/
15997 t more2
15998 s/["\\]/\\&/g; s/^/"/; s/$/"/
15999 p
16000 b
16001 :more2
16002 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16003 p
16004 g
16005 s/.\{148\}//
16006 t delim
16007 ' <conf$$subs.awk | sed '
16008 /^[^""]/{
16009 N
16010 s/\n//
16011 }
16012 ' >>$CONFIG_STATUS || ac_write_fail=1
16013 rm -f conf$$subs.awk
16014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16015 _ACAWK
16016 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16017 for (key in S) S_is_set[key] = 1
16018 FS = ""
16019
16020 }
16021 {
16022 line = $ 0
16023 nfields = split(line, field, "@")
16024 substed = 0
16025 len = length(field[1])
16026 for (i = 2; i < nfields; i++) {
16027 key = field[i]
16028 keylen = length(key)
16029 if (S_is_set[key]) {
16030 value = S[key]
16031 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16032 len += length(value) + length(field[++i])
16033 substed = 1
16034 } else
16035 len += 1 + keylen
16036 }
16037
16038 print line
16039 }
16040
16041 _ACAWK
16042 _ACEOF
16043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16044 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16045 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16046 else
16047 cat
16048 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16049 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16050 _ACEOF
16051
16052 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16053 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16054 # trailing colons and then remove the whole line if VPATH becomes empty
16055 # (actually we leave an empty line to preserve line numbers).
16056 if test "x$srcdir" = x.; then
16057 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16058 h
16059 s///
16060 s/^/:/
16061 s/[ ]*$/:/
16062 s/:\$(srcdir):/:/g
16063 s/:\${srcdir}:/:/g
16064 s/:@srcdir@:/:/g
16065 s/^:*//
16066 s/:*$//
16067 x
16068 s/\(=[ ]*\).*/\1/
16069 G
16070 s/\n//
16071 s/^[^=]*=[ ]*$//
16072 }'
16073 fi
16074
16075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16076 fi # test -n "$CONFIG_FILES"
16077
16078 # Set up the scripts for CONFIG_HEADERS section.
16079 # No need to generate them if there are no CONFIG_HEADERS.
16080 # This happens for instance with `./config.status Makefile'.
16081 if test -n "$CONFIG_HEADERS"; then
16082 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16083 BEGIN {
16084 _ACEOF
16085
16086 # Transform confdefs.h into an awk script `defines.awk', embedded as
16087 # here-document in config.status, that substitutes the proper values into
16088 # config.h.in to produce config.h.
16089
16090 # Create a delimiter string that does not exist in confdefs.h, to ease
16091 # handling of long lines.
16092 ac_delim='%!_!# '
16093 for ac_last_try in false false :; do
16094 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16095 if test -z "$ac_tt"; then
16096 break
16097 elif $ac_last_try; then
16098 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16099 else
16100 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16101 fi
16102 done
16103
16104 # For the awk script, D is an array of macro values keyed by name,
16105 # likewise P contains macro parameters if any. Preserve backslash
16106 # newline sequences.
16107
16108 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16109 sed -n '
16110 s/.\{148\}/&'"$ac_delim"'/g
16111 t rset
16112 :rset
16113 s/^[ ]*#[ ]*define[ ][ ]*/ /
16114 t def
16115 d
16116 :def
16117 s/\\$//
16118 t bsnl
16119 s/["\\]/\\&/g
16120 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16121 D["\1"]=" \3"/p
16122 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16123 d
16124 :bsnl
16125 s/["\\]/\\&/g
16126 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16127 D["\1"]=" \3\\\\\\n"\\/p
16128 t cont
16129 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16130 t cont
16131 d
16132 :cont
16133 n
16134 s/.\{148\}/&'"$ac_delim"'/g
16135 t clear
16136 :clear
16137 s/\\$//
16138 t bsnlc
16139 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16140 d
16141 :bsnlc
16142 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16143 b cont
16144 ' <confdefs.h | sed '
16145 s/'"$ac_delim"'/"\\\
16146 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16147
16148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16149 for (key in D) D_is_set[key] = 1
16150 FS = ""
16151 }
16152 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16153 line = \$ 0
16154 split(line, arg, " ")
16155 if (arg[1] == "#") {
16156 defundef = arg[2]
16157 mac1 = arg[3]
16158 } else {
16159 defundef = substr(arg[1], 2)
16160 mac1 = arg[2]
16161 }
16162 split(mac1, mac2, "(") #)
16163 macro = mac2[1]
16164 prefix = substr(line, 1, index(line, defundef) - 1)
16165 if (D_is_set[macro]) {
16166 # Preserve the white space surrounding the "#".
16167 print prefix "define", macro P[macro] D[macro]
16168 next
16169 } else {
16170 # Replace #undef with comments. This is necessary, for example,
16171 # in the case of _POSIX_SOURCE, which is predefined and required
16172 # on some systems where configure will not decide to define it.
16173 if (defundef == "undef") {
16174 print "/*", prefix defundef, macro, "*/"
16175 next
16176 }
16177 }
16178 }
16179 { print }
16180 _ACAWK
16181 _ACEOF
16182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16183 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16184 fi # test -n "$CONFIG_HEADERS"
16185
16186
16187 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16188 shift
16189 for ac_tag
16190 do
16191 case $ac_tag in
16192 :[FHLC]) ac_mode=$ac_tag; continue;;
16193 esac
16194 case $ac_mode$ac_tag in
16195 :[FHL]*:*);;
16196 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16197 :[FH]-) ac_tag=-:-;;
16198 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16199 esac
16200 ac_save_IFS=$IFS
16201 IFS=:
16202 set x $ac_tag
16203 IFS=$ac_save_IFS
16204 shift
16205 ac_file=$1
16206 shift
16207
16208 case $ac_mode in
16209 :L) ac_source=$1;;
16210 :[FH])
16211 ac_file_inputs=
16212 for ac_f
16213 do
16214 case $ac_f in
16215 -) ac_f="$ac_tmp/stdin";;
16216 *) # Look for the file first in the build tree, then in the source tree
16217 # (if the path is not absolute). The absolute path cannot be DOS-style,
16218 # because $ac_f cannot contain `:'.
16219 test -f "$ac_f" ||
16220 case $ac_f in
16221 [\\/$]*) false;;
16222 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16223 esac ||
16224 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16225 esac
16226 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16227 as_fn_append ac_file_inputs " '$ac_f'"
16228 done
16229
16230 # Let's still pretend it is `configure' which instantiates (i.e., don't
16231 # use $as_me), people would be surprised to read:
16232 # /* config.h. Generated by config.status. */
16233 configure_input='Generated from '`
16234 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16235 `' by configure.'
16236 if test x"$ac_file" != x-; then
16237 configure_input="$ac_file. $configure_input"
16238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16239 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16240 fi
16241 # Neutralize special characters interpreted by sed in replacement strings.
16242 case $configure_input in #(
16243 *\&* | *\|* | *\\* )
16244 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16245 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16246 *) ac_sed_conf_input=$configure_input;;
16247 esac
16248
16249 case $ac_tag in
16250 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16252 esac
16253 ;;
16254 esac
16255
16256 ac_dir=`$as_dirname -- "$ac_file" ||
16257 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16258 X"$ac_file" : 'X\(//\)[^/]' \| \
16259 X"$ac_file" : 'X\(//\)$' \| \
16260 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16261 printf "%s\n" X"$ac_file" |
16262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16263 s//\1/
16264 q
16265 }
16266 /^X\(\/\/\)[^/].*/{
16267 s//\1/
16268 q
16269 }
16270 /^X\(\/\/\)$/{
16271 s//\1/
16272 q
16273 }
16274 /^X\(\/\).*/{
16275 s//\1/
16276 q
16277 }
16278 s/.*/./; q'`
16279 as_dir="$ac_dir"; as_fn_mkdir_p
16280 ac_builddir=.
16281
16282 case "$ac_dir" in
16283 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16284 *)
16285 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16286 # A ".." for each directory in $ac_dir_suffix.
16287 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16288 case $ac_top_builddir_sub in
16289 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16290 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16291 esac ;;
16292 esac
16293 ac_abs_top_builddir=$ac_pwd
16294 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16295 # for backward compatibility:
16296 ac_top_builddir=$ac_top_build_prefix
16297
16298 case $srcdir in
16299 .) # We are building in place.
16300 ac_srcdir=.
16301 ac_top_srcdir=$ac_top_builddir_sub
16302 ac_abs_top_srcdir=$ac_pwd ;;
16303 [\\/]* | ?:[\\/]* ) # Absolute name.
16304 ac_srcdir=$srcdir$ac_dir_suffix;
16305 ac_top_srcdir=$srcdir
16306 ac_abs_top_srcdir=$srcdir ;;
16307 *) # Relative name.
16308 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16309 ac_top_srcdir=$ac_top_build_prefix$srcdir
16310 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16311 esac
16312 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16313
16314
16315 case $ac_mode in
16316 :F)
16317 #
16318 # CONFIG_FILE
16319 #
16320
16321 case $INSTALL in
16322 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16323 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16324 esac
16325 ac_MKDIR_P=$MKDIR_P
16326 case $MKDIR_P in
16327 [\\/$]* | ?:[\\/]* ) ;;
16328 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16329 esac
16330 _ACEOF
16331
16332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16333 # If the template does not know about datarootdir, expand it.
16334 # FIXME: This hack should be removed a few years after 2.60.
16335 ac_datarootdir_hack=; ac_datarootdir_seen=
16336 ac_sed_dataroot='
16337 /datarootdir/ {
16338 p
16339 q
16340 }
16341 /@datadir@/p
16342 /@docdir@/p
16343 /@infodir@/p
16344 /@localedir@/p
16345 /@mandir@/p'
16346 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16347 *datarootdir*) ac_datarootdir_seen=yes;;
16348 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16350 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16351 _ACEOF
16352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353 ac_datarootdir_hack='
16354 s&@datadir@&$datadir&g
16355 s&@docdir@&$docdir&g
16356 s&@infodir@&$infodir&g
16357 s&@localedir@&$localedir&g
16358 s&@mandir@&$mandir&g
16359 s&\\\${datarootdir}&$datarootdir&g' ;;
16360 esac
16361 _ACEOF
16362
16363 # Neutralize VPATH when `$srcdir' = `.'.
16364 # Shell code in configure.ac might set extrasub.
16365 # FIXME: do we really want to maintain this feature?
16366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16367 ac_sed_extra="$ac_vpsub
16368 $extrasub
16369 _ACEOF
16370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16371 :t
16372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16373 s|@configure_input@|$ac_sed_conf_input|;t t
16374 s&@top_builddir@&$ac_top_builddir_sub&;t t
16375 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16376 s&@srcdir@&$ac_srcdir&;t t
16377 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16378 s&@top_srcdir@&$ac_top_srcdir&;t t
16379 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16380 s&@builddir@&$ac_builddir&;t t
16381 s&@abs_builddir@&$ac_abs_builddir&;t t
16382 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16383 s&@INSTALL@&$ac_INSTALL&;t t
16384 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16385 $ac_datarootdir_hack
16386 "
16387 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16388 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16389
16390 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16391 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16392 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16393 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16395 which seems to be undefined. Please make sure it is defined" >&5
16396 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16397 which seems to be undefined. Please make sure it is defined" >&2;}
16398
16399 rm -f "$ac_tmp/stdin"
16400 case $ac_file in
16401 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16402 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16403 esac \
16404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16405 ;;
16406 :H)
16407 #
16408 # CONFIG_HEADER
16409 #
16410 if test x"$ac_file" != x-; then
16411 {
16412 printf "%s\n" "/* $configure_input */" >&1 \
16413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16414 } >"$ac_tmp/config.h" \
16415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16416 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16418 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16419 else
16420 rm -f "$ac_file"
16421 mv "$ac_tmp/config.h" "$ac_file" \
16422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16423 fi
16424 else
16425 printf "%s\n" "/* $configure_input */" >&1 \
16426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16427 || as_fn_error $? "could not create -" "$LINENO" 5
16428 fi
16429 # Compute "$ac_file"'s index in $config_headers.
16430 _am_arg="$ac_file"
16431 _am_stamp_count=1
16432 for _am_header in $config_headers :; do
16433 case $_am_header in
16434 $_am_arg | $_am_arg:* )
16435 break ;;
16436 * )
16437 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16438 esac
16439 done
16440 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16441 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16442 X"$_am_arg" : 'X\(//\)[^/]' \| \
16443 X"$_am_arg" : 'X\(//\)$' \| \
16444 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16445 printf "%s\n" X"$_am_arg" |
16446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16447 s//\1/
16448 q
16449 }
16450 /^X\(\/\/\)[^/].*/{
16451 s//\1/
16452 q
16453 }
16454 /^X\(\/\/\)$/{
16455 s//\1/
16456 q
16457 }
16458 /^X\(\/\).*/{
16459 s//\1/
16460 q
16461 }
16462 s/.*/./; q'`/stamp-h$_am_stamp_count
16463 ;;
16464
16465 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16466 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16467 ;;
16468 esac
16469
16470
16471 case $ac_file$ac_mode in
16472 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16473 # Older Autoconf quotes --file arguments for eval, but not when files
16474 # are listed without --file. Let's play safe and only enable the eval
16475 # if we detect the quoting.
16476 # TODO: see whether this extra hack can be removed once we start
16477 # requiring Autoconf 2.70 or later.
16478 case $CONFIG_FILES in #(
16479 *\'*) :
16480 eval set x "$CONFIG_FILES" ;; #(
16481 *) :
16482 set x $CONFIG_FILES ;; #(
16483 *) :
16484 ;;
16485 esac
16486 shift
16487 # Used to flag and report bootstrapping failures.
16488 am_rc=0
16489 for am_mf
16490 do
16491 # Strip MF so we end up with the name of the file.
16492 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16493 # Check whether this is an Automake generated Makefile which includes
16494 # dependency-tracking related rules and includes.
16495 # Grep'ing the whole file directly is not great: AIX grep has a line
16496 # limit of 2048, but all sed's we know have understand at least 4000.
16497 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16498 || continue
16499 am_dirpart=`$as_dirname -- "$am_mf" ||
16500 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16501 X"$am_mf" : 'X\(//\)[^/]' \| \
16502 X"$am_mf" : 'X\(//\)$' \| \
16503 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16504 printf "%s\n" X"$am_mf" |
16505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16506 s//\1/
16507 q
16508 }
16509 /^X\(\/\/\)[^/].*/{
16510 s//\1/
16511 q
16512 }
16513 /^X\(\/\/\)$/{
16514 s//\1/
16515 q
16516 }
16517 /^X\(\/\).*/{
16518 s//\1/
16519 q
16520 }
16521 s/.*/./; q'`
16522 am_filepart=`$as_basename -- "$am_mf" ||
16523 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16524 X"$am_mf" : 'X\(//\)$' \| \
16525 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16526 printf "%s\n" X/"$am_mf" |
16527 sed '/^.*\/\([^/][^/]*\)\/*$/{
16528 s//\1/
16529 q
16530 }
16531 /^X\/\(\/\/\)$/{
16532 s//\1/
16533 q
16534 }
16535 /^X\/\(\/\).*/{
16536 s//\1/
16537 q
16538 }
16539 s/.*/./; q'`
16540 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16541 && sed -e '/# am--include-marker/d' "$am_filepart" \
16542 | $MAKE -f - am--depfiles" >&5
16543 (cd "$am_dirpart" \
16544 && sed -e '/# am--include-marker/d' "$am_filepart" \
16545 | $MAKE -f - am--depfiles) >&5 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } || am_rc=$?
16549 done
16550 if test $am_rc -ne 0; then
16551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16552 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16553 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16554 for automatic dependency tracking. If GNU make was not used, consider
16555 re-running the configure script with MAKE=\"gmake\" (or whatever is
16556 necessary). You can also try re-running configure with the
16557 '--disable-dependency-tracking' option to at least be able to build
16558 the package (albeit without support for automatic dependency tracking).
16559 See \`config.log' for more details" "$LINENO" 5; }
16560 fi
16561 { am_dirpart=; unset am_dirpart;}
16562 { am_filepart=; unset am_filepart;}
16563 { am_mf=; unset am_mf;}
16564 { am_rc=; unset am_rc;}
16565 rm -f conftest-deps.mk
16566 }
16567 ;;
16568 "libtool":C)
16569
16570 # See if we are running on zsh, and set the options that allow our
16571 # commands through without removal of \ escapes.
16572 if test -n "${ZSH_VERSION+set}"; then
16573 setopt NO_GLOB_SUBST
16574 fi
16575
16576 cfgfile=${ofile}T
16577 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16578 $RM "$cfgfile"
16579
16580 cat <<_LT_EOF >> "$cfgfile"
16581 #! $SHELL
16582 # Generated automatically by $as_me ($PACKAGE) $VERSION
16583 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16584
16585 # Provide generalized library-building support services.
16586 # Written by Gordon Matzigkeit, 1996
16587
16588 # Copyright (C) 2014 Free Software Foundation, Inc.
16589 # This is free software; see the source for copying conditions. There is NO
16590 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16591
16592 # GNU Libtool is free software; you can redistribute it and/or modify
16593 # it under the terms of the GNU General Public License as published by
16594 # the Free Software Foundation; either version 2 of of the License, or
16595 # (at your option) any later version.
16596 #
16597 # As a special exception to the GNU General Public License, if you
16598 # distribute this file as part of a program or library that is built
16599 # using GNU Libtool, you may include this file under the same
16600 # distribution terms that you use for the rest of that program.
16601 #
16602 # GNU Libtool is distributed in the hope that it will be useful, but
16603 # WITHOUT ANY WARRANTY; without even the implied warranty of
16604 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16605 # GNU General Public License for more details.
16606 #
16607 # You should have received a copy of the GNU General Public License
16608 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16609
16610
16611 # The names of the tagged configurations supported by this script.
16612 available_tags=''
16613
16614 # Configured defaults for sys_lib_dlsearch_path munging.
16615 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16616
16617 # ### BEGIN LIBTOOL CONFIG
16618
16619 # Which release of libtool.m4 was used?
16620 macro_version=$macro_version
16621 macro_revision=$macro_revision
16622
16623 # Whether or not to build shared libraries.
16624 build_libtool_libs=$enable_shared
16625
16626 # Whether or not to build static libraries.
16627 build_old_libs=$enable_static
16628
16629 # What type of objects to build.
16630 pic_mode=$pic_mode
16631
16632 # Whether or not to optimize for fast installation.
16633 fast_install=$enable_fast_install
16634
16635 # Shared archive member basename,for filename based shared library versioning on AIX.
16636 shared_archive_member_spec=$shared_archive_member_spec
16637
16638 # Shell to use when invoking shell scripts.
16639 SHELL=$lt_SHELL
16640
16641 # An echo program that protects backslashes.
16642 ECHO=$lt_ECHO
16643
16644 # The PATH separator for the build system.
16645 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16646
16647 # The host system.
16648 host_alias=$host_alias
16649 host=$host
16650 host_os=$host_os
16651
16652 # The build system.
16653 build_alias=$build_alias
16654 build=$build
16655 build_os=$build_os
16656
16657 # A sed program that does not truncate output.
16658 SED=$lt_SED
16659
16660 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16661 Xsed="\$SED -e 1s/^X//"
16662
16663 # A grep program that handles long lines.
16664 GREP=$lt_GREP
16665
16666 # An ERE matcher.
16667 EGREP=$lt_EGREP
16668
16669 # A literal string matcher.
16670 FGREP=$lt_FGREP
16671
16672 # A BSD- or MS-compatible name lister.
16673 NM=$lt_NM
16674
16675 # Whether we need soft or hard links.
16676 LN_S=$lt_LN_S
16677
16678 # What is the maximum length of a command?
16679 max_cmd_len=$max_cmd_len
16680
16681 # Object file suffix (normally "o").
16682 objext=$ac_objext
16683
16684 # Executable file suffix (normally "").
16685 exeext=$exeext
16686
16687 # whether the shell understands "unset".
16688 lt_unset=$lt_unset
16689
16690 # turn spaces into newlines.
16691 SP2NL=$lt_lt_SP2NL
16692
16693 # turn newlines into spaces.
16694 NL2SP=$lt_lt_NL2SP
16695
16696 # convert \$build file names to \$host format.
16697 to_host_file_cmd=$lt_cv_to_host_file_cmd
16698
16699 # convert \$build files to toolchain format.
16700 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16701
16702 # A file(cmd) program that detects file types.
16703 FILECMD=$lt_FILECMD
16704
16705 # An object symbol dumper.
16706 OBJDUMP=$lt_OBJDUMP
16707
16708 # Method to check whether dependent libraries are shared objects.
16709 deplibs_check_method=$lt_deplibs_check_method
16710
16711 # Command to use when deplibs_check_method = "file_magic".
16712 file_magic_cmd=$lt_file_magic_cmd
16713
16714 # How to find potential files when deplibs_check_method = "file_magic".
16715 file_magic_glob=$lt_file_magic_glob
16716
16717 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16718 want_nocaseglob=$lt_want_nocaseglob
16719
16720 # DLL creation program.
16721 DLLTOOL=$lt_DLLTOOL
16722
16723 # Command to associate shared and link libraries.
16724 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16725
16726 # The archiver.
16727 AR=$lt_AR
16728
16729 # Flags to create an archive (by configure).
16730 lt_ar_flags=$lt_ar_flags
16731
16732 # Flags to create an archive.
16733 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16734
16735 # How to feed a file listing to the archiver.
16736 archiver_list_spec=$lt_archiver_list_spec
16737
16738 # A symbol stripping program.
16739 STRIP=$lt_STRIP
16740
16741 # Commands used to install an old-style archive.
16742 RANLIB=$lt_RANLIB
16743 old_postinstall_cmds=$lt_old_postinstall_cmds
16744 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16745
16746 # Whether to use a lock for old archive extraction.
16747 lock_old_archive_extraction=$lock_old_archive_extraction
16748
16749 # A C compiler.
16750 LTCC=$lt_CC
16751
16752 # LTCC compiler flags.
16753 LTCFLAGS=$lt_CFLAGS
16754
16755 # Take the output of nm and produce a listing of raw symbols and C names.
16756 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16757
16758 # Transform the output of nm in a proper C declaration.
16759 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16760
16761 # Transform the output of nm into a list of symbols to manually relocate.
16762 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16763
16764 # Transform the output of nm in a C name address pair.
16765 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16766
16767 # Transform the output of nm in a C name address pair when lib prefix is needed.
16768 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16769
16770 # The name lister interface.
16771 nm_interface=$lt_lt_cv_nm_interface
16772
16773 # Specify filename containing input files for \$NM.
16774 nm_file_list_spec=$lt_nm_file_list_spec
16775
16776 # The root where to search for dependent libraries,and where our libraries should be installed.
16777 lt_sysroot=$lt_sysroot
16778
16779 # Command to truncate a binary pipe.
16780 lt_truncate_bin=$lt_lt_cv_truncate_bin
16781
16782 # The name of the directory that contains temporary libtool files.
16783 objdir=$objdir
16784
16785 # Used to examine libraries when file_magic_cmd begins with "file".
16786 MAGIC_CMD=$MAGIC_CMD
16787
16788 # Must we lock files when doing compilation?
16789 need_locks=$lt_need_locks
16790
16791 # Manifest tool.
16792 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16793
16794 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16795 DSYMUTIL=$lt_DSYMUTIL
16796
16797 # Tool to change global to local symbols on Mac OS X.
16798 NMEDIT=$lt_NMEDIT
16799
16800 # Tool to manipulate fat objects and archives on Mac OS X.
16801 LIPO=$lt_LIPO
16802
16803 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16804 OTOOL=$lt_OTOOL
16805
16806 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16807 OTOOL64=$lt_OTOOL64
16808
16809 # Old archive suffix (normally "a").
16810 libext=$libext
16811
16812 # Shared library suffix (normally ".so").
16813 shrext_cmds=$lt_shrext_cmds
16814
16815 # The commands to extract the exported symbol list from a shared archive.
16816 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16817
16818 # Variables whose values should be saved in libtool wrapper scripts and
16819 # restored at link time.
16820 variables_saved_for_relink=$lt_variables_saved_for_relink
16821
16822 # Do we need the "lib" prefix for modules?
16823 need_lib_prefix=$need_lib_prefix
16824
16825 # Do we need a version for libraries?
16826 need_version=$need_version
16827
16828 # Library versioning type.
16829 version_type=$version_type
16830
16831 # Shared library runtime path variable.
16832 runpath_var=$runpath_var
16833
16834 # Shared library path variable.
16835 shlibpath_var=$shlibpath_var
16836
16837 # Is shlibpath searched before the hard-coded library search path?
16838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16839
16840 # Format of library name prefix.
16841 libname_spec=$lt_libname_spec
16842
16843 # List of archive names. First name is the real one, the rest are links.
16844 # The last name is the one that the linker finds with -lNAME
16845 library_names_spec=$lt_library_names_spec
16846
16847 # The coded name of the library, if different from the real name.
16848 soname_spec=$lt_soname_spec
16849
16850 # Permission mode override for installation of shared libraries.
16851 install_override_mode=$lt_install_override_mode
16852
16853 # Command to use after installation of a shared archive.
16854 postinstall_cmds=$lt_postinstall_cmds
16855
16856 # Command to use after uninstallation of a shared archive.
16857 postuninstall_cmds=$lt_postuninstall_cmds
16858
16859 # Commands used to finish a libtool library installation in a directory.
16860 finish_cmds=$lt_finish_cmds
16861
16862 # As "finish_cmds", except a single script fragment to be evaled but
16863 # not shown.
16864 finish_eval=$lt_finish_eval
16865
16866 # Whether we should hardcode library paths into libraries.
16867 hardcode_into_libs=$hardcode_into_libs
16868
16869 # Compile-time system search path for libraries.
16870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16871
16872 # Detected run-time system search path for libraries.
16873 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16874
16875 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16876 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16877
16878 # Whether dlopen is supported.
16879 dlopen_support=$enable_dlopen
16880
16881 # Whether dlopen of programs is supported.
16882 dlopen_self=$enable_dlopen_self
16883
16884 # Whether dlopen of statically linked programs is supported.
16885 dlopen_self_static=$enable_dlopen_self_static
16886
16887 # Commands to strip libraries.
16888 old_striplib=$lt_old_striplib
16889 striplib=$lt_striplib
16890
16891
16892 # The linker used to build libraries.
16893 LD=$lt_LD
16894
16895 # How to create reloadable object files.
16896 reload_flag=$lt_reload_flag
16897 reload_cmds=$lt_reload_cmds
16898
16899 # Commands used to build an old-style archive.
16900 old_archive_cmds=$lt_old_archive_cmds
16901
16902 # A language specific compiler.
16903 CC=$lt_compiler
16904
16905 # Is the compiler the GNU compiler?
16906 with_gcc=$GCC
16907
16908 # Compiler flag to turn off builtin functions.
16909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16910
16911 # Additional compiler flags for building library objects.
16912 pic_flag=$lt_lt_prog_compiler_pic
16913
16914 # How to pass a linker flag through the compiler.
16915 wl=$lt_lt_prog_compiler_wl
16916
16917 # Compiler flag to prevent dynamic linking.
16918 link_static_flag=$lt_lt_prog_compiler_static
16919
16920 # Does compiler simultaneously support -c and -o options?
16921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16922
16923 # Whether or not to add -lc for building shared libraries.
16924 build_libtool_need_lc=$archive_cmds_need_lc
16925
16926 # Whether or not to disallow shared libs when runtime libs are static.
16927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16928
16929 # Compiler flag to allow reflexive dlopens.
16930 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16931
16932 # Compiler flag to generate shared objects directly from archives.
16933 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16934
16935 # Whether the compiler copes with passing no objects directly.
16936 compiler_needs_object=$lt_compiler_needs_object
16937
16938 # Create an old-style archive from a shared archive.
16939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16940
16941 # Create a temporary old-style archive to link instead of a shared archive.
16942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16943
16944 # Commands used to build a shared archive.
16945 archive_cmds=$lt_archive_cmds
16946 archive_expsym_cmds=$lt_archive_expsym_cmds
16947
16948 # Commands used to build a loadable module if different from building
16949 # a shared archive.
16950 module_cmds=$lt_module_cmds
16951 module_expsym_cmds=$lt_module_expsym_cmds
16952
16953 # Whether we are building with GNU ld or not.
16954 with_gnu_ld=$lt_with_gnu_ld
16955
16956 # Flag that allows shared libraries with undefined symbols to be built.
16957 allow_undefined_flag=$lt_allow_undefined_flag
16958
16959 # Flag that enforces no undefined symbols.
16960 no_undefined_flag=$lt_no_undefined_flag
16961
16962 # Flag to hardcode \$libdir into a binary during linking.
16963 # This must work even if \$libdir does not exist
16964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16965
16966 # Whether we need a single "-rpath" flag with a separated argument.
16967 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16968
16969 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16970 # DIR into the resulting binary.
16971 hardcode_direct=$hardcode_direct
16972
16973 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16974 # DIR into the resulting binary and the resulting library dependency is
16975 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16976 # library is relocated.
16977 hardcode_direct_absolute=$hardcode_direct_absolute
16978
16979 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16980 # into the resulting binary.
16981 hardcode_minus_L=$hardcode_minus_L
16982
16983 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16984 # into the resulting binary.
16985 hardcode_shlibpath_var=$hardcode_shlibpath_var
16986
16987 # Set to "yes" if building a shared library automatically hardcodes DIR
16988 # into the library and all subsequent libraries and executables linked
16989 # against it.
16990 hardcode_automatic=$hardcode_automatic
16991
16992 # Set to yes if linker adds runtime paths of dependent libraries
16993 # to runtime path list.
16994 inherit_rpath=$inherit_rpath
16995
16996 # Whether libtool must link a program against all its dependency libraries.
16997 link_all_deplibs=$link_all_deplibs
16998
16999 # Set to "yes" if exported symbols are required.
17000 always_export_symbols=$always_export_symbols
17001
17002 # The commands to list exported symbols.
17003 export_symbols_cmds=$lt_export_symbols_cmds
17004
17005 # Symbols that should not be listed in the preloaded symbols.
17006 exclude_expsyms=$lt_exclude_expsyms
17007
17008 # Symbols that must always be exported.
17009 include_expsyms=$lt_include_expsyms
17010
17011 # Commands necessary for linking programs (against libraries) with templates.
17012 prelink_cmds=$lt_prelink_cmds
17013
17014 # Commands necessary for finishing linking programs.
17015 postlink_cmds=$lt_postlink_cmds
17016
17017 # Specify filename containing input files.
17018 file_list_spec=$lt_file_list_spec
17019
17020 # How to hardcode a shared library path into an executable.
17021 hardcode_action=$hardcode_action
17022
17023 # ### END LIBTOOL CONFIG
17024
17025 _LT_EOF
17026
17027 cat <<'_LT_EOF' >> "$cfgfile"
17028
17029 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17030
17031 # func_munge_path_list VARIABLE PATH
17032 # -----------------------------------
17033 # VARIABLE is name of variable containing _space_ separated list of
17034 # directories to be munged by the contents of PATH, which is string
17035 # having a format:
17036 # "DIR[:DIR]:"
17037 # string "DIR[ DIR]" will be prepended to VARIABLE
17038 # ":DIR[:DIR]"
17039 # string "DIR[ DIR]" will be appended to VARIABLE
17040 # "DIRP[:DIRP]::[DIRA:]DIRA"
17041 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17042 # "DIRA[ DIRA]" will be appended to VARIABLE
17043 # "DIR[:DIR]"
17044 # VARIABLE will be replaced by "DIR[ DIR]"
17045 func_munge_path_list ()
17046 {
17047 case x$2 in
17048 x)
17049 ;;
17050 *:)
17051 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17052 ;;
17053 x:*)
17054 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17055 ;;
17056 *::*)
17057 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17058 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17059 ;;
17060 *)
17061 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17062 ;;
17063 esac
17064 }
17065
17066
17067 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17068 func_cc_basename ()
17069 {
17070 for cc_temp in $*""; do
17071 case $cc_temp in
17072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17074 \-*) ;;
17075 *) break;;
17076 esac
17077 done
17078 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17079 }
17080
17081
17082 # ### END FUNCTIONS SHARED WITH CONFIGURE
17083
17084 _LT_EOF
17085
17086 case $host_os in
17087 aix3*)
17088 cat <<\_LT_EOF >> "$cfgfile"
17089 # AIX sometimes has problems with the GCC collect2 program. For some
17090 # reason, if we set the COLLECT_NAMES environment variable, the problems
17091 # vanish in a puff of smoke.
17092 if test set != "${COLLECT_NAMES+set}"; then
17093 COLLECT_NAMES=
17094 export COLLECT_NAMES
17095 fi
17096 _LT_EOF
17097 ;;
17098 esac
17099
17100
17101
17102 ltmain=$ac_aux_dir/ltmain.sh
17103
17104
17105 # We use sed instead of cat because bash on DJGPP gets confused if
17106 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17107 # text mode, it properly converts lines to CR/LF. This bash problem
17108 # is reportedly fixed, but why not run on old versions too?
17109 $SED '$q' "$ltmain" >> "$cfgfile" \
17110 || (rm -f "$cfgfile"; exit 1)
17111
17112 mv -f "$cfgfile" "$ofile" ||
17113 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17114 chmod +x "$ofile"
17115
17116 ;;
17117
17118 esac
17119 done # for ac_tag
17120
17121
17122 as_fn_exit 0
17123 _ACEOF
17124 ac_clean_files=$ac_clean_files_save
17125
17126 test $ac_write_fail = 0 ||
17127 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17128
17129
17130 # configure is writing to config.log, and then calls config.status.
17131 # config.status does its own redirection, appending to config.log.
17132 # Unfortunately, on DOS this fails, as config.log is still kept open
17133 # by configure, so config.status won't be able to write to it; its
17134 # output is simply discarded. So we exec the FD to /dev/null,
17135 # effectively closing config.log, so it can be properly (re)opened and
17136 # appended to by config.status. When coming back to configure, we
17137 # need to make the FD available again.
17138 if test "$no_create" != yes; then
17139 ac_cs_success=:
17140 ac_config_status_args=
17141 test "$silent" = yes &&
17142 ac_config_status_args="$ac_config_status_args --quiet"
17143 exec 5>/dev/null
17144 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17145 exec 5>>config.log
17146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17147 # would make configure fail if this is the last instruction.
17148 $ac_cs_success || as_fn_exit 1
17149 fi
17150 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17152 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17153 fi
17154
17155