]> git.proxmox.com Git - ceph.git/blob - ceph/src/erasure-code/jerasure/jerasure/configure
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / erasure-code / jerasure / jerasure / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Jerasure 2.0.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
188 fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209 fi
210 fi
211 done;;
212 esac
213 as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251 fi
252 exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270 { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279 return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350 else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367 else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477 *)
478 ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='Jerasure'
569 PACKAGE_TARNAME='jerasure'
570 PACKAGE_VERSION='2.0'
571 PACKAGE_STRING='Jerasure 2.0'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 # include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 # include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 ac_subst_vars='am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 LIBOBJS
615 SIMD_FLAGS
616 CPP
617 OTOOL64
618 OTOOL
619 LIPO
620 NMEDIT
621 DSYMUTIL
622 MANIFEST_TOOL
623 RANLIB
624 ac_ct_AR
625 AR
626 DLLTOOL
627 OBJDUMP
628 LN_S
629 NM
630 ac_ct_DUMPBIN
631 DUMPBIN
632 LD
633 FGREP
634 EGREP
635 GREP
636 SED
637 OBJEXT
638 EXEEXT
639 ac_ct_CC
640 CPPFLAGS
641 LDFLAGS
642 CFLAGS
643 CC
644 host_os
645 host_vendor
646 host_cpu
647 host
648 build_os
649 build_vendor
650 build_cpu
651 build
652 LIBTOOL
653 am__untar
654 am__tar
655 AMTAR
656 am__leading_dot
657 SET_MAKE
658 AWK
659 mkdir_p
660 MKDIR_P
661 INSTALL_STRIP_PROGRAM
662 STRIP
663 install_sh
664 MAKEINFO
665 AUTOHEADER
666 AUTOMAKE
667 AUTOCONF
668 ACLOCAL
669 VERSION
670 PACKAGE
671 CYGPATH_W
672 am__isrc
673 INSTALL_DATA
674 INSTALL_SCRIPT
675 INSTALL_PROGRAM
676 target_alias
677 host_alias
678 build_alias
679 LIBS
680 ECHO_T
681 ECHO_N
682 ECHO_C
683 DEFS
684 mandir
685 localedir
686 libdir
687 psdir
688 pdfdir
689 dvidir
690 htmldir
691 infodir
692 docdir
693 oldincludedir
694 includedir
695 localstatedir
696 sharedstatedir
697 sysconfdir
698 datadir
699 datarootdir
700 libexecdir
701 sbindir
702 bindir
703 program_transform_name
704 prefix
705 exec_prefix
706 PACKAGE_URL
707 PACKAGE_BUGREPORT
708 PACKAGE_STRING
709 PACKAGE_VERSION
710 PACKAGE_TARNAME
711 PACKAGE_NAME
712 PATH_SEPARATOR
713 SHELL'
714 ac_subst_files=''
715 ac_user_opts='
716 enable_option_checking
717 enable_shared
718 enable_static
719 with_pic
720 enable_fast_install
721 with_gnu_ld
722 with_sysroot
723 enable_libtool_lock
724 '
725 ac_precious_vars='build_alias
726 host_alias
727 target_alias
728 CC
729 CFLAGS
730 LDFLAGS
731 LIBS
732 CPPFLAGS
733 CPP'
734
735
736 # Initialize some variables set by options.
737 ac_init_help=
738 ac_init_version=false
739 ac_unrecognized_opts=
740 ac_unrecognized_sep=
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
757
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
783
784 ac_prev=
785 ac_dashdash=
786 for ac_option
787 do
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
793 fi
794
795 case $ac_option in
796 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *=) ac_optarg= ;;
798 *) ac_optarg=yes ;;
799 esac
800
801 # Accept the important Cygnus configure options, so we can diagnose typos.
802
803 case $ac_dashdash$ac_option in
804 --)
805 ac_dashdash=yes ;;
806
807 -bindir | --bindir | --bindi | --bind | --bin | --bi)
808 ac_prev=bindir ;;
809 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810 bindir=$ac_optarg ;;
811
812 -build | --build | --buil | --bui | --bu)
813 ac_prev=build_alias ;;
814 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815 build_alias=$ac_optarg ;;
816
817 -cache-file | --cache-file | --cache-fil | --cache-fi \
818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819 ac_prev=cache_file ;;
820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822 cache_file=$ac_optarg ;;
823
824 --config-cache | -C)
825 cache_file=config.cache ;;
826
827 -datadir | --datadir | --datadi | --datad)
828 ac_prev=datadir ;;
829 -datadir=* | --datadir=* | --datadi=* | --datad=*)
830 datadir=$ac_optarg ;;
831
832 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
833 | --dataroo | --dataro | --datar)
834 ac_prev=datarootdir ;;
835 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
836 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
837 datarootdir=$ac_optarg ;;
838
839 -disable-* | --disable-*)
840 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843 as_fn_error $? "invalid feature name: $ac_useropt"
844 ac_useropt_orig=$ac_useropt
845 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
846 case $ac_user_opts in
847 *"
848 "enable_$ac_useropt"
849 "*) ;;
850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
851 ac_unrecognized_sep=', ';;
852 esac
853 eval enable_$ac_useropt=no ;;
854
855 -docdir | --docdir | --docdi | --doc | --do)
856 ac_prev=docdir ;;
857 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
858 docdir=$ac_optarg ;;
859
860 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
861 ac_prev=dvidir ;;
862 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
863 dvidir=$ac_optarg ;;
864
865 -enable-* | --enable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error $? "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=\$ac_optarg ;;
880
881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883 | --exec | --exe | --ex)
884 ac_prev=exec_prefix ;;
885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887 | --exec=* | --exe=* | --ex=*)
888 exec_prefix=$ac_optarg ;;
889
890 -gas | --gas | --ga | --g)
891 # Obsolete; use --with-gas.
892 with_gas=yes ;;
893
894 -help | --help | --hel | --he | -h)
895 ac_init_help=long ;;
896 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897 ac_init_help=recursive ;;
898 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899 ac_init_help=short ;;
900
901 -host | --host | --hos | --ho)
902 ac_prev=host_alias ;;
903 -host=* | --host=* | --hos=* | --ho=*)
904 host_alias=$ac_optarg ;;
905
906 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
907 ac_prev=htmldir ;;
908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
909 | --ht=*)
910 htmldir=$ac_optarg ;;
911
912 -includedir | --includedir | --includedi | --included | --include \
913 | --includ | --inclu | --incl | --inc)
914 ac_prev=includedir ;;
915 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916 | --includ=* | --inclu=* | --incl=* | --inc=*)
917 includedir=$ac_optarg ;;
918
919 -infodir | --infodir | --infodi | --infod | --info | --inf)
920 ac_prev=infodir ;;
921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922 infodir=$ac_optarg ;;
923
924 -libdir | --libdir | --libdi | --libd)
925 ac_prev=libdir ;;
926 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 libdir=$ac_optarg ;;
928
929 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930 | --libexe | --libex | --libe)
931 ac_prev=libexecdir ;;
932 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933 | --libexe=* | --libex=* | --libe=*)
934 libexecdir=$ac_optarg ;;
935
936 -localedir | --localedir | --localedi | --localed | --locale)
937 ac_prev=localedir ;;
938 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
939 localedir=$ac_optarg ;;
940
941 -localstatedir | --localstatedir | --localstatedi | --localstated \
942 | --localstate | --localstat | --localsta | --localst | --locals)
943 ac_prev=localstatedir ;;
944 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
945 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946 localstatedir=$ac_optarg ;;
947
948 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
949 ac_prev=mandir ;;
950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951 mandir=$ac_optarg ;;
952
953 -nfp | --nfp | --nf)
954 # Obsolete; use --without-fp.
955 with_fp=no ;;
956
957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958 | --no-cr | --no-c | -n)
959 no_create=yes ;;
960
961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 no_recursion=yes ;;
964
965 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967 | --oldin | --oldi | --old | --ol | --o)
968 ac_prev=oldincludedir ;;
969 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972 oldincludedir=$ac_optarg ;;
973
974 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
975 ac_prev=prefix ;;
976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 prefix=$ac_optarg ;;
978
979 -program-prefix | --program-prefix | --program-prefi | --program-pref \
980 | --program-pre | --program-pr | --program-p)
981 ac_prev=program_prefix ;;
982 -program-prefix=* | --program-prefix=* | --program-prefi=* \
983 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984 program_prefix=$ac_optarg ;;
985
986 -program-suffix | --program-suffix | --program-suffi | --program-suff \
987 | --program-suf | --program-su | --program-s)
988 ac_prev=program_suffix ;;
989 -program-suffix=* | --program-suffix=* | --program-suffi=* \
990 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991 program_suffix=$ac_optarg ;;
992
993 -program-transform-name | --program-transform-name \
994 | --program-transform-nam | --program-transform-na \
995 | --program-transform-n | --program-transform- \
996 | --program-transform | --program-transfor \
997 | --program-transfo | --program-transf \
998 | --program-trans | --program-tran \
999 | --progr-tra | --program-tr | --program-t)
1000 ac_prev=program_transform_name ;;
1001 -program-transform-name=* | --program-transform-name=* \
1002 | --program-transform-nam=* | --program-transform-na=* \
1003 | --program-transform-n=* | --program-transform-=* \
1004 | --program-transform=* | --program-transfor=* \
1005 | --program-transfo=* | --program-transf=* \
1006 | --program-trans=* | --program-tran=* \
1007 | --progr-tra=* | --program-tr=* | --program-t=*)
1008 program_transform_name=$ac_optarg ;;
1009
1010 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1011 ac_prev=pdfdir ;;
1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013 pdfdir=$ac_optarg ;;
1014
1015 -psdir | --psdir | --psdi | --psd | --ps)
1016 ac_prev=psdir ;;
1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 psdir=$ac_optarg ;;
1019
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 silent=yes ;;
1023
1024 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1025 ac_prev=sbindir ;;
1026 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1027 | --sbi=* | --sb=*)
1028 sbindir=$ac_optarg ;;
1029
1030 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032 | --sharedst | --shareds | --shared | --share | --shar \
1033 | --sha | --sh)
1034 ac_prev=sharedstatedir ;;
1035 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1038 | --sha=* | --sh=*)
1039 sharedstatedir=$ac_optarg ;;
1040
1041 -site | --site | --sit)
1042 ac_prev=site ;;
1043 -site=* | --site=* | --sit=*)
1044 site=$ac_optarg ;;
1045
1046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1047 ac_prev=srcdir ;;
1048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1049 srcdir=$ac_optarg ;;
1050
1051 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1052 | --syscon | --sysco | --sysc | --sys | --sy)
1053 ac_prev=sysconfdir ;;
1054 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1055 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1056 sysconfdir=$ac_optarg ;;
1057
1058 -target | --target | --targe | --targ | --tar | --ta | --t)
1059 ac_prev=target_alias ;;
1060 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1061 target_alias=$ac_optarg ;;
1062
1063 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064 verbose=yes ;;
1065
1066 -version | --version | --versio | --versi | --vers | -V)
1067 ac_init_version=: ;;
1068
1069 -with-* | --with-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid package name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "with_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval with_$ac_useropt=\$ac_optarg ;;
1084
1085 -without-* | --without-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=no ;;
1100
1101 --x)
1102 # Obsolete; use --with-x.
1103 with_x=yes ;;
1104
1105 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1106 | --x-incl | --x-inc | --x-in | --x-i)
1107 ac_prev=x_includes ;;
1108 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1109 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1110 x_includes=$ac_optarg ;;
1111
1112 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1113 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1114 ac_prev=x_libraries ;;
1115 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1116 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1117 x_libraries=$ac_optarg ;;
1118
1119 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1120 Try \`$0 --help' for more information"
1121 ;;
1122
1123 *=*)
1124 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1125 # Reject names that are not valid shell variable names.
1126 case $ac_envvar in #(
1127 '' | [0-9]* | *[!_$as_cr_alnum]* )
1128 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1129 esac
1130 eval $ac_envvar=\$ac_optarg
1131 export $ac_envvar ;;
1132
1133 *)
1134 # FIXME: should be removed in autoconf 3.0.
1135 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1136 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1137 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1138 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1139 ;;
1140
1141 esac
1142 done
1143
1144 if test -n "$ac_prev"; then
1145 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1146 as_fn_error $? "missing argument to $ac_option"
1147 fi
1148
1149 if test -n "$ac_unrecognized_opts"; then
1150 case $enable_option_checking in
1151 no) ;;
1152 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1153 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1154 esac
1155 fi
1156
1157 # Check all directory arguments for consistency.
1158 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1159 datadir sysconfdir sharedstatedir localstatedir includedir \
1160 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1161 libdir localedir mandir
1162 do
1163 eval ac_val=\$$ac_var
1164 # Remove trailing slashes.
1165 case $ac_val in
1166 */ )
1167 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1168 eval $ac_var=\$ac_val;;
1169 esac
1170 # Be sure to have absolute directory names.
1171 case $ac_val in
1172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 esac
1175 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1176 done
1177
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1181 build=$build_alias
1182 host=$host_alias
1183 target=$target_alias
1184
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used" >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1193 fi
1194 fi
1195
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198
1199 test "$silent" = yes && exec 6>/dev/null
1200
1201
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 as_fn_error $? "working directory cannot be determined"
1206 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207 as_fn_error $? "pwd does not report name of working directory"
1208
1209
1210 # Find the source files, if location was not specified.
1211 if test -z "$srcdir"; then
1212 ac_srcdir_defaulted=yes
1213 # Try the directory containing this script, then the parent directory.
1214 ac_confdir=`$as_dirname -- "$as_myself" ||
1215 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216 X"$as_myself" : 'X\(//\)[^/]' \| \
1217 X"$as_myself" : 'X\(//\)$' \| \
1218 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1219 $as_echo X"$as_myself" |
1220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\/\)[^/].*/{
1225 s//\1/
1226 q
1227 }
1228 /^X\(\/\/\)$/{
1229 s//\1/
1230 q
1231 }
1232 /^X\(\/\).*/{
1233 s//\1/
1234 q
1235 }
1236 s/.*/./; q'`
1237 srcdir=$ac_confdir
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 srcdir=..
1240 fi
1241 else
1242 ac_srcdir_defaulted=no
1243 fi
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1247 fi
1248 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249 ac_abs_confdir=`(
1250 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1251 pwd)`
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254 srcdir=.
1255 fi
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1259 case $srcdir in
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 esac
1262 for ac_var in $ac_precious_vars; do
1263 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_env_${ac_var}_value=\$${ac_var}
1265 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267 done
1268
1269 #
1270 # Report the --help message.
1271 #
1272 if test "$ac_init_help" = "long"; then
1273 # Omit some internal or obsolete options to make the list less imposing.
1274 # This message is too long to be a string in the A/UX 3.1 sh.
1275 cat <<_ACEOF
1276 \`configure' configures Jerasure 2.0 to adapt to many kinds of systems.
1277
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1279
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE. See below for descriptions of some of the useful variables.
1282
1283 Defaults for the options are specified in brackets.
1284
1285 Configuration:
1286 -h, --help display this help and exit
1287 --help=short display options specific to this package
1288 --help=recursive display the short help of all the included packages
1289 -V, --version display version information and exit
1290 -q, --quiet, --silent do not print \`checking ...' messages
1291 --cache-file=FILE cache test results in FILE [disabled]
1292 -C, --config-cache alias for \`--cache-file=config.cache'
1293 -n, --no-create do not create output files
1294 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295
1296 Installation directories:
1297 --prefix=PREFIX install architecture-independent files in PREFIX
1298 [$ac_default_prefix]
1299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1300 [PREFIX]
1301
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1306
1307 For better control, use the options below.
1308
1309 Fine tuning of the installation directories:
1310 --bindir=DIR user executables [EPREFIX/bin]
1311 --sbindir=DIR system admin executables [EPREFIX/sbin]
1312 --libexecdir=DIR program executables [EPREFIX/libexec]
1313 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1316 --libdir=DIR object code libraries [EPREFIX/lib]
1317 --includedir=DIR C header files [PREFIX/include]
1318 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1319 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1320 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1321 --infodir=DIR info documentation [DATAROOTDIR/info]
1322 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1323 --mandir=DIR man documentation [DATAROOTDIR/man]
1324 --docdir=DIR documentation root [DATAROOTDIR/doc/jerasure]
1325 --htmldir=DIR html documentation [DOCDIR]
1326 --dvidir=DIR dvi documentation [DOCDIR]
1327 --pdfdir=DIR pdf documentation [DOCDIR]
1328 --psdir=DIR ps documentation [DOCDIR]
1329 _ACEOF
1330
1331 cat <<\_ACEOF
1332
1333 Program names:
1334 --program-prefix=PREFIX prepend PREFIX to installed program names
1335 --program-suffix=SUFFIX append SUFFIX to installed program names
1336 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1337
1338 System types:
1339 --build=BUILD configure for building on BUILD [guessed]
1340 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1341 _ACEOF
1342 fi
1343
1344 if test -n "$ac_init_help"; then
1345 case $ac_init_help in
1346 short | recursive ) echo "Configuration of Jerasure 2.0:";;
1347 esac
1348 cat <<\_ACEOF
1349
1350 Optional Features:
1351 --disable-option-checking ignore unrecognized --enable/--with options
1352 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1353 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1354 --enable-shared[=PKGS] build shared libraries [default=yes]
1355 --enable-static[=PKGS] build static libraries [default=yes]
1356 --enable-fast-install[=PKGS]
1357 optimize for fast installation [default=yes]
1358 --disable-libtool-lock avoid locking (might break parallel builds)
1359
1360 Optional Packages:
1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1363 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1364 both]
1365 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1366 --with-sysroot=DIR Search for dependent libraries within DIR
1367 (or the compiler's sysroot if not specified).
1368
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1378
1379 Use these variables to override the choices made by `configure' or to help
1380 it to find libraries and programs with nonstandard names/locations.
1381
1382 Report bugs to the package provider.
1383 _ACEOF
1384 ac_status=$?
1385 fi
1386
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" ||
1391 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1392 continue
1393 ac_builddir=.
1394
1395 case "$ac_dir" in
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 *)
1398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405 esac
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1410
1411 case $srcdir in
1412 .) # We are building in place.
1413 ac_srcdir=.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 esac
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1435 else
1436 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1439 done
1440 fi
1441
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1444 cat <<\_ACEOF
1445 Jerasure configure 2.0
1446 generated by GNU Autoconf 2.68
1447
1448 Copyright (C) 2010 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1451 _ACEOF
1452 exit
1453 fi
1454
1455 ## ------------------------ ##
1456 ## Autoconf initialization. ##
1457 ## ------------------------ ##
1458
1459 # ac_fn_c_try_compile LINENO
1460 # --------------------------
1461 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1462 ac_fn_c_try_compile ()
1463 {
1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465 rm -f conftest.$ac_objext
1466 if { { ac_try="$ac_compile"
1467 case "(($ac_try" in
1468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1469 *) ac_try_echo=$ac_try;;
1470 esac
1471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1472 $as_echo "$ac_try_echo"; } >&5
1473 (eval "$ac_compile") 2>conftest.err
1474 ac_status=$?
1475 if test -s conftest.err; then
1476 grep -v '^ *+' conftest.err >conftest.er1
1477 cat conftest.er1 >&5
1478 mv -f conftest.er1 conftest.err
1479 fi
1480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1481 test $ac_status = 0; } && {
1482 test -z "$ac_c_werror_flag" ||
1483 test ! -s conftest.err
1484 } && test -s conftest.$ac_objext; then :
1485 ac_retval=0
1486 else
1487 $as_echo "$as_me: failed program was:" >&5
1488 sed 's/^/| /' conftest.$ac_ext >&5
1489
1490 ac_retval=1
1491 fi
1492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1493 as_fn_set_status $ac_retval
1494
1495 } # ac_fn_c_try_compile
1496
1497 # ac_fn_c_try_link LINENO
1498 # -----------------------
1499 # Try to link conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_link ()
1501 {
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext conftest$ac_exeext
1504 if { { ac_try="$ac_link"
1505 case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508 esac
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_link") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1517 fi
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest$ac_exeext && {
1523 test "$cross_compiling" = yes ||
1524 $as_test_x conftest$ac_exeext
1525 }; then :
1526 ac_retval=0
1527 else
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532 fi
1533 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1534 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1535 # interfere with the next link command; also delete a directory that is
1536 # left behind by Apple's compiler. We do this before executing the actions.
1537 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status $ac_retval
1540
1541 } # ac_fn_c_try_link
1542
1543 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1544 # -------------------------------------------------------
1545 # Tests whether HEADER exists and can be compiled using the include files in
1546 # INCLUDES, setting the cache variable VAR accordingly.
1547 ac_fn_c_check_header_compile ()
1548 {
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1551 $as_echo_n "checking for $2... " >&6; }
1552 if eval \${$3+:} false; then :
1553 $as_echo_n "(cached) " >&6
1554 else
1555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1556 /* end confdefs.h. */
1557 $4
1558 #include <$2>
1559 _ACEOF
1560 if ac_fn_c_try_compile "$LINENO"; then :
1561 eval "$3=yes"
1562 else
1563 eval "$3=no"
1564 fi
1565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1566 fi
1567 eval ac_res=\$$3
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1569 $as_echo "$ac_res" >&6; }
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571
1572 } # ac_fn_c_check_header_compile
1573
1574 # ac_fn_c_try_cpp LINENO
1575 # ----------------------
1576 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_cpp ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if { { ac_try="$ac_cpp conftest.$ac_ext"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } > conftest.i && {
1596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 }; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_cpp
1610
1611 # ac_fn_c_try_run LINENO
1612 # ----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1614 # that executables *can* be run.
1615 ac_fn_c_try_run ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_link"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>&5
1626 ac_status=$?
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1629 { { case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_try") 2>&5
1636 ac_status=$?
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; }; }; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: program exited with status $ac_status" >&5
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=$ac_status
1646 fi
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_run
1652
1653 # ac_fn_c_check_func LINENO FUNC VAR
1654 # ----------------------------------
1655 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1656 ac_fn_c_check_func ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1663 else
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1666 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1668 #define $2 innocuous_$2
1669
1670 /* System header to define __stub macros and hopefully few prototypes,
1671 which can conflict with char $2 (); below.
1672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1673 <limits.h> exists even on freestanding compilers. */
1674
1675 #ifdef __STDC__
1676 # include <limits.h>
1677 #else
1678 # include <assert.h>
1679 #endif
1680
1681 #undef $2
1682
1683 /* Override any GCC internal prototype to avoid an error.
1684 Use char because int might match the return type of a GCC
1685 builtin and then its argument prototype would still apply. */
1686 #ifdef __cplusplus
1687 extern "C"
1688 #endif
1689 char $2 ();
1690 /* The GNU C library defines this for functions which it implements
1691 to always fail with ENOSYS. Some functions are actually named
1692 something starting with __ and the normal name is an alias. */
1693 #if defined __stub_$2 || defined __stub___$2
1694 choke me
1695 #endif
1696
1697 int
1698 main ()
1699 {
1700 return $2 ();
1701 ;
1702 return 0;
1703 }
1704 _ACEOF
1705 if ac_fn_c_try_link "$LINENO"; then :
1706 eval "$3=yes"
1707 else
1708 eval "$3=no"
1709 fi
1710 rm -f core conftest.err conftest.$ac_objext \
1711 conftest$ac_exeext conftest.$ac_ext
1712 fi
1713 eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718 } # ac_fn_c_check_func
1719
1720 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723 # the include files in INCLUDES and setting the cache variable VAR
1724 # accordingly.
1725 ac_fn_c_check_header_mongrel ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if eval \${$3+:} false; then :
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1733 fi
1734 eval ac_res=\$$3
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 else
1738 # Is the header compilable?
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740 $as_echo_n "checking $2 usability... " >&6; }
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 $4
1744 #include <$2>
1745 _ACEOF
1746 if ac_fn_c_try_compile "$LINENO"; then :
1747 ac_header_compiler=yes
1748 else
1749 ac_header_compiler=no
1750 fi
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753 $as_echo "$ac_header_compiler" >&6; }
1754
1755 # Is the header present?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757 $as_echo_n "checking $2 presence... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_cpp "$LINENO"; then :
1763 ac_header_preproc=yes
1764 else
1765 ac_header_preproc=no
1766 fi
1767 rm -f conftest.err conftest.i conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769 $as_echo "$ac_header_preproc" >&6; }
1770
1771 # So? What about this header?
1772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1773 yes:no: )
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1778 ;;
1779 no:yes:* )
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1783 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1787 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ;;
1791 esac
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796 else
1797 eval "$3=\$ac_header_compiler"
1798 fi
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 fi
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805 } # ac_fn_c_check_header_mongrel
1806 cat >config.log <<_ACEOF
1807 This file contains any messages produced by compilers while
1808 running configure, to aid debugging if configure makes a mistake.
1809
1810 It was created by Jerasure $as_me 2.0, which was
1811 generated by GNU Autoconf 2.68. Invocation command line was
1812
1813 $ $0 $@
1814
1815 _ACEOF
1816 exec 5>>config.log
1817 {
1818 cat <<_ASUNAME
1819 ## --------- ##
1820 ## Platform. ##
1821 ## --------- ##
1822
1823 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1824 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1825 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1826 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1827 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1828
1829 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1830 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1831
1832 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1833 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1834 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1835 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1836 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1837 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1838 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1839
1840 _ASUNAME
1841
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 $as_echo "PATH: $as_dir"
1848 done
1849 IFS=$as_save_IFS
1850
1851 } >&5
1852
1853 cat >&5 <<_ACEOF
1854
1855
1856 ## ----------- ##
1857 ## Core tests. ##
1858 ## ----------- ##
1859
1860 _ACEOF
1861
1862
1863 # Keep a trace of the command line.
1864 # Strip out --no-create and --no-recursion so they do not pile up.
1865 # Strip out --silent because we don't want to record it for future runs.
1866 # Also quote any args containing shell meta-characters.
1867 # Make two passes to allow for proper duplicate-argument suppression.
1868 ac_configure_args=
1869 ac_configure_args0=
1870 ac_configure_args1=
1871 ac_must_keep_next=false
1872 for ac_pass in 1 2
1873 do
1874 for ac_arg
1875 do
1876 case $ac_arg in
1877 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1879 | -silent | --silent | --silen | --sile | --sil)
1880 continue ;;
1881 *\'*)
1882 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 esac
1884 case $ac_pass in
1885 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1886 2)
1887 as_fn_append ac_configure_args1 " '$ac_arg'"
1888 if test $ac_must_keep_next = true; then
1889 ac_must_keep_next=false # Got value, back to normal.
1890 else
1891 case $ac_arg in
1892 *=* | --config-cache | -C | -disable-* | --disable-* \
1893 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1894 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1895 | -with-* | --with-* | -without-* | --without-* | --x)
1896 case "$ac_configure_args0 " in
1897 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1898 esac
1899 ;;
1900 -* ) ac_must_keep_next=true ;;
1901 esac
1902 fi
1903 as_fn_append ac_configure_args " '$ac_arg'"
1904 ;;
1905 esac
1906 done
1907 done
1908 { ac_configure_args0=; unset ac_configure_args0;}
1909 { ac_configure_args1=; unset ac_configure_args1;}
1910
1911 # When interrupted or exit'd, cleanup temporary files, and complete
1912 # config.log. We remove comments because anyway the quotes in there
1913 # would cause problems or look ugly.
1914 # WARNING: Use '\'' to represent an apostrophe within the trap.
1915 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1916 trap 'exit_status=$?
1917 # Save into config.log some information that might help in debugging.
1918 {
1919 echo
1920
1921 $as_echo "## ---------------- ##
1922 ## Cache variables. ##
1923 ## ---------------- ##"
1924 echo
1925 # The following way of writing the cache mishandles newlines in values,
1926 (
1927 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1928 eval ac_val=\$$ac_var
1929 case $ac_val in #(
1930 *${as_nl}*)
1931 case $ac_var in #(
1932 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1933 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1934 esac
1935 case $ac_var in #(
1936 _ | IFS | as_nl) ;; #(
1937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1938 *) { eval $ac_var=; unset $ac_var;} ;;
1939 esac ;;
1940 esac
1941 done
1942 (set) 2>&1 |
1943 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1944 *${as_nl}ac_space=\ *)
1945 sed -n \
1946 "s/'\''/'\''\\\\'\'''\''/g;
1947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1948 ;; #(
1949 *)
1950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 ;;
1952 esac |
1953 sort
1954 )
1955 echo
1956
1957 $as_echo "## ----------------- ##
1958 ## Output variables. ##
1959 ## ----------------- ##"
1960 echo
1961 for ac_var in $ac_subst_vars
1962 do
1963 eval ac_val=\$$ac_var
1964 case $ac_val in
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966 esac
1967 $as_echo "$ac_var='\''$ac_val'\''"
1968 done | sort
1969 echo
1970
1971 if test -n "$ac_subst_files"; then
1972 $as_echo "## ------------------- ##
1973 ## File substitutions. ##
1974 ## ------------------- ##"
1975 echo
1976 for ac_var in $ac_subst_files
1977 do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1985 fi
1986
1987 if test -s confdefs.h; then
1988 $as_echo "## ----------- ##
1989 ## confdefs.h. ##
1990 ## ----------- ##"
1991 echo
1992 cat confdefs.h
1993 echo
1994 fi
1995 test "$ac_signal" != 0 &&
1996 $as_echo "$as_me: caught signal $ac_signal"
1997 $as_echo "$as_me: exit $exit_status"
1998 } >&5
1999 rm -f core *.core core.conftest.* &&
2000 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001 exit $exit_status
2002 ' 0
2003 for ac_signal in 1 2 13 15; do
2004 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2005 done
2006 ac_signal=0
2007
2008 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2009 rm -f -r conftest* confdefs.h
2010
2011 $as_echo "/* confdefs.h */" > confdefs.h
2012
2013 # Predefined preprocessor variables.
2014
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_NAME "$PACKAGE_NAME"
2017 _ACEOF
2018
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2021 _ACEOF
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2025 _ACEOF
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_STRING "$PACKAGE_STRING"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2033 _ACEOF
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_URL "$PACKAGE_URL"
2037 _ACEOF
2038
2039
2040 # Let the site file select an alternate cache file if it wants to.
2041 # Prefer an explicitly selected file to automatically selected ones.
2042 ac_site_file1=NONE
2043 ac_site_file2=NONE
2044 if test -n "$CONFIG_SITE"; then
2045 # We do not want a PATH search for config.site.
2046 case $CONFIG_SITE in #((
2047 -*) ac_site_file1=./$CONFIG_SITE;;
2048 */*) ac_site_file1=$CONFIG_SITE;;
2049 *) ac_site_file1=./$CONFIG_SITE;;
2050 esac
2051 elif test "x$prefix" != xNONE; then
2052 ac_site_file1=$prefix/share/config.site
2053 ac_site_file2=$prefix/etc/config.site
2054 else
2055 ac_site_file1=$ac_default_prefix/share/config.site
2056 ac_site_file2=$ac_default_prefix/etc/config.site
2057 fi
2058 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2059 do
2060 test "x$ac_site_file" = xNONE && continue
2061 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2063 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2064 sed 's/^/| /' "$ac_site_file" >&5
2065 . "$ac_site_file" \
2066 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068 as_fn_error $? "failed to load site script $ac_site_file
2069 See \`config.log' for more details" "$LINENO" 5; }
2070 fi
2071 done
2072
2073 if test -r "$cache_file"; then
2074 # Some versions of bash will fail to source /dev/null (special files
2075 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2076 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078 $as_echo "$as_me: loading cache $cache_file" >&6;}
2079 case $cache_file in
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
2082 esac
2083 fi
2084 else
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086 $as_echo "$as_me: creating cache $cache_file" >&6;}
2087 >$cache_file
2088 fi
2089
2090 # Check that the precious variables saved in the cache have kept the same
2091 # value.
2092 ac_cache_corrupted=false
2093 for ac_var in $ac_precious_vars; do
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
2098 case $ac_old_set,$ac_new_set in
2099 set,)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,set)
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2106 ac_cache_corrupted=: ;;
2107 ,);;
2108 *)
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2121 fi
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2137 esac
2138 fi
2139 done
2140 if $ac_cache_corrupted; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2146 fi
2147 ## -------------------- ##
2148 ## Main body of script. ##
2149 ## -------------------- ##
2150
2151 ac_ext=c
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156
2157
2158
2159
2160
2161 am__api_version='1.11'
2162
2163 ac_aux_dir=
2164 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2165 if test -f "$ac_dir/install-sh"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/install-sh -c"
2168 break
2169 elif test -f "$ac_dir/install.sh"; then
2170 ac_aux_dir=$ac_dir
2171 ac_install_sh="$ac_aux_dir/install.sh -c"
2172 break
2173 elif test -f "$ac_dir/shtool"; then
2174 ac_aux_dir=$ac_dir
2175 ac_install_sh="$ac_aux_dir/shtool install -c"
2176 break
2177 fi
2178 done
2179 if test -z "$ac_aux_dir"; then
2180 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2181 fi
2182
2183 # These three variables are undocumented and unsupported,
2184 # and are intended to be withdrawn in a future Autoconf release.
2185 # They can cause serious problems if a builder's source tree is in a directory
2186 # whose full name contains unusual characters.
2187 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2188 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2189 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2190
2191
2192 # Find a good install program. We prefer a C program (faster),
2193 # so one script is as good as another. But avoid the broken or
2194 # incompatible versions:
2195 # SysV /etc/install, /usr/sbin/install
2196 # SunOS /usr/etc/install
2197 # IRIX /sbin/install
2198 # AIX /bin/install
2199 # AmigaOS /C/install, which installs bootblocks on floppy discs
2200 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2201 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2202 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2203 # OS/2's system install, which has a completely different semantic
2204 # ./install, which can be erroneously created by make from ./install.sh.
2205 # Reject install programs that cannot install multiple files.
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2207 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2208 if test -z "$INSTALL"; then
2209 if ${ac_cv_path_install+:} false; then :
2210 $as_echo_n "(cached) " >&6
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 # Account for people who put trailing slashes in PATH elements.
2218 case $as_dir/ in #((
2219 ./ | .// | /[cC]/* | \
2220 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2221 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2222 /usr/ucb/* ) ;;
2223 *)
2224 # OSF1 and SCO ODT 3.0 have their own names for install.
2225 # Don't use installbsd from OSF since it installs stuff as root
2226 # by default.
2227 for ac_prog in ginstall scoinst install; do
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2230 if test $ac_prog = install &&
2231 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2232 # AIX install. It has an incompatible calling convention.
2233 :
2234 elif test $ac_prog = install &&
2235 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2236 # program-specific install script used by HP pwplus--don't use.
2237 :
2238 else
2239 rm -rf conftest.one conftest.two conftest.dir
2240 echo one > conftest.one
2241 echo two > conftest.two
2242 mkdir conftest.dir
2243 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2244 test -s conftest.one && test -s conftest.two &&
2245 test -s conftest.dir/conftest.one &&
2246 test -s conftest.dir/conftest.two
2247 then
2248 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2249 break 3
2250 fi
2251 fi
2252 fi
2253 done
2254 done
2255 ;;
2256 esac
2257
2258 done
2259 IFS=$as_save_IFS
2260
2261 rm -rf conftest.one conftest.two conftest.dir
2262
2263 fi
2264 if test "${ac_cv_path_install+set}" = set; then
2265 INSTALL=$ac_cv_path_install
2266 else
2267 # As a last resort, use the slow shell script. Don't cache a
2268 # value for INSTALL within a source directory, because that will
2269 # break other packages using the cache if that directory is
2270 # removed, or if the value is a relative name.
2271 INSTALL=$ac_install_sh
2272 fi
2273 fi
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2275 $as_echo "$INSTALL" >&6; }
2276
2277 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2278 # It thinks the first close brace ends the variable substitution.
2279 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2280
2281 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2282
2283 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2284
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2286 $as_echo_n "checking whether build environment is sane... " >&6; }
2287 # Just in case
2288 sleep 1
2289 echo timestamp > conftest.file
2290 # Reject unsafe characters in $srcdir or the absolute working directory
2291 # name. Accept space and tab only in the latter.
2292 am_lf='
2293 '
2294 case `pwd` in
2295 *[\\\"\#\$\&\'\`$am_lf]*)
2296 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2297 esac
2298 case $srcdir in
2299 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2300 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2301 esac
2302
2303 # Do `set' in a subshell so we don't clobber the current shell's
2304 # arguments. Must try -L first in case configure is actually a
2305 # symlink; some systems play weird games with the mod time of symlinks
2306 # (eg FreeBSD returns the mod time of the symlink's containing
2307 # directory).
2308 if (
2309 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2310 if test "$*" = "X"; then
2311 # -L didn't work.
2312 set X `ls -t "$srcdir/configure" conftest.file`
2313 fi
2314 rm -f conftest.file
2315 if test "$*" != "X $srcdir/configure conftest.file" \
2316 && test "$*" != "X conftest.file $srcdir/configure"; then
2317
2318 # If neither matched, then we have a broken ls. This can happen
2319 # if, for instance, CONFIG_SHELL is bash and it inherits a
2320 # broken ls alias from the environment. This has actually
2321 # happened. Such a system could not be considered "sane".
2322 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2323 alias in your environment" "$LINENO" 5
2324 fi
2325
2326 test "$2" = conftest.file
2327 )
2328 then
2329 # Ok.
2330 :
2331 else
2332 as_fn_error $? "newly created file is older than distributed files!
2333 Check your system clock" "$LINENO" 5
2334 fi
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2336 $as_echo "yes" >&6; }
2337 test "$program_prefix" != NONE &&
2338 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2339 # Use a double $ so make ignores it.
2340 test "$program_suffix" != NONE &&
2341 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2342 # Double any \ or $.
2343 # By default was `s,x,x', remove it if useless.
2344 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2345 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2346
2347 # expand $ac_aux_dir to an absolute path
2348 am_aux_dir=`cd $ac_aux_dir && pwd`
2349
2350 if test x"${MISSING+set}" != xset; then
2351 case $am_aux_dir in
2352 *\ * | *\ *)
2353 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2354 *)
2355 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2356 esac
2357 fi
2358 # Use eval to expand $SHELL
2359 if eval "$MISSING --run true"; then
2360 am_missing_run="$MISSING --run "
2361 else
2362 am_missing_run=
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2364 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2365 fi
2366
2367 if test x"${install_sh}" != xset; then
2368 case $am_aux_dir in
2369 *\ * | *\ *)
2370 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2371 *)
2372 install_sh="\${SHELL} $am_aux_dir/install-sh"
2373 esac
2374 fi
2375
2376 # Installed binaries are usually stripped using `strip' when the user
2377 # run `make install-strip'. However `strip' might not be the right
2378 # tool to use in cross-compilation environments, therefore Automake
2379 # will honor the `STRIP' environment variable to overrule this program.
2380 if test "$cross_compiling" != no; then
2381 if test -n "$ac_tool_prefix"; then
2382 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2383 set dummy ${ac_tool_prefix}strip; ac_word=$2
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2385 $as_echo_n "checking for $ac_word... " >&6; }
2386 if ${ac_cv_prog_STRIP+:} false; then :
2387 $as_echo_n "(cached) " >&6
2388 else
2389 if test -n "$STRIP"; then
2390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2391 else
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2394 do
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2399 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 break 2
2402 fi
2403 done
2404 done
2405 IFS=$as_save_IFS
2406
2407 fi
2408 fi
2409 STRIP=$ac_cv_prog_STRIP
2410 if test -n "$STRIP"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2412 $as_echo "$STRIP" >&6; }
2413 else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2415 $as_echo "no" >&6; }
2416 fi
2417
2418
2419 fi
2420 if test -z "$ac_cv_prog_STRIP"; then
2421 ac_ct_STRIP=$STRIP
2422 # Extract the first word of "strip", so it can be a program name with args.
2423 set dummy strip; ac_word=$2
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425 $as_echo_n "checking for $ac_word... " >&6; }
2426 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 if test -n "$ac_ct_STRIP"; then
2430 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 ac_cv_prog_ac_ct_STRIP="strip"
2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443 done
2444 done
2445 IFS=$as_save_IFS
2446
2447 fi
2448 fi
2449 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2450 if test -n "$ac_ct_STRIP"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2452 $as_echo "$ac_ct_STRIP" >&6; }
2453 else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455 $as_echo "no" >&6; }
2456 fi
2457
2458 if test "x$ac_ct_STRIP" = x; then
2459 STRIP=":"
2460 else
2461 case $cross_compiling:$ac_tool_warned in
2462 yes:)
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2465 ac_tool_warned=yes ;;
2466 esac
2467 STRIP=$ac_ct_STRIP
2468 fi
2469 else
2470 STRIP="$ac_cv_prog_STRIP"
2471 fi
2472
2473 fi
2474 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2477 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2478 if test -z "$MKDIR_P"; then
2479 if ${ac_cv_path_mkdir+:} false; then :
2480 $as_echo_n "(cached) " >&6
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2484 do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_prog in mkdir gmkdir; do
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2490 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2491 'mkdir (GNU coreutils) '* | \
2492 'mkdir (coreutils) '* | \
2493 'mkdir (fileutils) '4.1*)
2494 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2495 break 3;;
2496 esac
2497 done
2498 done
2499 done
2500 IFS=$as_save_IFS
2501
2502 fi
2503
2504 test -d ./--version && rmdir ./--version
2505 if test "${ac_cv_path_mkdir+set}" = set; then
2506 MKDIR_P="$ac_cv_path_mkdir -p"
2507 else
2508 # As a last resort, use the slow shell script. Don't cache a
2509 # value for MKDIR_P within a source directory, because that will
2510 # break other packages using the cache if that directory is
2511 # removed, or if the value is a relative name.
2512 MKDIR_P="$ac_install_sh -d"
2513 fi
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2516 $as_echo "$MKDIR_P" >&6; }
2517
2518 mkdir_p="$MKDIR_P"
2519 case $mkdir_p in
2520 [\\/$]* | ?:[\\/]*) ;;
2521 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2522 esac
2523
2524 for ac_prog in gawk mawk nawk awk
2525 do
2526 # Extract the first word of "$ac_prog", so it can be a program name with args.
2527 set dummy $ac_prog; ac_word=$2
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if ${ac_cv_prog_AWK+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 if test -n "$AWK"; then
2534 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_AWK="$ac_prog"
2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 AWK=$ac_cv_prog_AWK
2554 if test -n "$AWK"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2556 $as_echo "$AWK" >&6; }
2557 else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2560 fi
2561
2562
2563 test -n "$AWK" && break
2564 done
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2567 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2568 set x ${MAKE-make}
2569 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2570 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 cat >conftest.make <<\_ACEOF
2574 SHELL = /bin/sh
2575 all:
2576 @echo '@@@%%%=$(MAKE)=@@@%%%'
2577 _ACEOF
2578 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2579 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2580 *@@@%%%=?*=@@@%%%*)
2581 eval ac_cv_prog_make_${ac_make}_set=yes;;
2582 *)
2583 eval ac_cv_prog_make_${ac_make}_set=no;;
2584 esac
2585 rm -f conftest.make
2586 fi
2587 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2589 $as_echo "yes" >&6; }
2590 SET_MAKE=
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2594 SET_MAKE="MAKE=${MAKE-make}"
2595 fi
2596
2597 rm -rf .tst 2>/dev/null
2598 mkdir .tst 2>/dev/null
2599 if test -d .tst; then
2600 am__leading_dot=.
2601 else
2602 am__leading_dot=_
2603 fi
2604 rmdir .tst 2>/dev/null
2605
2606 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2607 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2608 # is not polluted with repeated "-I."
2609 am__isrc=' -I$(srcdir)'
2610 # test to see if srcdir already configured
2611 if test -f $srcdir/config.status; then
2612 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2613 fi
2614 fi
2615
2616 # test whether we have cygpath
2617 if test -z "$CYGPATH_W"; then
2618 if (cygpath --version) >/dev/null 2>/dev/null; then
2619 CYGPATH_W='cygpath -w'
2620 else
2621 CYGPATH_W=echo
2622 fi
2623 fi
2624
2625
2626 # Define the identity of the package.
2627 PACKAGE='jerasure'
2628 VERSION='2.0'
2629
2630
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE "$PACKAGE"
2633 _ACEOF
2634
2635
2636 cat >>confdefs.h <<_ACEOF
2637 #define VERSION "$VERSION"
2638 _ACEOF
2639
2640 # Some tools Automake needs.
2641
2642 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2643
2644
2645 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2646
2647
2648 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2649
2650
2651 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2652
2653
2654 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2655
2656 # We need awk for the "check" target. The system "awk" is bad on
2657 # some platforms.
2658 # Always define AMTAR for backward compatibility. Yes, it's still used
2659 # in the wild :-( We should find a proper way to deprecate it ...
2660 AMTAR='$${TAR-tar}'
2661
2662 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2663
2664
2665
2666
2667
2668 case `pwd` in
2669 *\ * | *\ *)
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2671 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2672 esac
2673
2674
2675
2676 macro_version='2.4.2'
2677 macro_revision='1.3337'
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691 ltmain="$ac_aux_dir/ltmain.sh"
2692
2693 # Make sure we can run config.sub.
2694 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2695 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2698 $as_echo_n "checking build system type... " >&6; }
2699 if ${ac_cv_build+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 ac_build_alias=$build_alias
2703 test "x$ac_build_alias" = x &&
2704 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2705 test "x$ac_build_alias" = x &&
2706 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2707 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2708 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2709
2710 fi
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2712 $as_echo "$ac_cv_build" >&6; }
2713 case $ac_cv_build in
2714 *-*-*) ;;
2715 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2716 esac
2717 build=$ac_cv_build
2718 ac_save_IFS=$IFS; IFS='-'
2719 set x $ac_cv_build
2720 shift
2721 build_cpu=$1
2722 build_vendor=$2
2723 shift; shift
2724 # Remember, the first character of IFS is used to create $*,
2725 # except with old shells:
2726 build_os=$*
2727 IFS=$ac_save_IFS
2728 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2729
2730
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2732 $as_echo_n "checking host system type... " >&6; }
2733 if ${ac_cv_host+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 if test "x$host_alias" = x; then
2737 ac_cv_host=$ac_cv_build
2738 else
2739 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2740 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2741 fi
2742
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2745 $as_echo "$ac_cv_host" >&6; }
2746 case $ac_cv_host in
2747 *-*-*) ;;
2748 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2749 esac
2750 host=$ac_cv_host
2751 ac_save_IFS=$IFS; IFS='-'
2752 set x $ac_cv_host
2753 shift
2754 host_cpu=$1
2755 host_vendor=$2
2756 shift; shift
2757 # Remember, the first character of IFS is used to create $*,
2758 # except with old shells:
2759 host_os=$*
2760 IFS=$ac_save_IFS
2761 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2762
2763
2764 # Backslashify metacharacters that are still active within
2765 # double-quoted strings.
2766 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2767
2768 # Same as above, but do not quote variable references.
2769 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2770
2771 # Sed substitution to delay expansion of an escaped shell variable in a
2772 # double_quote_subst'ed string.
2773 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2774
2775 # Sed substitution to delay expansion of an escaped single quote.
2776 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2777
2778 # Sed substitution to avoid accidental globbing in evaled expressions
2779 no_glob_subst='s/\*/\\\*/g'
2780
2781 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2782 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2783 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2784
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2786 $as_echo_n "checking how to print strings... " >&6; }
2787 # Test print first, because it will be a builtin if present.
2788 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2789 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2790 ECHO='print -r --'
2791 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2792 ECHO='printf %s\n'
2793 else
2794 # Use this function as a fallback that always works.
2795 func_fallback_echo ()
2796 {
2797 eval 'cat <<_LTECHO_EOF
2798 $1
2799 _LTECHO_EOF'
2800 }
2801 ECHO='func_fallback_echo'
2802 fi
2803
2804 # func_echo_all arg...
2805 # Invoke $ECHO with all args, space-separated.
2806 func_echo_all ()
2807 {
2808 $ECHO ""
2809 }
2810
2811 case "$ECHO" in
2812 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2813 $as_echo "printf" >&6; } ;;
2814 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2815 $as_echo "print -r" >&6; } ;;
2816 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2817 $as_echo "cat" >&6; } ;;
2818 esac
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833 ac_ext=c
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_CC+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 CC=$ac_cv_prog_CC
2867 if test -n "$CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 fi
2874
2875
2876 fi
2877 if test -z "$ac_cv_prog_CC"; then
2878 ac_ct_CC=$CC
2879 # Extract the first word of "gcc", so it can be a program name with args.
2880 set dummy gcc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$ac_ct_CC"; then
2887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_ac_ct_CC="gcc"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907 if test -n "$ac_ct_CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909 $as_echo "$ac_ct_CC" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915 if test "x$ac_ct_CC" = x; then
2916 CC=""
2917 else
2918 case $cross_compiling:$ac_tool_warned in
2919 yes:)
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2923 esac
2924 CC=$ac_ct_CC
2925 fi
2926 else
2927 CC="$ac_cv_prog_CC"
2928 fi
2929
2930 if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_CC="${ac_tool_prefix}cc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 fi
2970 fi
2971 if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2978 else
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982 ac_prog_rejected=no
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2992 continue
2993 fi
2994 ac_cv_prog_CC="cc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 if test $ac_prog_rejected = yes; then
3003 # We found a bogon in the path, so make sure we never use it.
3004 set dummy $ac_cv_prog_CC
3005 shift
3006 if test $# != 0; then
3007 # We chose a different compiler from the bogus one.
3008 # However, it has the same basename, so the bogon will be chosen
3009 # first if we set CC to just the basename; use the full file name.
3010 shift
3011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3012 fi
3013 fi
3014 fi
3015 fi
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025
3026 fi
3027 if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 for ac_prog in cl.exe
3030 do
3031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_CC+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037 else
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3051 fi
3052 done
3053 done
3054 IFS=$as_save_IFS
3055
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3062 else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068 test -n "$CC" && break
3069 done
3070 fi
3071 if test -z "$CC"; then
3072 ac_ct_CC=$CC
3073 for ac_prog in cl.exe
3074 do
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$ac_ct_CC"; then
3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_ac_ct_CC="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 $as_echo "$ac_ct_CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 test -n "$ac_ct_CC" && break
3113 done
3114
3115 if test "x$ac_ct_CC" = x; then
3116 CC=""
3117 else
3118 case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3123 esac
3124 CC=$ac_ct_CC
3125 fi
3126 fi
3127
3128 fi
3129
3130
3131 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "no acceptable C compiler found in \$PATH
3134 See \`config.log' for more details" "$LINENO" 5; }
3135
3136 # Provide some information about the compiler.
3137 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3138 set X $ac_compile
3139 ac_compiler=$2
3140 for ac_option in --version -v -V -qversion; do
3141 { { ac_try="$ac_compiler $ac_option >&5"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3149 ac_status=$?
3150 if test -s conftest.err; then
3151 sed '10a\
3152 ... rest of stderr output deleted ...
3153 10q' conftest.err >conftest.er1
3154 cat conftest.er1 >&5
3155 fi
3156 rm -f conftest.er1 conftest.err
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }
3159 done
3160
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3163
3164 int
3165 main ()
3166 {
3167
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 ac_clean_files_save=$ac_clean_files
3173 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3174 # Try to create an executable without -o first, disregard a.out.
3175 # It will help us diagnose broken compilers, and finding out an intuition
3176 # of exeext.
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3178 $as_echo_n "checking whether the C compiler works... " >&6; }
3179 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3180
3181 # The possible output files:
3182 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3183
3184 ac_rmfiles=
3185 for ac_file in $ac_files
3186 do
3187 case $ac_file in
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3189 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3190 esac
3191 done
3192 rm -f $ac_rmfiles
3193
3194 if { { ac_try="$ac_link_default"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_link_default") 2>&5
3202 ac_status=$?
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }; then :
3205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3208 # so that the user can short-circuit this test for compilers unknown to
3209 # Autoconf.
3210 for ac_file in $ac_files ''
3211 do
3212 test -f "$ac_file" || continue
3213 case $ac_file in
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3215 ;;
3216 [ab].out )
3217 # We found the default executable, but exeext='' is most
3218 # certainly right.
3219 break;;
3220 *.* )
3221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3222 then :; else
3223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 fi
3225 # We set ac_cv_exeext here because the later test for it is not
3226 # safe: cross compilers may not add the suffix if given an `-o'
3227 # argument, so we may need to know it at that point already.
3228 # Even if this section looks crufty: it has the advantage of
3229 # actually working.
3230 break;;
3231 * )
3232 break;;
3233 esac
3234 done
3235 test "$ac_cv_exeext" = no && ac_cv_exeext=
3236
3237 else
3238 ac_file=''
3239 fi
3240 if test -z "$ac_file"; then :
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error 77 "C compiler cannot create executables
3249 See \`config.log' for more details" "$LINENO" 5; }
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3255 $as_echo_n "checking for C compiler default output file name... " >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3257 $as_echo "$ac_file" >&6; }
3258 ac_exeext=$ac_cv_exeext
3259
3260 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3261 ac_clean_files=$ac_clean_files_save
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3263 $as_echo_n "checking for suffix of executables... " >&6; }
3264 if { { ac_try="$ac_link"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
3275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3277 # work properly (i.e., refer to `conftest.exe'), while it won't with
3278 # `rm'.
3279 for ac_file in conftest.exe conftest conftest.*; do
3280 test -f "$ac_file" || continue
3281 case $ac_file in
3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284 break;;
3285 * ) break;;
3286 esac
3287 done
3288 else
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3292 See \`config.log' for more details" "$LINENO" 5; }
3293 fi
3294 rm -f conftest conftest$ac_cv_exeext
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3296 $as_echo "$ac_cv_exeext" >&6; }
3297
3298 rm -f conftest.$ac_ext
3299 EXEEXT=$ac_cv_exeext
3300 ac_exeext=$EXEEXT
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3303 #include <stdio.h>
3304 int
3305 main ()
3306 {
3307 FILE *f = fopen ("conftest.out", "w");
3308 return ferror (f) || fclose (f) != 0;
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 ac_clean_files="$ac_clean_files conftest.out"
3315 # Check that the compiler produces executables we can run. If not, either
3316 # the compiler is broken, or we cross compile.
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3318 $as_echo_n "checking whether we are cross compiling... " >&6; }
3319 if test "$cross_compiling" != yes; then
3320 { { ac_try="$ac_link"
3321 case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_link") 2>&5
3328 ac_status=$?
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }
3331 if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; }; then
3342 cross_compiling=no
3343 else
3344 if test "$cross_compiling" = maybe; then
3345 cross_compiling=yes
3346 else
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot run C compiled programs.
3350 If you meant to cross compile, use \`--host'.
3351 See \`config.log' for more details" "$LINENO" 5; }
3352 fi
3353 fi
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3356 $as_echo "$cross_compiling" >&6; }
3357
3358 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3359 ac_clean_files=$ac_clean_files_save
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3361 $as_echo_n "checking for suffix of object files... " >&6; }
3362 if ${ac_cv_objext+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367
3368 int
3369 main ()
3370 {
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.o conftest.obj
3377 if { { ac_try="$ac_compile"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_compile") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; then :
3388 for ac_file in conftest.o conftest.obj conftest.*; do
3389 test -f "$ac_file" || continue;
3390 case $ac_file in
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3392 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3393 break;;
3394 esac
3395 done
3396 else
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $? "cannot compute suffix of object files: cannot compile
3403 See \`config.log' for more details" "$LINENO" 5; }
3404 fi
3405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3408 $as_echo "$ac_cv_objext" >&6; }
3409 OBJEXT=$ac_cv_objext
3410 ac_objext=$OBJEXT
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3412 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3413 if ${ac_cv_c_compiler_gnu+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418
3419 int
3420 main ()
3421 {
3422 #ifndef __GNUC__
3423 choke me
3424 #endif
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431 ac_compiler_gnu=yes
3432 else
3433 ac_compiler_gnu=no
3434 fi
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3437
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3440 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3441 if test $ac_compiler_gnu = yes; then
3442 GCC=yes
3443 else
3444 GCC=
3445 fi
3446 ac_test_CFLAGS=${CFLAGS+set}
3447 ac_save_CFLAGS=$CFLAGS
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3450 if ${ac_cv_prog_cc_g+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 ac_save_c_werror_flag=$ac_c_werror_flag
3454 ac_c_werror_flag=yes
3455 ac_cv_prog_cc_g=no
3456 CFLAGS="-g"
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459
3460 int
3461 main ()
3462 {
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_g=yes
3470 else
3471 CFLAGS=""
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474
3475 int
3476 main ()
3477 {
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484
3485 else
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3487 CFLAGS="-g"
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_prog_cc_g=yes
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_c_werror_flag=$ac_save_c_werror_flag
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3510 $as_echo "$ac_cv_prog_cc_g" >&6; }
3511 if test "$ac_test_CFLAGS" = set; then
3512 CFLAGS=$ac_save_CFLAGS
3513 elif test $ac_cv_prog_cc_g = yes; then
3514 if test "$GCC" = yes; then
3515 CFLAGS="-g -O2"
3516 else
3517 CFLAGS="-g"
3518 fi
3519 else
3520 if test "$GCC" = yes; then
3521 CFLAGS="-O2"
3522 else
3523 CFLAGS=
3524 fi
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3527 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3528 if ${ac_cv_prog_cc_c89+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 ac_cv_prog_cc_c89=no
3532 ac_save_CC=$CC
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535 #include <stdarg.h>
3536 #include <stdio.h>
3537 #include <sys/types.h>
3538 #include <sys/stat.h>
3539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3540 struct buf { int x; };
3541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542 static char *e (p, i)
3543 char **p;
3544 int i;
3545 {
3546 return p[i];
3547 }
3548 static char *f (char * (*g) (char **, int), char **p, ...)
3549 {
3550 char *s;
3551 va_list v;
3552 va_start (v,p);
3553 s = g (p, va_arg (v,int));
3554 va_end (v);
3555 return s;
3556 }
3557
3558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3559 function prototypes and stuff, but not '\xHH' hex character constants.
3560 These don't provoke an error unfortunately, instead are silently treated
3561 as 'x'. The following induces an error, until -std is added to get
3562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3563 array size at least. It's necessary to write '\x00'==0 to get something
3564 that's true only with -std. */
3565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566
3567 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3568 inside strings and character constants. */
3569 #define FOO(x) 'x'
3570 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3571
3572 int test (int i, double x);
3573 struct s1 {int (*f) (int a);};
3574 struct s2 {int (*f) (double a);};
3575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576 int argc;
3577 char **argv;
3578 int
3579 main ()
3580 {
3581 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3587 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3588 do
3589 CC="$ac_save_CC $ac_arg"
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 ac_cv_prog_cc_c89=$ac_arg
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext
3594 test "x$ac_cv_prog_cc_c89" != "xno" && break
3595 done
3596 rm -f conftest.$ac_ext
3597 CC=$ac_save_CC
3598
3599 fi
3600 # AC_CACHE_VAL
3601 case "x$ac_cv_prog_cc_c89" in
3602 x)
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3604 $as_echo "none needed" >&6; } ;;
3605 xno)
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607 $as_echo "unsupported" >&6; } ;;
3608 *)
3609 CC="$CC $ac_cv_prog_cc_c89"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3611 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3612 esac
3613 if test "x$ac_cv_prog_cc_c89" != xno; then :
3614
3615 fi
3616
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3624 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3625 if ${ac_cv_path_SED+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3629 for ac_i in 1 2 3 4 5 6 7; do
3630 ac_script="$ac_script$as_nl$ac_script"
3631 done
3632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3633 { ac_script=; unset ac_script;}
3634 if test -z "$SED"; then
3635 ac_path_SED_found=false
3636 # Loop through the user's path and test for each of PROGNAME-LIST
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_prog in sed gsed; do
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3645 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3646 # Check for GNU ac_path_SED and select it if it is found.
3647 # Check for GNU $ac_path_SED
3648 case `"$ac_path_SED" --version 2>&1` in
3649 *GNU*)
3650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3651 *)
3652 ac_count=0
3653 $as_echo_n 0123456789 >"conftest.in"
3654 while :
3655 do
3656 cat "conftest.in" "conftest.in" >"conftest.tmp"
3657 mv "conftest.tmp" "conftest.in"
3658 cp "conftest.in" "conftest.nl"
3659 $as_echo '' >> "conftest.nl"
3660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3662 as_fn_arith $ac_count + 1 && ac_count=$as_val
3663 if test $ac_count -gt ${ac_path_SED_max-0}; then
3664 # Best one so far, save it but keep looking for a better one
3665 ac_cv_path_SED="$ac_path_SED"
3666 ac_path_SED_max=$ac_count
3667 fi
3668 # 10*(2^10) chars as input seems more than enough
3669 test $ac_count -gt 10 && break
3670 done
3671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3672 esac
3673
3674 $ac_path_SED_found && break 3
3675 done
3676 done
3677 done
3678 IFS=$as_save_IFS
3679 if test -z "$ac_cv_path_SED"; then
3680 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3681 fi
3682 else
3683 ac_cv_path_SED=$SED
3684 fi
3685
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3688 $as_echo "$ac_cv_path_SED" >&6; }
3689 SED="$ac_cv_path_SED"
3690 rm -f conftest.sed
3691
3692 test -z "$SED" && SED=sed
3693 Xsed="$SED -e 1s/^X//"
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3706 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3707 if ${ac_cv_path_GREP+:} false; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 if test -z "$GREP"; then
3711 ac_path_GREP_found=false
3712 # Loop through the user's path and test for each of PROGNAME-LIST
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715 do
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for ac_prog in grep ggrep; do
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3721 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3722 # Check for GNU ac_path_GREP and select it if it is found.
3723 # Check for GNU $ac_path_GREP
3724 case `"$ac_path_GREP" --version 2>&1` in
3725 *GNU*)
3726 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3727 *)
3728 ac_count=0
3729 $as_echo_n 0123456789 >"conftest.in"
3730 while :
3731 do
3732 cat "conftest.in" "conftest.in" >"conftest.tmp"
3733 mv "conftest.tmp" "conftest.in"
3734 cp "conftest.in" "conftest.nl"
3735 $as_echo 'GREP' >> "conftest.nl"
3736 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3738 as_fn_arith $ac_count + 1 && ac_count=$as_val
3739 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3740 # Best one so far, save it but keep looking for a better one
3741 ac_cv_path_GREP="$ac_path_GREP"
3742 ac_path_GREP_max=$ac_count
3743 fi
3744 # 10*(2^10) chars as input seems more than enough
3745 test $ac_count -gt 10 && break
3746 done
3747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3748 esac
3749
3750 $ac_path_GREP_found && break 3
3751 done
3752 done
3753 done
3754 IFS=$as_save_IFS
3755 if test -z "$ac_cv_path_GREP"; then
3756 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3757 fi
3758 else
3759 ac_cv_path_GREP=$GREP
3760 fi
3761
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3764 $as_echo "$ac_cv_path_GREP" >&6; }
3765 GREP="$ac_cv_path_GREP"
3766
3767
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3769 $as_echo_n "checking for egrep... " >&6; }
3770 if ${ac_cv_path_EGREP+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774 then ac_cv_path_EGREP="$GREP -E"
3775 else
3776 if test -z "$EGREP"; then
3777 ac_path_EGREP_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3781 do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_prog in egrep; do
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3787 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3788 # Check for GNU ac_path_EGREP and select it if it is found.
3789 # Check for GNU $ac_path_EGREP
3790 case `"$ac_path_EGREP" --version 2>&1` in
3791 *GNU*)
3792 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3793 *)
3794 ac_count=0
3795 $as_echo_n 0123456789 >"conftest.in"
3796 while :
3797 do
3798 cat "conftest.in" "conftest.in" >"conftest.tmp"
3799 mv "conftest.tmp" "conftest.in"
3800 cp "conftest.in" "conftest.nl"
3801 $as_echo 'EGREP' >> "conftest.nl"
3802 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804 as_fn_arith $ac_count + 1 && ac_count=$as_val
3805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3806 # Best one so far, save it but keep looking for a better one
3807 ac_cv_path_EGREP="$ac_path_EGREP"
3808 ac_path_EGREP_max=$ac_count
3809 fi
3810 # 10*(2^10) chars as input seems more than enough
3811 test $ac_count -gt 10 && break
3812 done
3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3814 esac
3815
3816 $ac_path_EGREP_found && break 3
3817 done
3818 done
3819 done
3820 IFS=$as_save_IFS
3821 if test -z "$ac_cv_path_EGREP"; then
3822 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3823 fi
3824 else
3825 ac_cv_path_EGREP=$EGREP
3826 fi
3827
3828 fi
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3831 $as_echo "$ac_cv_path_EGREP" >&6; }
3832 EGREP="$ac_cv_path_EGREP"
3833
3834
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3836 $as_echo_n "checking for fgrep... " >&6; }
3837 if ${ac_cv_path_FGREP+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3841 then ac_cv_path_FGREP="$GREP -F"
3842 else
3843 if test -z "$FGREP"; then
3844 ac_path_FGREP_found=false
3845 # Loop through the user's path and test for each of PROGNAME-LIST
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3848 do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_prog in fgrep; do
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3854 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3855 # Check for GNU ac_path_FGREP and select it if it is found.
3856 # Check for GNU $ac_path_FGREP
3857 case `"$ac_path_FGREP" --version 2>&1` in
3858 *GNU*)
3859 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3860 *)
3861 ac_count=0
3862 $as_echo_n 0123456789 >"conftest.in"
3863 while :
3864 do
3865 cat "conftest.in" "conftest.in" >"conftest.tmp"
3866 mv "conftest.tmp" "conftest.in"
3867 cp "conftest.in" "conftest.nl"
3868 $as_echo 'FGREP' >> "conftest.nl"
3869 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3871 as_fn_arith $ac_count + 1 && ac_count=$as_val
3872 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3873 # Best one so far, save it but keep looking for a better one
3874 ac_cv_path_FGREP="$ac_path_FGREP"
3875 ac_path_FGREP_max=$ac_count
3876 fi
3877 # 10*(2^10) chars as input seems more than enough
3878 test $ac_count -gt 10 && break
3879 done
3880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3881 esac
3882
3883 $ac_path_FGREP_found && break 3
3884 done
3885 done
3886 done
3887 IFS=$as_save_IFS
3888 if test -z "$ac_cv_path_FGREP"; then
3889 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3890 fi
3891 else
3892 ac_cv_path_FGREP=$FGREP
3893 fi
3894
3895 fi
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3898 $as_echo "$ac_cv_path_FGREP" >&6; }
3899 FGREP="$ac_cv_path_FGREP"
3900
3901
3902 test -z "$GREP" && GREP=grep
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922 # Check whether --with-gnu-ld was given.
3923 if test "${with_gnu_ld+set}" = set; then :
3924 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3925 else
3926 with_gnu_ld=no
3927 fi
3928
3929 ac_prog=ld
3930 if test "$GCC" = yes; then
3931 # Check if gcc -print-prog-name=ld gives a path.
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3933 $as_echo_n "checking for ld used by $CC... " >&6; }
3934 case $host in
3935 *-*-mingw*)
3936 # gcc leaves a trailing carriage return which upsets mingw
3937 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3938 *)
3939 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3940 esac
3941 case $ac_prog in
3942 # Accept absolute paths.
3943 [\\/]* | ?:[\\/]*)
3944 re_direlt='/[^/][^/]*/\.\./'
3945 # Canonicalize the pathname of ld
3946 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3947 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3948 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3949 done
3950 test -z "$LD" && LD="$ac_prog"
3951 ;;
3952 "")
3953 # If it fails, then pretend we aren't using GCC.
3954 ac_prog=ld
3955 ;;
3956 *)
3957 # If it is relative, then search for the first ld in PATH.
3958 with_gnu_ld=unknown
3959 ;;
3960 esac
3961 elif test "$with_gnu_ld" = yes; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3963 $as_echo_n "checking for GNU ld... " >&6; }
3964 else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3966 $as_echo_n "checking for non-GNU ld... " >&6; }
3967 fi
3968 if ${lt_cv_path_LD+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 if test -z "$LD"; then
3972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3973 for ac_dir in $PATH; do
3974 IFS="$lt_save_ifs"
3975 test -z "$ac_dir" && ac_dir=.
3976 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3977 lt_cv_path_LD="$ac_dir/$ac_prog"
3978 # Check to see if the program is GNU ld. I'd rather use --version,
3979 # but apparently some variants of GNU ld only accept -v.
3980 # Break only if it was the GNU/non-GNU ld that we prefer.
3981 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3982 *GNU* | *'with BFD'*)
3983 test "$with_gnu_ld" != no && break
3984 ;;
3985 *)
3986 test "$with_gnu_ld" != yes && break
3987 ;;
3988 esac
3989 fi
3990 done
3991 IFS="$lt_save_ifs"
3992 else
3993 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3994 fi
3995 fi
3996
3997 LD="$lt_cv_path_LD"
3998 if test -n "$LD"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4000 $as_echo "$LD" >&6; }
4001 else
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4004 fi
4005 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4007 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4008 if ${lt_cv_prog_gnu_ld+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4012 case `$LD -v 2>&1 </dev/null` in
4013 *GNU* | *'with BFD'*)
4014 lt_cv_prog_gnu_ld=yes
4015 ;;
4016 *)
4017 lt_cv_prog_gnu_ld=no
4018 ;;
4019 esac
4020 fi
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4022 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4023 with_gnu_ld=$lt_cv_prog_gnu_ld
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4034 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4035 if ${lt_cv_path_NM+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if test -n "$NM"; then
4039 # Let the user override the test.
4040 lt_cv_path_NM="$NM"
4041 else
4042 lt_nm_to_check="${ac_tool_prefix}nm"
4043 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4044 lt_nm_to_check="$lt_nm_to_check nm"
4045 fi
4046 for lt_tmp_nm in $lt_nm_to_check; do
4047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4048 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4049 IFS="$lt_save_ifs"
4050 test -z "$ac_dir" && ac_dir=.
4051 tmp_nm="$ac_dir/$lt_tmp_nm"
4052 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4053 # Check to see if the nm accepts a BSD-compat flag.
4054 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4055 # nm: unknown option "B" ignored
4056 # Tru64's nm complains that /dev/null is an invalid object file
4057 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4058 */dev/null* | *'Invalid file or object type'*)
4059 lt_cv_path_NM="$tmp_nm -B"
4060 break
4061 ;;
4062 *)
4063 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4064 */dev/null*)
4065 lt_cv_path_NM="$tmp_nm -p"
4066 break
4067 ;;
4068 *)
4069 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4070 continue # so that we can try to find one that supports BSD flags
4071 ;;
4072 esac
4073 ;;
4074 esac
4075 fi
4076 done
4077 IFS="$lt_save_ifs"
4078 done
4079 : ${lt_cv_path_NM=no}
4080 fi
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4083 $as_echo "$lt_cv_path_NM" >&6; }
4084 if test "$lt_cv_path_NM" != "no"; then
4085 NM="$lt_cv_path_NM"
4086 else
4087 # Didn't find any BSD compatible name lister, look for dumpbin.
4088 if test -n "$DUMPBIN"; then :
4089 # Let the user override the test.
4090 else
4091 if test -n "$ac_tool_prefix"; then
4092 for ac_prog in dumpbin "link -dump"
4093 do
4094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_DUMPBIN+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 if test -n "$DUMPBIN"; then
4102 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4114 fi
4115 done
4116 done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 DUMPBIN=$ac_cv_prog_DUMPBIN
4122 if test -n "$DUMPBIN"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4124 $as_echo "$DUMPBIN" >&6; }
4125 else
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131 test -n "$DUMPBIN" && break
4132 done
4133 fi
4134 if test -z "$DUMPBIN"; then
4135 ac_ct_DUMPBIN=$DUMPBIN
4136 for ac_prog in dumpbin "link -dump"
4137 do
4138 # Extract the first word of "$ac_prog", so it can be a program name with args.
4139 set dummy $ac_prog; ac_word=$2
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 $as_echo_n "checking for $ac_word... " >&6; }
4142 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test -n "$ac_ct_DUMPBIN"; then
4146 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4150 do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 break 2
4158 fi
4159 done
4160 done
4161 IFS=$as_save_IFS
4162
4163 fi
4164 fi
4165 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4166 if test -n "$ac_ct_DUMPBIN"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4168 $as_echo "$ac_ct_DUMPBIN" >&6; }
4169 else
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4172 fi
4173
4174
4175 test -n "$ac_ct_DUMPBIN" && break
4176 done
4177
4178 if test "x$ac_ct_DUMPBIN" = x; then
4179 DUMPBIN=":"
4180 else
4181 case $cross_compiling:$ac_tool_warned in
4182 yes:)
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4185 ac_tool_warned=yes ;;
4186 esac
4187 DUMPBIN=$ac_ct_DUMPBIN
4188 fi
4189 fi
4190
4191 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4192 *COFF*)
4193 DUMPBIN="$DUMPBIN -symbols"
4194 ;;
4195 *)
4196 DUMPBIN=:
4197 ;;
4198 esac
4199 fi
4200
4201 if test "$DUMPBIN" != ":"; then
4202 NM="$DUMPBIN"
4203 fi
4204 fi
4205 test -z "$NM" && NM=nm
4206
4207
4208
4209
4210
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4213 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4214 if ${lt_cv_nm_interface+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 lt_cv_nm_interface="BSD nm"
4218 echo "int some_variable = 0;" > conftest.$ac_ext
4219 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4220 (eval "$ac_compile" 2>conftest.err)
4221 cat conftest.err >&5
4222 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4223 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4224 cat conftest.err >&5
4225 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4226 cat conftest.out >&5
4227 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4228 lt_cv_nm_interface="MS dumpbin"
4229 fi
4230 rm -f conftest*
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4233 $as_echo "$lt_cv_nm_interface" >&6; }
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4236 $as_echo_n "checking whether ln -s works... " >&6; }
4237 LN_S=$as_ln_s
4238 if test "$LN_S" = "ln -s"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4240 $as_echo "yes" >&6; }
4241 else
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4243 $as_echo "no, using $LN_S" >&6; }
4244 fi
4245
4246 # find the maximum length of command line arguments
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4248 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4249 if ${lt_cv_sys_max_cmd_len+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 i=0
4253 teststring="ABCD"
4254
4255 case $build_os in
4256 msdosdjgpp*)
4257 # On DJGPP, this test can blow up pretty badly due to problems in libc
4258 # (any single argument exceeding 2000 bytes causes a buffer overrun
4259 # during glob expansion). Even if it were fixed, the result of this
4260 # check would be larger than it should be.
4261 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4262 ;;
4263
4264 gnu*)
4265 # Under GNU Hurd, this test is not required because there is
4266 # no limit to the length of command line arguments.
4267 # Libtool will interpret -1 as no limit whatsoever
4268 lt_cv_sys_max_cmd_len=-1;
4269 ;;
4270
4271 cygwin* | mingw* | cegcc*)
4272 # On Win9x/ME, this test blows up -- it succeeds, but takes
4273 # about 5 minutes as the teststring grows exponentially.
4274 # Worse, since 9x/ME are not pre-emptively multitasking,
4275 # you end up with a "frozen" computer, even though with patience
4276 # the test eventually succeeds (with a max line length of 256k).
4277 # Instead, let's just punt: use the minimum linelength reported by
4278 # all of the supported platforms: 8192 (on NT/2K/XP).
4279 lt_cv_sys_max_cmd_len=8192;
4280 ;;
4281
4282 mint*)
4283 # On MiNT this can take a long time and run out of memory.
4284 lt_cv_sys_max_cmd_len=8192;
4285 ;;
4286
4287 amigaos*)
4288 # On AmigaOS with pdksh, this test takes hours, literally.
4289 # So we just punt and use a minimum line length of 8192.
4290 lt_cv_sys_max_cmd_len=8192;
4291 ;;
4292
4293 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4294 # This has been around since 386BSD, at least. Likely further.
4295 if test -x /sbin/sysctl; then
4296 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4297 elif test -x /usr/sbin/sysctl; then
4298 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4299 else
4300 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4301 fi
4302 # And add a safety zone
4303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4305 ;;
4306
4307 interix*)
4308 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4309 lt_cv_sys_max_cmd_len=196608
4310 ;;
4311
4312 os2*)
4313 # The test takes a long time on OS/2.
4314 lt_cv_sys_max_cmd_len=8192
4315 ;;
4316
4317 osf*)
4318 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4319 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4320 # nice to cause kernel panics so lets avoid the loop below.
4321 # First set a reasonable default.
4322 lt_cv_sys_max_cmd_len=16384
4323 #
4324 if test -x /sbin/sysconfig; then
4325 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4326 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4327 esac
4328 fi
4329 ;;
4330 sco3.2v5*)
4331 lt_cv_sys_max_cmd_len=102400
4332 ;;
4333 sysv5* | sco5v6* | sysv4.2uw2*)
4334 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4335 if test -n "$kargmax"; then
4336 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4337 else
4338 lt_cv_sys_max_cmd_len=32768
4339 fi
4340 ;;
4341 *)
4342 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4343 if test -n "$lt_cv_sys_max_cmd_len"; then
4344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4346 else
4347 # Make teststring a little bigger before we do anything with it.
4348 # a 1K string should be a reasonable start.
4349 for i in 1 2 3 4 5 6 7 8 ; do
4350 teststring=$teststring$teststring
4351 done
4352 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4353 # If test is not a shell built-in, we'll probably end up computing a
4354 # maximum length that is only half of the actual maximum length, but
4355 # we can't tell.
4356 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4357 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4358 test $i != 17 # 1/2 MB should be enough
4359 do
4360 i=`expr $i + 1`
4361 teststring=$teststring$teststring
4362 done
4363 # Only check the string length outside the loop.
4364 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4365 teststring=
4366 # Add a significant safety factor because C++ compilers can tack on
4367 # massive amounts of additional arguments before passing them to the
4368 # linker. It appears as though 1/2 is a usable value.
4369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4370 fi
4371 ;;
4372 esac
4373
4374 fi
4375
4376 if test -n $lt_cv_sys_max_cmd_len ; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4378 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4381 $as_echo "none" >&6; }
4382 fi
4383 max_cmd_len=$lt_cv_sys_max_cmd_len
4384
4385
4386
4387
4388
4389
4390 : ${CP="cp -f"}
4391 : ${MV="mv -f"}
4392 : ${RM="rm -f"}
4393
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4395 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4396 # Try some XSI features
4397 xsi_shell=no
4398 ( _lt_dummy="a/b/c"
4399 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4400 = c,a/b,b/c, \
4401 && eval 'test $(( 1 + 1 )) -eq 2 \
4402 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4403 && xsi_shell=yes
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4405 $as_echo "$xsi_shell" >&6; }
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4409 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4410 lt_shell_append=no
4411 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4412 >/dev/null 2>&1 \
4413 && lt_shell_append=yes
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4415 $as_echo "$lt_shell_append" >&6; }
4416
4417
4418 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4419 lt_unset=unset
4420 else
4421 lt_unset=false
4422 fi
4423
4424
4425
4426
4427
4428 # test EBCDIC or ASCII
4429 case `echo X|tr X '\101'` in
4430 A) # ASCII based system
4431 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4432 lt_SP2NL='tr \040 \012'
4433 lt_NL2SP='tr \015\012 \040\040'
4434 ;;
4435 *) # EBCDIC based system
4436 lt_SP2NL='tr \100 \n'
4437 lt_NL2SP='tr \r\n \100\100'
4438 ;;
4439 esac
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4450 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4451 if ${lt_cv_to_host_file_cmd+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 case $host in
4455 *-*-mingw* )
4456 case $build in
4457 *-*-mingw* ) # actually msys
4458 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4459 ;;
4460 *-*-cygwin* )
4461 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4462 ;;
4463 * ) # otherwise, assume *nix
4464 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4465 ;;
4466 esac
4467 ;;
4468 *-*-cygwin* )
4469 case $build in
4470 *-*-mingw* ) # actually msys
4471 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4472 ;;
4473 *-*-cygwin* )
4474 lt_cv_to_host_file_cmd=func_convert_file_noop
4475 ;;
4476 * ) # otherwise, assume *nix
4477 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4478 ;;
4479 esac
4480 ;;
4481 * ) # unhandled hosts (and "normal" native builds)
4482 lt_cv_to_host_file_cmd=func_convert_file_noop
4483 ;;
4484 esac
4485
4486 fi
4487
4488 to_host_file_cmd=$lt_cv_to_host_file_cmd
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4490 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4491
4492
4493
4494
4495
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4497 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4498 if ${lt_cv_to_tool_file_cmd+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 #assume ordinary cross tools, or native build.
4502 lt_cv_to_tool_file_cmd=func_convert_file_noop
4503 case $host in
4504 *-*-mingw* )
4505 case $build in
4506 *-*-mingw* ) # actually msys
4507 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4508 ;;
4509 esac
4510 ;;
4511 esac
4512
4513 fi
4514
4515 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4517 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4518
4519
4520
4521
4522
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4524 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4525 if ${lt_cv_ld_reload_flag+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 lt_cv_ld_reload_flag='-r'
4529 fi
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4531 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4532 reload_flag=$lt_cv_ld_reload_flag
4533 case $reload_flag in
4534 "" | " "*) ;;
4535 *) reload_flag=" $reload_flag" ;;
4536 esac
4537 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4538 case $host_os in
4539 cygwin* | mingw* | pw32* | cegcc*)
4540 if test "$GCC" != yes; then
4541 reload_cmds=false
4542 fi
4543 ;;
4544 darwin*)
4545 if test "$GCC" = yes; then
4546 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4547 else
4548 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4549 fi
4550 ;;
4551 esac
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561 if test -n "$ac_tool_prefix"; then
4562 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4563 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if ${ac_cv_prog_OBJDUMP+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -n "$OBJDUMP"; then
4570 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 OBJDUMP=$ac_cv_prog_OBJDUMP
4590 if test -n "$OBJDUMP"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4592 $as_echo "$OBJDUMP" >&6; }
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4597
4598
4599 fi
4600 if test -z "$ac_cv_prog_OBJDUMP"; then
4601 ac_ct_OBJDUMP=$OBJDUMP
4602 # Extract the first word of "objdump", so it can be a program name with args.
4603 set dummy objdump; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$ac_ct_OBJDUMP"; then
4610 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623 done
4624 done
4625 IFS=$as_save_IFS
4626
4627 fi
4628 fi
4629 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4630 if test -n "$ac_ct_OBJDUMP"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4632 $as_echo "$ac_ct_OBJDUMP" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4636 fi
4637
4638 if test "x$ac_ct_OBJDUMP" = x; then
4639 OBJDUMP="false"
4640 else
4641 case $cross_compiling:$ac_tool_warned in
4642 yes:)
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4645 ac_tool_warned=yes ;;
4646 esac
4647 OBJDUMP=$ac_ct_OBJDUMP
4648 fi
4649 else
4650 OBJDUMP="$ac_cv_prog_OBJDUMP"
4651 fi
4652
4653 test -z "$OBJDUMP" && OBJDUMP=objdump
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4664 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4665 if ${lt_cv_deplibs_check_method+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 lt_cv_file_magic_cmd='$MAGIC_CMD'
4669 lt_cv_file_magic_test_file=
4670 lt_cv_deplibs_check_method='unknown'
4671 # Need to set the preceding variable on all platforms that support
4672 # interlibrary dependencies.
4673 # 'none' -- dependencies not supported.
4674 # `unknown' -- same as none, but documents that we really don't know.
4675 # 'pass_all' -- all dependencies passed with no checks.
4676 # 'test_compile' -- check by making test program.
4677 # 'file_magic [[regex]]' -- check by looking for files in library path
4678 # which responds to the $file_magic_cmd with a given extended regex.
4679 # If you have `file' or equivalent on your system and you're not sure
4680 # whether `pass_all' will *always* work, you probably want this one.
4681
4682 case $host_os in
4683 aix[4-9]*)
4684 lt_cv_deplibs_check_method=pass_all
4685 ;;
4686
4687 beos*)
4688 lt_cv_deplibs_check_method=pass_all
4689 ;;
4690
4691 bsdi[45]*)
4692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4693 lt_cv_file_magic_cmd='/usr/bin/file -L'
4694 lt_cv_file_magic_test_file=/shlib/libc.so
4695 ;;
4696
4697 cygwin*)
4698 # func_win32_libid is a shell function defined in ltmain.sh
4699 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4700 lt_cv_file_magic_cmd='func_win32_libid'
4701 ;;
4702
4703 mingw* | pw32*)
4704 # Base MSYS/MinGW do not provide the 'file' command needed by
4705 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4706 # unless we find 'file', for example because we are cross-compiling.
4707 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4708 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4709 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4710 lt_cv_file_magic_cmd='func_win32_libid'
4711 else
4712 # Keep this pattern in sync with the one in func_win32_libid.
4713 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4714 lt_cv_file_magic_cmd='$OBJDUMP -f'
4715 fi
4716 ;;
4717
4718 cegcc*)
4719 # use the weaker test based on 'objdump'. See mingw*.
4720 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4721 lt_cv_file_magic_cmd='$OBJDUMP -f'
4722 ;;
4723
4724 darwin* | rhapsody*)
4725 lt_cv_deplibs_check_method=pass_all
4726 ;;
4727
4728 freebsd* | dragonfly*)
4729 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4730 case $host_cpu in
4731 i*86 )
4732 # Not sure whether the presence of OpenBSD here was a mistake.
4733 # Let's accept both of them until this is cleared up.
4734 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4735 lt_cv_file_magic_cmd=/usr/bin/file
4736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4737 ;;
4738 esac
4739 else
4740 lt_cv_deplibs_check_method=pass_all
4741 fi
4742 ;;
4743
4744 gnu*)
4745 lt_cv_deplibs_check_method=pass_all
4746 ;;
4747
4748 haiku*)
4749 lt_cv_deplibs_check_method=pass_all
4750 ;;
4751
4752 hpux10.20* | hpux11*)
4753 lt_cv_file_magic_cmd=/usr/bin/file
4754 case $host_cpu in
4755 ia64*)
4756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4757 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4758 ;;
4759 hppa*64*)
4760 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]'
4761 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4762 ;;
4763 *)
4764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4765 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4766 ;;
4767 esac
4768 ;;
4769
4770 interix[3-9]*)
4771 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4773 ;;
4774
4775 irix5* | irix6* | nonstopux*)
4776 case $LD in
4777 *-32|*"-32 ") libmagic=32-bit;;
4778 *-n32|*"-n32 ") libmagic=N32;;
4779 *-64|*"-64 ") libmagic=64-bit;;
4780 *) libmagic=never-match;;
4781 esac
4782 lt_cv_deplibs_check_method=pass_all
4783 ;;
4784
4785 # This must be glibc/ELF.
4786 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4787 lt_cv_deplibs_check_method=pass_all
4788 ;;
4789
4790 netbsd* | netbsdelf*-gnu)
4791 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4793 else
4794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4795 fi
4796 ;;
4797
4798 newos6*)
4799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4800 lt_cv_file_magic_cmd=/usr/bin/file
4801 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4802 ;;
4803
4804 *nto* | *qnx*)
4805 lt_cv_deplibs_check_method=pass_all
4806 ;;
4807
4808 openbsd*)
4809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4811 else
4812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4813 fi
4814 ;;
4815
4816 osf3* | osf4* | osf5*)
4817 lt_cv_deplibs_check_method=pass_all
4818 ;;
4819
4820 rdos*)
4821 lt_cv_deplibs_check_method=pass_all
4822 ;;
4823
4824 solaris*)
4825 lt_cv_deplibs_check_method=pass_all
4826 ;;
4827
4828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4829 lt_cv_deplibs_check_method=pass_all
4830 ;;
4831
4832 sysv4 | sysv4.3*)
4833 case $host_vendor in
4834 motorola)
4835 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]'
4836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4837 ;;
4838 ncr)
4839 lt_cv_deplibs_check_method=pass_all
4840 ;;
4841 sequent)
4842 lt_cv_file_magic_cmd='/bin/file'
4843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4844 ;;
4845 sni)
4846 lt_cv_file_magic_cmd='/bin/file'
4847 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4848 lt_cv_file_magic_test_file=/lib/libc.so
4849 ;;
4850 siemens)
4851 lt_cv_deplibs_check_method=pass_all
4852 ;;
4853 pc)
4854 lt_cv_deplibs_check_method=pass_all
4855 ;;
4856 esac
4857 ;;
4858
4859 tpf*)
4860 lt_cv_deplibs_check_method=pass_all
4861 ;;
4862 esac
4863
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4866 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4867
4868 file_magic_glob=
4869 want_nocaseglob=no
4870 if test "$build" = "$host"; then
4871 case $host_os in
4872 mingw* | pw32*)
4873 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4874 want_nocaseglob=yes
4875 else
4876 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4877 fi
4878 ;;
4879 esac
4880 fi
4881
4882 file_magic_cmd=$lt_cv_file_magic_cmd
4883 deplibs_check_method=$lt_cv_deplibs_check_method
4884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907 if test -n "$ac_tool_prefix"; then
4908 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if ${ac_cv_prog_DLLTOOL+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -n "$DLLTOOL"; then
4916 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929 done
4930 done
4931 IFS=$as_save_IFS
4932
4933 fi
4934 fi
4935 DLLTOOL=$ac_cv_prog_DLLTOOL
4936 if test -n "$DLLTOOL"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4938 $as_echo "$DLLTOOL" >&6; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4942 fi
4943
4944
4945 fi
4946 if test -z "$ac_cv_prog_DLLTOOL"; then
4947 ac_ct_DLLTOOL=$DLLTOOL
4948 # Extract the first word of "dlltool", so it can be a program name with args.
4949 set dummy dlltool; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if test -n "$ac_ct_DLLTOOL"; then
4956 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4968 fi
4969 done
4970 done
4971 IFS=$as_save_IFS
4972
4973 fi
4974 fi
4975 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4976 if test -n "$ac_ct_DLLTOOL"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4978 $as_echo "$ac_ct_DLLTOOL" >&6; }
4979 else
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4982 fi
4983
4984 if test "x$ac_ct_DLLTOOL" = x; then
4985 DLLTOOL="false"
4986 else
4987 case $cross_compiling:$ac_tool_warned in
4988 yes:)
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991 ac_tool_warned=yes ;;
4992 esac
4993 DLLTOOL=$ac_ct_DLLTOOL
4994 fi
4995 else
4996 DLLTOOL="$ac_cv_prog_DLLTOOL"
4997 fi
4998
4999 test -z "$DLLTOOL" && DLLTOOL=dlltool
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5011 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5012 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 lt_cv_sharedlib_from_linklib_cmd='unknown'
5016
5017 case $host_os in
5018 cygwin* | mingw* | pw32* | cegcc*)
5019 # two different shell functions defined in ltmain.sh
5020 # decide which to use based on capabilities of $DLLTOOL
5021 case `$DLLTOOL --help 2>&1` in
5022 *--identify-strict*)
5023 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5024 ;;
5025 *)
5026 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5027 ;;
5028 esac
5029 ;;
5030 *)
5031 # fallback: assume linklib IS sharedlib
5032 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5033 ;;
5034 esac
5035
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5038 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5039 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5040 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5041
5042
5043
5044
5045
5046
5047
5048
5049 if test -n "$ac_tool_prefix"; then
5050 for ac_prog in ar
5051 do
5052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_AR+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 if test -n "$AR"; then
5060 ac_cv_prog_AR="$AR" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5072 fi
5073 done
5074 done
5075 IFS=$as_save_IFS
5076
5077 fi
5078 fi
5079 AR=$ac_cv_prog_AR
5080 if test -n "$AR"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5082 $as_echo "$AR" >&6; }
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5086 fi
5087
5088
5089 test -n "$AR" && break
5090 done
5091 fi
5092 if test -z "$AR"; then
5093 ac_ct_AR=$AR
5094 for ac_prog in ar
5095 do
5096 # Extract the first word of "$ac_prog", so it can be a program name with args.
5097 set dummy $ac_prog; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$ac_ct_AR"; then
5104 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_prog_ac_ct_AR="$ac_prog"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117 done
5118 done
5119 IFS=$as_save_IFS
5120
5121 fi
5122 fi
5123 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5124 if test -n "$ac_ct_AR"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5126 $as_echo "$ac_ct_AR" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5130 fi
5131
5132
5133 test -n "$ac_ct_AR" && break
5134 done
5135
5136 if test "x$ac_ct_AR" = x; then
5137 AR="false"
5138 else
5139 case $cross_compiling:$ac_tool_warned in
5140 yes:)
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5143 ac_tool_warned=yes ;;
5144 esac
5145 AR=$ac_ct_AR
5146 fi
5147 fi
5148
5149 : ${AR=ar}
5150 : ${AR_FLAGS=cru}
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5163 $as_echo_n "checking for archiver @FILE support... " >&6; }
5164 if ${lt_cv_ar_at_file+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 lt_cv_ar_at_file=no
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170
5171 int
5172 main ()
5173 {
5174
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 if ac_fn_c_try_compile "$LINENO"; then :
5180 echo conftest.$ac_objext > conftest.lst
5181 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5183 (eval $lt_ar_try) 2>&5
5184 ac_status=$?
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; }
5187 if test "$ac_status" -eq 0; then
5188 # Ensure the archiver fails upon bogus file names.
5189 rm -f conftest.$ac_objext libconftest.a
5190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5191 (eval $lt_ar_try) 2>&5
5192 ac_status=$?
5193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5194 test $ac_status = 0; }
5195 if test "$ac_status" -ne 0; then
5196 lt_cv_ar_at_file=@
5197 fi
5198 fi
5199 rm -f conftest.* libconftest.a
5200
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5206 $as_echo "$lt_cv_ar_at_file" >&6; }
5207
5208 if test "x$lt_cv_ar_at_file" = xno; then
5209 archiver_list_spec=
5210 else
5211 archiver_list_spec=$lt_cv_ar_at_file
5212 fi
5213
5214
5215
5216
5217
5218
5219
5220 if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}strip; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_STRIP+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -n "$STRIP"; then
5229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 STRIP=$ac_cv_prog_STRIP
5249 if test -n "$STRIP"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5251 $as_echo "$STRIP" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258 fi
5259 if test -z "$ac_cv_prog_STRIP"; then
5260 ac_ct_STRIP=$STRIP
5261 # Extract the first word of "strip", so it can be a program name with args.
5262 set dummy strip; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 if test -n "$ac_ct_STRIP"; then
5269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278 ac_cv_prog_ac_ct_STRIP="strip"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5289 if test -n "$ac_ct_STRIP"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5291 $as_echo "$ac_ct_STRIP" >&6; }
5292 else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296
5297 if test "x$ac_ct_STRIP" = x; then
5298 STRIP=":"
5299 else
5300 case $cross_compiling:$ac_tool_warned in
5301 yes:)
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304 ac_tool_warned=yes ;;
5305 esac
5306 STRIP=$ac_ct_STRIP
5307 fi
5308 else
5309 STRIP="$ac_cv_prog_STRIP"
5310 fi
5311
5312 test -z "$STRIP" && STRIP=:
5313
5314
5315
5316
5317
5318
5319 if test -n "$ac_tool_prefix"; then
5320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if ${ac_cv_prog_RANLIB+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test -n "$RANLIB"; then
5328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341 done
5342 done
5343 IFS=$as_save_IFS
5344
5345 fi
5346 fi
5347 RANLIB=$ac_cv_prog_RANLIB
5348 if test -n "$RANLIB"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5350 $as_echo "$RANLIB" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356
5357 fi
5358 if test -z "$ac_cv_prog_RANLIB"; then
5359 ac_ct_RANLIB=$RANLIB
5360 # Extract the first word of "ranlib", so it can be a program name with args.
5361 set dummy ranlib; ac_word=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$ac_ct_RANLIB"; then
5368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377 ac_cv_prog_ac_ct_RANLIB="ranlib"
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381 done
5382 done
5383 IFS=$as_save_IFS
5384
5385 fi
5386 fi
5387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5388 if test -n "$ac_ct_RANLIB"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5390 $as_echo "$ac_ct_RANLIB" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 fi
5395
5396 if test "x$ac_ct_RANLIB" = x; then
5397 RANLIB=":"
5398 else
5399 case $cross_compiling:$ac_tool_warned in
5400 yes:)
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5403 ac_tool_warned=yes ;;
5404 esac
5405 RANLIB=$ac_ct_RANLIB
5406 fi
5407 else
5408 RANLIB="$ac_cv_prog_RANLIB"
5409 fi
5410
5411 test -z "$RANLIB" && RANLIB=:
5412
5413
5414
5415
5416
5417
5418 # Determine commands to create old-style static archives.
5419 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5420 old_postinstall_cmds='chmod 644 $oldlib'
5421 old_postuninstall_cmds=
5422
5423 if test -n "$RANLIB"; then
5424 case $host_os in
5425 openbsd*)
5426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5427 ;;
5428 *)
5429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5430 ;;
5431 esac
5432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5433 fi
5434
5435 case $host_os in
5436 darwin*)
5437 lock_old_archive_extraction=yes ;;
5438 *)
5439 lock_old_archive_extraction=no ;;
5440 esac
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 # If no C compiler was specified, use CC.
5481 LTCC=${LTCC-"$CC"}
5482
5483 # If no C compiler flags were specified, use CFLAGS.
5484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5485
5486 # Allow CC to be a program name with arguments.
5487 compiler=$CC
5488
5489
5490 # Check for command to grab the raw symbol name followed by C symbol from nm.
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5492 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5493 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496
5497 # These are sane defaults that work on at least a few old systems.
5498 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5499
5500 # Character class describing NM global symbol codes.
5501 symcode='[BCDEGRST]'
5502
5503 # Regexp to match symbols that can be accessed directly from C.
5504 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5505
5506 # Define system-specific variables.
5507 case $host_os in
5508 aix*)
5509 symcode='[BCDT]'
5510 ;;
5511 cygwin* | mingw* | pw32* | cegcc*)
5512 symcode='[ABCDGISTW]'
5513 ;;
5514 hpux*)
5515 if test "$host_cpu" = ia64; then
5516 symcode='[ABCDEGRST]'
5517 fi
5518 ;;
5519 irix* | nonstopux*)
5520 symcode='[BCDEGRST]'
5521 ;;
5522 osf*)
5523 symcode='[BCDEGQRST]'
5524 ;;
5525 solaris*)
5526 symcode='[BDRT]'
5527 ;;
5528 sco3.2v5*)
5529 symcode='[DT]'
5530 ;;
5531 sysv4.2uw2*)
5532 symcode='[DT]'
5533 ;;
5534 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5535 symcode='[ABDT]'
5536 ;;
5537 sysv4)
5538 symcode='[DFNSTU]'
5539 ;;
5540 esac
5541
5542 # If we're using GNU nm, then use its standard symbol codes.
5543 case `$NM -V 2>&1` in
5544 *GNU* | *'with BFD'*)
5545 symcode='[ABCDGIRSTW]' ;;
5546 esac
5547
5548 # Transform an extracted symbol line into a proper C declaration.
5549 # Some systems (esp. on ia64) link data and code symbols differently,
5550 # so use this general approach.
5551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5552
5553 # Transform an extracted symbol line into symbol name and symbol address
5554 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5555 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'"
5556
5557 # Handle CRLF in mingw tool chain
5558 opt_cr=
5559 case $build_os in
5560 mingw*)
5561 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5562 ;;
5563 esac
5564
5565 # Try without a prefix underscore, then with it.
5566 for ac_symprfx in "" "_"; do
5567
5568 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5569 symxfrm="\\1 $ac_symprfx\\2 \\2"
5570
5571 # Write the raw and C identifiers.
5572 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5573 # Fake it for dumpbin and say T for any non-static function
5574 # and D for any global variable.
5575 # Also find C++ and __fastcall symbols from MSVC++,
5576 # which start with @ or ?.
5577 lt_cv_sys_global_symbol_pipe="$AWK '"\
5578 " {last_section=section; section=\$ 3};"\
5579 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5580 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5581 " \$ 0!~/External *\|/{next};"\
5582 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5583 " {if(hide[section]) next};"\
5584 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5585 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5586 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5587 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5588 " ' prfx=^$ac_symprfx"
5589 else
5590 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5591 fi
5592 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5593
5594 # Check to see that the pipe works correctly.
5595 pipe_works=no
5596
5597 rm -f conftest*
5598 cat > conftest.$ac_ext <<_LT_EOF
5599 #ifdef __cplusplus
5600 extern "C" {
5601 #endif
5602 char nm_test_var;
5603 void nm_test_func(void);
5604 void nm_test_func(void){}
5605 #ifdef __cplusplus
5606 }
5607 #endif
5608 int main(){nm_test_var='a';nm_test_func();return(0);}
5609 _LT_EOF
5610
5611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5612 (eval $ac_compile) 2>&5
5613 ac_status=$?
5614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5615 test $ac_status = 0; }; then
5616 # Now try to grab the symbols.
5617 nlist=conftest.nm
5618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5619 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5620 ac_status=$?
5621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622 test $ac_status = 0; } && test -s "$nlist"; then
5623 # Try sorting and uniquifying the output.
5624 if sort "$nlist" | uniq > "$nlist"T; then
5625 mv -f "$nlist"T "$nlist"
5626 else
5627 rm -f "$nlist"T
5628 fi
5629
5630 # Make sure that we snagged all the symbols we need.
5631 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5632 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5633 cat <<_LT_EOF > conftest.$ac_ext
5634 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5635 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5636 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5637 relocations are performed -- see ld's documentation on pseudo-relocs. */
5638 # define LT_DLSYM_CONST
5639 #elif defined(__osf__)
5640 /* This system does not cope well with relocations in const data. */
5641 # define LT_DLSYM_CONST
5642 #else
5643 # define LT_DLSYM_CONST const
5644 #endif
5645
5646 #ifdef __cplusplus
5647 extern "C" {
5648 #endif
5649
5650 _LT_EOF
5651 # Now generate the symbol file.
5652 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5653
5654 cat <<_LT_EOF >> conftest.$ac_ext
5655
5656 /* The mapping between symbol names and symbols. */
5657 LT_DLSYM_CONST struct {
5658 const char *name;
5659 void *address;
5660 }
5661 lt__PROGRAM__LTX_preloaded_symbols[] =
5662 {
5663 { "@PROGRAM@", (void *) 0 },
5664 _LT_EOF
5665 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5666 cat <<\_LT_EOF >> conftest.$ac_ext
5667 {0, (void *) 0}
5668 };
5669
5670 /* This works around a problem in FreeBSD linker */
5671 #ifdef FREEBSD_WORKAROUND
5672 static const void *lt_preloaded_setup() {
5673 return lt__PROGRAM__LTX_preloaded_symbols;
5674 }
5675 #endif
5676
5677 #ifdef __cplusplus
5678 }
5679 #endif
5680 _LT_EOF
5681 # Now try linking the two files.
5682 mv conftest.$ac_objext conftstm.$ac_objext
5683 lt_globsym_save_LIBS=$LIBS
5684 lt_globsym_save_CFLAGS=$CFLAGS
5685 LIBS="conftstm.$ac_objext"
5686 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5688 (eval $ac_link) 2>&5
5689 ac_status=$?
5690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5692 pipe_works=yes
5693 fi
5694 LIBS=$lt_globsym_save_LIBS
5695 CFLAGS=$lt_globsym_save_CFLAGS
5696 else
5697 echo "cannot find nm_test_func in $nlist" >&5
5698 fi
5699 else
5700 echo "cannot find nm_test_var in $nlist" >&5
5701 fi
5702 else
5703 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5704 fi
5705 else
5706 echo "$progname: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5708 fi
5709 rm -rf conftest* conftst*
5710
5711 # Do not use the global_symbol_pipe unless it works.
5712 if test "$pipe_works" = yes; then
5713 break
5714 else
5715 lt_cv_sys_global_symbol_pipe=
5716 fi
5717 done
5718
5719 fi
5720
5721 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5722 lt_cv_sys_global_symbol_to_cdecl=
5723 fi
5724 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5726 $as_echo "failed" >&6; }
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5729 $as_echo "ok" >&6; }
5730 fi
5731
5732 # Response file support.
5733 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5734 nm_file_list_spec='@'
5735 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5736 nm_file_list_spec='@'
5737 fi
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5766 $as_echo_n "checking for sysroot... " >&6; }
5767
5768 # Check whether --with-sysroot was given.
5769 if test "${with_sysroot+set}" = set; then :
5770 withval=$with_sysroot;
5771 else
5772 with_sysroot=no
5773 fi
5774
5775
5776 lt_sysroot=
5777 case ${with_sysroot} in #(
5778 yes)
5779 if test "$GCC" = yes; then
5780 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5781 fi
5782 ;; #(
5783 /*)
5784 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5785 ;; #(
5786 no|'')
5787 ;; #(
5788 *)
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5790 $as_echo "${with_sysroot}" >&6; }
5791 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5792 ;;
5793 esac
5794
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5796 $as_echo "${lt_sysroot:-no}" >&6; }
5797
5798
5799
5800
5801
5802 # Check whether --enable-libtool-lock was given.
5803 if test "${enable_libtool_lock+set}" = set; then :
5804 enableval=$enable_libtool_lock;
5805 fi
5806
5807 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5808
5809 # Some flags need to be propagated to the compiler or linker for good
5810 # libtool support.
5811 case $host in
5812 ia64-*-hpux*)
5813 # Find out which ABI we are using.
5814 echo 'int i;' > conftest.$ac_ext
5815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5816 (eval $ac_compile) 2>&5
5817 ac_status=$?
5818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5819 test $ac_status = 0; }; then
5820 case `/usr/bin/file conftest.$ac_objext` in
5821 *ELF-32*)
5822 HPUX_IA64_MODE="32"
5823 ;;
5824 *ELF-64*)
5825 HPUX_IA64_MODE="64"
5826 ;;
5827 esac
5828 fi
5829 rm -rf conftest*
5830 ;;
5831 *-*-irix6*)
5832 # Find out which ABI we are using.
5833 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5835 (eval $ac_compile) 2>&5
5836 ac_status=$?
5837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5838 test $ac_status = 0; }; then
5839 if test "$lt_cv_prog_gnu_ld" = yes; then
5840 case `/usr/bin/file conftest.$ac_objext` in
5841 *32-bit*)
5842 LD="${LD-ld} -melf32bsmip"
5843 ;;
5844 *N32*)
5845 LD="${LD-ld} -melf32bmipn32"
5846 ;;
5847 *64-bit*)
5848 LD="${LD-ld} -melf64bmip"
5849 ;;
5850 esac
5851 else
5852 case `/usr/bin/file conftest.$ac_objext` in
5853 *32-bit*)
5854 LD="${LD-ld} -32"
5855 ;;
5856 *N32*)
5857 LD="${LD-ld} -n32"
5858 ;;
5859 *64-bit*)
5860 LD="${LD-ld} -64"
5861 ;;
5862 esac
5863 fi
5864 fi
5865 rm -rf conftest*
5866 ;;
5867
5868 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5869 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5870 # Find out which ABI we are using.
5871 echo 'int i;' > conftest.$ac_ext
5872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5873 (eval $ac_compile) 2>&5
5874 ac_status=$?
5875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5876 test $ac_status = 0; }; then
5877 case `/usr/bin/file conftest.o` in
5878 *32-bit*)
5879 case $host in
5880 x86_64-*kfreebsd*-gnu)
5881 LD="${LD-ld} -m elf_i386_fbsd"
5882 ;;
5883 x86_64-*linux*)
5884 LD="${LD-ld} -m elf_i386"
5885 ;;
5886 ppc64-*linux*|powerpc64-*linux*)
5887 LD="${LD-ld} -m elf32ppclinux"
5888 ;;
5889 s390x-*linux*)
5890 LD="${LD-ld} -m elf_s390"
5891 ;;
5892 sparc64-*linux*)
5893 LD="${LD-ld} -m elf32_sparc"
5894 ;;
5895 esac
5896 ;;
5897 *64-bit*)
5898 case $host in
5899 x86_64-*kfreebsd*-gnu)
5900 LD="${LD-ld} -m elf_x86_64_fbsd"
5901 ;;
5902 x86_64-*linux*)
5903 LD="${LD-ld} -m elf_x86_64"
5904 ;;
5905 ppc*-*linux*|powerpc*-*linux*)
5906 LD="${LD-ld} -m elf64ppc"
5907 ;;
5908 s390*-*linux*|s390*-*tpf*)
5909 LD="${LD-ld} -m elf64_s390"
5910 ;;
5911 sparc*-*linux*)
5912 LD="${LD-ld} -m elf64_sparc"
5913 ;;
5914 esac
5915 ;;
5916 esac
5917 fi
5918 rm -rf conftest*
5919 ;;
5920
5921 *-*-sco3.2v5*)
5922 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5923 SAVE_CFLAGS="$CFLAGS"
5924 CFLAGS="$CFLAGS -belf"
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5926 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5927 if ${lt_cv_cc_needs_belf+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 ac_ext=c
5931 ac_cpp='$CPP $CPPFLAGS'
5932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5935
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5938
5939 int
5940 main ()
5941 {
5942
5943 ;
5944 return 0;
5945 }
5946 _ACEOF
5947 if ac_fn_c_try_link "$LINENO"; then :
5948 lt_cv_cc_needs_belf=yes
5949 else
5950 lt_cv_cc_needs_belf=no
5951 fi
5952 rm -f core conftest.err conftest.$ac_objext \
5953 conftest$ac_exeext conftest.$ac_ext
5954 ac_ext=c
5955 ac_cpp='$CPP $CPPFLAGS'
5956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5959
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5962 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5963 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5964 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5965 CFLAGS="$SAVE_CFLAGS"
5966 fi
5967 ;;
5968 *-*solaris*)
5969 # Find out which ABI we are using.
5970 echo 'int i;' > conftest.$ac_ext
5971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5972 (eval $ac_compile) 2>&5
5973 ac_status=$?
5974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975 test $ac_status = 0; }; then
5976 case `/usr/bin/file conftest.o` in
5977 *64-bit*)
5978 case $lt_cv_prog_gnu_ld in
5979 yes*)
5980 case $host in
5981 i?86-*-solaris*)
5982 LD="${LD-ld} -m elf_x86_64"
5983 ;;
5984 sparc*-*-solaris*)
5985 LD="${LD-ld} -m elf64_sparc"
5986 ;;
5987 esac
5988 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5989 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5990 LD="${LD-ld}_sol2"
5991 fi
5992 ;;
5993 *)
5994 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5995 LD="${LD-ld} -64"
5996 fi
5997 ;;
5998 esac
5999 ;;
6000 esac
6001 fi
6002 rm -rf conftest*
6003 ;;
6004 esac
6005
6006 need_locks="$enable_libtool_lock"
6007
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}mt; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if test -n "$MANIFEST_TOOL"; then
6017 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6037 if test -n "$MANIFEST_TOOL"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6039 $as_echo "$MANIFEST_TOOL" >&6; }
6040 else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6043 fi
6044
6045
6046 fi
6047 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6048 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6049 # Extract the first word of "mt", so it can be a program name with args.
6050 set dummy mt; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$ac_ct_MANIFEST_TOOL"; then
6057 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6077 if test -n "$ac_ct_MANIFEST_TOOL"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6079 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6080 else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6086 MANIFEST_TOOL=":"
6087 else
6088 case $cross_compiling:$ac_tool_warned in
6089 yes:)
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6093 esac
6094 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6095 fi
6096 else
6097 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6098 fi
6099
6100 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6102 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6103 if ${lt_cv_path_mainfest_tool+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 lt_cv_path_mainfest_tool=no
6107 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6108 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6109 cat conftest.err >&5
6110 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6111 lt_cv_path_mainfest_tool=yes
6112 fi
6113 rm -f conftest*
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6116 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6117 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6118 MANIFEST_TOOL=:
6119 fi
6120
6121
6122
6123
6124
6125
6126 case $host_os in
6127 rhapsody* | darwin*)
6128 if test -n "$ac_tool_prefix"; then
6129 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6130 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 if test -n "$DSYMUTIL"; then
6137 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6157 if test -n "$DSYMUTIL"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6159 $as_echo "$DSYMUTIL" >&6; }
6160 else
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6163 fi
6164
6165
6166 fi
6167 if test -z "$ac_cv_prog_DSYMUTIL"; then
6168 ac_ct_DSYMUTIL=$DSYMUTIL
6169 # Extract the first word of "dsymutil", so it can be a program name with args.
6170 set dummy dsymutil; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 if test -n "$ac_ct_DSYMUTIL"; then
6177 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190 done
6191 done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6197 if test -n "$ac_ct_DSYMUTIL"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6199 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6200 else
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6204
6205 if test "x$ac_ct_DSYMUTIL" = x; then
6206 DSYMUTIL=":"
6207 else
6208 case $cross_compiling:$ac_tool_warned in
6209 yes:)
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6212 ac_tool_warned=yes ;;
6213 esac
6214 DSYMUTIL=$ac_ct_DSYMUTIL
6215 fi
6216 else
6217 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6218 fi
6219
6220 if test -n "$ac_tool_prefix"; then
6221 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6222 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if ${ac_cv_prog_NMEDIT+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 if test -n "$NMEDIT"; then
6229 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 NMEDIT=$ac_cv_prog_NMEDIT
6249 if test -n "$NMEDIT"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6251 $as_echo "$NMEDIT" >&6; }
6252 else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257
6258 fi
6259 if test -z "$ac_cv_prog_NMEDIT"; then
6260 ac_ct_NMEDIT=$NMEDIT
6261 # Extract the first word of "nmedit", so it can be a program name with args.
6262 set dummy nmedit; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 if test -n "$ac_ct_NMEDIT"; then
6269 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6273 do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6281 fi
6282 done
6283 done
6284 IFS=$as_save_IFS
6285
6286 fi
6287 fi
6288 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6289 if test -n "$ac_ct_NMEDIT"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6291 $as_echo "$ac_ct_NMEDIT" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6295 fi
6296
6297 if test "x$ac_ct_NMEDIT" = x; then
6298 NMEDIT=":"
6299 else
6300 case $cross_compiling:$ac_tool_warned in
6301 yes:)
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6304 ac_tool_warned=yes ;;
6305 esac
6306 NMEDIT=$ac_ct_NMEDIT
6307 fi
6308 else
6309 NMEDIT="$ac_cv_prog_NMEDIT"
6310 fi
6311
6312 if test -n "$ac_tool_prefix"; then
6313 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6314 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if ${ac_cv_prog_LIPO+:} false; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 if test -n "$LIPO"; then
6321 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 LIPO=$ac_cv_prog_LIPO
6341 if test -n "$LIPO"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6343 $as_echo "$LIPO" >&6; }
6344 else
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349
6350 fi
6351 if test -z "$ac_cv_prog_LIPO"; then
6352 ac_ct_LIPO=$LIPO
6353 # Extract the first word of "lipo", so it can be a program name with args.
6354 set dummy lipo; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 if test -n "$ac_ct_LIPO"; then
6361 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_ac_ct_LIPO="lipo"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6381 if test -n "$ac_ct_LIPO"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6383 $as_echo "$ac_ct_LIPO" >&6; }
6384 else
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389 if test "x$ac_ct_LIPO" = x; then
6390 LIPO=":"
6391 else
6392 case $cross_compiling:$ac_tool_warned in
6393 yes:)
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6397 esac
6398 LIPO=$ac_ct_LIPO
6399 fi
6400 else
6401 LIPO="$ac_cv_prog_LIPO"
6402 fi
6403
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}otool; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_prog_OTOOL+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 if test -n "$OTOOL"; then
6413 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6422 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6425 fi
6426 done
6427 done
6428 IFS=$as_save_IFS
6429
6430 fi
6431 fi
6432 OTOOL=$ac_cv_prog_OTOOL
6433 if test -n "$OTOOL"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6435 $as_echo "$OTOOL" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6439 fi
6440
6441
6442 fi
6443 if test -z "$ac_cv_prog_OTOOL"; then
6444 ac_ct_OTOOL=$OTOOL
6445 # Extract the first word of "otool", so it can be a program name with args.
6446 set dummy otool; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$ac_ct_OTOOL"; then
6453 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_ac_ct_OTOOL="otool"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6473 if test -n "$ac_ct_OTOOL"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6475 $as_echo "$ac_ct_OTOOL" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481 if test "x$ac_ct_OTOOL" = x; then
6482 OTOOL=":"
6483 else
6484 case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6489 esac
6490 OTOOL=$ac_ct_OTOOL
6491 fi
6492 else
6493 OTOOL="$ac_cv_prog_OTOOL"
6494 fi
6495
6496 if test -n "$ac_tool_prefix"; then
6497 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6498 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_prog_OTOOL64+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 if test -n "$OTOOL64"; then
6505 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6517 fi
6518 done
6519 done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 OTOOL64=$ac_cv_prog_OTOOL64
6525 if test -n "$OTOOL64"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6527 $as_echo "$OTOOL64" >&6; }
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 fi
6532
6533
6534 fi
6535 if test -z "$ac_cv_prog_OTOOL64"; then
6536 ac_ct_OTOOL64=$OTOOL64
6537 # Extract the first word of "otool64", so it can be a program name with args.
6538 set dummy otool64; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 if test -n "$ac_ct_OTOOL64"; then
6545 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_ac_ct_OTOOL64="otool64"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6557 fi
6558 done
6559 done
6560 IFS=$as_save_IFS
6561
6562 fi
6563 fi
6564 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6565 if test -n "$ac_ct_OTOOL64"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6567 $as_echo "$ac_ct_OTOOL64" >&6; }
6568 else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6571 fi
6572
6573 if test "x$ac_ct_OTOOL64" = x; then
6574 OTOOL64=":"
6575 else
6576 case $cross_compiling:$ac_tool_warned in
6577 yes:)
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580 ac_tool_warned=yes ;;
6581 esac
6582 OTOOL64=$ac_ct_OTOOL64
6583 fi
6584 else
6585 OTOOL64="$ac_cv_prog_OTOOL64"
6586 fi
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6615 $as_echo_n "checking for -single_module linker flag... " >&6; }
6616 if ${lt_cv_apple_cc_single_mod+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 lt_cv_apple_cc_single_mod=no
6620 if test -z "${LT_MULTI_MODULE}"; then
6621 # By default we will add the -single_module flag. You can override
6622 # by either setting the environment variable LT_MULTI_MODULE
6623 # non-empty at configure time, or by adding -multi_module to the
6624 # link flags.
6625 rm -rf libconftest.dylib*
6626 echo "int foo(void){return 1;}" > conftest.c
6627 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6628 -dynamiclib -Wl,-single_module conftest.c" >&5
6629 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6630 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6631 _lt_result=$?
6632 # If there is a non-empty error log, and "single_module"
6633 # appears in it, assume the flag caused a linker warning
6634 if test -s conftest.err && $GREP single_module conftest.err; then
6635 cat conftest.err >&5
6636 # Otherwise, if the output was created with a 0 exit code from
6637 # the compiler, it worked.
6638 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6639 lt_cv_apple_cc_single_mod=yes
6640 else
6641 cat conftest.err >&5
6642 fi
6643 rm -rf libconftest.dylib*
6644 rm -f conftest.*
6645 fi
6646 fi
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6648 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6649
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6651 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6652 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 lt_cv_ld_exported_symbols_list=no
6656 save_LDFLAGS=$LDFLAGS
6657 echo "_main" > conftest.sym
6658 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6661
6662 int
6663 main ()
6664 {
6665
6666 ;
6667 return 0;
6668 }
6669 _ACEOF
6670 if ac_fn_c_try_link "$LINENO"; then :
6671 lt_cv_ld_exported_symbols_list=yes
6672 else
6673 lt_cv_ld_exported_symbols_list=no
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext conftest.$ac_ext
6677 LDFLAGS="$save_LDFLAGS"
6678
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6681 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6682
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6684 $as_echo_n "checking for -force_load linker flag... " >&6; }
6685 if ${lt_cv_ld_force_load+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 lt_cv_ld_force_load=no
6689 cat > conftest.c << _LT_EOF
6690 int forced_loaded() { return 2;}
6691 _LT_EOF
6692 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6693 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6694 echo "$AR cru libconftest.a conftest.o" >&5
6695 $AR cru libconftest.a conftest.o 2>&5
6696 echo "$RANLIB libconftest.a" >&5
6697 $RANLIB libconftest.a 2>&5
6698 cat > conftest.c << _LT_EOF
6699 int main() { return 0;}
6700 _LT_EOF
6701 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6702 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6703 _lt_result=$?
6704 if test -s conftest.err && $GREP force_load conftest.err; then
6705 cat conftest.err >&5
6706 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6707 lt_cv_ld_force_load=yes
6708 else
6709 cat conftest.err >&5
6710 fi
6711 rm -f conftest.err libconftest.a conftest conftest.c
6712 rm -rf conftest.dSYM
6713
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6716 $as_echo "$lt_cv_ld_force_load" >&6; }
6717 case $host_os in
6718 rhapsody* | darwin1.[012])
6719 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6720 darwin1.*)
6721 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6722 darwin*) # darwin 5.x on
6723 # if running on 10.5 or later, the deployment target defaults
6724 # to the OS version, if on x86, and 10.4, the deployment
6725 # target defaults to 10.4. Don't you love it?
6726 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6727 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6728 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6729 10.[012]*)
6730 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6731 10.*)
6732 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6733 esac
6734 ;;
6735 esac
6736 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6737 _lt_dar_single_mod='$single_module'
6738 fi
6739 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6740 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6741 else
6742 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6743 fi
6744 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6745 _lt_dsymutil='~$DSYMUTIL $lib || :'
6746 else
6747 _lt_dsymutil=
6748 fi
6749 ;;
6750 esac
6751
6752 ac_ext=c
6753 ac_cpp='$CPP $CPPFLAGS'
6754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6758 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6759 # On Suns, sometimes $CPP names a directory.
6760 if test -n "$CPP" && test -d "$CPP"; then
6761 CPP=
6762 fi
6763 if test -z "$CPP"; then
6764 if ${ac_cv_prog_CPP+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 # Double quotes because CPP needs to be expanded
6768 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6769 do
6770 ac_preproc_ok=false
6771 for ac_c_preproc_warn_flag in '' yes
6772 do
6773 # Use a header file that comes with gcc, so configuring glibc
6774 # with a fresh cross-compiler works.
6775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6776 # <limits.h> exists even on freestanding compilers.
6777 # On the NeXT, cc -E runs the code through the compiler's parser,
6778 # not just through cpp. "Syntax error" is here to catch this case.
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 #ifdef __STDC__
6782 # include <limits.h>
6783 #else
6784 # include <assert.h>
6785 #endif
6786 Syntax error
6787 _ACEOF
6788 if ac_fn_c_try_cpp "$LINENO"; then :
6789
6790 else
6791 # Broken: fails on valid input.
6792 continue
6793 fi
6794 rm -f conftest.err conftest.i conftest.$ac_ext
6795
6796 # OK, works on sane cases. Now check whether nonexistent headers
6797 # can be detected and how.
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800 #include <ac_nonexistent.h>
6801 _ACEOF
6802 if ac_fn_c_try_cpp "$LINENO"; then :
6803 # Broken: success on invalid input.
6804 continue
6805 else
6806 # Passes both tests.
6807 ac_preproc_ok=:
6808 break
6809 fi
6810 rm -f conftest.err conftest.i conftest.$ac_ext
6811
6812 done
6813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6814 rm -f conftest.i conftest.err conftest.$ac_ext
6815 if $ac_preproc_ok; then :
6816 break
6817 fi
6818
6819 done
6820 ac_cv_prog_CPP=$CPP
6821
6822 fi
6823 CPP=$ac_cv_prog_CPP
6824 else
6825 ac_cv_prog_CPP=$CPP
6826 fi
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6828 $as_echo "$CPP" >&6; }
6829 ac_preproc_ok=false
6830 for ac_c_preproc_warn_flag in '' yes
6831 do
6832 # Use a header file that comes with gcc, so configuring glibc
6833 # with a fresh cross-compiler works.
6834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6835 # <limits.h> exists even on freestanding compilers.
6836 # On the NeXT, cc -E runs the code through the compiler's parser,
6837 # not just through cpp. "Syntax error" is here to catch this case.
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 #ifdef __STDC__
6841 # include <limits.h>
6842 #else
6843 # include <assert.h>
6844 #endif
6845 Syntax error
6846 _ACEOF
6847 if ac_fn_c_try_cpp "$LINENO"; then :
6848
6849 else
6850 # Broken: fails on valid input.
6851 continue
6852 fi
6853 rm -f conftest.err conftest.i conftest.$ac_ext
6854
6855 # OK, works on sane cases. Now check whether nonexistent headers
6856 # can be detected and how.
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <ac_nonexistent.h>
6860 _ACEOF
6861 if ac_fn_c_try_cpp "$LINENO"; then :
6862 # Broken: success on invalid input.
6863 continue
6864 else
6865 # Passes both tests.
6866 ac_preproc_ok=:
6867 break
6868 fi
6869 rm -f conftest.err conftest.i conftest.$ac_ext
6870
6871 done
6872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6873 rm -f conftest.i conftest.err conftest.$ac_ext
6874 if $ac_preproc_ok; then :
6875
6876 else
6877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6879 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6880 See \`config.log' for more details" "$LINENO" 5; }
6881 fi
6882
6883 ac_ext=c
6884 ac_cpp='$CPP $CPPFLAGS'
6885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888
6889
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6891 $as_echo_n "checking for ANSI C header files... " >&6; }
6892 if ${ac_cv_header_stdc+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 #include <stdlib.h>
6898 #include <stdarg.h>
6899 #include <string.h>
6900 #include <float.h>
6901
6902 int
6903 main ()
6904 {
6905
6906 ;
6907 return 0;
6908 }
6909 _ACEOF
6910 if ac_fn_c_try_compile "$LINENO"; then :
6911 ac_cv_header_stdc=yes
6912 else
6913 ac_cv_header_stdc=no
6914 fi
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916
6917 if test $ac_cv_header_stdc = yes; then
6918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 #include <string.h>
6922
6923 _ACEOF
6924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6925 $EGREP "memchr" >/dev/null 2>&1; then :
6926
6927 else
6928 ac_cv_header_stdc=no
6929 fi
6930 rm -f conftest*
6931
6932 fi
6933
6934 if test $ac_cv_header_stdc = yes; then
6935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938 #include <stdlib.h>
6939
6940 _ACEOF
6941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6942 $EGREP "free" >/dev/null 2>&1; then :
6943
6944 else
6945 ac_cv_header_stdc=no
6946 fi
6947 rm -f conftest*
6948
6949 fi
6950
6951 if test $ac_cv_header_stdc = yes; then
6952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6953 if test "$cross_compiling" = yes; then :
6954 :
6955 else
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 #include <ctype.h>
6959 #include <stdlib.h>
6960 #if ((' ' & 0x0FF) == 0x020)
6961 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6962 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6963 #else
6964 # define ISLOWER(c) \
6965 (('a' <= (c) && (c) <= 'i') \
6966 || ('j' <= (c) && (c) <= 'r') \
6967 || ('s' <= (c) && (c) <= 'z'))
6968 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6969 #endif
6970
6971 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6972 int
6973 main ()
6974 {
6975 int i;
6976 for (i = 0; i < 256; i++)
6977 if (XOR (islower (i), ISLOWER (i))
6978 || toupper (i) != TOUPPER (i))
6979 return 2;
6980 return 0;
6981 }
6982 _ACEOF
6983 if ac_fn_c_try_run "$LINENO"; then :
6984
6985 else
6986 ac_cv_header_stdc=no
6987 fi
6988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6989 conftest.$ac_objext conftest.beam conftest.$ac_ext
6990 fi
6991
6992 fi
6993 fi
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6995 $as_echo "$ac_cv_header_stdc" >&6; }
6996 if test $ac_cv_header_stdc = yes; then
6997
6998 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6999
7000 fi
7001
7002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7004 inttypes.h stdint.h unistd.h
7005 do :
7006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7008 "
7009 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7010 cat >>confdefs.h <<_ACEOF
7011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7012 _ACEOF
7013
7014 fi
7015
7016 done
7017
7018
7019 for ac_header in dlfcn.h
7020 do :
7021 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7022 "
7023 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7024 cat >>confdefs.h <<_ACEOF
7025 #define HAVE_DLFCN_H 1
7026 _ACEOF
7027
7028 fi
7029
7030 done
7031
7032
7033
7034
7035
7036 # Set options
7037
7038
7039
7040 enable_dlopen=no
7041
7042
7043 enable_win32_dll=no
7044
7045
7046 # Check whether --enable-shared was given.
7047 if test "${enable_shared+set}" = set; then :
7048 enableval=$enable_shared; p=${PACKAGE-default}
7049 case $enableval in
7050 yes) enable_shared=yes ;;
7051 no) enable_shared=no ;;
7052 *)
7053 enable_shared=no
7054 # Look at the argument we got. We use all the common list separators.
7055 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7056 for pkg in $enableval; do
7057 IFS="$lt_save_ifs"
7058 if test "X$pkg" = "X$p"; then
7059 enable_shared=yes
7060 fi
7061 done
7062 IFS="$lt_save_ifs"
7063 ;;
7064 esac
7065 else
7066 enable_shared=yes
7067 fi
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077 # Check whether --enable-static was given.
7078 if test "${enable_static+set}" = set; then :
7079 enableval=$enable_static; p=${PACKAGE-default}
7080 case $enableval in
7081 yes) enable_static=yes ;;
7082 no) enable_static=no ;;
7083 *)
7084 enable_static=no
7085 # Look at the argument we got. We use all the common list separators.
7086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7087 for pkg in $enableval; do
7088 IFS="$lt_save_ifs"
7089 if test "X$pkg" = "X$p"; then
7090 enable_static=yes
7091 fi
7092 done
7093 IFS="$lt_save_ifs"
7094 ;;
7095 esac
7096 else
7097 enable_static=yes
7098 fi
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 # Check whether --with-pic was given.
7110 if test "${with_pic+set}" = set; then :
7111 withval=$with_pic; lt_p=${PACKAGE-default}
7112 case $withval in
7113 yes|no) pic_mode=$withval ;;
7114 *)
7115 pic_mode=default
7116 # Look at the argument we got. We use all the common list separators.
7117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7118 for lt_pkg in $withval; do
7119 IFS="$lt_save_ifs"
7120 if test "X$lt_pkg" = "X$lt_p"; then
7121 pic_mode=yes
7122 fi
7123 done
7124 IFS="$lt_save_ifs"
7125 ;;
7126 esac
7127 else
7128 pic_mode=default
7129 fi
7130
7131
7132 test -z "$pic_mode" && pic_mode=default
7133
7134
7135
7136
7137
7138
7139
7140 # Check whether --enable-fast-install was given.
7141 if test "${enable_fast_install+set}" = set; then :
7142 enableval=$enable_fast_install; p=${PACKAGE-default}
7143 case $enableval in
7144 yes) enable_fast_install=yes ;;
7145 no) enable_fast_install=no ;;
7146 *)
7147 enable_fast_install=no
7148 # Look at the argument we got. We use all the common list separators.
7149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7150 for pkg in $enableval; do
7151 IFS="$lt_save_ifs"
7152 if test "X$pkg" = "X$p"; then
7153 enable_fast_install=yes
7154 fi
7155 done
7156 IFS="$lt_save_ifs"
7157 ;;
7158 esac
7159 else
7160 enable_fast_install=yes
7161 fi
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173 # This can be used to rebuild libtool when needed
7174 LIBTOOL_DEPS="$ltmain"
7175
7176 # Always use our own libtool.
7177 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208 test -z "$LN_S" && LN_S="ln -s"
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223 if test -n "${ZSH_VERSION+set}" ; then
7224 setopt NO_GLOB_SUBST
7225 fi
7226
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7228 $as_echo_n "checking for objdir... " >&6; }
7229 if ${lt_cv_objdir+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 rm -f .libs 2>/dev/null
7233 mkdir .libs 2>/dev/null
7234 if test -d .libs; then
7235 lt_cv_objdir=.libs
7236 else
7237 # MS-DOS does not allow filenames that begin with a dot.
7238 lt_cv_objdir=_libs
7239 fi
7240 rmdir .libs 2>/dev/null
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7243 $as_echo "$lt_cv_objdir" >&6; }
7244 objdir=$lt_cv_objdir
7245
7246
7247
7248
7249
7250 cat >>confdefs.h <<_ACEOF
7251 #define LT_OBJDIR "$lt_cv_objdir/"
7252 _ACEOF
7253
7254
7255
7256
7257 case $host_os in
7258 aix3*)
7259 # AIX sometimes has problems with the GCC collect2 program. For some
7260 # reason, if we set the COLLECT_NAMES environment variable, the problems
7261 # vanish in a puff of smoke.
7262 if test "X${COLLECT_NAMES+set}" != Xset; then
7263 COLLECT_NAMES=
7264 export COLLECT_NAMES
7265 fi
7266 ;;
7267 esac
7268
7269 # Global variables:
7270 ofile=libtool
7271 can_build_shared=yes
7272
7273 # All known linkers require a `.a' archive for static linking (except MSVC,
7274 # which needs '.lib').
7275 libext=a
7276
7277 with_gnu_ld="$lt_cv_prog_gnu_ld"
7278
7279 old_CC="$CC"
7280 old_CFLAGS="$CFLAGS"
7281
7282 # Set sane defaults for various variables
7283 test -z "$CC" && CC=cc
7284 test -z "$LTCC" && LTCC=$CC
7285 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7286 test -z "$LD" && LD=ld
7287 test -z "$ac_objext" && ac_objext=o
7288
7289 for cc_temp in $compiler""; do
7290 case $cc_temp in
7291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7293 \-*) ;;
7294 *) break;;
7295 esac
7296 done
7297 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7298
7299
7300 # Only perform the check for file, if the check method requires it
7301 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7302 case $deplibs_check_method in
7303 file_magic*)
7304 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7306 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7307 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 case $MAGIC_CMD in
7311 [\\/*] | ?:[\\/]*)
7312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7313 ;;
7314 *)
7315 lt_save_MAGIC_CMD="$MAGIC_CMD"
7316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7318 for ac_dir in $ac_dummy; do
7319 IFS="$lt_save_ifs"
7320 test -z "$ac_dir" && ac_dir=.
7321 if test -f $ac_dir/${ac_tool_prefix}file; then
7322 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7323 if test -n "$file_magic_test_file"; then
7324 case $deplibs_check_method in
7325 "file_magic "*)
7326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7329 $EGREP "$file_magic_regex" > /dev/null; then
7330 :
7331 else
7332 cat <<_LT_EOF 1>&2
7333
7334 *** Warning: the command libtool uses to detect shared libraries,
7335 *** $file_magic_cmd, produces output that libtool cannot recognize.
7336 *** The result is that libtool may fail to recognize shared libraries
7337 *** as such. This will affect the creation of libtool libraries that
7338 *** depend on shared libraries, but programs linked with such libtool
7339 *** libraries will work regardless of this problem. Nevertheless, you
7340 *** may want to report the problem to your system manager and/or to
7341 *** bug-libtool@gnu.org
7342
7343 _LT_EOF
7344 fi ;;
7345 esac
7346 fi
7347 break
7348 fi
7349 done
7350 IFS="$lt_save_ifs"
7351 MAGIC_CMD="$lt_save_MAGIC_CMD"
7352 ;;
7353 esac
7354 fi
7355
7356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7357 if test -n "$MAGIC_CMD"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7359 $as_echo "$MAGIC_CMD" >&6; }
7360 else
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7363 fi
7364
7365
7366
7367
7368
7369 if test -z "$lt_cv_path_MAGIC_CMD"; then
7370 if test -n "$ac_tool_prefix"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7372 $as_echo_n "checking for file... " >&6; }
7373 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 case $MAGIC_CMD in
7377 [\\/*] | ?:[\\/]*)
7378 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7379 ;;
7380 *)
7381 lt_save_MAGIC_CMD="$MAGIC_CMD"
7382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7383 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7384 for ac_dir in $ac_dummy; do
7385 IFS="$lt_save_ifs"
7386 test -z "$ac_dir" && ac_dir=.
7387 if test -f $ac_dir/file; then
7388 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7389 if test -n "$file_magic_test_file"; then
7390 case $deplibs_check_method in
7391 "file_magic "*)
7392 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7395 $EGREP "$file_magic_regex" > /dev/null; then
7396 :
7397 else
7398 cat <<_LT_EOF 1>&2
7399
7400 *** Warning: the command libtool uses to detect shared libraries,
7401 *** $file_magic_cmd, produces output that libtool cannot recognize.
7402 *** The result is that libtool may fail to recognize shared libraries
7403 *** as such. This will affect the creation of libtool libraries that
7404 *** depend on shared libraries, but programs linked with such libtool
7405 *** libraries will work regardless of this problem. Nevertheless, you
7406 *** may want to report the problem to your system manager and/or to
7407 *** bug-libtool@gnu.org
7408
7409 _LT_EOF
7410 fi ;;
7411 esac
7412 fi
7413 break
7414 fi
7415 done
7416 IFS="$lt_save_ifs"
7417 MAGIC_CMD="$lt_save_MAGIC_CMD"
7418 ;;
7419 esac
7420 fi
7421
7422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7423 if test -n "$MAGIC_CMD"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7425 $as_echo "$MAGIC_CMD" >&6; }
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 fi
7430
7431
7432 else
7433 MAGIC_CMD=:
7434 fi
7435 fi
7436
7437 fi
7438 ;;
7439 esac
7440
7441 # Use C for the default configuration in the libtool script
7442
7443 lt_save_CC="$CC"
7444 ac_ext=c
7445 ac_cpp='$CPP $CPPFLAGS'
7446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7449
7450
7451 # Source file extension for C test sources.
7452 ac_ext=c
7453
7454 # Object file extension for compiled C test sources.
7455 objext=o
7456 objext=$objext
7457
7458 # Code to be used in simple compile tests
7459 lt_simple_compile_test_code="int some_variable = 0;"
7460
7461 # Code to be used in simple link tests
7462 lt_simple_link_test_code='int main(){return(0);}'
7463
7464
7465
7466
7467
7468
7469
7470 # If no C compiler was specified, use CC.
7471 LTCC=${LTCC-"$CC"}
7472
7473 # If no C compiler flags were specified, use CFLAGS.
7474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7475
7476 # Allow CC to be a program name with arguments.
7477 compiler=$CC
7478
7479 # Save the default compiler, since it gets overwritten when the other
7480 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7481 compiler_DEFAULT=$CC
7482
7483 # save warnings/boilerplate of simple test code
7484 ac_outfile=conftest.$ac_objext
7485 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7486 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7487 _lt_compiler_boilerplate=`cat conftest.err`
7488 $RM conftest*
7489
7490 ac_outfile=conftest.$ac_objext
7491 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7492 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7493 _lt_linker_boilerplate=`cat conftest.err`
7494 $RM -r conftest*
7495
7496
7497 ## CAVEAT EMPTOR:
7498 ## There is no encapsulation within the following macros, do not change
7499 ## the running order or otherwise move them around unless you know exactly
7500 ## what you are doing...
7501 if test -n "$compiler"; then
7502
7503 lt_prog_compiler_no_builtin_flag=
7504
7505 if test "$GCC" = yes; then
7506 case $cc_basename in
7507 nvcc*)
7508 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7509 *)
7510 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7511 esac
7512
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7514 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7515 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 lt_cv_prog_compiler_rtti_exceptions=no
7519 ac_outfile=conftest.$ac_objext
7520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7521 lt_compiler_flag="-fno-rtti -fno-exceptions"
7522 # Insert the option either (1) after the last *FLAGS variable, or
7523 # (2) before a word containing "conftest.", or (3) at the end.
7524 # Note that $ac_compile itself does not contain backslashes and begins
7525 # with a dollar sign (not a hyphen), so the echo should work correctly.
7526 # The option is referenced via a variable to avoid confusing sed.
7527 lt_compile=`echo "$ac_compile" | $SED \
7528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7530 -e 's:$: $lt_compiler_flag:'`
7531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7532 (eval "$lt_compile" 2>conftest.err)
7533 ac_status=$?
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 if (exit $ac_status) && test -s "$ac_outfile"; then
7537 # The compiler can only warn and ignore the option if not recognized
7538 # So say no if there are warnings other than the usual output.
7539 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7541 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7542 lt_cv_prog_compiler_rtti_exceptions=yes
7543 fi
7544 fi
7545 $RM conftest*
7546
7547 fi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7549 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7550
7551 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7552 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7553 else
7554 :
7555 fi
7556
7557 fi
7558
7559
7560
7561
7562
7563
7564 lt_prog_compiler_wl=
7565 lt_prog_compiler_pic=
7566 lt_prog_compiler_static=
7567
7568
7569 if test "$GCC" = yes; then
7570 lt_prog_compiler_wl='-Wl,'
7571 lt_prog_compiler_static='-static'
7572
7573 case $host_os in
7574 aix*)
7575 # All AIX code is PIC.
7576 if test "$host_cpu" = ia64; then
7577 # AIX 5 now supports IA64 processor
7578 lt_prog_compiler_static='-Bstatic'
7579 fi
7580 ;;
7581
7582 amigaos*)
7583 case $host_cpu in
7584 powerpc)
7585 # see comment about AmigaOS4 .so support
7586 lt_prog_compiler_pic='-fPIC'
7587 ;;
7588 m68k)
7589 # FIXME: we need at least 68020 code to build shared libraries, but
7590 # adding the `-m68020' flag to GCC prevents building anything better,
7591 # like `-m68040'.
7592 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7593 ;;
7594 esac
7595 ;;
7596
7597 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7598 # PIC is the default for these OSes.
7599 ;;
7600
7601 mingw* | cygwin* | pw32* | os2* | cegcc*)
7602 # This hack is so that the source file can tell whether it is being
7603 # built for inclusion in a dll (and should export symbols for example).
7604 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7605 # (--disable-auto-import) libraries
7606 lt_prog_compiler_pic='-DDLL_EXPORT'
7607 ;;
7608
7609 darwin* | rhapsody*)
7610 # PIC is the default on this platform
7611 # Common symbols not allowed in MH_DYLIB files
7612 lt_prog_compiler_pic='-fno-common'
7613 ;;
7614
7615 haiku*)
7616 # PIC is the default for Haiku.
7617 # The "-static" flag exists, but is broken.
7618 lt_prog_compiler_static=
7619 ;;
7620
7621 hpux*)
7622 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7623 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7624 # sets the default TLS model and affects inlining.
7625 case $host_cpu in
7626 hppa*64*)
7627 # +Z the default
7628 ;;
7629 *)
7630 lt_prog_compiler_pic='-fPIC'
7631 ;;
7632 esac
7633 ;;
7634
7635 interix[3-9]*)
7636 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7637 # Instead, we relocate shared libraries at runtime.
7638 ;;
7639
7640 msdosdjgpp*)
7641 # Just because we use GCC doesn't mean we suddenly get shared libraries
7642 # on systems that don't support them.
7643 lt_prog_compiler_can_build_shared=no
7644 enable_shared=no
7645 ;;
7646
7647 *nto* | *qnx*)
7648 # QNX uses GNU C++, but need to define -shared option too, otherwise
7649 # it will coredump.
7650 lt_prog_compiler_pic='-fPIC -shared'
7651 ;;
7652
7653 sysv4*MP*)
7654 if test -d /usr/nec; then
7655 lt_prog_compiler_pic=-Kconform_pic
7656 fi
7657 ;;
7658
7659 *)
7660 lt_prog_compiler_pic='-fPIC'
7661 ;;
7662 esac
7663
7664 case $cc_basename in
7665 nvcc*) # Cuda Compiler Driver 2.2
7666 lt_prog_compiler_wl='-Xlinker '
7667 if test -n "$lt_prog_compiler_pic"; then
7668 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7669 fi
7670 ;;
7671 esac
7672 else
7673 # PORTME Check for flag to pass linker flags through the system compiler.
7674 case $host_os in
7675 aix*)
7676 lt_prog_compiler_wl='-Wl,'
7677 if test "$host_cpu" = ia64; then
7678 # AIX 5 now supports IA64 processor
7679 lt_prog_compiler_static='-Bstatic'
7680 else
7681 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7682 fi
7683 ;;
7684
7685 mingw* | cygwin* | pw32* | os2* | cegcc*)
7686 # This hack is so that the source file can tell whether it is being
7687 # built for inclusion in a dll (and should export symbols for example).
7688 lt_prog_compiler_pic='-DDLL_EXPORT'
7689 ;;
7690
7691 hpux9* | hpux10* | hpux11*)
7692 lt_prog_compiler_wl='-Wl,'
7693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7694 # not for PA HP-UX.
7695 case $host_cpu in
7696 hppa*64*|ia64*)
7697 # +Z the default
7698 ;;
7699 *)
7700 lt_prog_compiler_pic='+Z'
7701 ;;
7702 esac
7703 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7704 lt_prog_compiler_static='${wl}-a ${wl}archive'
7705 ;;
7706
7707 irix5* | irix6* | nonstopux*)
7708 lt_prog_compiler_wl='-Wl,'
7709 # PIC (with -KPIC) is the default.
7710 lt_prog_compiler_static='-non_shared'
7711 ;;
7712
7713 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7714 case $cc_basename in
7715 # old Intel for x86_64 which still supported -KPIC.
7716 ecc*)
7717 lt_prog_compiler_wl='-Wl,'
7718 lt_prog_compiler_pic='-KPIC'
7719 lt_prog_compiler_static='-static'
7720 ;;
7721 # icc used to be incompatible with GCC.
7722 # ICC 10 doesn't accept -KPIC any more.
7723 icc* | ifort*)
7724 lt_prog_compiler_wl='-Wl,'
7725 lt_prog_compiler_pic='-fPIC'
7726 lt_prog_compiler_static='-static'
7727 ;;
7728 # Lahey Fortran 8.1.
7729 lf95*)
7730 lt_prog_compiler_wl='-Wl,'
7731 lt_prog_compiler_pic='--shared'
7732 lt_prog_compiler_static='--static'
7733 ;;
7734 nagfor*)
7735 # NAG Fortran compiler
7736 lt_prog_compiler_wl='-Wl,-Wl,,'
7737 lt_prog_compiler_pic='-PIC'
7738 lt_prog_compiler_static='-Bstatic'
7739 ;;
7740 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7741 # Portland Group compilers (*not* the Pentium gcc compiler,
7742 # which looks to be a dead project)
7743 lt_prog_compiler_wl='-Wl,'
7744 lt_prog_compiler_pic='-fpic'
7745 lt_prog_compiler_static='-Bstatic'
7746 ;;
7747 ccc*)
7748 lt_prog_compiler_wl='-Wl,'
7749 # All Alpha code is PIC.
7750 lt_prog_compiler_static='-non_shared'
7751 ;;
7752 xl* | bgxl* | bgf* | mpixl*)
7753 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7754 lt_prog_compiler_wl='-Wl,'
7755 lt_prog_compiler_pic='-qpic'
7756 lt_prog_compiler_static='-qstaticlink'
7757 ;;
7758 *)
7759 case `$CC -V 2>&1 | sed 5q` in
7760 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7761 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7762 lt_prog_compiler_pic='-KPIC'
7763 lt_prog_compiler_static='-Bstatic'
7764 lt_prog_compiler_wl=''
7765 ;;
7766 *Sun\ F* | *Sun*Fortran*)
7767 lt_prog_compiler_pic='-KPIC'
7768 lt_prog_compiler_static='-Bstatic'
7769 lt_prog_compiler_wl='-Qoption ld '
7770 ;;
7771 *Sun\ C*)
7772 # Sun C 5.9
7773 lt_prog_compiler_pic='-KPIC'
7774 lt_prog_compiler_static='-Bstatic'
7775 lt_prog_compiler_wl='-Wl,'
7776 ;;
7777 *Intel*\ [CF]*Compiler*)
7778 lt_prog_compiler_wl='-Wl,'
7779 lt_prog_compiler_pic='-fPIC'
7780 lt_prog_compiler_static='-static'
7781 ;;
7782 *Portland\ Group*)
7783 lt_prog_compiler_wl='-Wl,'
7784 lt_prog_compiler_pic='-fpic'
7785 lt_prog_compiler_static='-Bstatic'
7786 ;;
7787 esac
7788 ;;
7789 esac
7790 ;;
7791
7792 newsos6)
7793 lt_prog_compiler_pic='-KPIC'
7794 lt_prog_compiler_static='-Bstatic'
7795 ;;
7796
7797 *nto* | *qnx*)
7798 # QNX uses GNU C++, but need to define -shared option too, otherwise
7799 # it will coredump.
7800 lt_prog_compiler_pic='-fPIC -shared'
7801 ;;
7802
7803 osf3* | osf4* | osf5*)
7804 lt_prog_compiler_wl='-Wl,'
7805 # All OSF/1 code is PIC.
7806 lt_prog_compiler_static='-non_shared'
7807 ;;
7808
7809 rdos*)
7810 lt_prog_compiler_static='-non_shared'
7811 ;;
7812
7813 solaris*)
7814 lt_prog_compiler_pic='-KPIC'
7815 lt_prog_compiler_static='-Bstatic'
7816 case $cc_basename in
7817 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7818 lt_prog_compiler_wl='-Qoption ld ';;
7819 *)
7820 lt_prog_compiler_wl='-Wl,';;
7821 esac
7822 ;;
7823
7824 sunos4*)
7825 lt_prog_compiler_wl='-Qoption ld '
7826 lt_prog_compiler_pic='-PIC'
7827 lt_prog_compiler_static='-Bstatic'
7828 ;;
7829
7830 sysv4 | sysv4.2uw2* | sysv4.3*)
7831 lt_prog_compiler_wl='-Wl,'
7832 lt_prog_compiler_pic='-KPIC'
7833 lt_prog_compiler_static='-Bstatic'
7834 ;;
7835
7836 sysv4*MP*)
7837 if test -d /usr/nec ;then
7838 lt_prog_compiler_pic='-Kconform_pic'
7839 lt_prog_compiler_static='-Bstatic'
7840 fi
7841 ;;
7842
7843 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7844 lt_prog_compiler_wl='-Wl,'
7845 lt_prog_compiler_pic='-KPIC'
7846 lt_prog_compiler_static='-Bstatic'
7847 ;;
7848
7849 unicos*)
7850 lt_prog_compiler_wl='-Wl,'
7851 lt_prog_compiler_can_build_shared=no
7852 ;;
7853
7854 uts4*)
7855 lt_prog_compiler_pic='-pic'
7856 lt_prog_compiler_static='-Bstatic'
7857 ;;
7858
7859 *)
7860 lt_prog_compiler_can_build_shared=no
7861 ;;
7862 esac
7863 fi
7864
7865 case $host_os in
7866 # For platforms which do not support PIC, -DPIC is meaningless:
7867 *djgpp*)
7868 lt_prog_compiler_pic=
7869 ;;
7870 *)
7871 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7872 ;;
7873 esac
7874
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7876 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7877 if ${lt_cv_prog_compiler_pic+:} false; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7881 fi
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7883 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7884 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7885
7886 #
7887 # Check to make sure the PIC flag actually works.
7888 #
7889 if test -n "$lt_prog_compiler_pic"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7891 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7892 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 lt_cv_prog_compiler_pic_works=no
7896 ac_outfile=conftest.$ac_objext
7897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7898 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7899 # Insert the option either (1) after the last *FLAGS variable, or
7900 # (2) before a word containing "conftest.", or (3) at the end.
7901 # Note that $ac_compile itself does not contain backslashes and begins
7902 # with a dollar sign (not a hyphen), so the echo should work correctly.
7903 # The option is referenced via a variable to avoid confusing sed.
7904 lt_compile=`echo "$ac_compile" | $SED \
7905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7907 -e 's:$: $lt_compiler_flag:'`
7908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7909 (eval "$lt_compile" 2>conftest.err)
7910 ac_status=$?
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 if (exit $ac_status) && test -s "$ac_outfile"; then
7914 # The compiler can only warn and ignore the option if not recognized
7915 # So say no if there are warnings other than the usual output.
7916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7919 lt_cv_prog_compiler_pic_works=yes
7920 fi
7921 fi
7922 $RM conftest*
7923
7924 fi
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7926 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7927
7928 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7929 case $lt_prog_compiler_pic in
7930 "" | " "*) ;;
7931 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7932 esac
7933 else
7934 lt_prog_compiler_pic=
7935 lt_prog_compiler_can_build_shared=no
7936 fi
7937
7938 fi
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950 #
7951 # Check to make sure the static flag actually works.
7952 #
7953 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7955 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7956 if ${lt_cv_prog_compiler_static_works+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 lt_cv_prog_compiler_static_works=no
7960 save_LDFLAGS="$LDFLAGS"
7961 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7962 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7963 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7964 # The linker can only warn and ignore the option if not recognized
7965 # So say no if there are warnings
7966 if test -s conftest.err; then
7967 # Append any errors to the config.log.
7968 cat conftest.err 1>&5
7969 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7971 if diff conftest.exp conftest.er2 >/dev/null; then
7972 lt_cv_prog_compiler_static_works=yes
7973 fi
7974 else
7975 lt_cv_prog_compiler_static_works=yes
7976 fi
7977 fi
7978 $RM -r conftest*
7979 LDFLAGS="$save_LDFLAGS"
7980
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7983 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7984
7985 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7986 :
7987 else
7988 lt_prog_compiler_static=
7989 fi
7990
7991
7992
7993
7994
7995
7996
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7998 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7999 if ${lt_cv_prog_compiler_c_o+:} false; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 lt_cv_prog_compiler_c_o=no
8003 $RM -r conftest 2>/dev/null
8004 mkdir conftest
8005 cd conftest
8006 mkdir out
8007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8008
8009 lt_compiler_flag="-o out/conftest2.$ac_objext"
8010 # Insert the option either (1) after the last *FLAGS variable, or
8011 # (2) before a word containing "conftest.", or (3) at the end.
8012 # Note that $ac_compile itself does not contain backslashes and begins
8013 # with a dollar sign (not a hyphen), so the echo should work correctly.
8014 lt_compile=`echo "$ac_compile" | $SED \
8015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8017 -e 's:$: $lt_compiler_flag:'`
8018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8019 (eval "$lt_compile" 2>out/conftest.err)
8020 ac_status=$?
8021 cat out/conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8024 then
8025 # The compiler can only warn and ignore the option if not recognized
8026 # So say no if there are warnings
8027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8030 lt_cv_prog_compiler_c_o=yes
8031 fi
8032 fi
8033 chmod u+w . 2>&5
8034 $RM conftest*
8035 # SGI C++ compiler will create directory out/ii_files/ for
8036 # template instantiation
8037 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8038 $RM out/* && rmdir out
8039 cd ..
8040 $RM -r conftest
8041 $RM conftest*
8042
8043 fi
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8045 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8046
8047
8048
8049
8050
8051
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8053 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8054 if ${lt_cv_prog_compiler_c_o+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 lt_cv_prog_compiler_c_o=no
8058 $RM -r conftest 2>/dev/null
8059 mkdir conftest
8060 cd conftest
8061 mkdir out
8062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8063
8064 lt_compiler_flag="-o out/conftest2.$ac_objext"
8065 # Insert the option either (1) after the last *FLAGS variable, or
8066 # (2) before a word containing "conftest.", or (3) at the end.
8067 # Note that $ac_compile itself does not contain backslashes and begins
8068 # with a dollar sign (not a hyphen), so the echo should work correctly.
8069 lt_compile=`echo "$ac_compile" | $SED \
8070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8072 -e 's:$: $lt_compiler_flag:'`
8073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8074 (eval "$lt_compile" 2>out/conftest.err)
8075 ac_status=$?
8076 cat out/conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8079 then
8080 # The compiler can only warn and ignore the option if not recognized
8081 # So say no if there are warnings
8082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8083 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8084 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8085 lt_cv_prog_compiler_c_o=yes
8086 fi
8087 fi
8088 chmod u+w . 2>&5
8089 $RM conftest*
8090 # SGI C++ compiler will create directory out/ii_files/ for
8091 # template instantiation
8092 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8093 $RM out/* && rmdir out
8094 cd ..
8095 $RM -r conftest
8096 $RM conftest*
8097
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8100 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8101
8102
8103
8104
8105 hard_links="nottested"
8106 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8107 # do not overwrite the value of need_locks provided by the user
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8109 $as_echo_n "checking if we can lock with hard links... " >&6; }
8110 hard_links=yes
8111 $RM conftest*
8112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8113 touch conftest.a
8114 ln conftest.a conftest.b 2>&5 || hard_links=no
8115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8117 $as_echo "$hard_links" >&6; }
8118 if test "$hard_links" = no; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8120 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8121 need_locks=warn
8122 fi
8123 else
8124 need_locks=no
8125 fi
8126
8127
8128
8129
8130
8131
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8133 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8134
8135 runpath_var=
8136 allow_undefined_flag=
8137 always_export_symbols=no
8138 archive_cmds=
8139 archive_expsym_cmds=
8140 compiler_needs_object=no
8141 enable_shared_with_static_runtimes=no
8142 export_dynamic_flag_spec=
8143 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8144 hardcode_automatic=no
8145 hardcode_direct=no
8146 hardcode_direct_absolute=no
8147 hardcode_libdir_flag_spec=
8148 hardcode_libdir_separator=
8149 hardcode_minus_L=no
8150 hardcode_shlibpath_var=unsupported
8151 inherit_rpath=no
8152 link_all_deplibs=unknown
8153 module_cmds=
8154 module_expsym_cmds=
8155 old_archive_from_new_cmds=
8156 old_archive_from_expsyms_cmds=
8157 thread_safe_flag_spec=
8158 whole_archive_flag_spec=
8159 # include_expsyms should be a list of space-separated symbols to be *always*
8160 # included in the symbol list
8161 include_expsyms=
8162 # exclude_expsyms can be an extended regexp of symbols to exclude
8163 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8164 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8165 # as well as any symbol that contains `d'.
8166 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8167 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8168 # platforms (ab)use it in PIC code, but their linkers get confused if
8169 # the symbol is explicitly referenced. Since portable code cannot
8170 # rely on this symbol name, it's probably fine to never include it in
8171 # preloaded symbol tables.
8172 # Exclude shared library initialization/finalization symbols.
8173 extract_expsyms_cmds=
8174
8175 case $host_os in
8176 cygwin* | mingw* | pw32* | cegcc*)
8177 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8178 # When not using gcc, we currently assume that we are using
8179 # Microsoft Visual C++.
8180 if test "$GCC" != yes; then
8181 with_gnu_ld=no
8182 fi
8183 ;;
8184 interix*)
8185 # we just hope/assume this is gcc and not c89 (= MSVC++)
8186 with_gnu_ld=yes
8187 ;;
8188 openbsd*)
8189 with_gnu_ld=no
8190 ;;
8191 linux* | k*bsd*-gnu | gnu*)
8192 link_all_deplibs=no
8193 ;;
8194 esac
8195
8196 ld_shlibs=yes
8197
8198 # On some targets, GNU ld is compatible enough with the native linker
8199 # that we're better off using the native interface for both.
8200 lt_use_gnu_ld_interface=no
8201 if test "$with_gnu_ld" = yes; then
8202 case $host_os in
8203 aix*)
8204 # The AIX port of GNU ld has always aspired to compatibility
8205 # with the native linker. However, as the warning in the GNU ld
8206 # block says, versions before 2.19.5* couldn't really create working
8207 # shared libraries, regardless of the interface used.
8208 case `$LD -v 2>&1` in
8209 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8210 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8211 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8212 *)
8213 lt_use_gnu_ld_interface=yes
8214 ;;
8215 esac
8216 ;;
8217 *)
8218 lt_use_gnu_ld_interface=yes
8219 ;;
8220 esac
8221 fi
8222
8223 if test "$lt_use_gnu_ld_interface" = yes; then
8224 # If archive_cmds runs LD, not CC, wlarc should be empty
8225 wlarc='${wl}'
8226
8227 # Set some defaults for GNU ld with shared library support. These
8228 # are reset later if shared libraries are not supported. Putting them
8229 # here allows them to be overridden if necessary.
8230 runpath_var=LD_RUN_PATH
8231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8232 export_dynamic_flag_spec='${wl}--export-dynamic'
8233 # ancient GNU ld didn't support --whole-archive et. al.
8234 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8235 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8236 else
8237 whole_archive_flag_spec=
8238 fi
8239 supports_anon_versioning=no
8240 case `$LD -v 2>&1` in
8241 *GNU\ gold*) supports_anon_versioning=yes ;;
8242 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8243 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8244 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8245 *\ 2.11.*) ;; # other 2.11 versions
8246 *) supports_anon_versioning=yes ;;
8247 esac
8248
8249 # See if GNU ld supports shared libraries.
8250 case $host_os in
8251 aix[3-9]*)
8252 # On AIX/PPC, the GNU linker is very broken
8253 if test "$host_cpu" != ia64; then
8254 ld_shlibs=no
8255 cat <<_LT_EOF 1>&2
8256
8257 *** Warning: the GNU linker, at least up to release 2.19, is reported
8258 *** to be unable to reliably create shared libraries on AIX.
8259 *** Therefore, libtool is disabling shared libraries support. If you
8260 *** really care for shared libraries, you may want to install binutils
8261 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8262 *** You will then need to restart the configuration process.
8263
8264 _LT_EOF
8265 fi
8266 ;;
8267
8268 amigaos*)
8269 case $host_cpu in
8270 powerpc)
8271 # see comment about AmigaOS4 .so support
8272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8273 archive_expsym_cmds=''
8274 ;;
8275 m68k)
8276 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)'
8277 hardcode_libdir_flag_spec='-L$libdir'
8278 hardcode_minus_L=yes
8279 ;;
8280 esac
8281 ;;
8282
8283 beos*)
8284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8285 allow_undefined_flag=unsupported
8286 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8287 # support --undefined. This deserves some investigation. FIXME
8288 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8289 else
8290 ld_shlibs=no
8291 fi
8292 ;;
8293
8294 cygwin* | mingw* | pw32* | cegcc*)
8295 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8296 # as there is no search path for DLLs.
8297 hardcode_libdir_flag_spec='-L$libdir'
8298 export_dynamic_flag_spec='${wl}--export-all-symbols'
8299 allow_undefined_flag=unsupported
8300 always_export_symbols=no
8301 enable_shared_with_static_runtimes=yes
8302 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'
8303 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8304
8305 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8307 # If the export-symbols file already is a .def file (1st line
8308 # is EXPORTS), use it as is; otherwise, prepend...
8309 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8310 cp $export_symbols $output_objdir/$soname.def;
8311 else
8312 echo EXPORTS > $output_objdir/$soname.def;
8313 cat $export_symbols >> $output_objdir/$soname.def;
8314 fi~
8315 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8316 else
8317 ld_shlibs=no
8318 fi
8319 ;;
8320
8321 haiku*)
8322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8323 link_all_deplibs=yes
8324 ;;
8325
8326 interix[3-9]*)
8327 hardcode_direct=no
8328 hardcode_shlibpath_var=no
8329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8330 export_dynamic_flag_spec='${wl}-E'
8331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8332 # Instead, shared libraries are loaded at an image base (0x10000000 by
8333 # default) and relocated if they conflict, which is a slow very memory
8334 # consuming and fragmenting process. To avoid this, we pick a random,
8335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8338 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'
8339 ;;
8340
8341 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8342 tmp_diet=no
8343 if test "$host_os" = linux-dietlibc; then
8344 case $cc_basename in
8345 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8346 esac
8347 fi
8348 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8349 && test "$tmp_diet" = no
8350 then
8351 tmp_addflag=' $pic_flag'
8352 tmp_sharedflag='-shared'
8353 case $cc_basename,$host_cpu in
8354 pgcc*) # Portland Group C compiler
8355 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'
8356 tmp_addflag=' $pic_flag'
8357 ;;
8358 pgf77* | pgf90* | pgf95* | pgfortran*)
8359 # Portland Group f77 and f90 compilers
8360 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'
8361 tmp_addflag=' $pic_flag -Mnomain' ;;
8362 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8363 tmp_addflag=' -i_dynamic' ;;
8364 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8365 tmp_addflag=' -i_dynamic -nofor_main' ;;
8366 ifc* | ifort*) # Intel Fortran compiler
8367 tmp_addflag=' -nofor_main' ;;
8368 lf95*) # Lahey Fortran 8.1
8369 whole_archive_flag_spec=
8370 tmp_sharedflag='--shared' ;;
8371 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8372 tmp_sharedflag='-qmkshrobj'
8373 tmp_addflag= ;;
8374 nvcc*) # Cuda Compiler Driver 2.2
8375 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'
8376 compiler_needs_object=yes
8377 ;;
8378 esac
8379 case `$CC -V 2>&1 | sed 5q` in
8380 *Sun\ C*) # Sun C 5.9
8381 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'
8382 compiler_needs_object=yes
8383 tmp_sharedflag='-G' ;;
8384 *Sun\ F*) # Sun Fortran 8.3
8385 tmp_sharedflag='-G' ;;
8386 esac
8387 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8388
8389 if test "x$supports_anon_versioning" = xyes; then
8390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8392 echo "local: *; };" >> $output_objdir/$libname.ver~
8393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8394 fi
8395
8396 case $cc_basename in
8397 xlf* | bgf* | bgxlf* | mpixlf*)
8398 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8399 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8401 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8402 if test "x$supports_anon_versioning" = xyes; then
8403 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8404 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8405 echo "local: *; };" >> $output_objdir/$libname.ver~
8406 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8407 fi
8408 ;;
8409 esac
8410 else
8411 ld_shlibs=no
8412 fi
8413 ;;
8414
8415 netbsd* | netbsdelf*-gnu)
8416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8417 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8418 wlarc=
8419 else
8420 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8422 fi
8423 ;;
8424
8425 solaris*)
8426 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8427 ld_shlibs=no
8428 cat <<_LT_EOF 1>&2
8429
8430 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8431 *** create shared libraries on Solaris systems. Therefore, libtool
8432 *** is disabling shared libraries support. We urge you to upgrade GNU
8433 *** binutils to release 2.9.1 or newer. Another option is to modify
8434 *** your PATH or compiler configuration so that the native linker is
8435 *** used, and then restart.
8436
8437 _LT_EOF
8438 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8439 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8440 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8441 else
8442 ld_shlibs=no
8443 fi
8444 ;;
8445
8446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8447 case `$LD -v 2>&1` in
8448 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8449 ld_shlibs=no
8450 cat <<_LT_EOF 1>&2
8451
8452 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8453 *** reliably create shared libraries on SCO systems. Therefore, libtool
8454 *** is disabling shared libraries support. We urge you to upgrade GNU
8455 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8456 *** your PATH or compiler configuration so that the native linker is
8457 *** used, and then restart.
8458
8459 _LT_EOF
8460 ;;
8461 *)
8462 # For security reasons, it is highly recommended that you always
8463 # use absolute paths for naming shared libraries, and exclude the
8464 # DT_RUNPATH tag from executables and libraries. But doing so
8465 # requires that you compile everything twice, which is a pain.
8466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8470 else
8471 ld_shlibs=no
8472 fi
8473 ;;
8474 esac
8475 ;;
8476
8477 sunos4*)
8478 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8479 wlarc=
8480 hardcode_direct=yes
8481 hardcode_shlibpath_var=no
8482 ;;
8483
8484 *)
8485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8486 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8487 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8488 else
8489 ld_shlibs=no
8490 fi
8491 ;;
8492 esac
8493
8494 if test "$ld_shlibs" = no; then
8495 runpath_var=
8496 hardcode_libdir_flag_spec=
8497 export_dynamic_flag_spec=
8498 whole_archive_flag_spec=
8499 fi
8500 else
8501 # PORTME fill in a description of your system's linker (not GNU ld)
8502 case $host_os in
8503 aix3*)
8504 allow_undefined_flag=unsupported
8505 always_export_symbols=yes
8506 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'
8507 # Note: this linker hardcodes the directories in LIBPATH if there
8508 # are no directories specified by -L.
8509 hardcode_minus_L=yes
8510 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8511 # Neither direct hardcoding nor static linking is supported with a
8512 # broken collect2.
8513 hardcode_direct=unsupported
8514 fi
8515 ;;
8516
8517 aix[4-9]*)
8518 if test "$host_cpu" = ia64; then
8519 # On IA64, the linker does run time linking by default, so we don't
8520 # have to do anything special.
8521 aix_use_runtimelinking=no
8522 exp_sym_flag='-Bexport'
8523 no_entry_flag=""
8524 else
8525 # If we're using GNU nm, then we don't want the "-C" option.
8526 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8527 # Also, AIX nm treats weak defined symbols like other global
8528 # defined symbols, whereas GNU nm marks them as "W".
8529 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8530 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'
8531 else
8532 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'
8533 fi
8534 aix_use_runtimelinking=no
8535
8536 # Test if we are trying to use run time linking or normal
8537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8538 # need to do runtime linking.
8539 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8540 for ld_flag in $LDFLAGS; do
8541 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8542 aix_use_runtimelinking=yes
8543 break
8544 fi
8545 done
8546 ;;
8547 esac
8548
8549 exp_sym_flag='-bexport'
8550 no_entry_flag='-bnoentry'
8551 fi
8552
8553 # When large executables or shared objects are built, AIX ld can
8554 # have problems creating the table of contents. If linking a library
8555 # or program results in "error TOC overflow" add -mminimal-toc to
8556 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8557 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8558
8559 archive_cmds=''
8560 hardcode_direct=yes
8561 hardcode_direct_absolute=yes
8562 hardcode_libdir_separator=':'
8563 link_all_deplibs=yes
8564 file_list_spec='${wl}-f,'
8565
8566 if test "$GCC" = yes; then
8567 case $host_os in aix4.[012]|aix4.[012].*)
8568 # We only want to do this on AIX 4.2 and lower, the check
8569 # below for broken collect2 doesn't work under 4.3+
8570 collect2name=`${CC} -print-prog-name=collect2`
8571 if test -f "$collect2name" &&
8572 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8573 then
8574 # We have reworked collect2
8575 :
8576 else
8577 # We have old collect2
8578 hardcode_direct=unsupported
8579 # It fails to find uninstalled libraries when the uninstalled
8580 # path is not listed in the libpath. Setting hardcode_minus_L
8581 # to unsupported forces relinking
8582 hardcode_minus_L=yes
8583 hardcode_libdir_flag_spec='-L$libdir'
8584 hardcode_libdir_separator=
8585 fi
8586 ;;
8587 esac
8588 shared_flag='-shared'
8589 if test "$aix_use_runtimelinking" = yes; then
8590 shared_flag="$shared_flag "'${wl}-G'
8591 fi
8592 link_all_deplibs=no
8593 else
8594 # not using gcc
8595 if test "$host_cpu" = ia64; then
8596 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8597 # chokes on -Wl,-G. The following line is correct:
8598 shared_flag='-G'
8599 else
8600 if test "$aix_use_runtimelinking" = yes; then
8601 shared_flag='${wl}-G'
8602 else
8603 shared_flag='${wl}-bM:SRE'
8604 fi
8605 fi
8606 fi
8607
8608 export_dynamic_flag_spec='${wl}-bexpall'
8609 # It seems that -bexpall does not export symbols beginning with
8610 # underscore (_), so it is better to generate a list of symbols to export.
8611 always_export_symbols=yes
8612 if test "$aix_use_runtimelinking" = yes; then
8613 # Warning - without using the other runtime loading flags (-brtl),
8614 # -berok will link without error, but may produce a broken library.
8615 allow_undefined_flag='-berok'
8616 # Determine the default libpath from the value encoded in an
8617 # empty executable.
8618 if test "${lt_cv_aix_libpath+set}" = set; then
8619 aix_libpath=$lt_cv_aix_libpath
8620 else
8621 if ${lt_cv_aix_libpath_+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626
8627 int
8628 main ()
8629 {
8630
8631 ;
8632 return 0;
8633 }
8634 _ACEOF
8635 if ac_fn_c_try_link "$LINENO"; then :
8636
8637 lt_aix_libpath_sed='
8638 /Import File Strings/,/^$/ {
8639 /^0/ {
8640 s/^0 *\([^ ]*\) *$/\1/
8641 p
8642 }
8643 }'
8644 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8645 # Check for a 64-bit object if we didn't find anything.
8646 if test -z "$lt_cv_aix_libpath_"; then
8647 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8648 fi
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8652 if test -z "$lt_cv_aix_libpath_"; then
8653 lt_cv_aix_libpath_="/usr/lib:/lib"
8654 fi
8655
8656 fi
8657
8658 aix_libpath=$lt_cv_aix_libpath_
8659 fi
8660
8661 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8662 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"
8663 else
8664 if test "$host_cpu" = ia64; then
8665 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8666 allow_undefined_flag="-z nodefs"
8667 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"
8668 else
8669 # Determine the default libpath from the value encoded in an
8670 # empty executable.
8671 if test "${lt_cv_aix_libpath+set}" = set; then
8672 aix_libpath=$lt_cv_aix_libpath
8673 else
8674 if ${lt_cv_aix_libpath_+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679
8680 int
8681 main ()
8682 {
8683
8684 ;
8685 return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_c_try_link "$LINENO"; then :
8689
8690 lt_aix_libpath_sed='
8691 /Import File Strings/,/^$/ {
8692 /^0/ {
8693 s/^0 *\([^ ]*\) *$/\1/
8694 p
8695 }
8696 }'
8697 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8698 # Check for a 64-bit object if we didn't find anything.
8699 if test -z "$lt_cv_aix_libpath_"; then
8700 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8701 fi
8702 fi
8703 rm -f core conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 if test -z "$lt_cv_aix_libpath_"; then
8706 lt_cv_aix_libpath_="/usr/lib:/lib"
8707 fi
8708
8709 fi
8710
8711 aix_libpath=$lt_cv_aix_libpath_
8712 fi
8713
8714 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8715 # Warning - without using the other run time loading flags,
8716 # -berok will link without error, but may produce a broken library.
8717 no_undefined_flag=' ${wl}-bernotok'
8718 allow_undefined_flag=' ${wl}-berok'
8719 if test "$with_gnu_ld" = yes; then
8720 # We only use this code for GNU lds that support --whole-archive.
8721 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8722 else
8723 # Exported symbols can be pulled into shared objects from archives
8724 whole_archive_flag_spec='$convenience'
8725 fi
8726 archive_cmds_need_lc=yes
8727 # This is similar to how AIX traditionally builds its shared libraries.
8728 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'
8729 fi
8730 fi
8731 ;;
8732
8733 amigaos*)
8734 case $host_cpu in
8735 powerpc)
8736 # see comment about AmigaOS4 .so support
8737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8738 archive_expsym_cmds=''
8739 ;;
8740 m68k)
8741 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)'
8742 hardcode_libdir_flag_spec='-L$libdir'
8743 hardcode_minus_L=yes
8744 ;;
8745 esac
8746 ;;
8747
8748 bsdi[45]*)
8749 export_dynamic_flag_spec=-rdynamic
8750 ;;
8751
8752 cygwin* | mingw* | pw32* | cegcc*)
8753 # When not using gcc, we currently assume that we are using
8754 # Microsoft Visual C++.
8755 # hardcode_libdir_flag_spec is actually meaningless, as there is
8756 # no search path for DLLs.
8757 case $cc_basename in
8758 cl*)
8759 # Native MSVC
8760 hardcode_libdir_flag_spec=' '
8761 allow_undefined_flag=unsupported
8762 always_export_symbols=yes
8763 file_list_spec='@'
8764 # Tell ltmain to make .lib files, not .a files.
8765 libext=lib
8766 # Tell ltmain to make .dll files, not .so files.
8767 shrext_cmds=".dll"
8768 # FIXME: Setting linknames here is a bad hack.
8769 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8770 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8771 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8772 else
8773 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8774 fi~
8775 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8776 linknames='
8777 # The linker will not automatically build a static lib if we build a DLL.
8778 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8779 enable_shared_with_static_runtimes=yes
8780 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8781 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8782 # Don't use ranlib
8783 old_postinstall_cmds='chmod 644 $oldlib'
8784 postlink_cmds='lt_outputfile="@OUTPUT@"~
8785 lt_tool_outputfile="@TOOL_OUTPUT@"~
8786 case $lt_outputfile in
8787 *.exe|*.EXE) ;;
8788 *)
8789 lt_outputfile="$lt_outputfile.exe"
8790 lt_tool_outputfile="$lt_tool_outputfile.exe"
8791 ;;
8792 esac~
8793 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8794 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8795 $RM "$lt_outputfile.manifest";
8796 fi'
8797 ;;
8798 *)
8799 # Assume MSVC wrapper
8800 hardcode_libdir_flag_spec=' '
8801 allow_undefined_flag=unsupported
8802 # Tell ltmain to make .lib files, not .a files.
8803 libext=lib
8804 # Tell ltmain to make .dll files, not .so files.
8805 shrext_cmds=".dll"
8806 # FIXME: Setting linknames here is a bad hack.
8807 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8808 # The linker will automatically build a .lib file if we build a DLL.
8809 old_archive_from_new_cmds='true'
8810 # FIXME: Should let the user specify the lib program.
8811 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8812 enable_shared_with_static_runtimes=yes
8813 ;;
8814 esac
8815 ;;
8816
8817 darwin* | rhapsody*)
8818
8819
8820 archive_cmds_need_lc=no
8821 hardcode_direct=no
8822 hardcode_automatic=yes
8823 hardcode_shlibpath_var=unsupported
8824 if test "$lt_cv_ld_force_load" = "yes"; then
8825 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\"`'
8826
8827 else
8828 whole_archive_flag_spec=''
8829 fi
8830 link_all_deplibs=yes
8831 allow_undefined_flag="$_lt_dar_allow_undefined"
8832 case $cc_basename in
8833 ifort*) _lt_dar_can_shared=yes ;;
8834 *) _lt_dar_can_shared=$GCC ;;
8835 esac
8836 if test "$_lt_dar_can_shared" = "yes"; then
8837 output_verbose_link_cmd=func_echo_all
8838 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8839 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8840 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}"
8841 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}"
8842
8843 else
8844 ld_shlibs=no
8845 fi
8846
8847 ;;
8848
8849 dgux*)
8850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8851 hardcode_libdir_flag_spec='-L$libdir'
8852 hardcode_shlibpath_var=no
8853 ;;
8854
8855 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8856 # support. Future versions do this automatically, but an explicit c++rt0.o
8857 # does not break anything, and helps significantly (at the cost of a little
8858 # extra space).
8859 freebsd2.2*)
8860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8861 hardcode_libdir_flag_spec='-R$libdir'
8862 hardcode_direct=yes
8863 hardcode_shlibpath_var=no
8864 ;;
8865
8866 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8867 freebsd2.*)
8868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8869 hardcode_direct=yes
8870 hardcode_minus_L=yes
8871 hardcode_shlibpath_var=no
8872 ;;
8873
8874 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8875 freebsd* | dragonfly*)
8876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8877 hardcode_libdir_flag_spec='-R$libdir'
8878 hardcode_direct=yes
8879 hardcode_shlibpath_var=no
8880 ;;
8881
8882 hpux9*)
8883 if test "$GCC" = yes; then
8884 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'
8885 else
8886 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'
8887 fi
8888 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8889 hardcode_libdir_separator=:
8890 hardcode_direct=yes
8891
8892 # hardcode_minus_L: Not really in the search PATH,
8893 # but as the default location of the library.
8894 hardcode_minus_L=yes
8895 export_dynamic_flag_spec='${wl}-E'
8896 ;;
8897
8898 hpux10*)
8899 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8900 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8901 else
8902 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8903 fi
8904 if test "$with_gnu_ld" = no; then
8905 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8906 hardcode_libdir_separator=:
8907 hardcode_direct=yes
8908 hardcode_direct_absolute=yes
8909 export_dynamic_flag_spec='${wl}-E'
8910 # hardcode_minus_L: Not really in the search PATH,
8911 # but as the default location of the library.
8912 hardcode_minus_L=yes
8913 fi
8914 ;;
8915
8916 hpux11*)
8917 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8918 case $host_cpu in
8919 hppa*64*)
8920 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8921 ;;
8922 ia64*)
8923 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8924 ;;
8925 *)
8926 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8927 ;;
8928 esac
8929 else
8930 case $host_cpu in
8931 hppa*64*)
8932 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8933 ;;
8934 ia64*)
8935 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8936 ;;
8937 *)
8938
8939 # Older versions of the 11.00 compiler do not understand -b yet
8940 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8942 $as_echo_n "checking if $CC understands -b... " >&6; }
8943 if ${lt_cv_prog_compiler__b+:} false; then :
8944 $as_echo_n "(cached) " >&6
8945 else
8946 lt_cv_prog_compiler__b=no
8947 save_LDFLAGS="$LDFLAGS"
8948 LDFLAGS="$LDFLAGS -b"
8949 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8951 # The linker can only warn and ignore the option if not recognized
8952 # So say no if there are warnings
8953 if test -s conftest.err; then
8954 # Append any errors to the config.log.
8955 cat conftest.err 1>&5
8956 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8958 if diff conftest.exp conftest.er2 >/dev/null; then
8959 lt_cv_prog_compiler__b=yes
8960 fi
8961 else
8962 lt_cv_prog_compiler__b=yes
8963 fi
8964 fi
8965 $RM -r conftest*
8966 LDFLAGS="$save_LDFLAGS"
8967
8968 fi
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8970 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8971
8972 if test x"$lt_cv_prog_compiler__b" = xyes; then
8973 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8974 else
8975 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8976 fi
8977
8978 ;;
8979 esac
8980 fi
8981 if test "$with_gnu_ld" = no; then
8982 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8983 hardcode_libdir_separator=:
8984
8985 case $host_cpu in
8986 hppa*64*|ia64*)
8987 hardcode_direct=no
8988 hardcode_shlibpath_var=no
8989 ;;
8990 *)
8991 hardcode_direct=yes
8992 hardcode_direct_absolute=yes
8993 export_dynamic_flag_spec='${wl}-E'
8994
8995 # hardcode_minus_L: Not really in the search PATH,
8996 # but as the default location of the library.
8997 hardcode_minus_L=yes
8998 ;;
8999 esac
9000 fi
9001 ;;
9002
9003 irix5* | irix6* | nonstopux*)
9004 if test "$GCC" = yes; then
9005 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'
9006 # Try to use the -exported_symbol ld option, if it does not
9007 # work, assume that -exports_file does not work either and
9008 # implicitly export all symbols.
9009 # This should be the same for all languages, so no per-tag cache variable.
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9011 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9012 if ${lt_cv_irix_exported_symbol+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 save_LDFLAGS="$LDFLAGS"
9016 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9019 int foo (void) { return 0; }
9020 _ACEOF
9021 if ac_fn_c_try_link "$LINENO"; then :
9022 lt_cv_irix_exported_symbol=yes
9023 else
9024 lt_cv_irix_exported_symbol=no
9025 fi
9026 rm -f core conftest.err conftest.$ac_objext \
9027 conftest$ac_exeext conftest.$ac_ext
9028 LDFLAGS="$save_LDFLAGS"
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9031 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9032 if test "$lt_cv_irix_exported_symbol" = yes; then
9033 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'
9034 fi
9035 else
9036 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'
9037 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'
9038 fi
9039 archive_cmds_need_lc='no'
9040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9041 hardcode_libdir_separator=:
9042 inherit_rpath=yes
9043 link_all_deplibs=yes
9044 ;;
9045
9046 netbsd* | netbsdelf*-gnu)
9047 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9048 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9049 else
9050 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9051 fi
9052 hardcode_libdir_flag_spec='-R$libdir'
9053 hardcode_direct=yes
9054 hardcode_shlibpath_var=no
9055 ;;
9056
9057 newsos6)
9058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9059 hardcode_direct=yes
9060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9061 hardcode_libdir_separator=:
9062 hardcode_shlibpath_var=no
9063 ;;
9064
9065 *nto* | *qnx*)
9066 ;;
9067
9068 openbsd*)
9069 if test -f /usr/libexec/ld.so; then
9070 hardcode_direct=yes
9071 hardcode_shlibpath_var=no
9072 hardcode_direct_absolute=yes
9073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9074 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9075 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9076 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9077 export_dynamic_flag_spec='${wl}-E'
9078 else
9079 case $host_os in
9080 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9082 hardcode_libdir_flag_spec='-R$libdir'
9083 ;;
9084 *)
9085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9086 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9087 ;;
9088 esac
9089 fi
9090 else
9091 ld_shlibs=no
9092 fi
9093 ;;
9094
9095 os2*)
9096 hardcode_libdir_flag_spec='-L$libdir'
9097 hardcode_minus_L=yes
9098 allow_undefined_flag=unsupported
9099 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'
9100 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9101 ;;
9102
9103 osf3*)
9104 if test "$GCC" = yes; then
9105 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9106 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'
9107 else
9108 allow_undefined_flag=' -expect_unresolved \*'
9109 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'
9110 fi
9111 archive_cmds_need_lc='no'
9112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9113 hardcode_libdir_separator=:
9114 ;;
9115
9116 osf4* | osf5*) # as osf3* with the addition of -msym flag
9117 if test "$GCC" = yes; then
9118 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9119 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'
9120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9121 else
9122 allow_undefined_flag=' -expect_unresolved \*'
9123 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'
9124 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~
9125 $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'
9126
9127 # Both c and cxx compiler support -rpath directly
9128 hardcode_libdir_flag_spec='-rpath $libdir'
9129 fi
9130 archive_cmds_need_lc='no'
9131 hardcode_libdir_separator=:
9132 ;;
9133
9134 solaris*)
9135 no_undefined_flag=' -z defs'
9136 if test "$GCC" = yes; then
9137 wlarc='${wl}'
9138 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9139 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9140 $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'
9141 else
9142 case `$CC -V 2>&1` in
9143 *"Compilers 5.0"*)
9144 wlarc=''
9145 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9148 ;;
9149 *)
9150 wlarc='${wl}'
9151 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9153 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9154 ;;
9155 esac
9156 fi
9157 hardcode_libdir_flag_spec='-R$libdir'
9158 hardcode_shlibpath_var=no
9159 case $host_os in
9160 solaris2.[0-5] | solaris2.[0-5].*) ;;
9161 *)
9162 # The compiler driver will combine and reorder linker options,
9163 # but understands `-z linker_flag'. GCC discards it without `$wl',
9164 # but is careful enough not to reorder.
9165 # Supported since Solaris 2.6 (maybe 2.5.1?)
9166 if test "$GCC" = yes; then
9167 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9168 else
9169 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9170 fi
9171 ;;
9172 esac
9173 link_all_deplibs=yes
9174 ;;
9175
9176 sunos4*)
9177 if test "x$host_vendor" = xsequent; then
9178 # Use $CC to link under sequent, because it throws in some extra .o
9179 # files that make .init and .fini sections work.
9180 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9181 else
9182 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9183 fi
9184 hardcode_libdir_flag_spec='-L$libdir'
9185 hardcode_direct=yes
9186 hardcode_minus_L=yes
9187 hardcode_shlibpath_var=no
9188 ;;
9189
9190 sysv4)
9191 case $host_vendor in
9192 sni)
9193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9194 hardcode_direct=yes # is this really true???
9195 ;;
9196 siemens)
9197 ## LD is ld it makes a PLAMLIB
9198 ## CC just makes a GrossModule.
9199 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9200 reload_cmds='$CC -r -o $output$reload_objs'
9201 hardcode_direct=no
9202 ;;
9203 motorola)
9204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9205 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9206 ;;
9207 esac
9208 runpath_var='LD_RUN_PATH'
9209 hardcode_shlibpath_var=no
9210 ;;
9211
9212 sysv4.3*)
9213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9214 hardcode_shlibpath_var=no
9215 export_dynamic_flag_spec='-Bexport'
9216 ;;
9217
9218 sysv4*MP*)
9219 if test -d /usr/nec; then
9220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9221 hardcode_shlibpath_var=no
9222 runpath_var=LD_RUN_PATH
9223 hardcode_runpath_var=yes
9224 ld_shlibs=yes
9225 fi
9226 ;;
9227
9228 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9229 no_undefined_flag='${wl}-z,text'
9230 archive_cmds_need_lc=no
9231 hardcode_shlibpath_var=no
9232 runpath_var='LD_RUN_PATH'
9233
9234 if test "$GCC" = yes; then
9235 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9236 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9237 else
9238 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9239 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9240 fi
9241 ;;
9242
9243 sysv5* | sco3.2v5* | sco5v6*)
9244 # Note: We can NOT use -z defs as we might desire, because we do not
9245 # link with -lc, and that would cause any symbols used from libc to
9246 # always be unresolved, which means just about no library would
9247 # ever link correctly. If we're not using GNU ld we use -z text
9248 # though, which does catch some bad symbols but isn't as heavy-handed
9249 # as -z defs.
9250 no_undefined_flag='${wl}-z,text'
9251 allow_undefined_flag='${wl}-z,nodefs'
9252 archive_cmds_need_lc=no
9253 hardcode_shlibpath_var=no
9254 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9255 hardcode_libdir_separator=':'
9256 link_all_deplibs=yes
9257 export_dynamic_flag_spec='${wl}-Bexport'
9258 runpath_var='LD_RUN_PATH'
9259
9260 if test "$GCC" = yes; then
9261 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9262 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9263 else
9264 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9265 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9266 fi
9267 ;;
9268
9269 uts4*)
9270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271 hardcode_libdir_flag_spec='-L$libdir'
9272 hardcode_shlibpath_var=no
9273 ;;
9274
9275 *)
9276 ld_shlibs=no
9277 ;;
9278 esac
9279
9280 if test x$host_vendor = xsni; then
9281 case $host in
9282 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9283 export_dynamic_flag_spec='${wl}-Blargedynsym'
9284 ;;
9285 esac
9286 fi
9287 fi
9288
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9290 $as_echo "$ld_shlibs" >&6; }
9291 test "$ld_shlibs" = no && can_build_shared=no
9292
9293 with_gnu_ld=$with_gnu_ld
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309 #
9310 # Do we need to explicitly link libc?
9311 #
9312 case "x$archive_cmds_need_lc" in
9313 x|xyes)
9314 # Assume -lc should be added
9315 archive_cmds_need_lc=yes
9316
9317 if test "$enable_shared" = yes && test "$GCC" = yes; then
9318 case $archive_cmds in
9319 *'~'*)
9320 # FIXME: we may have to deal with multi-command sequences.
9321 ;;
9322 '$CC '*)
9323 # Test whether the compiler implicitly links with -lc since on some
9324 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9325 # to ld, don't add -lc before -lgcc.
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9327 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9328 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9329 $as_echo_n "(cached) " >&6
9330 else
9331 $RM conftest*
9332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9333
9334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9335 (eval $ac_compile) 2>&5
9336 ac_status=$?
9337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9338 test $ac_status = 0; } 2>conftest.err; then
9339 soname=conftest
9340 lib=conftest
9341 libobjs=conftest.$ac_objext
9342 deplibs=
9343 wl=$lt_prog_compiler_wl
9344 pic_flag=$lt_prog_compiler_pic
9345 compiler_flags=-v
9346 linker_flags=-v
9347 verstring=
9348 output_objdir=.
9349 libname=conftest
9350 lt_save_allow_undefined_flag=$allow_undefined_flag
9351 allow_undefined_flag=
9352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9353 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9354 ac_status=$?
9355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9356 test $ac_status = 0; }
9357 then
9358 lt_cv_archive_cmds_need_lc=no
9359 else
9360 lt_cv_archive_cmds_need_lc=yes
9361 fi
9362 allow_undefined_flag=$lt_save_allow_undefined_flag
9363 else
9364 cat conftest.err 1>&5
9365 fi
9366 $RM conftest*
9367
9368 fi
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9370 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9371 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9372 ;;
9373 esac
9374 fi
9375 ;;
9376 esac
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9530 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9531
9532 if test "$GCC" = yes; then
9533 case $host_os in
9534 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9535 *) lt_awk_arg="/^libraries:/" ;;
9536 esac
9537 case $host_os in
9538 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9539 *) lt_sed_strip_eq="s,=/,/,g" ;;
9540 esac
9541 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9542 case $lt_search_path_spec in
9543 *\;*)
9544 # if the path contains ";" then we assume it to be the separator
9545 # otherwise default to the standard path separator (i.e. ":") - it is
9546 # assumed that no part of a normal pathname contains ";" but that should
9547 # okay in the real world where ";" in dirpaths is itself problematic.
9548 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9549 ;;
9550 *)
9551 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9552 ;;
9553 esac
9554 # Ok, now we have the path, separated by spaces, we can step through it
9555 # and add multilib dir if necessary.
9556 lt_tmp_lt_search_path_spec=
9557 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9558 for lt_sys_path in $lt_search_path_spec; do
9559 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9560 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9561 else
9562 test -d "$lt_sys_path" && \
9563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9564 fi
9565 done
9566 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9567 BEGIN {RS=" "; FS="/|\n";} {
9568 lt_foo="";
9569 lt_count=0;
9570 for (lt_i = NF; lt_i > 0; lt_i--) {
9571 if ($lt_i != "" && $lt_i != ".") {
9572 if ($lt_i == "..") {
9573 lt_count++;
9574 } else {
9575 if (lt_count == 0) {
9576 lt_foo="/" $lt_i lt_foo;
9577 } else {
9578 lt_count--;
9579 }
9580 }
9581 }
9582 }
9583 if (lt_foo != "") { lt_freq[lt_foo]++; }
9584 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9585 }'`
9586 # AWK program above erroneously prepends '/' to C:/dos/paths
9587 # for these hosts.
9588 case $host_os in
9589 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9590 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9591 esac
9592 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9593 else
9594 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9595 fi
9596 library_names_spec=
9597 libname_spec='lib$name'
9598 soname_spec=
9599 shrext_cmds=".so"
9600 postinstall_cmds=
9601 postuninstall_cmds=
9602 finish_cmds=
9603 finish_eval=
9604 shlibpath_var=
9605 shlibpath_overrides_runpath=unknown
9606 version_type=none
9607 dynamic_linker="$host_os ld.so"
9608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9609 need_lib_prefix=unknown
9610 hardcode_into_libs=no
9611
9612 # when you set need_version to no, make sure it does not cause -set_version
9613 # flags to be left without arguments
9614 need_version=unknown
9615
9616 case $host_os in
9617 aix3*)
9618 version_type=linux # correct to gnu/linux during the next big refactor
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9620 shlibpath_var=LIBPATH
9621
9622 # AIX 3 has no versioning support, so we append a major version to the name.
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 ;;
9625
9626 aix[4-9]*)
9627 version_type=linux # correct to gnu/linux during the next big refactor
9628 need_lib_prefix=no
9629 need_version=no
9630 hardcode_into_libs=yes
9631 if test "$host_cpu" = ia64; then
9632 # AIX 5 supports IA64
9633 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 else
9636 # With GCC up to 2.95.x, collect2 would create an import file
9637 # for dependence libraries. The import file would start with
9638 # the line `#! .'. This would cause the generated library to
9639 # depend on `.', always an invalid library. This was fixed in
9640 # development snapshots of GCC prior to 3.0.
9641 case $host_os in
9642 aix4 | aix4.[01] | aix4.[01].*)
9643 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9644 echo ' yes '
9645 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9646 :
9647 else
9648 can_build_shared=no
9649 fi
9650 ;;
9651 esac
9652 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9653 # soname into executable. Probably we can add versioning support to
9654 # collect2, so additional links can be useful in future.
9655 if test "$aix_use_runtimelinking" = yes; then
9656 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9657 # instead of lib<name>.a to let people know that these are not
9658 # typical AIX shared libraries.
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660 else
9661 # We preserve .a as extension for shared libraries through AIX4.2
9662 # and later when we are not doing run time linking.
9663 library_names_spec='${libname}${release}.a $libname.a'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 fi
9666 shlibpath_var=LIBPATH
9667 fi
9668 ;;
9669
9670 amigaos*)
9671 case $host_cpu in
9672 powerpc)
9673 # Since July 2007 AmigaOS4 officially supports .so libraries.
9674 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 ;;
9677 m68k)
9678 library_names_spec='$libname.ixlibrary $libname.a'
9679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9680 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'
9681 ;;
9682 esac
9683 ;;
9684
9685 beos*)
9686 library_names_spec='${libname}${shared_ext}'
9687 dynamic_linker="$host_os ld.so"
9688 shlibpath_var=LIBRARY_PATH
9689 ;;
9690
9691 bsdi[45]*)
9692 version_type=linux # correct to gnu/linux during the next big refactor
9693 need_version=no
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695 soname_spec='${libname}${release}${shared_ext}$major'
9696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9697 shlibpath_var=LD_LIBRARY_PATH
9698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9700 # the default ld.so.conf also contains /usr/contrib/lib and
9701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9702 # libtool to hard-code these into programs
9703 ;;
9704
9705 cygwin* | mingw* | pw32* | cegcc*)
9706 version_type=windows
9707 shrext_cmds=".dll"
9708 need_version=no
9709 need_lib_prefix=no
9710
9711 case $GCC,$cc_basename in
9712 yes,*)
9713 # gcc
9714 library_names_spec='$libname.dll.a'
9715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9716 postinstall_cmds='base_file=`basename \${file}`~
9717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9718 dldir=$destdir/`dirname \$dlpath`~
9719 test -d \$dldir || mkdir -p \$dldir~
9720 $install_prog $dir/$dlname \$dldir/$dlname~
9721 chmod a+x \$dldir/$dlname~
9722 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9723 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9724 fi'
9725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9726 dlpath=$dir/\$dldll~
9727 $RM \$dlpath'
9728 shlibpath_overrides_runpath=yes
9729
9730 case $host_os in
9731 cygwin*)
9732 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9733 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9734
9735 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9736 ;;
9737 mingw* | cegcc*)
9738 # MinGW DLLs use traditional 'lib' prefix
9739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9740 ;;
9741 pw32*)
9742 # pw32 DLLs use 'pw' prefix rather than 'lib'
9743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9744 ;;
9745 esac
9746 dynamic_linker='Win32 ld.exe'
9747 ;;
9748
9749 *,cl*)
9750 # Native MSVC
9751 libname_spec='$name'
9752 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9753 library_names_spec='${libname}.dll.lib'
9754
9755 case $build_os in
9756 mingw*)
9757 sys_lib_search_path_spec=
9758 lt_save_ifs=$IFS
9759 IFS=';'
9760 for lt_path in $LIB
9761 do
9762 IFS=$lt_save_ifs
9763 # Let DOS variable expansion print the short 8.3 style file name.
9764 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9765 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9766 done
9767 IFS=$lt_save_ifs
9768 # Convert to MSYS style.
9769 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9770 ;;
9771 cygwin*)
9772 # Convert to unix form, then to dos form, then back to unix form
9773 # but this time dos style (no spaces!) so that the unix form looks
9774 # like /cygdrive/c/PROGRA~1:/cygdr...
9775 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9776 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9777 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9778 ;;
9779 *)
9780 sys_lib_search_path_spec="$LIB"
9781 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9782 # It is most probably a Windows format PATH.
9783 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9784 else
9785 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9786 fi
9787 # FIXME: find the short name or the path components, as spaces are
9788 # common. (e.g. "Program Files" -> "PROGRA~1")
9789 ;;
9790 esac
9791
9792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9793 postinstall_cmds='base_file=`basename \${file}`~
9794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9795 dldir=$destdir/`dirname \$dlpath`~
9796 test -d \$dldir || mkdir -p \$dldir~
9797 $install_prog $dir/$dlname \$dldir/$dlname'
9798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9799 dlpath=$dir/\$dldll~
9800 $RM \$dlpath'
9801 shlibpath_overrides_runpath=yes
9802 dynamic_linker='Win32 link.exe'
9803 ;;
9804
9805 *)
9806 # Assume MSVC wrapper
9807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9808 dynamic_linker='Win32 ld.exe'
9809 ;;
9810 esac
9811 # FIXME: first we should search . and the directory the executable is in
9812 shlibpath_var=PATH
9813 ;;
9814
9815 darwin* | rhapsody*)
9816 dynamic_linker="$host_os dyld"
9817 version_type=darwin
9818 need_lib_prefix=no
9819 need_version=no
9820 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9821 soname_spec='${libname}${release}${major}$shared_ext'
9822 shlibpath_overrides_runpath=yes
9823 shlibpath_var=DYLD_LIBRARY_PATH
9824 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9825
9826 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9827 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9828 ;;
9829
9830 dgux*)
9831 version_type=linux # correct to gnu/linux during the next big refactor
9832 need_lib_prefix=no
9833 need_version=no
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 ;;
9838
9839 freebsd* | dragonfly*)
9840 # DragonFly does not have aout. When/if they implement a new
9841 # versioning mechanism, adjust this.
9842 if test -x /usr/bin/objformat; then
9843 objformat=`/usr/bin/objformat`
9844 else
9845 case $host_os in
9846 freebsd[23].*) objformat=aout ;;
9847 *) objformat=elf ;;
9848 esac
9849 fi
9850 version_type=freebsd-$objformat
9851 case $version_type in
9852 freebsd-elf*)
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9854 need_version=no
9855 need_lib_prefix=no
9856 ;;
9857 freebsd-*)
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9859 need_version=yes
9860 ;;
9861 esac
9862 shlibpath_var=LD_LIBRARY_PATH
9863 case $host_os in
9864 freebsd2.*)
9865 shlibpath_overrides_runpath=yes
9866 ;;
9867 freebsd3.[01]* | freebsdelf3.[01]*)
9868 shlibpath_overrides_runpath=yes
9869 hardcode_into_libs=yes
9870 ;;
9871 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9872 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9873 shlibpath_overrides_runpath=no
9874 hardcode_into_libs=yes
9875 ;;
9876 *) # from 4.6 on, and DragonFly
9877 shlibpath_overrides_runpath=yes
9878 hardcode_into_libs=yes
9879 ;;
9880 esac
9881 ;;
9882
9883 gnu*)
9884 version_type=linux # correct to gnu/linux during the next big refactor
9885 need_lib_prefix=no
9886 need_version=no
9887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9888 soname_spec='${libname}${release}${shared_ext}$major'
9889 shlibpath_var=LD_LIBRARY_PATH
9890 shlibpath_overrides_runpath=no
9891 hardcode_into_libs=yes
9892 ;;
9893
9894 haiku*)
9895 version_type=linux # correct to gnu/linux during the next big refactor
9896 need_lib_prefix=no
9897 need_version=no
9898 dynamic_linker="$host_os runtime_loader"
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 shlibpath_var=LIBRARY_PATH
9902 shlibpath_overrides_runpath=yes
9903 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9904 hardcode_into_libs=yes
9905 ;;
9906
9907 hpux9* | hpux10* | hpux11*)
9908 # Give a soname corresponding to the major version so that dld.sl refuses to
9909 # link against other versions.
9910 version_type=sunos
9911 need_lib_prefix=no
9912 need_version=no
9913 case $host_cpu in
9914 ia64*)
9915 shrext_cmds='.so'
9916 hardcode_into_libs=yes
9917 dynamic_linker="$host_os dld.so"
9918 shlibpath_var=LD_LIBRARY_PATH
9919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 soname_spec='${libname}${release}${shared_ext}$major'
9922 if test "X$HPUX_IA64_MODE" = X32; then
9923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9924 else
9925 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9926 fi
9927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9928 ;;
9929 hppa*64*)
9930 shrext_cmds='.sl'
9931 hardcode_into_libs=yes
9932 dynamic_linker="$host_os dld.sl"
9933 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9939 ;;
9940 *)
9941 shrext_cmds='.sl'
9942 dynamic_linker="$host_os dld.sl"
9943 shlibpath_var=SHLIB_PATH
9944 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 ;;
9948 esac
9949 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9950 postinstall_cmds='chmod 555 $lib'
9951 # or fails outright, so override atomically:
9952 install_override_mode=555
9953 ;;
9954
9955 interix[3-9]*)
9956 version_type=linux # correct to gnu/linux during the next big refactor
9957 need_lib_prefix=no
9958 need_version=no
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=no
9964 hardcode_into_libs=yes
9965 ;;
9966
9967 irix5* | irix6* | nonstopux*)
9968 case $host_os in
9969 nonstopux*) version_type=nonstopux ;;
9970 *)
9971 if test "$lt_cv_prog_gnu_ld" = yes; then
9972 version_type=linux # correct to gnu/linux during the next big refactor
9973 else
9974 version_type=irix
9975 fi ;;
9976 esac
9977 need_lib_prefix=no
9978 need_version=no
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9981 case $host_os in
9982 irix5* | nonstopux*)
9983 libsuff= shlibsuff=
9984 ;;
9985 *)
9986 case $LD in # libtool.m4 will add one of these switches to LD
9987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9988 libsuff= shlibsuff= libmagic=32-bit;;
9989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9990 libsuff=32 shlibsuff=N32 libmagic=N32;;
9991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9992 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9993 *) libsuff= shlibsuff= libmagic=never-match;;
9994 esac
9995 ;;
9996 esac
9997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9998 shlibpath_overrides_runpath=no
9999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10001 hardcode_into_libs=yes
10002 ;;
10003
10004 # No shared lib support for Linux oldld, aout, or coff.
10005 linux*oldld* | linux*aout* | linux*coff*)
10006 dynamic_linker=no
10007 ;;
10008
10009 # This must be glibc/ELF.
10010 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10011 version_type=linux # correct to gnu/linux during the next big refactor
10012 need_lib_prefix=no
10013 need_version=no
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10017 shlibpath_var=LD_LIBRARY_PATH
10018 shlibpath_overrides_runpath=no
10019
10020 # Some binutils ld are patched to set DT_RUNPATH
10021 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 lt_cv_shlibpath_overrides_runpath=no
10025 save_LDFLAGS=$LDFLAGS
10026 save_libdir=$libdir
10027 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10028 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10031
10032 int
10033 main ()
10034 {
10035
10036 ;
10037 return 0;
10038 }
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10041 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10042 lt_cv_shlibpath_overrides_runpath=yes
10043 fi
10044 fi
10045 rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 LDFLAGS=$save_LDFLAGS
10048 libdir=$save_libdir
10049
10050 fi
10051
10052 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10053
10054 # This implies no fast_install, which is unacceptable.
10055 # Some rework will be needed to allow for fast_install
10056 # before this can be enabled.
10057 hardcode_into_libs=yes
10058
10059 # Append ld.so.conf contents to the search path
10060 if test -f /etc/ld.so.conf; then
10061 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' ' '`
10062 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10063 fi
10064
10065 # We used to test for /lib/ld.so.1 and disable shared libraries on
10066 # powerpc, because MkLinux only supported shared libraries with the
10067 # GNU dynamic linker. Since this was broken with cross compilers,
10068 # most powerpc-linux boxes support dynamic linking these days and
10069 # people can always --disable-shared, the test was removed, and we
10070 # assume the GNU/Linux dynamic linker is in use.
10071 dynamic_linker='GNU/Linux ld.so'
10072 ;;
10073
10074 netbsdelf*-gnu)
10075 version_type=linux
10076 need_lib_prefix=no
10077 need_version=no
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10079 soname_spec='${libname}${release}${shared_ext}$major'
10080 shlibpath_var=LD_LIBRARY_PATH
10081 shlibpath_overrides_runpath=no
10082 hardcode_into_libs=yes
10083 dynamic_linker='NetBSD ld.elf_so'
10084 ;;
10085
10086 netbsd*)
10087 version_type=sunos
10088 need_lib_prefix=no
10089 need_version=no
10090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10093 dynamic_linker='NetBSD (a.out) ld.so'
10094 else
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10096 soname_spec='${libname}${release}${shared_ext}$major'
10097 dynamic_linker='NetBSD ld.elf_so'
10098 fi
10099 shlibpath_var=LD_LIBRARY_PATH
10100 shlibpath_overrides_runpath=yes
10101 hardcode_into_libs=yes
10102 ;;
10103
10104 newsos6)
10105 version_type=linux # correct to gnu/linux during the next big refactor
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 shlibpath_overrides_runpath=yes
10109 ;;
10110
10111 *nto* | *qnx*)
10112 version_type=qnx
10113 need_lib_prefix=no
10114 need_version=no
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 shlibpath_var=LD_LIBRARY_PATH
10118 shlibpath_overrides_runpath=no
10119 hardcode_into_libs=yes
10120 dynamic_linker='ldqnx.so'
10121 ;;
10122
10123 openbsd*)
10124 version_type=sunos
10125 sys_lib_dlsearch_path_spec="/usr/lib"
10126 need_lib_prefix=no
10127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10128 case $host_os in
10129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10130 *) need_version=no ;;
10131 esac
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10136 case $host_os in
10137 openbsd2.[89] | openbsd2.[89].*)
10138 shlibpath_overrides_runpath=no
10139 ;;
10140 *)
10141 shlibpath_overrides_runpath=yes
10142 ;;
10143 esac
10144 else
10145 shlibpath_overrides_runpath=yes
10146 fi
10147 ;;
10148
10149 os2*)
10150 libname_spec='$name'
10151 shrext_cmds=".dll"
10152 need_lib_prefix=no
10153 library_names_spec='$libname${shared_ext} $libname.a'
10154 dynamic_linker='OS/2 ld.exe'
10155 shlibpath_var=LIBPATH
10156 ;;
10157
10158 osf3* | osf4* | osf5*)
10159 version_type=osf
10160 need_lib_prefix=no
10161 need_version=no
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10167 ;;
10168
10169 rdos*)
10170 dynamic_linker=no
10171 ;;
10172
10173 solaris*)
10174 version_type=linux # correct to gnu/linux during the next big refactor
10175 need_lib_prefix=no
10176 need_version=no
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=yes
10181 hardcode_into_libs=yes
10182 # ldd complains unless libraries are executable
10183 postinstall_cmds='chmod +x $lib'
10184 ;;
10185
10186 sunos4*)
10187 version_type=sunos
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=yes
10192 if test "$with_gnu_ld" = yes; then
10193 need_lib_prefix=no
10194 fi
10195 need_version=yes
10196 ;;
10197
10198 sysv4 | sysv4.3*)
10199 version_type=linux # correct to gnu/linux during the next big refactor
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 case $host_vendor in
10204 sni)
10205 shlibpath_overrides_runpath=no
10206 need_lib_prefix=no
10207 runpath_var=LD_RUN_PATH
10208 ;;
10209 siemens)
10210 need_lib_prefix=no
10211 ;;
10212 motorola)
10213 need_lib_prefix=no
10214 need_version=no
10215 shlibpath_overrides_runpath=no
10216 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10217 ;;
10218 esac
10219 ;;
10220
10221 sysv4*MP*)
10222 if test -d /usr/nec ;then
10223 version_type=linux # correct to gnu/linux during the next big refactor
10224 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10225 soname_spec='$libname${shared_ext}.$major'
10226 shlibpath_var=LD_LIBRARY_PATH
10227 fi
10228 ;;
10229
10230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10231 version_type=freebsd-elf
10232 need_lib_prefix=no
10233 need_version=no
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 shlibpath_var=LD_LIBRARY_PATH
10237 shlibpath_overrides_runpath=yes
10238 hardcode_into_libs=yes
10239 if test "$with_gnu_ld" = yes; then
10240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10241 else
10242 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10243 case $host_os in
10244 sco3.2v5*)
10245 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10246 ;;
10247 esac
10248 fi
10249 sys_lib_dlsearch_path_spec='/usr/lib'
10250 ;;
10251
10252 tpf*)
10253 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10254 version_type=linux # correct to gnu/linux during the next big refactor
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=no
10260 hardcode_into_libs=yes
10261 ;;
10262
10263 uts4*)
10264 version_type=linux # correct to gnu/linux during the next big refactor
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 ;;
10269
10270 *)
10271 dynamic_linker=no
10272 ;;
10273 esac
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10275 $as_echo "$dynamic_linker" >&6; }
10276 test "$dynamic_linker" = no && can_build_shared=no
10277
10278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10279 if test "$GCC" = yes; then
10280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10281 fi
10282
10283 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10284 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10285 fi
10286 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10287 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10288 fi
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10382 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10383 hardcode_action=
10384 if test -n "$hardcode_libdir_flag_spec" ||
10385 test -n "$runpath_var" ||
10386 test "X$hardcode_automatic" = "Xyes" ; then
10387
10388 # We can hardcode non-existent directories.
10389 if test "$hardcode_direct" != no &&
10390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10391 # have to relink, otherwise we might link with an installed library
10392 # when we should be linking with a yet-to-be-installed one
10393 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10394 test "$hardcode_minus_L" != no; then
10395 # Linking always hardcodes the temporary library directory.
10396 hardcode_action=relink
10397 else
10398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10399 hardcode_action=immediate
10400 fi
10401 else
10402 # We cannot hardcode anything, or else we can only hardcode existing
10403 # directories.
10404 hardcode_action=unsupported
10405 fi
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10407 $as_echo "$hardcode_action" >&6; }
10408
10409 if test "$hardcode_action" = relink ||
10410 test "$inherit_rpath" = yes; then
10411 # Fast installation is not supported
10412 enable_fast_install=no
10413 elif test "$shlibpath_overrides_runpath" = yes ||
10414 test "$enable_shared" = no; then
10415 # Fast installation is not necessary
10416 enable_fast_install=needless
10417 fi
10418
10419
10420
10421
10422
10423
10424 if test "x$enable_dlopen" != xyes; then
10425 enable_dlopen=unknown
10426 enable_dlopen_self=unknown
10427 enable_dlopen_self_static=unknown
10428 else
10429 lt_cv_dlopen=no
10430 lt_cv_dlopen_libs=
10431
10432 case $host_os in
10433 beos*)
10434 lt_cv_dlopen="load_add_on"
10435 lt_cv_dlopen_libs=
10436 lt_cv_dlopen_self=yes
10437 ;;
10438
10439 mingw* | pw32* | cegcc*)
10440 lt_cv_dlopen="LoadLibrary"
10441 lt_cv_dlopen_libs=
10442 ;;
10443
10444 cygwin*)
10445 lt_cv_dlopen="dlopen"
10446 lt_cv_dlopen_libs=
10447 ;;
10448
10449 darwin*)
10450 # if libdl is installed we need to link against it
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10452 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10453 if ${ac_cv_lib_dl_dlopen+:} false; then :
10454 $as_echo_n "(cached) " >&6
10455 else
10456 ac_check_lib_save_LIBS=$LIBS
10457 LIBS="-ldl $LIBS"
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10460
10461 /* Override any GCC internal prototype to avoid an error.
10462 Use char because int might match the return type of a GCC
10463 builtin and then its argument prototype would still apply. */
10464 #ifdef __cplusplus
10465 extern "C"
10466 #endif
10467 char dlopen ();
10468 int
10469 main ()
10470 {
10471 return dlopen ();
10472 ;
10473 return 0;
10474 }
10475 _ACEOF
10476 if ac_fn_c_try_link "$LINENO"; then :
10477 ac_cv_lib_dl_dlopen=yes
10478 else
10479 ac_cv_lib_dl_dlopen=no
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483 LIBS=$ac_check_lib_save_LIBS
10484 fi
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10486 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10487 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10489 else
10490
10491 lt_cv_dlopen="dyld"
10492 lt_cv_dlopen_libs=
10493 lt_cv_dlopen_self=yes
10494
10495 fi
10496
10497 ;;
10498
10499 *)
10500 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10501 if test "x$ac_cv_func_shl_load" = xyes; then :
10502 lt_cv_dlopen="shl_load"
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10505 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10506 if ${ac_cv_lib_dld_shl_load+:} false; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 ac_check_lib_save_LIBS=$LIBS
10510 LIBS="-ldld $LIBS"
10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512 /* end confdefs.h. */
10513
10514 /* Override any GCC internal prototype to avoid an error.
10515 Use char because int might match the return type of a GCC
10516 builtin and then its argument prototype would still apply. */
10517 #ifdef __cplusplus
10518 extern "C"
10519 #endif
10520 char shl_load ();
10521 int
10522 main ()
10523 {
10524 return shl_load ();
10525 ;
10526 return 0;
10527 }
10528 _ACEOF
10529 if ac_fn_c_try_link "$LINENO"; then :
10530 ac_cv_lib_dld_shl_load=yes
10531 else
10532 ac_cv_lib_dld_shl_load=no
10533 fi
10534 rm -f core conftest.err conftest.$ac_objext \
10535 conftest$ac_exeext conftest.$ac_ext
10536 LIBS=$ac_check_lib_save_LIBS
10537 fi
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10539 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10540 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10541 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10542 else
10543 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10544 if test "x$ac_cv_func_dlopen" = xyes; then :
10545 lt_cv_dlopen="dlopen"
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10548 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10549 if ${ac_cv_lib_dl_dlopen+:} false; then :
10550 $as_echo_n "(cached) " >&6
10551 else
10552 ac_check_lib_save_LIBS=$LIBS
10553 LIBS="-ldl $LIBS"
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10556
10557 /* Override any GCC internal prototype to avoid an error.
10558 Use char because int might match the return type of a GCC
10559 builtin and then its argument prototype would still apply. */
10560 #ifdef __cplusplus
10561 extern "C"
10562 #endif
10563 char dlopen ();
10564 int
10565 main ()
10566 {
10567 return dlopen ();
10568 ;
10569 return 0;
10570 }
10571 _ACEOF
10572 if ac_fn_c_try_link "$LINENO"; then :
10573 ac_cv_lib_dl_dlopen=yes
10574 else
10575 ac_cv_lib_dl_dlopen=no
10576 fi
10577 rm -f core conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10579 LIBS=$ac_check_lib_save_LIBS
10580 fi
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10582 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10583 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10584 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10585 else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10587 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10588 if ${ac_cv_lib_svld_dlopen+:} false; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 ac_check_lib_save_LIBS=$LIBS
10592 LIBS="-lsvld $LIBS"
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10595
10596 /* Override any GCC internal prototype to avoid an error.
10597 Use char because int might match the return type of a GCC
10598 builtin and then its argument prototype would still apply. */
10599 #ifdef __cplusplus
10600 extern "C"
10601 #endif
10602 char dlopen ();
10603 int
10604 main ()
10605 {
10606 return dlopen ();
10607 ;
10608 return 0;
10609 }
10610 _ACEOF
10611 if ac_fn_c_try_link "$LINENO"; then :
10612 ac_cv_lib_svld_dlopen=yes
10613 else
10614 ac_cv_lib_svld_dlopen=no
10615 fi
10616 rm -f core conftest.err conftest.$ac_objext \
10617 conftest$ac_exeext conftest.$ac_ext
10618 LIBS=$ac_check_lib_save_LIBS
10619 fi
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10621 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10622 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10623 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10624 else
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10626 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10627 if ${ac_cv_lib_dld_dld_link+:} false; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 ac_check_lib_save_LIBS=$LIBS
10631 LIBS="-ldld $LIBS"
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634
10635 /* Override any GCC internal prototype to avoid an error.
10636 Use char because int might match the return type of a GCC
10637 builtin and then its argument prototype would still apply. */
10638 #ifdef __cplusplus
10639 extern "C"
10640 #endif
10641 char dld_link ();
10642 int
10643 main ()
10644 {
10645 return dld_link ();
10646 ;
10647 return 0;
10648 }
10649 _ACEOF
10650 if ac_fn_c_try_link "$LINENO"; then :
10651 ac_cv_lib_dld_dld_link=yes
10652 else
10653 ac_cv_lib_dld_dld_link=no
10654 fi
10655 rm -f core conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10657 LIBS=$ac_check_lib_save_LIBS
10658 fi
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10660 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10661 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10662 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10663 fi
10664
10665
10666 fi
10667
10668
10669 fi
10670
10671
10672 fi
10673
10674
10675 fi
10676
10677
10678 fi
10679
10680 ;;
10681 esac
10682
10683 if test "x$lt_cv_dlopen" != xno; then
10684 enable_dlopen=yes
10685 else
10686 enable_dlopen=no
10687 fi
10688
10689 case $lt_cv_dlopen in
10690 dlopen)
10691 save_CPPFLAGS="$CPPFLAGS"
10692 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10693
10694 save_LDFLAGS="$LDFLAGS"
10695 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10696
10697 save_LIBS="$LIBS"
10698 LIBS="$lt_cv_dlopen_libs $LIBS"
10699
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10701 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10702 if ${lt_cv_dlopen_self+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 if test "$cross_compiling" = yes; then :
10706 lt_cv_dlopen_self=cross
10707 else
10708 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10709 lt_status=$lt_dlunknown
10710 cat > conftest.$ac_ext <<_LT_EOF
10711 #line $LINENO "configure"
10712 #include "confdefs.h"
10713
10714 #if HAVE_DLFCN_H
10715 #include <dlfcn.h>
10716 #endif
10717
10718 #include <stdio.h>
10719
10720 #ifdef RTLD_GLOBAL
10721 # define LT_DLGLOBAL RTLD_GLOBAL
10722 #else
10723 # ifdef DL_GLOBAL
10724 # define LT_DLGLOBAL DL_GLOBAL
10725 # else
10726 # define LT_DLGLOBAL 0
10727 # endif
10728 #endif
10729
10730 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10731 find out it does not work in some platform. */
10732 #ifndef LT_DLLAZY_OR_NOW
10733 # ifdef RTLD_LAZY
10734 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10735 # else
10736 # ifdef DL_LAZY
10737 # define LT_DLLAZY_OR_NOW DL_LAZY
10738 # else
10739 # ifdef RTLD_NOW
10740 # define LT_DLLAZY_OR_NOW RTLD_NOW
10741 # else
10742 # ifdef DL_NOW
10743 # define LT_DLLAZY_OR_NOW DL_NOW
10744 # else
10745 # define LT_DLLAZY_OR_NOW 0
10746 # endif
10747 # endif
10748 # endif
10749 # endif
10750 #endif
10751
10752 /* When -fvisbility=hidden is used, assume the code has been annotated
10753 correspondingly for the symbols needed. */
10754 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10755 int fnord () __attribute__((visibility("default")));
10756 #endif
10757
10758 int fnord () { return 42; }
10759 int main ()
10760 {
10761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10762 int status = $lt_dlunknown;
10763
10764 if (self)
10765 {
10766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10767 else
10768 {
10769 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10770 else puts (dlerror ());
10771 }
10772 /* dlclose (self); */
10773 }
10774 else
10775 puts (dlerror ());
10776
10777 return status;
10778 }
10779 _LT_EOF
10780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10781 (eval $ac_link) 2>&5
10782 ac_status=$?
10783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10784 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10785 (./conftest; exit; ) >&5 2>/dev/null
10786 lt_status=$?
10787 case x$lt_status in
10788 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10789 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10790 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10791 esac
10792 else :
10793 # compilation failed
10794 lt_cv_dlopen_self=no
10795 fi
10796 fi
10797 rm -fr conftest*
10798
10799
10800 fi
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10802 $as_echo "$lt_cv_dlopen_self" >&6; }
10803
10804 if test "x$lt_cv_dlopen_self" = xyes; then
10805 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10807 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10808 if ${lt_cv_dlopen_self_static+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 if test "$cross_compiling" = yes; then :
10812 lt_cv_dlopen_self_static=cross
10813 else
10814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10815 lt_status=$lt_dlunknown
10816 cat > conftest.$ac_ext <<_LT_EOF
10817 #line $LINENO "configure"
10818 #include "confdefs.h"
10819
10820 #if HAVE_DLFCN_H
10821 #include <dlfcn.h>
10822 #endif
10823
10824 #include <stdio.h>
10825
10826 #ifdef RTLD_GLOBAL
10827 # define LT_DLGLOBAL RTLD_GLOBAL
10828 #else
10829 # ifdef DL_GLOBAL
10830 # define LT_DLGLOBAL DL_GLOBAL
10831 # else
10832 # define LT_DLGLOBAL 0
10833 # endif
10834 #endif
10835
10836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10837 find out it does not work in some platform. */
10838 #ifndef LT_DLLAZY_OR_NOW
10839 # ifdef RTLD_LAZY
10840 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10841 # else
10842 # ifdef DL_LAZY
10843 # define LT_DLLAZY_OR_NOW DL_LAZY
10844 # else
10845 # ifdef RTLD_NOW
10846 # define LT_DLLAZY_OR_NOW RTLD_NOW
10847 # else
10848 # ifdef DL_NOW
10849 # define LT_DLLAZY_OR_NOW DL_NOW
10850 # else
10851 # define LT_DLLAZY_OR_NOW 0
10852 # endif
10853 # endif
10854 # endif
10855 # endif
10856 #endif
10857
10858 /* When -fvisbility=hidden is used, assume the code has been annotated
10859 correspondingly for the symbols needed. */
10860 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10861 int fnord () __attribute__((visibility("default")));
10862 #endif
10863
10864 int fnord () { return 42; }
10865 int main ()
10866 {
10867 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10868 int status = $lt_dlunknown;
10869
10870 if (self)
10871 {
10872 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10873 else
10874 {
10875 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10876 else puts (dlerror ());
10877 }
10878 /* dlclose (self); */
10879 }
10880 else
10881 puts (dlerror ());
10882
10883 return status;
10884 }
10885 _LT_EOF
10886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10887 (eval $ac_link) 2>&5
10888 ac_status=$?
10889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10891 (./conftest; exit; ) >&5 2>/dev/null
10892 lt_status=$?
10893 case x$lt_status in
10894 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10895 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10896 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10897 esac
10898 else :
10899 # compilation failed
10900 lt_cv_dlopen_self_static=no
10901 fi
10902 fi
10903 rm -fr conftest*
10904
10905
10906 fi
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10908 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10909 fi
10910
10911 CPPFLAGS="$save_CPPFLAGS"
10912 LDFLAGS="$save_LDFLAGS"
10913 LIBS="$save_LIBS"
10914 ;;
10915 esac
10916
10917 case $lt_cv_dlopen_self in
10918 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10919 *) enable_dlopen_self=unknown ;;
10920 esac
10921
10922 case $lt_cv_dlopen_self_static in
10923 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10924 *) enable_dlopen_self_static=unknown ;;
10925 esac
10926 fi
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944 striplib=
10945 old_striplib=
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10947 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10948 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10949 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10950 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10952 $as_echo "yes" >&6; }
10953 else
10954 # FIXME - insert some real tests, host_os isn't really good enough
10955 case $host_os in
10956 darwin*)
10957 if test -n "$STRIP" ; then
10958 striplib="$STRIP -x"
10959 old_striplib="$STRIP -S"
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10961 $as_echo "yes" >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10965 fi
10966 ;;
10967 *)
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10970 ;;
10971 esac
10972 fi
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985 # Report which library types will actually be built
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10987 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10989 $as_echo "$can_build_shared" >&6; }
10990
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10992 $as_echo_n "checking whether to build shared libraries... " >&6; }
10993 test "$can_build_shared" = "no" && enable_shared=no
10994
10995 # On AIX, shared libraries and static libraries use the same namespace, and
10996 # are all built from PIC.
10997 case $host_os in
10998 aix3*)
10999 test "$enable_shared" = yes && enable_static=no
11000 if test -n "$RANLIB"; then
11001 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11002 postinstall_cmds='$RANLIB $lib'
11003 fi
11004 ;;
11005
11006 aix[4-9]*)
11007 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11008 test "$enable_shared" = yes && enable_static=no
11009 fi
11010 ;;
11011 esac
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11013 $as_echo "$enable_shared" >&6; }
11014
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11016 $as_echo_n "checking whether to build static libraries... " >&6; }
11017 # Make sure either enable_shared or enable_static is yes.
11018 test "$enable_shared" = yes || enable_static=yes
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11020 $as_echo "$enable_static" >&6; }
11021
11022
11023
11024
11025 fi
11026 ac_ext=c
11027 ac_cpp='$CPP $CPPFLAGS'
11028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11031
11032 CC="$lt_save_CC"
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048 ac_config_commands="$ac_config_commands libtool"
11049
11050
11051
11052
11053 # Only expand once:
11054
11055 # libtool
11056
11057 ac_config_headers="$ac_config_headers include/config.h"
11058
11059
11060
11061
11062 ac_ext=c
11063 ac_cpp='$CPP $CPPFLAGS'
11064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11067 if test -n "$ac_tool_prefix"; then
11068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11069 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071 $as_echo_n "checking for $ac_word... " >&6; }
11072 if ${ac_cv_prog_CC+:} false; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 if test -n "$CC"; then
11076 ac_cv_prog_CC="$CC" # Let the user override the test.
11077 else
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11080 do
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 break 2
11088 fi
11089 done
11090 done
11091 IFS=$as_save_IFS
11092
11093 fi
11094 fi
11095 CC=$ac_cv_prog_CC
11096 if test -n "$CC"; then
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11098 $as_echo "$CC" >&6; }
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11102 fi
11103
11104
11105 fi
11106 if test -z "$ac_cv_prog_CC"; then
11107 ac_ct_CC=$CC
11108 # Extract the first word of "gcc", so it can be a program name with args.
11109 set dummy gcc; ac_word=$2
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11111 $as_echo_n "checking for $ac_word... " >&6; }
11112 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 if test -n "$ac_ct_CC"; then
11116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11117 else
11118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11119 for as_dir in $PATH
11120 do
11121 IFS=$as_save_IFS
11122 test -z "$as_dir" && as_dir=.
11123 for ac_exec_ext in '' $ac_executable_extensions; do
11124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11125 ac_cv_prog_ac_ct_CC="gcc"
11126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11127 break 2
11128 fi
11129 done
11130 done
11131 IFS=$as_save_IFS
11132
11133 fi
11134 fi
11135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11136 if test -n "$ac_ct_CC"; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11138 $as_echo "$ac_ct_CC" >&6; }
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11142 fi
11143
11144 if test "x$ac_ct_CC" = x; then
11145 CC=""
11146 else
11147 case $cross_compiling:$ac_tool_warned in
11148 yes:)
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11151 ac_tool_warned=yes ;;
11152 esac
11153 CC=$ac_ct_CC
11154 fi
11155 else
11156 CC="$ac_cv_prog_CC"
11157 fi
11158
11159 if test -z "$CC"; then
11160 if test -n "$ac_tool_prefix"; then
11161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11162 set dummy ${ac_tool_prefix}cc; ac_word=$2
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164 $as_echo_n "checking for $ac_word... " >&6; }
11165 if ${ac_cv_prog_CC+:} false; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 if test -n "$CC"; then
11169 ac_cv_prog_CC="$CC" # Let the user override the test.
11170 else
11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11173 do
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11178 ac_cv_prog_CC="${ac_tool_prefix}cc"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 break 2
11181 fi
11182 done
11183 done
11184 IFS=$as_save_IFS
11185
11186 fi
11187 fi
11188 CC=$ac_cv_prog_CC
11189 if test -n "$CC"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11191 $as_echo "$CC" >&6; }
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11195 fi
11196
11197
11198 fi
11199 fi
11200 if test -z "$CC"; then
11201 # Extract the first word of "cc", so it can be a program name with args.
11202 set dummy cc; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if ${ac_cv_prog_CC+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 if test -n "$CC"; then
11209 ac_cv_prog_CC="$CC" # Let the user override the test.
11210 else
11211 ac_prog_rejected=no
11212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213 for as_dir in $PATH
11214 do
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11220 ac_prog_rejected=yes
11221 continue
11222 fi
11223 ac_cv_prog_CC="cc"
11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11226 fi
11227 done
11228 done
11229 IFS=$as_save_IFS
11230
11231 if test $ac_prog_rejected = yes; then
11232 # We found a bogon in the path, so make sure we never use it.
11233 set dummy $ac_cv_prog_CC
11234 shift
11235 if test $# != 0; then
11236 # We chose a different compiler from the bogus one.
11237 # However, it has the same basename, so the bogon will be chosen
11238 # first if we set CC to just the basename; use the full file name.
11239 shift
11240 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11241 fi
11242 fi
11243 fi
11244 fi
11245 CC=$ac_cv_prog_CC
11246 if test -n "$CC"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11248 $as_echo "$CC" >&6; }
11249 else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; }
11252 fi
11253
11254
11255 fi
11256 if test -z "$CC"; then
11257 if test -n "$ac_tool_prefix"; then
11258 for ac_prog in cl.exe
11259 do
11260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if ${ac_cv_prog_CC+:} false; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 if test -n "$CC"; then
11268 ac_cv_prog_CC="$CC" # Let the user override the test.
11269 else
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11272 do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11280 fi
11281 done
11282 done
11283 IFS=$as_save_IFS
11284
11285 fi
11286 fi
11287 CC=$ac_cv_prog_CC
11288 if test -n "$CC"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11290 $as_echo "$CC" >&6; }
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11294 fi
11295
11296
11297 test -n "$CC" && break
11298 done
11299 fi
11300 if test -z "$CC"; then
11301 ac_ct_CC=$CC
11302 for ac_prog in cl.exe
11303 do
11304 # Extract the first word of "$ac_prog", so it can be a program name with args.
11305 set dummy $ac_prog; ac_word=$2
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11307 $as_echo_n "checking for $ac_word... " >&6; }
11308 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11309 $as_echo_n "(cached) " >&6
11310 else
11311 if test -n "$ac_ct_CC"; then
11312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11313 else
11314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315 for as_dir in $PATH
11316 do
11317 IFS=$as_save_IFS
11318 test -z "$as_dir" && as_dir=.
11319 for ac_exec_ext in '' $ac_executable_extensions; do
11320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11321 ac_cv_prog_ac_ct_CC="$ac_prog"
11322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11323 break 2
11324 fi
11325 done
11326 done
11327 IFS=$as_save_IFS
11328
11329 fi
11330 fi
11331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11332 if test -n "$ac_ct_CC"; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11334 $as_echo "$ac_ct_CC" >&6; }
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338 fi
11339
11340
11341 test -n "$ac_ct_CC" && break
11342 done
11343
11344 if test "x$ac_ct_CC" = x; then
11345 CC=""
11346 else
11347 case $cross_compiling:$ac_tool_warned in
11348 yes:)
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11351 ac_tool_warned=yes ;;
11352 esac
11353 CC=$ac_ct_CC
11354 fi
11355 fi
11356
11357 fi
11358
11359
11360 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11362 as_fn_error $? "no acceptable C compiler found in \$PATH
11363 See \`config.log' for more details" "$LINENO" 5; }
11364
11365 # Provide some information about the compiler.
11366 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11367 set X $ac_compile
11368 ac_compiler=$2
11369 for ac_option in --version -v -V -qversion; do
11370 { { ac_try="$ac_compiler $ac_option >&5"
11371 case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374 esac
11375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11376 $as_echo "$ac_try_echo"; } >&5
11377 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11378 ac_status=$?
11379 if test -s conftest.err; then
11380 sed '10a\
11381 ... rest of stderr output deleted ...
11382 10q' conftest.err >conftest.er1
11383 cat conftest.er1 >&5
11384 fi
11385 rm -f conftest.er1 conftest.err
11386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11387 test $ac_status = 0; }
11388 done
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11391 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11392 if ${ac_cv_c_compiler_gnu+:} false; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397
11398 int
11399 main ()
11400 {
11401 #ifndef __GNUC__
11402 choke me
11403 #endif
11404
11405 ;
11406 return 0;
11407 }
11408 _ACEOF
11409 if ac_fn_c_try_compile "$LINENO"; then :
11410 ac_compiler_gnu=yes
11411 else
11412 ac_compiler_gnu=no
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11415 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11416
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11419 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11420 if test $ac_compiler_gnu = yes; then
11421 GCC=yes
11422 else
11423 GCC=
11424 fi
11425 ac_test_CFLAGS=${CFLAGS+set}
11426 ac_save_CFLAGS=$CFLAGS
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11428 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11429 if ${ac_cv_prog_cc_g+:} false; then :
11430 $as_echo_n "(cached) " >&6
11431 else
11432 ac_save_c_werror_flag=$ac_c_werror_flag
11433 ac_c_werror_flag=yes
11434 ac_cv_prog_cc_g=no
11435 CFLAGS="-g"
11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11438
11439 int
11440 main ()
11441 {
11442
11443 ;
11444 return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_c_try_compile "$LINENO"; then :
11448 ac_cv_prog_cc_g=yes
11449 else
11450 CFLAGS=""
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11453
11454 int
11455 main ()
11456 {
11457
11458 ;
11459 return 0;
11460 }
11461 _ACEOF
11462 if ac_fn_c_try_compile "$LINENO"; then :
11463
11464 else
11465 ac_c_werror_flag=$ac_save_c_werror_flag
11466 CFLAGS="-g"
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469
11470 int
11471 main ()
11472 {
11473
11474 ;
11475 return 0;
11476 }
11477 _ACEOF
11478 if ac_fn_c_try_compile "$LINENO"; then :
11479 ac_cv_prog_cc_g=yes
11480 fi
11481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11482 fi
11483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11484 fi
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 ac_c_werror_flag=$ac_save_c_werror_flag
11487 fi
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11489 $as_echo "$ac_cv_prog_cc_g" >&6; }
11490 if test "$ac_test_CFLAGS" = set; then
11491 CFLAGS=$ac_save_CFLAGS
11492 elif test $ac_cv_prog_cc_g = yes; then
11493 if test "$GCC" = yes; then
11494 CFLAGS="-g -O2"
11495 else
11496 CFLAGS="-g"
11497 fi
11498 else
11499 if test "$GCC" = yes; then
11500 CFLAGS="-O2"
11501 else
11502 CFLAGS=
11503 fi
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11506 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11507 if ${ac_cv_prog_cc_c89+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 ac_cv_prog_cc_c89=no
11511 ac_save_CC=$CC
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11514 #include <stdarg.h>
11515 #include <stdio.h>
11516 #include <sys/types.h>
11517 #include <sys/stat.h>
11518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11519 struct buf { int x; };
11520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11521 static char *e (p, i)
11522 char **p;
11523 int i;
11524 {
11525 return p[i];
11526 }
11527 static char *f (char * (*g) (char **, int), char **p, ...)
11528 {
11529 char *s;
11530 va_list v;
11531 va_start (v,p);
11532 s = g (p, va_arg (v,int));
11533 va_end (v);
11534 return s;
11535 }
11536
11537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11538 function prototypes and stuff, but not '\xHH' hex character constants.
11539 These don't provoke an error unfortunately, instead are silently treated
11540 as 'x'. The following induces an error, until -std is added to get
11541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11542 array size at least. It's necessary to write '\x00'==0 to get something
11543 that's true only with -std. */
11544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11545
11546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11547 inside strings and character constants. */
11548 #define FOO(x) 'x'
11549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11550
11551 int test (int i, double x);
11552 struct s1 {int (*f) (int a);};
11553 struct s2 {int (*f) (double a);};
11554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11555 int argc;
11556 char **argv;
11557 int
11558 main ()
11559 {
11560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11561 ;
11562 return 0;
11563 }
11564 _ACEOF
11565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11567 do
11568 CC="$ac_save_CC $ac_arg"
11569 if ac_fn_c_try_compile "$LINENO"; then :
11570 ac_cv_prog_cc_c89=$ac_arg
11571 fi
11572 rm -f core conftest.err conftest.$ac_objext
11573 test "x$ac_cv_prog_cc_c89" != "xno" && break
11574 done
11575 rm -f conftest.$ac_ext
11576 CC=$ac_save_CC
11577
11578 fi
11579 # AC_CACHE_VAL
11580 case "x$ac_cv_prog_cc_c89" in
11581 x)
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11583 $as_echo "none needed" >&6; } ;;
11584 xno)
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11586 $as_echo "unsupported" >&6; } ;;
11587 *)
11588 CC="$CC $ac_cv_prog_cc_c89"
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11590 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11591 esac
11592 if test "x$ac_cv_prog_cc_c89" != xno; then :
11593
11594 fi
11595
11596 ac_ext=c
11597 ac_cpp='$CPP $CPPFLAGS'
11598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11601
11602
11603 # Check for gf_complete headers
11604 for ac_header in gf_complete.h gf_general.h gf_int.h gf_method.h gf_rand.h
11605 do :
11606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11607 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11608 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11609 cat >>confdefs.h <<_ACEOF
11610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11611 _ACEOF
11612
11613 fi
11614
11615 done
11616
11617
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gf_init_easy in -lgf_complete" >&5
11619 $as_echo_n "checking for gf_init_easy in -lgf_complete... " >&6; }
11620 if ${ac_cv_lib_gf_complete_gf_init_easy+:} false; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-lgf_complete $LIBS"
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11627
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 char gf_init_easy ();
11635 int
11636 main ()
11637 {
11638 return gf_init_easy ();
11639 ;
11640 return 0;
11641 }
11642 _ACEOF
11643 if ac_fn_c_try_link "$LINENO"; then :
11644 ac_cv_lib_gf_complete_gf_init_easy=yes
11645 else
11646 ac_cv_lib_gf_complete_gf_init_easy=no
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext \
11649 conftest$ac_exeext conftest.$ac_ext
11650 LIBS=$ac_check_lib_save_LIBS
11651 fi
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gf_complete_gf_init_easy" >&5
11653 $as_echo "$ac_cv_lib_gf_complete_gf_init_easy" >&6; }
11654 if test "x$ac_cv_lib_gf_complete_gf_init_easy" = xyes; then :
11655 cat >>confdefs.h <<_ACEOF
11656 #define HAVE_LIBGF_COMPLETE 1
11657 _ACEOF
11658
11659 LIBS="-lgf_complete $LIBS"
11660
11661 else
11662
11663 echo "Error! You need to have gf_complete installed."
11664 echo "gf_complete is available from http://web.eecs.utk.edu/~plank/plank/papers/CS-13-703.html"
11665 exit -1
11666
11667 fi
11668
11669
11670
11671 ac_ext=c
11672 ac_cpp='$CPP $CPPFLAGS'
11673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11676
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid output" >&5
11678 $as_echo_n "checking for x86 cpuid output... " >&6; }
11679 if ${ax_cv_gcc_x86_cpuid_+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 if test "$cross_compiling" = yes; then :
11683 ax_cv_gcc_x86_cpuid_=unknown
11684 else
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11687 #include <stdio.h>
11688 int
11689 main ()
11690 {
11691
11692 int op = , eax, ebx, ecx, edx;
11693 FILE *f;
11694 __asm__("cpuid"
11695 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
11696 : "a" (op));
11697 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
11698 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
11699 fclose(f);
11700 return 0;
11701
11702 ;
11703 return 0;
11704 }
11705 _ACEOF
11706 if ac_fn_c_try_run "$LINENO"; then :
11707 ax_cv_gcc_x86_cpuid_=`cat conftest_cpuid`; rm -f conftest_cpuid
11708 else
11709 ax_cv_gcc_x86_cpuid_=unknown; rm -f conftest_cpuid
11710 fi
11711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11712 conftest.$ac_objext conftest.beam conftest.$ac_ext
11713 fi
11714
11715 fi
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_" >&5
11717 $as_echo "$ax_cv_gcc_x86_cpuid_" >&6; }
11718 ac_ext=c
11719 ac_cpp='$CPP $CPPFLAGS'
11720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11723
11724
11725
11726 ac_ext=c
11727 ac_cpp='$CPP $CPPFLAGS'
11728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11731
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86-AVX xgetbv output" >&5
11733 $as_echo_n "checking for x86-AVX xgetbv output... " >&6; }
11734 if ${ax_cv_gcc_x86_avx_xgetbv_+:} false; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 if test "$cross_compiling" = yes; then :
11738 ax_cv_gcc_x86_avx_xgetbv_=unknown
11739 else
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11742 #include <stdio.h>
11743 int
11744 main ()
11745 {
11746
11747 int op = , eax, edx;
11748 FILE *f;
11749 /* Opcodes for xgetbv */
11750 __asm__(".byte 0x0f, 0x01, 0xd0"
11751 : "=a" (eax), "=d" (edx)
11752 : "c" (op));
11753 f = fopen("conftest_xgetbv", "w"); if (!f) return 1;
11754 fprintf(f, "%x:%x\n", eax, edx);
11755 fclose(f);
11756 return 0;
11757
11758 ;
11759 return 0;
11760 }
11761 _ACEOF
11762 if ac_fn_c_try_run "$LINENO"; then :
11763 ax_cv_gcc_x86_avx_xgetbv_=`cat conftest_xgetbv`; rm -f conftest_xgetbv
11764 else
11765 ax_cv_gcc_x86_avx_xgetbv_=unknown; rm -f conftest_xgetbv
11766 fi
11767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11768 conftest.$ac_objext conftest.beam conftest.$ac_ext
11769 fi
11770
11771 fi
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_avx_xgetbv_" >&5
11773 $as_echo "$ax_cv_gcc_x86_avx_xgetbv_" >&6; }
11774 ac_ext=c
11775 ac_cpp='$CPP $CPPFLAGS'
11776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11779
11780
11781
11782
11783
11784 case $host_cpu in
11785 powerpc*)
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether altivec is supported" >&5
11787 $as_echo_n "checking whether altivec is supported... " >&6; }
11788 if ${ax_cv_have_altivec_ext+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790 else
11791
11792 if test `/usr/sbin/sysctl -a 2>/dev/null| grep -c hw.optional.altivec` != 0; then
11793 if test `/usr/sbin/sysctl -n hw.optional.altivec` = 1; then
11794 ax_cv_have_altivec_ext=yes
11795 fi
11796 fi
11797
11798 fi
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_altivec_ext" >&5
11800 $as_echo "$ax_cv_have_altivec_ext" >&6; }
11801
11802 if test "$ax_cv_have_altivec_ext" = yes; then
11803
11804 $as_echo "#define HAVE_ALTIVEC /**/" >>confdefs.h
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5
11807 $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; }
11808 if ${ax_cv_check_cflags___faltivec+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811
11812 ax_check_save_flags=$CFLAGS
11813 CFLAGS="$CFLAGS -faltivec"
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11816
11817 int
11818 main ()
11819 {
11820
11821 ;
11822 return 0;
11823 }
11824 _ACEOF
11825 if ac_fn_c_try_compile "$LINENO"; then :
11826 ax_cv_check_cflags___faltivec=yes
11827 else
11828 ax_cv_check_cflags___faltivec=no
11829 fi
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 CFLAGS=$ax_check_save_flags
11832 fi
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___faltivec" >&5
11834 $as_echo "$ax_cv_check_cflags___faltivec" >&6; }
11835 if test x"$ax_cv_check_cflags___faltivec" = xyes; then :
11836 SIMD_FLAGS="$SIMD_FLAGS -faltivec"
11837 else
11838 :
11839 fi
11840
11841 fi
11842 ;;
11843
11844
11845 i[3456]86*|x86_64*|amd64*)
11846
11847
11848
11849
11850
11851 ac_ext=c
11852 ac_cpp='$CPP $CPPFLAGS'
11853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11856
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x00000001 output" >&5
11858 $as_echo_n "checking for x86 cpuid 0x00000001 output... " >&6; }
11859 if ${ax_cv_gcc_x86_cpuid_0x00000001+:} false; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 if test "$cross_compiling" = yes; then :
11863 ax_cv_gcc_x86_cpuid_0x00000001=unknown
11864 else
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867 #include <stdio.h>
11868 int
11869 main ()
11870 {
11871
11872 int op = 0x00000001, eax, ebx, ecx, edx;
11873 FILE *f;
11874 __asm__("cpuid"
11875 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
11876 : "a" (op));
11877 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
11878 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
11879 fclose(f);
11880 return 0;
11881
11882 ;
11883 return 0;
11884 }
11885 _ACEOF
11886 if ac_fn_c_try_run "$LINENO"; then :
11887 ax_cv_gcc_x86_cpuid_0x00000001=`cat conftest_cpuid`; rm -f conftest_cpuid
11888 else
11889 ax_cv_gcc_x86_cpuid_0x00000001=unknown; rm -f conftest_cpuid
11890 fi
11891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11892 conftest.$ac_objext conftest.beam conftest.$ac_ext
11893 fi
11894
11895 fi
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x00000001" >&5
11897 $as_echo "$ax_cv_gcc_x86_cpuid_0x00000001" >&6; }
11898 ac_ext=c
11899 ac_cpp='$CPP $CPPFLAGS'
11900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11903
11904
11905 ecx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 3`
11906 edx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 4`
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmx is supported" >&5
11909 $as_echo_n "checking whether mmx is supported... " >&6; }
11910 if ${ax_cv_have_mmx_ext+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913
11914 ax_cv_have_mmx_ext=no
11915 if test "$((0x$edx>>23&0x01))" = 1; then
11916 ax_cv_have_mmx_ext=yes
11917 fi
11918
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_mmx_ext" >&5
11921 $as_echo "$ax_cv_have_mmx_ext" >&6; }
11922
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse is supported" >&5
11924 $as_echo_n "checking whether sse is supported... " >&6; }
11925 if ${ax_cv_have_sse_ext+:} false; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928
11929 ax_cv_have_sse_ext=no
11930 if test "$((0x$edx>>25&0x01))" = 1; then
11931 ax_cv_have_sse_ext=yes
11932 fi
11933
11934 fi
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse_ext" >&5
11936 $as_echo "$ax_cv_have_sse_ext" >&6; }
11937
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse2 is supported" >&5
11939 $as_echo_n "checking whether sse2 is supported... " >&6; }
11940 if ${ax_cv_have_sse2_ext+:} false; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943
11944 ax_cv_have_sse2_ext=no
11945 if test "$((0x$edx>>26&0x01))" = 1; then
11946 ax_cv_have_sse2_ext=yes
11947 fi
11948
11949 fi
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse2_ext" >&5
11951 $as_echo "$ax_cv_have_sse2_ext" >&6; }
11952
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse3 is supported" >&5
11954 $as_echo_n "checking whether sse3 is supported... " >&6; }
11955 if ${ax_cv_have_sse3_ext+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957 else
11958
11959 ax_cv_have_sse3_ext=no
11960 if test "$((0x$ecx&0x01))" = 1; then
11961 ax_cv_have_sse3_ext=yes
11962 fi
11963
11964 fi
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse3_ext" >&5
11966 $as_echo "$ax_cv_have_sse3_ext" >&6; }
11967
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssse3 is supported" >&5
11969 $as_echo_n "checking whether ssse3 is supported... " >&6; }
11970 if ${ax_cv_have_ssse3_ext+:} false; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973
11974 ax_cv_have_ssse3_ext=no
11975 if test "$((0x$ecx>>9&0x01))" = 1; then
11976 ax_cv_have_ssse3_ext=yes
11977 fi
11978
11979 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_ssse3_ext" >&5
11981 $as_echo "$ax_cv_have_ssse3_ext" >&6; }
11982
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse4.1 is supported" >&5
11984 $as_echo_n "checking whether sse4.1 is supported... " >&6; }
11985 if ${ax_cv_have_sse41_ext+:} false; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988
11989 ax_cv_have_sse41_ext=no
11990 if test "$((0x$ecx>>19&0x01))" = 1; then
11991 ax_cv_have_sse41_ext=yes
11992 fi
11993
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse41_ext" >&5
11996 $as_echo "$ax_cv_have_sse41_ext" >&6; }
11997
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse4.2 is supported" >&5
11999 $as_echo_n "checking whether sse4.2 is supported... " >&6; }
12000 if ${ax_cv_have_sse42_ext+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003
12004 ax_cv_have_sse42_ext=no
12005 if test "$((0x$ecx>>20&0x01))" = 1; then
12006 ax_cv_have_sse42_ext=yes
12007 fi
12008
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse42_ext" >&5
12011 $as_echo "$ax_cv_have_sse42_ext" >&6; }
12012
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether avx is supported by processor" >&5
12014 $as_echo_n "checking whether avx is supported by processor... " >&6; }
12015 if ${ax_cv_have_avx_cpu_ext+:} false; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018
12019 ax_cv_have_avx_cpu_ext=no
12020 if test "$((0x$ecx>>28&0x01))" = 1; then
12021 ax_cv_have_avx_cpu_ext=yes
12022 fi
12023
12024 fi
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_avx_cpu_ext" >&5
12026 $as_echo "$ax_cv_have_avx_cpu_ext" >&6; }
12027
12028 if test x"$ax_cv_have_avx_cpu_ext" = x"yes"; then
12029
12030 ac_ext=c
12031 ac_cpp='$CPP $CPPFLAGS'
12032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12035
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86-AVX xgetbv 0x00000000 output" >&5
12037 $as_echo_n "checking for x86-AVX xgetbv 0x00000000 output... " >&6; }
12038 if ${ax_cv_gcc_x86_avx_xgetbv_0x00000000+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 if test "$cross_compiling" = yes; then :
12042 ax_cv_gcc_x86_avx_xgetbv_0x00000000=unknown
12043 else
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046 #include <stdio.h>
12047 int
12048 main ()
12049 {
12050
12051 int op = 0x00000000, eax, edx;
12052 FILE *f;
12053 /* Opcodes for xgetbv */
12054 __asm__(".byte 0x0f, 0x01, 0xd0"
12055 : "=a" (eax), "=d" (edx)
12056 : "c" (op));
12057 f = fopen("conftest_xgetbv", "w"); if (!f) return 1;
12058 fprintf(f, "%x:%x\n", eax, edx);
12059 fclose(f);
12060 return 0;
12061
12062 ;
12063 return 0;
12064 }
12065 _ACEOF
12066 if ac_fn_c_try_run "$LINENO"; then :
12067 ax_cv_gcc_x86_avx_xgetbv_0x00000000=`cat conftest_xgetbv`; rm -f conftest_xgetbv
12068 else
12069 ax_cv_gcc_x86_avx_xgetbv_0x00000000=unknown; rm -f conftest_xgetbv
12070 fi
12071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12072 conftest.$ac_objext conftest.beam conftest.$ac_ext
12073 fi
12074
12075 fi
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_avx_xgetbv_0x00000000" >&5
12077 $as_echo "$ax_cv_gcc_x86_avx_xgetbv_0x00000000" >&6; }
12078 ac_ext=c
12079 ac_cpp='$CPP $CPPFLAGS'
12080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12083
12084
12085
12086 xgetbv_eax="0"
12087 if test x"$ax_cv_gcc_x86_avx_xgetbv_0x00000000" != x"unknown"; then
12088 xgetbv_eax=`echo $ax_cv_gcc_x86_avx_xgetbv_0x00000000 | cut -d ":" -f 1`
12089 fi
12090
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether avx is supported by operating system" >&5
12092 $as_echo_n "checking whether avx is supported by operating system... " >&6; }
12093 if ${ax_cv_have_avx_ext+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096
12097 ax_cv_have_avx_ext=no
12098
12099 if test "$((0x$ecx>>27&0x01))" = 1; then
12100 if test "$((0x$xgetbv_eax&0x6))" = 6; then
12101 ax_cv_have_avx_ext=yes
12102 fi
12103 fi
12104
12105 fi
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_avx_ext" >&5
12107 $as_echo "$ax_cv_have_avx_ext" >&6; }
12108 if test x"$ax_cv_have_avx_ext" = x"no"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports AVX, but your operating system doesn't" >&5
12110 $as_echo "$as_me: WARNING: Your processor supports AVX, but your operating system doesn't" >&2;}
12111 fi
12112 fi
12113
12114 if test "$ax_cv_have_mmx_ext" = yes; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
12116 $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
12117 if ${ax_cv_check_cflags___mmmx+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120
12121 ax_check_save_flags=$CFLAGS
12122 CFLAGS="$CFLAGS -mmmx"
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125
12126 int
12127 main ()
12128 {
12129
12130 ;
12131 return 0;
12132 }
12133 _ACEOF
12134 if ac_fn_c_try_compile "$LINENO"; then :
12135 ax_cv_check_cflags___mmmx=yes
12136 else
12137 ax_cv_check_cflags___mmmx=no
12138 fi
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 CFLAGS=$ax_check_save_flags
12141 fi
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
12143 $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
12144 if test x"$ax_cv_check_cflags___mmmx" = xyes; then :
12145 ax_cv_support_mmx_ext=yes
12146 else
12147 :
12148 fi
12149
12150 if test x"$ax_cv_support_mmx_ext" = x"yes"; then
12151 SIMD_FLAGS="$SIMD_FLAGS -mmmx"
12152
12153 $as_echo "#define HAVE_MMX /**/" >>confdefs.h
12154
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports mmx instructions but not your compiler, can you try another compiler?" >&5
12157 $as_echo "$as_me: WARNING: Your processor supports mmx instructions but not your compiler, can you try another compiler?" >&2;}
12158 fi
12159 fi
12160
12161 if test "$ac_cv_sizeof_long" -eq 8; then
12162 SIMD_FLAGS="$SIMD_FLAGS -DARCH_64"
12163 fi
12164
12165 if test "$ax_cv_have_sse_ext" = yes; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse" >&5
12167 $as_echo_n "checking whether C compiler accepts -msse... " >&6; }
12168 if ${ax_cv_check_cflags___msse+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171
12172 ax_check_save_flags=$CFLAGS
12173 CFLAGS="$CFLAGS -msse"
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176
12177 int
12178 main ()
12179 {
12180
12181 ;
12182 return 0;
12183 }
12184 _ACEOF
12185 if ac_fn_c_try_compile "$LINENO"; then :
12186 ax_cv_check_cflags___msse=yes
12187 else
12188 ax_cv_check_cflags___msse=no
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 CFLAGS=$ax_check_save_flags
12192 fi
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse" >&5
12194 $as_echo "$ax_cv_check_cflags___msse" >&6; }
12195 if test x"$ax_cv_check_cflags___msse" = xyes; then :
12196 ax_cv_support_sse_ext=yes
12197 else
12198 :
12199 fi
12200
12201 if test x"$ax_cv_support_sse_ext" = x"yes"; then
12202 SIMD_FLAGS="$SIMD_FLAGS -msse -DINTEL_SSE"
12203
12204 $as_echo "#define HAVE_SSE /**/" >>confdefs.h
12205
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports sse instructions but not your compiler, can you try another compiler?" >&5
12208 $as_echo "$as_me: WARNING: Your processor supports sse instructions but not your compiler, can you try another compiler?" >&2;}
12209 fi
12210 fi
12211
12212 if test "$ax_cv_have_sse2_ext" = yes; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
12214 $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
12215 if ${ax_cv_check_cflags___msse2+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218
12219 ax_check_save_flags=$CFLAGS
12220 CFLAGS="$CFLAGS -msse2"
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12223
12224 int
12225 main ()
12226 {
12227
12228 ;
12229 return 0;
12230 }
12231 _ACEOF
12232 if ac_fn_c_try_compile "$LINENO"; then :
12233 ax_cv_check_cflags___msse2=yes
12234 else
12235 ax_cv_check_cflags___msse2=no
12236 fi
12237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238 CFLAGS=$ax_check_save_flags
12239 fi
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
12241 $as_echo "$ax_cv_check_cflags___msse2" >&6; }
12242 if test x"$ax_cv_check_cflags___msse2" = xyes; then :
12243 ax_cv_support_sse2_ext=yes
12244 else
12245 :
12246 fi
12247
12248 if test x"$ax_cv_support_sse2_ext" = x"yes"; then
12249 SIMD_FLAGS="$SIMD_FLAGS -msse2 -DINTEL_SSE2"
12250
12251 $as_echo "#define HAVE_SSE2 /**/" >>confdefs.h
12252
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports sse2 instructions but not your compiler, can you try another compiler?" >&5
12255 $as_echo "$as_me: WARNING: Your processor supports sse2 instructions but not your compiler, can you try another compiler?" >&2;}
12256 fi
12257 fi
12258
12259 if test "$ax_cv_have_sse3_ext" = yes; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
12261 $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
12262 if ${ax_cv_check_cflags___msse3+:} false; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265
12266 ax_check_save_flags=$CFLAGS
12267 CFLAGS="$CFLAGS -msse3"
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12270
12271 int
12272 main ()
12273 {
12274
12275 ;
12276 return 0;
12277 }
12278 _ACEOF
12279 if ac_fn_c_try_compile "$LINENO"; then :
12280 ax_cv_check_cflags___msse3=yes
12281 else
12282 ax_cv_check_cflags___msse3=no
12283 fi
12284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285 CFLAGS=$ax_check_save_flags
12286 fi
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
12288 $as_echo "$ax_cv_check_cflags___msse3" >&6; }
12289 if test x"$ax_cv_check_cflags___msse3" = xyes; then :
12290 ax_cv_support_sse3_ext=yes
12291 else
12292 :
12293 fi
12294
12295 if test x"$ax_cv_support_sse3_ext" = x"yes"; then
12296 SIMD_FLAGS="$SIMD_FLAGS -msse3 -DINTEL_SSE3"
12297
12298 $as_echo "#define HAVE_SSE3 /**/" >>confdefs.h
12299
12300 else
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports sse3 instructions but not your compiler, can you try another compiler?" >&5
12302 $as_echo "$as_me: WARNING: Your processor supports sse3 instructions but not your compiler, can you try another compiler?" >&2;}
12303 fi
12304 fi
12305
12306 if test "$ax_cv_have_ssse3_ext" = yes; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
12308 $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
12309 if ${ax_cv_check_cflags___mssse3+:} false; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312
12313 ax_check_save_flags=$CFLAGS
12314 CFLAGS="$CFLAGS -mssse3"
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317
12318 int
12319 main ()
12320 {
12321
12322 ;
12323 return 0;
12324 }
12325 _ACEOF
12326 if ac_fn_c_try_compile "$LINENO"; then :
12327 ax_cv_check_cflags___mssse3=yes
12328 else
12329 ax_cv_check_cflags___mssse3=no
12330 fi
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 CFLAGS=$ax_check_save_flags
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
12335 $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
12336 if test x"$ax_cv_check_cflags___mssse3" = xyes; then :
12337 ax_cv_support_ssse3_ext=yes
12338 else
12339 :
12340 fi
12341
12342 if test x"$ax_cv_support_ssse3_ext" = x"yes"; then
12343 SIMD_FLAGS="$SIMD_FLAGS -mssse3"
12344
12345 $as_echo "#define HAVE_SSSE3 /**/" >>confdefs.h
12346
12347 else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports ssse3 instructions but not your compiler, can you try another compiler?" >&5
12349 $as_echo "$as_me: WARNING: Your processor supports ssse3 instructions but not your compiler, can you try another compiler?" >&2;}
12350 fi
12351 fi
12352
12353 if test "$ax_cv_have_sse41_ext" = yes; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
12355 $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
12356 if ${ax_cv_check_cflags___msse4_1+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359
12360 ax_check_save_flags=$CFLAGS
12361 CFLAGS="$CFLAGS -msse4.1"
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12364
12365 int
12366 main ()
12367 {
12368
12369 ;
12370 return 0;
12371 }
12372 _ACEOF
12373 if ac_fn_c_try_compile "$LINENO"; then :
12374 ax_cv_check_cflags___msse4_1=yes
12375 else
12376 ax_cv_check_cflags___msse4_1=no
12377 fi
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 CFLAGS=$ax_check_save_flags
12380 fi
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
12382 $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
12383 if test x"$ax_cv_check_cflags___msse4_1" = xyes; then :
12384 ax_cv_support_sse41_ext=yes
12385 else
12386 :
12387 fi
12388
12389 if test x"$ax_cv_support_sse41_ext" = x"yes"; then
12390 SIMD_FLAGS="$SIMD_FLAGS -msse4.1 -DINTEL_SSE4"
12391
12392 $as_echo "#define HAVE_SSE4_1 /**/" >>confdefs.h
12393
12394 else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports sse4.1 instructions but not your compiler, can you try another compiler?" >&5
12396 $as_echo "$as_me: WARNING: Your processor supports sse4.1 instructions but not your compiler, can you try another compiler?" >&2;}
12397 fi
12398 fi
12399
12400 if test "$ax_cv_have_sse42_ext" = yes; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.2" >&5
12402 $as_echo_n "checking whether C compiler accepts -msse4.2... " >&6; }
12403 if ${ax_cv_check_cflags___msse4_2+:} false; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406
12407 ax_check_save_flags=$CFLAGS
12408 CFLAGS="$CFLAGS -msse4.2"
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12411
12412 int
12413 main ()
12414 {
12415
12416 ;
12417 return 0;
12418 }
12419 _ACEOF
12420 if ac_fn_c_try_compile "$LINENO"; then :
12421 ax_cv_check_cflags___msse4_2=yes
12422 else
12423 ax_cv_check_cflags___msse4_2=no
12424 fi
12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426 CFLAGS=$ax_check_save_flags
12427 fi
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_2" >&5
12429 $as_echo "$ax_cv_check_cflags___msse4_2" >&6; }
12430 if test x"$ax_cv_check_cflags___msse4_2" = xyes; then :
12431 ax_cv_support_sse42_ext=yes
12432 else
12433 :
12434 fi
12435
12436 if test x"$ax_cv_support_sse42_ext" = x"yes"; then
12437 SIMD_FLAGS="$SIMD_FLAGS -msse4.2 -DINTEL_SSE4"
12438
12439 $as_echo "#define HAVE_SSE4_2 /**/" >>confdefs.h
12440
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports sse4.2 instructions but not your compiler, can you try another compiler?" >&5
12443 $as_echo "$as_me: WARNING: Your processor supports sse4.2 instructions but not your compiler, can you try another compiler?" >&2;}
12444 fi
12445 fi
12446
12447 if test "$ax_cv_have_avx_ext" = yes; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
12449 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
12450 if ${ax_cv_check_cflags___mavx+:} false; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453
12454 ax_check_save_flags=$CFLAGS
12455 CFLAGS="$CFLAGS -mavx"
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12458
12459 int
12460 main ()
12461 {
12462
12463 ;
12464 return 0;
12465 }
12466 _ACEOF
12467 if ac_fn_c_try_compile "$LINENO"; then :
12468 ax_cv_check_cflags___mavx=yes
12469 else
12470 ax_cv_check_cflags___mavx=no
12471 fi
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473 CFLAGS=$ax_check_save_flags
12474 fi
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
12476 $as_echo "$ax_cv_check_cflags___mavx" >&6; }
12477 if test x"$ax_cv_check_cflags___mavx" = xyes; then :
12478 ax_cv_support_avx_ext=yes
12479 else
12480 :
12481 fi
12482
12483 if test x"$ax_cv_support_avx_ext" = x"yes"; then
12484 SIMD_FLAGS="$SIMD_FLAGS -mavx"
12485
12486 $as_echo "#define HAVE_AVX /**/" >>confdefs.h
12487
12488 else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports avx instructions but not your compiler, can you try another compiler?" >&5
12490 $as_echo "$as_me: WARNING: Your processor supports avx instructions but not your compiler, can you try another compiler?" >&2;}
12491 fi
12492 fi
12493
12494 ;;
12495 esac
12496
12497
12498
12499
12500 ac_config_files="$ac_config_files Makefile Examples/Makefile src/Makefile"
12501
12502 cat >confcache <<\_ACEOF
12503 # This file is a shell script that caches the results of configure
12504 # tests run on this system so they can be shared between configure
12505 # scripts and configure runs, see configure's option --config-cache.
12506 # It is not useful on other systems. If it contains results you don't
12507 # want to keep, you may remove or edit it.
12508 #
12509 # config.status only pays attention to the cache file if you give it
12510 # the --recheck option to rerun configure.
12511 #
12512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12514 # following values.
12515
12516 _ACEOF
12517
12518 # The following way of writing the cache mishandles newlines in values,
12519 # but we know of no workaround that is simple, portable, and efficient.
12520 # So, we kill variables containing newlines.
12521 # Ultrix sh set writes to stderr and can't be redirected directly,
12522 # and sets the high bit in the cache file unless we assign to the vars.
12523 (
12524 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12525 eval ac_val=\$$ac_var
12526 case $ac_val in #(
12527 *${as_nl}*)
12528 case $ac_var in #(
12529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12531 esac
12532 case $ac_var in #(
12533 _ | IFS | as_nl) ;; #(
12534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12535 *) { eval $ac_var=; unset $ac_var;} ;;
12536 esac ;;
12537 esac
12538 done
12539
12540 (set) 2>&1 |
12541 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12542 *${as_nl}ac_space=\ *)
12543 # `set' does not quote correctly, so add quotes: double-quote
12544 # substitution turns \\\\ into \\, and sed turns \\ into \.
12545 sed -n \
12546 "s/'/'\\\\''/g;
12547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12548 ;; #(
12549 *)
12550 # `set' quotes correctly as required by POSIX, so do not add quotes.
12551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12552 ;;
12553 esac |
12554 sort
12555 ) |
12556 sed '
12557 /^ac_cv_env_/b end
12558 t clear
12559 :clear
12560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12561 t end
12562 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12563 :end' >>confcache
12564 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12565 if test -w "$cache_file"; then
12566 if test "x$cache_file" != "x/dev/null"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12568 $as_echo "$as_me: updating cache $cache_file" >&6;}
12569 if test ! -f "$cache_file" || test -h "$cache_file"; then
12570 cat confcache >"$cache_file"
12571 else
12572 case $cache_file in #(
12573 */* | ?:*)
12574 mv -f confcache "$cache_file"$$ &&
12575 mv -f "$cache_file"$$ "$cache_file" ;; #(
12576 *)
12577 mv -f confcache "$cache_file" ;;
12578 esac
12579 fi
12580 fi
12581 else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12583 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12584 fi
12585 fi
12586 rm -f confcache
12587
12588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12589 # Let make expand exec_prefix.
12590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12591
12592 DEFS=-DHAVE_CONFIG_H
12593
12594 ac_libobjs=
12595 ac_ltlibobjs=
12596 U=
12597 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12598 # 1. Remove the extension, and $U if already installed.
12599 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12600 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12601 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12602 # will be set to the directory where LIBOBJS objects are built.
12603 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12604 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12605 done
12606 LIBOBJS=$ac_libobjs
12607
12608 LTLIBOBJS=$ac_ltlibobjs
12609
12610
12611 if test -n "$EXEEXT"; then
12612 am__EXEEXT_TRUE=
12613 am__EXEEXT_FALSE='#'
12614 else
12615 am__EXEEXT_TRUE='#'
12616 am__EXEEXT_FALSE=
12617 fi
12618
12619
12620 : "${CONFIG_STATUS=./config.status}"
12621 ac_write_fail=0
12622 ac_clean_files_save=$ac_clean_files
12623 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12625 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12626 as_write_fail=0
12627 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12628 #! $SHELL
12629 # Generated by $as_me.
12630 # Run this file to recreate the current configuration.
12631 # Compiler output produced by configure, useful for debugging
12632 # configure, is in config.log if it exists.
12633
12634 debug=false
12635 ac_cs_recheck=false
12636 ac_cs_silent=false
12637
12638 SHELL=\${CONFIG_SHELL-$SHELL}
12639 export SHELL
12640 _ASEOF
12641 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12642 ## -------------------- ##
12643 ## M4sh Initialization. ##
12644 ## -------------------- ##
12645
12646 # Be more Bourne compatible
12647 DUALCASE=1; export DUALCASE # for MKS sh
12648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12649 emulate sh
12650 NULLCMD=:
12651 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12652 # is contrary to our usage. Disable this feature.
12653 alias -g '${1+"$@"}'='"$@"'
12654 setopt NO_GLOB_SUBST
12655 else
12656 case `(set -o) 2>/dev/null` in #(
12657 *posix*) :
12658 set -o posix ;; #(
12659 *) :
12660 ;;
12661 esac
12662 fi
12663
12664
12665 as_nl='
12666 '
12667 export as_nl
12668 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12669 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12672 # Prefer a ksh shell builtin over an external printf program on Solaris,
12673 # but without wasting forks for bash or zsh.
12674 if test -z "$BASH_VERSION$ZSH_VERSION" \
12675 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12676 as_echo='print -r --'
12677 as_echo_n='print -rn --'
12678 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12679 as_echo='printf %s\n'
12680 as_echo_n='printf %s'
12681 else
12682 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12683 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12684 as_echo_n='/usr/ucb/echo -n'
12685 else
12686 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12687 as_echo_n_body='eval
12688 arg=$1;
12689 case $arg in #(
12690 *"$as_nl"*)
12691 expr "X$arg" : "X\\(.*\\)$as_nl";
12692 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12693 esac;
12694 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12695 '
12696 export as_echo_n_body
12697 as_echo_n='sh -c $as_echo_n_body as_echo'
12698 fi
12699 export as_echo_body
12700 as_echo='sh -c $as_echo_body as_echo'
12701 fi
12702
12703 # The user is always right.
12704 if test "${PATH_SEPARATOR+set}" != set; then
12705 PATH_SEPARATOR=:
12706 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12707 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12708 PATH_SEPARATOR=';'
12709 }
12710 fi
12711
12712
12713 # IFS
12714 # We need space, tab and new line, in precisely that order. Quoting is
12715 # there to prevent editors from complaining about space-tab.
12716 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12717 # splitting by setting IFS to empty value.)
12718 IFS=" "" $as_nl"
12719
12720 # Find who we are. Look in the path if we contain no directory separator.
12721 as_myself=
12722 case $0 in #((
12723 *[\\/]* ) as_myself=$0 ;;
12724 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12726 do
12727 IFS=$as_save_IFS
12728 test -z "$as_dir" && as_dir=.
12729 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12730 done
12731 IFS=$as_save_IFS
12732
12733 ;;
12734 esac
12735 # We did not find ourselves, most probably we were run as `sh COMMAND'
12736 # in which case we are not to be found in the path.
12737 if test "x$as_myself" = x; then
12738 as_myself=$0
12739 fi
12740 if test ! -f "$as_myself"; then
12741 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12742 exit 1
12743 fi
12744
12745 # Unset variables that we do not need and which cause bugs (e.g. in
12746 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12747 # suppresses any "Segmentation fault" message there. '((' could
12748 # trigger a bug in pdksh 5.2.14.
12749 for as_var in BASH_ENV ENV MAIL MAILPATH
12750 do eval test x\${$as_var+set} = xset \
12751 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12752 done
12753 PS1='$ '
12754 PS2='> '
12755 PS4='+ '
12756
12757 # NLS nuisances.
12758 LC_ALL=C
12759 export LC_ALL
12760 LANGUAGE=C
12761 export LANGUAGE
12762
12763 # CDPATH.
12764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12765
12766
12767 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12768 # ----------------------------------------
12769 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12770 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12771 # script with STATUS, using 1 if that was 0.
12772 as_fn_error ()
12773 {
12774 as_status=$1; test $as_status -eq 0 && as_status=1
12775 if test "$4"; then
12776 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12777 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12778 fi
12779 $as_echo "$as_me: error: $2" >&2
12780 as_fn_exit $as_status
12781 } # as_fn_error
12782
12783
12784 # as_fn_set_status STATUS
12785 # -----------------------
12786 # Set $? to STATUS, without forking.
12787 as_fn_set_status ()
12788 {
12789 return $1
12790 } # as_fn_set_status
12791
12792 # as_fn_exit STATUS
12793 # -----------------
12794 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12795 as_fn_exit ()
12796 {
12797 set +e
12798 as_fn_set_status $1
12799 exit $1
12800 } # as_fn_exit
12801
12802 # as_fn_unset VAR
12803 # ---------------
12804 # Portably unset VAR.
12805 as_fn_unset ()
12806 {
12807 { eval $1=; unset $1;}
12808 }
12809 as_unset=as_fn_unset
12810 # as_fn_append VAR VALUE
12811 # ----------------------
12812 # Append the text in VALUE to the end of the definition contained in VAR. Take
12813 # advantage of any shell optimizations that allow amortized linear growth over
12814 # repeated appends, instead of the typical quadratic growth present in naive
12815 # implementations.
12816 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12817 eval 'as_fn_append ()
12818 {
12819 eval $1+=\$2
12820 }'
12821 else
12822 as_fn_append ()
12823 {
12824 eval $1=\$$1\$2
12825 }
12826 fi # as_fn_append
12827
12828 # as_fn_arith ARG...
12829 # ------------------
12830 # Perform arithmetic evaluation on the ARGs, and store the result in the
12831 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12832 # must be portable across $(()) and expr.
12833 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12834 eval 'as_fn_arith ()
12835 {
12836 as_val=$(( $* ))
12837 }'
12838 else
12839 as_fn_arith ()
12840 {
12841 as_val=`expr "$@" || test $? -eq 1`
12842 }
12843 fi # as_fn_arith
12844
12845
12846 if expr a : '\(a\)' >/dev/null 2>&1 &&
12847 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12848 as_expr=expr
12849 else
12850 as_expr=false
12851 fi
12852
12853 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12854 as_basename=basename
12855 else
12856 as_basename=false
12857 fi
12858
12859 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12860 as_dirname=dirname
12861 else
12862 as_dirname=false
12863 fi
12864
12865 as_me=`$as_basename -- "$0" ||
12866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12867 X"$0" : 'X\(//\)$' \| \
12868 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12869 $as_echo X/"$0" |
12870 sed '/^.*\/\([^/][^/]*\)\/*$/{
12871 s//\1/
12872 q
12873 }
12874 /^X\/\(\/\/\)$/{
12875 s//\1/
12876 q
12877 }
12878 /^X\/\(\/\).*/{
12879 s//\1/
12880 q
12881 }
12882 s/.*/./; q'`
12883
12884 # Avoid depending upon Character Ranges.
12885 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12886 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12887 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12888 as_cr_digits='0123456789'
12889 as_cr_alnum=$as_cr_Letters$as_cr_digits
12890
12891 ECHO_C= ECHO_N= ECHO_T=
12892 case `echo -n x` in #(((((
12893 -n*)
12894 case `echo 'xy\c'` in
12895 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12896 xy) ECHO_C='\c';;
12897 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12898 ECHO_T=' ';;
12899 esac;;
12900 *)
12901 ECHO_N='-n';;
12902 esac
12903
12904 rm -f conf$$ conf$$.exe conf$$.file
12905 if test -d conf$$.dir; then
12906 rm -f conf$$.dir/conf$$.file
12907 else
12908 rm -f conf$$.dir
12909 mkdir conf$$.dir 2>/dev/null
12910 fi
12911 if (echo >conf$$.file) 2>/dev/null; then
12912 if ln -s conf$$.file conf$$ 2>/dev/null; then
12913 as_ln_s='ln -s'
12914 # ... but there are two gotchas:
12915 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12916 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12917 # In both cases, we have to default to `cp -p'.
12918 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12919 as_ln_s='cp -p'
12920 elif ln conf$$.file conf$$ 2>/dev/null; then
12921 as_ln_s=ln
12922 else
12923 as_ln_s='cp -p'
12924 fi
12925 else
12926 as_ln_s='cp -p'
12927 fi
12928 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12929 rmdir conf$$.dir 2>/dev/null
12930
12931
12932 # as_fn_mkdir_p
12933 # -------------
12934 # Create "$as_dir" as a directory, including parents if necessary.
12935 as_fn_mkdir_p ()
12936 {
12937
12938 case $as_dir in #(
12939 -*) as_dir=./$as_dir;;
12940 esac
12941 test -d "$as_dir" || eval $as_mkdir_p || {
12942 as_dirs=
12943 while :; do
12944 case $as_dir in #(
12945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12946 *) as_qdir=$as_dir;;
12947 esac
12948 as_dirs="'$as_qdir' $as_dirs"
12949 as_dir=`$as_dirname -- "$as_dir" ||
12950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12951 X"$as_dir" : 'X\(//\)[^/]' \| \
12952 X"$as_dir" : 'X\(//\)$' \| \
12953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12954 $as_echo X"$as_dir" |
12955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12956 s//\1/
12957 q
12958 }
12959 /^X\(\/\/\)[^/].*/{
12960 s//\1/
12961 q
12962 }
12963 /^X\(\/\/\)$/{
12964 s//\1/
12965 q
12966 }
12967 /^X\(\/\).*/{
12968 s//\1/
12969 q
12970 }
12971 s/.*/./; q'`
12972 test -d "$as_dir" && break
12973 done
12974 test -z "$as_dirs" || eval "mkdir $as_dirs"
12975 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12976
12977
12978 } # as_fn_mkdir_p
12979 if mkdir -p . 2>/dev/null; then
12980 as_mkdir_p='mkdir -p "$as_dir"'
12981 else
12982 test -d ./-p && rmdir ./-p
12983 as_mkdir_p=false
12984 fi
12985
12986 if test -x / >/dev/null 2>&1; then
12987 as_test_x='test -x'
12988 else
12989 if ls -dL / >/dev/null 2>&1; then
12990 as_ls_L_option=L
12991 else
12992 as_ls_L_option=
12993 fi
12994 as_test_x='
12995 eval sh -c '\''
12996 if test -d "$1"; then
12997 test -d "$1/.";
12998 else
12999 case $1 in #(
13000 -*)set "./$1";;
13001 esac;
13002 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13003 ???[sx]*):;;*)false;;esac;fi
13004 '\'' sh
13005 '
13006 fi
13007 as_executable_p=$as_test_x
13008
13009 # Sed expression to map a string onto a valid CPP name.
13010 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13011
13012 # Sed expression to map a string onto a valid variable name.
13013 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13014
13015
13016 exec 6>&1
13017 ## ----------------------------------- ##
13018 ## Main body of $CONFIG_STATUS script. ##
13019 ## ----------------------------------- ##
13020 _ASEOF
13021 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13022
13023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13024 # Save the log message, to keep $0 and so on meaningful, and to
13025 # report actual input values of CONFIG_FILES etc. instead of their
13026 # values after options handling.
13027 ac_log="
13028 This file was extended by Jerasure $as_me 2.0, which was
13029 generated by GNU Autoconf 2.68. Invocation command line was
13030
13031 CONFIG_FILES = $CONFIG_FILES
13032 CONFIG_HEADERS = $CONFIG_HEADERS
13033 CONFIG_LINKS = $CONFIG_LINKS
13034 CONFIG_COMMANDS = $CONFIG_COMMANDS
13035 $ $0 $@
13036
13037 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13038 "
13039
13040 _ACEOF
13041
13042 case $ac_config_files in *"
13043 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13044 esac
13045
13046 case $ac_config_headers in *"
13047 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13048 esac
13049
13050
13051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13052 # Files that config.status was made for.
13053 config_files="$ac_config_files"
13054 config_headers="$ac_config_headers"
13055 config_commands="$ac_config_commands"
13056
13057 _ACEOF
13058
13059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13060 ac_cs_usage="\
13061 \`$as_me' instantiates files and other configuration actions
13062 from templates according to the current configuration. Unless the files
13063 and actions are specified as TAGs, all are instantiated by default.
13064
13065 Usage: $0 [OPTION]... [TAG]...
13066
13067 -h, --help print this help, then exit
13068 -V, --version print version number and configuration settings, then exit
13069 --config print configuration, then exit
13070 -q, --quiet, --silent
13071 do not print progress messages
13072 -d, --debug don't remove temporary files
13073 --recheck update $as_me by reconfiguring in the same conditions
13074 --file=FILE[:TEMPLATE]
13075 instantiate the configuration file FILE
13076 --header=FILE[:TEMPLATE]
13077 instantiate the configuration header FILE
13078
13079 Configuration files:
13080 $config_files
13081
13082 Configuration headers:
13083 $config_headers
13084
13085 Configuration commands:
13086 $config_commands
13087
13088 Report bugs to the package provider."
13089
13090 _ACEOF
13091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13092 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13093 ac_cs_version="\\
13094 Jerasure config.status 2.0
13095 configured by $0, generated by GNU Autoconf 2.68,
13096 with options \\"\$ac_cs_config\\"
13097
13098 Copyright (C) 2010 Free Software Foundation, Inc.
13099 This config.status script is free software; the Free Software Foundation
13100 gives unlimited permission to copy, distribute and modify it."
13101
13102 ac_pwd='$ac_pwd'
13103 srcdir='$srcdir'
13104 INSTALL='$INSTALL'
13105 MKDIR_P='$MKDIR_P'
13106 AWK='$AWK'
13107 test -n "\$AWK" || AWK=awk
13108 _ACEOF
13109
13110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13111 # The default lists apply if the user does not specify any file.
13112 ac_need_defaults=:
13113 while test $# != 0
13114 do
13115 case $1 in
13116 --*=?*)
13117 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13118 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13119 ac_shift=:
13120 ;;
13121 --*=)
13122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13123 ac_optarg=
13124 ac_shift=:
13125 ;;
13126 *)
13127 ac_option=$1
13128 ac_optarg=$2
13129 ac_shift=shift
13130 ;;
13131 esac
13132
13133 case $ac_option in
13134 # Handling of the options.
13135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13136 ac_cs_recheck=: ;;
13137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13138 $as_echo "$ac_cs_version"; exit ;;
13139 --config | --confi | --conf | --con | --co | --c )
13140 $as_echo "$ac_cs_config"; exit ;;
13141 --debug | --debu | --deb | --de | --d | -d )
13142 debug=: ;;
13143 --file | --fil | --fi | --f )
13144 $ac_shift
13145 case $ac_optarg in
13146 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13147 '') as_fn_error $? "missing file argument" ;;
13148 esac
13149 as_fn_append CONFIG_FILES " '$ac_optarg'"
13150 ac_need_defaults=false;;
13151 --header | --heade | --head | --hea )
13152 $ac_shift
13153 case $ac_optarg in
13154 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13155 esac
13156 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13157 ac_need_defaults=false;;
13158 --he | --h)
13159 # Conflict between --help and --header
13160 as_fn_error $? "ambiguous option: \`$1'
13161 Try \`$0 --help' for more information.";;
13162 --help | --hel | -h )
13163 $as_echo "$ac_cs_usage"; exit ;;
13164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13165 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13166 ac_cs_silent=: ;;
13167
13168 # This is an error.
13169 -*) as_fn_error $? "unrecognized option: \`$1'
13170 Try \`$0 --help' for more information." ;;
13171
13172 *) as_fn_append ac_config_targets " $1"
13173 ac_need_defaults=false ;;
13174
13175 esac
13176 shift
13177 done
13178
13179 ac_configure_extra_args=
13180
13181 if $ac_cs_silent; then
13182 exec 6>/dev/null
13183 ac_configure_extra_args="$ac_configure_extra_args --silent"
13184 fi
13185
13186 _ACEOF
13187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13188 if \$ac_cs_recheck; then
13189 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13190 shift
13191 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13192 CONFIG_SHELL='$SHELL'
13193 export CONFIG_SHELL
13194 exec "\$@"
13195 fi
13196
13197 _ACEOF
13198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13199 exec 5>>config.log
13200 {
13201 echo
13202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13203 ## Running $as_me. ##
13204 _ASBOX
13205 $as_echo "$ac_log"
13206 } >&5
13207
13208 _ACEOF
13209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13210 #
13211 # INIT-COMMANDS
13212 #
13213
13214
13215 # The HP-UX ksh and POSIX shell print the target directory to stdout
13216 # if CDPATH is set.
13217 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13218
13219 sed_quote_subst='$sed_quote_subst'
13220 double_quote_subst='$double_quote_subst'
13221 delay_variable_subst='$delay_variable_subst'
13222 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13223 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13224 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13225 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13226 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13227 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13228 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13229 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13230 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13231 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13232 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13233 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13234 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13235 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13236 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13237 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13238 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13239 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13240 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13241 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13242 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13243 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13244 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13245 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13246 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13247 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13248 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13249 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13250 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13251 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13252 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13253 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13254 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13255 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13256 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13257 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13258 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13259 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13260 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13261 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13262 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13263 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13264 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13265 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13266 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13267 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13268 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13269 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13270 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13271 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13272 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13273 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13274 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13275 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13276 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13277 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13278 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"`'
13279 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13280 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13281 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13282 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13283 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13284 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13285 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13286 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13287 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13288 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13289 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13290 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13291 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13292 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13293 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13294 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13295 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13296 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13297 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13298 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13299 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13300 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13301 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13302 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13303 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13304 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13305 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13306 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13307 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13308 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13309 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13310 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13311 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13312 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13313 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13314 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13315 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13316 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13317 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13318 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13319 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13320 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13321 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13322 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13323 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13324 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13325 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13326 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13327 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13328 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13329 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13330 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13331 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13332 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13333 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13334 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13335 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13336 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13337 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13338 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13339 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13340 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13341 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13342 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13343 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13344 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13345 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13346 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13347 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13348 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13349 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13350 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13351 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13352
13353 LTCC='$LTCC'
13354 LTCFLAGS='$LTCFLAGS'
13355 compiler='$compiler_DEFAULT'
13356
13357 # A function that is used when there is no print builtin or printf.
13358 func_fallback_echo ()
13359 {
13360 eval 'cat <<_LTECHO_EOF
13361 \$1
13362 _LTECHO_EOF'
13363 }
13364
13365 # Quote evaled strings.
13366 for var in SHELL \
13367 ECHO \
13368 PATH_SEPARATOR \
13369 SED \
13370 GREP \
13371 EGREP \
13372 FGREP \
13373 LD \
13374 NM \
13375 LN_S \
13376 lt_SP2NL \
13377 lt_NL2SP \
13378 reload_flag \
13379 OBJDUMP \
13380 deplibs_check_method \
13381 file_magic_cmd \
13382 file_magic_glob \
13383 want_nocaseglob \
13384 DLLTOOL \
13385 sharedlib_from_linklib_cmd \
13386 AR \
13387 AR_FLAGS \
13388 archiver_list_spec \
13389 STRIP \
13390 RANLIB \
13391 CC \
13392 CFLAGS \
13393 compiler \
13394 lt_cv_sys_global_symbol_pipe \
13395 lt_cv_sys_global_symbol_to_cdecl \
13396 lt_cv_sys_global_symbol_to_c_name_address \
13397 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13398 nm_file_list_spec \
13399 lt_prog_compiler_no_builtin_flag \
13400 lt_prog_compiler_pic \
13401 lt_prog_compiler_wl \
13402 lt_prog_compiler_static \
13403 lt_cv_prog_compiler_c_o \
13404 need_locks \
13405 MANIFEST_TOOL \
13406 DSYMUTIL \
13407 NMEDIT \
13408 LIPO \
13409 OTOOL \
13410 OTOOL64 \
13411 shrext_cmds \
13412 export_dynamic_flag_spec \
13413 whole_archive_flag_spec \
13414 compiler_needs_object \
13415 with_gnu_ld \
13416 allow_undefined_flag \
13417 no_undefined_flag \
13418 hardcode_libdir_flag_spec \
13419 hardcode_libdir_separator \
13420 exclude_expsyms \
13421 include_expsyms \
13422 file_list_spec \
13423 variables_saved_for_relink \
13424 libname_spec \
13425 library_names_spec \
13426 soname_spec \
13427 install_override_mode \
13428 finish_eval \
13429 old_striplib \
13430 striplib; do
13431 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13432 *[\\\\\\\`\\"\\\$]*)
13433 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13434 ;;
13435 *)
13436 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13437 ;;
13438 esac
13439 done
13440
13441 # Double-quote double-evaled strings.
13442 for var in reload_cmds \
13443 old_postinstall_cmds \
13444 old_postuninstall_cmds \
13445 old_archive_cmds \
13446 extract_expsyms_cmds \
13447 old_archive_from_new_cmds \
13448 old_archive_from_expsyms_cmds \
13449 archive_cmds \
13450 archive_expsym_cmds \
13451 module_cmds \
13452 module_expsym_cmds \
13453 export_symbols_cmds \
13454 prelink_cmds \
13455 postlink_cmds \
13456 postinstall_cmds \
13457 postuninstall_cmds \
13458 finish_cmds \
13459 sys_lib_search_path_spec \
13460 sys_lib_dlsearch_path_spec; do
13461 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13462 *[\\\\\\\`\\"\\\$]*)
13463 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13464 ;;
13465 *)
13466 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13467 ;;
13468 esac
13469 done
13470
13471 ac_aux_dir='$ac_aux_dir'
13472 xsi_shell='$xsi_shell'
13473 lt_shell_append='$lt_shell_append'
13474
13475 # See if we are running on zsh, and set the options which allow our
13476 # commands through without removal of \ escapes INIT.
13477 if test -n "\${ZSH_VERSION+set}" ; then
13478 setopt NO_GLOB_SUBST
13479 fi
13480
13481
13482 PACKAGE='$PACKAGE'
13483 VERSION='$VERSION'
13484 TIMESTAMP='$TIMESTAMP'
13485 RM='$RM'
13486 ofile='$ofile'
13487
13488
13489
13490
13491 _ACEOF
13492
13493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13494
13495 # Handling of arguments.
13496 for ac_config_target in $ac_config_targets
13497 do
13498 case $ac_config_target in
13499 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13500 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13501 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13502 "Examples/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/Makefile" ;;
13503 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13504
13505 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13506 esac
13507 done
13508
13509
13510 # If the user did not use the arguments to specify the items to instantiate,
13511 # then the envvar interface is used. Set only those that are not.
13512 # We use the long form for the default assignment because of an extremely
13513 # bizarre bug on SunOS 4.1.3.
13514 if $ac_need_defaults; then
13515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13517 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13518 fi
13519
13520 # Have a temporary directory for convenience. Make it in the build tree
13521 # simply because there is no reason against having it here, and in addition,
13522 # creating and moving files from /tmp can sometimes cause problems.
13523 # Hook for its removal unless debugging.
13524 # Note that there is a small window in which the directory will not be cleaned:
13525 # after its creation but before its name has been assigned to `$tmp'.
13526 $debug ||
13527 {
13528 tmp= ac_tmp=
13529 trap 'exit_status=$?
13530 : "${ac_tmp:=$tmp}"
13531 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13532 ' 0
13533 trap 'as_fn_exit 1' 1 2 13 15
13534 }
13535 # Create a (secure) tmp directory for tmp files.
13536
13537 {
13538 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13539 test -d "$tmp"
13540 } ||
13541 {
13542 tmp=./conf$$-$RANDOM
13543 (umask 077 && mkdir "$tmp")
13544 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13545 ac_tmp=$tmp
13546
13547 # Set up the scripts for CONFIG_FILES section.
13548 # No need to generate them if there are no CONFIG_FILES.
13549 # This happens for instance with `./config.status config.h'.
13550 if test -n "$CONFIG_FILES"; then
13551
13552
13553 ac_cr=`echo X | tr X '\015'`
13554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13555 # But we know of no other shell where ac_cr would be empty at this
13556 # point, so we can use a bashism as a fallback.
13557 if test "x$ac_cr" = x; then
13558 eval ac_cr=\$\'\\r\'
13559 fi
13560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13562 ac_cs_awk_cr='\\r'
13563 else
13564 ac_cs_awk_cr=$ac_cr
13565 fi
13566
13567 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13568 _ACEOF
13569
13570
13571 {
13572 echo "cat >conf$$subs.awk <<_ACEOF" &&
13573 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13574 echo "_ACEOF"
13575 } >conf$$subs.sh ||
13576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13577 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13578 ac_delim='%!_!# '
13579 for ac_last_try in false false false false false :; do
13580 . ./conf$$subs.sh ||
13581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13582
13583 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13584 if test $ac_delim_n = $ac_delim_num; then
13585 break
13586 elif $ac_last_try; then
13587 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13588 else
13589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13590 fi
13591 done
13592 rm -f conf$$subs.sh
13593
13594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13595 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13596 _ACEOF
13597 sed -n '
13598 h
13599 s/^/S["/; s/!.*/"]=/
13600 p
13601 g
13602 s/^[^!]*!//
13603 :repl
13604 t repl
13605 s/'"$ac_delim"'$//
13606 t delim
13607 :nl
13608 h
13609 s/\(.\{148\}\)..*/\1/
13610 t more1
13611 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13612 p
13613 n
13614 b repl
13615 :more1
13616 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13617 p
13618 g
13619 s/.\{148\}//
13620 t nl
13621 :delim
13622 h
13623 s/\(.\{148\}\)..*/\1/
13624 t more2
13625 s/["\\]/\\&/g; s/^/"/; s/$/"/
13626 p
13627 b
13628 :more2
13629 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13630 p
13631 g
13632 s/.\{148\}//
13633 t delim
13634 ' <conf$$subs.awk | sed '
13635 /^[^""]/{
13636 N
13637 s/\n//
13638 }
13639 ' >>$CONFIG_STATUS || ac_write_fail=1
13640 rm -f conf$$subs.awk
13641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13642 _ACAWK
13643 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13644 for (key in S) S_is_set[key] = 1
13645 FS = "\a"
13646
13647 }
13648 {
13649 line = $ 0
13650 nfields = split(line, field, "@")
13651 substed = 0
13652 len = length(field[1])
13653 for (i = 2; i < nfields; i++) {
13654 key = field[i]
13655 keylen = length(key)
13656 if (S_is_set[key]) {
13657 value = S[key]
13658 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13659 len += length(value) + length(field[++i])
13660 substed = 1
13661 } else
13662 len += 1 + keylen
13663 }
13664
13665 print line
13666 }
13667
13668 _ACAWK
13669 _ACEOF
13670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13672 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13673 else
13674 cat
13675 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13676 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13677 _ACEOF
13678
13679 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13680 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13681 # trailing colons and then remove the whole line if VPATH becomes empty
13682 # (actually we leave an empty line to preserve line numbers).
13683 if test "x$srcdir" = x.; then
13684 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13685 h
13686 s///
13687 s/^/:/
13688 s/[ ]*$/:/
13689 s/:\$(srcdir):/:/g
13690 s/:\${srcdir}:/:/g
13691 s/:@srcdir@:/:/g
13692 s/^:*//
13693 s/:*$//
13694 x
13695 s/\(=[ ]*\).*/\1/
13696 G
13697 s/\n//
13698 s/^[^=]*=[ ]*$//
13699 }'
13700 fi
13701
13702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13703 fi # test -n "$CONFIG_FILES"
13704
13705 # Set up the scripts for CONFIG_HEADERS section.
13706 # No need to generate them if there are no CONFIG_HEADERS.
13707 # This happens for instance with `./config.status Makefile'.
13708 if test -n "$CONFIG_HEADERS"; then
13709 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13710 BEGIN {
13711 _ACEOF
13712
13713 # Transform confdefs.h into an awk script `defines.awk', embedded as
13714 # here-document in config.status, that substitutes the proper values into
13715 # config.h.in to produce config.h.
13716
13717 # Create a delimiter string that does not exist in confdefs.h, to ease
13718 # handling of long lines.
13719 ac_delim='%!_!# '
13720 for ac_last_try in false false :; do
13721 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13722 if test -z "$ac_tt"; then
13723 break
13724 elif $ac_last_try; then
13725 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13726 else
13727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13728 fi
13729 done
13730
13731 # For the awk script, D is an array of macro values keyed by name,
13732 # likewise P contains macro parameters if any. Preserve backslash
13733 # newline sequences.
13734
13735 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13736 sed -n '
13737 s/.\{148\}/&'"$ac_delim"'/g
13738 t rset
13739 :rset
13740 s/^[ ]*#[ ]*define[ ][ ]*/ /
13741 t def
13742 d
13743 :def
13744 s/\\$//
13745 t bsnl
13746 s/["\\]/\\&/g
13747 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13748 D["\1"]=" \3"/p
13749 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13750 d
13751 :bsnl
13752 s/["\\]/\\&/g
13753 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13754 D["\1"]=" \3\\\\\\n"\\/p
13755 t cont
13756 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13757 t cont
13758 d
13759 :cont
13760 n
13761 s/.\{148\}/&'"$ac_delim"'/g
13762 t clear
13763 :clear
13764 s/\\$//
13765 t bsnlc
13766 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13767 d
13768 :bsnlc
13769 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13770 b cont
13771 ' <confdefs.h | sed '
13772 s/'"$ac_delim"'/"\\\
13773 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13774
13775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13776 for (key in D) D_is_set[key] = 1
13777 FS = "\a"
13778 }
13779 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13780 line = \$ 0
13781 split(line, arg, " ")
13782 if (arg[1] == "#") {
13783 defundef = arg[2]
13784 mac1 = arg[3]
13785 } else {
13786 defundef = substr(arg[1], 2)
13787 mac1 = arg[2]
13788 }
13789 split(mac1, mac2, "(") #)
13790 macro = mac2[1]
13791 prefix = substr(line, 1, index(line, defundef) - 1)
13792 if (D_is_set[macro]) {
13793 # Preserve the white space surrounding the "#".
13794 print prefix "define", macro P[macro] D[macro]
13795 next
13796 } else {
13797 # Replace #undef with comments. This is necessary, for example,
13798 # in the case of _POSIX_SOURCE, which is predefined and required
13799 # on some systems where configure will not decide to define it.
13800 if (defundef == "undef") {
13801 print "/*", prefix defundef, macro, "*/"
13802 next
13803 }
13804 }
13805 }
13806 { print }
13807 _ACAWK
13808 _ACEOF
13809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13810 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13811 fi # test -n "$CONFIG_HEADERS"
13812
13813
13814 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13815 shift
13816 for ac_tag
13817 do
13818 case $ac_tag in
13819 :[FHLC]) ac_mode=$ac_tag; continue;;
13820 esac
13821 case $ac_mode$ac_tag in
13822 :[FHL]*:*);;
13823 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13824 :[FH]-) ac_tag=-:-;;
13825 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13826 esac
13827 ac_save_IFS=$IFS
13828 IFS=:
13829 set x $ac_tag
13830 IFS=$ac_save_IFS
13831 shift
13832 ac_file=$1
13833 shift
13834
13835 case $ac_mode in
13836 :L) ac_source=$1;;
13837 :[FH])
13838 ac_file_inputs=
13839 for ac_f
13840 do
13841 case $ac_f in
13842 -) ac_f="$ac_tmp/stdin";;
13843 *) # Look for the file first in the build tree, then in the source tree
13844 # (if the path is not absolute). The absolute path cannot be DOS-style,
13845 # because $ac_f cannot contain `:'.
13846 test -f "$ac_f" ||
13847 case $ac_f in
13848 [\\/$]*) false;;
13849 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13850 esac ||
13851 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13852 esac
13853 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13854 as_fn_append ac_file_inputs " '$ac_f'"
13855 done
13856
13857 # Let's still pretend it is `configure' which instantiates (i.e., don't
13858 # use $as_me), people would be surprised to read:
13859 # /* config.h. Generated by config.status. */
13860 configure_input='Generated from '`
13861 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13862 `' by configure.'
13863 if test x"$ac_file" != x-; then
13864 configure_input="$ac_file. $configure_input"
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13866 $as_echo "$as_me: creating $ac_file" >&6;}
13867 fi
13868 # Neutralize special characters interpreted by sed in replacement strings.
13869 case $configure_input in #(
13870 *\&* | *\|* | *\\* )
13871 ac_sed_conf_input=`$as_echo "$configure_input" |
13872 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13873 *) ac_sed_conf_input=$configure_input;;
13874 esac
13875
13876 case $ac_tag in
13877 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13879 esac
13880 ;;
13881 esac
13882
13883 ac_dir=`$as_dirname -- "$ac_file" ||
13884 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13885 X"$ac_file" : 'X\(//\)[^/]' \| \
13886 X"$ac_file" : 'X\(//\)$' \| \
13887 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13888 $as_echo X"$ac_file" |
13889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13890 s//\1/
13891 q
13892 }
13893 /^X\(\/\/\)[^/].*/{
13894 s//\1/
13895 q
13896 }
13897 /^X\(\/\/\)$/{
13898 s//\1/
13899 q
13900 }
13901 /^X\(\/\).*/{
13902 s//\1/
13903 q
13904 }
13905 s/.*/./; q'`
13906 as_dir="$ac_dir"; as_fn_mkdir_p
13907 ac_builddir=.
13908
13909 case "$ac_dir" in
13910 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13911 *)
13912 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13913 # A ".." for each directory in $ac_dir_suffix.
13914 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13915 case $ac_top_builddir_sub in
13916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13918 esac ;;
13919 esac
13920 ac_abs_top_builddir=$ac_pwd
13921 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13922 # for backward compatibility:
13923 ac_top_builddir=$ac_top_build_prefix
13924
13925 case $srcdir in
13926 .) # We are building in place.
13927 ac_srcdir=.
13928 ac_top_srcdir=$ac_top_builddir_sub
13929 ac_abs_top_srcdir=$ac_pwd ;;
13930 [\\/]* | ?:[\\/]* ) # Absolute name.
13931 ac_srcdir=$srcdir$ac_dir_suffix;
13932 ac_top_srcdir=$srcdir
13933 ac_abs_top_srcdir=$srcdir ;;
13934 *) # Relative name.
13935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13936 ac_top_srcdir=$ac_top_build_prefix$srcdir
13937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13938 esac
13939 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13940
13941
13942 case $ac_mode in
13943 :F)
13944 #
13945 # CONFIG_FILE
13946 #
13947
13948 case $INSTALL in
13949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13950 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13951 esac
13952 ac_MKDIR_P=$MKDIR_P
13953 case $MKDIR_P in
13954 [\\/$]* | ?:[\\/]* ) ;;
13955 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13956 esac
13957 _ACEOF
13958
13959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13960 # If the template does not know about datarootdir, expand it.
13961 # FIXME: This hack should be removed a few years after 2.60.
13962 ac_datarootdir_hack=; ac_datarootdir_seen=
13963 ac_sed_dataroot='
13964 /datarootdir/ {
13965 p
13966 q
13967 }
13968 /@datadir@/p
13969 /@docdir@/p
13970 /@infodir@/p
13971 /@localedir@/p
13972 /@mandir@/p'
13973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13974 *datarootdir*) ac_datarootdir_seen=yes;;
13975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13978 _ACEOF
13979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13980 ac_datarootdir_hack='
13981 s&@datadir@&$datadir&g
13982 s&@docdir@&$docdir&g
13983 s&@infodir@&$infodir&g
13984 s&@localedir@&$localedir&g
13985 s&@mandir@&$mandir&g
13986 s&\\\${datarootdir}&$datarootdir&g' ;;
13987 esac
13988 _ACEOF
13989
13990 # Neutralize VPATH when `$srcdir' = `.'.
13991 # Shell code in configure.ac might set extrasub.
13992 # FIXME: do we really want to maintain this feature?
13993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13994 ac_sed_extra="$ac_vpsub
13995 $extrasub
13996 _ACEOF
13997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13998 :t
13999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14000 s|@configure_input@|$ac_sed_conf_input|;t t
14001 s&@top_builddir@&$ac_top_builddir_sub&;t t
14002 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14003 s&@srcdir@&$ac_srcdir&;t t
14004 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14005 s&@top_srcdir@&$ac_top_srcdir&;t t
14006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14007 s&@builddir@&$ac_builddir&;t t
14008 s&@abs_builddir@&$ac_abs_builddir&;t t
14009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14010 s&@INSTALL@&$ac_INSTALL&;t t
14011 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14012 $ac_datarootdir_hack
14013 "
14014 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14015 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14016
14017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14018 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14020 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14022 which seems to be undefined. Please make sure it is defined" >&5
14023 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14024 which seems to be undefined. Please make sure it is defined" >&2;}
14025
14026 rm -f "$ac_tmp/stdin"
14027 case $ac_file in
14028 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14029 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14030 esac \
14031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14032 ;;
14033 :H)
14034 #
14035 # CONFIG_HEADER
14036 #
14037 if test x"$ac_file" != x-; then
14038 {
14039 $as_echo "/* $configure_input */" \
14040 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14041 } >"$ac_tmp/config.h" \
14042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14043 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14045 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14046 else
14047 rm -f "$ac_file"
14048 mv "$ac_tmp/config.h" "$ac_file" \
14049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14050 fi
14051 else
14052 $as_echo "/* $configure_input */" \
14053 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14054 || as_fn_error $? "could not create -" "$LINENO" 5
14055 fi
14056 # Compute "$ac_file"'s index in $config_headers.
14057 _am_arg="$ac_file"
14058 _am_stamp_count=1
14059 for _am_header in $config_headers :; do
14060 case $_am_header in
14061 $_am_arg | $_am_arg:* )
14062 break ;;
14063 * )
14064 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14065 esac
14066 done
14067 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14068 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14069 X"$_am_arg" : 'X\(//\)[^/]' \| \
14070 X"$_am_arg" : 'X\(//\)$' \| \
14071 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14072 $as_echo X"$_am_arg" |
14073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14074 s//\1/
14075 q
14076 }
14077 /^X\(\/\/\)[^/].*/{
14078 s//\1/
14079 q
14080 }
14081 /^X\(\/\/\)$/{
14082 s//\1/
14083 q
14084 }
14085 /^X\(\/\).*/{
14086 s//\1/
14087 q
14088 }
14089 s/.*/./; q'`/stamp-h$_am_stamp_count
14090 ;;
14091
14092 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14093 $as_echo "$as_me: executing $ac_file commands" >&6;}
14094 ;;
14095 esac
14096
14097
14098 case $ac_file$ac_mode in
14099 "libtool":C)
14100
14101 # See if we are running on zsh, and set the options which allow our
14102 # commands through without removal of \ escapes.
14103 if test -n "${ZSH_VERSION+set}" ; then
14104 setopt NO_GLOB_SUBST
14105 fi
14106
14107 cfgfile="${ofile}T"
14108 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14109 $RM "$cfgfile"
14110
14111 cat <<_LT_EOF >> "$cfgfile"
14112 #! $SHELL
14113
14114 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14115 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14116 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14117 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14118 #
14119 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14120 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14121 # Foundation, Inc.
14122 # Written by Gordon Matzigkeit, 1996
14123 #
14124 # This file is part of GNU Libtool.
14125 #
14126 # GNU Libtool is free software; you can redistribute it and/or
14127 # modify it under the terms of the GNU General Public License as
14128 # published by the Free Software Foundation; either version 2 of
14129 # the License, or (at your option) any later version.
14130 #
14131 # As a special exception to the GNU General Public License,
14132 # if you distribute this file as part of a program or library that
14133 # is built using GNU Libtool, you may include this file under the
14134 # same distribution terms that you use for the rest of that program.
14135 #
14136 # GNU Libtool is distributed in the hope that it will be useful,
14137 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14138 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14139 # GNU General Public License for more details.
14140 #
14141 # You should have received a copy of the GNU General Public License
14142 # along with GNU Libtool; see the file COPYING. If not, a copy
14143 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14144 # obtained by writing to the Free Software Foundation, Inc.,
14145 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14146
14147
14148 # The names of the tagged configurations supported by this script.
14149 available_tags=""
14150
14151 # ### BEGIN LIBTOOL CONFIG
14152
14153 # Which release of libtool.m4 was used?
14154 macro_version=$macro_version
14155 macro_revision=$macro_revision
14156
14157 # Whether or not to build shared libraries.
14158 build_libtool_libs=$enable_shared
14159
14160 # Whether or not to build static libraries.
14161 build_old_libs=$enable_static
14162
14163 # What type of objects to build.
14164 pic_mode=$pic_mode
14165
14166 # Whether or not to optimize for fast installation.
14167 fast_install=$enable_fast_install
14168
14169 # Shell to use when invoking shell scripts.
14170 SHELL=$lt_SHELL
14171
14172 # An echo program that protects backslashes.
14173 ECHO=$lt_ECHO
14174
14175 # The PATH separator for the build system.
14176 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14177
14178 # The host system.
14179 host_alias=$host_alias
14180 host=$host
14181 host_os=$host_os
14182
14183 # The build system.
14184 build_alias=$build_alias
14185 build=$build
14186 build_os=$build_os
14187
14188 # A sed program that does not truncate output.
14189 SED=$lt_SED
14190
14191 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14192 Xsed="\$SED -e 1s/^X//"
14193
14194 # A grep program that handles long lines.
14195 GREP=$lt_GREP
14196
14197 # An ERE matcher.
14198 EGREP=$lt_EGREP
14199
14200 # A literal string matcher.
14201 FGREP=$lt_FGREP
14202
14203 # A BSD- or MS-compatible name lister.
14204 NM=$lt_NM
14205
14206 # Whether we need soft or hard links.
14207 LN_S=$lt_LN_S
14208
14209 # What is the maximum length of a command?
14210 max_cmd_len=$max_cmd_len
14211
14212 # Object file suffix (normally "o").
14213 objext=$ac_objext
14214
14215 # Executable file suffix (normally "").
14216 exeext=$exeext
14217
14218 # whether the shell understands "unset".
14219 lt_unset=$lt_unset
14220
14221 # turn spaces into newlines.
14222 SP2NL=$lt_lt_SP2NL
14223
14224 # turn newlines into spaces.
14225 NL2SP=$lt_lt_NL2SP
14226
14227 # convert \$build file names to \$host format.
14228 to_host_file_cmd=$lt_cv_to_host_file_cmd
14229
14230 # convert \$build files to toolchain format.
14231 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14232
14233 # An object symbol dumper.
14234 OBJDUMP=$lt_OBJDUMP
14235
14236 # Method to check whether dependent libraries are shared objects.
14237 deplibs_check_method=$lt_deplibs_check_method
14238
14239 # Command to use when deplibs_check_method = "file_magic".
14240 file_magic_cmd=$lt_file_magic_cmd
14241
14242 # How to find potential files when deplibs_check_method = "file_magic".
14243 file_magic_glob=$lt_file_magic_glob
14244
14245 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14246 want_nocaseglob=$lt_want_nocaseglob
14247
14248 # DLL creation program.
14249 DLLTOOL=$lt_DLLTOOL
14250
14251 # Command to associate shared and link libraries.
14252 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14253
14254 # The archiver.
14255 AR=$lt_AR
14256
14257 # Flags to create an archive.
14258 AR_FLAGS=$lt_AR_FLAGS
14259
14260 # How to feed a file listing to the archiver.
14261 archiver_list_spec=$lt_archiver_list_spec
14262
14263 # A symbol stripping program.
14264 STRIP=$lt_STRIP
14265
14266 # Commands used to install an old-style archive.
14267 RANLIB=$lt_RANLIB
14268 old_postinstall_cmds=$lt_old_postinstall_cmds
14269 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14270
14271 # Whether to use a lock for old archive extraction.
14272 lock_old_archive_extraction=$lock_old_archive_extraction
14273
14274 # A C compiler.
14275 LTCC=$lt_CC
14276
14277 # LTCC compiler flags.
14278 LTCFLAGS=$lt_CFLAGS
14279
14280 # Take the output of nm and produce a listing of raw symbols and C names.
14281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14282
14283 # Transform the output of nm in a proper C declaration.
14284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14285
14286 # Transform the output of nm in a C name address pair.
14287 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14288
14289 # Transform the output of nm in a C name address pair when lib prefix is needed.
14290 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14291
14292 # Specify filename containing input files for \$NM.
14293 nm_file_list_spec=$lt_nm_file_list_spec
14294
14295 # The root where to search for dependent libraries,and in which our libraries should be installed.
14296 lt_sysroot=$lt_sysroot
14297
14298 # The name of the directory that contains temporary libtool files.
14299 objdir=$objdir
14300
14301 # Used to examine libraries when file_magic_cmd begins with "file".
14302 MAGIC_CMD=$MAGIC_CMD
14303
14304 # Must we lock files when doing compilation?
14305 need_locks=$lt_need_locks
14306
14307 # Manifest tool.
14308 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14309
14310 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14311 DSYMUTIL=$lt_DSYMUTIL
14312
14313 # Tool to change global to local symbols on Mac OS X.
14314 NMEDIT=$lt_NMEDIT
14315
14316 # Tool to manipulate fat objects and archives on Mac OS X.
14317 LIPO=$lt_LIPO
14318
14319 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14320 OTOOL=$lt_OTOOL
14321
14322 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14323 OTOOL64=$lt_OTOOL64
14324
14325 # Old archive suffix (normally "a").
14326 libext=$libext
14327
14328 # Shared library suffix (normally ".so").
14329 shrext_cmds=$lt_shrext_cmds
14330
14331 # The commands to extract the exported symbol list from a shared archive.
14332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14333
14334 # Variables whose values should be saved in libtool wrapper scripts and
14335 # restored at link time.
14336 variables_saved_for_relink=$lt_variables_saved_for_relink
14337
14338 # Do we need the "lib" prefix for modules?
14339 need_lib_prefix=$need_lib_prefix
14340
14341 # Do we need a version for libraries?
14342 need_version=$need_version
14343
14344 # Library versioning type.
14345 version_type=$version_type
14346
14347 # Shared library runtime path variable.
14348 runpath_var=$runpath_var
14349
14350 # Shared library path variable.
14351 shlibpath_var=$shlibpath_var
14352
14353 # Is shlibpath searched before the hard-coded library search path?
14354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14355
14356 # Format of library name prefix.
14357 libname_spec=$lt_libname_spec
14358
14359 # List of archive names. First name is the real one, the rest are links.
14360 # The last name is the one that the linker finds with -lNAME
14361 library_names_spec=$lt_library_names_spec
14362
14363 # The coded name of the library, if different from the real name.
14364 soname_spec=$lt_soname_spec
14365
14366 # Permission mode override for installation of shared libraries.
14367 install_override_mode=$lt_install_override_mode
14368
14369 # Command to use after installation of a shared archive.
14370 postinstall_cmds=$lt_postinstall_cmds
14371
14372 # Command to use after uninstallation of a shared archive.
14373 postuninstall_cmds=$lt_postuninstall_cmds
14374
14375 # Commands used to finish a libtool library installation in a directory.
14376 finish_cmds=$lt_finish_cmds
14377
14378 # As "finish_cmds", except a single script fragment to be evaled but
14379 # not shown.
14380 finish_eval=$lt_finish_eval
14381
14382 # Whether we should hardcode library paths into libraries.
14383 hardcode_into_libs=$hardcode_into_libs
14384
14385 # Compile-time system search path for libraries.
14386 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14387
14388 # Run-time system search path for libraries.
14389 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14390
14391 # Whether dlopen is supported.
14392 dlopen_support=$enable_dlopen
14393
14394 # Whether dlopen of programs is supported.
14395 dlopen_self=$enable_dlopen_self
14396
14397 # Whether dlopen of statically linked programs is supported.
14398 dlopen_self_static=$enable_dlopen_self_static
14399
14400 # Commands to strip libraries.
14401 old_striplib=$lt_old_striplib
14402 striplib=$lt_striplib
14403
14404
14405 # The linker used to build libraries.
14406 LD=$lt_LD
14407
14408 # How to create reloadable object files.
14409 reload_flag=$lt_reload_flag
14410 reload_cmds=$lt_reload_cmds
14411
14412 # Commands used to build an old-style archive.
14413 old_archive_cmds=$lt_old_archive_cmds
14414
14415 # A language specific compiler.
14416 CC=$lt_compiler
14417
14418 # Is the compiler the GNU compiler?
14419 with_gcc=$GCC
14420
14421 # Compiler flag to turn off builtin functions.
14422 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14423
14424 # Additional compiler flags for building library objects.
14425 pic_flag=$lt_lt_prog_compiler_pic
14426
14427 # How to pass a linker flag through the compiler.
14428 wl=$lt_lt_prog_compiler_wl
14429
14430 # Compiler flag to prevent dynamic linking.
14431 link_static_flag=$lt_lt_prog_compiler_static
14432
14433 # Does compiler simultaneously support -c and -o options?
14434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14435
14436 # Whether or not to add -lc for building shared libraries.
14437 build_libtool_need_lc=$archive_cmds_need_lc
14438
14439 # Whether or not to disallow shared libs when runtime libs are static.
14440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14441
14442 # Compiler flag to allow reflexive dlopens.
14443 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14444
14445 # Compiler flag to generate shared objects directly from archives.
14446 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14447
14448 # Whether the compiler copes with passing no objects directly.
14449 compiler_needs_object=$lt_compiler_needs_object
14450
14451 # Create an old-style archive from a shared archive.
14452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14453
14454 # Create a temporary old-style archive to link instead of a shared archive.
14455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14456
14457 # Commands used to build a shared archive.
14458 archive_cmds=$lt_archive_cmds
14459 archive_expsym_cmds=$lt_archive_expsym_cmds
14460
14461 # Commands used to build a loadable module if different from building
14462 # a shared archive.
14463 module_cmds=$lt_module_cmds
14464 module_expsym_cmds=$lt_module_expsym_cmds
14465
14466 # Whether we are building with GNU ld or not.
14467 with_gnu_ld=$lt_with_gnu_ld
14468
14469 # Flag that allows shared libraries with undefined symbols to be built.
14470 allow_undefined_flag=$lt_allow_undefined_flag
14471
14472 # Flag that enforces no undefined symbols.
14473 no_undefined_flag=$lt_no_undefined_flag
14474
14475 # Flag to hardcode \$libdir into a binary during linking.
14476 # This must work even if \$libdir does not exist
14477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14478
14479 # Whether we need a single "-rpath" flag with a separated argument.
14480 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14481
14482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14483 # DIR into the resulting binary.
14484 hardcode_direct=$hardcode_direct
14485
14486 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14487 # DIR into the resulting binary and the resulting library dependency is
14488 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14489 # library is relocated.
14490 hardcode_direct_absolute=$hardcode_direct_absolute
14491
14492 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14493 # into the resulting binary.
14494 hardcode_minus_L=$hardcode_minus_L
14495
14496 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14497 # into the resulting binary.
14498 hardcode_shlibpath_var=$hardcode_shlibpath_var
14499
14500 # Set to "yes" if building a shared library automatically hardcodes DIR
14501 # into the library and all subsequent libraries and executables linked
14502 # against it.
14503 hardcode_automatic=$hardcode_automatic
14504
14505 # Set to yes if linker adds runtime paths of dependent libraries
14506 # to runtime path list.
14507 inherit_rpath=$inherit_rpath
14508
14509 # Whether libtool must link a program against all its dependency libraries.
14510 link_all_deplibs=$link_all_deplibs
14511
14512 # Set to "yes" if exported symbols are required.
14513 always_export_symbols=$always_export_symbols
14514
14515 # The commands to list exported symbols.
14516 export_symbols_cmds=$lt_export_symbols_cmds
14517
14518 # Symbols that should not be listed in the preloaded symbols.
14519 exclude_expsyms=$lt_exclude_expsyms
14520
14521 # Symbols that must always be exported.
14522 include_expsyms=$lt_include_expsyms
14523
14524 # Commands necessary for linking programs (against libraries) with templates.
14525 prelink_cmds=$lt_prelink_cmds
14526
14527 # Commands necessary for finishing linking programs.
14528 postlink_cmds=$lt_postlink_cmds
14529
14530 # Specify filename containing input files.
14531 file_list_spec=$lt_file_list_spec
14532
14533 # How to hardcode a shared library path into an executable.
14534 hardcode_action=$hardcode_action
14535
14536 # ### END LIBTOOL CONFIG
14537
14538 _LT_EOF
14539
14540 case $host_os in
14541 aix3*)
14542 cat <<\_LT_EOF >> "$cfgfile"
14543 # AIX sometimes has problems with the GCC collect2 program. For some
14544 # reason, if we set the COLLECT_NAMES environment variable, the problems
14545 # vanish in a puff of smoke.
14546 if test "X${COLLECT_NAMES+set}" != Xset; then
14547 COLLECT_NAMES=
14548 export COLLECT_NAMES
14549 fi
14550 _LT_EOF
14551 ;;
14552 esac
14553
14554
14555 ltmain="$ac_aux_dir/ltmain.sh"
14556
14557
14558 # We use sed instead of cat because bash on DJGPP gets confused if
14559 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14560 # text mode, it properly converts lines to CR/LF. This bash problem
14561 # is reportedly fixed, but why not run on old versions too?
14562 sed '$q' "$ltmain" >> "$cfgfile" \
14563 || (rm -f "$cfgfile"; exit 1)
14564
14565 if test x"$xsi_shell" = xyes; then
14566 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14567 func_dirname ()\
14568 {\
14569 \ case ${1} in\
14570 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14571 \ * ) func_dirname_result="${3}" ;;\
14572 \ esac\
14573 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14574 && mv -f "$cfgfile.tmp" "$cfgfile" \
14575 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14576 test 0 -eq $? || _lt_function_replace_fail=:
14577
14578
14579 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14580 func_basename ()\
14581 {\
14582 \ func_basename_result="${1##*/}"\
14583 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14584 && mv -f "$cfgfile.tmp" "$cfgfile" \
14585 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14586 test 0 -eq $? || _lt_function_replace_fail=:
14587
14588
14589 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14590 func_dirname_and_basename ()\
14591 {\
14592 \ case ${1} in\
14593 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14594 \ * ) func_dirname_result="${3}" ;;\
14595 \ esac\
14596 \ func_basename_result="${1##*/}"\
14597 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14598 && mv -f "$cfgfile.tmp" "$cfgfile" \
14599 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14600 test 0 -eq $? || _lt_function_replace_fail=:
14601
14602
14603 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14604 func_stripname ()\
14605 {\
14606 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14607 \ # positional parameters, so assign one to ordinary parameter first.\
14608 \ func_stripname_result=${3}\
14609 \ func_stripname_result=${func_stripname_result#"${1}"}\
14610 \ func_stripname_result=${func_stripname_result%"${2}"}\
14611 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14612 && mv -f "$cfgfile.tmp" "$cfgfile" \
14613 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14614 test 0 -eq $? || _lt_function_replace_fail=:
14615
14616
14617 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14618 func_split_long_opt ()\
14619 {\
14620 \ func_split_long_opt_name=${1%%=*}\
14621 \ func_split_long_opt_arg=${1#*=}\
14622 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14623 && mv -f "$cfgfile.tmp" "$cfgfile" \
14624 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14625 test 0 -eq $? || _lt_function_replace_fail=:
14626
14627
14628 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14629 func_split_short_opt ()\
14630 {\
14631 \ func_split_short_opt_arg=${1#??}\
14632 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14633 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14634 && mv -f "$cfgfile.tmp" "$cfgfile" \
14635 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14636 test 0 -eq $? || _lt_function_replace_fail=:
14637
14638
14639 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14640 func_lo2o ()\
14641 {\
14642 \ case ${1} in\
14643 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14644 \ *) func_lo2o_result=${1} ;;\
14645 \ esac\
14646 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14647 && mv -f "$cfgfile.tmp" "$cfgfile" \
14648 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14649 test 0 -eq $? || _lt_function_replace_fail=:
14650
14651
14652 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14653 func_xform ()\
14654 {\
14655 func_xform_result=${1%.*}.lo\
14656 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14657 && mv -f "$cfgfile.tmp" "$cfgfile" \
14658 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14659 test 0 -eq $? || _lt_function_replace_fail=:
14660
14661
14662 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14663 func_arith ()\
14664 {\
14665 func_arith_result=$(( $* ))\
14666 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14667 && mv -f "$cfgfile.tmp" "$cfgfile" \
14668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14669 test 0 -eq $? || _lt_function_replace_fail=:
14670
14671
14672 sed -e '/^func_len ()$/,/^} # func_len /c\
14673 func_len ()\
14674 {\
14675 func_len_result=${#1}\
14676 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14677 && mv -f "$cfgfile.tmp" "$cfgfile" \
14678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14679 test 0 -eq $? || _lt_function_replace_fail=:
14680
14681 fi
14682
14683 if test x"$lt_shell_append" = xyes; then
14684 sed -e '/^func_append ()$/,/^} # func_append /c\
14685 func_append ()\
14686 {\
14687 eval "${1}+=\\${2}"\
14688 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14689 && mv -f "$cfgfile.tmp" "$cfgfile" \
14690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14691 test 0 -eq $? || _lt_function_replace_fail=:
14692
14693
14694 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14695 func_append_quoted ()\
14696 {\
14697 \ func_quote_for_eval "${2}"\
14698 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14699 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14700 && mv -f "$cfgfile.tmp" "$cfgfile" \
14701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14702 test 0 -eq $? || _lt_function_replace_fail=:
14703
14704
14705 # Save a `func_append' function call where possible by direct use of '+='
14706 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14707 && mv -f "$cfgfile.tmp" "$cfgfile" \
14708 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14709 test 0 -eq $? || _lt_function_replace_fail=:
14710 else
14711 # Save a `func_append' function call even when '+=' is not available
14712 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14713 && mv -f "$cfgfile.tmp" "$cfgfile" \
14714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14715 test 0 -eq $? || _lt_function_replace_fail=:
14716 fi
14717
14718 if test x"$_lt_function_replace_fail" = x":"; then
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14720 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14721 fi
14722
14723
14724 mv -f "$cfgfile" "$ofile" ||
14725 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14726 chmod +x "$ofile"
14727
14728 ;;
14729
14730 esac
14731 done # for ac_tag
14732
14733
14734 as_fn_exit 0
14735 _ACEOF
14736 ac_clean_files=$ac_clean_files_save
14737
14738 test $ac_write_fail = 0 ||
14739 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14740
14741
14742 # configure is writing to config.log, and then calls config.status.
14743 # config.status does its own redirection, appending to config.log.
14744 # Unfortunately, on DOS this fails, as config.log is still kept open
14745 # by configure, so config.status won't be able to write to it; its
14746 # output is simply discarded. So we exec the FD to /dev/null,
14747 # effectively closing config.log, so it can be properly (re)opened and
14748 # appended to by config.status. When coming back to configure, we
14749 # need to make the FD available again.
14750 if test "$no_create" != yes; then
14751 ac_cs_success=:
14752 ac_config_status_args=
14753 test "$silent" = yes &&
14754 ac_config_status_args="$ac_config_status_args --quiet"
14755 exec 5>/dev/null
14756 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14757 exec 5>>config.log
14758 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14759 # would make configure fail if this is the last instruction.
14760 $ac_cs_success || as_fn_exit 1
14761 fi
14762 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14764 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14765 fi
14766