Merge branch 'release/0.0'
[allocwithin] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for region-bounded dynamic allocator 0.0.
4 #
5 # Report bugs to <Justin Wind <justin.wind@gmail.com>>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and Justin Wind
278 $0: <justin.wind@gmail.com> about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='region-bounded dynamic allocator'
592 PACKAGE_TARNAME='liballocwithin'
593 PACKAGE_VERSION='0.0'
594 PACKAGE_STRING='region-bounded dynamic allocator 0.0'
595 PACKAGE_BUGREPORT='Justin Wind <justin.wind@gmail.com>'
596 PACKAGE_URL=''
597
598 ac_unique_file="allocwithin.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 AM_LDFLAGS
640 AM_CXXFLAGS
641 PTHREAD_CFLAGS
642 PTHREAD_LIBS
643 PTHREAD_CC
644 ax_pthread_config
645 CPP
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 RANLIB
653 ac_ct_AR
654 AR
655 DLLTOOL
656 OBJDUMP
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 EGREP
663 GREP
664 SED
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 LIBTOOL
674 LN_S
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_dependency_tracking
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 with_sysroot
763 enable_libtool_lock
764 enable_debug_output
765 '
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 CPP'
775
776
777 # Initialize some variables set by options.
778 ac_init_help=
779 ac_init_version=false
780 ac_unrecognized_opts=
781 ac_unrecognized_sep=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
784 cache_file=/dev/null
785 exec_prefix=NONE
786 no_create=
787 no_recursion=
788 prefix=NONE
789 program_prefix=NONE
790 program_suffix=NONE
791 program_transform_name=s,x,x,
792 silent=
793 site=
794 srcdir=
795 verbose=
796 x_includes=NONE
797 x_libraries=NONE
798
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816 infodir='${datarootdir}/info'
817 htmldir='${docdir}'
818 dvidir='${docdir}'
819 pdfdir='${docdir}'
820 psdir='${docdir}'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
824
825 ac_prev=
826 ac_dashdash=
827 for ac_option
828 do
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\$ac_option
832 ac_prev=
833 continue
834 fi
835
836 case $ac_option in
837 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *=) ac_optarg= ;;
839 *) ac_optarg=yes ;;
840 esac
841
842 # Accept the important Cygnus configure options, so we can diagnose typos.
843
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
872
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
905
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1070
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1081
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1086
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1091
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1098
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1103
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1106
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1109
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1125
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1141
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1145
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1152
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1159
1160 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information"
1162 ;;
1163
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 esac
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1173
1174 *)
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180 ;;
1181
1182 esac
1183 done
1184
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error $? "missing argument to $ac_option"
1188 fi
1189
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1196 fi
1197
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1203 do
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error $? "working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error $? "pwd does not report name of working directory"
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
1276 srcdir=$ac_confdir
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 srcdir=..
1279 fi
1280 else
1281 ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1286 fi
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1290 pwd)`
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 srcdir=.
1294 fi
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1298 case $srcdir in
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 esac
1301 for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 done
1307
1308 #
1309 # Report the --help message.
1310 #
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
1315 \`configure' configures region-bounded dynamic allocator 0.0 to adapt to many kinds of systems.
1316
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1321
1322 Defaults for the options are specified in brackets.
1323
1324 Configuration:
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking ...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 [PREFIX]
1340
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1345
1346 For better control, use the options below.
1347
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/liballocwithin]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
1368 _ACEOF
1369
1370 cat <<\_ACEOF
1371
1372 Program names:
1373 --program-prefix=PREFIX prepend PREFIX to installed program names
1374 --program-suffix=SUFFIX append SUFFIX to installed program names
1375 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376
1377 System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of region-bounded dynamic allocator 0.0:";;
1386 esac
1387 cat <<\_ACEOF
1388
1389 Optional Features:
1390 --disable-option-checking ignore unrecognized --enable/--with options
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-dependency-tracking
1394 do not reject slow dependency extractors
1395 --disable-dependency-tracking
1396 speeds up one-time build
1397 --enable-shared[=PKGS] build shared libraries [default=yes]
1398 --enable-static[=PKGS] build static libraries [default=yes]
1399 --enable-fast-install[=PKGS]
1400 optimize for fast installation [default=yes]
1401 --disable-libtool-lock avoid locking (might break parallel builds)
1402 --enable-debug-output enable extra debugging output, default: no
1403
1404 Optional Packages:
1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1407 --with-pic try to use only PIC/non-PIC objects [default=use
1408 both]
1409 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1410 --with-sysroot=DIR Search for dependent libraries within DIR
1411 (or the compiler's sysroot if not specified).
1412
1413 Some influential environment variables:
1414 CC C compiler command
1415 CFLAGS C compiler flags
1416 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1417 nonstandard directory <lib dir>
1418 LIBS libraries to pass to the linker, e.g. -l<library>
1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1420 you have headers in a nonstandard directory <include dir>
1421 CPP C preprocessor
1422
1423 Use these variables to override the choices made by `configure' or to help
1424 it to find libraries and programs with nonstandard names/locations.
1425
1426 Report bugs to <Justin Wind <justin.wind@gmail.com>>.
1427 _ACEOF
1428 ac_status=$?
1429 fi
1430
1431 if test "$ac_init_help" = "recursive"; then
1432 # If there are subdirs, report their specific --help.
1433 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1434 test -d "$ac_dir" ||
1435 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1436 continue
1437 ac_builddir=.
1438
1439 case "$ac_dir" in
1440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *)
1442 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1443 # A ".." for each directory in $ac_dir_suffix.
1444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1445 case $ac_top_builddir_sub in
1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448 esac ;;
1449 esac
1450 ac_abs_top_builddir=$ac_pwd
1451 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452 # for backward compatibility:
1453 ac_top_builddir=$ac_top_build_prefix
1454
1455 case $srcdir in
1456 .) # We are building in place.
1457 ac_srcdir=.
1458 ac_top_srcdir=$ac_top_builddir_sub
1459 ac_abs_top_srcdir=$ac_pwd ;;
1460 [\\/]* | ?:[\\/]* ) # Absolute name.
1461 ac_srcdir=$srcdir$ac_dir_suffix;
1462 ac_top_srcdir=$srcdir
1463 ac_abs_top_srcdir=$srcdir ;;
1464 *) # Relative name.
1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466 ac_top_srcdir=$ac_top_build_prefix$srcdir
1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468 esac
1469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470
1471 cd "$ac_dir" || { ac_status=$?; continue; }
1472 # Check for guested configure.
1473 if test -f "$ac_srcdir/configure.gnu"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1476 elif test -f "$ac_srcdir/configure"; then
1477 echo &&
1478 $SHELL "$ac_srcdir/configure" --help=recursive
1479 else
1480 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 fi || ac_status=$?
1482 cd "$ac_pwd" || { ac_status=$?; break; }
1483 done
1484 fi
1485
1486 test -n "$ac_init_help" && exit $ac_status
1487 if $ac_init_version; then
1488 cat <<\_ACEOF
1489 region-bounded dynamic allocator configure 0.0
1490 generated by GNU Autoconf 2.69
1491
1492 Copyright (C) 2012 Free Software Foundation, Inc.
1493 This configure script is free software; the Free Software Foundation
1494 gives unlimited permission to copy, distribute and modify it.
1495 _ACEOF
1496 exit
1497 fi
1498
1499 ## ------------------------ ##
1500 ## Autoconf initialization. ##
1501 ## ------------------------ ##
1502
1503 # ac_fn_c_try_compile LINENO
1504 # --------------------------
1505 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1506 ac_fn_c_try_compile ()
1507 {
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 rm -f conftest.$ac_objext
1510 if { { ac_try="$ac_compile"
1511 case "(($ac_try" in
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1514 esac
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_compile") 2>conftest.err
1518 ac_status=$?
1519 if test -s conftest.err; then
1520 grep -v '^ *+' conftest.err >conftest.er1
1521 cat conftest.er1 >&5
1522 mv -f conftest.er1 conftest.err
1523 fi
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } && {
1526 test -z "$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 } && test -s conftest.$ac_objext; then :
1529 ac_retval=0
1530 else
1531 $as_echo "$as_me: failed program was:" >&5
1532 sed 's/^/| /' conftest.$ac_ext >&5
1533
1534 ac_retval=1
1535 fi
1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537 as_fn_set_status $ac_retval
1538
1539 } # ac_fn_c_try_compile
1540
1541 # ac_fn_c_try_link LINENO
1542 # -----------------------
1543 # Try to link conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_link ()
1545 {
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext conftest$ac_exeext
1548 if { { ac_try="$ac_link"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_link") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest$ac_exeext && {
1567 test "$cross_compiling" = yes ||
1568 test -x conftest$ac_exeext
1569 }; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576 fi
1577 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1578 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1579 # interfere with the next link command; also delete a directory that is
1580 # left behind by Apple's compiler. We do this before executing the actions.
1581 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583 as_fn_set_status $ac_retval
1584
1585 } # ac_fn_c_try_link
1586
1587 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1588 # -------------------------------------------------------
1589 # Tests whether HEADER exists and can be compiled using the include files in
1590 # INCLUDES, setting the cache variable VAR accordingly.
1591 ac_fn_c_check_header_compile ()
1592 {
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1595 $as_echo_n "checking for $2... " >&6; }
1596 if eval \${$3+:} false; then :
1597 $as_echo_n "(cached) " >&6
1598 else
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600 /* end confdefs.h. */
1601 $4
1602 #include <$2>
1603 _ACEOF
1604 if ac_fn_c_try_compile "$LINENO"; then :
1605 eval "$3=yes"
1606 else
1607 eval "$3=no"
1608 fi
1609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1610 fi
1611 eval ac_res=\$$3
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615
1616 } # ac_fn_c_check_header_compile
1617
1618 # ac_fn_c_try_cpp LINENO
1619 # ----------------------
1620 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_cpp ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if { { ac_try="$ac_cpp conftest.$ac_ext"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } > conftest.i && {
1640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 }; then :
1643 ac_retval=0
1644 else
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649 fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_cpp
1654
1655 # ac_fn_c_try_run LINENO
1656 # ----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1658 # that executables *can* be run.
1659 ac_fn_c_try_run ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>&5
1670 ac_status=$?
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1673 { { case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_try") 2>&5
1680 ac_status=$?
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; }; }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: program exited with status $ac_status" >&5
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=$ac_status
1690 fi
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1694
1695 } # ac_fn_c_try_run
1696
1697 # ac_fn_c_check_func LINENO FUNC VAR
1698 # ----------------------------------
1699 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1700 ac_fn_c_check_func ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if eval \${$3+:} false; then :
1706 $as_echo_n "(cached) " >&6
1707 else
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1710 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1712 #define $2 innocuous_$2
1713
1714 /* System header to define __stub macros and hopefully few prototypes,
1715 which can conflict with char $2 (); below.
1716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1717 <limits.h> exists even on freestanding compilers. */
1718
1719 #ifdef __STDC__
1720 # include <limits.h>
1721 #else
1722 # include <assert.h>
1723 #endif
1724
1725 #undef $2
1726
1727 /* Override any GCC internal prototype to avoid an error.
1728 Use char because int might match the return type of a GCC
1729 builtin and then its argument prototype would still apply. */
1730 #ifdef __cplusplus
1731 extern "C"
1732 #endif
1733 char $2 ();
1734 /* The GNU C library defines this for functions which it implements
1735 to always fail with ENOSYS. Some functions are actually named
1736 something starting with __ and the normal name is an alias. */
1737 #if defined __stub_$2 || defined __stub___$2
1738 choke me
1739 #endif
1740
1741 int
1742 main ()
1743 {
1744 return $2 ();
1745 ;
1746 return 0;
1747 }
1748 _ACEOF
1749 if ac_fn_c_try_link "$LINENO"; then :
1750 eval "$3=yes"
1751 else
1752 eval "$3=no"
1753 fi
1754 rm -f core conftest.err conftest.$ac_objext \
1755 conftest$ac_exeext conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_func
1763
1764 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767 # the include files in INCLUDES and setting the cache variable VAR
1768 # accordingly.
1769 ac_fn_c_check_header_mongrel ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if eval \${$3+:} false; then :
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 fi
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 else
1782 # Is the header compilable?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784 $as_echo_n "checking $2 usability... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 $4
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1792 else
1793 ac_header_compiler=no
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797 $as_echo "$ac_header_compiler" >&6; }
1798
1799 # Is the header present?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801 $as_echo_n "checking $2 presence... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1808 else
1809 ac_header_preproc=no
1810 fi
1811 rm -f conftest.err conftest.i conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813 $as_echo "$ac_header_preproc" >&6; }
1814
1815 # So? What about this header?
1816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817 yes:no: )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ;;
1823 no:yes:* )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 ( $as_echo "## -------------------------------------------------- ##
1835 ## Report this to Justin Wind <justin.wind@gmail.com> ##
1836 ## -------------------------------------------------- ##"
1837 ) | sed "s/^/$as_me: WARNING: /" >&2
1838 ;;
1839 esac
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 eval "$3=\$ac_header_compiler"
1846 fi
1847 eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 fi
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1853 } # ac_fn_c_check_header_mongrel
1854
1855 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1856 # -------------------------------------------
1857 # Tests whether TYPE exists after having included INCLUDES, setting cache
1858 # variable VAR accordingly.
1859 ac_fn_c_check_type ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval \${$3+:} false; then :
1865 $as_echo_n "(cached) " >&6
1866 else
1867 eval "$3=no"
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 $4
1871 int
1872 main ()
1873 {
1874 if (sizeof ($2))
1875 return 0;
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 $4
1884 int
1885 main ()
1886 {
1887 if (sizeof (($2)))
1888 return 0;
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894
1895 else
1896 eval "$3=yes"
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901 fi
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906
1907 } # ac_fn_c_check_type
1908 cat >config.log <<_ACEOF
1909 This file contains any messages produced by compilers while
1910 running configure, to aid debugging if configure makes a mistake.
1911
1912 It was created by region-bounded dynamic allocator $as_me 0.0, which was
1913 generated by GNU Autoconf 2.69. Invocation command line was
1914
1915 $ $0 $@
1916
1917 _ACEOF
1918 exec 5>>config.log
1919 {
1920 cat <<_ASUNAME
1921 ## --------- ##
1922 ## Platform. ##
1923 ## --------- ##
1924
1925 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1930
1931 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1933
1934 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1935 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1936 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1938 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1939 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1940 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1941
1942 _ASUNAME
1943
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 $as_echo "PATH: $as_dir"
1950 done
1951 IFS=$as_save_IFS
1952
1953 } >&5
1954
1955 cat >&5 <<_ACEOF
1956
1957
1958 ## ----------- ##
1959 ## Core tests. ##
1960 ## ----------- ##
1961
1962 _ACEOF
1963
1964
1965 # Keep a trace of the command line.
1966 # Strip out --no-create and --no-recursion so they do not pile up.
1967 # Strip out --silent because we don't want to record it for future runs.
1968 # Also quote any args containing shell meta-characters.
1969 # Make two passes to allow for proper duplicate-argument suppression.
1970 ac_configure_args=
1971 ac_configure_args0=
1972 ac_configure_args1=
1973 ac_must_keep_next=false
1974 for ac_pass in 1 2
1975 do
1976 for ac_arg
1977 do
1978 case $ac_arg in
1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981 | -silent | --silent | --silen | --sile | --sil)
1982 continue ;;
1983 *\'*)
1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 esac
1986 case $ac_pass in
1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1988 2)
1989 as_fn_append ac_configure_args1 " '$ac_arg'"
1990 if test $ac_must_keep_next = true; then
1991 ac_must_keep_next=false # Got value, back to normal.
1992 else
1993 case $ac_arg in
1994 *=* | --config-cache | -C | -disable-* | --disable-* \
1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997 | -with-* | --with-* | -without-* | --without-* | --x)
1998 case "$ac_configure_args0 " in
1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2000 esac
2001 ;;
2002 -* ) ac_must_keep_next=true ;;
2003 esac
2004 fi
2005 as_fn_append ac_configure_args " '$ac_arg'"
2006 ;;
2007 esac
2008 done
2009 done
2010 { ac_configure_args0=; unset ac_configure_args0;}
2011 { ac_configure_args1=; unset ac_configure_args1;}
2012
2013 # When interrupted or exit'd, cleanup temporary files, and complete
2014 # config.log. We remove comments because anyway the quotes in there
2015 # would cause problems or look ugly.
2016 # WARNING: Use '\'' to represent an apostrophe within the trap.
2017 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018 trap 'exit_status=$?
2019 # Save into config.log some information that might help in debugging.
2020 {
2021 echo
2022
2023 $as_echo "## ---------------- ##
2024 ## Cache variables. ##
2025 ## ---------------- ##"
2026 echo
2027 # The following way of writing the cache mishandles newlines in values,
2028 (
2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030 eval ac_val=\$$ac_var
2031 case $ac_val in #(
2032 *${as_nl}*)
2033 case $ac_var in #(
2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2036 esac
2037 case $ac_var in #(
2038 _ | IFS | as_nl) ;; #(
2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040 *) { eval $ac_var=; unset $ac_var;} ;;
2041 esac ;;
2042 esac
2043 done
2044 (set) 2>&1 |
2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046 *${as_nl}ac_space=\ *)
2047 sed -n \
2048 "s/'\''/'\''\\\\'\'''\''/g;
2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2050 ;; #(
2051 *)
2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2053 ;;
2054 esac |
2055 sort
2056 )
2057 echo
2058
2059 $as_echo "## ----------------- ##
2060 ## Output variables. ##
2061 ## ----------------- ##"
2062 echo
2063 for ac_var in $ac_subst_vars
2064 do
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
2070 done | sort
2071 echo
2072
2073 if test -n "$ac_subst_files"; then
2074 $as_echo "## ------------------- ##
2075 ## File substitutions. ##
2076 ## ------------------- ##"
2077 echo
2078 for ac_var in $ac_subst_files
2079 do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 $as_echo "$ac_var='\''$ac_val'\''"
2085 done | sort
2086 echo
2087 fi
2088
2089 if test -s confdefs.h; then
2090 $as_echo "## ----------- ##
2091 ## confdefs.h. ##
2092 ## ----------- ##"
2093 echo
2094 cat confdefs.h
2095 echo
2096 fi
2097 test "$ac_signal" != 0 &&
2098 $as_echo "$as_me: caught signal $ac_signal"
2099 $as_echo "$as_me: exit $exit_status"
2100 } >&5
2101 rm -f core *.core core.conftest.* &&
2102 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2103 exit $exit_status
2104 ' 0
2105 for ac_signal in 1 2 13 15; do
2106 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2107 done
2108 ac_signal=0
2109
2110 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2111 rm -f -r conftest* confdefs.h
2112
2113 $as_echo "/* confdefs.h */" > confdefs.h
2114
2115 # Predefined preprocessor variables.
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_NAME "$PACKAGE_NAME"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2123 _ACEOF
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2127 _ACEOF
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_STRING "$PACKAGE_STRING"
2131 _ACEOF
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2135 _ACEOF
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_URL "$PACKAGE_URL"
2139 _ACEOF
2140
2141
2142 # Let the site file select an alternate cache file if it wants to.
2143 # Prefer an explicitly selected file to automatically selected ones.
2144 ac_site_file1=NONE
2145 ac_site_file2=NONE
2146 if test -n "$CONFIG_SITE"; then
2147 # We do not want a PATH search for config.site.
2148 case $CONFIG_SITE in #((
2149 -*) ac_site_file1=./$CONFIG_SITE;;
2150 */*) ac_site_file1=$CONFIG_SITE;;
2151 *) ac_site_file1=./$CONFIG_SITE;;
2152 esac
2153 elif test "x$prefix" != xNONE; then
2154 ac_site_file1=$prefix/share/config.site
2155 ac_site_file2=$prefix/etc/config.site
2156 else
2157 ac_site_file1=$ac_default_prefix/share/config.site
2158 ac_site_file2=$ac_default_prefix/etc/config.site
2159 fi
2160 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2161 do
2162 test "x$ac_site_file" = xNONE && continue
2163 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2165 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2166 sed 's/^/| /' "$ac_site_file" >&5
2167 . "$ac_site_file" \
2168 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170 as_fn_error $? "failed to load site script $ac_site_file
2171 See \`config.log' for more details" "$LINENO" 5; }
2172 fi
2173 done
2174
2175 if test -r "$cache_file"; then
2176 # Some versions of bash will fail to source /dev/null (special files
2177 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2178 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180 $as_echo "$as_me: loading cache $cache_file" >&6;}
2181 case $cache_file in
2182 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2183 *) . "./$cache_file";;
2184 esac
2185 fi
2186 else
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188 $as_echo "$as_me: creating cache $cache_file" >&6;}
2189 >$cache_file
2190 fi
2191
2192 # Check that the precious variables saved in the cache have kept the same
2193 # value.
2194 ac_cache_corrupted=false
2195 for ac_var in $ac_precious_vars; do
2196 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2197 eval ac_new_set=\$ac_env_${ac_var}_set
2198 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2199 eval ac_new_val=\$ac_env_${ac_var}_value
2200 case $ac_old_set,$ac_new_set in
2201 set,)
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2204 ac_cache_corrupted=: ;;
2205 ,set)
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2208 ac_cache_corrupted=: ;;
2209 ,);;
2210 *)
2211 if test "x$ac_old_val" != "x$ac_new_val"; then
2212 # differences in whitespace do not lead to failure.
2213 ac_old_val_w=`echo x $ac_old_val`
2214 ac_new_val_w=`echo x $ac_new_val`
2215 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2218 ac_cache_corrupted=:
2219 else
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2222 eval $ac_var=\$ac_old_val
2223 fi
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2225 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2227 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2228 fi;;
2229 esac
2230 # Pass precious variables to config.status.
2231 if test "$ac_new_set" = set; then
2232 case $ac_new_val in
2233 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 *) ac_arg=$ac_var=$ac_new_val ;;
2235 esac
2236 case " $ac_configure_args " in
2237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2238 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2239 esac
2240 fi
2241 done
2242 if $ac_cache_corrupted; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2247 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2248 fi
2249 ## -------------------- ##
2250 ## Main body of script. ##
2251 ## -------------------- ##
2252
2253 ac_ext=c
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2258
2259
2260 am__api_version='1.12'
2261
2262 ac_aux_dir=
2263 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2264 if test -f "$ac_dir/install-sh"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/install-sh -c"
2267 break
2268 elif test -f "$ac_dir/install.sh"; then
2269 ac_aux_dir=$ac_dir
2270 ac_install_sh="$ac_aux_dir/install.sh -c"
2271 break
2272 elif test -f "$ac_dir/shtool"; then
2273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/shtool install -c"
2275 break
2276 fi
2277 done
2278 if test -z "$ac_aux_dir"; then
2279 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2280 fi
2281
2282 # These three variables are undocumented and unsupported,
2283 # and are intended to be withdrawn in a future Autoconf release.
2284 # They can cause serious problems if a builder's source tree is in a directory
2285 # whose full name contains unusual characters.
2286 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2287 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2288 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2289
2290
2291 # Find a good install program. We prefer a C program (faster),
2292 # so one script is as good as another. But avoid the broken or
2293 # incompatible versions:
2294 # SysV /etc/install, /usr/sbin/install
2295 # SunOS /usr/etc/install
2296 # IRIX /sbin/install
2297 # AIX /bin/install
2298 # AmigaOS /C/install, which installs bootblocks on floppy discs
2299 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2300 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2301 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2302 # OS/2's system install, which has a completely different semantic
2303 # ./install, which can be erroneously created by make from ./install.sh.
2304 # Reject install programs that cannot install multiple files.
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2306 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2307 if test -z "$INSTALL"; then
2308 if ${ac_cv_path_install+:} false; then :
2309 $as_echo_n "(cached) " >&6
2310 else
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314 IFS=$as_save_IFS
2315 test -z "$as_dir" && as_dir=.
2316 # Account for people who put trailing slashes in PATH elements.
2317 case $as_dir/ in #((
2318 ./ | .// | /[cC]/* | \
2319 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2320 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2321 /usr/ucb/* ) ;;
2322 *)
2323 # OSF1 and SCO ODT 3.0 have their own names for install.
2324 # Don't use installbsd from OSF since it installs stuff as root
2325 # by default.
2326 for ac_prog in ginstall scoinst install; do
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2329 if test $ac_prog = install &&
2330 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331 # AIX install. It has an incompatible calling convention.
2332 :
2333 elif test $ac_prog = install &&
2334 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2335 # program-specific install script used by HP pwplus--don't use.
2336 :
2337 else
2338 rm -rf conftest.one conftest.two conftest.dir
2339 echo one > conftest.one
2340 echo two > conftest.two
2341 mkdir conftest.dir
2342 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2343 test -s conftest.one && test -s conftest.two &&
2344 test -s conftest.dir/conftest.one &&
2345 test -s conftest.dir/conftest.two
2346 then
2347 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2348 break 3
2349 fi
2350 fi
2351 fi
2352 done
2353 done
2354 ;;
2355 esac
2356
2357 done
2358 IFS=$as_save_IFS
2359
2360 rm -rf conftest.one conftest.two conftest.dir
2361
2362 fi
2363 if test "${ac_cv_path_install+set}" = set; then
2364 INSTALL=$ac_cv_path_install
2365 else
2366 # As a last resort, use the slow shell script. Don't cache a
2367 # value for INSTALL within a source directory, because that will
2368 # break other packages using the cache if that directory is
2369 # removed, or if the value is a relative name.
2370 INSTALL=$ac_install_sh
2371 fi
2372 fi
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2374 $as_echo "$INSTALL" >&6; }
2375
2376 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2377 # It thinks the first close brace ends the variable substitution.
2378 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2379
2380 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2381
2382 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2383
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2385 $as_echo_n "checking whether build environment is sane... " >&6; }
2386 # Reject unsafe characters in $srcdir or the absolute working directory
2387 # name. Accept space and tab only in the latter.
2388 am_lf='
2389 '
2390 case `pwd` in
2391 *[\\\"\#\$\&\'\`$am_lf]*)
2392 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2393 esac
2394 case $srcdir in
2395 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2396 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2397 esac
2398
2399 # Do 'set' in a subshell so we don't clobber the current shell's
2400 # arguments. Must try -L first in case configure is actually a
2401 # symlink; some systems play weird games with the mod time of symlinks
2402 # (eg FreeBSD returns the mod time of the symlink's containing
2403 # directory).
2404 if (
2405 am_has_slept=no
2406 for am_try in 1 2; do
2407 echo "timestamp, slept: $am_has_slept" > conftest.file
2408 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2409 if test "$*" = "X"; then
2410 # -L didn't work.
2411 set X `ls -t "$srcdir/configure" conftest.file`
2412 fi
2413 if test "$*" != "X $srcdir/configure conftest.file" \
2414 && test "$*" != "X conftest.file $srcdir/configure"; then
2415
2416 # If neither matched, then we have a broken ls. This can happen
2417 # if, for instance, CONFIG_SHELL is bash and it inherits a
2418 # broken ls alias from the environment. This has actually
2419 # happened. Such a system could not be considered "sane".
2420 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2421 alias in your environment" "$LINENO" 5
2422 fi
2423 if test "$2" = conftest.file || test $am_try -eq 2; then
2424 break
2425 fi
2426 # Just in case.
2427 sleep 1
2428 am_has_slept=yes
2429 done
2430 test "$2" = conftest.file
2431 )
2432 then
2433 # Ok.
2434 :
2435 else
2436 as_fn_error $? "newly created file is older than distributed files!
2437 Check your system clock" "$LINENO" 5
2438 fi
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2440 $as_echo "yes" >&6; }
2441 # If we didn't sleep, we still need to ensure time stamps of config.status and
2442 # generated files are strictly newer.
2443 am_sleep_pid=
2444 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2445 ( sleep 1 ) &
2446 am_sleep_pid=$!
2447 fi
2448
2449 rm -f conftest.file
2450
2451 test "$program_prefix" != NONE &&
2452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2453 # Use a double $ so make ignores it.
2454 test "$program_suffix" != NONE &&
2455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2456 # Double any \ or $.
2457 # By default was `s,x,x', remove it if useless.
2458 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2460
2461 # expand $ac_aux_dir to an absolute path
2462 am_aux_dir=`cd $ac_aux_dir && pwd`
2463
2464 if test x"${MISSING+set}" != xset; then
2465 case $am_aux_dir in
2466 *\ * | *\ *)
2467 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2468 *)
2469 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2470 esac
2471 fi
2472 # Use eval to expand $SHELL
2473 if eval "$MISSING --run true"; then
2474 am_missing_run="$MISSING --run "
2475 else
2476 am_missing_run=
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2478 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2479 fi
2480
2481 if test x"${install_sh}" != xset; then
2482 case $am_aux_dir in
2483 *\ * | *\ *)
2484 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2485 *)
2486 install_sh="\${SHELL} $am_aux_dir/install-sh"
2487 esac
2488 fi
2489
2490 # Installed binaries are usually stripped using 'strip' when the user
2491 # run "make install-strip". However 'strip' might not be the right
2492 # tool to use in cross-compilation environments, therefore Automake
2493 # will honor the 'STRIP' environment variable to overrule this program.
2494 if test "$cross_compiling" != no; then
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}strip; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test -n "$STRIP"; then
2504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 STRIP=$ac_cv_prog_STRIP
2524 if test -n "$STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2526 $as_echo "$STRIP" >&6; }
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532
2533 fi
2534 if test -z "$ac_cv_prog_STRIP"; then
2535 ac_ct_STRIP=$STRIP
2536 # Extract the first word of "strip", so it can be a program name with args.
2537 set dummy strip; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 if test -n "$ac_ct_STRIP"; then
2544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_ac_ct_STRIP="strip"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2564 if test -n "$ac_ct_STRIP"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2566 $as_echo "$ac_ct_STRIP" >&6; }
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572 if test "x$ac_ct_STRIP" = x; then
2573 STRIP=":"
2574 else
2575 case $cross_compiling:$ac_tool_warned in
2576 yes:)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579 ac_tool_warned=yes ;;
2580 esac
2581 STRIP=$ac_ct_STRIP
2582 fi
2583 else
2584 STRIP="$ac_cv_prog_STRIP"
2585 fi
2586
2587 fi
2588 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2589
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2591 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2592 if test -z "$MKDIR_P"; then
2593 if ${ac_cv_path_mkdir+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2598 do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_prog in mkdir gmkdir; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2604 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2605 'mkdir (GNU coreutils) '* | \
2606 'mkdir (coreutils) '* | \
2607 'mkdir (fileutils) '4.1*)
2608 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2609 break 3;;
2610 esac
2611 done
2612 done
2613 done
2614 IFS=$as_save_IFS
2615
2616 fi
2617
2618 test -d ./--version && rmdir ./--version
2619 if test "${ac_cv_path_mkdir+set}" = set; then
2620 MKDIR_P="$ac_cv_path_mkdir -p"
2621 else
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for MKDIR_P within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the value is a relative name.
2626 MKDIR_P="$ac_install_sh -d"
2627 fi
2628 fi
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2630 $as_echo "$MKDIR_P" >&6; }
2631
2632 mkdir_p="$MKDIR_P"
2633 case $mkdir_p in
2634 [\\/$]* | ?:[\\/]*) ;;
2635 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2636 esac
2637
2638 for ac_prog in gawk mawk nawk awk
2639 do
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_AWK+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if test -n "$AWK"; then
2648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657 ac_cv_prog_AWK="$ac_prog"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 AWK=$ac_cv_prog_AWK
2668 if test -n "$AWK"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2670 $as_echo "$AWK" >&6; }
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677 test -n "$AWK" && break
2678 done
2679
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2681 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2682 set x ${MAKE-make}
2683 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2684 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 cat >conftest.make <<\_ACEOF
2688 SHELL = /bin/sh
2689 all:
2690 @echo '@@@%%%=$(MAKE)=@@@%%%'
2691 _ACEOF
2692 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2693 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2694 *@@@%%%=?*=@@@%%%*)
2695 eval ac_cv_prog_make_${ac_make}_set=yes;;
2696 *)
2697 eval ac_cv_prog_make_${ac_make}_set=no;;
2698 esac
2699 rm -f conftest.make
2700 fi
2701 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2703 $as_echo "yes" >&6; }
2704 SET_MAKE=
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 SET_MAKE="MAKE=${MAKE-make}"
2709 fi
2710
2711 rm -rf .tst 2>/dev/null
2712 mkdir .tst 2>/dev/null
2713 if test -d .tst; then
2714 am__leading_dot=.
2715 else
2716 am__leading_dot=_
2717 fi
2718 rmdir .tst 2>/dev/null
2719
2720 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2721 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2722 # is not polluted with repeated "-I."
2723 am__isrc=' -I$(srcdir)'
2724 # test to see if srcdir already configured
2725 if test -f $srcdir/config.status; then
2726 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2727 fi
2728 fi
2729
2730 # test whether we have cygpath
2731 if test -z "$CYGPATH_W"; then
2732 if (cygpath --version) >/dev/null 2>/dev/null; then
2733 CYGPATH_W='cygpath -w'
2734 else
2735 CYGPATH_W=echo
2736 fi
2737 fi
2738
2739
2740 # Define the identity of the package.
2741 PACKAGE='liballocwithin'
2742 VERSION='0.0'
2743
2744
2745 cat >>confdefs.h <<_ACEOF
2746 #define PACKAGE "$PACKAGE"
2747 _ACEOF
2748
2749
2750 cat >>confdefs.h <<_ACEOF
2751 #define VERSION "$VERSION"
2752 _ACEOF
2753
2754 # Some tools Automake needs.
2755
2756 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2757
2758
2759 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2760
2761
2762 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2763
2764
2765 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2766
2767
2768 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2769
2770 # We need awk for the "check" target. The system "awk" is bad on
2771 # some platforms.
2772 # Always define AMTAR for backward compatibility. Yes, it's still used
2773 # in the wild :-( We should find a proper way to deprecate it ...
2774 AMTAR='$${TAR-tar}'
2775
2776 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2777
2778
2779
2780
2781
2782 ac_config_headers="$ac_config_headers config.h"
2783
2784
2785
2786
2787 ac_ext=c
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_CC+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 CC=$ac_cv_prog_CC
2821 if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823 $as_echo "$CC" >&6; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829
2830 fi
2831 if test -z "$ac_cv_prog_CC"; then
2832 ac_ct_CC=$CC
2833 # Extract the first word of "gcc", so it can be a program name with args.
2834 set dummy gcc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_CC="gcc"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2863 $as_echo "$ac_ct_CC" >&6; }
2864 else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869 if test "x$ac_ct_CC" = x; then
2870 CC=""
2871 else
2872 case $cross_compiling:$ac_tool_warned in
2873 yes:)
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876 ac_tool_warned=yes ;;
2877 esac
2878 CC=$ac_ct_CC
2879 fi
2880 else
2881 CC="$ac_cv_prog_CC"
2882 fi
2883
2884 if test -z "$CC"; then
2885 if test -n "$ac_tool_prefix"; then
2886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}cc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_CC+:} false; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_CC="${ac_tool_prefix}cc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 CC=$ac_cv_prog_CC
2914 if test -n "$CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922
2923 fi
2924 fi
2925 if test -z "$CC"; then
2926 # Extract the first word of "cc", so it can be a program name with args.
2927 set dummy cc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 else
2936 ac_prog_rejected=no
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2945 ac_prog_rejected=yes
2946 continue
2947 fi
2948 ac_cv_prog_CC="cc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2951 fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 if test $ac_prog_rejected = yes; then
2957 # We found a bogon in the path, so make sure we never use it.
2958 set dummy $ac_cv_prog_CC
2959 shift
2960 if test $# != 0; then
2961 # We chose a different compiler from the bogus one.
2962 # However, it has the same basename, so the bogon will be chosen
2963 # first if we set CC to just the basename; use the full file name.
2964 shift
2965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2966 fi
2967 fi
2968 fi
2969 fi
2970 CC=$ac_cv_prog_CC
2971 if test -n "$CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979
2980 fi
2981 if test -z "$CC"; then
2982 if test -n "$ac_tool_prefix"; then
2983 for ac_prog in cl.exe
2984 do
2985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022 test -n "$CC" && break
3023 done
3024 fi
3025 if test -z "$CC"; then
3026 ac_ct_CC=$CC
3027 for ac_prog in cl.exe
3028 do
3029 # Extract the first word of "$ac_prog", so it can be a program name with args.
3030 set dummy $ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if test -n "$ac_ct_CC"; then
3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_ac_ct_CC="$ac_prog"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3049 fi
3050 done
3051 done
3052 IFS=$as_save_IFS
3053
3054 fi
3055 fi
3056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3057 if test -n "$ac_ct_CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3059 $as_echo "$ac_ct_CC" >&6; }
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063 fi
3064
3065
3066 test -n "$ac_ct_CC" && break
3067 done
3068
3069 if test "x$ac_ct_CC" = x; then
3070 CC=""
3071 else
3072 case $cross_compiling:$ac_tool_warned in
3073 yes:)
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076 ac_tool_warned=yes ;;
3077 esac
3078 CC=$ac_ct_CC
3079 fi
3080 fi
3081
3082 fi
3083
3084
3085 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "no acceptable C compiler found in \$PATH
3088 See \`config.log' for more details" "$LINENO" 5; }
3089
3090 # Provide some information about the compiler.
3091 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3092 set X $ac_compile
3093 ac_compiler=$2
3094 for ac_option in --version -v -V -qversion; do
3095 { { ac_try="$ac_compiler $ac_option >&5"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3103 ac_status=$?
3104 if test -s conftest.err; then
3105 sed '10a\
3106 ... rest of stderr output deleted ...
3107 10q' conftest.err >conftest.er1
3108 cat conftest.er1 >&5
3109 fi
3110 rm -f conftest.er1 conftest.err
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }
3113 done
3114
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3117
3118 int
3119 main ()
3120 {
3121
3122 ;
3123 return 0;
3124 }
3125 _ACEOF
3126 ac_clean_files_save=$ac_clean_files
3127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3128 # Try to create an executable without -o first, disregard a.out.
3129 # It will help us diagnose broken compilers, and finding out an intuition
3130 # of exeext.
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3132 $as_echo_n "checking whether the C compiler works... " >&6; }
3133 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3134
3135 # The possible output files:
3136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3137
3138 ac_rmfiles=
3139 for ac_file in $ac_files
3140 do
3141 case $ac_file in
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3144 esac
3145 done
3146 rm -f $ac_rmfiles
3147
3148 if { { ac_try="$ac_link_default"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_link_default") 2>&5
3156 ac_status=$?
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; then :
3159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3162 # so that the user can short-circuit this test for compilers unknown to
3163 # Autoconf.
3164 for ac_file in $ac_files ''
3165 do
3166 test -f "$ac_file" || continue
3167 case $ac_file in
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3169 ;;
3170 [ab].out )
3171 # We found the default executable, but exeext='' is most
3172 # certainly right.
3173 break;;
3174 *.* )
3175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3176 then :; else
3177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3178 fi
3179 # We set ac_cv_exeext here because the later test for it is not
3180 # safe: cross compilers may not add the suffix if given an `-o'
3181 # argument, so we may need to know it at that point already.
3182 # Even if this section looks crufty: it has the advantage of
3183 # actually working.
3184 break;;
3185 * )
3186 break;;
3187 esac
3188 done
3189 test "$ac_cv_exeext" = no && ac_cv_exeext=
3190
3191 else
3192 ac_file=''
3193 fi
3194 if test -z "$ac_file"; then :
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error 77 "C compiler cannot create executables
3203 See \`config.log' for more details" "$LINENO" 5; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206 $as_echo "yes" >&6; }
3207 fi
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3209 $as_echo_n "checking for C compiler default output file name... " >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3211 $as_echo "$ac_file" >&6; }
3212 ac_exeext=$ac_cv_exeext
3213
3214 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3215 ac_clean_files=$ac_clean_files_save
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3217 $as_echo_n "checking for suffix of executables... " >&6; }
3218 if { { ac_try="$ac_link"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_link") 2>&5
3226 ac_status=$?
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
3229 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3230 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3231 # work properly (i.e., refer to `conftest.exe'), while it won't with
3232 # `rm'.
3233 for ac_file in conftest.exe conftest conftest.*; do
3234 test -f "$ac_file" || continue
3235 case $ac_file in
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3238 break;;
3239 * ) break;;
3240 esac
3241 done
3242 else
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3246 See \`config.log' for more details" "$LINENO" 5; }
3247 fi
3248 rm -f conftest conftest$ac_cv_exeext
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3250 $as_echo "$ac_cv_exeext" >&6; }
3251
3252 rm -f conftest.$ac_ext
3253 EXEEXT=$ac_cv_exeext
3254 ac_exeext=$EXEEXT
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3257 #include <stdio.h>
3258 int
3259 main ()
3260 {
3261 FILE *f = fopen ("conftest.out", "w");
3262 return ferror (f) || fclose (f) != 0;
3263
3264 ;
3265 return 0;
3266 }
3267 _ACEOF
3268 ac_clean_files="$ac_clean_files conftest.out"
3269 # Check that the compiler produces executables we can run. If not, either
3270 # the compiler is broken, or we cross compile.
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3272 $as_echo_n "checking whether we are cross compiling... " >&6; }
3273 if test "$cross_compiling" != yes; then
3274 { { ac_try="$ac_link"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_link") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }
3285 if { ac_try='./conftest$ac_cv_exeext'
3286 { { case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_try") 2>&5
3293 ac_status=$?
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }; }; then
3296 cross_compiling=no
3297 else
3298 if test "$cross_compiling" = maybe; then
3299 cross_compiling=yes
3300 else
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error $? "cannot run C compiled programs.
3304 If you meant to cross compile, use \`--host'.
3305 See \`config.log' for more details" "$LINENO" 5; }
3306 fi
3307 fi
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3310 $as_echo "$cross_compiling" >&6; }
3311
3312 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3313 ac_clean_files=$ac_clean_files_save
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3315 $as_echo_n "checking for suffix of object files... " >&6; }
3316 if ${ac_cv_objext+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3321
3322 int
3323 main ()
3324 {
3325
3326 ;
3327 return 0;
3328 }
3329 _ACEOF
3330 rm -f conftest.o conftest.obj
3331 if { { ac_try="$ac_compile"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_compile") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; then :
3342 for ac_file in conftest.o conftest.obj conftest.*; do
3343 test -f "$ac_file" || continue;
3344 case $ac_file in
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3347 break;;
3348 esac
3349 done
3350 else
3351 $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "cannot compute suffix of object files: cannot compile
3357 See \`config.log' for more details" "$LINENO" 5; }
3358 fi
3359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3360 fi
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3362 $as_echo "$ac_cv_objext" >&6; }
3363 OBJEXT=$ac_cv_objext
3364 ac_objext=$OBJEXT
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3366 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3367 if ${ac_cv_c_compiler_gnu+:} false; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372
3373 int
3374 main ()
3375 {
3376 #ifndef __GNUC__
3377 choke me
3378 #endif
3379
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 if ac_fn_c_try_compile "$LINENO"; then :
3385 ac_compiler_gnu=yes
3386 else
3387 ac_compiler_gnu=no
3388 fi
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3391
3392 fi
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3394 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3395 if test $ac_compiler_gnu = yes; then
3396 GCC=yes
3397 else
3398 GCC=
3399 fi
3400 ac_test_CFLAGS=${CFLAGS+set}
3401 ac_save_CFLAGS=$CFLAGS
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3403 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3404 if ${ac_cv_prog_cc_g+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 ac_save_c_werror_flag=$ac_c_werror_flag
3408 ac_c_werror_flag=yes
3409 ac_cv_prog_cc_g=no
3410 CFLAGS="-g"
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413
3414 int
3415 main ()
3416 {
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423 ac_cv_prog_cc_g=yes
3424 else
3425 CFLAGS=""
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428
3429 int
3430 main ()
3431 {
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 if ac_fn_c_try_compile "$LINENO"; then :
3438
3439 else
3440 ac_c_werror_flag=$ac_save_c_werror_flag
3441 CFLAGS="-g"
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3444
3445 int
3446 main ()
3447 {
3448
3449 ;
3450 return 0;
3451 }
3452 _ACEOF
3453 if ac_fn_c_try_compile "$LINENO"; then :
3454 ac_cv_prog_cc_g=yes
3455 fi
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 fi
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 fi
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 ac_c_werror_flag=$ac_save_c_werror_flag
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3464 $as_echo "$ac_cv_prog_cc_g" >&6; }
3465 if test "$ac_test_CFLAGS" = set; then
3466 CFLAGS=$ac_save_CFLAGS
3467 elif test $ac_cv_prog_cc_g = yes; then
3468 if test "$GCC" = yes; then
3469 CFLAGS="-g -O2"
3470 else
3471 CFLAGS="-g"
3472 fi
3473 else
3474 if test "$GCC" = yes; then
3475 CFLAGS="-O2"
3476 else
3477 CFLAGS=
3478 fi
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3481 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3482 if ${ac_cv_prog_cc_c89+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 ac_cv_prog_cc_c89=no
3486 ac_save_CC=$CC
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489 #include <stdarg.h>
3490 #include <stdio.h>
3491 struct stat;
3492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3493 struct buf { int x; };
3494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3495 static char *e (p, i)
3496 char **p;
3497 int i;
3498 {
3499 return p[i];
3500 }
3501 static char *f (char * (*g) (char **, int), char **p, ...)
3502 {
3503 char *s;
3504 va_list v;
3505 va_start (v,p);
3506 s = g (p, va_arg (v,int));
3507 va_end (v);
3508 return s;
3509 }
3510
3511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3512 function prototypes and stuff, but not '\xHH' hex character constants.
3513 These don't provoke an error unfortunately, instead are silently treated
3514 as 'x'. The following induces an error, until -std is added to get
3515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3516 array size at least. It's necessary to write '\x00'==0 to get something
3517 that's true only with -std. */
3518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3519
3520 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3521 inside strings and character constants. */
3522 #define FOO(x) 'x'
3523 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3524
3525 int test (int i, double x);
3526 struct s1 {int (*f) (int a);};
3527 struct s2 {int (*f) (double a);};
3528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3529 int argc;
3530 char **argv;
3531 int
3532 main ()
3533 {
3534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3540 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3541 do
3542 CC="$ac_save_CC $ac_arg"
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_cv_prog_cc_c89=$ac_arg
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext
3547 test "x$ac_cv_prog_cc_c89" != "xno" && break
3548 done
3549 rm -f conftest.$ac_ext
3550 CC=$ac_save_CC
3551
3552 fi
3553 # AC_CACHE_VAL
3554 case "x$ac_cv_prog_cc_c89" in
3555 x)
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3557 $as_echo "none needed" >&6; } ;;
3558 xno)
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3560 $as_echo "unsupported" >&6; } ;;
3561 *)
3562 CC="$CC $ac_cv_prog_cc_c89"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3564 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3565 esac
3566 if test "x$ac_cv_prog_cc_c89" != xno; then :
3567
3568 fi
3569
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 DEPDIR="${am__leading_dot}deps"
3576
3577 ac_config_commands="$ac_config_commands depfiles"
3578
3579
3580 am_make=${MAKE-make}
3581 cat > confinc << 'END'
3582 am__doit:
3583 @echo this is the am__doit target
3584 .PHONY: am__doit
3585 END
3586 # If we don't find an include directive, just comment out the code.
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3588 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3589 am__include="#"
3590 am__quote=
3591 _am_result=none
3592 # First try GNU make style include.
3593 echo "include confinc" > confmf
3594 # Ignore all kinds of additional output from 'make'.
3595 case `$am_make -s -f confmf 2> /dev/null` in #(
3596 *the\ am__doit\ target*)
3597 am__include=include
3598 am__quote=
3599 _am_result=GNU
3600 ;;
3601 esac
3602 # Now try BSD make style include.
3603 if test "$am__include" = "#"; then
3604 echo '.include "confinc"' > confmf
3605 case `$am_make -s -f confmf 2> /dev/null` in #(
3606 *the\ am__doit\ target*)
3607 am__include=.include
3608 am__quote="\""
3609 _am_result=BSD
3610 ;;
3611 esac
3612 fi
3613
3614
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3616 $as_echo "$_am_result" >&6; }
3617 rm -f confinc confmf
3618
3619 # Check whether --enable-dependency-tracking was given.
3620 if test "${enable_dependency_tracking+set}" = set; then :
3621 enableval=$enable_dependency_tracking;
3622 fi
3623
3624 if test "x$enable_dependency_tracking" != xno; then
3625 am_depcomp="$ac_aux_dir/depcomp"
3626 AMDEPBACKSLASH='\'
3627 am__nodep='_no'
3628 fi
3629 if test "x$enable_dependency_tracking" != xno; then
3630 AMDEP_TRUE=
3631 AMDEP_FALSE='#'
3632 else
3633 AMDEP_TRUE='#'
3634 AMDEP_FALSE=
3635 fi
3636
3637
3638
3639 depcc="$CC" am_compiler_list=
3640
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3642 $as_echo_n "checking dependency style of $depcc... " >&6; }
3643 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3647 # We make a subdir and do the tests there. Otherwise we can end up
3648 # making bogus files that we don't know about and never remove. For
3649 # instance it was reported that on HP-UX the gcc test will end up
3650 # making a dummy file named 'D' -- because '-MD' means "put the output
3651 # in D".
3652 rm -rf conftest.dir
3653 mkdir conftest.dir
3654 # Copy depcomp to subdir because otherwise we won't find it if we're
3655 # using a relative directory.
3656 cp "$am_depcomp" conftest.dir
3657 cd conftest.dir
3658 # We will build objects and dependencies in a subdirectory because
3659 # it helps to detect inapplicable dependency modes. For instance
3660 # both Tru64's cc and ICC support -MD to output dependencies as a
3661 # side effect of compilation, but ICC will put the dependencies in
3662 # the current directory while Tru64 will put them in the object
3663 # directory.
3664 mkdir sub
3665
3666 am_cv_CC_dependencies_compiler_type=none
3667 if test "$am_compiler_list" = ""; then
3668 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3669 fi
3670 am__universal=false
3671 case " $depcc " in #(
3672 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3673 esac
3674
3675 for depmode in $am_compiler_list; do
3676 # Setup a source with many dependencies, because some compilers
3677 # like to wrap large dependency lists on column 80 (with \), and
3678 # we should not choose a depcomp mode which is confused by this.
3679 #
3680 # We need to recreate these files for each test, as the compiler may
3681 # overwrite some of them when testing with obscure command lines.
3682 # This happens at least with the AIX C compiler.
3683 : > sub/conftest.c
3684 for i in 1 2 3 4 5 6; do
3685 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3686 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3687 # Solaris 10 /bin/sh.
3688 echo '/* dummy */' > sub/conftst$i.h
3689 done
3690 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3691
3692 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3693 # mode. It turns out that the SunPro C++ compiler does not properly
3694 # handle '-M -o', and we need to detect this. Also, some Intel
3695 # versions had trouble with output in subdirs.
3696 am__obj=sub/conftest.${OBJEXT-o}
3697 am__minus_obj="-o $am__obj"
3698 case $depmode in
3699 gcc)
3700 # This depmode causes a compiler race in universal mode.
3701 test "$am__universal" = false || continue
3702 ;;
3703 nosideeffect)
3704 # After this tag, mechanisms are not by side-effect, so they'll
3705 # only be used when explicitly requested.
3706 if test "x$enable_dependency_tracking" = xyes; then
3707 continue
3708 else
3709 break
3710 fi
3711 ;;
3712 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3713 # This compiler won't grok '-c -o', but also, the minuso test has
3714 # not run yet. These depmodes are late enough in the game, and
3715 # so weak that their functioning should not be impacted.
3716 am__obj=conftest.${OBJEXT-o}
3717 am__minus_obj=
3718 ;;
3719 none) break ;;
3720 esac
3721 if depmode=$depmode \
3722 source=sub/conftest.c object=$am__obj \
3723 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3724 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3725 >/dev/null 2>conftest.err &&
3726 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3727 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3728 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3729 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3730 # icc doesn't choke on unknown options, it will just issue warnings
3731 # or remarks (even with -Werror). So we grep stderr for any message
3732 # that says an option was ignored or not supported.
3733 # When given -MP, icc 7.0 and 7.1 complain thusly:
3734 # icc: Command line warning: ignoring option '-M'; no argument required
3735 # The diagnosis changed in icc 8.0:
3736 # icc: Command line remark: option '-MP' not supported
3737 if (grep 'ignoring option' conftest.err ||
3738 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3739 am_cv_CC_dependencies_compiler_type=$depmode
3740 break
3741 fi
3742 fi
3743 done
3744
3745 cd ..
3746 rm -rf conftest.dir
3747 else
3748 am_cv_CC_dependencies_compiler_type=none
3749 fi
3750
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3753 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3754 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3755
3756 if
3757 test "x$enable_dependency_tracking" != xno \
3758 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3759 am__fastdepCC_TRUE=
3760 am__fastdepCC_FALSE='#'
3761 else
3762 am__fastdepCC_TRUE='#'
3763 am__fastdepCC_FALSE=
3764 fi
3765
3766
3767 if test "x$CC" != xcc; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3769 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3772 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3773 fi
3774 set dummy $CC; ac_cc=`$as_echo "$2" |
3775 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3776 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 # Make sure it works both with $CC and with simple cc.
3791 # We do the test twice because some compilers refuse to overwrite an
3792 # existing .o file with -o, though they will create one.
3793 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3794 rm -f conftest2.*
3795 if { { case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_try") 2>&5
3802 ac_status=$?
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; } &&
3805 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_try") 2>&5
3812 ac_status=$?
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; };
3815 then
3816 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3817 if test "x$CC" != xcc; then
3818 # Test first that cc exists at all.
3819 if { ac_try='cc -c conftest.$ac_ext >&5'
3820 { { case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_try") 2>&5
3827 ac_status=$?
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }; }; then
3830 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3831 rm -f conftest2.*
3832 if { { case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838 (eval "$ac_try") 2>&5
3839 ac_status=$?
3840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; } &&
3842 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_try") 2>&5
3849 ac_status=$?
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; };
3852 then
3853 # cc works too.
3854 :
3855 else
3856 # cc exists but doesn't like -o.
3857 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3858 fi
3859 fi
3860 fi
3861 else
3862 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3863 fi
3864 rm -f core conftest*
3865
3866 fi
3867 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3869 $as_echo "yes" >&6; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873
3874 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3875
3876 fi
3877
3878 # FIXME: we rely on the cache variable name because
3879 # there is no other way.
3880 set dummy $CC
3881 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3882 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3883 if test "$am_t" != yes; then
3884 # Losing compiler, so override with the script.
3885 # FIXME: It is wrong to rewrite CC.
3886 # But if we don't then we get into trouble of one sort or another.
3887 # A longer-term fix would be to have automake use am__CC in this case,
3888 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3889 CC="$am_aux_dir/compile $CC"
3890 fi
3891
3892
3893
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3895 $as_echo_n "checking whether ln -s works... " >&6; }
3896 LN_S=$as_ln_s
3897 if test "$LN_S" = "ln -s"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3899 $as_echo "yes" >&6; }
3900 else
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3902 $as_echo "no, using $LN_S" >&6; }
3903 fi
3904
3905 case `pwd` in
3906 *\ * | *\ *)
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3908 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3909 esac
3910
3911
3912
3913 macro_version='2.4'
3914 macro_revision='1.3293'
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928 ltmain="$ac_aux_dir/ltmain.sh"
3929
3930 # Make sure we can run config.sub.
3931 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3932 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3933
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3935 $as_echo_n "checking build system type... " >&6; }
3936 if ${ac_cv_build+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 ac_build_alias=$build_alias
3940 test "x$ac_build_alias" = x &&
3941 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3942 test "x$ac_build_alias" = x &&
3943 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3944 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3945 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3946
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3949 $as_echo "$ac_cv_build" >&6; }
3950 case $ac_cv_build in
3951 *-*-*) ;;
3952 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3953 esac
3954 build=$ac_cv_build
3955 ac_save_IFS=$IFS; IFS='-'
3956 set x $ac_cv_build
3957 shift
3958 build_cpu=$1
3959 build_vendor=$2
3960 shift; shift
3961 # Remember, the first character of IFS is used to create $*,
3962 # except with old shells:
3963 build_os=$*
3964 IFS=$ac_save_IFS
3965 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3966
3967
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3969 $as_echo_n "checking host system type... " >&6; }
3970 if ${ac_cv_host+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 if test "x$host_alias" = x; then
3974 ac_cv_host=$ac_cv_build
3975 else
3976 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3977 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3978 fi
3979
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3982 $as_echo "$ac_cv_host" >&6; }
3983 case $ac_cv_host in
3984 *-*-*) ;;
3985 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3986 esac
3987 host=$ac_cv_host
3988 ac_save_IFS=$IFS; IFS='-'
3989 set x $ac_cv_host
3990 shift
3991 host_cpu=$1
3992 host_vendor=$2
3993 shift; shift
3994 # Remember, the first character of IFS is used to create $*,
3995 # except with old shells:
3996 host_os=$*
3997 IFS=$ac_save_IFS
3998 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3999
4000
4001 # Backslashify metacharacters that are still active within
4002 # double-quoted strings.
4003 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4004
4005 # Same as above, but do not quote variable references.
4006 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4007
4008 # Sed substitution to delay expansion of an escaped shell variable in a
4009 # double_quote_subst'ed string.
4010 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4011
4012 # Sed substitution to delay expansion of an escaped single quote.
4013 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4014
4015 # Sed substitution to avoid accidental globbing in evaled expressions
4016 no_glob_subst='s/\*/\\\*/g'
4017
4018 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4020 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4021
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4023 $as_echo_n "checking how to print strings... " >&6; }
4024 # Test print first, because it will be a builtin if present.
4025 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4026 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4027 ECHO='print -r --'
4028 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4029 ECHO='printf %s\n'
4030 else
4031 # Use this function as a fallback that always works.
4032 func_fallback_echo ()
4033 {
4034 eval 'cat <<_LTECHO_EOF
4035 $1
4036 _LTECHO_EOF'
4037 }
4038 ECHO='func_fallback_echo'
4039 fi
4040
4041 # func_echo_all arg...
4042 # Invoke $ECHO with all args, space-separated.
4043 func_echo_all ()
4044 {
4045 $ECHO ""
4046 }
4047
4048 case "$ECHO" in
4049 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4050 $as_echo "printf" >&6; } ;;
4051 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4052 $as_echo "print -r" >&6; } ;;
4053 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4054 $as_echo "cat" >&6; } ;;
4055 esac
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4071 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4072 if ${ac_cv_path_SED+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4076 for ac_i in 1 2 3 4 5 6 7; do
4077 ac_script="$ac_script$as_nl$ac_script"
4078 done
4079 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4080 { ac_script=; unset ac_script;}
4081 if test -z "$SED"; then
4082 ac_path_SED_found=false
4083 # Loop through the user's path and test for each of PROGNAME-LIST
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4086 do
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_prog in sed gsed; do
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4092 as_fn_executable_p "$ac_path_SED" || continue
4093 # Check for GNU ac_path_SED and select it if it is found.
4094 # Check for GNU $ac_path_SED
4095 case `"$ac_path_SED" --version 2>&1` in
4096 *GNU*)
4097 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4098 *)
4099 ac_count=0
4100 $as_echo_n 0123456789 >"conftest.in"
4101 while :
4102 do
4103 cat "conftest.in" "conftest.in" >"conftest.tmp"
4104 mv "conftest.tmp" "conftest.in"
4105 cp "conftest.in" "conftest.nl"
4106 $as_echo '' >> "conftest.nl"
4107 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4109 as_fn_arith $ac_count + 1 && ac_count=$as_val
4110 if test $ac_count -gt ${ac_path_SED_max-0}; then
4111 # Best one so far, save it but keep looking for a better one
4112 ac_cv_path_SED="$ac_path_SED"
4113 ac_path_SED_max=$ac_count
4114 fi
4115 # 10*(2^10) chars as input seems more than enough
4116 test $ac_count -gt 10 && break
4117 done
4118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119 esac
4120
4121 $ac_path_SED_found && break 3
4122 done
4123 done
4124 done
4125 IFS=$as_save_IFS
4126 if test -z "$ac_cv_path_SED"; then
4127 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4128 fi
4129 else
4130 ac_cv_path_SED=$SED
4131 fi
4132
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4135 $as_echo "$ac_cv_path_SED" >&6; }
4136 SED="$ac_cv_path_SED"
4137 rm -f conftest.sed
4138
4139 test -z "$SED" && SED=sed
4140 Xsed="$SED -e 1s/^X//"
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4153 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4154 if ${ac_cv_path_GREP+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 if test -z "$GREP"; then
4158 ac_path_GREP_found=false
4159 # Loop through the user's path and test for each of PROGNAME-LIST
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4162 do
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_prog in grep ggrep; do
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4168 as_fn_executable_p "$ac_path_GREP" || continue
4169 # Check for GNU ac_path_GREP and select it if it is found.
4170 # Check for GNU $ac_path_GREP
4171 case `"$ac_path_GREP" --version 2>&1` in
4172 *GNU*)
4173 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4174 *)
4175 ac_count=0
4176 $as_echo_n 0123456789 >"conftest.in"
4177 while :
4178 do
4179 cat "conftest.in" "conftest.in" >"conftest.tmp"
4180 mv "conftest.tmp" "conftest.in"
4181 cp "conftest.in" "conftest.nl"
4182 $as_echo 'GREP' >> "conftest.nl"
4183 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185 as_fn_arith $ac_count + 1 && ac_count=$as_val
4186 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4187 # Best one so far, save it but keep looking for a better one
4188 ac_cv_path_GREP="$ac_path_GREP"
4189 ac_path_GREP_max=$ac_count
4190 fi
4191 # 10*(2^10) chars as input seems more than enough
4192 test $ac_count -gt 10 && break
4193 done
4194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195 esac
4196
4197 $ac_path_GREP_found && break 3
4198 done
4199 done
4200 done
4201 IFS=$as_save_IFS
4202 if test -z "$ac_cv_path_GREP"; then
4203 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4204 fi
4205 else
4206 ac_cv_path_GREP=$GREP
4207 fi
4208
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4211 $as_echo "$ac_cv_path_GREP" >&6; }
4212 GREP="$ac_cv_path_GREP"
4213
4214
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4216 $as_echo_n "checking for egrep... " >&6; }
4217 if ${ac_cv_path_EGREP+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4221 then ac_cv_path_EGREP="$GREP -E"
4222 else
4223 if test -z "$EGREP"; then
4224 ac_path_EGREP_found=false
4225 # Loop through the user's path and test for each of PROGNAME-LIST
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4228 do
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_prog in egrep; do
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4234 as_fn_executable_p "$ac_path_EGREP" || continue
4235 # Check for GNU ac_path_EGREP and select it if it is found.
4236 # Check for GNU $ac_path_EGREP
4237 case `"$ac_path_EGREP" --version 2>&1` in
4238 *GNU*)
4239 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4240 *)
4241 ac_count=0
4242 $as_echo_n 0123456789 >"conftest.in"
4243 while :
4244 do
4245 cat "conftest.in" "conftest.in" >"conftest.tmp"
4246 mv "conftest.tmp" "conftest.in"
4247 cp "conftest.in" "conftest.nl"
4248 $as_echo 'EGREP' >> "conftest.nl"
4249 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4251 as_fn_arith $ac_count + 1 && ac_count=$as_val
4252 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4253 # Best one so far, save it but keep looking for a better one
4254 ac_cv_path_EGREP="$ac_path_EGREP"
4255 ac_path_EGREP_max=$ac_count
4256 fi
4257 # 10*(2^10) chars as input seems more than enough
4258 test $ac_count -gt 10 && break
4259 done
4260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4261 esac
4262
4263 $ac_path_EGREP_found && break 3
4264 done
4265 done
4266 done
4267 IFS=$as_save_IFS
4268 if test -z "$ac_cv_path_EGREP"; then
4269 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4270 fi
4271 else
4272 ac_cv_path_EGREP=$EGREP
4273 fi
4274
4275 fi
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4278 $as_echo "$ac_cv_path_EGREP" >&6; }
4279 EGREP="$ac_cv_path_EGREP"
4280
4281
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4283 $as_echo_n "checking for fgrep... " >&6; }
4284 if ${ac_cv_path_FGREP+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4288 then ac_cv_path_FGREP="$GREP -F"
4289 else
4290 if test -z "$FGREP"; then
4291 ac_path_FGREP_found=false
4292 # Loop through the user's path and test for each of PROGNAME-LIST
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4295 do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_prog in fgrep; do
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4301 as_fn_executable_p "$ac_path_FGREP" || continue
4302 # Check for GNU ac_path_FGREP and select it if it is found.
4303 # Check for GNU $ac_path_FGREP
4304 case `"$ac_path_FGREP" --version 2>&1` in
4305 *GNU*)
4306 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4307 *)
4308 ac_count=0
4309 $as_echo_n 0123456789 >"conftest.in"
4310 while :
4311 do
4312 cat "conftest.in" "conftest.in" >"conftest.tmp"
4313 mv "conftest.tmp" "conftest.in"
4314 cp "conftest.in" "conftest.nl"
4315 $as_echo 'FGREP' >> "conftest.nl"
4316 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4318 as_fn_arith $ac_count + 1 && ac_count=$as_val
4319 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4320 # Best one so far, save it but keep looking for a better one
4321 ac_cv_path_FGREP="$ac_path_FGREP"
4322 ac_path_FGREP_max=$ac_count
4323 fi
4324 # 10*(2^10) chars as input seems more than enough
4325 test $ac_count -gt 10 && break
4326 done
4327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4328 esac
4329
4330 $ac_path_FGREP_found && break 3
4331 done
4332 done
4333 done
4334 IFS=$as_save_IFS
4335 if test -z "$ac_cv_path_FGREP"; then
4336 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4337 fi
4338 else
4339 ac_cv_path_FGREP=$FGREP
4340 fi
4341
4342 fi
4343 fi
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4345 $as_echo "$ac_cv_path_FGREP" >&6; }
4346 FGREP="$ac_cv_path_FGREP"
4347
4348
4349 test -z "$GREP" && GREP=grep
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369 # Check whether --with-gnu-ld was given.
4370 if test "${with_gnu_ld+set}" = set; then :
4371 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4372 else
4373 with_gnu_ld=no
4374 fi
4375
4376 ac_prog=ld
4377 if test "$GCC" = yes; then
4378 # Check if gcc -print-prog-name=ld gives a path.
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4380 $as_echo_n "checking for ld used by $CC... " >&6; }
4381 case $host in
4382 *-*-mingw*)
4383 # gcc leaves a trailing carriage return which upsets mingw
4384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4385 *)
4386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4387 esac
4388 case $ac_prog in
4389 # Accept absolute paths.
4390 [\\/]* | ?:[\\/]*)
4391 re_direlt='/[^/][^/]*/\.\./'
4392 # Canonicalize the pathname of ld
4393 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4394 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4395 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4396 done
4397 test -z "$LD" && LD="$ac_prog"
4398 ;;
4399 "")
4400 # If it fails, then pretend we aren't using GCC.
4401 ac_prog=ld
4402 ;;
4403 *)
4404 # If it is relative, then search for the first ld in PATH.
4405 with_gnu_ld=unknown
4406 ;;
4407 esac
4408 elif test "$with_gnu_ld" = yes; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4410 $as_echo_n "checking for GNU ld... " >&6; }
4411 else
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4413 $as_echo_n "checking for non-GNU ld... " >&6; }
4414 fi
4415 if ${lt_cv_path_LD+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -z "$LD"; then
4419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4420 for ac_dir in $PATH; do
4421 IFS="$lt_save_ifs"
4422 test -z "$ac_dir" && ac_dir=.
4423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4424 lt_cv_path_LD="$ac_dir/$ac_prog"
4425 # Check to see if the program is GNU ld. I'd rather use --version,
4426 # but apparently some variants of GNU ld only accept -v.
4427 # Break only if it was the GNU/non-GNU ld that we prefer.
4428 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4429 *GNU* | *'with BFD'*)
4430 test "$with_gnu_ld" != no && break
4431 ;;
4432 *)
4433 test "$with_gnu_ld" != yes && break
4434 ;;
4435 esac
4436 fi
4437 done
4438 IFS="$lt_save_ifs"
4439 else
4440 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4441 fi
4442 fi
4443
4444 LD="$lt_cv_path_LD"
4445 if test -n "$LD"; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4447 $as_echo "$LD" >&6; }
4448 else
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4451 fi
4452 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4454 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4455 if ${lt_cv_prog_gnu_ld+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4459 case `$LD -v 2>&1 </dev/null` in
4460 *GNU* | *'with BFD'*)
4461 lt_cv_prog_gnu_ld=yes
4462 ;;
4463 *)
4464 lt_cv_prog_gnu_ld=no
4465 ;;
4466 esac
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4469 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4470 with_gnu_ld=$lt_cv_prog_gnu_ld
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4481 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4482 if ${lt_cv_path_NM+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 if test -n "$NM"; then
4486 # Let the user override the test.
4487 lt_cv_path_NM="$NM"
4488 else
4489 lt_nm_to_check="${ac_tool_prefix}nm"
4490 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4491 lt_nm_to_check="$lt_nm_to_check nm"
4492 fi
4493 for lt_tmp_nm in $lt_nm_to_check; do
4494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4495 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4496 IFS="$lt_save_ifs"
4497 test -z "$ac_dir" && ac_dir=.
4498 tmp_nm="$ac_dir/$lt_tmp_nm"
4499 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4500 # Check to see if the nm accepts a BSD-compat flag.
4501 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4502 # nm: unknown option "B" ignored
4503 # Tru64's nm complains that /dev/null is an invalid object file
4504 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4505 */dev/null* | *'Invalid file or object type'*)
4506 lt_cv_path_NM="$tmp_nm -B"
4507 break
4508 ;;
4509 *)
4510 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4511 */dev/null*)
4512 lt_cv_path_NM="$tmp_nm -p"
4513 break
4514 ;;
4515 *)
4516 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4517 continue # so that we can try to find one that supports BSD flags
4518 ;;
4519 esac
4520 ;;
4521 esac
4522 fi
4523 done
4524 IFS="$lt_save_ifs"
4525 done
4526 : ${lt_cv_path_NM=no}
4527 fi
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4530 $as_echo "$lt_cv_path_NM" >&6; }
4531 if test "$lt_cv_path_NM" != "no"; then
4532 NM="$lt_cv_path_NM"
4533 else
4534 # Didn't find any BSD compatible name lister, look for dumpbin.
4535 if test -n "$DUMPBIN"; then :
4536 # Let the user override the test.
4537 else
4538 if test -n "$ac_tool_prefix"; then
4539 for ac_prog in dumpbin "link -dump"
4540 do
4541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_prog_DUMPBIN+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -n "$DUMPBIN"; then
4549 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
4562 done
4563 done
4564 IFS=$as_save_IFS
4565
4566 fi
4567 fi
4568 DUMPBIN=$ac_cv_prog_DUMPBIN
4569 if test -n "$DUMPBIN"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4571 $as_echo "$DUMPBIN" >&6; }
4572 else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576
4577
4578 test -n "$DUMPBIN" && break
4579 done
4580 fi
4581 if test -z "$DUMPBIN"; then
4582 ac_ct_DUMPBIN=$DUMPBIN
4583 for ac_prog in dumpbin "link -dump"
4584 do
4585 # Extract the first word of "$ac_prog", so it can be a program name with args.
4586 set dummy $ac_prog; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -n "$ac_ct_DUMPBIN"; then
4593 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 fi
4611 fi
4612 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4613 if test -n "$ac_ct_DUMPBIN"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4615 $as_echo "$ac_ct_DUMPBIN" >&6; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620
4621
4622 test -n "$ac_ct_DUMPBIN" && break
4623 done
4624
4625 if test "x$ac_ct_DUMPBIN" = x; then
4626 DUMPBIN=":"
4627 else
4628 case $cross_compiling:$ac_tool_warned in
4629 yes:)
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4632 ac_tool_warned=yes ;;
4633 esac
4634 DUMPBIN=$ac_ct_DUMPBIN
4635 fi
4636 fi
4637
4638 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4639 *COFF*)
4640 DUMPBIN="$DUMPBIN -symbols"
4641 ;;
4642 *)
4643 DUMPBIN=:
4644 ;;
4645 esac
4646 fi
4647
4648 if test "$DUMPBIN" != ":"; then
4649 NM="$DUMPBIN"
4650 fi
4651 fi
4652 test -z "$NM" && NM=nm
4653
4654
4655
4656
4657
4658
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4660 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4661 if ${lt_cv_nm_interface+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 lt_cv_nm_interface="BSD nm"
4665 echo "int some_variable = 0;" > conftest.$ac_ext
4666 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4667 (eval "$ac_compile" 2>conftest.err)
4668 cat conftest.err >&5
4669 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4670 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4671 cat conftest.err >&5
4672 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4673 cat conftest.out >&5
4674 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4675 lt_cv_nm_interface="MS dumpbin"
4676 fi
4677 rm -f conftest*
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4680 $as_echo "$lt_cv_nm_interface" >&6; }
4681
4682 # find the maximum length of command line arguments
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4684 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4685 if ${lt_cv_sys_max_cmd_len+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 i=0
4689 teststring="ABCD"
4690
4691 case $build_os in
4692 msdosdjgpp*)
4693 # On DJGPP, this test can blow up pretty badly due to problems in libc
4694 # (any single argument exceeding 2000 bytes causes a buffer overrun
4695 # during glob expansion). Even if it were fixed, the result of this
4696 # check would be larger than it should be.
4697 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4698 ;;
4699
4700 gnu*)
4701 # Under GNU Hurd, this test is not required because there is
4702 # no limit to the length of command line arguments.
4703 # Libtool will interpret -1 as no limit whatsoever
4704 lt_cv_sys_max_cmd_len=-1;
4705 ;;
4706
4707 cygwin* | mingw* | cegcc*)
4708 # On Win9x/ME, this test blows up -- it succeeds, but takes
4709 # about 5 minutes as the teststring grows exponentially.
4710 # Worse, since 9x/ME are not pre-emptively multitasking,
4711 # you end up with a "frozen" computer, even though with patience
4712 # the test eventually succeeds (with a max line length of 256k).
4713 # Instead, let's just punt: use the minimum linelength reported by
4714 # all of the supported platforms: 8192 (on NT/2K/XP).
4715 lt_cv_sys_max_cmd_len=8192;
4716 ;;
4717
4718 mint*)
4719 # On MiNT this can take a long time and run out of memory.
4720 lt_cv_sys_max_cmd_len=8192;
4721 ;;
4722
4723 amigaos*)
4724 # On AmigaOS with pdksh, this test takes hours, literally.
4725 # So we just punt and use a minimum line length of 8192.
4726 lt_cv_sys_max_cmd_len=8192;
4727 ;;
4728
4729 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4730 # This has been around since 386BSD, at least. Likely further.
4731 if test -x /sbin/sysctl; then
4732 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4733 elif test -x /usr/sbin/sysctl; then
4734 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4735 else
4736 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4737 fi
4738 # And add a safety zone
4739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4741 ;;
4742
4743 interix*)
4744 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4745 lt_cv_sys_max_cmd_len=196608
4746 ;;
4747
4748 osf*)
4749 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4750 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4751 # nice to cause kernel panics so lets avoid the loop below.
4752 # First set a reasonable default.
4753 lt_cv_sys_max_cmd_len=16384
4754 #
4755 if test -x /sbin/sysconfig; then
4756 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4757 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4758 esac
4759 fi
4760 ;;
4761 sco3.2v5*)
4762 lt_cv_sys_max_cmd_len=102400
4763 ;;
4764 sysv5* | sco5v6* | sysv4.2uw2*)
4765 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4766 if test -n "$kargmax"; then
4767 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4768 else
4769 lt_cv_sys_max_cmd_len=32768
4770 fi
4771 ;;
4772 *)
4773 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4774 if test -n "$lt_cv_sys_max_cmd_len"; then
4775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4777 else
4778 # Make teststring a little bigger before we do anything with it.
4779 # a 1K string should be a reasonable start.
4780 for i in 1 2 3 4 5 6 7 8 ; do
4781 teststring=$teststring$teststring
4782 done
4783 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4784 # If test is not a shell built-in, we'll probably end up computing a
4785 # maximum length that is only half of the actual maximum length, but
4786 # we can't tell.
4787 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4788 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4789 test $i != 17 # 1/2 MB should be enough
4790 do
4791 i=`expr $i + 1`
4792 teststring=$teststring$teststring
4793 done
4794 # Only check the string length outside the loop.
4795 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4796 teststring=
4797 # Add a significant safety factor because C++ compilers can tack on
4798 # massive amounts of additional arguments before passing them to the
4799 # linker. It appears as though 1/2 is a usable value.
4800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4801 fi
4802 ;;
4803 esac
4804
4805 fi
4806
4807 if test -n $lt_cv_sys_max_cmd_len ; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4809 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4812 $as_echo "none" >&6; }
4813 fi
4814 max_cmd_len=$lt_cv_sys_max_cmd_len
4815
4816
4817
4818
4819
4820
4821 : ${CP="cp -f"}
4822 : ${MV="mv -f"}
4823 : ${RM="rm -f"}
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4826 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4827 # Try some XSI features
4828 xsi_shell=no
4829 ( _lt_dummy="a/b/c"
4830 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4831 = c,a/b,b/c, \
4832 && eval 'test $(( 1 + 1 )) -eq 2 \
4833 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4834 && xsi_shell=yes
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4836 $as_echo "$xsi_shell" >&6; }
4837
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4840 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4841 lt_shell_append=no
4842 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4843 >/dev/null 2>&1 \
4844 && lt_shell_append=yes
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4846 $as_echo "$lt_shell_append" >&6; }
4847
4848
4849 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4850 lt_unset=unset
4851 else
4852 lt_unset=false
4853 fi
4854
4855
4856
4857
4858
4859 # test EBCDIC or ASCII
4860 case `echo X|tr X '\101'` in
4861 A) # ASCII based system
4862 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4863 lt_SP2NL='tr \040 \012'
4864 lt_NL2SP='tr \015\012 \040\040'
4865 ;;
4866 *) # EBCDIC based system
4867 lt_SP2NL='tr \100 \n'
4868 lt_NL2SP='tr \r\n \100\100'
4869 ;;
4870 esac
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4881 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4882 if ${lt_cv_to_host_file_cmd+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 case $host in
4886 *-*-mingw* )
4887 case $build in
4888 *-*-mingw* ) # actually msys
4889 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4890 ;;
4891 *-*-cygwin* )
4892 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4893 ;;
4894 * ) # otherwise, assume *nix
4895 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4896 ;;
4897 esac
4898 ;;
4899 *-*-cygwin* )
4900 case $build in
4901 *-*-mingw* ) # actually msys
4902 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4903 ;;
4904 *-*-cygwin* )
4905 lt_cv_to_host_file_cmd=func_convert_file_noop
4906 ;;
4907 * ) # otherwise, assume *nix
4908 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4909 ;;
4910 esac
4911 ;;
4912 * ) # unhandled hosts (and "normal" native builds)
4913 lt_cv_to_host_file_cmd=func_convert_file_noop
4914 ;;
4915 esac
4916
4917 fi
4918
4919 to_host_file_cmd=$lt_cv_to_host_file_cmd
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4921 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4922
4923
4924
4925
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4928 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4929 if ${lt_cv_to_tool_file_cmd+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 #assume ordinary cross tools, or native build.
4933 lt_cv_to_tool_file_cmd=func_convert_file_noop
4934 case $host in
4935 *-*-mingw* )
4936 case $build in
4937 *-*-mingw* ) # actually msys
4938 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4939 ;;
4940 esac
4941 ;;
4942 esac
4943
4944 fi
4945
4946 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4948 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4949
4950
4951
4952
4953
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4955 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4956 if ${lt_cv_ld_reload_flag+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 lt_cv_ld_reload_flag='-r'
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4962 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4963 reload_flag=$lt_cv_ld_reload_flag
4964 case $reload_flag in
4965 "" | " "*) ;;
4966 *) reload_flag=" $reload_flag" ;;
4967 esac
4968 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4969 case $host_os in
4970 cygwin* | mingw* | pw32* | cegcc*)
4971 if test "$GCC" != yes; then
4972 reload_cmds=false
4973 fi
4974 ;;
4975 darwin*)
4976 if test "$GCC" = yes; then
4977 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4978 else
4979 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4980 fi
4981 ;;
4982 esac
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992 if test -n "$ac_tool_prefix"; then
4993 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4994 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_prog_OBJDUMP+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 if test -n "$OBJDUMP"; then
5001 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006 IFS=$as_save_IFS
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 break 2
5013 fi
5014 done
5015 done
5016 IFS=$as_save_IFS
5017
5018 fi
5019 fi
5020 OBJDUMP=$ac_cv_prog_OBJDUMP
5021 if test -n "$OBJDUMP"; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5023 $as_echo "$OBJDUMP" >&6; }
5024 else
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5027 fi
5028
5029
5030 fi
5031 if test -z "$ac_cv_prog_OBJDUMP"; then
5032 ac_ct_OBJDUMP=$OBJDUMP
5033 # Extract the first word of "objdump", so it can be a program name with args.
5034 set dummy objdump; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -n "$ac_ct_OBJDUMP"; then
5041 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5045 do
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5053 fi
5054 done
5055 done
5056 IFS=$as_save_IFS
5057
5058 fi
5059 fi
5060 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5061 if test -n "$ac_ct_OBJDUMP"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5063 $as_echo "$ac_ct_OBJDUMP" >&6; }
5064 else
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069 if test "x$ac_ct_OBJDUMP" = x; then
5070 OBJDUMP="false"
5071 else
5072 case $cross_compiling:$ac_tool_warned in
5073 yes:)
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076 ac_tool_warned=yes ;;
5077 esac
5078 OBJDUMP=$ac_ct_OBJDUMP
5079 fi
5080 else
5081 OBJDUMP="$ac_cv_prog_OBJDUMP"
5082 fi
5083
5084 test -z "$OBJDUMP" && OBJDUMP=objdump
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5095 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5096 if ${lt_cv_deplibs_check_method+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 lt_cv_file_magic_cmd='$MAGIC_CMD'
5100 lt_cv_file_magic_test_file=
5101 lt_cv_deplibs_check_method='unknown'
5102 # Need to set the preceding variable on all platforms that support
5103 # interlibrary dependencies.
5104 # 'none' -- dependencies not supported.
5105 # `unknown' -- same as none, but documents that we really don't know.
5106 # 'pass_all' -- all dependencies passed with no checks.
5107 # 'test_compile' -- check by making test program.
5108 # 'file_magic [[regex]]' -- check by looking for files in library path
5109 # which responds to the $file_magic_cmd with a given extended regex.
5110 # If you have `file' or equivalent on your system and you're not sure
5111 # whether `pass_all' will *always* work, you probably want this one.
5112
5113 case $host_os in
5114 aix[4-9]*)
5115 lt_cv_deplibs_check_method=pass_all
5116 ;;
5117
5118 beos*)
5119 lt_cv_deplibs_check_method=pass_all
5120 ;;
5121
5122 bsdi[45]*)
5123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5124 lt_cv_file_magic_cmd='/usr/bin/file -L'
5125 lt_cv_file_magic_test_file=/shlib/libc.so
5126 ;;
5127
5128 cygwin*)
5129 # func_win32_libid is a shell function defined in ltmain.sh
5130 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5131 lt_cv_file_magic_cmd='func_win32_libid'
5132 ;;
5133
5134 mingw* | pw32*)
5135 # Base MSYS/MinGW do not provide the 'file' command needed by
5136 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5137 # unless we find 'file', for example because we are cross-compiling.
5138 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5139 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5141 lt_cv_file_magic_cmd='func_win32_libid'
5142 else
5143 # Keep this pattern in sync with the one in func_win32_libid.
5144 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5145 lt_cv_file_magic_cmd='$OBJDUMP -f'
5146 fi
5147 ;;
5148
5149 cegcc*)
5150 # use the weaker test based on 'objdump'. See mingw*.
5151 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5152 lt_cv_file_magic_cmd='$OBJDUMP -f'
5153 ;;
5154
5155 darwin* | rhapsody*)
5156 lt_cv_deplibs_check_method=pass_all
5157 ;;
5158
5159 freebsd* | dragonfly*)
5160 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5161 case $host_cpu in
5162 i*86 )
5163 # Not sure whether the presence of OpenBSD here was a mistake.
5164 # Let's accept both of them until this is cleared up.
5165 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5166 lt_cv_file_magic_cmd=/usr/bin/file
5167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5168 ;;
5169 esac
5170 else
5171 lt_cv_deplibs_check_method=pass_all
5172 fi
5173 ;;
5174
5175 gnu*)
5176 lt_cv_deplibs_check_method=pass_all
5177 ;;
5178
5179 haiku*)
5180 lt_cv_deplibs_check_method=pass_all
5181 ;;
5182
5183 hpux10.20* | hpux11*)
5184 lt_cv_file_magic_cmd=/usr/bin/file
5185 case $host_cpu in
5186 ia64*)
5187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5188 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5189 ;;
5190 hppa*64*)
5191 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]'
5192 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5193 ;;
5194 *)
5195 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5196 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5197 ;;
5198 esac
5199 ;;
5200
5201 interix[3-9]*)
5202 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5204 ;;
5205
5206 irix5* | irix6* | nonstopux*)
5207 case $LD in
5208 *-32|*"-32 ") libmagic=32-bit;;
5209 *-n32|*"-n32 ") libmagic=N32;;
5210 *-64|*"-64 ") libmagic=64-bit;;
5211 *) libmagic=never-match;;
5212 esac
5213 lt_cv_deplibs_check_method=pass_all
5214 ;;
5215
5216 # This must be Linux ELF.
5217 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5218 lt_cv_deplibs_check_method=pass_all
5219 ;;
5220
5221 netbsd*)
5222 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5224 else
5225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5226 fi
5227 ;;
5228
5229 newos6*)
5230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5231 lt_cv_file_magic_cmd=/usr/bin/file
5232 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5233 ;;
5234
5235 *nto* | *qnx*)
5236 lt_cv_deplibs_check_method=pass_all
5237 ;;
5238
5239 openbsd*)
5240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5242 else
5243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5244 fi
5245 ;;
5246
5247 osf3* | osf4* | osf5*)
5248 lt_cv_deplibs_check_method=pass_all
5249 ;;
5250
5251 rdos*)
5252 lt_cv_deplibs_check_method=pass_all
5253 ;;
5254
5255 solaris*)
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258
5259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5260 lt_cv_deplibs_check_method=pass_all
5261 ;;
5262
5263 sysv4 | sysv4.3*)
5264 case $host_vendor in
5265 motorola)
5266 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]'
5267 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5268 ;;
5269 ncr)
5270 lt_cv_deplibs_check_method=pass_all
5271 ;;
5272 sequent)
5273 lt_cv_file_magic_cmd='/bin/file'
5274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5275 ;;
5276 sni)
5277 lt_cv_file_magic_cmd='/bin/file'
5278 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5279 lt_cv_file_magic_test_file=/lib/libc.so
5280 ;;
5281 siemens)
5282 lt_cv_deplibs_check_method=pass_all
5283 ;;
5284 pc)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287 esac
5288 ;;
5289
5290 tpf*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293 esac
5294
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5297 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5298
5299 file_magic_glob=
5300 want_nocaseglob=no
5301 if test "$build" = "$host"; then
5302 case $host_os in
5303 mingw* | pw32*)
5304 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5305 want_nocaseglob=yes
5306 else
5307 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5308 fi
5309 ;;
5310 esac
5311 fi
5312
5313 file_magic_cmd=$lt_cv_file_magic_cmd
5314 deplibs_check_method=$lt_cv_deplibs_check_method
5315 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338 if test -n "$ac_tool_prefix"; then
5339 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5340 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_prog_DLLTOOL+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 if test -n "$DLLTOOL"; then
5347 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5359 fi
5360 done
5361 done
5362 IFS=$as_save_IFS
5363
5364 fi
5365 fi
5366 DLLTOOL=$ac_cv_prog_DLLTOOL
5367 if test -n "$DLLTOOL"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5369 $as_echo "$DLLTOOL" >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5373 fi
5374
5375
5376 fi
5377 if test -z "$ac_cv_prog_DLLTOOL"; then
5378 ac_ct_DLLTOOL=$DLLTOOL
5379 # Extract the first word of "dlltool", so it can be a program name with args.
5380 set dummy dlltool; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -n "$ac_ct_DLLTOOL"; then
5387 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400 done
5401 done
5402 IFS=$as_save_IFS
5403
5404 fi
5405 fi
5406 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5407 if test -n "$ac_ct_DLLTOOL"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5409 $as_echo "$ac_ct_DLLTOOL" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415 if test "x$ac_ct_DLLTOOL" = x; then
5416 DLLTOOL="false"
5417 else
5418 case $cross_compiling:$ac_tool_warned in
5419 yes:)
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5422 ac_tool_warned=yes ;;
5423 esac
5424 DLLTOOL=$ac_ct_DLLTOOL
5425 fi
5426 else
5427 DLLTOOL="$ac_cv_prog_DLLTOOL"
5428 fi
5429
5430 test -z "$DLLTOOL" && DLLTOOL=dlltool
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5442 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5443 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 lt_cv_sharedlib_from_linklib_cmd='unknown'
5447
5448 case $host_os in
5449 cygwin* | mingw* | pw32* | cegcc*)
5450 # two different shell functions defined in ltmain.sh
5451 # decide which to use based on capabilities of $DLLTOOL
5452 case `$DLLTOOL --help 2>&1` in
5453 *--identify-strict*)
5454 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5455 ;;
5456 *)
5457 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5458 ;;
5459 esac
5460 ;;
5461 *)
5462 # fallback: assume linklib IS sharedlib
5463 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5464 ;;
5465 esac
5466
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5469 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5470 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5471 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5472
5473
5474
5475
5476
5477
5478
5479
5480 if test -n "$ac_tool_prefix"; then
5481 for ac_prog in ar
5482 do
5483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if ${ac_cv_prog_AR+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 if test -n "$AR"; then
5491 ac_cv_prog_AR="$AR" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504 done
5505 done
5506 IFS=$as_save_IFS
5507
5508 fi
5509 fi
5510 AR=$ac_cv_prog_AR
5511 if test -n "$AR"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5513 $as_echo "$AR" >&6; }
5514 else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 fi
5518
5519
5520 test -n "$AR" && break
5521 done
5522 fi
5523 if test -z "$AR"; then
5524 ac_ct_AR=$AR
5525 for ac_prog in ar
5526 do
5527 # Extract the first word of "$ac_prog", so it can be a program name with args.
5528 set dummy $ac_prog; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$ac_ct_AR"; then
5535 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_prog_ac_ct_AR="$ac_prog"
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5547 fi
5548 done
5549 done
5550 IFS=$as_save_IFS
5551
5552 fi
5553 fi
5554 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5555 if test -n "$ac_ct_AR"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5557 $as_echo "$ac_ct_AR" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562
5563
5564 test -n "$ac_ct_AR" && break
5565 done
5566
5567 if test "x$ac_ct_AR" = x; then
5568 AR="false"
5569 else
5570 case $cross_compiling:$ac_tool_warned in
5571 yes:)
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574 ac_tool_warned=yes ;;
5575 esac
5576 AR=$ac_ct_AR
5577 fi
5578 fi
5579
5580 : ${AR=ar}
5581 : ${AR_FLAGS=cru}
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5594 $as_echo_n "checking for archiver @FILE support... " >&6; }
5595 if ${lt_cv_ar_at_file+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 lt_cv_ar_at_file=no
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601
5602 int
5603 main ()
5604 {
5605
5606 ;
5607 return 0;
5608 }
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611 echo conftest.$ac_objext > conftest.lst
5612 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5614 (eval $lt_ar_try) 2>&5
5615 ac_status=$?
5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5617 test $ac_status = 0; }
5618 if test "$ac_status" -eq 0; then
5619 # Ensure the archiver fails upon bogus file names.
5620 rm -f conftest.$ac_objext libconftest.a
5621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5622 (eval $lt_ar_try) 2>&5
5623 ac_status=$?
5624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5625 test $ac_status = 0; }
5626 if test "$ac_status" -ne 0; then
5627 lt_cv_ar_at_file=@
5628 fi
5629 fi
5630 rm -f conftest.* libconftest.a
5631
5632 fi
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5637 $as_echo "$lt_cv_ar_at_file" >&6; }
5638
5639 if test "x$lt_cv_ar_at_file" = xno; then
5640 archiver_list_spec=
5641 else
5642 archiver_list_spec=$lt_cv_ar_at_file
5643 fi
5644
5645
5646
5647
5648
5649
5650
5651 if test -n "$ac_tool_prefix"; then
5652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5653 set dummy ${ac_tool_prefix}strip; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_prog_STRIP+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 if test -n "$STRIP"; then
5660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5672 fi
5673 done
5674 done
5675 IFS=$as_save_IFS
5676
5677 fi
5678 fi
5679 STRIP=$ac_cv_prog_STRIP
5680 if test -n "$STRIP"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5682 $as_echo "$STRIP" >&6; }
5683 else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5686 fi
5687
5688
5689 fi
5690 if test -z "$ac_cv_prog_STRIP"; then
5691 ac_ct_STRIP=$STRIP
5692 # Extract the first word of "strip", so it can be a program name with args.
5693 set dummy strip; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 if test -n "$ac_ct_STRIP"; then
5700 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709 ac_cv_prog_ac_ct_STRIP="strip"
5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 break 2
5712 fi
5713 done
5714 done
5715 IFS=$as_save_IFS
5716
5717 fi
5718 fi
5719 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5720 if test -n "$ac_ct_STRIP"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5722 $as_echo "$ac_ct_STRIP" >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5726 fi
5727
5728 if test "x$ac_ct_STRIP" = x; then
5729 STRIP=":"
5730 else
5731 case $cross_compiling:$ac_tool_warned in
5732 yes:)
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5735 ac_tool_warned=yes ;;
5736 esac
5737 STRIP=$ac_ct_STRIP
5738 fi
5739 else
5740 STRIP="$ac_cv_prog_STRIP"
5741 fi
5742
5743 test -z "$STRIP" && STRIP=:
5744
5745
5746
5747
5748
5749
5750 if test -n "$ac_tool_prefix"; then
5751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5752 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_prog_RANLIB+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 if test -n "$RANLIB"; then
5759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5771 fi
5772 done
5773 done
5774 IFS=$as_save_IFS
5775
5776 fi
5777 fi
5778 RANLIB=$ac_cv_prog_RANLIB
5779 if test -n "$RANLIB"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5781 $as_echo "$RANLIB" >&6; }
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5785 fi
5786
5787
5788 fi
5789 if test -z "$ac_cv_prog_RANLIB"; then
5790 ac_ct_RANLIB=$RANLIB
5791 # Extract the first word of "ranlib", so it can be a program name with args.
5792 set dummy ranlib; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 if test -n "$ac_ct_RANLIB"; then
5799 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_ac_ct_RANLIB="ranlib"
5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812 done
5813 done
5814 IFS=$as_save_IFS
5815
5816 fi
5817 fi
5818 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5819 if test -n "$ac_ct_RANLIB"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5821 $as_echo "$ac_ct_RANLIB" >&6; }
5822 else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5825 fi
5826
5827 if test "x$ac_ct_RANLIB" = x; then
5828 RANLIB=":"
5829 else
5830 case $cross_compiling:$ac_tool_warned in
5831 yes:)
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5834 ac_tool_warned=yes ;;
5835 esac
5836 RANLIB=$ac_ct_RANLIB
5837 fi
5838 else
5839 RANLIB="$ac_cv_prog_RANLIB"
5840 fi
5841
5842 test -z "$RANLIB" && RANLIB=:
5843
5844
5845
5846
5847
5848
5849 # Determine commands to create old-style static archives.
5850 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5851 old_postinstall_cmds='chmod 644 $oldlib'
5852 old_postuninstall_cmds=
5853
5854 if test -n "$RANLIB"; then
5855 case $host_os in
5856 openbsd*)
5857 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5858 ;;
5859 *)
5860 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5861 ;;
5862 esac
5863 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5864 fi
5865
5866 case $host_os in
5867 darwin*)
5868 lock_old_archive_extraction=yes ;;
5869 *)
5870 lock_old_archive_extraction=no ;;
5871 esac
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911 # If no C compiler was specified, use CC.
5912 LTCC=${LTCC-"$CC"}
5913
5914 # If no C compiler flags were specified, use CFLAGS.
5915 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5916
5917 # Allow CC to be a program name with arguments.
5918 compiler=$CC
5919
5920
5921 # Check for command to grab the raw symbol name followed by C symbol from nm.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5923 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5924 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927
5928 # These are sane defaults that work on at least a few old systems.
5929 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5930
5931 # Character class describing NM global symbol codes.
5932 symcode='[BCDEGRST]'
5933
5934 # Regexp to match symbols that can be accessed directly from C.
5935 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5936
5937 # Define system-specific variables.
5938 case $host_os in
5939 aix*)
5940 symcode='[BCDT]'
5941 ;;
5942 cygwin* | mingw* | pw32* | cegcc*)
5943 symcode='[ABCDGISTW]'
5944 ;;
5945 hpux*)
5946 if test "$host_cpu" = ia64; then
5947 symcode='[ABCDEGRST]'
5948 fi
5949 ;;
5950 irix* | nonstopux*)
5951 symcode='[BCDEGRST]'
5952 ;;
5953 osf*)
5954 symcode='[BCDEGQRST]'
5955 ;;
5956 solaris*)
5957 symcode='[BDRT]'
5958 ;;
5959 sco3.2v5*)
5960 symcode='[DT]'
5961 ;;
5962 sysv4.2uw2*)
5963 symcode='[DT]'
5964 ;;
5965 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5966 symcode='[ABDT]'
5967 ;;
5968 sysv4)
5969 symcode='[DFNSTU]'
5970 ;;
5971 esac
5972
5973 # If we're using GNU nm, then use its standard symbol codes.
5974 case `$NM -V 2>&1` in
5975 *GNU* | *'with BFD'*)
5976 symcode='[ABCDGIRSTW]' ;;
5977 esac
5978
5979 # Transform an extracted symbol line into a proper C declaration.
5980 # Some systems (esp. on ia64) link data and code symbols differently,
5981 # so use this general approach.
5982 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5983
5984 # Transform an extracted symbol line into symbol name and symbol address
5985 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5986 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5987
5988 # Handle CRLF in mingw tool chain
5989 opt_cr=
5990 case $build_os in
5991 mingw*)
5992 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5993 ;;
5994 esac
5995
5996 # Try without a prefix underscore, then with it.
5997 for ac_symprfx in "" "_"; do
5998
5999 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6000 symxfrm="\\1 $ac_symprfx\\2 \\2"
6001
6002 # Write the raw and C identifiers.
6003 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6004 # Fake it for dumpbin and say T for any non-static function
6005 # and D for any global variable.
6006 # Also find C++ and __fastcall symbols from MSVC++,
6007 # which start with @ or ?.
6008 lt_cv_sys_global_symbol_pipe="$AWK '"\
6009 " {last_section=section; section=\$ 3};"\
6010 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6011 " \$ 0!~/External *\|/{next};"\
6012 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6013 " {if(hide[section]) next};"\
6014 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6015 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6016 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6017 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6018 " ' prfx=^$ac_symprfx"
6019 else
6020 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6021 fi
6022 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6023
6024 # Check to see that the pipe works correctly.
6025 pipe_works=no
6026
6027 rm -f conftest*
6028 cat > conftest.$ac_ext <<_LT_EOF
6029 #ifdef __cplusplus
6030 extern "C" {
6031 #endif
6032 char nm_test_var;
6033 void nm_test_func(void);
6034 void nm_test_func(void){}
6035 #ifdef __cplusplus
6036 }
6037 #endif
6038 int main(){nm_test_var='a';nm_test_func();return(0);}
6039 _LT_EOF
6040
6041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6042 (eval $ac_compile) 2>&5
6043 ac_status=$?
6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6045 test $ac_status = 0; }; then
6046 # Now try to grab the symbols.
6047 nlist=conftest.nm
6048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6049 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6050 ac_status=$?
6051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052 test $ac_status = 0; } && test -s "$nlist"; then
6053 # Try sorting and uniquifying the output.
6054 if sort "$nlist" | uniq > "$nlist"T; then
6055 mv -f "$nlist"T "$nlist"
6056 else
6057 rm -f "$nlist"T
6058 fi
6059
6060 # Make sure that we snagged all the symbols we need.
6061 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6062 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6063 cat <<_LT_EOF > conftest.$ac_ext
6064 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6065 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6066 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6067 relocations are performed -- see ld's documentation on pseudo-relocs. */
6068 # define LT_DLSYM_CONST
6069 #elif defined(__osf__)
6070 /* This system does not cope well with relocations in const data. */
6071 # define LT_DLSYM_CONST
6072 #else
6073 # define LT_DLSYM_CONST const
6074 #endif
6075
6076 #ifdef __cplusplus
6077 extern "C" {
6078 #endif
6079
6080 _LT_EOF
6081 # Now generate the symbol file.
6082 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6083
6084 cat <<_LT_EOF >> conftest.$ac_ext
6085
6086 /* The mapping between symbol names and symbols. */
6087 LT_DLSYM_CONST struct {
6088 const char *name;
6089 void *address;
6090 }
6091 lt__PROGRAM__LTX_preloaded_symbols[] =
6092 {
6093 { "@PROGRAM@", (void *) 0 },
6094 _LT_EOF
6095 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6096 cat <<\_LT_EOF >> conftest.$ac_ext
6097 {0, (void *) 0}
6098 };
6099
6100 /* This works around a problem in FreeBSD linker */
6101 #ifdef FREEBSD_WORKAROUND
6102 static const void *lt_preloaded_setup() {
6103 return lt__PROGRAM__LTX_preloaded_symbols;
6104 }
6105 #endif
6106
6107 #ifdef __cplusplus
6108 }
6109 #endif
6110 _LT_EOF
6111 # Now try linking the two files.
6112 mv conftest.$ac_objext conftstm.$ac_objext
6113 lt_globsym_save_LIBS=$LIBS
6114 lt_globsym_save_CFLAGS=$CFLAGS
6115 LIBS="conftstm.$ac_objext"
6116 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6118 (eval $ac_link) 2>&5
6119 ac_status=$?
6120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6121 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6122 pipe_works=yes
6123 fi
6124 LIBS=$lt_globsym_save_LIBS
6125 CFLAGS=$lt_globsym_save_CFLAGS
6126 else
6127 echo "cannot find nm_test_func in $nlist" >&5
6128 fi
6129 else
6130 echo "cannot find nm_test_var in $nlist" >&5
6131 fi
6132 else
6133 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6134 fi
6135 else
6136 echo "$progname: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6138 fi
6139 rm -rf conftest* conftst*
6140
6141 # Do not use the global_symbol_pipe unless it works.
6142 if test "$pipe_works" = yes; then
6143 break
6144 else
6145 lt_cv_sys_global_symbol_pipe=
6146 fi
6147 done
6148
6149 fi
6150
6151 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6152 lt_cv_sys_global_symbol_to_cdecl=
6153 fi
6154 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6156 $as_echo "failed" >&6; }
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6159 $as_echo "ok" >&6; }
6160 fi
6161
6162 # Response file support.
6163 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6164 nm_file_list_spec='@'
6165 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6166 nm_file_list_spec='@'
6167 fi
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6196 $as_echo_n "checking for sysroot... " >&6; }
6197
6198 # Check whether --with-sysroot was given.
6199 if test "${with_sysroot+set}" = set; then :
6200 withval=$with_sysroot;
6201 else
6202 with_sysroot=no
6203 fi
6204
6205
6206 lt_sysroot=
6207 case ${with_sysroot} in #(
6208 yes)
6209 if test "$GCC" = yes; then
6210 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6211 fi
6212 ;; #(
6213 /*)
6214 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6215 ;; #(
6216 no|'')
6217 ;; #(
6218 *)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6220 $as_echo "${with_sysroot}" >&6; }
6221 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6222 ;;
6223 esac
6224
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6226 $as_echo "${lt_sysroot:-no}" >&6; }
6227
6228
6229
6230
6231
6232 # Check whether --enable-libtool-lock was given.
6233 if test "${enable_libtool_lock+set}" = set; then :
6234 enableval=$enable_libtool_lock;
6235 fi
6236
6237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6238
6239 # Some flags need to be propagated to the compiler or linker for good
6240 # libtool support.
6241 case $host in
6242 ia64-*-hpux*)
6243 # Find out which ABI we are using.
6244 echo 'int i;' > conftest.$ac_ext
6245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6246 (eval $ac_compile) 2>&5
6247 ac_status=$?
6248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249 test $ac_status = 0; }; then
6250 case `/usr/bin/file conftest.$ac_objext` in
6251 *ELF-32*)
6252 HPUX_IA64_MODE="32"
6253 ;;
6254 *ELF-64*)
6255 HPUX_IA64_MODE="64"
6256 ;;
6257 esac
6258 fi
6259 rm -rf conftest*
6260 ;;
6261 *-*-irix6*)
6262 # Find out which ABI we are using.
6263 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6265 (eval $ac_compile) 2>&5
6266 ac_status=$?
6267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268 test $ac_status = 0; }; then
6269 if test "$lt_cv_prog_gnu_ld" = yes; then
6270 case `/usr/bin/file conftest.$ac_objext` in
6271 *32-bit*)
6272 LD="${LD-ld} -melf32bsmip"
6273 ;;
6274 *N32*)
6275 LD="${LD-ld} -melf32bmipn32"
6276 ;;
6277 *64-bit*)
6278 LD="${LD-ld} -melf64bmip"
6279 ;;
6280 esac
6281 else
6282 case `/usr/bin/file conftest.$ac_objext` in
6283 *32-bit*)
6284 LD="${LD-ld} -32"
6285 ;;
6286 *N32*)
6287 LD="${LD-ld} -n32"
6288 ;;
6289 *64-bit*)
6290 LD="${LD-ld} -64"
6291 ;;
6292 esac
6293 fi
6294 fi
6295 rm -rf conftest*
6296 ;;
6297
6298 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6299 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6300 # Find out which ABI we are using.
6301 echo 'int i;' > conftest.$ac_ext
6302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6303 (eval $ac_compile) 2>&5
6304 ac_status=$?
6305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306 test $ac_status = 0; }; then
6307 case `/usr/bin/file conftest.o` in
6308 *32-bit*)
6309 case $host in
6310 x86_64-*kfreebsd*-gnu)
6311 LD="${LD-ld} -m elf_i386_fbsd"
6312 ;;
6313 x86_64-*linux*)
6314 LD="${LD-ld} -m elf_i386"
6315 ;;
6316 ppc64-*linux*|powerpc64-*linux*)
6317 LD="${LD-ld} -m elf32ppclinux"
6318 ;;
6319 s390x-*linux*)
6320 LD="${LD-ld} -m elf_s390"
6321 ;;
6322 sparc64-*linux*)
6323 LD="${LD-ld} -m elf32_sparc"
6324 ;;
6325 esac
6326 ;;
6327 *64-bit*)
6328 case $host in
6329 x86_64-*kfreebsd*-gnu)
6330 LD="${LD-ld} -m elf_x86_64_fbsd"
6331 ;;
6332 x86_64-*linux*)
6333 LD="${LD-ld} -m elf_x86_64"
6334 ;;
6335 ppc*-*linux*|powerpc*-*linux*)
6336 LD="${LD-ld} -m elf64ppc"
6337 ;;
6338 s390*-*linux*|s390*-*tpf*)
6339 LD="${LD-ld} -m elf64_s390"
6340 ;;
6341 sparc*-*linux*)
6342 LD="${LD-ld} -m elf64_sparc"
6343 ;;
6344 esac
6345 ;;
6346 esac
6347 fi
6348 rm -rf conftest*
6349 ;;
6350
6351 *-*-sco3.2v5*)
6352 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6353 SAVE_CFLAGS="$CFLAGS"
6354 CFLAGS="$CFLAGS -belf"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6356 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6357 if ${lt_cv_cc_needs_belf+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 ac_ext=c
6361 ac_cpp='$CPP $CPPFLAGS'
6362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6365
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368
6369 int
6370 main ()
6371 {
6372
6373 ;
6374 return 0;
6375 }
6376 _ACEOF
6377 if ac_fn_c_try_link "$LINENO"; then :
6378 lt_cv_cc_needs_belf=yes
6379 else
6380 lt_cv_cc_needs_belf=no
6381 fi
6382 rm -f core conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384 ac_ext=c
6385 ac_cpp='$CPP $CPPFLAGS'
6386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6389
6390 fi
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6392 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6393 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6394 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6395 CFLAGS="$SAVE_CFLAGS"
6396 fi
6397 ;;
6398 sparc*-*solaris*)
6399 # Find out which ABI we are using.
6400 echo 'int i;' > conftest.$ac_ext
6401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6402 (eval $ac_compile) 2>&5
6403 ac_status=$?
6404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6405 test $ac_status = 0; }; then
6406 case `/usr/bin/file conftest.o` in
6407 *64-bit*)
6408 case $lt_cv_prog_gnu_ld in
6409 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6410 *)
6411 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6412 LD="${LD-ld} -64"
6413 fi
6414 ;;
6415 esac
6416 ;;
6417 esac
6418 fi
6419 rm -rf conftest*
6420 ;;
6421 esac
6422
6423 need_locks="$enable_libtool_lock"
6424
6425 if test -n "$ac_tool_prefix"; then
6426 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6427 set dummy ${ac_tool_prefix}mt; ac_word=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 if test -n "$MANIFEST_TOOL"; then
6434 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447 done
6448 done
6449 IFS=$as_save_IFS
6450
6451 fi
6452 fi
6453 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6454 if test -n "$MANIFEST_TOOL"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6456 $as_echo "$MANIFEST_TOOL" >&6; }
6457 else
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6460 fi
6461
6462
6463 fi
6464 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6465 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6466 # Extract the first word of "mt", so it can be a program name with args.
6467 set dummy mt; ac_word=$2
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6469 $as_echo_n "checking for $ac_word... " >&6; }
6470 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 if test -n "$ac_ct_MANIFEST_TOOL"; then
6474 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6475 else
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 for as_dir in $PATH
6478 do
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6483 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 break 2
6486 fi
6487 done
6488 done
6489 IFS=$as_save_IFS
6490
6491 fi
6492 fi
6493 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6494 if test -n "$ac_ct_MANIFEST_TOOL"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6496 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6497 else
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499 $as_echo "no" >&6; }
6500 fi
6501
6502 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6503 MANIFEST_TOOL=":"
6504 else
6505 case $cross_compiling:$ac_tool_warned in
6506 yes:)
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6509 ac_tool_warned=yes ;;
6510 esac
6511 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6512 fi
6513 else
6514 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6515 fi
6516
6517 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6519 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6520 if ${lt_cv_path_mainfest_tool+:} false; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 lt_cv_path_mainfest_tool=no
6524 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6525 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6526 cat conftest.err >&5
6527 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6528 lt_cv_path_mainfest_tool=yes
6529 fi
6530 rm -f conftest*
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6533 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6534 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6535 MANIFEST_TOOL=:
6536 fi
6537
6538
6539
6540
6541
6542
6543 case $host_os in
6544 rhapsody* | darwin*)
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 if test -n "$DSYMUTIL"; then
6554 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6574 if test -n "$DSYMUTIL"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6576 $as_echo "$DSYMUTIL" >&6; }
6577 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582
6583 fi
6584 if test -z "$ac_cv_prog_DSYMUTIL"; then
6585 ac_ct_DSYMUTIL=$DSYMUTIL
6586 # Extract the first word of "dsymutil", so it can be a program name with args.
6587 set dummy dsymutil; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 if test -n "$ac_ct_DSYMUTIL"; then
6594 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6614 if test -n "$ac_ct_DSYMUTIL"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6616 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6617 else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622 if test "x$ac_ct_DSYMUTIL" = x; then
6623 DSYMUTIL=":"
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631 DSYMUTIL=$ac_ct_DSYMUTIL
6632 fi
6633 else
6634 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6635 fi
6636
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if ${ac_cv_prog_NMEDIT+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 if test -n "$NMEDIT"; then
6646 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659 done
6660 done
6661 IFS=$as_save_IFS
6662
6663 fi
6664 fi
6665 NMEDIT=$ac_cv_prog_NMEDIT
6666 if test -n "$NMEDIT"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6668 $as_echo "$NMEDIT" >&6; }
6669 else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 fi
6673
6674
6675 fi
6676 if test -z "$ac_cv_prog_NMEDIT"; then
6677 ac_ct_NMEDIT=$NMEDIT
6678 # Extract the first word of "nmedit", so it can be a program name with args.
6679 set dummy nmedit; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 if test -n "$ac_ct_NMEDIT"; then
6686 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6706 if test -n "$ac_ct_NMEDIT"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6708 $as_echo "$ac_ct_NMEDIT" >&6; }
6709 else
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713
6714 if test "x$ac_ct_NMEDIT" = x; then
6715 NMEDIT=":"
6716 else
6717 case $cross_compiling:$ac_tool_warned in
6718 yes:)
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6722 esac
6723 NMEDIT=$ac_ct_NMEDIT
6724 fi
6725 else
6726 NMEDIT="$ac_cv_prog_NMEDIT"
6727 fi
6728
6729 if test -n "$ac_tool_prefix"; then
6730 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if ${ac_cv_prog_LIPO+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$LIPO"; then
6738 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 LIPO=$ac_cv_prog_LIPO
6758 if test -n "$LIPO"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6760 $as_echo "$LIPO" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766
6767 fi
6768 if test -z "$ac_cv_prog_LIPO"; then
6769 ac_ct_LIPO=$LIPO
6770 # Extract the first word of "lipo", so it can be a program name with args.
6771 set dummy lipo; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 if test -n "$ac_ct_LIPO"; then
6778 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787 ac_cv_prog_ac_ct_LIPO="lipo"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6798 if test -n "$ac_ct_LIPO"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6800 $as_echo "$ac_ct_LIPO" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6804 fi
6805
6806 if test "x$ac_ct_LIPO" = x; then
6807 LIPO=":"
6808 else
6809 case $cross_compiling:$ac_tool_warned in
6810 yes:)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815 LIPO=$ac_ct_LIPO
6816 fi
6817 else
6818 LIPO="$ac_cv_prog_LIPO"
6819 fi
6820
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}otool; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_OTOOL+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$OTOOL"; then
6830 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 OTOOL=$ac_cv_prog_OTOOL
6850 if test -n "$OTOOL"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6852 $as_echo "$OTOOL" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859 fi
6860 if test -z "$ac_cv_prog_OTOOL"; then
6861 ac_ct_OTOOL=$OTOOL
6862 # Extract the first word of "otool", so it can be a program name with args.
6863 set dummy otool; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 if test -n "$ac_ct_OTOOL"; then
6870 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879 ac_cv_prog_ac_ct_OTOOL="otool"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6890 if test -n "$ac_ct_OTOOL"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6892 $as_echo "$ac_ct_OTOOL" >&6; }
6893 else
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897
6898 if test "x$ac_ct_OTOOL" = x; then
6899 OTOOL=":"
6900 else
6901 case $cross_compiling:$ac_tool_warned in
6902 yes:)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907 OTOOL=$ac_ct_OTOOL
6908 fi
6909 else
6910 OTOOL="$ac_cv_prog_OTOOL"
6911 fi
6912
6913 if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6915 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_prog_OTOOL64+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if test -n "$OTOOL64"; then
6922 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6931 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935 done
6936 done
6937 IFS=$as_save_IFS
6938
6939 fi
6940 fi
6941 OTOOL64=$ac_cv_prog_OTOOL64
6942 if test -n "$OTOOL64"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6944 $as_echo "$OTOOL64" >&6; }
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6948 fi
6949
6950
6951 fi
6952 if test -z "$ac_cv_prog_OTOOL64"; then
6953 ac_ct_OTOOL64=$OTOOL64
6954 # Extract the first word of "otool64", so it can be a program name with args.
6955 set dummy otool64; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 if test -n "$ac_ct_OTOOL64"; then
6962 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
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_ac_ct_OTOOL64="otool64"
6972 $as_echo "$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 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6982 if test -n "$ac_ct_OTOOL64"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6984 $as_echo "$ac_ct_OTOOL64" >&6; }
6985 else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6988 fi
6989
6990 if test "x$ac_ct_OTOOL64" = x; then
6991 OTOOL64=":"
6992 else
6993 case $cross_compiling:$ac_tool_warned in
6994 yes:)
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997 ac_tool_warned=yes ;;
6998 esac
6999 OTOOL64=$ac_ct_OTOOL64
7000 fi
7001 else
7002 OTOOL64="$ac_cv_prog_OTOOL64"
7003 fi
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7032 $as_echo_n "checking for -single_module linker flag... " >&6; }
7033 if ${lt_cv_apple_cc_single_mod+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 lt_cv_apple_cc_single_mod=no
7037 if test -z "${LT_MULTI_MODULE}"; then
7038 # By default we will add the -single_module flag. You can override
7039 # by either setting the environment variable LT_MULTI_MODULE
7040 # non-empty at configure time, or by adding -multi_module to the
7041 # link flags.
7042 rm -rf libconftest.dylib*
7043 echo "int foo(void){return 1;}" > conftest.c
7044 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7045 -dynamiclib -Wl,-single_module conftest.c" >&5
7046 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7047 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7048 _lt_result=$?
7049 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7050 lt_cv_apple_cc_single_mod=yes
7051 else
7052 cat conftest.err >&5
7053 fi
7054 rm -rf libconftest.dylib*
7055 rm -f conftest.*
7056 fi
7057 fi
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7059 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7061 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7062 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 lt_cv_ld_exported_symbols_list=no
7066 save_LDFLAGS=$LDFLAGS
7067 echo "_main" > conftest.sym
7068 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071
7072 int
7073 main ()
7074 {
7075
7076 ;
7077 return 0;
7078 }
7079 _ACEOF
7080 if ac_fn_c_try_link "$LINENO"; then :
7081 lt_cv_ld_exported_symbols_list=yes
7082 else
7083 lt_cv_ld_exported_symbols_list=no
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext \
7086 conftest$ac_exeext conftest.$ac_ext
7087 LDFLAGS="$save_LDFLAGS"
7088
7089 fi
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7091 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7093 $as_echo_n "checking for -force_load linker flag... " >&6; }
7094 if ${lt_cv_ld_force_load+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 lt_cv_ld_force_load=no
7098 cat > conftest.c << _LT_EOF
7099 int forced_loaded() { return 2;}
7100 _LT_EOF
7101 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7102 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7103 echo "$AR cru libconftest.a conftest.o" >&5
7104 $AR cru libconftest.a conftest.o 2>&5
7105 echo "$RANLIB libconftest.a" >&5
7106 $RANLIB libconftest.a 2>&5
7107 cat > conftest.c << _LT_EOF
7108 int main() { return 0;}
7109 _LT_EOF
7110 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7111 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7112 _lt_result=$?
7113 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7114 lt_cv_ld_force_load=yes
7115 else
7116 cat conftest.err >&5
7117 fi
7118 rm -f conftest.err libconftest.a conftest conftest.c
7119 rm -rf conftest.dSYM
7120
7121 fi
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7123 $as_echo "$lt_cv_ld_force_load" >&6; }
7124 case $host_os in
7125 rhapsody* | darwin1.[012])
7126 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7127 darwin1.*)
7128 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7129 darwin*) # darwin 5.x on
7130 # if running on 10.5 or later, the deployment target defaults
7131 # to the OS version, if on x86, and 10.4, the deployment
7132 # target defaults to 10.4. Don't you love it?
7133 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7134 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7135 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7136 10.[012]*)
7137 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7138 10.*)
7139 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7140 esac
7141 ;;
7142 esac
7143 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7144 _lt_dar_single_mod='$single_module'
7145 fi
7146 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7147 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7148 else
7149 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7150 fi
7151 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7152 _lt_dsymutil='~$DSYMUTIL $lib || :'
7153 else
7154 _lt_dsymutil=
7155 fi
7156 ;;
7157 esac
7158
7159 ac_ext=c
7160 ac_cpp='$CPP $CPPFLAGS'
7161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7165 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7166 # On Suns, sometimes $CPP names a directory.
7167 if test -n "$CPP" && test -d "$CPP"; then
7168 CPP=
7169 fi
7170 if test -z "$CPP"; then
7171 if ${ac_cv_prog_CPP+:} false; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 # Double quotes because CPP needs to be expanded
7175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7176 do
7177 ac_preproc_ok=false
7178 for ac_c_preproc_warn_flag in '' yes
7179 do
7180 # Use a header file that comes with gcc, so configuring glibc
7181 # with a fresh cross-compiler works.
7182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7183 # <limits.h> exists even on freestanding compilers.
7184 # On the NeXT, cc -E runs the code through the compiler's parser,
7185 # not just through cpp. "Syntax error" is here to catch this case.
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188 #ifdef __STDC__
7189 # include <limits.h>
7190 #else
7191 # include <assert.h>
7192 #endif
7193 Syntax error
7194 _ACEOF
7195 if ac_fn_c_try_cpp "$LINENO"; then :
7196
7197 else
7198 # Broken: fails on valid input.
7199 continue
7200 fi
7201 rm -f conftest.err conftest.i conftest.$ac_ext
7202
7203 # OK, works on sane cases. Now check whether nonexistent headers
7204 # can be detected and how.
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 #include <ac_nonexistent.h>
7208 _ACEOF
7209 if ac_fn_c_try_cpp "$LINENO"; then :
7210 # Broken: success on invalid input.
7211 continue
7212 else
7213 # Passes both tests.
7214 ac_preproc_ok=:
7215 break
7216 fi
7217 rm -f conftest.err conftest.i conftest.$ac_ext
7218
7219 done
7220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7221 rm -f conftest.i conftest.err conftest.$ac_ext
7222 if $ac_preproc_ok; then :
7223 break
7224 fi
7225
7226 done
7227 ac_cv_prog_CPP=$CPP
7228
7229 fi
7230 CPP=$ac_cv_prog_CPP
7231 else
7232 ac_cv_prog_CPP=$CPP
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7235 $as_echo "$CPP" >&6; }
7236 ac_preproc_ok=false
7237 for ac_c_preproc_warn_flag in '' yes
7238 do
7239 # Use a header file that comes with gcc, so configuring glibc
7240 # with a fresh cross-compiler works.
7241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7242 # <limits.h> exists even on freestanding compilers.
7243 # On the NeXT, cc -E runs the code through the compiler's parser,
7244 # not just through cpp. "Syntax error" is here to catch this case.
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 #ifdef __STDC__
7248 # include <limits.h>
7249 #else
7250 # include <assert.h>
7251 #endif
7252 Syntax error
7253 _ACEOF
7254 if ac_fn_c_try_cpp "$LINENO"; then :
7255
7256 else
7257 # Broken: fails on valid input.
7258 continue
7259 fi
7260 rm -f conftest.err conftest.i conftest.$ac_ext
7261
7262 # OK, works on sane cases. Now check whether nonexistent headers
7263 # can be detected and how.
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 #include <ac_nonexistent.h>
7267 _ACEOF
7268 if ac_fn_c_try_cpp "$LINENO"; then :
7269 # Broken: success on invalid input.
7270 continue
7271 else
7272 # Passes both tests.
7273 ac_preproc_ok=:
7274 break
7275 fi
7276 rm -f conftest.err conftest.i conftest.$ac_ext
7277
7278 done
7279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7280 rm -f conftest.i conftest.err conftest.$ac_ext
7281 if $ac_preproc_ok; then :
7282
7283 else
7284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7286 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7287 See \`config.log' for more details" "$LINENO" 5; }
7288 fi
7289
7290 ac_ext=c
7291 ac_cpp='$CPP $CPPFLAGS'
7292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7295
7296
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7298 $as_echo_n "checking for ANSI C header files... " >&6; }
7299 if ${ac_cv_header_stdc+:} false; then :
7300 $as_echo_n "(cached) " >&6
7301 else
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 #include <stdlib.h>
7305 #include <stdarg.h>
7306 #include <string.h>
7307 #include <float.h>
7308
7309 int
7310 main ()
7311 {
7312
7313 ;
7314 return 0;
7315 }
7316 _ACEOF
7317 if ac_fn_c_try_compile "$LINENO"; then :
7318 ac_cv_header_stdc=yes
7319 else
7320 ac_cv_header_stdc=no
7321 fi
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323
7324 if test $ac_cv_header_stdc = yes; then
7325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7328 #include <string.h>
7329
7330 _ACEOF
7331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7332 $EGREP "memchr" >/dev/null 2>&1; then :
7333
7334 else
7335 ac_cv_header_stdc=no
7336 fi
7337 rm -f conftest*
7338
7339 fi
7340
7341 if test $ac_cv_header_stdc = yes; then
7342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 #include <stdlib.h>
7346
7347 _ACEOF
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349 $EGREP "free" >/dev/null 2>&1; then :
7350
7351 else
7352 ac_cv_header_stdc=no
7353 fi
7354 rm -f conftest*
7355
7356 fi
7357
7358 if test $ac_cv_header_stdc = yes; then
7359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7360 if test "$cross_compiling" = yes; then :
7361 :
7362 else
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 #include <ctype.h>
7366 #include <stdlib.h>
7367 #if ((' ' & 0x0FF) == 0x020)
7368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7370 #else
7371 # define ISLOWER(c) \
7372 (('a' <= (c) && (c) <= 'i') \
7373 || ('j' <= (c) && (c) <= 'r') \
7374 || ('s' <= (c) && (c) <= 'z'))
7375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7376 #endif
7377
7378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7379 int
7380 main ()
7381 {
7382 int i;
7383 for (i = 0; i < 256; i++)
7384 if (XOR (islower (i), ISLOWER (i))
7385 || toupper (i) != TOUPPER (i))
7386 return 2;
7387 return 0;
7388 }
7389 _ACEOF
7390 if ac_fn_c_try_run "$LINENO"; then :
7391
7392 else
7393 ac_cv_header_stdc=no
7394 fi
7395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7396 conftest.$ac_objext conftest.beam conftest.$ac_ext
7397 fi
7398
7399 fi
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7402 $as_echo "$ac_cv_header_stdc" >&6; }
7403 if test $ac_cv_header_stdc = yes; then
7404
7405 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7406
7407 fi
7408
7409 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7410 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7411 inttypes.h stdint.h unistd.h
7412 do :
7413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7414 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7415 "
7416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7417 cat >>confdefs.h <<_ACEOF
7418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7419 _ACEOF
7420
7421 fi
7422
7423 done
7424
7425
7426 for ac_header in dlfcn.h
7427 do :
7428 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7429 "
7430 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7431 cat >>confdefs.h <<_ACEOF
7432 #define HAVE_DLFCN_H 1
7433 _ACEOF
7434
7435 fi
7436
7437 done
7438
7439
7440
7441
7442
7443 # Set options
7444
7445
7446
7447 enable_dlopen=no
7448
7449
7450 enable_win32_dll=no
7451
7452
7453 # Check whether --enable-shared was given.
7454 if test "${enable_shared+set}" = set; then :
7455 enableval=$enable_shared; p=${PACKAGE-default}
7456 case $enableval in
7457 yes) enable_shared=yes ;;
7458 no) enable_shared=no ;;
7459 *)
7460 enable_shared=no
7461 # Look at the argument we got. We use all the common list separators.
7462 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7463 for pkg in $enableval; do
7464 IFS="$lt_save_ifs"
7465 if test "X$pkg" = "X$p"; then
7466 enable_shared=yes
7467 fi
7468 done
7469 IFS="$lt_save_ifs"
7470 ;;
7471 esac
7472 else
7473 enable_shared=yes
7474 fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484 # Check whether --enable-static was given.
7485 if test "${enable_static+set}" = set; then :
7486 enableval=$enable_static; p=${PACKAGE-default}
7487 case $enableval in
7488 yes) enable_static=yes ;;
7489 no) enable_static=no ;;
7490 *)
7491 enable_static=no
7492 # Look at the argument we got. We use all the common list separators.
7493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7494 for pkg in $enableval; do
7495 IFS="$lt_save_ifs"
7496 if test "X$pkg" = "X$p"; then
7497 enable_static=yes
7498 fi
7499 done
7500 IFS="$lt_save_ifs"
7501 ;;
7502 esac
7503 else
7504 enable_static=yes
7505 fi
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516 # Check whether --with-pic was given.
7517 if test "${with_pic+set}" = set; then :
7518 withval=$with_pic; pic_mode="$withval"
7519 else
7520 pic_mode=default
7521 fi
7522
7523
7524 test -z "$pic_mode" && pic_mode=default
7525
7526
7527
7528
7529
7530
7531
7532 # Check whether --enable-fast-install was given.
7533 if test "${enable_fast_install+set}" = set; then :
7534 enableval=$enable_fast_install; p=${PACKAGE-default}
7535 case $enableval in
7536 yes) enable_fast_install=yes ;;
7537 no) enable_fast_install=no ;;
7538 *)
7539 enable_fast_install=no
7540 # Look at the argument we got. We use all the common list separators.
7541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7542 for pkg in $enableval; do
7543 IFS="$lt_save_ifs"
7544 if test "X$pkg" = "X$p"; then
7545 enable_fast_install=yes
7546 fi
7547 done
7548 IFS="$lt_save_ifs"
7549 ;;
7550 esac
7551 else
7552 enable_fast_install=yes
7553 fi
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565 # This can be used to rebuild libtool when needed
7566 LIBTOOL_DEPS="$ltmain"
7567
7568 # Always use our own libtool.
7569 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596 test -z "$LN_S" && LN_S="ln -s"
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611 if test -n "${ZSH_VERSION+set}" ; then
7612 setopt NO_GLOB_SUBST
7613 fi
7614
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7616 $as_echo_n "checking for objdir... " >&6; }
7617 if ${lt_cv_objdir+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 rm -f .libs 2>/dev/null
7621 mkdir .libs 2>/dev/null
7622 if test -d .libs; then
7623 lt_cv_objdir=.libs
7624 else
7625 # MS-DOS does not allow filenames that begin with a dot.
7626 lt_cv_objdir=_libs
7627 fi
7628 rmdir .libs 2>/dev/null
7629 fi
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7631 $as_echo "$lt_cv_objdir" >&6; }
7632 objdir=$lt_cv_objdir
7633
7634
7635
7636
7637
7638 cat >>confdefs.h <<_ACEOF
7639 #define LT_OBJDIR "$lt_cv_objdir/"
7640 _ACEOF
7641
7642
7643
7644
7645 case $host_os in
7646 aix3*)
7647 # AIX sometimes has problems with the GCC collect2 program. For some
7648 # reason, if we set the COLLECT_NAMES environment variable, the problems
7649 # vanish in a puff of smoke.
7650 if test "X${COLLECT_NAMES+set}" != Xset; then
7651 COLLECT_NAMES=
7652 export COLLECT_NAMES
7653 fi
7654 ;;
7655 esac
7656
7657 # Global variables:
7658 ofile=libtool
7659 can_build_shared=yes
7660
7661 # All known linkers require a `.a' archive for static linking (except MSVC,
7662 # which needs '.lib').
7663 libext=a
7664
7665 with_gnu_ld="$lt_cv_prog_gnu_ld"
7666
7667 old_CC="$CC"
7668 old_CFLAGS="$CFLAGS"
7669
7670 # Set sane defaults for various variables
7671 test -z "$CC" && CC=cc
7672 test -z "$LTCC" && LTCC=$CC
7673 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7674 test -z "$LD" && LD=ld
7675 test -z "$ac_objext" && ac_objext=o
7676
7677 for cc_temp in $compiler""; do
7678 case $cc_temp in
7679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7681 \-*) ;;
7682 *) break;;
7683 esac
7684 done
7685 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7686
7687
7688 # Only perform the check for file, if the check method requires it
7689 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7690 case $deplibs_check_method in
7691 file_magic*)
7692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7694 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7695 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 case $MAGIC_CMD in
7699 [\\/*] | ?:[\\/]*)
7700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7701 ;;
7702 *)
7703 lt_save_MAGIC_CMD="$MAGIC_CMD"
7704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7706 for ac_dir in $ac_dummy; do
7707 IFS="$lt_save_ifs"
7708 test -z "$ac_dir" && ac_dir=.
7709 if test -f $ac_dir/${ac_tool_prefix}file; then
7710 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7711 if test -n "$file_magic_test_file"; then
7712 case $deplibs_check_method in
7713 "file_magic "*)
7714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7717 $EGREP "$file_magic_regex" > /dev/null; then
7718 :
7719 else
7720 cat <<_LT_EOF 1>&2
7721
7722 *** Warning: the command libtool uses to detect shared libraries,
7723 *** $file_magic_cmd, produces output that libtool cannot recognize.
7724 *** The result is that libtool may fail to recognize shared libraries
7725 *** as such. This will affect the creation of libtool libraries that
7726 *** depend on shared libraries, but programs linked with such libtool
7727 *** libraries will work regardless of this problem. Nevertheless, you
7728 *** may want to report the problem to your system manager and/or to
7729 *** bug-libtool@gnu.org
7730
7731 _LT_EOF
7732 fi ;;
7733 esac
7734 fi
7735 break
7736 fi
7737 done
7738 IFS="$lt_save_ifs"
7739 MAGIC_CMD="$lt_save_MAGIC_CMD"
7740 ;;
7741 esac
7742 fi
7743
7744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7745 if test -n "$MAGIC_CMD"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7747 $as_echo "$MAGIC_CMD" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754
7755
7756
7757 if test -z "$lt_cv_path_MAGIC_CMD"; then
7758 if test -n "$ac_tool_prefix"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7760 $as_echo_n "checking for file... " >&6; }
7761 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 case $MAGIC_CMD in
7765 [\\/*] | ?:[\\/]*)
7766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7767 ;;
7768 *)
7769 lt_save_MAGIC_CMD="$MAGIC_CMD"
7770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7771 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7772 for ac_dir in $ac_dummy; do
7773 IFS="$lt_save_ifs"
7774 test -z "$ac_dir" && ac_dir=.
7775 if test -f $ac_dir/file; then
7776 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7777 if test -n "$file_magic_test_file"; then
7778 case $deplibs_check_method in
7779 "file_magic "*)
7780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7783 $EGREP "$file_magic_regex" > /dev/null; then
7784 :
7785 else
7786 cat <<_LT_EOF 1>&2
7787
7788 *** Warning: the command libtool uses to detect shared libraries,
7789 *** $file_magic_cmd, produces output that libtool cannot recognize.
7790 *** The result is that libtool may fail to recognize shared libraries
7791 *** as such. This will affect the creation of libtool libraries that
7792 *** depend on shared libraries, but programs linked with such libtool
7793 *** libraries will work regardless of this problem. Nevertheless, you
7794 *** may want to report the problem to your system manager and/or to
7795 *** bug-libtool@gnu.org
7796
7797 _LT_EOF
7798 fi ;;
7799 esac
7800 fi
7801 break
7802 fi
7803 done
7804 IFS="$lt_save_ifs"
7805 MAGIC_CMD="$lt_save_MAGIC_CMD"
7806 ;;
7807 esac
7808 fi
7809
7810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7811 if test -n "$MAGIC_CMD"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7813 $as_echo "$MAGIC_CMD" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7817 fi
7818
7819
7820 else
7821 MAGIC_CMD=:
7822 fi
7823 fi
7824
7825 fi
7826 ;;
7827 esac
7828
7829 # Use C for the default configuration in the libtool script
7830
7831 lt_save_CC="$CC"
7832 ac_ext=c
7833 ac_cpp='$CPP $CPPFLAGS'
7834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7837
7838
7839 # Source file extension for C test sources.
7840 ac_ext=c
7841
7842 # Object file extension for compiled C test sources.
7843 objext=o
7844 objext=$objext
7845
7846 # Code to be used in simple compile tests
7847 lt_simple_compile_test_code="int some_variable = 0;"
7848
7849 # Code to be used in simple link tests
7850 lt_simple_link_test_code='int main(){return(0);}'
7851
7852
7853
7854
7855
7856
7857
7858 # If no C compiler was specified, use CC.
7859 LTCC=${LTCC-"$CC"}
7860
7861 # If no C compiler flags were specified, use CFLAGS.
7862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7863
7864 # Allow CC to be a program name with arguments.
7865 compiler=$CC
7866
7867 # Save the default compiler, since it gets overwritten when the other
7868 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7869 compiler_DEFAULT=$CC
7870
7871 # save warnings/boilerplate of simple test code
7872 ac_outfile=conftest.$ac_objext
7873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7875 _lt_compiler_boilerplate=`cat conftest.err`
7876 $RM conftest*
7877
7878 ac_outfile=conftest.$ac_objext
7879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7881 _lt_linker_boilerplate=`cat conftest.err`
7882 $RM -r conftest*
7883
7884
7885 ## CAVEAT EMPTOR:
7886 ## There is no encapsulation within the following macros, do not change
7887 ## the running order or otherwise move them around unless you know exactly
7888 ## what you are doing...
7889 if test -n "$compiler"; then
7890
7891 lt_prog_compiler_no_builtin_flag=
7892
7893 if test "$GCC" = yes; then
7894 case $cc_basename in
7895 nvcc*)
7896 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7897 *)
7898 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7899 esac
7900
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7902 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7903 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 lt_cv_prog_compiler_rtti_exceptions=no
7907 ac_outfile=conftest.$ac_objext
7908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7909 lt_compiler_flag="-fno-rtti -fno-exceptions"
7910 # Insert the option either (1) after the last *FLAGS variable, or
7911 # (2) before a word containing "conftest.", or (3) at the end.
7912 # Note that $ac_compile itself does not contain backslashes and begins
7913 # with a dollar sign (not a hyphen), so the echo should work correctly.
7914 # The option is referenced via a variable to avoid confusing sed.
7915 lt_compile=`echo "$ac_compile" | $SED \
7916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7918 -e 's:$: $lt_compiler_flag:'`
7919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7920 (eval "$lt_compile" 2>conftest.err)
7921 ac_status=$?
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 if (exit $ac_status) && test -s "$ac_outfile"; then
7925 # The compiler can only warn and ignore the option if not recognized
7926 # So say no if there are warnings other than the usual output.
7927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7930 lt_cv_prog_compiler_rtti_exceptions=yes
7931 fi
7932 fi
7933 $RM conftest*
7934
7935 fi
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7937 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7938
7939 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7940 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7941 else
7942 :
7943 fi
7944
7945 fi
7946
7947
7948
7949
7950
7951
7952 lt_prog_compiler_wl=
7953 lt_prog_compiler_pic=
7954 lt_prog_compiler_static=
7955
7956
7957 if test "$GCC" = yes; then
7958 lt_prog_compiler_wl='-Wl,'
7959 lt_prog_compiler_static='-static'
7960
7961 case $host_os in
7962 aix*)
7963 # All AIX code is PIC.
7964 if test "$host_cpu" = ia64; then
7965 # AIX 5 now supports IA64 processor
7966 lt_prog_compiler_static='-Bstatic'
7967 fi
7968 ;;
7969
7970 amigaos*)
7971 case $host_cpu in
7972 powerpc)
7973 # see comment about AmigaOS4 .so support
7974 lt_prog_compiler_pic='-fPIC'
7975 ;;
7976 m68k)
7977 # FIXME: we need at least 68020 code to build shared libraries, but
7978 # adding the `-m68020' flag to GCC prevents building anything better,
7979 # like `-m68040'.
7980 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7981 ;;
7982 esac
7983 ;;
7984
7985 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7986 # PIC is the default for these OSes.
7987 ;;
7988
7989 mingw* | cygwin* | pw32* | os2* | cegcc*)
7990 # This hack is so that the source file can tell whether it is being
7991 # built for inclusion in a dll (and should export symbols for example).
7992 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7993 # (--disable-auto-import) libraries
7994 lt_prog_compiler_pic='-DDLL_EXPORT'
7995 ;;
7996
7997 darwin* | rhapsody*)
7998 # PIC is the default on this platform
7999 # Common symbols not allowed in MH_DYLIB files
8000 lt_prog_compiler_pic='-fno-common'
8001 ;;
8002
8003 haiku*)
8004 # PIC is the default for Haiku.
8005 # The "-static" flag exists, but is broken.
8006 lt_prog_compiler_static=
8007 ;;
8008
8009 hpux*)
8010 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8011 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8012 # sets the default TLS model and affects inlining.
8013 case $host_cpu in
8014 hppa*64*)
8015 # +Z the default
8016 ;;
8017 *)
8018 lt_prog_compiler_pic='-fPIC'
8019 ;;
8020 esac
8021 ;;
8022
8023 interix[3-9]*)
8024 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8025 # Instead, we relocate shared libraries at runtime.
8026 ;;
8027
8028 msdosdjgpp*)
8029 # Just because we use GCC doesn't mean we suddenly get shared libraries
8030 # on systems that don't support them.
8031 lt_prog_compiler_can_build_shared=no
8032 enable_shared=no
8033 ;;
8034
8035 *nto* | *qnx*)
8036 # QNX uses GNU C++, but need to define -shared option too, otherwise
8037 # it will coredump.
8038 lt_prog_compiler_pic='-fPIC -shared'
8039 ;;
8040
8041 sysv4*MP*)
8042 if test -d /usr/nec; then
8043 lt_prog_compiler_pic=-Kconform_pic
8044 fi
8045 ;;
8046
8047 *)
8048 lt_prog_compiler_pic='-fPIC'
8049 ;;
8050 esac
8051
8052 case $cc_basename in
8053 nvcc*) # Cuda Compiler Driver 2.2
8054 lt_prog_compiler_wl='-Xlinker '
8055 lt_prog_compiler_pic='-Xcompiler -fPIC'
8056 ;;
8057 esac
8058 else
8059 # PORTME Check for flag to pass linker flags through the system compiler.
8060 case $host_os in
8061 aix*)
8062 lt_prog_compiler_wl='-Wl,'
8063 if test "$host_cpu" = ia64; then
8064 # AIX 5 now supports IA64 processor
8065 lt_prog_compiler_static='-Bstatic'
8066 else
8067 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8068 fi
8069 ;;
8070
8071 mingw* | cygwin* | pw32* | os2* | cegcc*)
8072 # This hack is so that the source file can tell whether it is being
8073 # built for inclusion in a dll (and should export symbols for example).
8074 lt_prog_compiler_pic='-DDLL_EXPORT'
8075 ;;
8076
8077 hpux9* | hpux10* | hpux11*)
8078 lt_prog_compiler_wl='-Wl,'
8079 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8080 # not for PA HP-UX.
8081 case $host_cpu in
8082 hppa*64*|ia64*)
8083 # +Z the default
8084 ;;
8085 *)
8086 lt_prog_compiler_pic='+Z'
8087 ;;
8088 esac
8089 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8090 lt_prog_compiler_static='${wl}-a ${wl}archive'
8091 ;;
8092
8093 irix5* | irix6* | nonstopux*)
8094 lt_prog_compiler_wl='-Wl,'
8095 # PIC (with -KPIC) is the default.
8096 lt_prog_compiler_static='-non_shared'
8097 ;;
8098
8099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8100 case $cc_basename in
8101 # old Intel for x86_64 which still supported -KPIC.
8102 ecc*)
8103 lt_prog_compiler_wl='-Wl,'
8104 lt_prog_compiler_pic='-KPIC'
8105 lt_prog_compiler_static='-static'
8106 ;;
8107 # icc used to be incompatible with GCC.
8108 # ICC 10 doesn't accept -KPIC any more.
8109 icc* | ifort*)
8110 lt_prog_compiler_wl='-Wl,'
8111 lt_prog_compiler_pic='-fPIC'
8112 lt_prog_compiler_static='-static'
8113 ;;
8114 # Lahey Fortran 8.1.
8115 lf95*)
8116 lt_prog_compiler_wl='-Wl,'
8117 lt_prog_compiler_pic='--shared'
8118 lt_prog_compiler_static='--static'
8119 ;;
8120 nagfor*)
8121 # NAG Fortran compiler
8122 lt_prog_compiler_wl='-Wl,-Wl,,'
8123 lt_prog_compiler_pic='-PIC'
8124 lt_prog_compiler_static='-Bstatic'
8125 ;;
8126 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8127 # Portland Group compilers (*not* the Pentium gcc compiler,
8128 # which looks to be a dead project)
8129 lt_prog_compiler_wl='-Wl,'
8130 lt_prog_compiler_pic='-fpic'
8131 lt_prog_compiler_static='-Bstatic'
8132 ;;
8133 ccc*)
8134 lt_prog_compiler_wl='-Wl,'
8135 # All Alpha code is PIC.
8136 lt_prog_compiler_static='-non_shared'
8137 ;;
8138 xl* | bgxl* | bgf* | mpixl*)
8139 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8140 lt_prog_compiler_wl='-Wl,'
8141 lt_prog_compiler_pic='-qpic'
8142 lt_prog_compiler_static='-qstaticlink'
8143 ;;
8144 *)
8145 case `$CC -V 2>&1 | sed 5q` in
8146 *Sun\ F* | *Sun*Fortran*)
8147 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8148 lt_prog_compiler_pic='-KPIC'
8149 lt_prog_compiler_static='-Bstatic'
8150 lt_prog_compiler_wl=''
8151 ;;
8152 *Sun\ C*)
8153 # Sun C 5.9
8154 lt_prog_compiler_pic='-KPIC'
8155 lt_prog_compiler_static='-Bstatic'
8156 lt_prog_compiler_wl='-Wl,'
8157 ;;
8158 esac
8159 ;;
8160 esac
8161 ;;
8162
8163 newsos6)
8164 lt_prog_compiler_pic='-KPIC'
8165 lt_prog_compiler_static='-Bstatic'
8166 ;;
8167
8168 *nto* | *qnx*)
8169 # QNX uses GNU C++, but need to define -shared option too, otherwise
8170 # it will coredump.
8171 lt_prog_compiler_pic='-fPIC -shared'
8172 ;;
8173
8174 osf3* | osf4* | osf5*)
8175 lt_prog_compiler_wl='-Wl,'
8176 # All OSF/1 code is PIC.
8177 lt_prog_compiler_static='-non_shared'
8178 ;;
8179
8180 rdos*)
8181 lt_prog_compiler_static='-non_shared'
8182 ;;
8183
8184 solaris*)
8185 lt_prog_compiler_pic='-KPIC'
8186 lt_prog_compiler_static='-Bstatic'
8187 case $cc_basename in
8188 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8189 lt_prog_compiler_wl='-Qoption ld ';;
8190 *)
8191 lt_prog_compiler_wl='-Wl,';;
8192 esac
8193 ;;
8194
8195 sunos4*)
8196 lt_prog_compiler_wl='-Qoption ld '
8197 lt_prog_compiler_pic='-PIC'
8198 lt_prog_compiler_static='-Bstatic'
8199 ;;
8200
8201 sysv4 | sysv4.2uw2* | sysv4.3*)
8202 lt_prog_compiler_wl='-Wl,'
8203 lt_prog_compiler_pic='-KPIC'
8204 lt_prog_compiler_static='-Bstatic'
8205 ;;
8206
8207 sysv4*MP*)
8208 if test -d /usr/nec ;then
8209 lt_prog_compiler_pic='-Kconform_pic'
8210 lt_prog_compiler_static='-Bstatic'
8211 fi
8212 ;;
8213
8214 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8215 lt_prog_compiler_wl='-Wl,'
8216 lt_prog_compiler_pic='-KPIC'
8217 lt_prog_compiler_static='-Bstatic'
8218 ;;
8219
8220 unicos*)
8221 lt_prog_compiler_wl='-Wl,'
8222 lt_prog_compiler_can_build_shared=no
8223 ;;
8224
8225 uts4*)
8226 lt_prog_compiler_pic='-pic'
8227 lt_prog_compiler_static='-Bstatic'
8228 ;;
8229
8230 *)
8231 lt_prog_compiler_can_build_shared=no
8232 ;;
8233 esac
8234 fi
8235
8236 case $host_os in
8237 # For platforms which do not support PIC, -DPIC is meaningless:
8238 *djgpp*)
8239 lt_prog_compiler_pic=
8240 ;;
8241 *)
8242 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8243 ;;
8244 esac
8245
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8247 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8248 if ${lt_cv_prog_compiler_pic+:} false; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8252 fi
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8254 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8255 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8256
8257 #
8258 # Check to make sure the PIC flag actually works.
8259 #
8260 if test -n "$lt_prog_compiler_pic"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8262 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8263 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 lt_cv_prog_compiler_pic_works=no
8267 ac_outfile=conftest.$ac_objext
8268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8269 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8270 # Insert the option either (1) after the last *FLAGS variable, or
8271 # (2) before a word containing "conftest.", or (3) at the end.
8272 # Note that $ac_compile itself does not contain backslashes and begins
8273 # with a dollar sign (not a hyphen), so the echo should work correctly.
8274 # The option is referenced via a variable to avoid confusing sed.
8275 lt_compile=`echo "$ac_compile" | $SED \
8276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8278 -e 's:$: $lt_compiler_flag:'`
8279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8280 (eval "$lt_compile" 2>conftest.err)
8281 ac_status=$?
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 if (exit $ac_status) && test -s "$ac_outfile"; then
8285 # The compiler can only warn and ignore the option if not recognized
8286 # So say no if there are warnings other than the usual output.
8287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8290 lt_cv_prog_compiler_pic_works=yes
8291 fi
8292 fi
8293 $RM conftest*
8294
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8297 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8298
8299 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8300 case $lt_prog_compiler_pic in
8301 "" | " "*) ;;
8302 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8303 esac
8304 else
8305 lt_prog_compiler_pic=
8306 lt_prog_compiler_can_build_shared=no
8307 fi
8308
8309 fi
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321 #
8322 # Check to make sure the static flag actually works.
8323 #
8324 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8326 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8327 if ${lt_cv_prog_compiler_static_works+:} false; then :
8328 $as_echo_n "(cached) " >&6
8329 else
8330 lt_cv_prog_compiler_static_works=no
8331 save_LDFLAGS="$LDFLAGS"
8332 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8333 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8335 # The linker can only warn and ignore the option if not recognized
8336 # So say no if there are warnings
8337 if test -s conftest.err; then
8338 # Append any errors to the config.log.
8339 cat conftest.err 1>&5
8340 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8342 if diff conftest.exp conftest.er2 >/dev/null; then
8343 lt_cv_prog_compiler_static_works=yes
8344 fi
8345 else
8346 lt_cv_prog_compiler_static_works=yes
8347 fi
8348 fi
8349 $RM -r conftest*
8350 LDFLAGS="$save_LDFLAGS"
8351
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8354 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8355
8356 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8357 :
8358 else
8359 lt_prog_compiler_static=
8360 fi
8361
8362
8363
8364
8365
8366
8367
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8369 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8370 if ${lt_cv_prog_compiler_c_o+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 lt_cv_prog_compiler_c_o=no
8374 $RM -r conftest 2>/dev/null
8375 mkdir conftest
8376 cd conftest
8377 mkdir out
8378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8379
8380 lt_compiler_flag="-o out/conftest2.$ac_objext"
8381 # Insert the option either (1) after the last *FLAGS variable, or
8382 # (2) before a word containing "conftest.", or (3) at the end.
8383 # Note that $ac_compile itself does not contain backslashes and begins
8384 # with a dollar sign (not a hyphen), so the echo should work correctly.
8385 lt_compile=`echo "$ac_compile" | $SED \
8386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8388 -e 's:$: $lt_compiler_flag:'`
8389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8390 (eval "$lt_compile" 2>out/conftest.err)
8391 ac_status=$?
8392 cat out/conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8395 then
8396 # The compiler can only warn and ignore the option if not recognized
8397 # So say no if there are warnings
8398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8399 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8400 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8401 lt_cv_prog_compiler_c_o=yes
8402 fi
8403 fi
8404 chmod u+w . 2>&5
8405 $RM conftest*
8406 # SGI C++ compiler will create directory out/ii_files/ for
8407 # template instantiation
8408 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8409 $RM out/* && rmdir out
8410 cd ..
8411 $RM -r conftest
8412 $RM conftest*
8413
8414 fi
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8416 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8417
8418
8419
8420
8421
8422
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8424 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8425 if ${lt_cv_prog_compiler_c_o+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 lt_cv_prog_compiler_c_o=no
8429 $RM -r conftest 2>/dev/null
8430 mkdir conftest
8431 cd conftest
8432 mkdir out
8433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8434
8435 lt_compiler_flag="-o out/conftest2.$ac_objext"
8436 # Insert the option either (1) after the last *FLAGS variable, or
8437 # (2) before a word containing "conftest.", or (3) at the end.
8438 # Note that $ac_compile itself does not contain backslashes and begins
8439 # with a dollar sign (not a hyphen), so the echo should work correctly.
8440 lt_compile=`echo "$ac_compile" | $SED \
8441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8443 -e 's:$: $lt_compiler_flag:'`
8444 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8445 (eval "$lt_compile" 2>out/conftest.err)
8446 ac_status=$?
8447 cat out/conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8450 then
8451 # The compiler can only warn and ignore the option if not recognized
8452 # So say no if there are warnings
8453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8456 lt_cv_prog_compiler_c_o=yes
8457 fi
8458 fi
8459 chmod u+w . 2>&5
8460 $RM conftest*
8461 # SGI C++ compiler will create directory out/ii_files/ for
8462 # template instantiation
8463 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8464 $RM out/* && rmdir out
8465 cd ..
8466 $RM -r conftest
8467 $RM conftest*
8468
8469 fi
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8471 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8472
8473
8474
8475
8476 hard_links="nottested"
8477 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8478 # do not overwrite the value of need_locks provided by the user
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8480 $as_echo_n "checking if we can lock with hard links... " >&6; }
8481 hard_links=yes
8482 $RM conftest*
8483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8484 touch conftest.a
8485 ln conftest.a conftest.b 2>&5 || hard_links=no
8486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8488 $as_echo "$hard_links" >&6; }
8489 if test "$hard_links" = no; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8491 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8492 need_locks=warn
8493 fi
8494 else
8495 need_locks=no
8496 fi
8497
8498
8499
8500
8501
8502
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8504 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8505
8506 runpath_var=
8507 allow_undefined_flag=
8508 always_export_symbols=no
8509 archive_cmds=
8510 archive_expsym_cmds=
8511 compiler_needs_object=no
8512 enable_shared_with_static_runtimes=no
8513 export_dynamic_flag_spec=
8514 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8515 hardcode_automatic=no
8516 hardcode_direct=no
8517 hardcode_direct_absolute=no
8518 hardcode_libdir_flag_spec=
8519 hardcode_libdir_flag_spec_ld=
8520 hardcode_libdir_separator=
8521 hardcode_minus_L=no
8522 hardcode_shlibpath_var=unsupported
8523 inherit_rpath=no
8524 link_all_deplibs=unknown
8525 module_cmds=
8526 module_expsym_cmds=
8527 old_archive_from_new_cmds=
8528 old_archive_from_expsyms_cmds=
8529 thread_safe_flag_spec=
8530 whole_archive_flag_spec=
8531 # include_expsyms should be a list of space-separated symbols to be *always*
8532 # included in the symbol list
8533 include_expsyms=
8534 # exclude_expsyms can be an extended regexp of symbols to exclude
8535 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8536 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8537 # as well as any symbol that contains `d'.
8538 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8539 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8540 # platforms (ab)use it in PIC code, but their linkers get confused if
8541 # the symbol is explicitly referenced. Since portable code cannot
8542 # rely on this symbol name, it's probably fine to never include it in
8543 # preloaded symbol tables.
8544 # Exclude shared library initialization/finalization symbols.
8545 extract_expsyms_cmds=
8546
8547 case $host_os in
8548 cygwin* | mingw* | pw32* | cegcc*)
8549 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8550 # When not using gcc, we currently assume that we are using
8551 # Microsoft Visual C++.
8552 if test "$GCC" != yes; then
8553 with_gnu_ld=no
8554 fi
8555 ;;
8556 interix*)
8557 # we just hope/assume this is gcc and not c89 (= MSVC++)
8558 with_gnu_ld=yes
8559 ;;
8560 openbsd*)
8561 with_gnu_ld=no
8562 ;;
8563 esac
8564
8565 ld_shlibs=yes
8566
8567 # On some targets, GNU ld is compatible enough with the native linker
8568 # that we're better off using the native interface for both.
8569 lt_use_gnu_ld_interface=no
8570 if test "$with_gnu_ld" = yes; then
8571 case $host_os in
8572 aix*)
8573 # The AIX port of GNU ld has always aspired to compatibility
8574 # with the native linker. However, as the warning in the GNU ld
8575 # block says, versions before 2.19.5* couldn't really create working
8576 # shared libraries, regardless of the interface used.
8577 case `$LD -v 2>&1` in
8578 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8579 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8580 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8581 *)
8582 lt_use_gnu_ld_interface=yes
8583 ;;
8584 esac
8585 ;;
8586 *)
8587 lt_use_gnu_ld_interface=yes
8588 ;;
8589 esac
8590 fi
8591
8592 if test "$lt_use_gnu_ld_interface" = yes; then
8593 # If archive_cmds runs LD, not CC, wlarc should be empty
8594 wlarc='${wl}'
8595
8596 # Set some defaults for GNU ld with shared library support. These
8597 # are reset later if shared libraries are not supported. Putting them
8598 # here allows them to be overridden if necessary.
8599 runpath_var=LD_RUN_PATH
8600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8601 export_dynamic_flag_spec='${wl}--export-dynamic'
8602 # ancient GNU ld didn't support --whole-archive et. al.
8603 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8604 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8605 else
8606 whole_archive_flag_spec=
8607 fi
8608 supports_anon_versioning=no
8609 case `$LD -v 2>&1` in
8610 *GNU\ gold*) supports_anon_versioning=yes ;;
8611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8614 *\ 2.11.*) ;; # other 2.11 versions
8615 *) supports_anon_versioning=yes ;;
8616 esac
8617
8618 # See if GNU ld supports shared libraries.
8619 case $host_os in
8620 aix[3-9]*)
8621 # On AIX/PPC, the GNU linker is very broken
8622 if test "$host_cpu" != ia64; then
8623 ld_shlibs=no
8624 cat <<_LT_EOF 1>&2
8625
8626 *** Warning: the GNU linker, at least up to release 2.19, is reported
8627 *** to be unable to reliably create shared libraries on AIX.
8628 *** Therefore, libtool is disabling shared libraries support. If you
8629 *** really care for shared libraries, you may want to install binutils
8630 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8631 *** You will then need to restart the configuration process.
8632
8633 _LT_EOF
8634 fi
8635 ;;
8636
8637 amigaos*)
8638 case $host_cpu in
8639 powerpc)
8640 # see comment about AmigaOS4 .so support
8641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642 archive_expsym_cmds=''
8643 ;;
8644 m68k)
8645 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)'
8646 hardcode_libdir_flag_spec='-L$libdir'
8647 hardcode_minus_L=yes
8648 ;;
8649 esac
8650 ;;
8651
8652 beos*)
8653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8654 allow_undefined_flag=unsupported
8655 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8656 # support --undefined. This deserves some investigation. FIXME
8657 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658 else
8659 ld_shlibs=no
8660 fi
8661 ;;
8662
8663 cygwin* | mingw* | pw32* | cegcc*)
8664 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8665 # as there is no search path for DLLs.
8666 hardcode_libdir_flag_spec='-L$libdir'
8667 export_dynamic_flag_spec='${wl}--export-all-symbols'
8668 allow_undefined_flag=unsupported
8669 always_export_symbols=no
8670 enable_shared_with_static_runtimes=yes
8671 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'
8672 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8673
8674 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8676 # If the export-symbols file already is a .def file (1st line
8677 # is EXPORTS), use it as is; otherwise, prepend...
8678 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8679 cp $export_symbols $output_objdir/$soname.def;
8680 else
8681 echo EXPORTS > $output_objdir/$soname.def;
8682 cat $export_symbols >> $output_objdir/$soname.def;
8683 fi~
8684 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8685 else
8686 ld_shlibs=no
8687 fi
8688 ;;
8689
8690 haiku*)
8691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692 link_all_deplibs=yes
8693 ;;
8694
8695 interix[3-9]*)
8696 hardcode_direct=no
8697 hardcode_shlibpath_var=no
8698 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8699 export_dynamic_flag_spec='${wl}-E'
8700 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8701 # Instead, shared libraries are loaded at an image base (0x10000000 by
8702 # default) and relocated if they conflict, which is a slow very memory
8703 # consuming and fragmenting process. To avoid this, we pick a random,
8704 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8705 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8706 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8707 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'
8708 ;;
8709
8710 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8711 tmp_diet=no
8712 if test "$host_os" = linux-dietlibc; then
8713 case $cc_basename in
8714 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8715 esac
8716 fi
8717 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8718 && test "$tmp_diet" = no
8719 then
8720 tmp_addflag=' $pic_flag'
8721 tmp_sharedflag='-shared'
8722 case $cc_basename,$host_cpu in
8723 pgcc*) # Portland Group C compiler
8724 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'
8725 tmp_addflag=' $pic_flag'
8726 ;;
8727 pgf77* | pgf90* | pgf95* | pgfortran*)
8728 # Portland Group f77 and f90 compilers
8729 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'
8730 tmp_addflag=' $pic_flag -Mnomain' ;;
8731 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8732 tmp_addflag=' -i_dynamic' ;;
8733 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8734 tmp_addflag=' -i_dynamic -nofor_main' ;;
8735 ifc* | ifort*) # Intel Fortran compiler
8736 tmp_addflag=' -nofor_main' ;;
8737 lf95*) # Lahey Fortran 8.1
8738 whole_archive_flag_spec=
8739 tmp_sharedflag='--shared' ;;
8740 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8741 tmp_sharedflag='-qmkshrobj'
8742 tmp_addflag= ;;
8743 nvcc*) # Cuda Compiler Driver 2.2
8744 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'
8745 compiler_needs_object=yes
8746 ;;
8747 esac
8748 case `$CC -V 2>&1 | sed 5q` in
8749 *Sun\ C*) # Sun C 5.9
8750 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'
8751 compiler_needs_object=yes
8752 tmp_sharedflag='-G' ;;
8753 *Sun\ F*) # Sun Fortran 8.3
8754 tmp_sharedflag='-G' ;;
8755 esac
8756 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8757
8758 if test "x$supports_anon_versioning" = xyes; then
8759 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8761 echo "local: *; };" >> $output_objdir/$libname.ver~
8762 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8763 fi
8764
8765 case $cc_basename in
8766 xlf* | bgf* | bgxlf* | mpixlf*)
8767 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8768 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8769 hardcode_libdir_flag_spec=
8770 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8771 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8772 if test "x$supports_anon_versioning" = xyes; then
8773 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8774 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8775 echo "local: *; };" >> $output_objdir/$libname.ver~
8776 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8777 fi
8778 ;;
8779 esac
8780 else
8781 ld_shlibs=no
8782 fi
8783 ;;
8784
8785 netbsd*)
8786 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8787 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8788 wlarc=
8789 else
8790 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8791 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8792 fi
8793 ;;
8794
8795 solaris*)
8796 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8797 ld_shlibs=no
8798 cat <<_LT_EOF 1>&2
8799
8800 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8801 *** create shared libraries on Solaris systems. Therefore, libtool
8802 *** is disabling shared libraries support. We urge you to upgrade GNU
8803 *** binutils to release 2.9.1 or newer. Another option is to modify
8804 *** your PATH or compiler configuration so that the native linker is
8805 *** used, and then restart.
8806
8807 _LT_EOF
8808 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8809 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8811 else
8812 ld_shlibs=no
8813 fi
8814 ;;
8815
8816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8817 case `$LD -v 2>&1` in
8818 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8819 ld_shlibs=no
8820 cat <<_LT_EOF 1>&2
8821
8822 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8823 *** reliably create shared libraries on SCO systems. Therefore, libtool
8824 *** is disabling shared libraries support. We urge you to upgrade GNU
8825 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8826 *** your PATH or compiler configuration so that the native linker is
8827 *** used, and then restart.
8828
8829 _LT_EOF
8830 ;;
8831 *)
8832 # For security reasons, it is highly recommended that you always
8833 # use absolute paths for naming shared libraries, and exclude the
8834 # DT_RUNPATH tag from executables and libraries. But doing so
8835 # requires that you compile everything twice, which is a pain.
8836 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8840 else
8841 ld_shlibs=no
8842 fi
8843 ;;
8844 esac
8845 ;;
8846
8847 sunos4*)
8848 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8849 wlarc=
8850 hardcode_direct=yes
8851 hardcode_shlibpath_var=no
8852 ;;
8853
8854 *)
8855 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8856 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8857 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8858 else
8859 ld_shlibs=no
8860 fi
8861 ;;
8862 esac
8863
8864 if test "$ld_shlibs" = no; then
8865 runpath_var=
8866 hardcode_libdir_flag_spec=
8867 export_dynamic_flag_spec=
8868 whole_archive_flag_spec=
8869 fi
8870 else
8871 # PORTME fill in a description of your system's linker (not GNU ld)
8872 case $host_os in
8873 aix3*)
8874 allow_undefined_flag=unsupported
8875 always_export_symbols=yes
8876 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'
8877 # Note: this linker hardcodes the directories in LIBPATH if there
8878 # are no directories specified by -L.
8879 hardcode_minus_L=yes
8880 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8881 # Neither direct hardcoding nor static linking is supported with a
8882 # broken collect2.
8883 hardcode_direct=unsupported
8884 fi
8885 ;;
8886
8887 aix[4-9]*)
8888 if test "$host_cpu" = ia64; then
8889 # On IA64, the linker does run time linking by default, so we don't
8890 # have to do anything special.
8891 aix_use_runtimelinking=no
8892 exp_sym_flag='-Bexport'
8893 no_entry_flag=""
8894 else
8895 # If we're using GNU nm, then we don't want the "-C" option.
8896 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8897 # Also, AIX nm treats weak defined symbols like other global
8898 # defined symbols, whereas GNU nm marks them as "W".
8899 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8900 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8901 else
8902 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8903 fi
8904 aix_use_runtimelinking=no
8905
8906 # Test if we are trying to use run time linking or normal
8907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8908 # need to do runtime linking.
8909 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8910 for ld_flag in $LDFLAGS; do
8911 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8912 aix_use_runtimelinking=yes
8913 break
8914 fi
8915 done
8916 ;;
8917 esac
8918
8919 exp_sym_flag='-bexport'
8920 no_entry_flag='-bnoentry'
8921 fi
8922
8923 # When large executables or shared objects are built, AIX ld can
8924 # have problems creating the table of contents. If linking a library
8925 # or program results in "error TOC overflow" add -mminimal-toc to
8926 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8927 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8928
8929 archive_cmds=''
8930 hardcode_direct=yes
8931 hardcode_direct_absolute=yes
8932 hardcode_libdir_separator=':'
8933 link_all_deplibs=yes
8934 file_list_spec='${wl}-f,'
8935
8936 if test "$GCC" = yes; then
8937 case $host_os in aix4.[012]|aix4.[012].*)
8938 # We only want to do this on AIX 4.2 and lower, the check
8939 # below for broken collect2 doesn't work under 4.3+
8940 collect2name=`${CC} -print-prog-name=collect2`
8941 if test -f "$collect2name" &&
8942 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8943 then
8944 # We have reworked collect2
8945 :
8946 else
8947 # We have old collect2
8948 hardcode_direct=unsupported
8949 # It fails to find uninstalled libraries when the uninstalled
8950 # path is not listed in the libpath. Setting hardcode_minus_L
8951 # to unsupported forces relinking
8952 hardcode_minus_L=yes
8953 hardcode_libdir_flag_spec='-L$libdir'
8954 hardcode_libdir_separator=
8955 fi
8956 ;;
8957 esac
8958 shared_flag='-shared'
8959 if test "$aix_use_runtimelinking" = yes; then
8960 shared_flag="$shared_flag "'${wl}-G'
8961 fi
8962 else
8963 # not using gcc
8964 if test "$host_cpu" = ia64; then
8965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8966 # chokes on -Wl,-G. The following line is correct:
8967 shared_flag='-G'
8968 else
8969 if test "$aix_use_runtimelinking" = yes; then
8970 shared_flag='${wl}-G'
8971 else
8972 shared_flag='${wl}-bM:SRE'
8973 fi
8974 fi
8975 fi
8976
8977 export_dynamic_flag_spec='${wl}-bexpall'
8978 # It seems that -bexpall does not export symbols beginning with
8979 # underscore (_), so it is better to generate a list of symbols to export.
8980 always_export_symbols=yes
8981 if test "$aix_use_runtimelinking" = yes; then
8982 # Warning - without using the other runtime loading flags (-brtl),
8983 # -berok will link without error, but may produce a broken library.
8984 allow_undefined_flag='-berok'
8985 # Determine the default libpath from the value encoded in an
8986 # empty executable.
8987 if test "${lt_cv_aix_libpath+set}" = set; then
8988 aix_libpath=$lt_cv_aix_libpath
8989 else
8990 if ${lt_cv_aix_libpath_+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995
8996 int
8997 main ()
8998 {
8999
9000 ;
9001 return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_c_try_link "$LINENO"; then :
9005
9006 lt_aix_libpath_sed='
9007 /Import File Strings/,/^$/ {
9008 /^0/ {
9009 s/^0 *\([^ ]*\) *$/\1/
9010 p
9011 }
9012 }'
9013 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9014 # Check for a 64-bit object if we didn't find anything.
9015 if test -z "$lt_cv_aix_libpath_"; then
9016 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9017 fi
9018 fi
9019 rm -f core conftest.err conftest.$ac_objext \
9020 conftest$ac_exeext conftest.$ac_ext
9021 if test -z "$lt_cv_aix_libpath_"; then
9022 lt_cv_aix_libpath_="/usr/lib:/lib"
9023 fi
9024
9025 fi
9026
9027 aix_libpath=$lt_cv_aix_libpath_
9028 fi
9029
9030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9031 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9032 else
9033 if test "$host_cpu" = ia64; then
9034 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9035 allow_undefined_flag="-z nodefs"
9036 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"
9037 else
9038 # Determine the default libpath from the value encoded in an
9039 # empty executable.
9040 if test "${lt_cv_aix_libpath+set}" = set; then
9041 aix_libpath=$lt_cv_aix_libpath
9042 else
9043 if ${lt_cv_aix_libpath_+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048
9049 int
9050 main ()
9051 {
9052
9053 ;
9054 return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_link "$LINENO"; then :
9058
9059 lt_aix_libpath_sed='
9060 /Import File Strings/,/^$/ {
9061 /^0/ {
9062 s/^0 *\([^ ]*\) *$/\1/
9063 p
9064 }
9065 }'
9066 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9067 # Check for a 64-bit object if we didn't find anything.
9068 if test -z "$lt_cv_aix_libpath_"; then
9069 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9070 fi
9071 fi
9072 rm -f core conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9074 if test -z "$lt_cv_aix_libpath_"; then
9075 lt_cv_aix_libpath_="/usr/lib:/lib"
9076 fi
9077
9078 fi
9079
9080 aix_libpath=$lt_cv_aix_libpath_
9081 fi
9082
9083 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9084 # Warning - without using the other run time loading flags,
9085 # -berok will link without error, but may produce a broken library.
9086 no_undefined_flag=' ${wl}-bernotok'
9087 allow_undefined_flag=' ${wl}-berok'
9088 if test "$with_gnu_ld" = yes; then
9089 # We only use this code for GNU lds that support --whole-archive.
9090 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9091 else
9092 # Exported symbols can be pulled into shared objects from archives
9093 whole_archive_flag_spec='$convenience'
9094 fi
9095 archive_cmds_need_lc=yes
9096 # This is similar to how AIX traditionally builds its shared libraries.
9097 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9098 fi
9099 fi
9100 ;;
9101
9102 amigaos*)
9103 case $host_cpu in
9104 powerpc)
9105 # see comment about AmigaOS4 .so support
9106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107 archive_expsym_cmds=''
9108 ;;
9109 m68k)
9110 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)'
9111 hardcode_libdir_flag_spec='-L$libdir'
9112 hardcode_minus_L=yes
9113 ;;
9114 esac
9115 ;;
9116
9117 bsdi[45]*)
9118 export_dynamic_flag_spec=-rdynamic
9119 ;;
9120
9121 cygwin* | mingw* | pw32* | cegcc*)
9122 # When not using gcc, we currently assume that we are using
9123 # Microsoft Visual C++.
9124 # hardcode_libdir_flag_spec is actually meaningless, as there is
9125 # no search path for DLLs.
9126 case $cc_basename in
9127 cl*)
9128 # Native MSVC
9129 hardcode_libdir_flag_spec=' '
9130 allow_undefined_flag=unsupported
9131 always_export_symbols=yes
9132 file_list_spec='@'
9133 # Tell ltmain to make .lib files, not .a files.
9134 libext=lib
9135 # Tell ltmain to make .dll files, not .so files.
9136 shrext_cmds=".dll"
9137 # FIXME: Setting linknames here is a bad hack.
9138 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9139 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9140 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9141 else
9142 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9143 fi~
9144 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9145 linknames='
9146 # The linker will not automatically build a static lib if we build a DLL.
9147 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9148 enable_shared_with_static_runtimes=yes
9149 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9150 # Don't use ranlib
9151 old_postinstall_cmds='chmod 644 $oldlib'
9152 postlink_cmds='lt_outputfile="@OUTPUT@"~
9153 lt_tool_outputfile="@TOOL_OUTPUT@"~
9154 case $lt_outputfile in
9155 *.exe|*.EXE) ;;
9156 *)
9157 lt_outputfile="$lt_outputfile.exe"
9158 lt_tool_outputfile="$lt_tool_outputfile.exe"
9159 ;;
9160 esac~
9161 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9162 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9163 $RM "$lt_outputfile.manifest";
9164 fi'
9165 ;;
9166 *)
9167 # Assume MSVC wrapper
9168 hardcode_libdir_flag_spec=' '
9169 allow_undefined_flag=unsupported
9170 # Tell ltmain to make .lib files, not .a files.
9171 libext=lib
9172 # Tell ltmain to make .dll files, not .so files.
9173 shrext_cmds=".dll"
9174 # FIXME: Setting linknames here is a bad hack.
9175 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9176 # The linker will automatically build a .lib file if we build a DLL.
9177 old_archive_from_new_cmds='true'
9178 # FIXME: Should let the user specify the lib program.
9179 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9180 enable_shared_with_static_runtimes=yes
9181 ;;
9182 esac
9183 ;;
9184
9185 darwin* | rhapsody*)
9186
9187
9188 archive_cmds_need_lc=no
9189 hardcode_direct=no
9190 hardcode_automatic=yes
9191 hardcode_shlibpath_var=unsupported
9192 if test "$lt_cv_ld_force_load" = "yes"; then
9193 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\"`'
9194 else
9195 whole_archive_flag_spec=''
9196 fi
9197 link_all_deplibs=yes
9198 allow_undefined_flag="$_lt_dar_allow_undefined"
9199 case $cc_basename in
9200 ifort*) _lt_dar_can_shared=yes ;;
9201 *) _lt_dar_can_shared=$GCC ;;
9202 esac
9203 if test "$_lt_dar_can_shared" = "yes"; then
9204 output_verbose_link_cmd=func_echo_all
9205 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9206 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9207 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}"
9208 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}"
9209
9210 else
9211 ld_shlibs=no
9212 fi
9213
9214 ;;
9215
9216 dgux*)
9217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9218 hardcode_libdir_flag_spec='-L$libdir'
9219 hardcode_shlibpath_var=no
9220 ;;
9221
9222 freebsd1*)
9223 ld_shlibs=no
9224 ;;
9225
9226 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9227 # support. Future versions do this automatically, but an explicit c++rt0.o
9228 # does not break anything, and helps significantly (at the cost of a little
9229 # extra space).
9230 freebsd2.2*)
9231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9232 hardcode_libdir_flag_spec='-R$libdir'
9233 hardcode_direct=yes
9234 hardcode_shlibpath_var=no
9235 ;;
9236
9237 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9238 freebsd2*)
9239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9240 hardcode_direct=yes
9241 hardcode_minus_L=yes
9242 hardcode_shlibpath_var=no
9243 ;;
9244
9245 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9246 freebsd* | dragonfly*)
9247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9248 hardcode_libdir_flag_spec='-R$libdir'
9249 hardcode_direct=yes
9250 hardcode_shlibpath_var=no
9251 ;;
9252
9253 hpux9*)
9254 if test "$GCC" = yes; then
9255 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9256 else
9257 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9258 fi
9259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9260 hardcode_libdir_separator=:
9261 hardcode_direct=yes
9262
9263 # hardcode_minus_L: Not really in the search PATH,
9264 # but as the default location of the library.
9265 hardcode_minus_L=yes
9266 export_dynamic_flag_spec='${wl}-E'
9267 ;;
9268
9269 hpux10*)
9270 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9271 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9272 else
9273 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9274 fi
9275 if test "$with_gnu_ld" = no; then
9276 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9277 hardcode_libdir_flag_spec_ld='+b $libdir'
9278 hardcode_libdir_separator=:
9279 hardcode_direct=yes
9280 hardcode_direct_absolute=yes
9281 export_dynamic_flag_spec='${wl}-E'
9282 # hardcode_minus_L: Not really in the search PATH,
9283 # but as the default location of the library.
9284 hardcode_minus_L=yes
9285 fi
9286 ;;
9287
9288 hpux11*)
9289 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9290 case $host_cpu in
9291 hppa*64*)
9292 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9293 ;;
9294 ia64*)
9295 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9296 ;;
9297 *)
9298 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9299 ;;
9300 esac
9301 else
9302 case $host_cpu in
9303 hppa*64*)
9304 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9305 ;;
9306 ia64*)
9307 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9308 ;;
9309 *)
9310
9311 # Older versions of the 11.00 compiler do not understand -b yet
9312 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9314 $as_echo_n "checking if $CC understands -b... " >&6; }
9315 if ${lt_cv_prog_compiler__b+:} false; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 lt_cv_prog_compiler__b=no
9319 save_LDFLAGS="$LDFLAGS"
9320 LDFLAGS="$LDFLAGS -b"
9321 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9323 # The linker can only warn and ignore the option if not recognized
9324 # So say no if there are warnings
9325 if test -s conftest.err; then
9326 # Append any errors to the config.log.
9327 cat conftest.err 1>&5
9328 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9330 if diff conftest.exp conftest.er2 >/dev/null; then
9331 lt_cv_prog_compiler__b=yes
9332 fi
9333 else
9334 lt_cv_prog_compiler__b=yes
9335 fi
9336 fi
9337 $RM -r conftest*
9338 LDFLAGS="$save_LDFLAGS"
9339
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9342 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9343
9344 if test x"$lt_cv_prog_compiler__b" = xyes; then
9345 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9346 else
9347 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9348 fi
9349
9350 ;;
9351 esac
9352 fi
9353 if test "$with_gnu_ld" = no; then
9354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9355 hardcode_libdir_separator=:
9356
9357 case $host_cpu in
9358 hppa*64*|ia64*)
9359 hardcode_direct=no
9360 hardcode_shlibpath_var=no
9361 ;;
9362 *)
9363 hardcode_direct=yes
9364 hardcode_direct_absolute=yes
9365 export_dynamic_flag_spec='${wl}-E'
9366
9367 # hardcode_minus_L: Not really in the search PATH,
9368 # but as the default location of the library.
9369 hardcode_minus_L=yes
9370 ;;
9371 esac
9372 fi
9373 ;;
9374
9375 irix5* | irix6* | nonstopux*)
9376 if test "$GCC" = yes; then
9377 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'
9378 # Try to use the -exported_symbol ld option, if it does not
9379 # work, assume that -exports_file does not work either and
9380 # implicitly export all symbols.
9381 # This should be the same for all languages, so no per-tag cache variable.
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9383 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9384 if ${lt_cv_irix_exported_symbol+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 save_LDFLAGS="$LDFLAGS"
9388 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391 int foo (void) { return 0; }
9392 _ACEOF
9393 if ac_fn_c_try_link "$LINENO"; then :
9394 lt_cv_irix_exported_symbol=yes
9395 else
9396 lt_cv_irix_exported_symbol=no
9397 fi
9398 rm -f core conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400 LDFLAGS="$save_LDFLAGS"
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9403 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9404 if test "$lt_cv_irix_exported_symbol" = yes; then
9405 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'
9406 fi
9407 else
9408 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'
9409 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'
9410 fi
9411 archive_cmds_need_lc='no'
9412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9413 hardcode_libdir_separator=:
9414 inherit_rpath=yes
9415 link_all_deplibs=yes
9416 ;;
9417
9418 netbsd*)
9419 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9421 else
9422 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9423 fi
9424 hardcode_libdir_flag_spec='-R$libdir'
9425 hardcode_direct=yes
9426 hardcode_shlibpath_var=no
9427 ;;
9428
9429 newsos6)
9430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9431 hardcode_direct=yes
9432 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9433 hardcode_libdir_separator=:
9434 hardcode_shlibpath_var=no
9435 ;;
9436
9437 *nto* | *qnx*)
9438 ;;
9439
9440 openbsd*)
9441 if test -f /usr/libexec/ld.so; then
9442 hardcode_direct=yes
9443 hardcode_shlibpath_var=no
9444 hardcode_direct_absolute=yes
9445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9447 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9449 export_dynamic_flag_spec='${wl}-E'
9450 else
9451 case $host_os in
9452 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_libdir_flag_spec='-R$libdir'
9455 ;;
9456 *)
9457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9459 ;;
9460 esac
9461 fi
9462 else
9463 ld_shlibs=no
9464 fi
9465 ;;
9466
9467 os2*)
9468 hardcode_libdir_flag_spec='-L$libdir'
9469 hardcode_minus_L=yes
9470 allow_undefined_flag=unsupported
9471 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9472 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9473 ;;
9474
9475 osf3*)
9476 if test "$GCC" = yes; then
9477 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9478 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'
9479 else
9480 allow_undefined_flag=' -expect_unresolved \*'
9481 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'
9482 fi
9483 archive_cmds_need_lc='no'
9484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9485 hardcode_libdir_separator=:
9486 ;;
9487
9488 osf4* | osf5*) # as osf3* with the addition of -msym flag
9489 if test "$GCC" = yes; then
9490 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9491 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'
9492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493 else
9494 allow_undefined_flag=' -expect_unresolved \*'
9495 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'
9496 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~
9497 $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'
9498
9499 # Both c and cxx compiler support -rpath directly
9500 hardcode_libdir_flag_spec='-rpath $libdir'
9501 fi
9502 archive_cmds_need_lc='no'
9503 hardcode_libdir_separator=:
9504 ;;
9505
9506 solaris*)
9507 no_undefined_flag=' -z defs'
9508 if test "$GCC" = yes; then
9509 wlarc='${wl}'
9510 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9512 $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'
9513 else
9514 case `$CC -V 2>&1` in
9515 *"Compilers 5.0"*)
9516 wlarc=''
9517 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9519 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9520 ;;
9521 *)
9522 wlarc='${wl}'
9523 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9524 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9525 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9526 ;;
9527 esac
9528 fi
9529 hardcode_libdir_flag_spec='-R$libdir'
9530 hardcode_shlibpath_var=no
9531 case $host_os in
9532 solaris2.[0-5] | solaris2.[0-5].*) ;;
9533 *)
9534 # The compiler driver will combine and reorder linker options,
9535 # but understands `-z linker_flag'. GCC discards it without `$wl',
9536 # but is careful enough not to reorder.
9537 # Supported since Solaris 2.6 (maybe 2.5.1?)
9538 if test "$GCC" = yes; then
9539 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9540 else
9541 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9542 fi
9543 ;;
9544 esac
9545 link_all_deplibs=yes
9546 ;;
9547
9548 sunos4*)
9549 if test "x$host_vendor" = xsequent; then
9550 # Use $CC to link under sequent, because it throws in some extra .o
9551 # files that make .init and .fini sections work.
9552 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9553 else
9554 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9555 fi
9556 hardcode_libdir_flag_spec='-L$libdir'
9557 hardcode_direct=yes
9558 hardcode_minus_L=yes
9559 hardcode_shlibpath_var=no
9560 ;;
9561
9562 sysv4)
9563 case $host_vendor in
9564 sni)
9565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566 hardcode_direct=yes # is this really true???
9567 ;;
9568 siemens)
9569 ## LD is ld it makes a PLAMLIB
9570 ## CC just makes a GrossModule.
9571 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9572 reload_cmds='$CC -r -o $output$reload_objs'
9573 hardcode_direct=no
9574 ;;
9575 motorola)
9576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9577 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9578 ;;
9579 esac
9580 runpath_var='LD_RUN_PATH'
9581 hardcode_shlibpath_var=no
9582 ;;
9583
9584 sysv4.3*)
9585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586 hardcode_shlibpath_var=no
9587 export_dynamic_flag_spec='-Bexport'
9588 ;;
9589
9590 sysv4*MP*)
9591 if test -d /usr/nec; then
9592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9593 hardcode_shlibpath_var=no
9594 runpath_var=LD_RUN_PATH
9595 hardcode_runpath_var=yes
9596 ld_shlibs=yes
9597 fi
9598 ;;
9599
9600 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9601 no_undefined_flag='${wl}-z,text'
9602 archive_cmds_need_lc=no
9603 hardcode_shlibpath_var=no
9604 runpath_var='LD_RUN_PATH'
9605
9606 if test "$GCC" = yes; then
9607 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9609 else
9610 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9611 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9612 fi
9613 ;;
9614
9615 sysv5* | sco3.2v5* | sco5v6*)
9616 # Note: We can NOT use -z defs as we might desire, because we do not
9617 # link with -lc, and that would cause any symbols used from libc to
9618 # always be unresolved, which means just about no library would
9619 # ever link correctly. If we're not using GNU ld we use -z text
9620 # though, which does catch some bad symbols but isn't as heavy-handed
9621 # as -z defs.
9622 no_undefined_flag='${wl}-z,text'
9623 allow_undefined_flag='${wl}-z,nodefs'
9624 archive_cmds_need_lc=no
9625 hardcode_shlibpath_var=no
9626 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9627 hardcode_libdir_separator=':'
9628 link_all_deplibs=yes
9629 export_dynamic_flag_spec='${wl}-Bexport'
9630 runpath_var='LD_RUN_PATH'
9631
9632 if test "$GCC" = yes; then
9633 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9635 else
9636 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9637 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 fi
9639 ;;
9640
9641 uts4*)
9642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643 hardcode_libdir_flag_spec='-L$libdir'
9644 hardcode_shlibpath_var=no
9645 ;;
9646
9647 *)
9648 ld_shlibs=no
9649 ;;
9650 esac
9651
9652 if test x$host_vendor = xsni; then
9653 case $host in
9654 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9655 export_dynamic_flag_spec='${wl}-Blargedynsym'
9656 ;;
9657 esac
9658 fi
9659 fi
9660
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9662 $as_echo "$ld_shlibs" >&6; }
9663 test "$ld_shlibs" = no && can_build_shared=no
9664
9665 with_gnu_ld=$with_gnu_ld
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681 #
9682 # Do we need to explicitly link libc?
9683 #
9684 case "x$archive_cmds_need_lc" in
9685 x|xyes)
9686 # Assume -lc should be added
9687 archive_cmds_need_lc=yes
9688
9689 if test "$enable_shared" = yes && test "$GCC" = yes; then
9690 case $archive_cmds in
9691 *'~'*)
9692 # FIXME: we may have to deal with multi-command sequences.
9693 ;;
9694 '$CC '*)
9695 # Test whether the compiler implicitly links with -lc since on some
9696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9697 # to ld, don't add -lc before -lgcc.
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9699 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9700 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9701 $as_echo_n "(cached) " >&6
9702 else
9703 $RM conftest*
9704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705
9706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9707 (eval $ac_compile) 2>&5
9708 ac_status=$?
9709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9710 test $ac_status = 0; } 2>conftest.err; then
9711 soname=conftest
9712 lib=conftest
9713 libobjs=conftest.$ac_objext
9714 deplibs=
9715 wl=$lt_prog_compiler_wl
9716 pic_flag=$lt_prog_compiler_pic
9717 compiler_flags=-v
9718 linker_flags=-v
9719 verstring=
9720 output_objdir=.
9721 libname=conftest
9722 lt_save_allow_undefined_flag=$allow_undefined_flag
9723 allow_undefined_flag=
9724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9725 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9726 ac_status=$?
9727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9728 test $ac_status = 0; }
9729 then
9730 lt_cv_archive_cmds_need_lc=no
9731 else
9732 lt_cv_archive_cmds_need_lc=yes
9733 fi
9734 allow_undefined_flag=$lt_save_allow_undefined_flag
9735 else
9736 cat conftest.err 1>&5
9737 fi
9738 $RM conftest*
9739
9740 fi
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9742 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9743 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9744 ;;
9745 esac
9746 fi
9747 ;;
9748 esac
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9907 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9908
9909 if test "$GCC" = yes; then
9910 case $host_os in
9911 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9912 *) lt_awk_arg="/^libraries:/" ;;
9913 esac
9914 case $host_os in
9915 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9916 *) lt_sed_strip_eq="s,=/,/,g" ;;
9917 esac
9918 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9919 case $lt_search_path_spec in
9920 *\;*)
9921 # if the path contains ";" then we assume it to be the separator
9922 # otherwise default to the standard path separator (i.e. ":") - it is
9923 # assumed that no part of a normal pathname contains ";" but that should
9924 # okay in the real world where ";" in dirpaths is itself problematic.
9925 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9926 ;;
9927 *)
9928 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9929 ;;
9930 esac
9931 # Ok, now we have the path, separated by spaces, we can step through it
9932 # and add multilib dir if necessary.
9933 lt_tmp_lt_search_path_spec=
9934 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9935 for lt_sys_path in $lt_search_path_spec; do
9936 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9937 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9938 else
9939 test -d "$lt_sys_path" && \
9940 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9941 fi
9942 done
9943 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9944 BEGIN {RS=" "; FS="/|\n";} {
9945 lt_foo="";
9946 lt_count=0;
9947 for (lt_i = NF; lt_i > 0; lt_i--) {
9948 if ($lt_i != "" && $lt_i != ".") {
9949 if ($lt_i == "..") {
9950 lt_count++;
9951 } else {
9952 if (lt_count == 0) {
9953 lt_foo="/" $lt_i lt_foo;
9954 } else {
9955 lt_count--;
9956 }
9957 }
9958 }
9959 }
9960 if (lt_foo != "") { lt_freq[lt_foo]++; }
9961 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9962 }'`
9963 # AWK program above erroneously prepends '/' to C:/dos/paths
9964 # for these hosts.
9965 case $host_os in
9966 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9967 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9968 esac
9969 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9970 else
9971 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9972 fi
9973 library_names_spec=
9974 libname_spec='lib$name'
9975 soname_spec=
9976 shrext_cmds=".so"
9977 postinstall_cmds=
9978 postuninstall_cmds=
9979 finish_cmds=
9980 finish_eval=
9981 shlibpath_var=
9982 shlibpath_overrides_runpath=unknown
9983 version_type=none
9984 dynamic_linker="$host_os ld.so"
9985 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9986 need_lib_prefix=unknown
9987 hardcode_into_libs=no
9988
9989 # when you set need_version to no, make sure it does not cause -set_version
9990 # flags to be left without arguments
9991 need_version=unknown
9992
9993 case $host_os in
9994 aix3*)
9995 version_type=linux
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9997 shlibpath_var=LIBPATH
9998
9999 # AIX 3 has no versioning support, so we append a major version to the name.
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 ;;
10002
10003 aix[4-9]*)
10004 version_type=linux
10005 need_lib_prefix=no
10006 need_version=no
10007 hardcode_into_libs=yes
10008 if test "$host_cpu" = ia64; then
10009 # AIX 5 supports IA64
10010 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 else
10013 # With GCC up to 2.95.x, collect2 would create an import file
10014 # for dependence libraries. The import file would start with
10015 # the line `#! .'. This would cause the generated library to
10016 # depend on `.', always an invalid library. This was fixed in
10017 # development snapshots of GCC prior to 3.0.
10018 case $host_os in
10019 aix4 | aix4.[01] | aix4.[01].*)
10020 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10021 echo ' yes '
10022 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10023 :
10024 else
10025 can_build_shared=no
10026 fi
10027 ;;
10028 esac
10029 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10030 # soname into executable. Probably we can add versioning support to
10031 # collect2, so additional links can be useful in future.
10032 if test "$aix_use_runtimelinking" = yes; then
10033 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10034 # instead of lib<name>.a to let people know that these are not
10035 # typical AIX shared libraries.
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 else
10038 # We preserve .a as extension for shared libraries through AIX4.2
10039 # and later when we are not doing run time linking.
10040 library_names_spec='${libname}${release}.a $libname.a'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 fi
10043 shlibpath_var=LIBPATH
10044 fi
10045 ;;
10046
10047 amigaos*)
10048 case $host_cpu in
10049 powerpc)
10050 # Since July 2007 AmigaOS4 officially supports .so libraries.
10051 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053 ;;
10054 m68k)
10055 library_names_spec='$libname.ixlibrary $libname.a'
10056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10057 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10058 ;;
10059 esac
10060 ;;
10061
10062 beos*)
10063 library_names_spec='${libname}${shared_ext}'
10064 dynamic_linker="$host_os ld.so"
10065 shlibpath_var=LIBRARY_PATH
10066 ;;
10067
10068 bsdi[45]*)
10069 version_type=linux
10070 need_version=no
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072 soname_spec='${libname}${release}${shared_ext}$major'
10073 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10074 shlibpath_var=LD_LIBRARY_PATH
10075 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10076 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10077 # the default ld.so.conf also contains /usr/contrib/lib and
10078 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10079 # libtool to hard-code these into programs
10080 ;;
10081
10082 cygwin* | mingw* | pw32* | cegcc*)
10083 version_type=windows
10084 shrext_cmds=".dll"
10085 need_version=no
10086 need_lib_prefix=no
10087
10088 case $GCC,$cc_basename in
10089 yes,*)
10090 # gcc
10091 library_names_spec='$libname.dll.a'
10092 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10093 postinstall_cmds='base_file=`basename \${file}`~
10094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10095 dldir=$destdir/`dirname \$dlpath`~
10096 test -d \$dldir || mkdir -p \$dldir~
10097 $install_prog $dir/$dlname \$dldir/$dlname~
10098 chmod a+x \$dldir/$dlname~
10099 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10100 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10101 fi'
10102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10103 dlpath=$dir/\$dldll~
10104 $RM \$dlpath'
10105 shlibpath_overrides_runpath=yes
10106
10107 case $host_os in
10108 cygwin*)
10109 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10110 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10111
10112 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10113 ;;
10114 mingw* | cegcc*)
10115 # MinGW DLLs use traditional 'lib' prefix
10116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10117 ;;
10118 pw32*)
10119 # pw32 DLLs use 'pw' prefix rather than 'lib'
10120 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10121 ;;
10122 esac
10123 dynamic_linker='Win32 ld.exe'
10124 ;;
10125
10126 *,cl*)
10127 # Native MSVC
10128 libname_spec='$name'
10129 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10130 library_names_spec='${libname}.dll.lib'
10131
10132 case $build_os in
10133 mingw*)
10134 sys_lib_search_path_spec=
10135 lt_save_ifs=$IFS
10136 IFS=';'
10137 for lt_path in $LIB
10138 do
10139 IFS=$lt_save_ifs
10140 # Let DOS variable expansion print the short 8.3 style file name.
10141 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10142 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10143 done
10144 IFS=$lt_save_ifs
10145 # Convert to MSYS style.
10146 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10147 ;;
10148 cygwin*)
10149 # Convert to unix form, then to dos form, then back to unix form
10150 # but this time dos style (no spaces!) so that the unix form looks
10151 # like /cygdrive/c/PROGRA~1:/cygdr...
10152 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10153 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10154 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10155 ;;
10156 *)
10157 sys_lib_search_path_spec="$LIB"
10158 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10159 # It is most probably a Windows format PATH.
10160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10161 else
10162 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10163 fi
10164 # FIXME: find the short name or the path components, as spaces are
10165 # common. (e.g. "Program Files" -> "PROGRA~1")
10166 ;;
10167 esac
10168
10169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10170 postinstall_cmds='base_file=`basename \${file}`~
10171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10172 dldir=$destdir/`dirname \$dlpath`~
10173 test -d \$dldir || mkdir -p \$dldir~
10174 $install_prog $dir/$dlname \$dldir/$dlname'
10175 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10176 dlpath=$dir/\$dldll~
10177 $RM \$dlpath'
10178 shlibpath_overrides_runpath=yes
10179 dynamic_linker='Win32 link.exe'
10180 ;;
10181
10182 *)
10183 # Assume MSVC wrapper
10184 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10185 dynamic_linker='Win32 ld.exe'
10186 ;;
10187 esac
10188 # FIXME: first we should search . and the directory the executable is in
10189 shlibpath_var=PATH
10190 ;;
10191
10192 darwin* | rhapsody*)
10193 dynamic_linker="$host_os dyld"
10194 version_type=darwin
10195 need_lib_prefix=no
10196 need_version=no
10197 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10198 soname_spec='${libname}${release}${major}$shared_ext'
10199 shlibpath_overrides_runpath=yes
10200 shlibpath_var=DYLD_LIBRARY_PATH
10201 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10202
10203 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10205 ;;
10206
10207 dgux*)
10208 version_type=linux
10209 need_lib_prefix=no
10210 need_version=no
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 shlibpath_var=LD_LIBRARY_PATH
10214 ;;
10215
10216 freebsd1*)
10217 dynamic_linker=no
10218 ;;
10219
10220 freebsd* | dragonfly*)
10221 # DragonFly does not have aout. When/if they implement a new
10222 # versioning mechanism, adjust this.
10223 if test -x /usr/bin/objformat; then
10224 objformat=`/usr/bin/objformat`
10225 else
10226 case $host_os in
10227 freebsd[123]*) objformat=aout ;;
10228 *) objformat=elf ;;
10229 esac
10230 fi
10231 version_type=freebsd-$objformat
10232 case $version_type in
10233 freebsd-elf*)
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10235 need_version=no
10236 need_lib_prefix=no
10237 ;;
10238 freebsd-*)
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10240 need_version=yes
10241 ;;
10242 esac
10243 shlibpath_var=LD_LIBRARY_PATH
10244 case $host_os in
10245 freebsd2*)
10246 shlibpath_overrides_runpath=yes
10247 ;;
10248 freebsd3.[01]* | freebsdelf3.[01]*)
10249 shlibpath_overrides_runpath=yes
10250 hardcode_into_libs=yes
10251 ;;
10252 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10253 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10254 shlibpath_overrides_runpath=no
10255 hardcode_into_libs=yes
10256 ;;
10257 *) # from 4.6 on, and DragonFly
10258 shlibpath_overrides_runpath=yes
10259 hardcode_into_libs=yes
10260 ;;
10261 esac
10262 ;;
10263
10264 gnu*)
10265 version_type=linux
10266 need_lib_prefix=no
10267 need_version=no
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10269 soname_spec='${libname}${release}${shared_ext}$major'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 hardcode_into_libs=yes
10272 ;;
10273
10274 haiku*)
10275 version_type=linux
10276 need_lib_prefix=no
10277 need_version=no
10278 dynamic_linker="$host_os runtime_loader"
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 shlibpath_var=LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes
10283 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10284 hardcode_into_libs=yes
10285 ;;
10286
10287 hpux9* | hpux10* | hpux11*)
10288 # Give a soname corresponding to the major version so that dld.sl refuses to
10289 # link against other versions.
10290 version_type=sunos
10291 need_lib_prefix=no
10292 need_version=no
10293 case $host_cpu in
10294 ia64*)
10295 shrext_cmds='.so'
10296 hardcode_into_libs=yes
10297 dynamic_linker="$host_os dld.so"
10298 shlibpath_var=LD_LIBRARY_PATH
10299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 if test "X$HPUX_IA64_MODE" = X32; then
10303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10304 else
10305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10306 fi
10307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10308 ;;
10309 hppa*64*)
10310 shrext_cmds='.sl'
10311 hardcode_into_libs=yes
10312 dynamic_linker="$host_os dld.sl"
10313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 soname_spec='${libname}${release}${shared_ext}$major'
10317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10319 ;;
10320 *)
10321 shrext_cmds='.sl'
10322 dynamic_linker="$host_os dld.sl"
10323 shlibpath_var=SHLIB_PATH
10324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 ;;
10328 esac
10329 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10330 postinstall_cmds='chmod 555 $lib'
10331 # or fails outright, so override atomically:
10332 install_override_mode=555
10333 ;;
10334
10335 interix[3-9]*)
10336 version_type=linux
10337 need_lib_prefix=no
10338 need_version=no
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 shlibpath_overrides_runpath=no
10344 hardcode_into_libs=yes
10345 ;;
10346
10347 irix5* | irix6* | nonstopux*)
10348 case $host_os in
10349 nonstopux*) version_type=nonstopux ;;
10350 *)
10351 if test "$lt_cv_prog_gnu_ld" = yes; then
10352 version_type=linux
10353 else
10354 version_type=irix
10355 fi ;;
10356 esac
10357 need_lib_prefix=no
10358 need_version=no
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10361 case $host_os in
10362 irix5* | nonstopux*)
10363 libsuff= shlibsuff=
10364 ;;
10365 *)
10366 case $LD in # libtool.m4 will add one of these switches to LD
10367 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10368 libsuff= shlibsuff= libmagic=32-bit;;
10369 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10370 libsuff=32 shlibsuff=N32 libmagic=N32;;
10371 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10372 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10373 *) libsuff= shlibsuff= libmagic=never-match;;
10374 esac
10375 ;;
10376 esac
10377 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10378 shlibpath_overrides_runpath=no
10379 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10380 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10381 hardcode_into_libs=yes
10382 ;;
10383
10384 # No shared lib support for Linux oldld, aout, or coff.
10385 linux*oldld* | linux*aout* | linux*coff*)
10386 dynamic_linker=no
10387 ;;
10388
10389 # This must be Linux ELF.
10390 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10391 version_type=linux
10392 need_lib_prefix=no
10393 need_version=no
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=no
10399
10400 # Some binutils ld are patched to set DT_RUNPATH
10401 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 lt_cv_shlibpath_overrides_runpath=no
10405 save_LDFLAGS=$LDFLAGS
10406 save_libdir=$libdir
10407 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10408 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10411
10412 int
10413 main ()
10414 {
10415
10416 ;
10417 return 0;
10418 }
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"; then :
10421 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10422 lt_cv_shlibpath_overrides_runpath=yes
10423 fi
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext \
10426 conftest$ac_exeext conftest.$ac_ext
10427 LDFLAGS=$save_LDFLAGS
10428 libdir=$save_libdir
10429
10430 fi
10431
10432 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10433
10434 # This implies no fast_install, which is unacceptable.
10435 # Some rework will be needed to allow for fast_install
10436 # before this can be enabled.
10437 hardcode_into_libs=yes
10438
10439 # Append ld.so.conf contents to the search path
10440 if test -f /etc/ld.so.conf; then
10441 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' ' '`
10442 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10443 fi
10444
10445 # We used to test for /lib/ld.so.1 and disable shared libraries on
10446 # powerpc, because MkLinux only supported shared libraries with the
10447 # GNU dynamic linker. Since this was broken with cross compilers,
10448 # most powerpc-linux boxes support dynamic linking these days and
10449 # people can always --disable-shared, the test was removed, and we
10450 # assume the GNU/Linux dynamic linker is in use.
10451 dynamic_linker='GNU/Linux ld.so'
10452 ;;
10453
10454 netbsd*)
10455 version_type=sunos
10456 need_lib_prefix=no
10457 need_version=no
10458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10461 dynamic_linker='NetBSD (a.out) ld.so'
10462 else
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 dynamic_linker='NetBSD ld.elf_so'
10466 fi
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=yes
10469 hardcode_into_libs=yes
10470 ;;
10471
10472 newsos6)
10473 version_type=linux
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 shlibpath_var=LD_LIBRARY_PATH
10476 shlibpath_overrides_runpath=yes
10477 ;;
10478
10479 *nto* | *qnx*)
10480 version_type=qnx
10481 need_lib_prefix=no
10482 need_version=no
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484 soname_spec='${libname}${release}${shared_ext}$major'
10485 shlibpath_var=LD_LIBRARY_PATH
10486 shlibpath_overrides_runpath=no
10487 hardcode_into_libs=yes
10488 dynamic_linker='ldqnx.so'
10489 ;;
10490
10491 openbsd*)
10492 version_type=sunos
10493 sys_lib_dlsearch_path_spec="/usr/lib"
10494 need_lib_prefix=no
10495 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10496 case $host_os in
10497 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10498 *) need_version=no ;;
10499 esac
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10504 case $host_os in
10505 openbsd2.[89] | openbsd2.[89].*)
10506 shlibpath_overrides_runpath=no
10507 ;;
10508 *)
10509 shlibpath_overrides_runpath=yes
10510 ;;
10511 esac
10512 else
10513 shlibpath_overrides_runpath=yes
10514 fi
10515 ;;
10516
10517 os2*)
10518 libname_spec='$name'
10519 shrext_cmds=".dll"
10520 need_lib_prefix=no
10521 library_names_spec='$libname${shared_ext} $libname.a'
10522 dynamic_linker='OS/2 ld.exe'
10523 shlibpath_var=LIBPATH
10524 ;;
10525
10526 osf3* | osf4* | osf5*)
10527 version_type=osf
10528 need_lib_prefix=no
10529 need_version=no
10530 soname_spec='${libname}${release}${shared_ext}$major'
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10535 ;;
10536
10537 rdos*)
10538 dynamic_linker=no
10539 ;;
10540
10541 solaris*)
10542 version_type=linux
10543 need_lib_prefix=no
10544 need_version=no
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 shlibpath_overrides_runpath=yes
10549 hardcode_into_libs=yes
10550 # ldd complains unless libraries are executable
10551 postinstall_cmds='chmod +x $lib'
10552 ;;
10553
10554 sunos4*)
10555 version_type=sunos
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath=yes
10560 if test "$with_gnu_ld" = yes; then
10561 need_lib_prefix=no
10562 fi
10563 need_version=yes
10564 ;;
10565
10566 sysv4 | sysv4.3*)
10567 version_type=linux
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 case $host_vendor in
10572 sni)
10573 shlibpath_overrides_runpath=no
10574 need_lib_prefix=no
10575 runpath_var=LD_RUN_PATH
10576 ;;
10577 siemens)
10578 need_lib_prefix=no
10579 ;;
10580 motorola)
10581 need_lib_prefix=no
10582 need_version=no
10583 shlibpath_overrides_runpath=no
10584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10585 ;;
10586 esac
10587 ;;
10588
10589 sysv4*MP*)
10590 if test -d /usr/nec ;then
10591 version_type=linux
10592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10593 soname_spec='$libname${shared_ext}.$major'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 fi
10596 ;;
10597
10598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10599 version_type=freebsd-elf
10600 need_lib_prefix=no
10601 need_version=no
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 shlibpath_var=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath=yes
10606 hardcode_into_libs=yes
10607 if test "$with_gnu_ld" = yes; then
10608 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10609 else
10610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10611 case $host_os in
10612 sco3.2v5*)
10613 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10614 ;;
10615 esac
10616 fi
10617 sys_lib_dlsearch_path_spec='/usr/lib'
10618 ;;
10619
10620 tpf*)
10621 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10622 version_type=linux
10623 need_lib_prefix=no
10624 need_version=no
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 shlibpath_overrides_runpath=no
10628 hardcode_into_libs=yes
10629 ;;
10630
10631 uts4*)
10632 version_type=linux
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 ;;
10637
10638 *)
10639 dynamic_linker=no
10640 ;;
10641 esac
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10643 $as_echo "$dynamic_linker" >&6; }
10644 test "$dynamic_linker" = no && can_build_shared=no
10645
10646 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10647 if test "$GCC" = yes; then
10648 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10649 fi
10650
10651 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10652 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10653 fi
10654 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10655 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10656 fi
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10750 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10751 hardcode_action=
10752 if test -n "$hardcode_libdir_flag_spec" ||
10753 test -n "$runpath_var" ||
10754 test "X$hardcode_automatic" = "Xyes" ; then
10755
10756 # We can hardcode non-existent directories.
10757 if test "$hardcode_direct" != no &&
10758 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10759 # have to relink, otherwise we might link with an installed library
10760 # when we should be linking with a yet-to-be-installed one
10761 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10762 test "$hardcode_minus_L" != no; then
10763 # Linking always hardcodes the temporary library directory.
10764 hardcode_action=relink
10765 else
10766 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10767 hardcode_action=immediate
10768 fi
10769 else
10770 # We cannot hardcode anything, or else we can only hardcode existing
10771 # directories.
10772 hardcode_action=unsupported
10773 fi
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10775 $as_echo "$hardcode_action" >&6; }
10776
10777 if test "$hardcode_action" = relink ||
10778 test "$inherit_rpath" = yes; then
10779 # Fast installation is not supported
10780 enable_fast_install=no
10781 elif test "$shlibpath_overrides_runpath" = yes ||
10782 test "$enable_shared" = no; then
10783 # Fast installation is not necessary
10784 enable_fast_install=needless
10785 fi
10786
10787
10788
10789
10790
10791
10792 if test "x$enable_dlopen" != xyes; then
10793 enable_dlopen=unknown
10794 enable_dlopen_self=unknown
10795 enable_dlopen_self_static=unknown
10796 else
10797 lt_cv_dlopen=no
10798 lt_cv_dlopen_libs=
10799
10800 case $host_os in
10801 beos*)
10802 lt_cv_dlopen="load_add_on"
10803 lt_cv_dlopen_libs=
10804 lt_cv_dlopen_self=yes
10805 ;;
10806
10807 mingw* | pw32* | cegcc*)
10808 lt_cv_dlopen="LoadLibrary"
10809 lt_cv_dlopen_libs=
10810 ;;
10811
10812 cygwin*)
10813 lt_cv_dlopen="dlopen"
10814 lt_cv_dlopen_libs=
10815 ;;
10816
10817 darwin*)
10818 # if libdl is installed we need to link against it
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10820 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10821 if ${ac_cv_lib_dl_dlopen+:} false; then :
10822 $as_echo_n "(cached) " >&6
10823 else
10824 ac_check_lib_save_LIBS=$LIBS
10825 LIBS="-ldl $LIBS"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828
10829 /* Override any GCC internal prototype to avoid an error.
10830 Use char because int might match the return type of a GCC
10831 builtin and then its argument prototype would still apply. */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 char dlopen ();
10836 int
10837 main ()
10838 {
10839 return dlopen ();
10840 ;
10841 return 0;
10842 }
10843 _ACEOF
10844 if ac_fn_c_try_link "$LINENO"; then :
10845 ac_cv_lib_dl_dlopen=yes
10846 else
10847 ac_cv_lib_dl_dlopen=no
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10852 fi
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10854 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10855 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10857 else
10858
10859 lt_cv_dlopen="dyld"
10860 lt_cv_dlopen_libs=
10861 lt_cv_dlopen_self=yes
10862
10863 fi
10864
10865 ;;
10866
10867 *)
10868 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10869 if test "x$ac_cv_func_shl_load" = xyes; then :
10870 lt_cv_dlopen="shl_load"
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10873 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10874 if ${ac_cv_lib_dld_shl_load+:} false; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 ac_check_lib_save_LIBS=$LIBS
10878 LIBS="-ldld $LIBS"
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10881
10882 /* Override any GCC internal prototype to avoid an error.
10883 Use char because int might match the return type of a GCC
10884 builtin and then its argument prototype would still apply. */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 char shl_load ();
10889 int
10890 main ()
10891 {
10892 return shl_load ();
10893 ;
10894 return 0;
10895 }
10896 _ACEOF
10897 if ac_fn_c_try_link "$LINENO"; then :
10898 ac_cv_lib_dld_shl_load=yes
10899 else
10900 ac_cv_lib_dld_shl_load=no
10901 fi
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10905 fi
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10907 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10908 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10909 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10910 else
10911 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10912 if test "x$ac_cv_func_dlopen" = xyes; then :
10913 lt_cv_dlopen="dlopen"
10914 else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10916 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10917 if ${ac_cv_lib_dl_dlopen+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 ac_check_lib_save_LIBS=$LIBS
10921 LIBS="-ldl $LIBS"
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924
10925 /* Override any GCC internal prototype to avoid an error.
10926 Use char because int might match the return type of a GCC
10927 builtin and then its argument prototype would still apply. */
10928 #ifdef __cplusplus
10929 extern "C"
10930 #endif
10931 char dlopen ();
10932 int
10933 main ()
10934 {
10935 return dlopen ();
10936 ;
10937 return 0;
10938 }
10939 _ACEOF
10940 if ac_fn_c_try_link "$LINENO"; then :
10941 ac_cv_lib_dl_dlopen=yes
10942 else
10943 ac_cv_lib_dl_dlopen=no
10944 fi
10945 rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10947 LIBS=$ac_check_lib_save_LIBS
10948 fi
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10950 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10951 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10953 else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10955 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10956 if ${ac_cv_lib_svld_dlopen+:} false; then :
10957 $as_echo_n "(cached) " >&6
10958 else
10959 ac_check_lib_save_LIBS=$LIBS
10960 LIBS="-lsvld $LIBS"
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10963
10964 /* Override any GCC internal prototype to avoid an error.
10965 Use char because int might match the return type of a GCC
10966 builtin and then its argument prototype would still apply. */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 char dlopen ();
10971 int
10972 main ()
10973 {
10974 return dlopen ();
10975 ;
10976 return 0;
10977 }
10978 _ACEOF
10979 if ac_fn_c_try_link "$LINENO"; then :
10980 ac_cv_lib_svld_dlopen=yes
10981 else
10982 ac_cv_lib_svld_dlopen=no
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext \
10985 conftest$ac_exeext conftest.$ac_ext
10986 LIBS=$ac_check_lib_save_LIBS
10987 fi
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10989 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10990 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10992 else
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10994 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10995 if ${ac_cv_lib_dld_dld_link+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 ac_check_lib_save_LIBS=$LIBS
10999 LIBS="-ldld $LIBS"
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11002
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 char dld_link ();
11010 int
11011 main ()
11012 {
11013 return dld_link ();
11014 ;
11015 return 0;
11016 }
11017 _ACEOF
11018 if ac_fn_c_try_link "$LINENO"; then :
11019 ac_cv_lib_dld_dld_link=yes
11020 else
11021 ac_cv_lib_dld_dld_link=no
11022 fi
11023 rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LIBS=$ac_check_lib_save_LIBS
11026 fi
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11028 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11029 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11030 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11031 fi
11032
11033
11034 fi
11035
11036
11037 fi
11038
11039
11040 fi
11041
11042
11043 fi
11044
11045
11046 fi
11047
11048 ;;
11049 esac
11050
11051 if test "x$lt_cv_dlopen" != xno; then
11052 enable_dlopen=yes
11053 else
11054 enable_dlopen=no
11055 fi
11056
11057 case $lt_cv_dlopen in
11058 dlopen)
11059 save_CPPFLAGS="$CPPFLAGS"
11060 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11061
11062 save_LDFLAGS="$LDFLAGS"
11063 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11064
11065 save_LIBS="$LIBS"
11066 LIBS="$lt_cv_dlopen_libs $LIBS"
11067
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11069 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11070 if ${lt_cv_dlopen_self+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 if test "$cross_compiling" = yes; then :
11074 lt_cv_dlopen_self=cross
11075 else
11076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11077 lt_status=$lt_dlunknown
11078 cat > conftest.$ac_ext <<_LT_EOF
11079 #line $LINENO "configure"
11080 #include "confdefs.h"
11081
11082 #if HAVE_DLFCN_H
11083 #include <dlfcn.h>
11084 #endif
11085
11086 #include <stdio.h>
11087
11088 #ifdef RTLD_GLOBAL
11089 # define LT_DLGLOBAL RTLD_GLOBAL
11090 #else
11091 # ifdef DL_GLOBAL
11092 # define LT_DLGLOBAL DL_GLOBAL
11093 # else
11094 # define LT_DLGLOBAL 0
11095 # endif
11096 #endif
11097
11098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11099 find out it does not work in some platform. */
11100 #ifndef LT_DLLAZY_OR_NOW
11101 # ifdef RTLD_LAZY
11102 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11103 # else
11104 # ifdef DL_LAZY
11105 # define LT_DLLAZY_OR_NOW DL_LAZY
11106 # else
11107 # ifdef RTLD_NOW
11108 # define LT_DLLAZY_OR_NOW RTLD_NOW
11109 # else
11110 # ifdef DL_NOW
11111 # define LT_DLLAZY_OR_NOW DL_NOW
11112 # else
11113 # define LT_DLLAZY_OR_NOW 0
11114 # endif
11115 # endif
11116 # endif
11117 # endif
11118 #endif
11119
11120 /* When -fvisbility=hidden is used, assume the code has been annotated
11121 correspondingly for the symbols needed. */
11122 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11123 int fnord () __attribute__((visibility("default")));
11124 #endif
11125
11126 int fnord () { return 42; }
11127 int main ()
11128 {
11129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11130 int status = $lt_dlunknown;
11131
11132 if (self)
11133 {
11134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11135 else
11136 {
11137 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11138 else puts (dlerror ());
11139 }
11140 /* dlclose (self); */
11141 }
11142 else
11143 puts (dlerror ());
11144
11145 return status;
11146 }
11147 _LT_EOF
11148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11149 (eval $ac_link) 2>&5
11150 ac_status=$?
11151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11152 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11153 (./conftest; exit; ) >&5 2>/dev/null
11154 lt_status=$?
11155 case x$lt_status in
11156 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11157 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11158 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11159 esac
11160 else :
11161 # compilation failed
11162 lt_cv_dlopen_self=no
11163 fi
11164 fi
11165 rm -fr conftest*
11166
11167
11168 fi
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11170 $as_echo "$lt_cv_dlopen_self" >&6; }
11171
11172 if test "x$lt_cv_dlopen_self" = xyes; then
11173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11175 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11176 if ${lt_cv_dlopen_self_static+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 if test "$cross_compiling" = yes; then :
11180 lt_cv_dlopen_self_static=cross
11181 else
11182 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11183 lt_status=$lt_dlunknown
11184 cat > conftest.$ac_ext <<_LT_EOF
11185 #line $LINENO "configure"
11186 #include "confdefs.h"
11187
11188 #if HAVE_DLFCN_H
11189 #include <dlfcn.h>
11190 #endif
11191
11192 #include <stdio.h>
11193
11194 #ifdef RTLD_GLOBAL
11195 # define LT_DLGLOBAL RTLD_GLOBAL
11196 #else
11197 # ifdef DL_GLOBAL
11198 # define LT_DLGLOBAL DL_GLOBAL
11199 # else
11200 # define LT_DLGLOBAL 0
11201 # endif
11202 #endif
11203
11204 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11205 find out it does not work in some platform. */
11206 #ifndef LT_DLLAZY_OR_NOW
11207 # ifdef RTLD_LAZY
11208 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11209 # else
11210 # ifdef DL_LAZY
11211 # define LT_DLLAZY_OR_NOW DL_LAZY
11212 # else
11213 # ifdef RTLD_NOW
11214 # define LT_DLLAZY_OR_NOW RTLD_NOW
11215 # else
11216 # ifdef DL_NOW
11217 # define LT_DLLAZY_OR_NOW DL_NOW
11218 # else
11219 # define LT_DLLAZY_OR_NOW 0
11220 # endif
11221 # endif
11222 # endif
11223 # endif
11224 #endif
11225
11226 /* When -fvisbility=hidden is used, assume the code has been annotated
11227 correspondingly for the symbols needed. */
11228 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11229 int fnord () __attribute__((visibility("default")));
11230 #endif
11231
11232 int fnord () { return 42; }
11233 int main ()
11234 {
11235 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11236 int status = $lt_dlunknown;
11237
11238 if (self)
11239 {
11240 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11241 else
11242 {
11243 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11244 else puts (dlerror ());
11245 }
11246 /* dlclose (self); */
11247 }
11248 else
11249 puts (dlerror ());
11250
11251 return status;
11252 }
11253 _LT_EOF
11254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11255 (eval $ac_link) 2>&5
11256 ac_status=$?
11257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11258 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11259 (./conftest; exit; ) >&5 2>/dev/null
11260 lt_status=$?
11261 case x$lt_status in
11262 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11263 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11264 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11265 esac
11266 else :
11267 # compilation failed
11268 lt_cv_dlopen_self_static=no
11269 fi
11270 fi
11271 rm -fr conftest*
11272
11273
11274 fi
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11276 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11277 fi
11278
11279 CPPFLAGS="$save_CPPFLAGS"
11280 LDFLAGS="$save_LDFLAGS"
11281 LIBS="$save_LIBS"
11282 ;;
11283 esac
11284
11285 case $lt_cv_dlopen_self in
11286 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11287 *) enable_dlopen_self=unknown ;;
11288 esac
11289
11290 case $lt_cv_dlopen_self_static in
11291 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11292 *) enable_dlopen_self_static=unknown ;;
11293 esac
11294 fi
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312 striplib=
11313 old_striplib=
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11315 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11316 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11317 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11318 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11320 $as_echo "yes" >&6; }
11321 else
11322 # FIXME - insert some real tests, host_os isn't really good enough
11323 case $host_os in
11324 darwin*)
11325 if test -n "$STRIP" ; then
11326 striplib="$STRIP -x"
11327 old_striplib="$STRIP -S"
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11329 $as_echo "yes" >&6; }
11330 else
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11333 fi
11334 ;;
11335 *)
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338 ;;
11339 esac
11340 fi
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353 # Report which library types will actually be built
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11355 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11357 $as_echo "$can_build_shared" >&6; }
11358
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11360 $as_echo_n "checking whether to build shared libraries... " >&6; }
11361 test "$can_build_shared" = "no" && enable_shared=no
11362
11363 # On AIX, shared libraries and static libraries use the same namespace, and
11364 # are all built from PIC.
11365 case $host_os in
11366 aix3*)
11367 test "$enable_shared" = yes && enable_static=no
11368 if test -n "$RANLIB"; then
11369 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11370 postinstall_cmds='$RANLIB $lib'
11371 fi
11372 ;;
11373
11374 aix[4-9]*)
11375 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11376 test "$enable_shared" = yes && enable_static=no
11377 fi
11378 ;;
11379 esac
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11381 $as_echo "$enable_shared" >&6; }
11382
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11384 $as_echo_n "checking whether to build static libraries... " >&6; }
11385 # Make sure either enable_shared or enable_static is yes.
11386 test "$enable_shared" = yes || enable_static=yes
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11388 $as_echo "$enable_static" >&6; }
11389
11390
11391
11392
11393 fi
11394 ac_ext=c
11395 ac_cpp='$CPP $CPPFLAGS'
11396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11399
11400 CC="$lt_save_CC"
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414 ac_config_commands="$ac_config_commands libtool"
11415
11416
11417
11418
11419 # Only expand once:
11420
11421
11422
11423 # Check whether --enable-debug-output was given.
11424 if test "${enable_debug_output+set}" = set; then :
11425 enableval=$enable_debug_output; if test "x${enableval}" != "xno"; then :
11426
11427 $as_echo "#define PRINT_DEBUG 1" >>confdefs.h
11428
11429 fi
11430 fi
11431
11432
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
11434 $as_echo_n "checking for __attribute__... " >&6; }
11435 if ${ac_cv___attribute__+:} false; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11440 #include <stdlib.h>
11441 int
11442 main ()
11443 {
11444 int foo __attribute__ ((unused));
11445 ;
11446 return 0;
11447 }
11448 _ACEOF
11449 if ac_fn_c_try_compile "$LINENO"; then :
11450 ac_cv___attribute__=yes
11451 else
11452 ac_cv___attribute__=no
11453 fi
11454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11455 fi
11456
11457 if test "$ac_cv___attribute__" = "yes"; then
11458
11459 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
11460
11461 fi
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
11463 $as_echo "$ac_cv___attribute__" >&6; }
11464
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __attribute__ format works on function pointers" >&5
11466 $as_echo_n "checking if __attribute__ format works on function pointers... " >&6; }
11467 if ${ac_cv___attribute__fp+:} false; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11472 #include <stdlib.h>
11473 int
11474 main ()
11475 {
11476 static void (*foo)(char *fmt, ...) __attribute__((format(printf, 1, 2)));
11477 ;
11478 return 0;
11479 }
11480 _ACEOF
11481 if ac_fn_c_try_compile "$LINENO"; then :
11482 ac_cv___attribute__fp=yes
11483 else
11484 ac_cv___attribute__fp=no
11485 fi
11486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11487 fi
11488
11489 if test "$ac_cv___attribute__fp" = "yes"; then
11490
11491 $as_echo "#define HAVE___ATTRIBUTE__FP 1" >>confdefs.h
11492
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__fp" >&5
11495 $as_echo "$ac_cv___attribute__fp" >&6; }
11496
11497 # ===========================================================================
11498 # http://www.gnu.org/software/autoconf-archive/ax_pthread.html
11499 # ===========================================================================
11500 #
11501 # SYNOPSIS
11502 #
11503 # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
11504 #
11505 # DESCRIPTION
11506 #
11507 # This macro figures out how to build C programs using POSIX threads. It
11508 # sets the PTHREAD_LIBS output variable to the threads library and linker
11509 # flags, and the PTHREAD_CFLAGS output variable to any special C compiler
11510 # flags that are needed. (The user can also force certain compiler
11511 # flags/libs to be tested by setting these environment variables.)
11512 #
11513 # Also sets PTHREAD_CC to any special C compiler that is needed for
11514 # multi-threaded programs (defaults to the value of CC otherwise). (This
11515 # is necessary on AIX to use the special cc_r compiler alias.)
11516 #
11517 # NOTE: You are assumed to not only compile your program with these flags,
11518 # but also link it with them as well. e.g. you should link with
11519 # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
11520 #
11521 # If you are only building threads programs, you may wish to use these
11522 # variables in your default LIBS, CFLAGS, and CC:
11523 #
11524 # LIBS="$PTHREAD_LIBS $LIBS"
11525 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11526 # CC="$PTHREAD_CC"
11527 #
11528 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
11529 # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
11530 # (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
11531 #
11532 # ACTION-IF-FOUND is a list of shell commands to run if a threads library
11533 # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
11534 # is not found. If ACTION-IF-FOUND is not specified, the default action
11535 # will define HAVE_PTHREAD.
11536 #
11537 # Please let the authors know if this macro fails on any platform, or if
11538 # you have any other suggestions or comments. This macro was based on work
11539 # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
11540 # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
11541 # Alejandro Forero Cuervo to the autoconf macro repository. We are also
11542 # grateful for the helpful feedback of numerous users.
11543 #
11544 # LICENSE
11545 #
11546 # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
11547 #
11548 # This program is free software: you can redistribute it and/or modify it
11549 # under the terms of the GNU General Public License as published by the
11550 # Free Software Foundation, either version 3 of the License, or (at your
11551 # option) any later version.
11552 #
11553 # This program is distributed in the hope that it will be useful, but
11554 # WITHOUT ANY WARRANTY; without even the implied warranty of
11555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11556 # Public License for more details.
11557 #
11558 # You should have received a copy of the GNU General Public License along
11559 # with this program. If not, see <http://www.gnu.org/licenses/>.
11560 #
11561 # As a special exception, the respective Autoconf Macro's copyright owner
11562 # gives unlimited permission to copy, distribute and modify the configure
11563 # scripts that are the output of Autoconf when processing the Macro. You
11564 # need not follow the terms of the GNU General Public License when using
11565 # or distributing such scripts, even though portions of the text of the
11566 # Macro appear in them. The GNU General Public License (GPL) does govern
11567 # all other use of the material that constitutes the Autoconf Macro.
11568 #
11569 # This special exception to the GPL applies to versions of the Autoconf
11570 # Macro released by the Autoconf Archive. When you make and distribute a
11571 # modified version of the Autoconf Macro, you may extend this special
11572 # exception to the GPL to apply to your modified version as well.
11573
11574 #serial 11
11575
11576 # This is what autoupdate's m4 run will expand. It fires
11577 # the warning (with _au_warn_XXX), outputs it into the
11578 # updated configure.ac (with AC_DIAGNOSE), and then outputs
11579 # the replacement expansion.
11580
11581
11582 # This is an auxiliary macro that is also run when
11583 # autoupdate runs m4. It simply calls m4_warning, but
11584 # we need a wrapper so that each warning is emitted only
11585 # once. We break the quoting in m4_warning's argument in
11586 # order to expand this macro's arguments, not AU_DEFUN's.
11587
11588
11589 # Finally, this is the expansion that is picked up by
11590 # autoconf. It tells the user to run autoupdate, and
11591 # then outputs the replacement expansion. We do not care
11592 # about autoupdate's warning because that contains
11593 # information on what to do *after* running autoupdate.
11594
11595
11596
11597
11598
11599 ac_ext=c
11600 ac_cpp='$CPP $CPPFLAGS'
11601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11604
11605 ax_pthread_ok=no
11606
11607 # We used to check for pthread.h first, but this fails if pthread.h
11608 # requires special compiler flags (e.g. on True64 or Sequent).
11609 # It gets checked for in the link test anyway.
11610
11611 # First of all, check if the user has set any of the PTHREAD_LIBS,
11612 # etcetera environment variables, and if threads linking works using
11613 # them:
11614 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
11615 save_CFLAGS="$CFLAGS"
11616 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11617 save_LIBS="$LIBS"
11618 LIBS="$PTHREAD_LIBS $LIBS"
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
11620 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11623
11624 /* Override any GCC internal prototype to avoid an error.
11625 Use char because int might match the return type of a GCC
11626 builtin and then its argument prototype would still apply. */
11627 #ifdef __cplusplus
11628 extern "C"
11629 #endif
11630 char pthread_join ();
11631 int
11632 main ()
11633 {
11634 return pthread_join ();
11635 ;
11636 return 0;
11637 }
11638 _ACEOF
11639 if ac_fn_c_try_link "$LINENO"; then :
11640 ax_pthread_ok=yes
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11645 $as_echo "$ax_pthread_ok" >&6; }
11646 if test x"$ax_pthread_ok" = xno; then
11647 PTHREAD_LIBS=""
11648 PTHREAD_CFLAGS=""
11649 fi
11650 LIBS="$save_LIBS"
11651 CFLAGS="$save_CFLAGS"
11652 fi
11653
11654 # We must check for the threads library under a number of different
11655 # names; the ordering is very important because some systems
11656 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11657 # libraries is broken (non-POSIX).
11658
11659 # Create a list of thread flags to try. Items starting with a "-" are
11660 # C compiler flags, and other items are library names, except for "none"
11661 # which indicates that we try without any flags at all, and "pthread-config"
11662 # which is a program returning the flags for the Pth emulation library.
11663
11664 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11665
11666 # The ordering *is* (sometimes) important. Some notes on the
11667 # individual items follow:
11668
11669 # pthreads: AIX (must check this before -lpthread)
11670 # none: in case threads are in libc; should be tried before -Kthread and
11671 # other compiler flags to prevent continual compiler warnings
11672 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11673 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11674 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11675 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
11676 # -pthreads: Solaris/gcc
11677 # -mthreads: Mingw32/gcc, Lynx/gcc
11678 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11679 # doesn't hurt to check since this sometimes defines pthreads too;
11680 # also defines -D_REENTRANT)
11681 # ... -mt is also the pthreads flag for HP/aCC
11682 # pthread: Linux, etcetera
11683 # --thread-safe: KAI C++
11684 # pthread-config: use pthread-config program (for GNU Pth library)
11685
11686 case "${host_cpu}-${host_os}" in
11687 *solaris*)
11688
11689 # On Solaris (at least, for some versions), libc contains stubbed
11690 # (non-functional) versions of the pthreads routines, so link-based
11691 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
11692 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
11693 # a function called by this macro, so we could check for that, but
11694 # who knows whether they'll stub that too in a future libc.) So,
11695 # we'll just look for -pthreads and -lpthread first:
11696
11697 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
11698 ;;
11699
11700 *-darwin*)
11701 ax_pthread_flags="-pthread $ax_pthread_flags"
11702 ;;
11703 esac
11704
11705 if test x"$ax_pthread_ok" = xno; then
11706 for flag in $ax_pthread_flags; do
11707
11708 case $flag in
11709 none)
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11711 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11712 ;;
11713
11714 -*)
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
11716 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
11717 PTHREAD_CFLAGS="$flag"
11718 ;;
11719
11720 pthread-config)
11721 # Extract the first word of "pthread-config", so it can be a program name with args.
11722 set dummy pthread-config; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if ${ac_cv_prog_ax_pthread_config+:} false; then :
11726 $as_echo_n "(cached) " >&6
11727 else
11728 if test -n "$ax_pthread_config"; then
11729 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
11730 else
11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732 for as_dir in $PATH
11733 do
11734 IFS=$as_save_IFS
11735 test -z "$as_dir" && as_dir=.
11736 for ac_exec_ext in '' $ac_executable_extensions; do
11737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11738 ac_cv_prog_ax_pthread_config="yes"
11739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11740 break 2
11741 fi
11742 done
11743 done
11744 IFS=$as_save_IFS
11745
11746 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
11747 fi
11748 fi
11749 ax_pthread_config=$ac_cv_prog_ax_pthread_config
11750 if test -n "$ax_pthread_config"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11752 $as_echo "$ax_pthread_config" >&6; }
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11756 fi
11757
11758
11759 if test x"$ax_pthread_config" = xno; then continue; fi
11760 PTHREAD_CFLAGS="`pthread-config --cflags`"
11761 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
11762 ;;
11763
11764 *)
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
11766 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
11767 PTHREAD_LIBS="-l$flag"
11768 ;;
11769 esac
11770
11771 save_LIBS="$LIBS"
11772 save_CFLAGS="$CFLAGS"
11773 LIBS="$PTHREAD_LIBS $LIBS"
11774 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11775
11776 # Check for various functions. We must include pthread.h,
11777 # since some functions may be macros. (On the Sequent, we
11778 # need a special flag -Kthread to make this header compile.)
11779 # We check for pthread_join because it is in -lpthread on IRIX
11780 # while pthread_create is in libc. We check for pthread_attr_init
11781 # due to DEC craziness with -lpthreads. We check for
11782 # pthread_cleanup_push because it is one of the few pthread
11783 # functions on Solaris that doesn't have a non-functional libc stub.
11784 # We try pthread_create on general principles.
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 #include <pthread.h>
11788 static void routine(void* a) {a=0;}
11789 static void* start_routine(void* a) {return a;}
11790 int
11791 main ()
11792 {
11793 pthread_t th; pthread_attr_t attr;
11794 pthread_create(&th,0,start_routine,0);
11795 pthread_join(th, 0);
11796 pthread_attr_init(&attr);
11797 pthread_cleanup_push(routine, 0);
11798 pthread_cleanup_pop(0);
11799 ;
11800 return 0;
11801 }
11802 _ACEOF
11803 if ac_fn_c_try_link "$LINENO"; then :
11804 ax_pthread_ok=yes
11805 fi
11806 rm -f core conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11808
11809 LIBS="$save_LIBS"
11810 CFLAGS="$save_CFLAGS"
11811
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11813 $as_echo "$ax_pthread_ok" >&6; }
11814 if test "x$ax_pthread_ok" = xyes; then
11815 break;
11816 fi
11817
11818 PTHREAD_LIBS=""
11819 PTHREAD_CFLAGS=""
11820 done
11821 fi
11822
11823 # Various other checks:
11824 if test "x$ax_pthread_ok" = xyes; then
11825 save_LIBS="$LIBS"
11826 LIBS="$PTHREAD_LIBS $LIBS"
11827 save_CFLAGS="$CFLAGS"
11828 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11829
11830 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11832 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11833 attr_name=unknown
11834 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11837 #include <pthread.h>
11838 int
11839 main ()
11840 {
11841 int attr=$attr; return attr;
11842 ;
11843 return 0;
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_link "$LINENO"; then :
11847 attr_name=$attr; break
11848 fi
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851 done
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
11853 $as_echo "$attr_name" >&6; }
11854 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
11855
11856 cat >>confdefs.h <<_ACEOF
11857 #define PTHREAD_CREATE_JOINABLE $attr_name
11858 _ACEOF
11859
11860 fi
11861
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
11863 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
11864 flag=no
11865 case "${host_cpu}-${host_os}" in
11866 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
11867 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
11868 esac
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
11870 $as_echo "${flag}" >&6; }
11871 if test "x$flag" != xno; then
11872 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
11873 fi
11874
11875 LIBS="$save_LIBS"
11876 CFLAGS="$save_CFLAGS"
11877
11878 # More AIX lossage: must compile with xlc_r or cc_r
11879 if test x"$GCC" != xyes; then
11880 for ac_prog in xlc_r cc_r
11881 do
11882 # Extract the first word of "$ac_prog", so it can be a program name with args.
11883 set dummy $ac_prog; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 if test -n "$PTHREAD_CC"; then
11890 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11899 ac_cv_prog_PTHREAD_CC="$ac_prog"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 break 2
11902 fi
11903 done
11904 done
11905 IFS=$as_save_IFS
11906
11907 fi
11908 fi
11909 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11910 if test -n "$PTHREAD_CC"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11912 $as_echo "$PTHREAD_CC" >&6; }
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 fi
11917
11918
11919 test -n "$PTHREAD_CC" && break
11920 done
11921 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
11922
11923 else
11924 PTHREAD_CC=$CC
11925 fi
11926 else
11927 PTHREAD_CC="$CC"
11928 fi
11929
11930
11931
11932
11933
11934 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11935 if test x"$ax_pthread_ok" = xyes; then
11936
11937 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11938
11939 :
11940 else
11941 ax_pthread_ok=no
11942
11943 fi
11944 ac_ext=c
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950
11951 LIBS="$PTHREAD_LIBS $LIBS"
11952 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11953 CC="$PTHREAD_CC"
11954
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
11956 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
11957 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 ac_check_lib_save_LIBS=$LIBS
11961 LIBS="-lpthread $LIBS"
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char pthread_create ();
11972 int
11973 main ()
11974 {
11975 return pthread_create ();
11976 ;
11977 return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_link "$LINENO"; then :
11981 ac_cv_lib_pthread_pthread_create=yes
11982 else
11983 ac_cv_lib_pthread_pthread_create=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
11990 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
11991 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
11992 cat >>confdefs.h <<_ACEOF
11993 #define HAVE_LIBPTHREAD 1
11994 _ACEOF
11995
11996 LIBS="-lpthread $LIBS"
11997
11998 fi
11999
12000
12001 for ac_header in signal.h
12002 do :
12003 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
12004 if test "x$ac_cv_header_signal_h" = xyes; then :
12005 cat >>confdefs.h <<_ACEOF
12006 #define HAVE_SIGNAL_H 1
12007 _ACEOF
12008
12009 fi
12010
12011 done
12012
12013
12014 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12015 if test "x$ac_cv_type_size_t" = xyes; then :
12016
12017 else
12018
12019 cat >>confdefs.h <<_ACEOF
12020 #define size_t unsigned int
12021 _ACEOF
12022
12023 fi
12024
12025
12026
12027
12028
12029 ac_config_files="$ac_config_files Makefile"
12030
12031 cat >confcache <<\_ACEOF
12032 # This file is a shell script that caches the results of configure
12033 # tests run on this system so they can be shared between configure
12034 # scripts and configure runs, see configure's option --config-cache.
12035 # It is not useful on other systems. If it contains results you don't
12036 # want to keep, you may remove or edit it.
12037 #
12038 # config.status only pays attention to the cache file if you give it
12039 # the --recheck option to rerun configure.
12040 #
12041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12043 # following values.
12044
12045 _ACEOF
12046
12047 # The following way of writing the cache mishandles newlines in values,
12048 # but we know of no workaround that is simple, portable, and efficient.
12049 # So, we kill variables containing newlines.
12050 # Ultrix sh set writes to stderr and can't be redirected directly,
12051 # and sets the high bit in the cache file unless we assign to the vars.
12052 (
12053 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12054 eval ac_val=\$$ac_var
12055 case $ac_val in #(
12056 *${as_nl}*)
12057 case $ac_var in #(
12058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12060 esac
12061 case $ac_var in #(
12062 _ | IFS | as_nl) ;; #(
12063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12064 *) { eval $ac_var=; unset $ac_var;} ;;
12065 esac ;;
12066 esac
12067 done
12068
12069 (set) 2>&1 |
12070 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12071 *${as_nl}ac_space=\ *)
12072 # `set' does not quote correctly, so add quotes: double-quote
12073 # substitution turns \\\\ into \\, and sed turns \\ into \.
12074 sed -n \
12075 "s/'/'\\\\''/g;
12076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12077 ;; #(
12078 *)
12079 # `set' quotes correctly as required by POSIX, so do not add quotes.
12080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12081 ;;
12082 esac |
12083 sort
12084 ) |
12085 sed '
12086 /^ac_cv_env_/b end
12087 t clear
12088 :clear
12089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12090 t end
12091 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12092 :end' >>confcache
12093 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12094 if test -w "$cache_file"; then
12095 if test "x$cache_file" != "x/dev/null"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12097 $as_echo "$as_me: updating cache $cache_file" >&6;}
12098 if test ! -f "$cache_file" || test -h "$cache_file"; then
12099 cat confcache >"$cache_file"
12100 else
12101 case $cache_file in #(
12102 */* | ?:*)
12103 mv -f confcache "$cache_file"$$ &&
12104 mv -f "$cache_file"$$ "$cache_file" ;; #(
12105 *)
12106 mv -f confcache "$cache_file" ;;
12107 esac
12108 fi
12109 fi
12110 else
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12112 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12113 fi
12114 fi
12115 rm -f confcache
12116
12117 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12118 # Let make expand exec_prefix.
12119 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12120
12121 DEFS=-DHAVE_CONFIG_H
12122
12123 ac_libobjs=
12124 ac_ltlibobjs=
12125 U=
12126 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12127 # 1. Remove the extension, and $U if already installed.
12128 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12129 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12130 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12131 # will be set to the directory where LIBOBJS objects are built.
12132 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12133 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12134 done
12135 LIBOBJS=$ac_libobjs
12136
12137 LTLIBOBJS=$ac_ltlibobjs
12138
12139
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12141 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12142 if test -n "$am_sleep_pid"; then
12143 # Hide warnings about reused PIDs.
12144 wait $am_sleep_pid 2>/dev/null
12145 fi
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12147 $as_echo "done" >&6; }
12148 if test -n "$EXEEXT"; then
12149 am__EXEEXT_TRUE=
12150 am__EXEEXT_FALSE='#'
12151 else
12152 am__EXEEXT_TRUE='#'
12153 am__EXEEXT_FALSE=
12154 fi
12155
12156 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12157 as_fn_error $? "conditional \"AMDEP\" was never defined.
12158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12159 fi
12160 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12161 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12163 fi
12164
12165 : "${CONFIG_STATUS=./config.status}"
12166 ac_write_fail=0
12167 ac_clean_files_save=$ac_clean_files
12168 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12170 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12171 as_write_fail=0
12172 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12173 #! $SHELL
12174 # Generated by $as_me.
12175 # Run this file to recreate the current configuration.
12176 # Compiler output produced by configure, useful for debugging
12177 # configure, is in config.log if it exists.
12178
12179 debug=false
12180 ac_cs_recheck=false
12181 ac_cs_silent=false
12182
12183 SHELL=\${CONFIG_SHELL-$SHELL}
12184 export SHELL
12185 _ASEOF
12186 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12187 ## -------------------- ##
12188 ## M4sh Initialization. ##
12189 ## -------------------- ##
12190
12191 # Be more Bourne compatible
12192 DUALCASE=1; export DUALCASE # for MKS sh
12193 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12194 emulate sh
12195 NULLCMD=:
12196 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12197 # is contrary to our usage. Disable this feature.
12198 alias -g '${1+"$@"}'='"$@"'
12199 setopt NO_GLOB_SUBST
12200 else
12201 case `(set -o) 2>/dev/null` in #(
12202 *posix*) :
12203 set -o posix ;; #(
12204 *) :
12205 ;;
12206 esac
12207 fi
12208
12209
12210 as_nl='
12211 '
12212 export as_nl
12213 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12214 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12215 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12216 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12217 # Prefer a ksh shell builtin over an external printf program on Solaris,
12218 # but without wasting forks for bash or zsh.
12219 if test -z "$BASH_VERSION$ZSH_VERSION" \
12220 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12221 as_echo='print -r --'
12222 as_echo_n='print -rn --'
12223 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12224 as_echo='printf %s\n'
12225 as_echo_n='printf %s'
12226 else
12227 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12228 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12229 as_echo_n='/usr/ucb/echo -n'
12230 else
12231 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12232 as_echo_n_body='eval
12233 arg=$1;
12234 case $arg in #(
12235 *"$as_nl"*)
12236 expr "X$arg" : "X\\(.*\\)$as_nl";
12237 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12238 esac;
12239 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12240 '
12241 export as_echo_n_body
12242 as_echo_n='sh -c $as_echo_n_body as_echo'
12243 fi
12244 export as_echo_body
12245 as_echo='sh -c $as_echo_body as_echo'
12246 fi
12247
12248 # The user is always right.
12249 if test "${PATH_SEPARATOR+set}" != set; then
12250 PATH_SEPARATOR=:
12251 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12252 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12253 PATH_SEPARATOR=';'
12254 }
12255 fi
12256
12257
12258 # IFS
12259 # We need space, tab and new line, in precisely that order. Quoting is
12260 # there to prevent editors from complaining about space-tab.
12261 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12262 # splitting by setting IFS to empty value.)
12263 IFS=" "" $as_nl"
12264
12265 # Find who we are. Look in the path if we contain no directory separator.
12266 as_myself=
12267 case $0 in #((
12268 *[\\/]* ) as_myself=$0 ;;
12269 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12271 do
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12275 done
12276 IFS=$as_save_IFS
12277
12278 ;;
12279 esac
12280 # We did not find ourselves, most probably we were run as `sh COMMAND'
12281 # in which case we are not to be found in the path.
12282 if test "x$as_myself" = x; then
12283 as_myself=$0
12284 fi
12285 if test ! -f "$as_myself"; then
12286 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12287 exit 1
12288 fi
12289
12290 # Unset variables that we do not need and which cause bugs (e.g. in
12291 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12292 # suppresses any "Segmentation fault" message there. '((' could
12293 # trigger a bug in pdksh 5.2.14.
12294 for as_var in BASH_ENV ENV MAIL MAILPATH
12295 do eval test x\${$as_var+set} = xset \
12296 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12297 done
12298 PS1='$ '
12299 PS2='> '
12300 PS4='+ '
12301
12302 # NLS nuisances.
12303 LC_ALL=C
12304 export LC_ALL
12305 LANGUAGE=C
12306 export LANGUAGE
12307
12308 # CDPATH.
12309 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12310
12311
12312 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12313 # ----------------------------------------
12314 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12315 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12316 # script with STATUS, using 1 if that was 0.
12317 as_fn_error ()
12318 {
12319 as_status=$1; test $as_status -eq 0 && as_status=1
12320 if test "$4"; then
12321 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12322 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12323 fi
12324 $as_echo "$as_me: error: $2" >&2
12325 as_fn_exit $as_status
12326 } # as_fn_error
12327
12328
12329 # as_fn_set_status STATUS
12330 # -----------------------
12331 # Set $? to STATUS, without forking.
12332 as_fn_set_status ()
12333 {
12334 return $1
12335 } # as_fn_set_status
12336
12337 # as_fn_exit STATUS
12338 # -----------------
12339 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12340 as_fn_exit ()
12341 {
12342 set +e
12343 as_fn_set_status $1
12344 exit $1
12345 } # as_fn_exit
12346
12347 # as_fn_unset VAR
12348 # ---------------
12349 # Portably unset VAR.
12350 as_fn_unset ()
12351 {
12352 { eval $1=; unset $1;}
12353 }
12354 as_unset=as_fn_unset
12355 # as_fn_append VAR VALUE
12356 # ----------------------
12357 # Append the text in VALUE to the end of the definition contained in VAR. Take
12358 # advantage of any shell optimizations that allow amortized linear growth over
12359 # repeated appends, instead of the typical quadratic growth present in naive
12360 # implementations.
12361 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12362 eval 'as_fn_append ()
12363 {
12364 eval $1+=\$2
12365 }'
12366 else
12367 as_fn_append ()
12368 {
12369 eval $1=\$$1\$2
12370 }
12371 fi # as_fn_append
12372
12373 # as_fn_arith ARG...
12374 # ------------------
12375 # Perform arithmetic evaluation on the ARGs, and store the result in the
12376 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12377 # must be portable across $(()) and expr.
12378 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12379 eval 'as_fn_arith ()
12380 {
12381 as_val=$(( $* ))
12382 }'
12383 else
12384 as_fn_arith ()
12385 {
12386 as_val=`expr "$@" || test $? -eq 1`
12387 }
12388 fi # as_fn_arith
12389
12390
12391 if expr a : '\(a\)' >/dev/null 2>&1 &&
12392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12393 as_expr=expr
12394 else
12395 as_expr=false
12396 fi
12397
12398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12399 as_basename=basename
12400 else
12401 as_basename=false
12402 fi
12403
12404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12405 as_dirname=dirname
12406 else
12407 as_dirname=false
12408 fi
12409
12410 as_me=`$as_basename -- "$0" ||
12411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12412 X"$0" : 'X\(//\)$' \| \
12413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12414 $as_echo X/"$0" |
12415 sed '/^.*\/\([^/][^/]*\)\/*$/{
12416 s//\1/
12417 q
12418 }
12419 /^X\/\(\/\/\)$/{
12420 s//\1/
12421 q
12422 }
12423 /^X\/\(\/\).*/{
12424 s//\1/
12425 q
12426 }
12427 s/.*/./; q'`
12428
12429 # Avoid depending upon Character Ranges.
12430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12433 as_cr_digits='0123456789'
12434 as_cr_alnum=$as_cr_Letters$as_cr_digits
12435
12436 ECHO_C= ECHO_N= ECHO_T=
12437 case `echo -n x` in #(((((
12438 -n*)
12439 case `echo 'xy\c'` in
12440 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12441 xy) ECHO_C='\c';;
12442 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12443 ECHO_T=' ';;
12444 esac;;
12445 *)
12446 ECHO_N='-n';;
12447 esac
12448
12449 rm -f conf$$ conf$$.exe conf$$.file
12450 if test -d conf$$.dir; then
12451 rm -f conf$$.dir/conf$$.file
12452 else
12453 rm -f conf$$.dir
12454 mkdir conf$$.dir 2>/dev/null
12455 fi
12456 if (echo >conf$$.file) 2>/dev/null; then
12457 if ln -s conf$$.file conf$$ 2>/dev/null; then
12458 as_ln_s='ln -s'
12459 # ... but there are two gotchas:
12460 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12461 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12462 # In both cases, we have to default to `cp -pR'.
12463 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12464 as_ln_s='cp -pR'
12465 elif ln conf$$.file conf$$ 2>/dev/null; then
12466 as_ln_s=ln
12467 else
12468 as_ln_s='cp -pR'
12469 fi
12470 else
12471 as_ln_s='cp -pR'
12472 fi
12473 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12474 rmdir conf$$.dir 2>/dev/null
12475
12476
12477 # as_fn_mkdir_p
12478 # -------------
12479 # Create "$as_dir" as a directory, including parents if necessary.
12480 as_fn_mkdir_p ()
12481 {
12482
12483 case $as_dir in #(
12484 -*) as_dir=./$as_dir;;
12485 esac
12486 test -d "$as_dir" || eval $as_mkdir_p || {
12487 as_dirs=
12488 while :; do
12489 case $as_dir in #(
12490 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12491 *) as_qdir=$as_dir;;
12492 esac
12493 as_dirs="'$as_qdir' $as_dirs"
12494 as_dir=`$as_dirname -- "$as_dir" ||
12495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12496 X"$as_dir" : 'X\(//\)[^/]' \| \
12497 X"$as_dir" : 'X\(//\)$' \| \
12498 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12499 $as_echo X"$as_dir" |
12500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12501 s//\1/
12502 q
12503 }
12504 /^X\(\/\/\)[^/].*/{
12505 s//\1/
12506 q
12507 }
12508 /^X\(\/\/\)$/{
12509 s//\1/
12510 q
12511 }
12512 /^X\(\/\).*/{
12513 s//\1/
12514 q
12515 }
12516 s/.*/./; q'`
12517 test -d "$as_dir" && break
12518 done
12519 test -z "$as_dirs" || eval "mkdir $as_dirs"
12520 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12521
12522
12523 } # as_fn_mkdir_p
12524 if mkdir -p . 2>/dev/null; then
12525 as_mkdir_p='mkdir -p "$as_dir"'
12526 else
12527 test -d ./-p && rmdir ./-p
12528 as_mkdir_p=false
12529 fi
12530
12531
12532 # as_fn_executable_p FILE
12533 # -----------------------
12534 # Test if FILE is an executable regular file.
12535 as_fn_executable_p ()
12536 {
12537 test -f "$1" && test -x "$1"
12538 } # as_fn_executable_p
12539 as_test_x='test -x'
12540 as_executable_p=as_fn_executable_p
12541
12542 # Sed expression to map a string onto a valid CPP name.
12543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12544
12545 # Sed expression to map a string onto a valid variable name.
12546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12547
12548
12549 exec 6>&1
12550 ## ----------------------------------- ##
12551 ## Main body of $CONFIG_STATUS script. ##
12552 ## ----------------------------------- ##
12553 _ASEOF
12554 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12555
12556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12557 # Save the log message, to keep $0 and so on meaningful, and to
12558 # report actual input values of CONFIG_FILES etc. instead of their
12559 # values after options handling.
12560 ac_log="
12561 This file was extended by region-bounded dynamic allocator $as_me 0.0, which was
12562 generated by GNU Autoconf 2.69. Invocation command line was
12563
12564 CONFIG_FILES = $CONFIG_FILES
12565 CONFIG_HEADERS = $CONFIG_HEADERS
12566 CONFIG_LINKS = $CONFIG_LINKS
12567 CONFIG_COMMANDS = $CONFIG_COMMANDS
12568 $ $0 $@
12569
12570 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12571 "
12572
12573 _ACEOF
12574
12575 case $ac_config_files in *"
12576 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12577 esac
12578
12579 case $ac_config_headers in *"
12580 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12581 esac
12582
12583
12584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12585 # Files that config.status was made for.
12586 config_files="$ac_config_files"
12587 config_headers="$ac_config_headers"
12588 config_commands="$ac_config_commands"
12589
12590 _ACEOF
12591
12592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12593 ac_cs_usage="\
12594 \`$as_me' instantiates files and other configuration actions
12595 from templates according to the current configuration. Unless the files
12596 and actions are specified as TAGs, all are instantiated by default.
12597
12598 Usage: $0 [OPTION]... [TAG]...
12599
12600 -h, --help print this help, then exit
12601 -V, --version print version number and configuration settings, then exit
12602 --config print configuration, then exit
12603 -q, --quiet, --silent
12604 do not print progress messages
12605 -d, --debug don't remove temporary files
12606 --recheck update $as_me by reconfiguring in the same conditions
12607 --file=FILE[:TEMPLATE]
12608 instantiate the configuration file FILE
12609 --header=FILE[:TEMPLATE]
12610 instantiate the configuration header FILE
12611
12612 Configuration files:
12613 $config_files
12614
12615 Configuration headers:
12616 $config_headers
12617
12618 Configuration commands:
12619 $config_commands
12620
12621 Report bugs to <Justin Wind <justin.wind@gmail.com>>."
12622
12623 _ACEOF
12624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12625 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12626 ac_cs_version="\\
12627 region-bounded dynamic allocator config.status 0.0
12628 configured by $0, generated by GNU Autoconf 2.69,
12629 with options \\"\$ac_cs_config\\"
12630
12631 Copyright (C) 2012 Free Software Foundation, Inc.
12632 This config.status script is free software; the Free Software Foundation
12633 gives unlimited permission to copy, distribute and modify it."
12634
12635 ac_pwd='$ac_pwd'
12636 srcdir='$srcdir'
12637 INSTALL='$INSTALL'
12638 MKDIR_P='$MKDIR_P'
12639 AWK='$AWK'
12640 test -n "\$AWK" || AWK=awk
12641 _ACEOF
12642
12643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12644 # The default lists apply if the user does not specify any file.
12645 ac_need_defaults=:
12646 while test $# != 0
12647 do
12648 case $1 in
12649 --*=?*)
12650 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12651 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12652 ac_shift=:
12653 ;;
12654 --*=)
12655 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12656 ac_optarg=
12657 ac_shift=:
12658 ;;
12659 *)
12660 ac_option=$1
12661 ac_optarg=$2
12662 ac_shift=shift
12663 ;;
12664 esac
12665
12666 case $ac_option in
12667 # Handling of the options.
12668 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12669 ac_cs_recheck=: ;;
12670 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12671 $as_echo "$ac_cs_version"; exit ;;
12672 --config | --confi | --conf | --con | --co | --c )
12673 $as_echo "$ac_cs_config"; exit ;;
12674 --debug | --debu | --deb | --de | --d | -d )
12675 debug=: ;;
12676 --file | --fil | --fi | --f )
12677 $ac_shift
12678 case $ac_optarg in
12679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12680 '') as_fn_error $? "missing file argument" ;;
12681 esac
12682 as_fn_append CONFIG_FILES " '$ac_optarg'"
12683 ac_need_defaults=false;;
12684 --header | --heade | --head | --hea )
12685 $ac_shift
12686 case $ac_optarg in
12687 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12688 esac
12689 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12690 ac_need_defaults=false;;
12691 --he | --h)
12692 # Conflict between --help and --header
12693 as_fn_error $? "ambiguous option: \`$1'
12694 Try \`$0 --help' for more information.";;
12695 --help | --hel | -h )
12696 $as_echo "$ac_cs_usage"; exit ;;
12697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12698 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12699 ac_cs_silent=: ;;
12700
12701 # This is an error.
12702 -*) as_fn_error $? "unrecognized option: \`$1'
12703 Try \`$0 --help' for more information." ;;
12704
12705 *) as_fn_append ac_config_targets " $1"
12706 ac_need_defaults=false ;;
12707
12708 esac
12709 shift
12710 done
12711
12712 ac_configure_extra_args=
12713
12714 if $ac_cs_silent; then
12715 exec 6>/dev/null
12716 ac_configure_extra_args="$ac_configure_extra_args --silent"
12717 fi
12718
12719 _ACEOF
12720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12721 if \$ac_cs_recheck; then
12722 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12723 shift
12724 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12725 CONFIG_SHELL='$SHELL'
12726 export CONFIG_SHELL
12727 exec "\$@"
12728 fi
12729
12730 _ACEOF
12731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12732 exec 5>>config.log
12733 {
12734 echo
12735 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12736 ## Running $as_me. ##
12737 _ASBOX
12738 $as_echo "$ac_log"
12739 } >&5
12740
12741 _ACEOF
12742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743 #
12744 # INIT-COMMANDS
12745 #
12746 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12747
12748
12749 # The HP-UX ksh and POSIX shell print the target directory to stdout
12750 # if CDPATH is set.
12751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12752
12753 sed_quote_subst='$sed_quote_subst'
12754 double_quote_subst='$double_quote_subst'
12755 delay_variable_subst='$delay_variable_subst'
12756 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12757 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12758 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12759 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12760 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12761 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12762 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12763 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12764 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12765 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12766 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12767 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12768 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12769 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12770 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12771 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12772 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12773 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12774 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12775 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12776 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12777 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12778 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12779 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12780 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12781 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12782 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12783 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12784 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12785 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12786 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12787 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12788 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12789 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12790 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12791 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12792 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12793 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12794 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12795 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12796 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12797 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12798 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12799 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12800 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12801 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12802 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12803 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12804 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12805 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12806 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12807 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12808 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12809 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12810 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12811 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"`'
12812 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12813 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12814 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12815 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12816 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12817 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12818 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12819 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12820 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12821 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12822 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12823 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12824 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12825 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12826 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12827 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12828 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12829 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12830 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12831 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12832 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12833 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12834 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12835 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12836 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12837 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12838 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12839 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12840 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12841 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12842 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12843 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12844 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12845 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12846 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12847 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12848 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12849 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12850 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12851 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12852 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12853 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12854 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12855 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12856 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12857 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12858 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12859 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12860 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12861 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12862 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12863 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12864 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12865 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12866 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12867 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12868 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12869 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12870 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12871 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12872 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12873 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12874 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12875 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12876 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12877 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12878 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12879 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12880 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12881 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12882 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12883 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12884 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12885 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12886
12887 LTCC='$LTCC'
12888 LTCFLAGS='$LTCFLAGS'
12889 compiler='$compiler_DEFAULT'
12890
12891 # A function that is used when there is no print builtin or printf.
12892 func_fallback_echo ()
12893 {
12894 eval 'cat <<_LTECHO_EOF
12895 \$1
12896 _LTECHO_EOF'
12897 }
12898
12899 # Quote evaled strings.
12900 for var in SHELL \
12901 ECHO \
12902 SED \
12903 GREP \
12904 EGREP \
12905 FGREP \
12906 LD \
12907 NM \
12908 LN_S \
12909 lt_SP2NL \
12910 lt_NL2SP \
12911 reload_flag \
12912 OBJDUMP \
12913 deplibs_check_method \
12914 file_magic_cmd \
12915 file_magic_glob \
12916 want_nocaseglob \
12917 DLLTOOL \
12918 sharedlib_from_linklib_cmd \
12919 AR \
12920 AR_FLAGS \
12921 archiver_list_spec \
12922 STRIP \
12923 RANLIB \
12924 CC \
12925 CFLAGS \
12926 compiler \
12927 lt_cv_sys_global_symbol_pipe \
12928 lt_cv_sys_global_symbol_to_cdecl \
12929 lt_cv_sys_global_symbol_to_c_name_address \
12930 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12931 nm_file_list_spec \
12932 lt_prog_compiler_no_builtin_flag \
12933 lt_prog_compiler_pic \
12934 lt_prog_compiler_wl \
12935 lt_prog_compiler_static \
12936 lt_cv_prog_compiler_c_o \
12937 need_locks \
12938 MANIFEST_TOOL \
12939 DSYMUTIL \
12940 NMEDIT \
12941 LIPO \
12942 OTOOL \
12943 OTOOL64 \
12944 shrext_cmds \
12945 export_dynamic_flag_spec \
12946 whole_archive_flag_spec \
12947 compiler_needs_object \
12948 with_gnu_ld \
12949 allow_undefined_flag \
12950 no_undefined_flag \
12951 hardcode_libdir_flag_spec \
12952 hardcode_libdir_flag_spec_ld \
12953 hardcode_libdir_separator \
12954 exclude_expsyms \
12955 include_expsyms \
12956 file_list_spec \
12957 variables_saved_for_relink \
12958 libname_spec \
12959 library_names_spec \
12960 soname_spec \
12961 install_override_mode \
12962 finish_eval \
12963 old_striplib \
12964 striplib; do
12965 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12966 *[\\\\\\\`\\"\\\$]*)
12967 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12968 ;;
12969 *)
12970 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12971 ;;
12972 esac
12973 done
12974
12975 # Double-quote double-evaled strings.
12976 for var in reload_cmds \
12977 old_postinstall_cmds \
12978 old_postuninstall_cmds \
12979 old_archive_cmds \
12980 extract_expsyms_cmds \
12981 old_archive_from_new_cmds \
12982 old_archive_from_expsyms_cmds \
12983 archive_cmds \
12984 archive_expsym_cmds \
12985 module_cmds \
12986 module_expsym_cmds \
12987 export_symbols_cmds \
12988 prelink_cmds \
12989 postlink_cmds \
12990 postinstall_cmds \
12991 postuninstall_cmds \
12992 finish_cmds \
12993 sys_lib_search_path_spec \
12994 sys_lib_dlsearch_path_spec; do
12995 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12996 *[\\\\\\\`\\"\\\$]*)
12997 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12998 ;;
12999 *)
13000 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13001 ;;
13002 esac
13003 done
13004
13005 ac_aux_dir='$ac_aux_dir'
13006 xsi_shell='$xsi_shell'
13007 lt_shell_append='$lt_shell_append'
13008
13009 # See if we are running on zsh, and set the options which allow our
13010 # commands through without removal of \ escapes INIT.
13011 if test -n "\${ZSH_VERSION+set}" ; then
13012 setopt NO_GLOB_SUBST
13013 fi
13014
13015
13016 PACKAGE='$PACKAGE'
13017 VERSION='$VERSION'
13018 TIMESTAMP='$TIMESTAMP'
13019 RM='$RM'
13020 ofile='$ofile'
13021
13022
13023
13024
13025 _ACEOF
13026
13027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13028
13029 # Handling of arguments.
13030 for ac_config_target in $ac_config_targets
13031 do
13032 case $ac_config_target in
13033 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13034 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13035 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13036 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13037
13038 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13039 esac
13040 done
13041
13042
13043 # If the user did not use the arguments to specify the items to instantiate,
13044 # then the envvar interface is used. Set only those that are not.
13045 # We use the long form for the default assignment because of an extremely
13046 # bizarre bug on SunOS 4.1.3.
13047 if $ac_need_defaults; then
13048 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13049 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13050 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13051 fi
13052
13053 # Have a temporary directory for convenience. Make it in the build tree
13054 # simply because there is no reason against having it here, and in addition,
13055 # creating and moving files from /tmp can sometimes cause problems.
13056 # Hook for its removal unless debugging.
13057 # Note that there is a small window in which the directory will not be cleaned:
13058 # after its creation but before its name has been assigned to `$tmp'.
13059 $debug ||
13060 {
13061 tmp= ac_tmp=
13062 trap 'exit_status=$?
13063 : "${ac_tmp:=$tmp}"
13064 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13065 ' 0
13066 trap 'as_fn_exit 1' 1 2 13 15
13067 }
13068 # Create a (secure) tmp directory for tmp files.
13069
13070 {
13071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13072 test -d "$tmp"
13073 } ||
13074 {
13075 tmp=./conf$$-$RANDOM
13076 (umask 077 && mkdir "$tmp")
13077 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13078 ac_tmp=$tmp
13079
13080 # Set up the scripts for CONFIG_FILES section.
13081 # No need to generate them if there are no CONFIG_FILES.
13082 # This happens for instance with `./config.status config.h'.
13083 if test -n "$CONFIG_FILES"; then
13084
13085
13086 ac_cr=`echo X | tr X '\015'`
13087 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13088 # But we know of no other shell where ac_cr would be empty at this
13089 # point, so we can use a bashism as a fallback.
13090 if test "x$ac_cr" = x; then
13091 eval ac_cr=\$\'\\r\'
13092 fi
13093 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13094 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13095 ac_cs_awk_cr='\\r'
13096 else
13097 ac_cs_awk_cr=$ac_cr
13098 fi
13099
13100 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13101 _ACEOF
13102
13103
13104 {
13105 echo "cat >conf$$subs.awk <<_ACEOF" &&
13106 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13107 echo "_ACEOF"
13108 } >conf$$subs.sh ||
13109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13110 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13111 ac_delim='%!_!# '
13112 for ac_last_try in false false false false false :; do
13113 . ./conf$$subs.sh ||
13114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13115
13116 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13117 if test $ac_delim_n = $ac_delim_num; then
13118 break
13119 elif $ac_last_try; then
13120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13121 else
13122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13123 fi
13124 done
13125 rm -f conf$$subs.sh
13126
13127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13128 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13129 _ACEOF
13130 sed -n '
13131 h
13132 s/^/S["/; s/!.*/"]=/
13133 p
13134 g
13135 s/^[^!]*!//
13136 :repl
13137 t repl
13138 s/'"$ac_delim"'$//
13139 t delim
13140 :nl
13141 h
13142 s/\(.\{148\}\)..*/\1/
13143 t more1
13144 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13145 p
13146 n
13147 b repl
13148 :more1
13149 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13150 p
13151 g
13152 s/.\{148\}//
13153 t nl
13154 :delim
13155 h
13156 s/\(.\{148\}\)..*/\1/
13157 t more2
13158 s/["\\]/\\&/g; s/^/"/; s/$/"/
13159 p
13160 b
13161 :more2
13162 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13163 p
13164 g
13165 s/.\{148\}//
13166 t delim
13167 ' <conf$$subs.awk | sed '
13168 /^[^""]/{
13169 N
13170 s/\n//
13171 }
13172 ' >>$CONFIG_STATUS || ac_write_fail=1
13173 rm -f conf$$subs.awk
13174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13175 _ACAWK
13176 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13177 for (key in S) S_is_set[key] = 1
13178 FS = "\a"
13179
13180 }
13181 {
13182 line = $ 0
13183 nfields = split(line, field, "@")
13184 substed = 0
13185 len = length(field[1])
13186 for (i = 2; i < nfields; i++) {
13187 key = field[i]
13188 keylen = length(key)
13189 if (S_is_set[key]) {
13190 value = S[key]
13191 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13192 len += length(value) + length(field[++i])
13193 substed = 1
13194 } else
13195 len += 1 + keylen
13196 }
13197
13198 print line
13199 }
13200
13201 _ACAWK
13202 _ACEOF
13203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13204 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13205 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13206 else
13207 cat
13208 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13209 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13210 _ACEOF
13211
13212 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13213 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13214 # trailing colons and then remove the whole line if VPATH becomes empty
13215 # (actually we leave an empty line to preserve line numbers).
13216 if test "x$srcdir" = x.; then
13217 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13218 h
13219 s///
13220 s/^/:/
13221 s/[ ]*$/:/
13222 s/:\$(srcdir):/:/g
13223 s/:\${srcdir}:/:/g
13224 s/:@srcdir@:/:/g
13225 s/^:*//
13226 s/:*$//
13227 x
13228 s/\(=[ ]*\).*/\1/
13229 G
13230 s/\n//
13231 s/^[^=]*=[ ]*$//
13232 }'
13233 fi
13234
13235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13236 fi # test -n "$CONFIG_FILES"
13237
13238 # Set up the scripts for CONFIG_HEADERS section.
13239 # No need to generate them if there are no CONFIG_HEADERS.
13240 # This happens for instance with `./config.status Makefile'.
13241 if test -n "$CONFIG_HEADERS"; then
13242 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13243 BEGIN {
13244 _ACEOF
13245
13246 # Transform confdefs.h into an awk script `defines.awk', embedded as
13247 # here-document in config.status, that substitutes the proper values into
13248 # config.h.in to produce config.h.
13249
13250 # Create a delimiter string that does not exist in confdefs.h, to ease
13251 # handling of long lines.
13252 ac_delim='%!_!# '
13253 for ac_last_try in false false :; do
13254 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13255 if test -z "$ac_tt"; then
13256 break
13257 elif $ac_last_try; then
13258 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13259 else
13260 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13261 fi
13262 done
13263
13264 # For the awk script, D is an array of macro values keyed by name,
13265 # likewise P contains macro parameters if any. Preserve backslash
13266 # newline sequences.
13267
13268 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13269 sed -n '
13270 s/.\{148\}/&'"$ac_delim"'/g
13271 t rset
13272 :rset
13273 s/^[ ]*#[ ]*define[ ][ ]*/ /
13274 t def
13275 d
13276 :def
13277 s/\\$//
13278 t bsnl
13279 s/["\\]/\\&/g
13280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13281 D["\1"]=" \3"/p
13282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13283 d
13284 :bsnl
13285 s/["\\]/\\&/g
13286 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13287 D["\1"]=" \3\\\\\\n"\\/p
13288 t cont
13289 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13290 t cont
13291 d
13292 :cont
13293 n
13294 s/.\{148\}/&'"$ac_delim"'/g
13295 t clear
13296 :clear
13297 s/\\$//
13298 t bsnlc
13299 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13300 d
13301 :bsnlc
13302 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13303 b cont
13304 ' <confdefs.h | sed '
13305 s/'"$ac_delim"'/"\\\
13306 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13307
13308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13309 for (key in D) D_is_set[key] = 1
13310 FS = "\a"
13311 }
13312 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13313 line = \$ 0
13314 split(line, arg, " ")
13315 if (arg[1] == "#") {
13316 defundef = arg[2]
13317 mac1 = arg[3]
13318 } else {
13319 defundef = substr(arg[1], 2)
13320 mac1 = arg[2]
13321 }
13322 split(mac1, mac2, "(") #)
13323 macro = mac2[1]
13324 prefix = substr(line, 1, index(line, defundef) - 1)
13325 if (D_is_set[macro]) {
13326 # Preserve the white space surrounding the "#".
13327 print prefix "define", macro P[macro] D[macro]
13328 next
13329 } else {
13330 # Replace #undef with comments. This is necessary, for example,
13331 # in the case of _POSIX_SOURCE, which is predefined and required
13332 # on some systems where configure will not decide to define it.
13333 if (defundef == "undef") {
13334 print "/*", prefix defundef, macro, "*/"
13335 next
13336 }
13337 }
13338 }
13339 { print }
13340 _ACAWK
13341 _ACEOF
13342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13343 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13344 fi # test -n "$CONFIG_HEADERS"
13345
13346
13347 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13348 shift
13349 for ac_tag
13350 do
13351 case $ac_tag in
13352 :[FHLC]) ac_mode=$ac_tag; continue;;
13353 esac
13354 case $ac_mode$ac_tag in
13355 :[FHL]*:*);;
13356 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13357 :[FH]-) ac_tag=-:-;;
13358 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13359 esac
13360 ac_save_IFS=$IFS
13361 IFS=:
13362 set x $ac_tag
13363 IFS=$ac_save_IFS
13364 shift
13365 ac_file=$1
13366 shift
13367
13368 case $ac_mode in
13369 :L) ac_source=$1;;
13370 :[FH])
13371 ac_file_inputs=
13372 for ac_f
13373 do
13374 case $ac_f in
13375 -) ac_f="$ac_tmp/stdin";;
13376 *) # Look for the file first in the build tree, then in the source tree
13377 # (if the path is not absolute). The absolute path cannot be DOS-style,
13378 # because $ac_f cannot contain `:'.
13379 test -f "$ac_f" ||
13380 case $ac_f in
13381 [\\/$]*) false;;
13382 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13383 esac ||
13384 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13385 esac
13386 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13387 as_fn_append ac_file_inputs " '$ac_f'"
13388 done
13389
13390 # Let's still pretend it is `configure' which instantiates (i.e., don't
13391 # use $as_me), people would be surprised to read:
13392 # /* config.h. Generated by config.status. */
13393 configure_input='Generated from '`
13394 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13395 `' by configure.'
13396 if test x"$ac_file" != x-; then
13397 configure_input="$ac_file. $configure_input"
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13399 $as_echo "$as_me: creating $ac_file" >&6;}
13400 fi
13401 # Neutralize special characters interpreted by sed in replacement strings.
13402 case $configure_input in #(
13403 *\&* | *\|* | *\\* )
13404 ac_sed_conf_input=`$as_echo "$configure_input" |
13405 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13406 *) ac_sed_conf_input=$configure_input;;
13407 esac
13408
13409 case $ac_tag in
13410 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13412 esac
13413 ;;
13414 esac
13415
13416 ac_dir=`$as_dirname -- "$ac_file" ||
13417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13418 X"$ac_file" : 'X\(//\)[^/]' \| \
13419 X"$ac_file" : 'X\(//\)$' \| \
13420 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13421 $as_echo X"$ac_file" |
13422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13423 s//\1/
13424 q
13425 }
13426 /^X\(\/\/\)[^/].*/{
13427 s//\1/
13428 q
13429 }
13430 /^X\(\/\/\)$/{
13431 s//\1/
13432 q
13433 }
13434 /^X\(\/\).*/{
13435 s//\1/
13436 q
13437 }
13438 s/.*/./; q'`
13439 as_dir="$ac_dir"; as_fn_mkdir_p
13440 ac_builddir=.
13441
13442 case "$ac_dir" in
13443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13444 *)
13445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13446 # A ".." for each directory in $ac_dir_suffix.
13447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13448 case $ac_top_builddir_sub in
13449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13451 esac ;;
13452 esac
13453 ac_abs_top_builddir=$ac_pwd
13454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13455 # for backward compatibility:
13456 ac_top_builddir=$ac_top_build_prefix
13457
13458 case $srcdir in
13459 .) # We are building in place.
13460 ac_srcdir=.
13461 ac_top_srcdir=$ac_top_builddir_sub
13462 ac_abs_top_srcdir=$ac_pwd ;;
13463 [\\/]* | ?:[\\/]* ) # Absolute name.
13464 ac_srcdir=$srcdir$ac_dir_suffix;
13465 ac_top_srcdir=$srcdir
13466 ac_abs_top_srcdir=$srcdir ;;
13467 *) # Relative name.
13468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13469 ac_top_srcdir=$ac_top_build_prefix$srcdir
13470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13471 esac
13472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13473
13474
13475 case $ac_mode in
13476 :F)
13477 #
13478 # CONFIG_FILE
13479 #
13480
13481 case $INSTALL in
13482 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13483 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13484 esac
13485 ac_MKDIR_P=$MKDIR_P
13486 case $MKDIR_P in
13487 [\\/$]* | ?:[\\/]* ) ;;
13488 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13489 esac
13490 _ACEOF
13491
13492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13493 # If the template does not know about datarootdir, expand it.
13494 # FIXME: This hack should be removed a few years after 2.60.
13495 ac_datarootdir_hack=; ac_datarootdir_seen=
13496 ac_sed_dataroot='
13497 /datarootdir/ {
13498 p
13499 q
13500 }
13501 /@datadir@/p
13502 /@docdir@/p
13503 /@infodir@/p
13504 /@localedir@/p
13505 /@mandir@/p'
13506 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13507 *datarootdir*) ac_datarootdir_seen=yes;;
13508 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13510 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13511 _ACEOF
13512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13513 ac_datarootdir_hack='
13514 s&@datadir@&$datadir&g
13515 s&@docdir@&$docdir&g
13516 s&@infodir@&$infodir&g
13517 s&@localedir@&$localedir&g
13518 s&@mandir@&$mandir&g
13519 s&\\\${datarootdir}&$datarootdir&g' ;;
13520 esac
13521 _ACEOF
13522
13523 # Neutralize VPATH when `$srcdir' = `.'.
13524 # Shell code in configure.ac might set extrasub.
13525 # FIXME: do we really want to maintain this feature?
13526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13527 ac_sed_extra="$ac_vpsub
13528 $extrasub
13529 _ACEOF
13530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13531 :t
13532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13533 s|@configure_input@|$ac_sed_conf_input|;t t
13534 s&@top_builddir@&$ac_top_builddir_sub&;t t
13535 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13536 s&@srcdir@&$ac_srcdir&;t t
13537 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13538 s&@top_srcdir@&$ac_top_srcdir&;t t
13539 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13540 s&@builddir@&$ac_builddir&;t t
13541 s&@abs_builddir@&$ac_abs_builddir&;t t
13542 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13543 s&@INSTALL@&$ac_INSTALL&;t t
13544 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13545 $ac_datarootdir_hack
13546 "
13547 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13548 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13549
13550 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13551 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13552 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13553 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13555 which seems to be undefined. Please make sure it is defined" >&5
13556 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13557 which seems to be undefined. Please make sure it is defined" >&2;}
13558
13559 rm -f "$ac_tmp/stdin"
13560 case $ac_file in
13561 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13562 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13563 esac \
13564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13565 ;;
13566 :H)
13567 #
13568 # CONFIG_HEADER
13569 #
13570 if test x"$ac_file" != x-; then
13571 {
13572 $as_echo "/* $configure_input */" \
13573 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13574 } >"$ac_tmp/config.h" \
13575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13576 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13578 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13579 else
13580 rm -f "$ac_file"
13581 mv "$ac_tmp/config.h" "$ac_file" \
13582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13583 fi
13584 else
13585 $as_echo "/* $configure_input */" \
13586 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13587 || as_fn_error $? "could not create -" "$LINENO" 5
13588 fi
13589 # Compute "$ac_file"'s index in $config_headers.
13590 _am_arg="$ac_file"
13591 _am_stamp_count=1
13592 for _am_header in $config_headers :; do
13593 case $_am_header in
13594 $_am_arg | $_am_arg:* )
13595 break ;;
13596 * )
13597 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13598 esac
13599 done
13600 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13601 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13602 X"$_am_arg" : 'X\(//\)[^/]' \| \
13603 X"$_am_arg" : 'X\(//\)$' \| \
13604 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13605 $as_echo X"$_am_arg" |
13606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13607 s//\1/
13608 q
13609 }
13610 /^X\(\/\/\)[^/].*/{
13611 s//\1/
13612 q
13613 }
13614 /^X\(\/\/\)$/{
13615 s//\1/
13616 q
13617 }
13618 /^X\(\/\).*/{
13619 s//\1/
13620 q
13621 }
13622 s/.*/./; q'`/stamp-h$_am_stamp_count
13623 ;;
13624
13625 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13626 $as_echo "$as_me: executing $ac_file commands" >&6;}
13627 ;;
13628 esac
13629
13630
13631 case $ac_file$ac_mode in
13632 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13633 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13634 # are listed without --file. Let's play safe and only enable the eval
13635 # if we detect the quoting.
13636 case $CONFIG_FILES in
13637 *\'*) eval set x "$CONFIG_FILES" ;;
13638 *) set x $CONFIG_FILES ;;
13639 esac
13640 shift
13641 for mf
13642 do
13643 # Strip MF so we end up with the name of the file.
13644 mf=`echo "$mf" | sed -e 's/:.*$//'`
13645 # Check whether this is an Automake generated Makefile or not.
13646 # We used to match only the files named 'Makefile.in', but
13647 # some people rename them; so instead we look at the file content.
13648 # Grep'ing the first line is not enough: some people post-process
13649 # each Makefile.in and add a new line on top of each file to say so.
13650 # Grep'ing the whole file is not good either: AIX grep has a line
13651 # limit of 2048, but all sed's we know have understand at least 4000.
13652 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13653 dirpart=`$as_dirname -- "$mf" ||
13654 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13655 X"$mf" : 'X\(//\)[^/]' \| \
13656 X"$mf" : 'X\(//\)$' \| \
13657 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13658 $as_echo X"$mf" |
13659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13660 s//\1/
13661 q
13662 }
13663 /^X\(\/\/\)[^/].*/{
13664 s//\1/
13665 q
13666 }
13667 /^X\(\/\/\)$/{
13668 s//\1/
13669 q
13670 }
13671 /^X\(\/\).*/{
13672 s//\1/
13673 q
13674 }
13675 s/.*/./; q'`
13676 else
13677 continue
13678 fi
13679 # Extract the definition of DEPDIR, am__include, and am__quote
13680 # from the Makefile without running 'make'.
13681 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13682 test -z "$DEPDIR" && continue
13683 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13684 test -z "am__include" && continue
13685 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13686 # Find all dependency output files, they are included files with
13687 # $(DEPDIR) in their names. We invoke sed twice because it is the
13688 # simplest approach to changing $(DEPDIR) to its actual value in the
13689 # expansion.
13690 for file in `sed -n "
13691 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13692 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13693 # Make sure the directory exists.
13694 test -f "$dirpart/$file" && continue
13695 fdir=`$as_dirname -- "$file" ||
13696 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13697 X"$file" : 'X\(//\)[^/]' \| \
13698 X"$file" : 'X\(//\)$' \| \
13699 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13700 $as_echo X"$file" |
13701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13702 s//\1/
13703 q
13704 }
13705 /^X\(\/\/\)[^/].*/{
13706 s//\1/
13707 q
13708 }
13709 /^X\(\/\/\)$/{
13710 s//\1/
13711 q
13712 }
13713 /^X\(\/\).*/{
13714 s//\1/
13715 q
13716 }
13717 s/.*/./; q'`
13718 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13719 # echo "creating $dirpart/$file"
13720 echo '# dummy' > "$dirpart/$file"
13721 done
13722 done
13723 }
13724 ;;
13725 "libtool":C)
13726
13727 # See if we are running on zsh, and set the options which allow our
13728 # commands through without removal of \ escapes.
13729 if test -n "${ZSH_VERSION+set}" ; then
13730 setopt NO_GLOB_SUBST
13731 fi
13732
13733 cfgfile="${ofile}T"
13734 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13735 $RM "$cfgfile"
13736
13737 cat <<_LT_EOF >> "$cfgfile"
13738 #! $SHELL
13739
13740 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13741 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13743 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13744 #
13745 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13746 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13747 # Inc.
13748 # Written by Gordon Matzigkeit, 1996
13749 #
13750 # This file is part of GNU Libtool.
13751 #
13752 # GNU Libtool is free software; you can redistribute it and/or
13753 # modify it under the terms of the GNU General Public License as
13754 # published by the Free Software Foundation; either version 2 of
13755 # the License, or (at your option) any later version.
13756 #
13757 # As a special exception to the GNU General Public License,
13758 # if you distribute this file as part of a program or library that
13759 # is built using GNU Libtool, you may include this file under the
13760 # same distribution terms that you use for the rest of that program.
13761 #
13762 # GNU Libtool is distributed in the hope that it will be useful,
13763 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13764 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13765 # GNU General Public License for more details.
13766 #
13767 # You should have received a copy of the GNU General Public License
13768 # along with GNU Libtool; see the file COPYING. If not, a copy
13769 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13770 # obtained by writing to the Free Software Foundation, Inc.,
13771 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13772
13773
13774 # The names of the tagged configurations supported by this script.
13775 available_tags=""
13776
13777 # ### BEGIN LIBTOOL CONFIG
13778
13779 # Which release of libtool.m4 was used?
13780 macro_version=$macro_version
13781 macro_revision=$macro_revision
13782
13783 # Whether or not to build shared libraries.
13784 build_libtool_libs=$enable_shared
13785
13786 # Whether or not to build static libraries.
13787 build_old_libs=$enable_static
13788
13789 # What type of objects to build.
13790 pic_mode=$pic_mode
13791
13792 # Whether or not to optimize for fast installation.
13793 fast_install=$enable_fast_install
13794
13795 # Shell to use when invoking shell scripts.
13796 SHELL=$lt_SHELL
13797
13798 # An echo program that protects backslashes.
13799 ECHO=$lt_ECHO
13800
13801 # The host system.
13802 host_alias=$host_alias
13803 host=$host
13804 host_os=$host_os
13805
13806 # The build system.
13807 build_alias=$build_alias
13808 build=$build
13809 build_os=$build_os
13810
13811 # A sed program that does not truncate output.
13812 SED=$lt_SED
13813
13814 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13815 Xsed="\$SED -e 1s/^X//"
13816
13817 # A grep program that handles long lines.
13818 GREP=$lt_GREP
13819
13820 # An ERE matcher.
13821 EGREP=$lt_EGREP
13822
13823 # A literal string matcher.
13824 FGREP=$lt_FGREP
13825
13826 # A BSD- or MS-compatible name lister.
13827 NM=$lt_NM
13828
13829 # Whether we need soft or hard links.
13830 LN_S=$lt_LN_S
13831
13832 # What is the maximum length of a command?
13833 max_cmd_len=$max_cmd_len
13834
13835 # Object file suffix (normally "o").
13836 objext=$ac_objext
13837
13838 # Executable file suffix (normally "").
13839 exeext=$exeext
13840
13841 # whether the shell understands "unset".
13842 lt_unset=$lt_unset
13843
13844 # turn spaces into newlines.
13845 SP2NL=$lt_lt_SP2NL
13846
13847 # turn newlines into spaces.
13848 NL2SP=$lt_lt_NL2SP
13849
13850 # convert \$build file names to \$host format.
13851 to_host_file_cmd=$lt_cv_to_host_file_cmd
13852
13853 # convert \$build files to toolchain format.
13854 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13855
13856 # An object symbol dumper.
13857 OBJDUMP=$lt_OBJDUMP
13858
13859 # Method to check whether dependent libraries are shared objects.
13860 deplibs_check_method=$lt_deplibs_check_method
13861
13862 # Command to use when deplibs_check_method = "file_magic".
13863 file_magic_cmd=$lt_file_magic_cmd
13864
13865 # How to find potential files when deplibs_check_method = "file_magic".
13866 file_magic_glob=$lt_file_magic_glob
13867
13868 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13869 want_nocaseglob=$lt_want_nocaseglob
13870
13871 # DLL creation program.
13872 DLLTOOL=$lt_DLLTOOL
13873
13874 # Command to associate shared and link libraries.
13875 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13876
13877 # The archiver.
13878 AR=$lt_AR
13879
13880 # Flags to create an archive.
13881 AR_FLAGS=$lt_AR_FLAGS
13882
13883 # How to feed a file listing to the archiver.
13884 archiver_list_spec=$lt_archiver_list_spec
13885
13886 # A symbol stripping program.
13887 STRIP=$lt_STRIP
13888
13889 # Commands used to install an old-style archive.
13890 RANLIB=$lt_RANLIB
13891 old_postinstall_cmds=$lt_old_postinstall_cmds
13892 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13893
13894 # Whether to use a lock for old archive extraction.
13895 lock_old_archive_extraction=$lock_old_archive_extraction
13896
13897 # A C compiler.
13898 LTCC=$lt_CC
13899
13900 # LTCC compiler flags.
13901 LTCFLAGS=$lt_CFLAGS
13902
13903 # Take the output of nm and produce a listing of raw symbols and C names.
13904 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13905
13906 # Transform the output of nm in a proper C declaration.
13907 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13908
13909 # Transform the output of nm in a C name address pair.
13910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13911
13912 # Transform the output of nm in a C name address pair when lib prefix is needed.
13913 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13914
13915 # Specify filename containing input files for \$NM.
13916 nm_file_list_spec=$lt_nm_file_list_spec
13917
13918 # The root where to search for dependent libraries,and in which our libraries should be installed.
13919 lt_sysroot=$lt_sysroot
13920
13921 # The name of the directory that contains temporary libtool files.
13922 objdir=$objdir
13923
13924 # Used to examine libraries when file_magic_cmd begins with "file".
13925 MAGIC_CMD=$MAGIC_CMD
13926
13927 # Must we lock files when doing compilation?
13928 need_locks=$lt_need_locks
13929
13930 # Manifest tool.
13931 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13932
13933 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13934 DSYMUTIL=$lt_DSYMUTIL
13935
13936 # Tool to change global to local symbols on Mac OS X.
13937 NMEDIT=$lt_NMEDIT
13938
13939 # Tool to manipulate fat objects and archives on Mac OS X.
13940 LIPO=$lt_LIPO
13941
13942 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13943 OTOOL=$lt_OTOOL
13944
13945 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13946 OTOOL64=$lt_OTOOL64
13947
13948 # Old archive suffix (normally "a").
13949 libext=$libext
13950
13951 # Shared library suffix (normally ".so").
13952 shrext_cmds=$lt_shrext_cmds
13953
13954 # The commands to extract the exported symbol list from a shared archive.
13955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13956
13957 # Variables whose values should be saved in libtool wrapper scripts and
13958 # restored at link time.
13959 variables_saved_for_relink=$lt_variables_saved_for_relink
13960
13961 # Do we need the "lib" prefix for modules?
13962 need_lib_prefix=$need_lib_prefix
13963
13964 # Do we need a version for libraries?
13965 need_version=$need_version
13966
13967 # Library versioning type.
13968 version_type=$version_type
13969
13970 # Shared library runtime path variable.
13971 runpath_var=$runpath_var
13972
13973 # Shared library path variable.
13974 shlibpath_var=$shlibpath_var
13975
13976 # Is shlibpath searched before the hard-coded library search path?
13977 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13978
13979 # Format of library name prefix.
13980 libname_spec=$lt_libname_spec
13981
13982 # List of archive names. First name is the real one, the rest are links.
13983 # The last name is the one that the linker finds with -lNAME
13984 library_names_spec=$lt_library_names_spec
13985
13986 # The coded name of the library, if different from the real name.
13987 soname_spec=$lt_soname_spec
13988
13989 # Permission mode override for installation of shared libraries.
13990 install_override_mode=$lt_install_override_mode
13991
13992 # Command to use after installation of a shared archive.
13993 postinstall_cmds=$lt_postinstall_cmds
13994
13995 # Command to use after uninstallation of a shared archive.
13996 postuninstall_cmds=$lt_postuninstall_cmds
13997
13998 # Commands used to finish a libtool library installation in a directory.
13999 finish_cmds=$lt_finish_cmds
14000
14001 # As "finish_cmds", except a single script fragment to be evaled but
14002 # not shown.
14003 finish_eval=$lt_finish_eval
14004
14005 # Whether we should hardcode library paths into libraries.
14006 hardcode_into_libs=$hardcode_into_libs
14007
14008 # Compile-time system search path for libraries.
14009 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14010
14011 # Run-time system search path for libraries.
14012 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14013
14014 # Whether dlopen is supported.
14015 dlopen_support=$enable_dlopen
14016
14017 # Whether dlopen of programs is supported.
14018 dlopen_self=$enable_dlopen_self
14019
14020 # Whether dlopen of statically linked programs is supported.
14021 dlopen_self_static=$enable_dlopen_self_static
14022
14023 # Commands to strip libraries.
14024 old_striplib=$lt_old_striplib
14025 striplib=$lt_striplib
14026
14027
14028 # The linker used to build libraries.
14029 LD=$lt_LD
14030
14031 # How to create reloadable object files.
14032 reload_flag=$lt_reload_flag
14033 reload_cmds=$lt_reload_cmds
14034
14035 # Commands used to build an old-style archive.
14036 old_archive_cmds=$lt_old_archive_cmds
14037
14038 # A language specific compiler.
14039 CC=$lt_compiler
14040
14041 # Is the compiler the GNU compiler?
14042 with_gcc=$GCC
14043
14044 # Compiler flag to turn off builtin functions.
14045 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14046
14047 # Additional compiler flags for building library objects.
14048 pic_flag=$lt_lt_prog_compiler_pic
14049
14050 # How to pass a linker flag through the compiler.
14051 wl=$lt_lt_prog_compiler_wl
14052
14053 # Compiler flag to prevent dynamic linking.
14054 link_static_flag=$lt_lt_prog_compiler_static
14055
14056 # Does compiler simultaneously support -c and -o options?
14057 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14058
14059 # Whether or not to add -lc for building shared libraries.
14060 build_libtool_need_lc=$archive_cmds_need_lc
14061
14062 # Whether or not to disallow shared libs when runtime libs are static.
14063 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14064
14065 # Compiler flag to allow reflexive dlopens.
14066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14067
14068 # Compiler flag to generate shared objects directly from archives.
14069 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14070
14071 # Whether the compiler copes with passing no objects directly.
14072 compiler_needs_object=$lt_compiler_needs_object
14073
14074 # Create an old-style archive from a shared archive.
14075 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14076
14077 # Create a temporary old-style archive to link instead of a shared archive.
14078 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14079
14080 # Commands used to build a shared archive.
14081 archive_cmds=$lt_archive_cmds
14082 archive_expsym_cmds=$lt_archive_expsym_cmds
14083
14084 # Commands used to build a loadable module if different from building
14085 # a shared archive.
14086 module_cmds=$lt_module_cmds
14087 module_expsym_cmds=$lt_module_expsym_cmds
14088
14089 # Whether we are building with GNU ld or not.
14090 with_gnu_ld=$lt_with_gnu_ld
14091
14092 # Flag that allows shared libraries with undefined symbols to be built.
14093 allow_undefined_flag=$lt_allow_undefined_flag
14094
14095 # Flag that enforces no undefined symbols.
14096 no_undefined_flag=$lt_no_undefined_flag
14097
14098 # Flag to hardcode \$libdir into a binary during linking.
14099 # This must work even if \$libdir does not exist
14100 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14101
14102 # If ld is used when linking, flag to hardcode \$libdir into a binary
14103 # during linking. This must work even if \$libdir does not exist.
14104 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14105
14106 # Whether we need a single "-rpath" flag with a separated argument.
14107 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14108
14109 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14110 # DIR into the resulting binary.
14111 hardcode_direct=$hardcode_direct
14112
14113 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14114 # DIR into the resulting binary and the resulting library dependency is
14115 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14116 # library is relocated.
14117 hardcode_direct_absolute=$hardcode_direct_absolute
14118
14119 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14120 # into the resulting binary.
14121 hardcode_minus_L=$hardcode_minus_L
14122
14123 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14124 # into the resulting binary.
14125 hardcode_shlibpath_var=$hardcode_shlibpath_var
14126
14127 # Set to "yes" if building a shared library automatically hardcodes DIR
14128 # into the library and all subsequent libraries and executables linked
14129 # against it.
14130 hardcode_automatic=$hardcode_automatic
14131
14132 # Set to yes if linker adds runtime paths of dependent libraries
14133 # to runtime path list.
14134 inherit_rpath=$inherit_rpath
14135
14136 # Whether libtool must link a program against all its dependency libraries.
14137 link_all_deplibs=$link_all_deplibs
14138
14139 # Set to "yes" if exported symbols are required.
14140 always_export_symbols=$always_export_symbols
14141
14142 # The commands to list exported symbols.
14143 export_symbols_cmds=$lt_export_symbols_cmds
14144
14145 # Symbols that should not be listed in the preloaded symbols.
14146 exclude_expsyms=$lt_exclude_expsyms
14147
14148 # Symbols that must always be exported.
14149 include_expsyms=$lt_include_expsyms
14150
14151 # Commands necessary for linking programs (against libraries) with templates.
14152 prelink_cmds=$lt_prelink_cmds
14153
14154 # Commands necessary for finishing linking programs.
14155 postlink_cmds=$lt_postlink_cmds
14156
14157 # Specify filename containing input files.
14158 file_list_spec=$lt_file_list_spec
14159
14160 # How to hardcode a shared library path into an executable.
14161 hardcode_action=$hardcode_action
14162
14163 # ### END LIBTOOL CONFIG
14164
14165 _LT_EOF
14166
14167 case $host_os in
14168 aix3*)
14169 cat <<\_LT_EOF >> "$cfgfile"
14170 # AIX sometimes has problems with the GCC collect2 program. For some
14171 # reason, if we set the COLLECT_NAMES environment variable, the problems
14172 # vanish in a puff of smoke.
14173 if test "X${COLLECT_NAMES+set}" != Xset; then
14174 COLLECT_NAMES=
14175 export COLLECT_NAMES
14176 fi
14177 _LT_EOF
14178 ;;
14179 esac
14180
14181
14182 ltmain="$ac_aux_dir/ltmain.sh"
14183
14184
14185 # We use sed instead of cat because bash on DJGPP gets confused if
14186 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14187 # text mode, it properly converts lines to CR/LF. This bash problem
14188 # is reportedly fixed, but why not run on old versions too?
14189 sed '$q' "$ltmain" >> "$cfgfile" \
14190 || (rm -f "$cfgfile"; exit 1)
14191
14192 if test x"$xsi_shell" = xyes; then
14193 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14194 func_dirname ()\
14195 {\
14196 \ case ${1} in\
14197 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14198 \ * ) func_dirname_result="${3}" ;;\
14199 \ esac\
14200 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14201 && mv -f "$cfgfile.tmp" "$cfgfile" \
14202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14203 test 0 -eq $? || _lt_function_replace_fail=:
14204
14205
14206 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14207 func_basename ()\
14208 {\
14209 \ func_basename_result="${1##*/}"\
14210 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14211 && mv -f "$cfgfile.tmp" "$cfgfile" \
14212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14213 test 0 -eq $? || _lt_function_replace_fail=:
14214
14215
14216 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14217 func_dirname_and_basename ()\
14218 {\
14219 \ case ${1} in\
14220 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14221 \ * ) func_dirname_result="${3}" ;;\
14222 \ esac\
14223 \ func_basename_result="${1##*/}"\
14224 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14225 && mv -f "$cfgfile.tmp" "$cfgfile" \
14226 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14227 test 0 -eq $? || _lt_function_replace_fail=:
14228
14229
14230 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14231 func_stripname ()\
14232 {\
14233 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14234 \ # positional parameters, so assign one to ordinary parameter first.\
14235 \ func_stripname_result=${3}\
14236 \ func_stripname_result=${func_stripname_result#"${1}"}\
14237 \ func_stripname_result=${func_stripname_result%"${2}"}\
14238 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14239 && mv -f "$cfgfile.tmp" "$cfgfile" \
14240 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14241 test 0 -eq $? || _lt_function_replace_fail=:
14242
14243
14244 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14245 func_split_long_opt ()\
14246 {\
14247 \ func_split_long_opt_name=${1%%=*}\
14248 \ func_split_long_opt_arg=${1#*=}\
14249 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14250 && mv -f "$cfgfile.tmp" "$cfgfile" \
14251 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14252 test 0 -eq $? || _lt_function_replace_fail=:
14253
14254
14255 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14256 func_split_short_opt ()\
14257 {\
14258 \ func_split_short_opt_arg=${1#??}\
14259 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14260 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14261 && mv -f "$cfgfile.tmp" "$cfgfile" \
14262 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14263 test 0 -eq $? || _lt_function_replace_fail=:
14264
14265
14266 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14267 func_lo2o ()\
14268 {\
14269 \ case ${1} in\
14270 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14271 \ *) func_lo2o_result=${1} ;;\
14272 \ esac\
14273 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14274 && mv -f "$cfgfile.tmp" "$cfgfile" \
14275 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14276 test 0 -eq $? || _lt_function_replace_fail=:
14277
14278
14279 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14280 func_xform ()\
14281 {\
14282 func_xform_result=${1%.*}.lo\
14283 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14284 && mv -f "$cfgfile.tmp" "$cfgfile" \
14285 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14286 test 0 -eq $? || _lt_function_replace_fail=:
14287
14288
14289 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14290 func_arith ()\
14291 {\
14292 func_arith_result=$(( $* ))\
14293 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14294 && mv -f "$cfgfile.tmp" "$cfgfile" \
14295 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14296 test 0 -eq $? || _lt_function_replace_fail=:
14297
14298
14299 sed -e '/^func_len ()$/,/^} # func_len /c\
14300 func_len ()\
14301 {\
14302 func_len_result=${#1}\
14303 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14304 && mv -f "$cfgfile.tmp" "$cfgfile" \
14305 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14306 test 0 -eq $? || _lt_function_replace_fail=:
14307
14308 fi
14309
14310 if test x"$lt_shell_append" = xyes; then
14311 sed -e '/^func_append ()$/,/^} # func_append /c\
14312 func_append ()\
14313 {\
14314 eval "${1}+=\\${2}"\
14315 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14316 && mv -f "$cfgfile.tmp" "$cfgfile" \
14317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14318 test 0 -eq $? || _lt_function_replace_fail=:
14319
14320
14321 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14322 func_append_quoted ()\
14323 {\
14324 \ func_quote_for_eval "${2}"\
14325 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14326 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14327 && mv -f "$cfgfile.tmp" "$cfgfile" \
14328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14329 test 0 -eq $? || _lt_function_replace_fail=:
14330
14331
14332 # Save a `func_append' function call where possible by direct use of '+='
14333 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14334 && mv -f "$cfgfile.tmp" "$cfgfile" \
14335 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14336 test 0 -eq $? || _lt_function_replace_fail=:
14337 else
14338 # Save a `func_append' function call even when '+=' is not available
14339 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14340 && mv -f "$cfgfile.tmp" "$cfgfile" \
14341 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14342 test 0 -eq $? || _lt_function_replace_fail=:
14343 fi
14344
14345 if test x"$_lt_function_replace_fail" = x":"; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14347 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14348 fi
14349
14350
14351 mv -f "$cfgfile" "$ofile" ||
14352 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14353 chmod +x "$ofile"
14354
14355 ;;
14356
14357 esac
14358 done # for ac_tag
14359
14360
14361 as_fn_exit 0
14362 _ACEOF
14363 ac_clean_files=$ac_clean_files_save
14364
14365 test $ac_write_fail = 0 ||
14366 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14367
14368
14369 # configure is writing to config.log, and then calls config.status.
14370 # config.status does its own redirection, appending to config.log.
14371 # Unfortunately, on DOS this fails, as config.log is still kept open
14372 # by configure, so config.status won't be able to write to it; its
14373 # output is simply discarded. So we exec the FD to /dev/null,
14374 # effectively closing config.log, so it can be properly (re)opened and
14375 # appended to by config.status. When coming back to configure, we
14376 # need to make the FD available again.
14377 if test "$no_create" != yes; then
14378 ac_cs_success=:
14379 ac_config_status_args=
14380 test "$silent" = yes &&
14381 ac_config_status_args="$ac_config_status_args --quiet"
14382 exec 5>/dev/null
14383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14384 exec 5>>config.log
14385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14386 # would make configure fail if this is the last instruction.
14387 $ac_cs_success || as_fn_exit 1
14388 fi
14389 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14391 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14392 fi
14393