Imported Upstream version 0.66.1
[hcoop/debian/courier-authlib.git] / libs / random128 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for random128 0.10.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: courier-users@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='random128'
592 PACKAGE_TARNAME='random128'
593 PACKAGE_VERSION='0.10'
594 PACKAGE_STRING='random128 0.10'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="random128.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 MANIFEST_TOOL
645 RANLIB
646 ac_ct_AR
647 AR
648 DLLTOOL
649 OBJDUMP
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 SED
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 LIBTOOL
665 W
666 PS
667 LN_S
668 EGREP
669 GREP
670 CPP
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 am__nodep
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 enable_largefile
766 with_random
767 '
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 CPP'
777
778
779 # Initialize some variables set by options.
780 ac_init_help=
781 ac_init_version=false
782 ac_unrecognized_opts=
783 ac_unrecognized_sep=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
836 fi
837
838 case $ac_option in
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *=) ac_optarg= ;;
841 *) ac_optarg=yes ;;
842 esac
843
844 # Accept the important Cygnus configure options, so we can diagnose typos.
845
846 case $ac_dashdash$ac_option in
847 --)
848 ac_dashdash=yes ;;
849
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 ac_prev=bindir ;;
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 bindir=$ac_optarg ;;
854
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
859
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
866
867 --config-cache | -C)
868 cache_file=config.cache ;;
869
870 -datadir | --datadir | --datadi | --datad)
871 ac_prev=datadir ;;
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir=$ac_optarg ;;
874
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
881
882 -disable-* | --disable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
890 *"
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=no ;;
897
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
902
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
907
908 -enable-* | --enable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=\$ac_optarg ;;
923
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
932
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
936
937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
943
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
948
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
954
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
961
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
966
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 libdir=$ac_optarg ;;
971
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
978
979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
983
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
990
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 mandir=$ac_optarg ;;
995
996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
999
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1002 no_create=yes ;;
1003
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1007
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1016
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1021
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1028
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1035
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1052
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1057
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1062
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1066
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 ac_prev=sbindir ;;
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 | --sbi=* | --sb=*)
1071 sbindir=$ac_optarg ;;
1072
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1076 | --sha | --sh)
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 | --sha=* | --sh=*)
1082 sharedstatedir=$ac_optarg ;;
1083
1084 -site | --site | --sit)
1085 ac_prev=site ;;
1086 -site=* | --site=* | --sit=*)
1087 site=$ac_optarg ;;
1088
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 ac_prev=srcdir ;;
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1093
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1100
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1105
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 verbose=yes ;;
1108
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1111
1112 -with-* | --with-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error $? "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121 "with_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=\$ac_optarg ;;
1127
1128 -without-* | --without-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=no ;;
1143
1144 --x)
1145 # Obsolete; use --with-x.
1146 with_x=yes ;;
1147
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1154
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1161
1162 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1164 ;;
1165
1166 *=*)
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172 esac
1173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1175
1176 *)
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182 ;;
1183
1184 esac
1185 done
1186
1187 if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error $? "missing argument to $ac_option"
1190 fi
1191
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1194 no) ;;
1195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 esac
1198 fi
1199
1200 # Check all directory arguments for consistency.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1205 do
1206 eval ac_val=\$$ac_var
1207 # Remove trailing slashes.
1208 case $ac_val in
1209 */ )
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
1212 esac
1213 # Be sure to have absolute directory names.
1214 case $ac_val in
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 esac
1218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219 done
1220
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1227
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $? "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1281 fi
1282 else
1283 ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317 \`configure' configures random128 0.10 to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/random128]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370 _ACEOF
1371
1372 cat <<\_ACEOF
1373
1374 Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1378
1379 System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of random128 0.10:";;
1388 esac
1389 cat <<\_ACEOF
1390
1391 Optional Features:
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-silent-rules less verbose build output (undo: "make V=1")
1396 --disable-silent-rules verbose build output (undo: "make V=0")
1397 --enable-dependency-tracking
1398 do not reject slow dependency extractors
1399 --disable-dependency-tracking
1400 speeds up one-time build
1401 --enable-shared[=PKGS] build shared libraries [default=yes]
1402 --enable-static[=PKGS] build static libraries [default=yes]
1403 --enable-fast-install[=PKGS]
1404 optimize for fast installation [default=yes]
1405 --disable-libtool-lock avoid locking (might break parallel builds)
1406 --disable-largefile omit support for large files
1407
1408 Optional Packages:
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1412 both]
1413 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1414 --with-sysroot=DIR Search for dependent libraries within DIR
1415 (or the compiler's sysroot if not specified).
1416 --with-random=/dev/urandom - location of the system random file generator
1417 --without-random - there is no system random file generator
1418
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1427 CPP C preprocessor
1428
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1431
1432 Report bugs to <courier-users@lists.sourceforge.net>.
1433 _ACEOF
1434 ac_status=$?
1435 fi
1436
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442 continue
1443 ac_builddir=.
1444
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *)
1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454 esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1460
1461 case $srcdir in
1462 .) # We are building in place.
1463 ac_srcdir=.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1470 *) # Relative name.
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1485 else
1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487 fi || ac_status=$?
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1489 done
1490 fi
1491
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494 cat <<\_ACEOF
1495 random128 configure 0.10
1496 generated by GNU Autoconf 2.69
1497
1498 Copyright (C) 2012 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1501 _ACEOF
1502 exit
1503 fi
1504
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1508
1509 # ac_fn_c_try_compile LINENO
1510 # --------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1513 {
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1517 case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1535 ac_retval=0
1536 else
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1539
1540 ac_retval=1
1541 fi
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1544
1545 } # ac_fn_c_try_compile
1546
1547 # ac_fn_c_try_cpp LINENO
1548 # ----------------------
1549 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_cpp ()
1551 {
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 if { { ac_try="$ac_cpp conftest.$ac_ext"
1554 case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1566 fi
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } > conftest.i && {
1569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 }; then :
1572 ac_retval=0
1573 else
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1
1578 fi
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_cpp
1583
1584 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1585 # -------------------------------------------------------
1586 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1587 # the include files in INCLUDES and setting the cache variable VAR
1588 # accordingly.
1589 ac_fn_c_check_header_mongrel ()
1590 {
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if eval \${$3+:} false; then :
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594 $as_echo_n "checking for $2... " >&6; }
1595 if eval \${$3+:} false; then :
1596 $as_echo_n "(cached) " >&6
1597 fi
1598 eval ac_res=\$$3
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600 $as_echo "$ac_res" >&6; }
1601 else
1602 # Is the header compilable?
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1604 $as_echo_n "checking $2 usability... " >&6; }
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1607 $4
1608 #include <$2>
1609 _ACEOF
1610 if ac_fn_c_try_compile "$LINENO"; then :
1611 ac_header_compiler=yes
1612 else
1613 ac_header_compiler=no
1614 fi
1615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1617 $as_echo "$ac_header_compiler" >&6; }
1618
1619 # Is the header present?
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1621 $as_echo_n "checking $2 presence... " >&6; }
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_cpp "$LINENO"; then :
1627 ac_header_preproc=yes
1628 else
1629 ac_header_preproc=no
1630 fi
1631 rm -f conftest.err conftest.i conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1633 $as_echo "$ac_header_preproc" >&6; }
1634
1635 # So? What about this header?
1636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1637 yes:no: )
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1639 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642 ;;
1643 no:yes:* )
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1645 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1647 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1649 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1651 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 ( $as_echo "## -------------------------------------------------- ##
1655 ## Report this to courier-users@lists.sourceforge.net ##
1656 ## -------------------------------------------------- ##"
1657 ) | sed "s/^/$as_me: WARNING: /" >&2
1658 ;;
1659 esac
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 eval "$3=\$ac_header_compiler"
1666 fi
1667 eval ac_res=\$$3
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670 fi
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673 } # ac_fn_c_check_header_mongrel
1674
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1679 ac_fn_c_try_run ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=$ac_status
1710 fi
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_run
1716
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728 else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 $4
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735 eval "$3=yes"
1736 else
1737 eval "$3=no"
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 fi
1741 eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746 } # ac_fn_c_check_header_compile
1747
1748 # ac_fn_c_try_link LINENO
1749 # -----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_link ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext conftest$ac_exeext
1755 if { { ac_try="$ac_link"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1768 fi
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest$ac_exeext && {
1774 test "$cross_compiling" = yes ||
1775 test -x conftest$ac_exeext
1776 }; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=1
1783 fi
1784 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786 # interfere with the next link command; also delete a directory that is
1787 # left behind by Apple's compiler. We do this before executing the actions.
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_link
1793
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1804 else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1809 #define $2 innocuous_$2
1810
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $2 (); below.
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814 <limits.h> exists even on freestanding compilers. */
1815
1816 #ifdef __STDC__
1817 # include <limits.h>
1818 #else
1819 # include <assert.h>
1820 #endif
1821
1822 #undef $2
1823
1824 /* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1827 #ifdef __cplusplus
1828 extern "C"
1829 #endif
1830 char $2 ();
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined __stub_$2 || defined __stub___$2
1835 choke me
1836 #endif
1837
1838 int
1839 main ()
1840 {
1841 return $2 ();
1842 ;
1843 return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_link "$LINENO"; then :
1847 eval "$3=yes"
1848 else
1849 eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext \
1852 conftest$ac_exeext conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_func
1860
1861 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1862 # -------------------------------------------
1863 # Tests whether TYPE exists after having included INCLUDES, setting cache
1864 # variable VAR accordingly.
1865 ac_fn_c_check_type ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 eval "$3=no"
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $4
1877 int
1878 main ()
1879 {
1880 if (sizeof ($2))
1881 return 0;
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 $4
1890 int
1891 main ()
1892 {
1893 if (sizeof (($2)))
1894 return 0;
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900
1901 else
1902 eval "$3=yes"
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 fi
1908 eval ac_res=\$$3
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913 } # ac_fn_c_check_type
1914 cat >config.log <<_ACEOF
1915 This file contains any messages produced by compilers while
1916 running configure, to aid debugging if configure makes a mistake.
1917
1918 It was created by random128 $as_me 0.10, which was
1919 generated by GNU Autoconf 2.69. Invocation command line was
1920
1921 $ $0 $@
1922
1923 _ACEOF
1924 exec 5>>config.log
1925 {
1926 cat <<_ASUNAME
1927 ## --------- ##
1928 ## Platform. ##
1929 ## --------- ##
1930
1931 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1932 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1933 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1934 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1935 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1936
1937 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1938 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1939
1940 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1941 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1942 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1943 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1944 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1945 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1946 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1947
1948 _ASUNAME
1949
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 $as_echo "PATH: $as_dir"
1956 done
1957 IFS=$as_save_IFS
1958
1959 } >&5
1960
1961 cat >&5 <<_ACEOF
1962
1963
1964 ## ----------- ##
1965 ## Core tests. ##
1966 ## ----------- ##
1967
1968 _ACEOF
1969
1970
1971 # Keep a trace of the command line.
1972 # Strip out --no-create and --no-recursion so they do not pile up.
1973 # Strip out --silent because we don't want to record it for future runs.
1974 # Also quote any args containing shell meta-characters.
1975 # Make two passes to allow for proper duplicate-argument suppression.
1976 ac_configure_args=
1977 ac_configure_args0=
1978 ac_configure_args1=
1979 ac_must_keep_next=false
1980 for ac_pass in 1 2
1981 do
1982 for ac_arg
1983 do
1984 case $ac_arg in
1985 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1987 | -silent | --silent | --silen | --sile | --sil)
1988 continue ;;
1989 *\'*)
1990 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 esac
1992 case $ac_pass in
1993 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1994 2)
1995 as_fn_append ac_configure_args1 " '$ac_arg'"
1996 if test $ac_must_keep_next = true; then
1997 ac_must_keep_next=false # Got value, back to normal.
1998 else
1999 case $ac_arg in
2000 *=* | --config-cache | -C | -disable-* | --disable-* \
2001 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2002 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2003 | -with-* | --with-* | -without-* | --without-* | --x)
2004 case "$ac_configure_args0 " in
2005 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2006 esac
2007 ;;
2008 -* ) ac_must_keep_next=true ;;
2009 esac
2010 fi
2011 as_fn_append ac_configure_args " '$ac_arg'"
2012 ;;
2013 esac
2014 done
2015 done
2016 { ac_configure_args0=; unset ac_configure_args0;}
2017 { ac_configure_args1=; unset ac_configure_args1;}
2018
2019 # When interrupted or exit'd, cleanup temporary files, and complete
2020 # config.log. We remove comments because anyway the quotes in there
2021 # would cause problems or look ugly.
2022 # WARNING: Use '\'' to represent an apostrophe within the trap.
2023 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2024 trap 'exit_status=$?
2025 # Save into config.log some information that might help in debugging.
2026 {
2027 echo
2028
2029 $as_echo "## ---------------- ##
2030 ## Cache variables. ##
2031 ## ---------------- ##"
2032 echo
2033 # The following way of writing the cache mishandles newlines in values,
2034 (
2035 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in #(
2038 *${as_nl}*)
2039 case $ac_var in #(
2040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2042 esac
2043 case $ac_var in #(
2044 _ | IFS | as_nl) ;; #(
2045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046 *) { eval $ac_var=; unset $ac_var;} ;;
2047 esac ;;
2048 esac
2049 done
2050 (set) 2>&1 |
2051 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052 *${as_nl}ac_space=\ *)
2053 sed -n \
2054 "s/'\''/'\''\\\\'\'''\''/g;
2055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056 ;; #(
2057 *)
2058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059 ;;
2060 esac |
2061 sort
2062 )
2063 echo
2064
2065 $as_echo "## ----------------- ##
2066 ## Output variables. ##
2067 ## ----------------- ##"
2068 echo
2069 for ac_var in $ac_subst_vars
2070 do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 $as_echo "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2078
2079 if test -n "$ac_subst_files"; then
2080 $as_echo "## ------------------- ##
2081 ## File substitutions. ##
2082 ## ------------------- ##"
2083 echo
2084 for ac_var in $ac_subst_files
2085 do
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
2091 done | sort
2092 echo
2093 fi
2094
2095 if test -s confdefs.h; then
2096 $as_echo "## ----------- ##
2097 ## confdefs.h. ##
2098 ## ----------- ##"
2099 echo
2100 cat confdefs.h
2101 echo
2102 fi
2103 test "$ac_signal" != 0 &&
2104 $as_echo "$as_me: caught signal $ac_signal"
2105 $as_echo "$as_me: exit $exit_status"
2106 } >&5
2107 rm -f core *.core core.conftest.* &&
2108 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2109 exit $exit_status
2110 ' 0
2111 for ac_signal in 1 2 13 15; do
2112 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2113 done
2114 ac_signal=0
2115
2116 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2117 rm -f -r conftest* confdefs.h
2118
2119 $as_echo "/* confdefs.h */" > confdefs.h
2120
2121 # Predefined preprocessor variables.
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_NAME "$PACKAGE_NAME"
2125 _ACEOF
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2129 _ACEOF
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2133 _ACEOF
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_STRING "$PACKAGE_STRING"
2137 _ACEOF
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2141 _ACEOF
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_URL "$PACKAGE_URL"
2145 _ACEOF
2146
2147
2148 # Let the site file select an alternate cache file if it wants to.
2149 # Prefer an explicitly selected file to automatically selected ones.
2150 ac_site_file1=NONE
2151 ac_site_file2=NONE
2152 if test -n "$CONFIG_SITE"; then
2153 # We do not want a PATH search for config.site.
2154 case $CONFIG_SITE in #((
2155 -*) ac_site_file1=./$CONFIG_SITE;;
2156 */*) ac_site_file1=$CONFIG_SITE;;
2157 *) ac_site_file1=./$CONFIG_SITE;;
2158 esac
2159 elif test "x$prefix" != xNONE; then
2160 ac_site_file1=$prefix/share/config.site
2161 ac_site_file2=$prefix/etc/config.site
2162 else
2163 ac_site_file1=$ac_default_prefix/share/config.site
2164 ac_site_file2=$ac_default_prefix/etc/config.site
2165 fi
2166 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2167 do
2168 test "x$ac_site_file" = xNONE && continue
2169 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2171 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2172 sed 's/^/| /' "$ac_site_file" >&5
2173 . "$ac_site_file" \
2174 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176 as_fn_error $? "failed to load site script $ac_site_file
2177 See \`config.log' for more details" "$LINENO" 5; }
2178 fi
2179 done
2180
2181 if test -r "$cache_file"; then
2182 # Some versions of bash will fail to source /dev/null (special files
2183 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2184 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2186 $as_echo "$as_me: loading cache $cache_file" >&6;}
2187 case $cache_file in
2188 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2189 *) . "./$cache_file";;
2190 esac
2191 fi
2192 else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2194 $as_echo "$as_me: creating cache $cache_file" >&6;}
2195 >$cache_file
2196 fi
2197
2198 # Check that the precious variables saved in the cache have kept the same
2199 # value.
2200 ac_cache_corrupted=false
2201 for ac_var in $ac_precious_vars; do
2202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2203 eval ac_new_set=\$ac_env_${ac_var}_set
2204 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2205 eval ac_new_val=\$ac_env_${ac_var}_value
2206 case $ac_old_set,$ac_new_set in
2207 set,)
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2209 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2210 ac_cache_corrupted=: ;;
2211 ,set)
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2213 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2215 ,);;
2216 *)
2217 if test "x$ac_old_val" != "x$ac_new_val"; then
2218 # differences in whitespace do not lead to failure.
2219 ac_old_val_w=`echo x $ac_old_val`
2220 ac_new_val_w=`echo x $ac_new_val`
2221 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2223 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2224 ac_cache_corrupted=:
2225 else
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2227 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2228 eval $ac_var=\$ac_old_val
2229 fi
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2231 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2233 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2234 fi;;
2235 esac
2236 # Pass precious variables to config.status.
2237 if test "$ac_new_set" = set; then
2238 case $ac_new_val in
2239 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2240 *) ac_arg=$ac_var=$ac_new_val ;;
2241 esac
2242 case " $ac_configure_args " in
2243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2244 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2245 esac
2246 fi
2247 done
2248 if $ac_cache_corrupted; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2252 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2253 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2254 fi
2255 ## -------------------- ##
2256 ## Main body of script. ##
2257 ## -------------------- ##
2258
2259 ac_ext=c
2260 ac_cpp='$CPP $CPPFLAGS'
2261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264
2265
2266
2267 >confdefs.h # Kill PACKAGE_ macros
2268
2269
2270 ac_aux_dir=
2271 for ac_dir in ../.. "$srcdir"/../..; do
2272 if test -f "$ac_dir/install-sh"; then
2273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/install-sh -c"
2275 break
2276 elif test -f "$ac_dir/install.sh"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install.sh -c"
2279 break
2280 elif test -f "$ac_dir/shtool"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/shtool install -c"
2283 break
2284 fi
2285 done
2286 if test -z "$ac_aux_dir"; then
2287 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2288 fi
2289
2290 # These three variables are undocumented and unsupported,
2291 # and are intended to be withdrawn in a future Autoconf release.
2292 # They can cause serious problems if a builder's source tree is in a directory
2293 # whose full name contains unusual characters.
2294 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2295 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2296 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2297
2298
2299 am__api_version='1.13'
2300
2301 # Find a good install program. We prefer a C program (faster),
2302 # so one script is as good as another. But avoid the broken or
2303 # incompatible versions:
2304 # SysV /etc/install, /usr/sbin/install
2305 # SunOS /usr/etc/install
2306 # IRIX /sbin/install
2307 # AIX /bin/install
2308 # AmigaOS /C/install, which installs bootblocks on floppy discs
2309 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2310 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2311 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2312 # OS/2's system install, which has a completely different semantic
2313 # ./install, which can be erroneously created by make from ./install.sh.
2314 # Reject install programs that cannot install multiple files.
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2316 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2317 if test -z "$INSTALL"; then
2318 if ${ac_cv_path_install+:} false; then :
2319 $as_echo_n "(cached) " >&6
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 # Account for people who put trailing slashes in PATH elements.
2327 case $as_dir/ in #((
2328 ./ | .// | /[cC]/* | \
2329 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2330 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2331 /usr/ucb/* ) ;;
2332 *)
2333 # OSF1 and SCO ODT 3.0 have their own names for install.
2334 # Don't use installbsd from OSF since it installs stuff as root
2335 # by default.
2336 for ac_prog in ginstall scoinst install; do
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2339 if test $ac_prog = install &&
2340 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2341 # AIX install. It has an incompatible calling convention.
2342 :
2343 elif test $ac_prog = install &&
2344 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2345 # program-specific install script used by HP pwplus--don't use.
2346 :
2347 else
2348 rm -rf conftest.one conftest.two conftest.dir
2349 echo one > conftest.one
2350 echo two > conftest.two
2351 mkdir conftest.dir
2352 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2353 test -s conftest.one && test -s conftest.two &&
2354 test -s conftest.dir/conftest.one &&
2355 test -s conftest.dir/conftest.two
2356 then
2357 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2358 break 3
2359 fi
2360 fi
2361 fi
2362 done
2363 done
2364 ;;
2365 esac
2366
2367 done
2368 IFS=$as_save_IFS
2369
2370 rm -rf conftest.one conftest.two conftest.dir
2371
2372 fi
2373 if test "${ac_cv_path_install+set}" = set; then
2374 INSTALL=$ac_cv_path_install
2375 else
2376 # As a last resort, use the slow shell script. Don't cache a
2377 # value for INSTALL within a source directory, because that will
2378 # break other packages using the cache if that directory is
2379 # removed, or if the value is a relative name.
2380 INSTALL=$ac_install_sh
2381 fi
2382 fi
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2384 $as_echo "$INSTALL" >&6; }
2385
2386 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2387 # It thinks the first close brace ends the variable substitution.
2388 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2389
2390 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2391
2392 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2393
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2395 $as_echo_n "checking whether build environment is sane... " >&6; }
2396 # Reject unsafe characters in $srcdir or the absolute working directory
2397 # name. Accept space and tab only in the latter.
2398 am_lf='
2399 '
2400 case `pwd` in
2401 *[\\\"\#\$\&\'\`$am_lf]*)
2402 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2403 esac
2404 case $srcdir in
2405 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2406 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2407 esac
2408
2409 # Do 'set' in a subshell so we don't clobber the current shell's
2410 # arguments. Must try -L first in case configure is actually a
2411 # symlink; some systems play weird games with the mod time of symlinks
2412 # (eg FreeBSD returns the mod time of the symlink's containing
2413 # directory).
2414 if (
2415 am_has_slept=no
2416 for am_try in 1 2; do
2417 echo "timestamp, slept: $am_has_slept" > conftest.file
2418 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2419 if test "$*" = "X"; then
2420 # -L didn't work.
2421 set X `ls -t "$srcdir/configure" conftest.file`
2422 fi
2423 if test "$*" != "X $srcdir/configure conftest.file" \
2424 && test "$*" != "X conftest.file $srcdir/configure"; then
2425
2426 # If neither matched, then we have a broken ls. This can happen
2427 # if, for instance, CONFIG_SHELL is bash and it inherits a
2428 # broken ls alias from the environment. This has actually
2429 # happened. Such a system could not be considered "sane".
2430 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2431 alias in your environment" "$LINENO" 5
2432 fi
2433 if test "$2" = conftest.file || test $am_try -eq 2; then
2434 break
2435 fi
2436 # Just in case.
2437 sleep 1
2438 am_has_slept=yes
2439 done
2440 test "$2" = conftest.file
2441 )
2442 then
2443 # Ok.
2444 :
2445 else
2446 as_fn_error $? "newly created file is older than distributed files!
2447 Check your system clock" "$LINENO" 5
2448 fi
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2450 $as_echo "yes" >&6; }
2451 # If we didn't sleep, we still need to ensure time stamps of config.status and
2452 # generated files are strictly newer.
2453 am_sleep_pid=
2454 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2455 ( sleep 1 ) &
2456 am_sleep_pid=$!
2457 fi
2458
2459 rm -f conftest.file
2460
2461 test "$program_prefix" != NONE &&
2462 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2463 # Use a double $ so make ignores it.
2464 test "$program_suffix" != NONE &&
2465 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2466 # Double any \ or $.
2467 # By default was `s,x,x', remove it if useless.
2468 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2469 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2470
2471 # expand $ac_aux_dir to an absolute path
2472 am_aux_dir=`cd $ac_aux_dir && pwd`
2473
2474 if test x"${MISSING+set}" != xset; then
2475 case $am_aux_dir in
2476 *\ * | *\ *)
2477 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2478 *)
2479 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2480 esac
2481 fi
2482 # Use eval to expand $SHELL
2483 if eval "$MISSING --is-lightweight"; then
2484 am_missing_run="$MISSING "
2485 else
2486 am_missing_run=
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2488 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2489 fi
2490
2491 if test x"${install_sh}" != xset; then
2492 case $am_aux_dir in
2493 *\ * | *\ *)
2494 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2495 *)
2496 install_sh="\${SHELL} $am_aux_dir/install-sh"
2497 esac
2498 fi
2499
2500 # Installed binaries are usually stripped using 'strip' when the user
2501 # run "make install-strip". However 'strip' might not be the right
2502 # tool to use in cross-compilation environments, therefore Automake
2503 # will honor the 'STRIP' environment variable to overrule this program.
2504 if test "$cross_compiling" != no; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}strip; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if ${ac_cv_prog_STRIP+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$STRIP"; then
2514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 STRIP=$ac_cv_prog_STRIP
2534 if test -n "$STRIP"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2536 $as_echo "$STRIP" >&6; }
2537 else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2540 fi
2541
2542
2543 fi
2544 if test -z "$ac_cv_prog_STRIP"; then
2545 ac_ct_STRIP=$STRIP
2546 # Extract the first word of "strip", so it can be a program name with args.
2547 set dummy strip; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 if test -n "$ac_ct_STRIP"; then
2554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2563 ac_cv_prog_ac_ct_STRIP="strip"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2574 if test -n "$ac_ct_STRIP"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2576 $as_echo "$ac_ct_STRIP" >&6; }
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 fi
2581
2582 if test "x$ac_ct_STRIP" = x; then
2583 STRIP=":"
2584 else
2585 case $cross_compiling:$ac_tool_warned in
2586 yes:)
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2589 ac_tool_warned=yes ;;
2590 esac
2591 STRIP=$ac_ct_STRIP
2592 fi
2593 else
2594 STRIP="$ac_cv_prog_STRIP"
2595 fi
2596
2597 fi
2598 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2599
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2601 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2602 if test -z "$MKDIR_P"; then
2603 if ${ac_cv_path_mkdir+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_prog in mkdir gmkdir; do
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2614 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2615 'mkdir (GNU coreutils) '* | \
2616 'mkdir (coreutils) '* | \
2617 'mkdir (fileutils) '4.1*)
2618 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2619 break 3;;
2620 esac
2621 done
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627
2628 test -d ./--version && rmdir ./--version
2629 if test "${ac_cv_path_mkdir+set}" = set; then
2630 MKDIR_P="$ac_cv_path_mkdir -p"
2631 else
2632 # As a last resort, use the slow shell script. Don't cache a
2633 # value for MKDIR_P within a source directory, because that will
2634 # break other packages using the cache if that directory is
2635 # removed, or if the value is a relative name.
2636 MKDIR_P="$ac_install_sh -d"
2637 fi
2638 fi
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2640 $as_echo "$MKDIR_P" >&6; }
2641
2642 for ac_prog in gawk mawk nawk awk
2643 do
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if ${ac_cv_prog_AWK+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$AWK"; then
2652 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_prog_AWK="$ac_prog"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 AWK=$ac_cv_prog_AWK
2672 if test -n "$AWK"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2674 $as_echo "$AWK" >&6; }
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680
2681 test -n "$AWK" && break
2682 done
2683
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2685 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2686 set x ${MAKE-make}
2687 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2688 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 cat >conftest.make <<\_ACEOF
2692 SHELL = /bin/sh
2693 all:
2694 @echo '@@@%%%=$(MAKE)=@@@%%%'
2695 _ACEOF
2696 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2697 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2698 *@@@%%%=?*=@@@%%%*)
2699 eval ac_cv_prog_make_${ac_make}_set=yes;;
2700 *)
2701 eval ac_cv_prog_make_${ac_make}_set=no;;
2702 esac
2703 rm -f conftest.make
2704 fi
2705 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2707 $as_echo "yes" >&6; }
2708 SET_MAKE=
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 SET_MAKE="MAKE=${MAKE-make}"
2713 fi
2714
2715 rm -rf .tst 2>/dev/null
2716 mkdir .tst 2>/dev/null
2717 if test -d .tst; then
2718 am__leading_dot=.
2719 else
2720 am__leading_dot=_
2721 fi
2722 rmdir .tst 2>/dev/null
2723
2724 # Check whether --enable-silent-rules was given.
2725 if test "${enable_silent_rules+set}" = set; then :
2726 enableval=$enable_silent_rules;
2727 fi
2728
2729 case $enable_silent_rules in # (((
2730 yes) AM_DEFAULT_VERBOSITY=0;;
2731 no) AM_DEFAULT_VERBOSITY=1;;
2732 *) AM_DEFAULT_VERBOSITY=1;;
2733 esac
2734 am_make=${MAKE-make}
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2736 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2737 if ${am_cv_make_support_nested_variables+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if $as_echo 'TRUE=$(BAR$(V))
2741 BAR0=false
2742 BAR1=true
2743 V=1
2744 am__doit:
2745 @$(TRUE)
2746 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2747 am_cv_make_support_nested_variables=yes
2748 else
2749 am_cv_make_support_nested_variables=no
2750 fi
2751 fi
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2753 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2754 if test $am_cv_make_support_nested_variables = yes; then
2755 AM_V='$(V)'
2756 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2757 else
2758 AM_V=$AM_DEFAULT_VERBOSITY
2759 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2760 fi
2761 AM_BACKSLASH='\'
2762
2763 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2764 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2765 # is not polluted with repeated "-I."
2766 am__isrc=' -I$(srcdir)'
2767 # test to see if srcdir already configured
2768 if test -f $srcdir/config.status; then
2769 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2770 fi
2771 fi
2772
2773 # test whether we have cygpath
2774 if test -z "$CYGPATH_W"; then
2775 if (cygpath --version) >/dev/null 2>/dev/null; then
2776 CYGPATH_W='cygpath -w'
2777 else
2778 CYGPATH_W=echo
2779 fi
2780 fi
2781
2782
2783 # Define the identity of the package.
2784 PACKAGE='random128'
2785 VERSION='0.10'
2786
2787
2788 # Some tools Automake needs.
2789
2790 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2791
2792
2793 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2794
2795
2796 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2797
2798
2799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2800
2801
2802 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2803
2804 # For better backward compatibility. To be removed once Automake 1.9.x
2805 # dies out for good. For more background, see:
2806 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2807 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2808 mkdir_p='$(MKDIR_P)'
2809
2810 # We need awk for the "check" target. The system "awk" is bad on
2811 # some platforms.
2812 # Always define AMTAR for backward compatibility. Yes, it's still used
2813 # in the wild :-( We should find a proper way to deprecate it ...
2814 AMTAR='$${TAR-tar}'
2815
2816
2817 # We'll loop over all known methods to create a tar archive until one works.
2818 _am_tools='gnutar pax cpio none'
2819
2820 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2821
2822
2823
2824
2825
2826
2827 LPATH="$PATH:/usr/local/bin"
2828
2829
2830 ac_config_headers="$ac_config_headers config.h"
2831
2832 DEPDIR="${am__leading_dot}deps"
2833
2834 ac_config_commands="$ac_config_commands depfiles"
2835
2836
2837 am_make=${MAKE-make}
2838 cat > confinc << 'END'
2839 am__doit:
2840 @echo this is the am__doit target
2841 .PHONY: am__doit
2842 END
2843 # If we don't find an include directive, just comment out the code.
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2845 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2846 am__include="#"
2847 am__quote=
2848 _am_result=none
2849 # First try GNU make style include.
2850 echo "include confinc" > confmf
2851 # Ignore all kinds of additional output from 'make'.
2852 case `$am_make -s -f confmf 2> /dev/null` in #(
2853 *the\ am__doit\ target*)
2854 am__include=include
2855 am__quote=
2856 _am_result=GNU
2857 ;;
2858 esac
2859 # Now try BSD make style include.
2860 if test "$am__include" = "#"; then
2861 echo '.include "confinc"' > confmf
2862 case `$am_make -s -f confmf 2> /dev/null` in #(
2863 *the\ am__doit\ target*)
2864 am__include=.include
2865 am__quote="\""
2866 _am_result=BSD
2867 ;;
2868 esac
2869 fi
2870
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2873 $as_echo "$_am_result" >&6; }
2874 rm -f confinc confmf
2875
2876 # Check whether --enable-dependency-tracking was given.
2877 if test "${enable_dependency_tracking+set}" = set; then :
2878 enableval=$enable_dependency_tracking;
2879 fi
2880
2881 if test "x$enable_dependency_tracking" != xno; then
2882 am_depcomp="$ac_aux_dir/depcomp"
2883 AMDEPBACKSLASH='\'
2884 am__nodep='_no'
2885 fi
2886 if test "x$enable_dependency_tracking" != xno; then
2887 AMDEP_TRUE=
2888 AMDEP_FALSE='#'
2889 else
2890 AMDEP_TRUE='#'
2891 AMDEP_FALSE=
2892 fi
2893
2894
2895 ac_ext=c
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900 if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2902 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_CC+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922 done
2923 done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937
2938 fi
2939 if test -z "$ac_cv_prog_CC"; then
2940 ac_ct_CC=$CC
2941 # Extract the first word of "gcc", so it can be a program name with args.
2942 set dummy gcc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_ac_ct_CC="gcc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969 if test -n "$ac_ct_CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971 $as_echo "$ac_ct_CC" >&6; }
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977 if test "x$ac_ct_CC" = x; then
2978 CC=""
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981 yes:)
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984 ac_tool_warned=yes ;;
2985 esac
2986 CC=$ac_ct_CC
2987 fi
2988 else
2989 CC="$ac_cv_prog_CC"
2990 fi
2991
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}cc; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_CC+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_CC="${ac_tool_prefix}cc"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 CC=$ac_cv_prog_CC
3022 if test -n "$CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024 $as_echo "$CC" >&6; }
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031 fi
3032 fi
3033 if test -z "$CC"; then
3034 # Extract the first word of "cc", so it can be a program name with args.
3035 set dummy cc; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_CC+:} false; then :
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 else
3044 ac_prog_rejected=no
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3053 ac_prog_rejected=yes
3054 continue
3055 fi
3056 ac_cv_prog_CC="cc"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 if test $ac_prog_rejected = yes; then
3065 # We found a bogon in the path, so make sure we never use it.
3066 set dummy $ac_cv_prog_CC
3067 shift
3068 if test $# != 0; then
3069 # We chose a different compiler from the bogus one.
3070 # However, it has the same basename, so the bogon will be chosen
3071 # first if we set CC to just the basename; use the full file name.
3072 shift
3073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3074 fi
3075 fi
3076 fi
3077 fi
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088 fi
3089 if test -z "$CC"; then
3090 if test -n "$ac_tool_prefix"; then
3091 for ac_prog in cl.exe
3092 do
3093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 test -n "$CC" && break
3131 done
3132 fi
3133 if test -z "$CC"; then
3134 ac_ct_CC=$CC
3135 for ac_prog in cl.exe
3136 do
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_ac_ct_CC="$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165 if test -n "$ac_ct_CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3167 $as_echo "$ac_ct_CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174 test -n "$ac_ct_CC" && break
3175 done
3176
3177 if test "x$ac_ct_CC" = x; then
3178 CC=""
3179 else
3180 case $cross_compiling:$ac_tool_warned in
3181 yes:)
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184 ac_tool_warned=yes ;;
3185 esac
3186 CC=$ac_ct_CC
3187 fi
3188 fi
3189
3190 fi
3191
3192
3193 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "no acceptable C compiler found in \$PATH
3196 See \`config.log' for more details" "$LINENO" 5; }
3197
3198 # Provide some information about the compiler.
3199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3200 set X $ac_compile
3201 ac_compiler=$2
3202 for ac_option in --version -v -V -qversion; do
3203 { { ac_try="$ac_compiler $ac_option >&5"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3211 ac_status=$?
3212 if test -s conftest.err; then
3213 sed '10a\
3214 ... rest of stderr output deleted ...
3215 10q' conftest.err >conftest.er1
3216 cat conftest.er1 >&5
3217 fi
3218 rm -f conftest.er1 conftest.err
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }
3221 done
3222
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3225
3226 int
3227 main ()
3228 {
3229
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 ac_clean_files_save=$ac_clean_files
3235 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3236 # Try to create an executable without -o first, disregard a.out.
3237 # It will help us diagnose broken compilers, and finding out an intuition
3238 # of exeext.
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3240 $as_echo_n "checking whether the C compiler works... " >&6; }
3241 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3242
3243 # The possible output files:
3244 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3245
3246 ac_rmfiles=
3247 for ac_file in $ac_files
3248 do
3249 case $ac_file in
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3251 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3252 esac
3253 done
3254 rm -f $ac_rmfiles
3255
3256 if { { ac_try="$ac_link_default"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_link_default") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3268 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3269 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3270 # so that the user can short-circuit this test for compilers unknown to
3271 # Autoconf.
3272 for ac_file in $ac_files ''
3273 do
3274 test -f "$ac_file" || continue
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3277 ;;
3278 [ab].out )
3279 # We found the default executable, but exeext='' is most
3280 # certainly right.
3281 break;;
3282 *.* )
3283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3284 then :; else
3285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3286 fi
3287 # We set ac_cv_exeext here because the later test for it is not
3288 # safe: cross compilers may not add the suffix if given an `-o'
3289 # argument, so we may need to know it at that point already.
3290 # Even if this section looks crufty: it has the advantage of
3291 # actually working.
3292 break;;
3293 * )
3294 break;;
3295 esac
3296 done
3297 test "$ac_cv_exeext" = no && ac_cv_exeext=
3298
3299 else
3300 ac_file=''
3301 fi
3302 if test -z "$ac_file"; then :
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 $as_echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error 77 "C compiler cannot create executables
3311 See \`config.log' for more details" "$LINENO" 5; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3315 fi
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3317 $as_echo_n "checking for C compiler default output file name... " >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3319 $as_echo "$ac_file" >&6; }
3320 ac_exeext=$ac_cv_exeext
3321
3322 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3323 ac_clean_files=$ac_clean_files_save
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3325 $as_echo_n "checking for suffix of executables... " >&6; }
3326 if { { ac_try="$ac_link"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3338 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3339 # work properly (i.e., refer to `conftest.exe'), while it won't with
3340 # `rm'.
3341 for ac_file in conftest.exe conftest conftest.*; do
3342 test -f "$ac_file" || continue
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346 break;;
3347 * ) break;;
3348 esac
3349 done
3350 else
3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3354 See \`config.log' for more details" "$LINENO" 5; }
3355 fi
3356 rm -f conftest conftest$ac_cv_exeext
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3358 $as_echo "$ac_cv_exeext" >&6; }
3359
3360 rm -f conftest.$ac_ext
3361 EXEEXT=$ac_cv_exeext
3362 ac_exeext=$EXEEXT
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3365 #include <stdio.h>
3366 int
3367 main ()
3368 {
3369 FILE *f = fopen ("conftest.out", "w");
3370 return ferror (f) || fclose (f) != 0;
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 ac_clean_files="$ac_clean_files conftest.out"
3377 # Check that the compiler produces executables we can run. If not, either
3378 # the compiler is broken, or we cross compile.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3380 $as_echo_n "checking whether we are cross compiling... " >&6; }
3381 if test "$cross_compiling" != yes; then
3382 { { ac_try="$ac_link"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_link") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }
3393 if { ac_try='./conftest$ac_cv_exeext'
3394 { { case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_try") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; }; then
3404 cross_compiling=no
3405 else
3406 if test "$cross_compiling" = maybe; then
3407 cross_compiling=yes
3408 else
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot run C compiled programs.
3412 If you meant to cross compile, use \`--host'.
3413 See \`config.log' for more details" "$LINENO" 5; }
3414 fi
3415 fi
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3418 $as_echo "$cross_compiling" >&6; }
3419
3420 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3421 ac_clean_files=$ac_clean_files_save
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3423 $as_echo_n "checking for suffix of object files... " >&6; }
3424 if ${ac_cv_objext+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429
3430 int
3431 main ()
3432 {
3433
3434 ;
3435 return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.o conftest.obj
3439 if { { ac_try="$ac_compile"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_compile") 2>&5
3447 ac_status=$?
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; then :
3450 for ac_file in conftest.o conftest.obj conftest.*; do
3451 test -f "$ac_file" || continue;
3452 case $ac_file in
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455 break;;
3456 esac
3457 done
3458 else
3459 $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error $? "cannot compute suffix of object files: cannot compile
3465 See \`config.log' for more details" "$LINENO" 5; }
3466 fi
3467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3470 $as_echo "$ac_cv_objext" >&6; }
3471 OBJEXT=$ac_cv_objext
3472 ac_objext=$OBJEXT
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3474 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3475 if ${ac_cv_c_compiler_gnu+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480
3481 int
3482 main ()
3483 {
3484 #ifndef __GNUC__
3485 choke me
3486 #endif
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_compiler_gnu=yes
3494 else
3495 ac_compiler_gnu=no
3496 fi
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3499
3500 fi
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3502 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3503 if test $ac_compiler_gnu = yes; then
3504 GCC=yes
3505 else
3506 GCC=
3507 fi
3508 ac_test_CFLAGS=${CFLAGS+set}
3509 ac_save_CFLAGS=$CFLAGS
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3511 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3512 if ${ac_cv_prog_cc_g+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 ac_save_c_werror_flag=$ac_c_werror_flag
3516 ac_c_werror_flag=yes
3517 ac_cv_prog_cc_g=no
3518 CFLAGS="-g"
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3521
3522 int
3523 main ()
3524 {
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_g=yes
3532 else
3533 CFLAGS=""
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536
3537 int
3538 main ()
3539 {
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 if ac_fn_c_try_compile "$LINENO"; then :
3546
3547 else
3548 ac_c_werror_flag=$ac_save_c_werror_flag
3549 CFLAGS="-g"
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3552
3553 int
3554 main ()
3555 {
3556
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_cv_prog_cc_g=yes
3563 fi
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_c_werror_flag=$ac_save_c_werror_flag
3570 fi
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3572 $as_echo "$ac_cv_prog_cc_g" >&6; }
3573 if test "$ac_test_CFLAGS" = set; then
3574 CFLAGS=$ac_save_CFLAGS
3575 elif test $ac_cv_prog_cc_g = yes; then
3576 if test "$GCC" = yes; then
3577 CFLAGS="-g -O2"
3578 else
3579 CFLAGS="-g"
3580 fi
3581 else
3582 if test "$GCC" = yes; then
3583 CFLAGS="-O2"
3584 else
3585 CFLAGS=
3586 fi
3587 fi
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3589 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3590 if ${ac_cv_prog_cc_c89+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 ac_cv_prog_cc_c89=no
3594 ac_save_CC=$CC
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597 #include <stdarg.h>
3598 #include <stdio.h>
3599 struct stat;
3600 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3601 struct buf { int x; };
3602 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3603 static char *e (p, i)
3604 char **p;
3605 int i;
3606 {
3607 return p[i];
3608 }
3609 static char *f (char * (*g) (char **, int), char **p, ...)
3610 {
3611 char *s;
3612 va_list v;
3613 va_start (v,p);
3614 s = g (p, va_arg (v,int));
3615 va_end (v);
3616 return s;
3617 }
3618
3619 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3620 function prototypes and stuff, but not '\xHH' hex character constants.
3621 These don't provoke an error unfortunately, instead are silently treated
3622 as 'x'. The following induces an error, until -std is added to get
3623 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3624 array size at least. It's necessary to write '\x00'==0 to get something
3625 that's true only with -std. */
3626 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3627
3628 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3629 inside strings and character constants. */
3630 #define FOO(x) 'x'
3631 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3632
3633 int test (int i, double x);
3634 struct s1 {int (*f) (int a);};
3635 struct s2 {int (*f) (double a);};
3636 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3637 int argc;
3638 char **argv;
3639 int
3640 main ()
3641 {
3642 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3643 ;
3644 return 0;
3645 }
3646 _ACEOF
3647 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3648 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3649 do
3650 CC="$ac_save_CC $ac_arg"
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652 ac_cv_prog_cc_c89=$ac_arg
3653 fi
3654 rm -f core conftest.err conftest.$ac_objext
3655 test "x$ac_cv_prog_cc_c89" != "xno" && break
3656 done
3657 rm -f conftest.$ac_ext
3658 CC=$ac_save_CC
3659
3660 fi
3661 # AC_CACHE_VAL
3662 case "x$ac_cv_prog_cc_c89" in
3663 x)
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3665 $as_echo "none needed" >&6; } ;;
3666 xno)
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3668 $as_echo "unsupported" >&6; } ;;
3669 *)
3670 CC="$CC $ac_cv_prog_cc_c89"
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3673 esac
3674 if test "x$ac_cv_prog_cc_c89" != xno; then :
3675
3676 fi
3677
3678 ac_ext=c
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683
3684 depcc="$CC" am_compiler_list=
3685
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3687 $as_echo_n "checking dependency style of $depcc... " >&6; }
3688 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3692 # We make a subdir and do the tests there. Otherwise we can end up
3693 # making bogus files that we don't know about and never remove. For
3694 # instance it was reported that on HP-UX the gcc test will end up
3695 # making a dummy file named 'D' -- because '-MD' means "put the output
3696 # in D".
3697 rm -rf conftest.dir
3698 mkdir conftest.dir
3699 # Copy depcomp to subdir because otherwise we won't find it if we're
3700 # using a relative directory.
3701 cp "$am_depcomp" conftest.dir
3702 cd conftest.dir
3703 # We will build objects and dependencies in a subdirectory because
3704 # it helps to detect inapplicable dependency modes. For instance
3705 # both Tru64's cc and ICC support -MD to output dependencies as a
3706 # side effect of compilation, but ICC will put the dependencies in
3707 # the current directory while Tru64 will put them in the object
3708 # directory.
3709 mkdir sub
3710
3711 am_cv_CC_dependencies_compiler_type=none
3712 if test "$am_compiler_list" = ""; then
3713 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3714 fi
3715 am__universal=false
3716 case " $depcc " in #(
3717 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3718 esac
3719
3720 for depmode in $am_compiler_list; do
3721 # Setup a source with many dependencies, because some compilers
3722 # like to wrap large dependency lists on column 80 (with \), and
3723 # we should not choose a depcomp mode which is confused by this.
3724 #
3725 # We need to recreate these files for each test, as the compiler may
3726 # overwrite some of them when testing with obscure command lines.
3727 # This happens at least with the AIX C compiler.
3728 : > sub/conftest.c
3729 for i in 1 2 3 4 5 6; do
3730 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3731 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3732 # Solaris 10 /bin/sh.
3733 echo '/* dummy */' > sub/conftst$i.h
3734 done
3735 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3736
3737 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3738 # mode. It turns out that the SunPro C++ compiler does not properly
3739 # handle '-M -o', and we need to detect this. Also, some Intel
3740 # versions had trouble with output in subdirs.
3741 am__obj=sub/conftest.${OBJEXT-o}
3742 am__minus_obj="-o $am__obj"
3743 case $depmode in
3744 gcc)
3745 # This depmode causes a compiler race in universal mode.
3746 test "$am__universal" = false || continue
3747 ;;
3748 nosideeffect)
3749 # After this tag, mechanisms are not by side-effect, so they'll
3750 # only be used when explicitly requested.
3751 if test "x$enable_dependency_tracking" = xyes; then
3752 continue
3753 else
3754 break
3755 fi
3756 ;;
3757 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3758 # This compiler won't grok '-c -o', but also, the minuso test has
3759 # not run yet. These depmodes are late enough in the game, and
3760 # so weak that their functioning should not be impacted.
3761 am__obj=conftest.${OBJEXT-o}
3762 am__minus_obj=
3763 ;;
3764 none) break ;;
3765 esac
3766 if depmode=$depmode \
3767 source=sub/conftest.c object=$am__obj \
3768 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3769 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3770 >/dev/null 2>conftest.err &&
3771 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3772 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3773 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3774 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3775 # icc doesn't choke on unknown options, it will just issue warnings
3776 # or remarks (even with -Werror). So we grep stderr for any message
3777 # that says an option was ignored or not supported.
3778 # When given -MP, icc 7.0 and 7.1 complain thusly:
3779 # icc: Command line warning: ignoring option '-M'; no argument required
3780 # The diagnosis changed in icc 8.0:
3781 # icc: Command line remark: option '-MP' not supported
3782 if (grep 'ignoring option' conftest.err ||
3783 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3784 am_cv_CC_dependencies_compiler_type=$depmode
3785 break
3786 fi
3787 fi
3788 done
3789
3790 cd ..
3791 rm -rf conftest.dir
3792 else
3793 am_cv_CC_dependencies_compiler_type=none
3794 fi
3795
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3798 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3799 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3800
3801 if
3802 test "x$enable_dependency_tracking" != xno \
3803 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3804 am__fastdepCC_TRUE=
3805 am__fastdepCC_FALSE='#'
3806 else
3807 am__fastdepCC_TRUE='#'
3808 am__fastdepCC_FALSE=
3809 fi
3810
3811
3812
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3819 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3820 # On Suns, sometimes $CPP names a directory.
3821 if test -n "$CPP" && test -d "$CPP"; then
3822 CPP=
3823 fi
3824 if test -z "$CPP"; then
3825 if ${ac_cv_prog_CPP+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 # Double quotes because CPP needs to be expanded
3829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3830 do
3831 ac_preproc_ok=false
3832 for ac_c_preproc_warn_flag in '' yes
3833 do
3834 # Use a header file that comes with gcc, so configuring glibc
3835 # with a fresh cross-compiler works.
3836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3837 # <limits.h> exists even on freestanding compilers.
3838 # On the NeXT, cc -E runs the code through the compiler's parser,
3839 # not just through cpp. "Syntax error" is here to catch this case.
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #ifdef __STDC__
3843 # include <limits.h>
3844 #else
3845 # include <assert.h>
3846 #endif
3847 Syntax error
3848 _ACEOF
3849 if ac_fn_c_try_cpp "$LINENO"; then :
3850
3851 else
3852 # Broken: fails on valid input.
3853 continue
3854 fi
3855 rm -f conftest.err conftest.i conftest.$ac_ext
3856
3857 # OK, works on sane cases. Now check whether nonexistent headers
3858 # can be detected and how.
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861 #include <ac_nonexistent.h>
3862 _ACEOF
3863 if ac_fn_c_try_cpp "$LINENO"; then :
3864 # Broken: success on invalid input.
3865 continue
3866 else
3867 # Passes both tests.
3868 ac_preproc_ok=:
3869 break
3870 fi
3871 rm -f conftest.err conftest.i conftest.$ac_ext
3872
3873 done
3874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875 rm -f conftest.i conftest.err conftest.$ac_ext
3876 if $ac_preproc_ok; then :
3877 break
3878 fi
3879
3880 done
3881 ac_cv_prog_CPP=$CPP
3882
3883 fi
3884 CPP=$ac_cv_prog_CPP
3885 else
3886 ac_cv_prog_CPP=$CPP
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3889 $as_echo "$CPP" >&6; }
3890 ac_preproc_ok=false
3891 for ac_c_preproc_warn_flag in '' yes
3892 do
3893 # Use a header file that comes with gcc, so configuring glibc
3894 # with a fresh cross-compiler works.
3895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3896 # <limits.h> exists even on freestanding compilers.
3897 # On the NeXT, cc -E runs the code through the compiler's parser,
3898 # not just through cpp. "Syntax error" is here to catch this case.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #ifdef __STDC__
3902 # include <limits.h>
3903 #else
3904 # include <assert.h>
3905 #endif
3906 Syntax error
3907 _ACEOF
3908 if ac_fn_c_try_cpp "$LINENO"; then :
3909
3910 else
3911 # Broken: fails on valid input.
3912 continue
3913 fi
3914 rm -f conftest.err conftest.i conftest.$ac_ext
3915
3916 # OK, works on sane cases. Now check whether nonexistent headers
3917 # can be detected and how.
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <ac_nonexistent.h>
3921 _ACEOF
3922 if ac_fn_c_try_cpp "$LINENO"; then :
3923 # Broken: success on invalid input.
3924 continue
3925 else
3926 # Passes both tests.
3927 ac_preproc_ok=:
3928 break
3929 fi
3930 rm -f conftest.err conftest.i conftest.$ac_ext
3931
3932 done
3933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3934 rm -f conftest.i conftest.err conftest.$ac_ext
3935 if $ac_preproc_ok; then :
3936
3937 else
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3941 See \`config.log' for more details" "$LINENO" 5; }
3942 fi
3943
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949
3950
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3952 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3953 if ${ac_cv_path_GREP+:} false; then :
3954 $as_echo_n "(cached) " >&6
3955 else
3956 if test -z "$GREP"; then
3957 ac_path_GREP_found=false
3958 # Loop through the user's path and test for each of PROGNAME-LIST
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961 do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_prog in grep ggrep; do
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3967 as_fn_executable_p "$ac_path_GREP" || continue
3968 # Check for GNU ac_path_GREP and select it if it is found.
3969 # Check for GNU $ac_path_GREP
3970 case `"$ac_path_GREP" --version 2>&1` in
3971 *GNU*)
3972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3973 *)
3974 ac_count=0
3975 $as_echo_n 0123456789 >"conftest.in"
3976 while :
3977 do
3978 cat "conftest.in" "conftest.in" >"conftest.tmp"
3979 mv "conftest.tmp" "conftest.in"
3980 cp "conftest.in" "conftest.nl"
3981 $as_echo 'GREP' >> "conftest.nl"
3982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984 as_fn_arith $ac_count + 1 && ac_count=$as_val
3985 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3986 # Best one so far, save it but keep looking for a better one
3987 ac_cv_path_GREP="$ac_path_GREP"
3988 ac_path_GREP_max=$ac_count
3989 fi
3990 # 10*(2^10) chars as input seems more than enough
3991 test $ac_count -gt 10 && break
3992 done
3993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994 esac
3995
3996 $ac_path_GREP_found && break 3
3997 done
3998 done
3999 done
4000 IFS=$as_save_IFS
4001 if test -z "$ac_cv_path_GREP"; then
4002 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4003 fi
4004 else
4005 ac_cv_path_GREP=$GREP
4006 fi
4007
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4010 $as_echo "$ac_cv_path_GREP" >&6; }
4011 GREP="$ac_cv_path_GREP"
4012
4013
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4015 $as_echo_n "checking for egrep... " >&6; }
4016 if ${ac_cv_path_EGREP+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020 then ac_cv_path_EGREP="$GREP -E"
4021 else
4022 if test -z "$EGREP"; then
4023 ac_path_EGREP_found=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in egrep; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4033 as_fn_executable_p "$ac_path_EGREP" || continue
4034 # Check for GNU ac_path_EGREP and select it if it is found.
4035 # Check for GNU $ac_path_EGREP
4036 case `"$ac_path_EGREP" --version 2>&1` in
4037 *GNU*)
4038 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039 *)
4040 ac_count=0
4041 $as_echo_n 0123456789 >"conftest.in"
4042 while :
4043 do
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 $as_echo 'EGREP' >> "conftest.nl"
4048 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050 as_fn_arith $ac_count + 1 && ac_count=$as_val
4051 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_EGREP="$ac_path_EGREP"
4054 ac_path_EGREP_max=$ac_count
4055 fi
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4058 done
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 esac
4061
4062 $ac_path_EGREP_found && break 3
4063 done
4064 done
4065 done
4066 IFS=$as_save_IFS
4067 if test -z "$ac_cv_path_EGREP"; then
4068 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4069 fi
4070 else
4071 ac_cv_path_EGREP=$EGREP
4072 fi
4073
4074 fi
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4077 $as_echo "$ac_cv_path_EGREP" >&6; }
4078 EGREP="$ac_cv_path_EGREP"
4079
4080
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4082 $as_echo_n "checking for ANSI C header files... " >&6; }
4083 if ${ac_cv_header_stdc+:} false; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 #include <stdlib.h>
4089 #include <stdarg.h>
4090 #include <string.h>
4091 #include <float.h>
4092
4093 int
4094 main ()
4095 {
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_cv_header_stdc=yes
4103 else
4104 ac_cv_header_stdc=no
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107
4108 if test $ac_cv_header_stdc = yes; then
4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <string.h>
4113
4114 _ACEOF
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 $EGREP "memchr" >/dev/null 2>&1; then :
4117
4118 else
4119 ac_cv_header_stdc=no
4120 fi
4121 rm -f conftest*
4122
4123 fi
4124
4125 if test $ac_cv_header_stdc = yes; then
4126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129 #include <stdlib.h>
4130
4131 _ACEOF
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "free" >/dev/null 2>&1; then :
4134
4135 else
4136 ac_cv_header_stdc=no
4137 fi
4138 rm -f conftest*
4139
4140 fi
4141
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then :
4145 :
4146 else
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #include <ctype.h>
4150 #include <stdlib.h>
4151 #if ((' ' & 0x0FF) == 0x020)
4152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4154 #else
4155 # define ISLOWER(c) \
4156 (('a' <= (c) && (c) <= 'i') \
4157 || ('j' <= (c) && (c) <= 'r') \
4158 || ('s' <= (c) && (c) <= 'z'))
4159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4160 #endif
4161
4162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4163 int
4164 main ()
4165 {
4166 int i;
4167 for (i = 0; i < 256; i++)
4168 if (XOR (islower (i), ISLOWER (i))
4169 || toupper (i) != TOUPPER (i))
4170 return 2;
4171 return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_c_try_run "$LINENO"; then :
4175
4176 else
4177 ac_cv_header_stdc=no
4178 fi
4179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4180 conftest.$ac_objext conftest.beam conftest.$ac_ext
4181 fi
4182
4183 fi
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4186 $as_echo "$ac_cv_header_stdc" >&6; }
4187 if test $ac_cv_header_stdc = yes; then
4188
4189 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4190
4191 fi
4192
4193 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4194 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4195 inttypes.h stdint.h unistd.h
4196 do :
4197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4199 "
4200 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4201 cat >>confdefs.h <<_ACEOF
4202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4203 _ACEOF
4204
4205 fi
4206
4207 done
4208
4209
4210
4211 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4212 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4213 MINIX=yes
4214 else
4215 MINIX=
4216 fi
4217
4218
4219 if test "$MINIX" = yes; then
4220
4221 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4222
4223
4224 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4225
4226
4227 $as_echo "#define _MINIX 1" >>confdefs.h
4228
4229 fi
4230
4231
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4233 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4234 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239
4240 # define __EXTENSIONS__ 1
4241 $ac_includes_default
4242 int
4243 main ()
4244 {
4245
4246 ;
4247 return 0;
4248 }
4249 _ACEOF
4250 if ac_fn_c_try_compile "$LINENO"; then :
4251 ac_cv_safe_to_define___extensions__=yes
4252 else
4253 ac_cv_safe_to_define___extensions__=no
4254 fi
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4258 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4259 test $ac_cv_safe_to_define___extensions__ = yes &&
4260 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4261
4262 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4263
4264 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4265
4266 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4267
4268 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4269
4270
4271
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4273 $as_echo_n "checking whether ln -s works... " >&6; }
4274 LN_S=$as_ln_s
4275 if test "$LN_S" = "ln -s"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4277 $as_echo "yes" >&6; }
4278 else
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4280 $as_echo "no, using $LN_S" >&6; }
4281 fi
4282
4283 ac_ext=c
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288 if test -n "$ac_tool_prefix"; then
4289 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4290 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if ${ac_cv_prog_CC+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test -n "$CC"; then
4297 ac_cv_prog_CC="$CC" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4309 fi
4310 done
4311 done
4312 IFS=$as_save_IFS
4313
4314 fi
4315 fi
4316 CC=$ac_cv_prog_CC
4317 if test -n "$CC"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4319 $as_echo "$CC" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323 fi
4324
4325
4326 fi
4327 if test -z "$ac_cv_prog_CC"; then
4328 ac_ct_CC=$CC
4329 # Extract the first word of "gcc", so it can be a program name with args.
4330 set dummy gcc; ac_word=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if test -n "$ac_ct_CC"; then
4337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_prog_ac_ct_CC="gcc"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4349 fi
4350 done
4351 done
4352 IFS=$as_save_IFS
4353
4354 fi
4355 fi
4356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4357 if test -n "$ac_ct_CC"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4359 $as_echo "$ac_ct_CC" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4363 fi
4364
4365 if test "x$ac_ct_CC" = x; then
4366 CC=""
4367 else
4368 case $cross_compiling:$ac_tool_warned in
4369 yes:)
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4372 ac_tool_warned=yes ;;
4373 esac
4374 CC=$ac_ct_CC
4375 fi
4376 else
4377 CC="$ac_cv_prog_CC"
4378 fi
4379
4380 if test -z "$CC"; then
4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4383 set dummy ${ac_tool_prefix}cc; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if ${ac_cv_prog_CC+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if test -n "$CC"; then
4390 ac_cv_prog_CC="$CC" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_CC="${ac_tool_prefix}cc"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403 done
4404 done
4405 IFS=$as_save_IFS
4406
4407 fi
4408 fi
4409 CC=$ac_cv_prog_CC
4410 if test -n "$CC"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4412 $as_echo "$CC" >&6; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416 fi
4417
4418
4419 fi
4420 fi
4421 if test -z "$CC"; then
4422 # Extract the first word of "cc", so it can be a program name with args.
4423 set dummy cc; ac_word=$2
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if ${ac_cv_prog_CC+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 if test -n "$CC"; then
4430 ac_cv_prog_CC="$CC" # Let the user override the test.
4431 else
4432 ac_prog_rejected=no
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4441 ac_prog_rejected=yes
4442 continue
4443 fi
4444 ac_cv_prog_CC="cc"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452 if test $ac_prog_rejected = yes; then
4453 # We found a bogon in the path, so make sure we never use it.
4454 set dummy $ac_cv_prog_CC
4455 shift
4456 if test $# != 0; then
4457 # We chose a different compiler from the bogus one.
4458 # However, it has the same basename, so the bogon will be chosen
4459 # first if we set CC to just the basename; use the full file name.
4460 shift
4461 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4462 fi
4463 fi
4464 fi
4465 fi
4466 CC=$ac_cv_prog_CC
4467 if test -n "$CC"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4469 $as_echo "$CC" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476 fi
4477 if test -z "$CC"; then
4478 if test -n "$ac_tool_prefix"; then
4479 for ac_prog in cl.exe
4480 do
4481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if ${ac_cv_prog_CC+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -n "$CC"; then
4489 ac_cv_prog_CC="$CC" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4501 fi
4502 done
4503 done
4504 IFS=$as_save_IFS
4505
4506 fi
4507 fi
4508 CC=$ac_cv_prog_CC
4509 if test -n "$CC"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4511 $as_echo "$CC" >&6; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4515 fi
4516
4517
4518 test -n "$CC" && break
4519 done
4520 fi
4521 if test -z "$CC"; then
4522 ac_ct_CC=$CC
4523 for ac_prog in cl.exe
4524 do
4525 # Extract the first word of "$ac_prog", so it can be a program name with args.
4526 set dummy $ac_prog; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$ac_ct_CC"; then
4533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542 ac_cv_prog_ac_ct_CC="$ac_prog"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546 done
4547 done
4548 IFS=$as_save_IFS
4549
4550 fi
4551 fi
4552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4553 if test -n "$ac_ct_CC"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4555 $as_echo "$ac_ct_CC" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4559 fi
4560
4561
4562 test -n "$ac_ct_CC" && break
4563 done
4564
4565 if test "x$ac_ct_CC" = x; then
4566 CC=""
4567 else
4568 case $cross_compiling:$ac_tool_warned in
4569 yes:)
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4572 ac_tool_warned=yes ;;
4573 esac
4574 CC=$ac_ct_CC
4575 fi
4576 fi
4577
4578 fi
4579
4580
4581 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4583 as_fn_error $? "no acceptable C compiler found in \$PATH
4584 See \`config.log' for more details" "$LINENO" 5; }
4585
4586 # Provide some information about the compiler.
4587 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4588 set X $ac_compile
4589 ac_compiler=$2
4590 for ac_option in --version -v -V -qversion; do
4591 { { ac_try="$ac_compiler $ac_option >&5"
4592 case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4595 esac
4596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4597 $as_echo "$ac_try_echo"; } >&5
4598 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4599 ac_status=$?
4600 if test -s conftest.err; then
4601 sed '10a\
4602 ... rest of stderr output deleted ...
4603 10q' conftest.err >conftest.er1
4604 cat conftest.er1 >&5
4605 fi
4606 rm -f conftest.er1 conftest.err
4607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608 test $ac_status = 0; }
4609 done
4610
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4612 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4613 if ${ac_cv_c_compiler_gnu+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618
4619 int
4620 main ()
4621 {
4622 #ifndef __GNUC__
4623 choke me
4624 #endif
4625
4626 ;
4627 return 0;
4628 }
4629 _ACEOF
4630 if ac_fn_c_try_compile "$LINENO"; then :
4631 ac_compiler_gnu=yes
4632 else
4633 ac_compiler_gnu=no
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4637
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4640 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4641 if test $ac_compiler_gnu = yes; then
4642 GCC=yes
4643 else
4644 GCC=
4645 fi
4646 ac_test_CFLAGS=${CFLAGS+set}
4647 ac_save_CFLAGS=$CFLAGS
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4649 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4650 if ${ac_cv_prog_cc_g+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 ac_save_c_werror_flag=$ac_c_werror_flag
4654 ac_c_werror_flag=yes
4655 ac_cv_prog_cc_g=no
4656 CFLAGS="-g"
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659
4660 int
4661 main ()
4662 {
4663
4664 ;
4665 return 0;
4666 }
4667 _ACEOF
4668 if ac_fn_c_try_compile "$LINENO"; then :
4669 ac_cv_prog_cc_g=yes
4670 else
4671 CFLAGS=""
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674
4675 int
4676 main ()
4677 {
4678
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684
4685 else
4686 ac_c_werror_flag=$ac_save_c_werror_flag
4687 CFLAGS="-g"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690
4691 int
4692 main ()
4693 {
4694
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700 ac_cv_prog_cc_g=yes
4701 fi
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 fi
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 ac_c_werror_flag=$ac_save_c_werror_flag
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4710 $as_echo "$ac_cv_prog_cc_g" >&6; }
4711 if test "$ac_test_CFLAGS" = set; then
4712 CFLAGS=$ac_save_CFLAGS
4713 elif test $ac_cv_prog_cc_g = yes; then
4714 if test "$GCC" = yes; then
4715 CFLAGS="-g -O2"
4716 else
4717 CFLAGS="-g"
4718 fi
4719 else
4720 if test "$GCC" = yes; then
4721 CFLAGS="-O2"
4722 else
4723 CFLAGS=
4724 fi
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4727 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4728 if ${ac_cv_prog_cc_c89+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 ac_cv_prog_cc_c89=no
4732 ac_save_CC=$CC
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735 #include <stdarg.h>
4736 #include <stdio.h>
4737 struct stat;
4738 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4739 struct buf { int x; };
4740 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4741 static char *e (p, i)
4742 char **p;
4743 int i;
4744 {
4745 return p[i];
4746 }
4747 static char *f (char * (*g) (char **, int), char **p, ...)
4748 {
4749 char *s;
4750 va_list v;
4751 va_start (v,p);
4752 s = g (p, va_arg (v,int));
4753 va_end (v);
4754 return s;
4755 }
4756
4757 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4758 function prototypes and stuff, but not '\xHH' hex character constants.
4759 These don't provoke an error unfortunately, instead are silently treated
4760 as 'x'. The following induces an error, until -std is added to get
4761 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4762 array size at least. It's necessary to write '\x00'==0 to get something
4763 that's true only with -std. */
4764 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4765
4766 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4767 inside strings and character constants. */
4768 #define FOO(x) 'x'
4769 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4770
4771 int test (int i, double x);
4772 struct s1 {int (*f) (int a);};
4773 struct s2 {int (*f) (double a);};
4774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4775 int argc;
4776 char **argv;
4777 int
4778 main ()
4779 {
4780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4786 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4787 do
4788 CC="$ac_save_CC $ac_arg"
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790 ac_cv_prog_cc_c89=$ac_arg
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext
4793 test "x$ac_cv_prog_cc_c89" != "xno" && break
4794 done
4795 rm -f conftest.$ac_ext
4796 CC=$ac_save_CC
4797
4798 fi
4799 # AC_CACHE_VAL
4800 case "x$ac_cv_prog_cc_c89" in
4801 x)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4803 $as_echo "none needed" >&6; } ;;
4804 xno)
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4806 $as_echo "unsupported" >&6; } ;;
4807 *)
4808 CC="$CC $ac_cv_prog_cc_c89"
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4810 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4811 esac
4812 if test "x$ac_cv_prog_cc_c89" != xno; then :
4813
4814 fi
4815
4816 ac_ext=c
4817 ac_cpp='$CPP $CPPFLAGS'
4818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821
4822 depcc="$CC" am_compiler_list=
4823
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4825 $as_echo_n "checking dependency style of $depcc... " >&6; }
4826 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4830 # We make a subdir and do the tests there. Otherwise we can end up
4831 # making bogus files that we don't know about and never remove. For
4832 # instance it was reported that on HP-UX the gcc test will end up
4833 # making a dummy file named 'D' -- because '-MD' means "put the output
4834 # in D".
4835 rm -rf conftest.dir
4836 mkdir conftest.dir
4837 # Copy depcomp to subdir because otherwise we won't find it if we're
4838 # using a relative directory.
4839 cp "$am_depcomp" conftest.dir
4840 cd conftest.dir
4841 # We will build objects and dependencies in a subdirectory because
4842 # it helps to detect inapplicable dependency modes. For instance
4843 # both Tru64's cc and ICC support -MD to output dependencies as a
4844 # side effect of compilation, but ICC will put the dependencies in
4845 # the current directory while Tru64 will put them in the object
4846 # directory.
4847 mkdir sub
4848
4849 am_cv_CC_dependencies_compiler_type=none
4850 if test "$am_compiler_list" = ""; then
4851 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4852 fi
4853 am__universal=false
4854 case " $depcc " in #(
4855 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4856 esac
4857
4858 for depmode in $am_compiler_list; do
4859 # Setup a source with many dependencies, because some compilers
4860 # like to wrap large dependency lists on column 80 (with \), and
4861 # we should not choose a depcomp mode which is confused by this.
4862 #
4863 # We need to recreate these files for each test, as the compiler may
4864 # overwrite some of them when testing with obscure command lines.
4865 # This happens at least with the AIX C compiler.
4866 : > sub/conftest.c
4867 for i in 1 2 3 4 5 6; do
4868 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4869 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4870 # Solaris 10 /bin/sh.
4871 echo '/* dummy */' > sub/conftst$i.h
4872 done
4873 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4874
4875 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4876 # mode. It turns out that the SunPro C++ compiler does not properly
4877 # handle '-M -o', and we need to detect this. Also, some Intel
4878 # versions had trouble with output in subdirs.
4879 am__obj=sub/conftest.${OBJEXT-o}
4880 am__minus_obj="-o $am__obj"
4881 case $depmode in
4882 gcc)
4883 # This depmode causes a compiler race in universal mode.
4884 test "$am__universal" = false || continue
4885 ;;
4886 nosideeffect)
4887 # After this tag, mechanisms are not by side-effect, so they'll
4888 # only be used when explicitly requested.
4889 if test "x$enable_dependency_tracking" = xyes; then
4890 continue
4891 else
4892 break
4893 fi
4894 ;;
4895 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4896 # This compiler won't grok '-c -o', but also, the minuso test has
4897 # not run yet. These depmodes are late enough in the game, and
4898 # so weak that their functioning should not be impacted.
4899 am__obj=conftest.${OBJEXT-o}
4900 am__minus_obj=
4901 ;;
4902 none) break ;;
4903 esac
4904 if depmode=$depmode \
4905 source=sub/conftest.c object=$am__obj \
4906 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4907 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4908 >/dev/null 2>conftest.err &&
4909 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4910 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4911 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4913 # icc doesn't choke on unknown options, it will just issue warnings
4914 # or remarks (even with -Werror). So we grep stderr for any message
4915 # that says an option was ignored or not supported.
4916 # When given -MP, icc 7.0 and 7.1 complain thusly:
4917 # icc: Command line warning: ignoring option '-M'; no argument required
4918 # The diagnosis changed in icc 8.0:
4919 # icc: Command line remark: option '-MP' not supported
4920 if (grep 'ignoring option' conftest.err ||
4921 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4922 am_cv_CC_dependencies_compiler_type=$depmode
4923 break
4924 fi
4925 fi
4926 done
4927
4928 cd ..
4929 rm -rf conftest.dir
4930 else
4931 am_cv_CC_dependencies_compiler_type=none
4932 fi
4933
4934 fi
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4936 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4937 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4938
4939 if
4940 test "x$enable_dependency_tracking" != xno \
4941 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4942 am__fastdepCC_TRUE=
4943 am__fastdepCC_FALSE='#'
4944 else
4945 am__fastdepCC_TRUE='#'
4946 am__fastdepCC_FALSE=
4947 fi
4948
4949
4950 for ac_prog in ps
4951 do
4952 # Extract the first word of "$ac_prog", so it can be a program name with args.
4953 set dummy $ac_prog; ac_word=$2
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955 $as_echo_n "checking for $ac_word... " >&6; }
4956 if ${ac_cv_path_PS+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 case $PS in
4960 [\\/]* | ?:[\\/]*)
4961 ac_cv_path_PS="$PS" # Let the user override the test with a path.
4962 ;;
4963 *)
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $LPATH
4966 do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975 done
4976 done
4977 IFS=$as_save_IFS
4978
4979 ;;
4980 esac
4981 fi
4982 PS=$ac_cv_path_PS
4983 if test -n "$PS"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
4985 $as_echo "$PS" >&6; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4989 fi
4990
4991
4992 test -n "$PS" && break
4993 done
4994 test -n "$PS" || PS="ps"
4995
4996 for ac_prog in w
4997 do
4998 # Extract the first word of "$ac_prog", so it can be a program name with args.
4999 set dummy $ac_prog; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_path_W+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 case $W in
5006 [\\/]* | ?:[\\/]*)
5007 ac_cv_path_W="$W" # Let the user override the test with a path.
5008 ;;
5009 *)
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $LPATH
5012 do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025 ;;
5026 esac
5027 fi
5028 W=$ac_cv_path_W
5029 if test -n "$W"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W" >&5
5031 $as_echo "$W" >&6; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036
5037
5038 test -n "$W" && break
5039 done
5040 test -n "$W" || W="w"
5041
5042 case `pwd` in
5043 *\ * | *\ *)
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5045 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5046 esac
5047
5048
5049
5050 macro_version='2.4.2'
5051 macro_revision='1.3337'
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 ltmain="$ac_aux_dir/ltmain.sh"
5066
5067 # Make sure we can run config.sub.
5068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5069 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5070
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5072 $as_echo_n "checking build system type... " >&6; }
5073 if ${ac_cv_build+:} false; then :
5074 $as_echo_n "(cached) " >&6
5075 else
5076 ac_build_alias=$build_alias
5077 test "x$ac_build_alias" = x &&
5078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5079 test "x$ac_build_alias" = x &&
5080 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5082 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5083
5084 fi
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5086 $as_echo "$ac_cv_build" >&6; }
5087 case $ac_cv_build in
5088 *-*-*) ;;
5089 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5090 esac
5091 build=$ac_cv_build
5092 ac_save_IFS=$IFS; IFS='-'
5093 set x $ac_cv_build
5094 shift
5095 build_cpu=$1
5096 build_vendor=$2
5097 shift; shift
5098 # Remember, the first character of IFS is used to create $*,
5099 # except with old shells:
5100 build_os=$*
5101 IFS=$ac_save_IFS
5102 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5103
5104
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5106 $as_echo_n "checking host system type... " >&6; }
5107 if ${ac_cv_host+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test "x$host_alias" = x; then
5111 ac_cv_host=$ac_cv_build
5112 else
5113 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5114 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5115 fi
5116
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5119 $as_echo "$ac_cv_host" >&6; }
5120 case $ac_cv_host in
5121 *-*-*) ;;
5122 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5123 esac
5124 host=$ac_cv_host
5125 ac_save_IFS=$IFS; IFS='-'
5126 set x $ac_cv_host
5127 shift
5128 host_cpu=$1
5129 host_vendor=$2
5130 shift; shift
5131 # Remember, the first character of IFS is used to create $*,
5132 # except with old shells:
5133 host_os=$*
5134 IFS=$ac_save_IFS
5135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5136
5137
5138 # Backslashify metacharacters that are still active within
5139 # double-quoted strings.
5140 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5141
5142 # Same as above, but do not quote variable references.
5143 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5144
5145 # Sed substitution to delay expansion of an escaped shell variable in a
5146 # double_quote_subst'ed string.
5147 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5148
5149 # Sed substitution to delay expansion of an escaped single quote.
5150 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5151
5152 # Sed substitution to avoid accidental globbing in evaled expressions
5153 no_glob_subst='s/\*/\\\*/g'
5154
5155 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5156 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5157 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5158
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5160 $as_echo_n "checking how to print strings... " >&6; }
5161 # Test print first, because it will be a builtin if present.
5162 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5163 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5164 ECHO='print -r --'
5165 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5166 ECHO='printf %s\n'
5167 else
5168 # Use this function as a fallback that always works.
5169 func_fallback_echo ()
5170 {
5171 eval 'cat <<_LTECHO_EOF
5172 $1
5173 _LTECHO_EOF'
5174 }
5175 ECHO='func_fallback_echo'
5176 fi
5177
5178 # func_echo_all arg...
5179 # Invoke $ECHO with all args, space-separated.
5180 func_echo_all ()
5181 {
5182 $ECHO ""
5183 }
5184
5185 case "$ECHO" in
5186 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5187 $as_echo "printf" >&6; } ;;
5188 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5189 $as_echo "print -r" >&6; } ;;
5190 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5191 $as_echo "cat" >&6; } ;;
5192 esac
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5208 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5209 if ${ac_cv_path_SED+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5213 for ac_i in 1 2 3 4 5 6 7; do
5214 ac_script="$ac_script$as_nl$ac_script"
5215 done
5216 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5217 { ac_script=; unset ac_script;}
5218 if test -z "$SED"; then
5219 ac_path_SED_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in sed gsed; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5229 as_fn_executable_p "$ac_path_SED" || continue
5230 # Check for GNU ac_path_SED and select it if it is found.
5231 # Check for GNU $ac_path_SED
5232 case `"$ac_path_SED" --version 2>&1` in
5233 *GNU*)
5234 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5235 *)
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5239 do
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo '' >> "conftest.nl"
5244 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_SED_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_SED="$ac_path_SED"
5250 ac_path_SED_max=$ac_count
5251 fi
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256 esac
5257
5258 $ac_path_SED_found && break 3
5259 done
5260 done
5261 done
5262 IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_SED"; then
5264 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5265 fi
5266 else
5267 ac_cv_path_SED=$SED
5268 fi
5269
5270 fi
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5272 $as_echo "$ac_cv_path_SED" >&6; }
5273 SED="$ac_cv_path_SED"
5274 rm -f conftest.sed
5275
5276 test -z "$SED" && SED=sed
5277 Xsed="$SED -e 1s/^X//"
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5290 $as_echo_n "checking for fgrep... " >&6; }
5291 if ${ac_cv_path_FGREP+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5295 then ac_cv_path_FGREP="$GREP -F"
5296 else
5297 if test -z "$FGREP"; then
5298 ac_path_FGREP_found=false
5299 # Loop through the user's path and test for each of PROGNAME-LIST
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5302 do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_prog in fgrep; do
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5308 as_fn_executable_p "$ac_path_FGREP" || continue
5309 # Check for GNU ac_path_FGREP and select it if it is found.
5310 # Check for GNU $ac_path_FGREP
5311 case `"$ac_path_FGREP" --version 2>&1` in
5312 *GNU*)
5313 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5314 *)
5315 ac_count=0
5316 $as_echo_n 0123456789 >"conftest.in"
5317 while :
5318 do
5319 cat "conftest.in" "conftest.in" >"conftest.tmp"
5320 mv "conftest.tmp" "conftest.in"
5321 cp "conftest.in" "conftest.nl"
5322 $as_echo 'FGREP' >> "conftest.nl"
5323 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5325 as_fn_arith $ac_count + 1 && ac_count=$as_val
5326 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5327 # Best one so far, save it but keep looking for a better one
5328 ac_cv_path_FGREP="$ac_path_FGREP"
5329 ac_path_FGREP_max=$ac_count
5330 fi
5331 # 10*(2^10) chars as input seems more than enough
5332 test $ac_count -gt 10 && break
5333 done
5334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5335 esac
5336
5337 $ac_path_FGREP_found && break 3
5338 done
5339 done
5340 done
5341 IFS=$as_save_IFS
5342 if test -z "$ac_cv_path_FGREP"; then
5343 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5344 fi
5345 else
5346 ac_cv_path_FGREP=$FGREP
5347 fi
5348
5349 fi
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5352 $as_echo "$ac_cv_path_FGREP" >&6; }
5353 FGREP="$ac_cv_path_FGREP"
5354
5355
5356 test -z "$GREP" && GREP=grep
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376 # Check whether --with-gnu-ld was given.
5377 if test "${with_gnu_ld+set}" = set; then :
5378 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5379 else
5380 with_gnu_ld=no
5381 fi
5382
5383 ac_prog=ld
5384 if test "$GCC" = yes; then
5385 # Check if gcc -print-prog-name=ld gives a path.
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5387 $as_echo_n "checking for ld used by $CC... " >&6; }
5388 case $host in
5389 *-*-mingw*)
5390 # gcc leaves a trailing carriage return which upsets mingw
5391 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5392 *)
5393 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5394 esac
5395 case $ac_prog in
5396 # Accept absolute paths.
5397 [\\/]* | ?:[\\/]*)
5398 re_direlt='/[^/][^/]*/\.\./'
5399 # Canonicalize the pathname of ld
5400 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5401 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5402 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5403 done
5404 test -z "$LD" && LD="$ac_prog"
5405 ;;
5406 "")
5407 # If it fails, then pretend we aren't using GCC.
5408 ac_prog=ld
5409 ;;
5410 *)
5411 # If it is relative, then search for the first ld in PATH.
5412 with_gnu_ld=unknown
5413 ;;
5414 esac
5415 elif test "$with_gnu_ld" = yes; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5417 $as_echo_n "checking for GNU ld... " >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5420 $as_echo_n "checking for non-GNU ld... " >&6; }
5421 fi
5422 if ${lt_cv_path_LD+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -z "$LD"; then
5426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5427 for ac_dir in $PATH; do
5428 IFS="$lt_save_ifs"
5429 test -z "$ac_dir" && ac_dir=.
5430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5431 lt_cv_path_LD="$ac_dir/$ac_prog"
5432 # Check to see if the program is GNU ld. I'd rather use --version,
5433 # but apparently some variants of GNU ld only accept -v.
5434 # Break only if it was the GNU/non-GNU ld that we prefer.
5435 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5436 *GNU* | *'with BFD'*)
5437 test "$with_gnu_ld" != no && break
5438 ;;
5439 *)
5440 test "$with_gnu_ld" != yes && break
5441 ;;
5442 esac
5443 fi
5444 done
5445 IFS="$lt_save_ifs"
5446 else
5447 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5448 fi
5449 fi
5450
5451 LD="$lt_cv_path_LD"
5452 if test -n "$LD"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5454 $as_echo "$LD" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5461 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5462 if ${lt_cv_prog_gnu_ld+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5466 case `$LD -v 2>&1 </dev/null` in
5467 *GNU* | *'with BFD'*)
5468 lt_cv_prog_gnu_ld=yes
5469 ;;
5470 *)
5471 lt_cv_prog_gnu_ld=no
5472 ;;
5473 esac
5474 fi
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5476 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5477 with_gnu_ld=$lt_cv_prog_gnu_ld
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5488 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5489 if ${lt_cv_path_NM+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if test -n "$NM"; then
5493 # Let the user override the test.
5494 lt_cv_path_NM="$NM"
5495 else
5496 lt_nm_to_check="${ac_tool_prefix}nm"
5497 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5498 lt_nm_to_check="$lt_nm_to_check nm"
5499 fi
5500 for lt_tmp_nm in $lt_nm_to_check; do
5501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5502 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5503 IFS="$lt_save_ifs"
5504 test -z "$ac_dir" && ac_dir=.
5505 tmp_nm="$ac_dir/$lt_tmp_nm"
5506 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5507 # Check to see if the nm accepts a BSD-compat flag.
5508 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5509 # nm: unknown option "B" ignored
5510 # Tru64's nm complains that /dev/null is an invalid object file
5511 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5512 */dev/null* | *'Invalid file or object type'*)
5513 lt_cv_path_NM="$tmp_nm -B"
5514 break
5515 ;;
5516 *)
5517 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5518 */dev/null*)
5519 lt_cv_path_NM="$tmp_nm -p"
5520 break
5521 ;;
5522 *)
5523 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5524 continue # so that we can try to find one that supports BSD flags
5525 ;;
5526 esac
5527 ;;
5528 esac
5529 fi
5530 done
5531 IFS="$lt_save_ifs"
5532 done
5533 : ${lt_cv_path_NM=no}
5534 fi
5535 fi
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5537 $as_echo "$lt_cv_path_NM" >&6; }
5538 if test "$lt_cv_path_NM" != "no"; then
5539 NM="$lt_cv_path_NM"
5540 else
5541 # Didn't find any BSD compatible name lister, look for dumpbin.
5542 if test -n "$DUMPBIN"; then :
5543 # Let the user override the test.
5544 else
5545 if test -n "$ac_tool_prefix"; then
5546 for ac_prog in dumpbin "link -dump"
5547 do
5548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5549 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if ${ac_cv_prog_DUMPBIN+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 if test -n "$DUMPBIN"; then
5556 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5560 do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5568 fi
5569 done
5570 done
5571 IFS=$as_save_IFS
5572
5573 fi
5574 fi
5575 DUMPBIN=$ac_cv_prog_DUMPBIN
5576 if test -n "$DUMPBIN"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5578 $as_echo "$DUMPBIN" >&6; }
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }
5582 fi
5583
5584
5585 test -n "$DUMPBIN" && break
5586 done
5587 fi
5588 if test -z "$DUMPBIN"; then
5589 ac_ct_DUMPBIN=$DUMPBIN
5590 for ac_prog in dumpbin "link -dump"
5591 do
5592 # Extract the first word of "$ac_prog", so it can be a program name with args.
5593 set dummy $ac_prog; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if test -n "$ac_ct_DUMPBIN"; then
5600 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613 done
5614 done
5615 IFS=$as_save_IFS
5616
5617 fi
5618 fi
5619 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5620 if test -n "$ac_ct_DUMPBIN"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5622 $as_echo "$ac_ct_DUMPBIN" >&6; }
5623 else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628
5629 test -n "$ac_ct_DUMPBIN" && break
5630 done
5631
5632 if test "x$ac_ct_DUMPBIN" = x; then
5633 DUMPBIN=":"
5634 else
5635 case $cross_compiling:$ac_tool_warned in
5636 yes:)
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5639 ac_tool_warned=yes ;;
5640 esac
5641 DUMPBIN=$ac_ct_DUMPBIN
5642 fi
5643 fi
5644
5645 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5646 *COFF*)
5647 DUMPBIN="$DUMPBIN -symbols"
5648 ;;
5649 *)
5650 DUMPBIN=:
5651 ;;
5652 esac
5653 fi
5654
5655 if test "$DUMPBIN" != ":"; then
5656 NM="$DUMPBIN"
5657 fi
5658 fi
5659 test -z "$NM" && NM=nm
5660
5661
5662
5663
5664
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5667 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5668 if ${lt_cv_nm_interface+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 lt_cv_nm_interface="BSD nm"
5672 echo "int some_variable = 0;" > conftest.$ac_ext
5673 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5674 (eval "$ac_compile" 2>conftest.err)
5675 cat conftest.err >&5
5676 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5677 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5678 cat conftest.err >&5
5679 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5680 cat conftest.out >&5
5681 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5682 lt_cv_nm_interface="MS dumpbin"
5683 fi
5684 rm -f conftest*
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5687 $as_echo "$lt_cv_nm_interface" >&6; }
5688
5689 # find the maximum length of command line arguments
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5691 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5692 if ${lt_cv_sys_max_cmd_len+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 i=0
5696 teststring="ABCD"
5697
5698 case $build_os in
5699 msdosdjgpp*)
5700 # On DJGPP, this test can blow up pretty badly due to problems in libc
5701 # (any single argument exceeding 2000 bytes causes a buffer overrun
5702 # during glob expansion). Even if it were fixed, the result of this
5703 # check would be larger than it should be.
5704 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5705 ;;
5706
5707 gnu*)
5708 # Under GNU Hurd, this test is not required because there is
5709 # no limit to the length of command line arguments.
5710 # Libtool will interpret -1 as no limit whatsoever
5711 lt_cv_sys_max_cmd_len=-1;
5712 ;;
5713
5714 cygwin* | mingw* | cegcc*)
5715 # On Win9x/ME, this test blows up -- it succeeds, but takes
5716 # about 5 minutes as the teststring grows exponentially.
5717 # Worse, since 9x/ME are not pre-emptively multitasking,
5718 # you end up with a "frozen" computer, even though with patience
5719 # the test eventually succeeds (with a max line length of 256k).
5720 # Instead, let's just punt: use the minimum linelength reported by
5721 # all of the supported platforms: 8192 (on NT/2K/XP).
5722 lt_cv_sys_max_cmd_len=8192;
5723 ;;
5724
5725 mint*)
5726 # On MiNT this can take a long time and run out of memory.
5727 lt_cv_sys_max_cmd_len=8192;
5728 ;;
5729
5730 amigaos*)
5731 # On AmigaOS with pdksh, this test takes hours, literally.
5732 # So we just punt and use a minimum line length of 8192.
5733 lt_cv_sys_max_cmd_len=8192;
5734 ;;
5735
5736 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5737 # This has been around since 386BSD, at least. Likely further.
5738 if test -x /sbin/sysctl; then
5739 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5740 elif test -x /usr/sbin/sysctl; then
5741 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5742 else
5743 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5744 fi
5745 # And add a safety zone
5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5748 ;;
5749
5750 interix*)
5751 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5752 lt_cv_sys_max_cmd_len=196608
5753 ;;
5754
5755 os2*)
5756 # The test takes a long time on OS/2.
5757 lt_cv_sys_max_cmd_len=8192
5758 ;;
5759
5760 osf*)
5761 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5762 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5763 # nice to cause kernel panics so lets avoid the loop below.
5764 # First set a reasonable default.
5765 lt_cv_sys_max_cmd_len=16384
5766 #
5767 if test -x /sbin/sysconfig; then
5768 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5769 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5770 esac
5771 fi
5772 ;;
5773 sco3.2v5*)
5774 lt_cv_sys_max_cmd_len=102400
5775 ;;
5776 sysv5* | sco5v6* | sysv4.2uw2*)
5777 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5778 if test -n "$kargmax"; then
5779 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5780 else
5781 lt_cv_sys_max_cmd_len=32768
5782 fi
5783 ;;
5784 *)
5785 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5786 if test -n "$lt_cv_sys_max_cmd_len"; then
5787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5789 else
5790 # Make teststring a little bigger before we do anything with it.
5791 # a 1K string should be a reasonable start.
5792 for i in 1 2 3 4 5 6 7 8 ; do
5793 teststring=$teststring$teststring
5794 done
5795 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5796 # If test is not a shell built-in, we'll probably end up computing a
5797 # maximum length that is only half of the actual maximum length, but
5798 # we can't tell.
5799 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5800 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5801 test $i != 17 # 1/2 MB should be enough
5802 do
5803 i=`expr $i + 1`
5804 teststring=$teststring$teststring
5805 done
5806 # Only check the string length outside the loop.
5807 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5808 teststring=
5809 # Add a significant safety factor because C++ compilers can tack on
5810 # massive amounts of additional arguments before passing them to the
5811 # linker. It appears as though 1/2 is a usable value.
5812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5813 fi
5814 ;;
5815 esac
5816
5817 fi
5818
5819 if test -n $lt_cv_sys_max_cmd_len ; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5821 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5822 else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5824 $as_echo "none" >&6; }
5825 fi
5826 max_cmd_len=$lt_cv_sys_max_cmd_len
5827
5828
5829
5830
5831
5832
5833 : ${CP="cp -f"}
5834 : ${MV="mv -f"}
5835 : ${RM="rm -f"}
5836
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5838 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5839 # Try some XSI features
5840 xsi_shell=no
5841 ( _lt_dummy="a/b/c"
5842 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5843 = c,a/b,b/c, \
5844 && eval 'test $(( 1 + 1 )) -eq 2 \
5845 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5846 && xsi_shell=yes
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5848 $as_echo "$xsi_shell" >&6; }
5849
5850
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5852 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5853 lt_shell_append=no
5854 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5855 >/dev/null 2>&1 \
5856 && lt_shell_append=yes
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5858 $as_echo "$lt_shell_append" >&6; }
5859
5860
5861 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5862 lt_unset=unset
5863 else
5864 lt_unset=false
5865 fi
5866
5867
5868
5869
5870
5871 # test EBCDIC or ASCII
5872 case `echo X|tr X '\101'` in
5873 A) # ASCII based system
5874 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5875 lt_SP2NL='tr \040 \012'
5876 lt_NL2SP='tr \015\012 \040\040'
5877 ;;
5878 *) # EBCDIC based system
5879 lt_SP2NL='tr \100 \n'
5880 lt_NL2SP='tr \r\n \100\100'
5881 ;;
5882 esac
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5893 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5894 if ${lt_cv_to_host_file_cmd+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 case $host in
5898 *-*-mingw* )
5899 case $build in
5900 *-*-mingw* ) # actually msys
5901 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5902 ;;
5903 *-*-cygwin* )
5904 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5905 ;;
5906 * ) # otherwise, assume *nix
5907 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5908 ;;
5909 esac
5910 ;;
5911 *-*-cygwin* )
5912 case $build in
5913 *-*-mingw* ) # actually msys
5914 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5915 ;;
5916 *-*-cygwin* )
5917 lt_cv_to_host_file_cmd=func_convert_file_noop
5918 ;;
5919 * ) # otherwise, assume *nix
5920 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5921 ;;
5922 esac
5923 ;;
5924 * ) # unhandled hosts (and "normal" native builds)
5925 lt_cv_to_host_file_cmd=func_convert_file_noop
5926 ;;
5927 esac
5928
5929 fi
5930
5931 to_host_file_cmd=$lt_cv_to_host_file_cmd
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5933 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5934
5935
5936
5937
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5940 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5941 if ${lt_cv_to_tool_file_cmd+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 #assume ordinary cross tools, or native build.
5945 lt_cv_to_tool_file_cmd=func_convert_file_noop
5946 case $host in
5947 *-*-mingw* )
5948 case $build in
5949 *-*-mingw* ) # actually msys
5950 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5951 ;;
5952 esac
5953 ;;
5954 esac
5955
5956 fi
5957
5958 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5960 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5961
5962
5963
5964
5965
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5967 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5968 if ${lt_cv_ld_reload_flag+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 lt_cv_ld_reload_flag='-r'
5972 fi
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5974 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5975 reload_flag=$lt_cv_ld_reload_flag
5976 case $reload_flag in
5977 "" | " "*) ;;
5978 *) reload_flag=" $reload_flag" ;;
5979 esac
5980 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981 case $host_os in
5982 cygwin* | mingw* | pw32* | cegcc*)
5983 if test "$GCC" != yes; then
5984 reload_cmds=false
5985 fi
5986 ;;
5987 darwin*)
5988 if test "$GCC" = yes; then
5989 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5990 else
5991 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5992 fi
5993 ;;
5994 esac
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004 if test -n "$ac_tool_prefix"; then
6005 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6006 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_OBJDUMP+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if test -n "$OBJDUMP"; then
6013 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026 done
6027 done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 OBJDUMP=$ac_cv_prog_OBJDUMP
6033 if test -n "$OBJDUMP"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6035 $as_echo "$OBJDUMP" >&6; }
6036 else
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041
6042 fi
6043 if test -z "$ac_cv_prog_OBJDUMP"; then
6044 ac_ct_OBJDUMP=$OBJDUMP
6045 # Extract the first word of "objdump", so it can be a program name with args.
6046 set dummy objdump; ac_word=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if test -n "$ac_ct_OBJDUMP"; then
6053 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6073 if test -n "$ac_ct_OBJDUMP"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6075 $as_echo "$ac_ct_OBJDUMP" >&6; }
6076 else
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6079 fi
6080
6081 if test "x$ac_ct_OBJDUMP" = x; then
6082 OBJDUMP="false"
6083 else
6084 case $cross_compiling:$ac_tool_warned in
6085 yes:)
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6088 ac_tool_warned=yes ;;
6089 esac
6090 OBJDUMP=$ac_ct_OBJDUMP
6091 fi
6092 else
6093 OBJDUMP="$ac_cv_prog_OBJDUMP"
6094 fi
6095
6096 test -z "$OBJDUMP" && OBJDUMP=objdump
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6107 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6108 if ${lt_cv_deplibs_check_method+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 lt_cv_file_magic_cmd='$MAGIC_CMD'
6112 lt_cv_file_magic_test_file=
6113 lt_cv_deplibs_check_method='unknown'
6114 # Need to set the preceding variable on all platforms that support
6115 # interlibrary dependencies.
6116 # 'none' -- dependencies not supported.
6117 # `unknown' -- same as none, but documents that we really don't know.
6118 # 'pass_all' -- all dependencies passed with no checks.
6119 # 'test_compile' -- check by making test program.
6120 # 'file_magic [[regex]]' -- check by looking for files in library path
6121 # which responds to the $file_magic_cmd with a given extended regex.
6122 # If you have `file' or equivalent on your system and you're not sure
6123 # whether `pass_all' will *always* work, you probably want this one.
6124
6125 case $host_os in
6126 aix[4-9]*)
6127 lt_cv_deplibs_check_method=pass_all
6128 ;;
6129
6130 beos*)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133
6134 bsdi[45]*)
6135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6136 lt_cv_file_magic_cmd='/usr/bin/file -L'
6137 lt_cv_file_magic_test_file=/shlib/libc.so
6138 ;;
6139
6140 cygwin*)
6141 # func_win32_libid is a shell function defined in ltmain.sh
6142 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6143 lt_cv_file_magic_cmd='func_win32_libid'
6144 ;;
6145
6146 mingw* | pw32*)
6147 # Base MSYS/MinGW do not provide the 'file' command needed by
6148 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6149 # unless we find 'file', for example because we are cross-compiling.
6150 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6151 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6152 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6153 lt_cv_file_magic_cmd='func_win32_libid'
6154 else
6155 # Keep this pattern in sync with the one in func_win32_libid.
6156 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6157 lt_cv_file_magic_cmd='$OBJDUMP -f'
6158 fi
6159 ;;
6160
6161 cegcc*)
6162 # use the weaker test based on 'objdump'. See mingw*.
6163 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6164 lt_cv_file_magic_cmd='$OBJDUMP -f'
6165 ;;
6166
6167 darwin* | rhapsody*)
6168 lt_cv_deplibs_check_method=pass_all
6169 ;;
6170
6171 freebsd* | dragonfly*)
6172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6173 case $host_cpu in
6174 i*86 )
6175 # Not sure whether the presence of OpenBSD here was a mistake.
6176 # Let's accept both of them until this is cleared up.
6177 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6178 lt_cv_file_magic_cmd=/usr/bin/file
6179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6180 ;;
6181 esac
6182 else
6183 lt_cv_deplibs_check_method=pass_all
6184 fi
6185 ;;
6186
6187 gnu*)
6188 lt_cv_deplibs_check_method=pass_all
6189 ;;
6190
6191 haiku*)
6192 lt_cv_deplibs_check_method=pass_all
6193 ;;
6194
6195 hpux10.20* | hpux11*)
6196 lt_cv_file_magic_cmd=/usr/bin/file
6197 case $host_cpu in
6198 ia64*)
6199 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6200 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6201 ;;
6202 hppa*64*)
6203 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]'
6204 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6205 ;;
6206 *)
6207 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6208 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6209 ;;
6210 esac
6211 ;;
6212
6213 interix[3-9]*)
6214 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6216 ;;
6217
6218 irix5* | irix6* | nonstopux*)
6219 case $LD in
6220 *-32|*"-32 ") libmagic=32-bit;;
6221 *-n32|*"-n32 ") libmagic=N32;;
6222 *-64|*"-64 ") libmagic=64-bit;;
6223 *) libmagic=never-match;;
6224 esac
6225 lt_cv_deplibs_check_method=pass_all
6226 ;;
6227
6228 # This must be glibc/ELF.
6229 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232
6233 netbsd*)
6234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6236 else
6237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6238 fi
6239 ;;
6240
6241 newos6*)
6242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6243 lt_cv_file_magic_cmd=/usr/bin/file
6244 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6245 ;;
6246
6247 *nto* | *qnx*)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250
6251 openbsd*)
6252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6254 else
6255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6256 fi
6257 ;;
6258
6259 osf3* | osf4* | osf5*)
6260 lt_cv_deplibs_check_method=pass_all
6261 ;;
6262
6263 rdos*)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266
6267 solaris*)
6268 lt_cv_deplibs_check_method=pass_all
6269 ;;
6270
6271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6272 lt_cv_deplibs_check_method=pass_all
6273 ;;
6274
6275 sysv4 | sysv4.3*)
6276 case $host_vendor in
6277 motorola)
6278 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]'
6279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6280 ;;
6281 ncr)
6282 lt_cv_deplibs_check_method=pass_all
6283 ;;
6284 sequent)
6285 lt_cv_file_magic_cmd='/bin/file'
6286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6287 ;;
6288 sni)
6289 lt_cv_file_magic_cmd='/bin/file'
6290 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6291 lt_cv_file_magic_test_file=/lib/libc.so
6292 ;;
6293 siemens)
6294 lt_cv_deplibs_check_method=pass_all
6295 ;;
6296 pc)
6297 lt_cv_deplibs_check_method=pass_all
6298 ;;
6299 esac
6300 ;;
6301
6302 tpf*)
6303 lt_cv_deplibs_check_method=pass_all
6304 ;;
6305 esac
6306
6307 fi
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6309 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6310
6311 file_magic_glob=
6312 want_nocaseglob=no
6313 if test "$build" = "$host"; then
6314 case $host_os in
6315 mingw* | pw32*)
6316 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6317 want_nocaseglob=yes
6318 else
6319 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6320 fi
6321 ;;
6322 esac
6323 fi
6324
6325 file_magic_cmd=$lt_cv_file_magic_cmd
6326 deplibs_check_method=$lt_cv_deplibs_check_method
6327 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_DLLTOOL+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test -n "$DLLTOOL"; then
6359 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372 done
6373 done
6374 IFS=$as_save_IFS
6375
6376 fi
6377 fi
6378 DLLTOOL=$ac_cv_prog_DLLTOOL
6379 if test -n "$DLLTOOL"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6381 $as_echo "$DLLTOOL" >&6; }
6382 else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6385 fi
6386
6387
6388 fi
6389 if test -z "$ac_cv_prog_DLLTOOL"; then
6390 ac_ct_DLLTOOL=$DLLTOOL
6391 # Extract the first word of "dlltool", so it can be a program name with args.
6392 set dummy dlltool; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$ac_ct_DLLTOOL"; then
6399 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6419 if test -n "$ac_ct_DLLTOOL"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6421 $as_echo "$ac_ct_DLLTOOL" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426
6427 if test "x$ac_ct_DLLTOOL" = x; then
6428 DLLTOOL="false"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431 yes:)
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6435 esac
6436 DLLTOOL=$ac_ct_DLLTOOL
6437 fi
6438 else
6439 DLLTOOL="$ac_cv_prog_DLLTOOL"
6440 fi
6441
6442 test -z "$DLLTOOL" && DLLTOOL=dlltool
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6454 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6455 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 lt_cv_sharedlib_from_linklib_cmd='unknown'
6459
6460 case $host_os in
6461 cygwin* | mingw* | pw32* | cegcc*)
6462 # two different shell functions defined in ltmain.sh
6463 # decide which to use based on capabilities of $DLLTOOL
6464 case `$DLLTOOL --help 2>&1` in
6465 *--identify-strict*)
6466 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6467 ;;
6468 *)
6469 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6470 ;;
6471 esac
6472 ;;
6473 *)
6474 # fallback: assume linklib IS sharedlib
6475 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6476 ;;
6477 esac
6478
6479 fi
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6481 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6482 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6483 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6484
6485
6486
6487
6488
6489
6490
6491 if test -n "$ac_tool_prefix"; then
6492 for ac_prog in ar
6493 do
6494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_AR+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 if test -n "$AR"; then
6502 ac_cv_prog_AR="$AR" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 AR=$ac_cv_prog_AR
6522 if test -n "$AR"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6524 $as_echo "$AR" >&6; }
6525 else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530
6531 test -n "$AR" && break
6532 done
6533 fi
6534 if test -z "$AR"; then
6535 ac_ct_AR=$AR
6536 for ac_prog in ar
6537 do
6538 # Extract the first word of "$ac_prog", so it can be a program name with args.
6539 set dummy $ac_prog; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 if test -n "$ac_ct_AR"; then
6546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_ac_ct_AR="$ac_prog"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559 done
6560 done
6561 IFS=$as_save_IFS
6562
6563 fi
6564 fi
6565 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6566 if test -n "$ac_ct_AR"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6568 $as_echo "$ac_ct_AR" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6572 fi
6573
6574
6575 test -n "$ac_ct_AR" && break
6576 done
6577
6578 if test "x$ac_ct_AR" = x; then
6579 AR="false"
6580 else
6581 case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587 AR=$ac_ct_AR
6588 fi
6589 fi
6590
6591 : ${AR=ar}
6592 : ${AR_FLAGS=cru}
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6605 $as_echo_n "checking for archiver @FILE support... " >&6; }
6606 if ${lt_cv_ar_at_file+:} false; then :
6607 $as_echo_n "(cached) " >&6
6608 else
6609 lt_cv_ar_at_file=no
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612
6613 int
6614 main ()
6615 {
6616
6617 ;
6618 return 0;
6619 }
6620 _ACEOF
6621 if ac_fn_c_try_compile "$LINENO"; then :
6622 echo conftest.$ac_objext > conftest.lst
6623 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6625 (eval $lt_ar_try) 2>&5
6626 ac_status=$?
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }
6629 if test "$ac_status" -eq 0; then
6630 # Ensure the archiver fails upon bogus file names.
6631 rm -f conftest.$ac_objext libconftest.a
6632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6633 (eval $lt_ar_try) 2>&5
6634 ac_status=$?
6635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636 test $ac_status = 0; }
6637 if test "$ac_status" -ne 0; then
6638 lt_cv_ar_at_file=@
6639 fi
6640 fi
6641 rm -f conftest.* libconftest.a
6642
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645
6646 fi
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6648 $as_echo "$lt_cv_ar_at_file" >&6; }
6649
6650 if test "x$lt_cv_ar_at_file" = xno; then
6651 archiver_list_spec=
6652 else
6653 archiver_list_spec=$lt_cv_ar_at_file
6654 fi
6655
6656
6657
6658
6659
6660
6661
6662 if test -n "$ac_tool_prefix"; then
6663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6664 set dummy ${ac_tool_prefix}strip; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_STRIP+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 if test -n "$STRIP"; then
6671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 STRIP=$ac_cv_prog_STRIP
6691 if test -n "$STRIP"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6693 $as_echo "$STRIP" >&6; }
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698
6699
6700 fi
6701 if test -z "$ac_cv_prog_STRIP"; then
6702 ac_ct_STRIP=$STRIP
6703 # Extract the first word of "strip", so it can be a program name with args.
6704 set dummy strip; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 if test -n "$ac_ct_STRIP"; then
6711 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6720 ac_cv_prog_ac_ct_STRIP="strip"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6723 fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728 fi
6729 fi
6730 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6731 if test -n "$ac_ct_STRIP"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6733 $as_echo "$ac_ct_STRIP" >&6; }
6734 else
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6737 fi
6738
6739 if test "x$ac_ct_STRIP" = x; then
6740 STRIP=":"
6741 else
6742 case $cross_compiling:$ac_tool_warned in
6743 yes:)
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746 ac_tool_warned=yes ;;
6747 esac
6748 STRIP=$ac_ct_STRIP
6749 fi
6750 else
6751 STRIP="$ac_cv_prog_STRIP"
6752 fi
6753
6754 test -z "$STRIP" && STRIP=:
6755
6756
6757
6758
6759
6760
6761 if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_RANLIB+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$RANLIB"; then
6770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 RANLIB=$ac_cv_prog_RANLIB
6790 if test -n "$RANLIB"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6792 $as_echo "$RANLIB" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798
6799 fi
6800 if test -z "$ac_cv_prog_RANLIB"; then
6801 ac_ct_RANLIB=$RANLIB
6802 # Extract the first word of "ranlib", so it can be a program name with args.
6803 set dummy ranlib; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 if test -n "$ac_ct_RANLIB"; then
6810 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_RANLIB="ranlib"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823 done
6824 done
6825 IFS=$as_save_IFS
6826
6827 fi
6828 fi
6829 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6830 if test -n "$ac_ct_RANLIB"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6832 $as_echo "$ac_ct_RANLIB" >&6; }
6833 else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6836 fi
6837
6838 if test "x$ac_ct_RANLIB" = x; then
6839 RANLIB=":"
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847 RANLIB=$ac_ct_RANLIB
6848 fi
6849 else
6850 RANLIB="$ac_cv_prog_RANLIB"
6851 fi
6852
6853 test -z "$RANLIB" && RANLIB=:
6854
6855
6856
6857
6858
6859
6860 # Determine commands to create old-style static archives.
6861 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6862 old_postinstall_cmds='chmod 644 $oldlib'
6863 old_postuninstall_cmds=
6864
6865 if test -n "$RANLIB"; then
6866 case $host_os in
6867 openbsd*)
6868 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6869 ;;
6870 *)
6871 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6872 ;;
6873 esac
6874 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6875 fi
6876
6877 case $host_os in
6878 darwin*)
6879 lock_old_archive_extraction=yes ;;
6880 *)
6881 lock_old_archive_extraction=no ;;
6882 esac
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922 # If no C compiler was specified, use CC.
6923 LTCC=${LTCC-"$CC"}
6924
6925 # If no C compiler flags were specified, use CFLAGS.
6926 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6927
6928 # Allow CC to be a program name with arguments.
6929 compiler=$CC
6930
6931
6932 # Check for command to grab the raw symbol name followed by C symbol from nm.
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6934 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6935 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938
6939 # These are sane defaults that work on at least a few old systems.
6940 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6941
6942 # Character class describing NM global symbol codes.
6943 symcode='[BCDEGRST]'
6944
6945 # Regexp to match symbols that can be accessed directly from C.
6946 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6947
6948 # Define system-specific variables.
6949 case $host_os in
6950 aix*)
6951 symcode='[BCDT]'
6952 ;;
6953 cygwin* | mingw* | pw32* | cegcc*)
6954 symcode='[ABCDGISTW]'
6955 ;;
6956 hpux*)
6957 if test "$host_cpu" = ia64; then
6958 symcode='[ABCDEGRST]'
6959 fi
6960 ;;
6961 irix* | nonstopux*)
6962 symcode='[BCDEGRST]'
6963 ;;
6964 osf*)
6965 symcode='[BCDEGQRST]'
6966 ;;
6967 solaris*)
6968 symcode='[BDRT]'
6969 ;;
6970 sco3.2v5*)
6971 symcode='[DT]'
6972 ;;
6973 sysv4.2uw2*)
6974 symcode='[DT]'
6975 ;;
6976 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6977 symcode='[ABDT]'
6978 ;;
6979 sysv4)
6980 symcode='[DFNSTU]'
6981 ;;
6982 esac
6983
6984 # If we're using GNU nm, then use its standard symbol codes.
6985 case `$NM -V 2>&1` in
6986 *GNU* | *'with BFD'*)
6987 symcode='[ABCDGIRSTW]' ;;
6988 esac
6989
6990 # Transform an extracted symbol line into a proper C declaration.
6991 # Some systems (esp. on ia64) link data and code symbols differently,
6992 # so use this general approach.
6993 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6994
6995 # Transform an extracted symbol line into symbol name and symbol address
6996 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6997 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'"
6998
6999 # Handle CRLF in mingw tool chain
7000 opt_cr=
7001 case $build_os in
7002 mingw*)
7003 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7004 ;;
7005 esac
7006
7007 # Try without a prefix underscore, then with it.
7008 for ac_symprfx in "" "_"; do
7009
7010 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7011 symxfrm="\\1 $ac_symprfx\\2 \\2"
7012
7013 # Write the raw and C identifiers.
7014 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7015 # Fake it for dumpbin and say T for any non-static function
7016 # and D for any global variable.
7017 # Also find C++ and __fastcall symbols from MSVC++,
7018 # which start with @ or ?.
7019 lt_cv_sys_global_symbol_pipe="$AWK '"\
7020 " {last_section=section; section=\$ 3};"\
7021 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7022 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7023 " \$ 0!~/External *\|/{next};"\
7024 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7025 " {if(hide[section]) next};"\
7026 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7027 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7028 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7029 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7030 " ' prfx=^$ac_symprfx"
7031 else
7032 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7033 fi
7034 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7035
7036 # Check to see that the pipe works correctly.
7037 pipe_works=no
7038
7039 rm -f conftest*
7040 cat > conftest.$ac_ext <<_LT_EOF
7041 #ifdef __cplusplus
7042 extern "C" {
7043 #endif
7044 char nm_test_var;
7045 void nm_test_func(void);
7046 void nm_test_func(void){}
7047 #ifdef __cplusplus
7048 }
7049 #endif
7050 int main(){nm_test_var='a';nm_test_func();return(0);}
7051 _LT_EOF
7052
7053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7054 (eval $ac_compile) 2>&5
7055 ac_status=$?
7056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7057 test $ac_status = 0; }; then
7058 # Now try to grab the symbols.
7059 nlist=conftest.nm
7060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7061 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7062 ac_status=$?
7063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064 test $ac_status = 0; } && test -s "$nlist"; then
7065 # Try sorting and uniquifying the output.
7066 if sort "$nlist" | uniq > "$nlist"T; then
7067 mv -f "$nlist"T "$nlist"
7068 else
7069 rm -f "$nlist"T
7070 fi
7071
7072 # Make sure that we snagged all the symbols we need.
7073 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7074 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7075 cat <<_LT_EOF > conftest.$ac_ext
7076 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7077 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7078 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7079 relocations are performed -- see ld's documentation on pseudo-relocs. */
7080 # define LT_DLSYM_CONST
7081 #elif defined(__osf__)
7082 /* This system does not cope well with relocations in const data. */
7083 # define LT_DLSYM_CONST
7084 #else
7085 # define LT_DLSYM_CONST const
7086 #endif
7087
7088 #ifdef __cplusplus
7089 extern "C" {
7090 #endif
7091
7092 _LT_EOF
7093 # Now generate the symbol file.
7094 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7095
7096 cat <<_LT_EOF >> conftest.$ac_ext
7097
7098 /* The mapping between symbol names and symbols. */
7099 LT_DLSYM_CONST struct {
7100 const char *name;
7101 void *address;
7102 }
7103 lt__PROGRAM__LTX_preloaded_symbols[] =
7104 {
7105 { "@PROGRAM@", (void *) 0 },
7106 _LT_EOF
7107 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7108 cat <<\_LT_EOF >> conftest.$ac_ext
7109 {0, (void *) 0}
7110 };
7111
7112 /* This works around a problem in FreeBSD linker */
7113 #ifdef FREEBSD_WORKAROUND
7114 static const void *lt_preloaded_setup() {
7115 return lt__PROGRAM__LTX_preloaded_symbols;
7116 }
7117 #endif
7118
7119 #ifdef __cplusplus
7120 }
7121 #endif
7122 _LT_EOF
7123 # Now try linking the two files.
7124 mv conftest.$ac_objext conftstm.$ac_objext
7125 lt_globsym_save_LIBS=$LIBS
7126 lt_globsym_save_CFLAGS=$CFLAGS
7127 LIBS="conftstm.$ac_objext"
7128 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7130 (eval $ac_link) 2>&5
7131 ac_status=$?
7132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7133 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7134 pipe_works=yes
7135 fi
7136 LIBS=$lt_globsym_save_LIBS
7137 CFLAGS=$lt_globsym_save_CFLAGS
7138 else
7139 echo "cannot find nm_test_func in $nlist" >&5
7140 fi
7141 else
7142 echo "cannot find nm_test_var in $nlist" >&5
7143 fi
7144 else
7145 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7146 fi
7147 else
7148 echo "$progname: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7150 fi
7151 rm -rf conftest* conftst*
7152
7153 # Do not use the global_symbol_pipe unless it works.
7154 if test "$pipe_works" = yes; then
7155 break
7156 else
7157 lt_cv_sys_global_symbol_pipe=
7158 fi
7159 done
7160
7161 fi
7162
7163 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7164 lt_cv_sys_global_symbol_to_cdecl=
7165 fi
7166 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7168 $as_echo "failed" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7171 $as_echo "ok" >&6; }
7172 fi
7173
7174 # Response file support.
7175 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7176 nm_file_list_spec='@'
7177 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7178 nm_file_list_spec='@'
7179 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7208 $as_echo_n "checking for sysroot... " >&6; }
7209
7210 # Check whether --with-sysroot was given.
7211 if test "${with_sysroot+set}" = set; then :
7212 withval=$with_sysroot;
7213 else
7214 with_sysroot=no
7215 fi
7216
7217
7218 lt_sysroot=
7219 case ${with_sysroot} in #(
7220 yes)
7221 if test "$GCC" = yes; then
7222 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7223 fi
7224 ;; #(
7225 /*)
7226 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7227 ;; #(
7228 no|'')
7229 ;; #(
7230 *)
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7232 $as_echo "${with_sysroot}" >&6; }
7233 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7234 ;;
7235 esac
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7238 $as_echo "${lt_sysroot:-no}" >&6; }
7239
7240
7241
7242
7243
7244 # Check whether --enable-libtool-lock was given.
7245 if test "${enable_libtool_lock+set}" = set; then :
7246 enableval=$enable_libtool_lock;
7247 fi
7248
7249 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7250
7251 # Some flags need to be propagated to the compiler or linker for good
7252 # libtool support.
7253 case $host in
7254 ia64-*-hpux*)
7255 # Find out which ABI we are using.
7256 echo 'int i;' > conftest.$ac_ext
7257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7258 (eval $ac_compile) 2>&5
7259 ac_status=$?
7260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261 test $ac_status = 0; }; then
7262 case `/usr/bin/file conftest.$ac_objext` in
7263 *ELF-32*)
7264 HPUX_IA64_MODE="32"
7265 ;;
7266 *ELF-64*)
7267 HPUX_IA64_MODE="64"
7268 ;;
7269 esac
7270 fi
7271 rm -rf conftest*
7272 ;;
7273 *-*-irix6*)
7274 # Find out which ABI we are using.
7275 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7277 (eval $ac_compile) 2>&5
7278 ac_status=$?
7279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280 test $ac_status = 0; }; then
7281 if test "$lt_cv_prog_gnu_ld" = yes; then
7282 case `/usr/bin/file conftest.$ac_objext` in
7283 *32-bit*)
7284 LD="${LD-ld} -melf32bsmip"
7285 ;;
7286 *N32*)
7287 LD="${LD-ld} -melf32bmipn32"
7288 ;;
7289 *64-bit*)
7290 LD="${LD-ld} -melf64bmip"
7291 ;;
7292 esac
7293 else
7294 case `/usr/bin/file conftest.$ac_objext` in
7295 *32-bit*)
7296 LD="${LD-ld} -32"
7297 ;;
7298 *N32*)
7299 LD="${LD-ld} -n32"
7300 ;;
7301 *64-bit*)
7302 LD="${LD-ld} -64"
7303 ;;
7304 esac
7305 fi
7306 fi
7307 rm -rf conftest*
7308 ;;
7309
7310 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7311 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7312 # Find out which ABI we are using.
7313 echo 'int i;' > conftest.$ac_ext
7314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7315 (eval $ac_compile) 2>&5
7316 ac_status=$?
7317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318 test $ac_status = 0; }; then
7319 case `/usr/bin/file conftest.o` in
7320 *32-bit*)
7321 case $host in
7322 x86_64-*kfreebsd*-gnu)
7323 LD="${LD-ld} -m elf_i386_fbsd"
7324 ;;
7325 x86_64-*linux*)
7326 LD="${LD-ld} -m elf_i386"
7327 ;;
7328 ppc64-*linux*|powerpc64-*linux*)
7329 LD="${LD-ld} -m elf32ppclinux"
7330 ;;
7331 s390x-*linux*)
7332 LD="${LD-ld} -m elf_s390"
7333 ;;
7334 sparc64-*linux*)
7335 LD="${LD-ld} -m elf32_sparc"
7336 ;;
7337 esac
7338 ;;
7339 *64-bit*)
7340 case $host in
7341 x86_64-*kfreebsd*-gnu)
7342 LD="${LD-ld} -m elf_x86_64_fbsd"
7343 ;;
7344 x86_64-*linux*)
7345 LD="${LD-ld} -m elf_x86_64"
7346 ;;
7347 ppc*-*linux*|powerpc*-*linux*)
7348 LD="${LD-ld} -m elf64ppc"
7349 ;;
7350 s390*-*linux*|s390*-*tpf*)
7351 LD="${LD-ld} -m elf64_s390"
7352 ;;
7353 sparc*-*linux*)
7354 LD="${LD-ld} -m elf64_sparc"
7355 ;;
7356 esac
7357 ;;
7358 esac
7359 fi
7360 rm -rf conftest*
7361 ;;
7362
7363 *-*-sco3.2v5*)
7364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7365 SAVE_CFLAGS="$CFLAGS"
7366 CFLAGS="$CFLAGS -belf"
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7368 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7369 if ${lt_cv_cc_needs_belf+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 ac_ext=c
7373 ac_cpp='$CPP $CPPFLAGS'
7374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380
7381 int
7382 main ()
7383 {
7384
7385 ;
7386 return 0;
7387 }
7388 _ACEOF
7389 if ac_fn_c_try_link "$LINENO"; then :
7390 lt_cv_cc_needs_belf=yes
7391 else
7392 lt_cv_cc_needs_belf=no
7393 fi
7394 rm -f core conftest.err conftest.$ac_objext \
7395 conftest$ac_exeext conftest.$ac_ext
7396 ac_ext=c
7397 ac_cpp='$CPP $CPPFLAGS'
7398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7401
7402 fi
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7404 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7405 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7406 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7407 CFLAGS="$SAVE_CFLAGS"
7408 fi
7409 ;;
7410 *-*solaris*)
7411 # Find out which ABI we are using.
7412 echo 'int i;' > conftest.$ac_ext
7413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7414 (eval $ac_compile) 2>&5
7415 ac_status=$?
7416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7417 test $ac_status = 0; }; then
7418 case `/usr/bin/file conftest.o` in
7419 *64-bit*)
7420 case $lt_cv_prog_gnu_ld in
7421 yes*)
7422 case $host in
7423 i?86-*-solaris*)
7424 LD="${LD-ld} -m elf_x86_64"
7425 ;;
7426 sparc*-*-solaris*)
7427 LD="${LD-ld} -m elf64_sparc"
7428 ;;
7429 esac
7430 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7431 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7432 LD="${LD-ld}_sol2"
7433 fi
7434 ;;
7435 *)
7436 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7437 LD="${LD-ld} -64"
7438 fi
7439 ;;
7440 esac
7441 ;;
7442 esac
7443 fi
7444 rm -rf conftest*
7445 ;;
7446 esac
7447
7448 need_locks="$enable_libtool_lock"
7449
7450 if test -n "$ac_tool_prefix"; then
7451 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7452 set dummy ${ac_tool_prefix}mt; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 if test -n "$MANIFEST_TOOL"; then
7459 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7475
7476 fi
7477 fi
7478 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7479 if test -n "$MANIFEST_TOOL"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7481 $as_echo "$MANIFEST_TOOL" >&6; }
7482 else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 fi
7486
7487
7488 fi
7489 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7490 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7491 # Extract the first word of "mt", so it can be a program name with args.
7492 set dummy mt; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 if test -n "$ac_ct_MANIFEST_TOOL"; then
7499 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7511 fi
7512 done
7513 done
7514 IFS=$as_save_IFS
7515
7516 fi
7517 fi
7518 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7519 if test -n "$ac_ct_MANIFEST_TOOL"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7521 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7525 fi
7526
7527 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7528 MANIFEST_TOOL=":"
7529 else
7530 case $cross_compiling:$ac_tool_warned in
7531 yes:)
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7534 ac_tool_warned=yes ;;
7535 esac
7536 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7537 fi
7538 else
7539 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7540 fi
7541
7542 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7544 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7545 if ${lt_cv_path_mainfest_tool+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 lt_cv_path_mainfest_tool=no
7549 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7550 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7551 cat conftest.err >&5
7552 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7553 lt_cv_path_mainfest_tool=yes
7554 fi
7555 rm -f conftest*
7556 fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7558 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7559 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7560 MANIFEST_TOOL=:
7561 fi
7562
7563
7564
7565
7566
7567
7568 case $host_os in
7569 rhapsody* | darwin*)
7570 if test -n "$ac_tool_prefix"; then
7571 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7572 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 if test -n "$DSYMUTIL"; then
7579 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7591 fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7599 if test -n "$DSYMUTIL"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7601 $as_echo "$DSYMUTIL" >&6; }
7602 else
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 fi
7606
7607
7608 fi
7609 if test -z "$ac_cv_prog_DSYMUTIL"; then
7610 ac_ct_DSYMUTIL=$DSYMUTIL
7611 # Extract the first word of "dsymutil", so it can be a program name with args.
7612 set dummy dsymutil; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 if test -n "$ac_ct_DSYMUTIL"; then
7619 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7620 else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636 fi
7637 fi
7638 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7639 if test -n "$ac_ct_DSYMUTIL"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7641 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7642 else
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7645 fi
7646
7647 if test "x$ac_ct_DSYMUTIL" = x; then
7648 DSYMUTIL=":"
7649 else
7650 case $cross_compiling:$ac_tool_warned in
7651 yes:)
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654 ac_tool_warned=yes ;;
7655 esac
7656 DSYMUTIL=$ac_ct_DSYMUTIL
7657 fi
7658 else
7659 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7660 fi
7661
7662 if test -n "$ac_tool_prefix"; then
7663 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7664 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if ${ac_cv_prog_NMEDIT+:} false; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 if test -n "$NMEDIT"; then
7671 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684 done
7685 done
7686 IFS=$as_save_IFS
7687
7688 fi
7689 fi
7690 NMEDIT=$ac_cv_prog_NMEDIT
7691 if test -n "$NMEDIT"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7693 $as_echo "$NMEDIT" >&6; }
7694 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 fi
7698
7699
7700 fi
7701 if test -z "$ac_cv_prog_NMEDIT"; then
7702 ac_ct_NMEDIT=$NMEDIT
7703 # Extract the first word of "nmedit", so it can be a program name with args.
7704 set dummy nmedit; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 if test -n "$ac_ct_NMEDIT"; then
7711 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7723 fi
7724 done
7725 done
7726 IFS=$as_save_IFS
7727
7728 fi
7729 fi
7730 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7731 if test -n "$ac_ct_NMEDIT"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7733 $as_echo "$ac_ct_NMEDIT" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7737 fi
7738
7739 if test "x$ac_ct_NMEDIT" = x; then
7740 NMEDIT=":"
7741 else
7742 case $cross_compiling:$ac_tool_warned in
7743 yes:)
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7746 ac_tool_warned=yes ;;
7747 esac
7748 NMEDIT=$ac_ct_NMEDIT
7749 fi
7750 else
7751 NMEDIT="$ac_cv_prog_NMEDIT"
7752 fi
7753
7754 if test -n "$ac_tool_prefix"; then
7755 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7756 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if ${ac_cv_prog_LIPO+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 if test -n "$LIPO"; then
7763 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776 done
7777 done
7778 IFS=$as_save_IFS
7779
7780 fi
7781 fi
7782 LIPO=$ac_cv_prog_LIPO
7783 if test -n "$LIPO"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7785 $as_echo "$LIPO" >&6; }
7786 else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790
7791
7792 fi
7793 if test -z "$ac_cv_prog_LIPO"; then
7794 ac_ct_LIPO=$LIPO
7795 # Extract the first word of "lipo", so it can be a program name with args.
7796 set dummy lipo; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 if test -n "$ac_ct_LIPO"; then
7803 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812 ac_cv_prog_ac_ct_LIPO="lipo"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816 done
7817 done
7818 IFS=$as_save_IFS
7819
7820 fi
7821 fi
7822 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7823 if test -n "$ac_ct_LIPO"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7825 $as_echo "$ac_ct_LIPO" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7829 fi
7830
7831 if test "x$ac_ct_LIPO" = x; then
7832 LIPO=":"
7833 else
7834 case $cross_compiling:$ac_tool_warned in
7835 yes:)
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7838 ac_tool_warned=yes ;;
7839 esac
7840 LIPO=$ac_ct_LIPO
7841 fi
7842 else
7843 LIPO="$ac_cv_prog_LIPO"
7844 fi
7845
7846 if test -n "$ac_tool_prefix"; then
7847 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7848 set dummy ${ac_tool_prefix}otool; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if ${ac_cv_prog_OTOOL+:} false; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 if test -n "$OTOOL"; then
7855 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7859 do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7867 fi
7868 done
7869 done
7870 IFS=$as_save_IFS
7871
7872 fi
7873 fi
7874 OTOOL=$ac_cv_prog_OTOOL
7875 if test -n "$OTOOL"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7877 $as_echo "$OTOOL" >&6; }
7878 else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 fi
7882
7883
7884 fi
7885 if test -z "$ac_cv_prog_OTOOL"; then
7886 ac_ct_OTOOL=$OTOOL
7887 # Extract the first word of "otool", so it can be a program name with args.
7888 set dummy otool; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 if test -n "$ac_ct_OTOOL"; then
7895 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7899 do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904 ac_cv_prog_ac_ct_OTOOL="otool"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908 done
7909 done
7910 IFS=$as_save_IFS
7911
7912 fi
7913 fi
7914 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7915 if test -n "$ac_ct_OTOOL"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7917 $as_echo "$ac_ct_OTOOL" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922
7923 if test "x$ac_ct_OTOOL" = x; then
7924 OTOOL=":"
7925 else
7926 case $cross_compiling:$ac_tool_warned in
7927 yes:)
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930 ac_tool_warned=yes ;;
7931 esac
7932 OTOOL=$ac_ct_OTOOL
7933 fi
7934 else
7935 OTOOL="$ac_cv_prog_OTOOL"
7936 fi
7937
7938 if test -n "$ac_tool_prefix"; then
7939 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7940 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if ${ac_cv_prog_OTOOL64+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 if test -n "$OTOOL64"; then
7947 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7951 do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960 done
7961 done
7962 IFS=$as_save_IFS
7963
7964 fi
7965 fi
7966 OTOOL64=$ac_cv_prog_OTOOL64
7967 if test -n "$OTOOL64"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7969 $as_echo "$OTOOL64" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7973 fi
7974
7975
7976 fi
7977 if test -z "$ac_cv_prog_OTOOL64"; then
7978 ac_ct_OTOOL64=$OTOOL64
7979 # Extract the first word of "otool64", so it can be a program name with args.
7980 set dummy otool64; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 if test -n "$ac_ct_OTOOL64"; then
7987 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7991 do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_ac_ct_OTOOL64="otool64"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8007 if test -n "$ac_ct_OTOOL64"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8009 $as_echo "$ac_ct_OTOOL64" >&6; }
8010 else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013 fi
8014
8015 if test "x$ac_ct_OTOOL64" = x; then
8016 OTOOL64=":"
8017 else
8018 case $cross_compiling:$ac_tool_warned in
8019 yes:)
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022 ac_tool_warned=yes ;;
8023 esac
8024 OTOOL64=$ac_ct_OTOOL64
8025 fi
8026 else
8027 OTOOL64="$ac_cv_prog_OTOOL64"
8028 fi
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8057 $as_echo_n "checking for -single_module linker flag... " >&6; }
8058 if ${lt_cv_apple_cc_single_mod+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 lt_cv_apple_cc_single_mod=no
8062 if test -z "${LT_MULTI_MODULE}"; then
8063 # By default we will add the -single_module flag. You can override
8064 # by either setting the environment variable LT_MULTI_MODULE
8065 # non-empty at configure time, or by adding -multi_module to the
8066 # link flags.
8067 rm -rf libconftest.dylib*
8068 echo "int foo(void){return 1;}" > conftest.c
8069 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8070 -dynamiclib -Wl,-single_module conftest.c" >&5
8071 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8072 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8073 _lt_result=$?
8074 # If there is a non-empty error log, and "single_module"
8075 # appears in it, assume the flag caused a linker warning
8076 if test -s conftest.err && $GREP single_module conftest.err; then
8077 cat conftest.err >&5
8078 # Otherwise, if the output was created with a 0 exit code from
8079 # the compiler, it worked.
8080 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8081 lt_cv_apple_cc_single_mod=yes
8082 else
8083 cat conftest.err >&5
8084 fi
8085 rm -rf libconftest.dylib*
8086 rm -f conftest.*
8087 fi
8088 fi
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8090 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8091
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8093 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8094 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 lt_cv_ld_exported_symbols_list=no
8098 save_LDFLAGS=$LDFLAGS
8099 echo "_main" > conftest.sym
8100 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103
8104 int
8105 main ()
8106 {
8107
8108 ;
8109 return 0;
8110 }
8111 _ACEOF
8112 if ac_fn_c_try_link "$LINENO"; then :
8113 lt_cv_ld_exported_symbols_list=yes
8114 else
8115 lt_cv_ld_exported_symbols_list=no
8116 fi
8117 rm -f core conftest.err conftest.$ac_objext \
8118 conftest$ac_exeext conftest.$ac_ext
8119 LDFLAGS="$save_LDFLAGS"
8120
8121 fi
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8123 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8124
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8126 $as_echo_n "checking for -force_load linker flag... " >&6; }
8127 if ${lt_cv_ld_force_load+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 lt_cv_ld_force_load=no
8131 cat > conftest.c << _LT_EOF
8132 int forced_loaded() { return 2;}
8133 _LT_EOF
8134 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8135 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8136 echo "$AR cru libconftest.a conftest.o" >&5
8137 $AR cru libconftest.a conftest.o 2>&5
8138 echo "$RANLIB libconftest.a" >&5
8139 $RANLIB libconftest.a 2>&5
8140 cat > conftest.c << _LT_EOF
8141 int main() { return 0;}
8142 _LT_EOF
8143 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8144 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8145 _lt_result=$?
8146 if test -s conftest.err && $GREP force_load conftest.err; then
8147 cat conftest.err >&5
8148 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8149 lt_cv_ld_force_load=yes
8150 else
8151 cat conftest.err >&5
8152 fi
8153 rm -f conftest.err libconftest.a conftest conftest.c
8154 rm -rf conftest.dSYM
8155
8156 fi
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8158 $as_echo "$lt_cv_ld_force_load" >&6; }
8159 case $host_os in
8160 rhapsody* | darwin1.[012])
8161 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8162 darwin1.*)
8163 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8164 darwin*) # darwin 5.x on
8165 # if running on 10.5 or later, the deployment target defaults
8166 # to the OS version, if on x86, and 10.4, the deployment
8167 # target defaults to 10.4. Don't you love it?
8168 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8169 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8170 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8171 10.[012]*)
8172 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8173 10.*)
8174 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8175 esac
8176 ;;
8177 esac
8178 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8179 _lt_dar_single_mod='$single_module'
8180 fi
8181 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8182 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8183 else
8184 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8185 fi
8186 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8187 _lt_dsymutil='~$DSYMUTIL $lib || :'
8188 else
8189 _lt_dsymutil=
8190 fi
8191 ;;
8192 esac
8193
8194 for ac_header in dlfcn.h
8195 do :
8196 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8197 "
8198 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8199 cat >>confdefs.h <<_ACEOF
8200 #define HAVE_DLFCN_H 1
8201 _ACEOF
8202
8203 fi
8204
8205 done
8206
8207
8208
8209
8210
8211 # Set options
8212
8213
8214
8215 enable_dlopen=no
8216
8217
8218 enable_win32_dll=no
8219
8220
8221 # Check whether --enable-shared was given.
8222 if test "${enable_shared+set}" = set; then :
8223 enableval=$enable_shared; p=${PACKAGE-default}
8224 case $enableval in
8225 yes) enable_shared=yes ;;
8226 no) enable_shared=no ;;
8227 *)
8228 enable_shared=no
8229 # Look at the argument we got. We use all the common list separators.
8230 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8231 for pkg in $enableval; do
8232 IFS="$lt_save_ifs"
8233 if test "X$pkg" = "X$p"; then
8234 enable_shared=yes
8235 fi
8236 done
8237 IFS="$lt_save_ifs"
8238 ;;
8239 esac
8240 else
8241 enable_shared=yes
8242 fi
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252 # Check whether --enable-static was given.
8253 if test "${enable_static+set}" = set; then :
8254 enableval=$enable_static; p=${PACKAGE-default}
8255 case $enableval in
8256 yes) enable_static=yes ;;
8257 no) enable_static=no ;;
8258 *)
8259 enable_static=no
8260 # Look at the argument we got. We use all the common list separators.
8261 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8262 for pkg in $enableval; do
8263 IFS="$lt_save_ifs"
8264 if test "X$pkg" = "X$p"; then
8265 enable_static=yes
8266 fi
8267 done
8268 IFS="$lt_save_ifs"
8269 ;;
8270 esac
8271 else
8272 enable_static=yes
8273 fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284 # Check whether --with-pic was given.
8285 if test "${with_pic+set}" = set; then :
8286 withval=$with_pic; lt_p=${PACKAGE-default}
8287 case $withval in
8288 yes|no) pic_mode=$withval ;;
8289 *)
8290 pic_mode=default
8291 # Look at the argument we got. We use all the common list separators.
8292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8293 for lt_pkg in $withval; do
8294 IFS="$lt_save_ifs"
8295 if test "X$lt_pkg" = "X$lt_p"; then
8296 pic_mode=yes
8297 fi
8298 done
8299 IFS="$lt_save_ifs"
8300 ;;
8301 esac
8302 else
8303 pic_mode=default
8304 fi
8305
8306
8307 test -z "$pic_mode" && pic_mode=default
8308
8309
8310
8311
8312
8313
8314
8315 # Check whether --enable-fast-install was given.
8316 if test "${enable_fast_install+set}" = set; then :
8317 enableval=$enable_fast_install; p=${PACKAGE-default}
8318 case $enableval in
8319 yes) enable_fast_install=yes ;;
8320 no) enable_fast_install=no ;;
8321 *)
8322 enable_fast_install=no
8323 # Look at the argument we got. We use all the common list separators.
8324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8325 for pkg in $enableval; do
8326 IFS="$lt_save_ifs"
8327 if test "X$pkg" = "X$p"; then
8328 enable_fast_install=yes
8329 fi
8330 done
8331 IFS="$lt_save_ifs"
8332 ;;
8333 esac
8334 else
8335 enable_fast_install=yes
8336 fi
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348 # This can be used to rebuild libtool when needed
8349 LIBTOOL_DEPS="$ltmain"
8350
8351 # Always use our own libtool.
8352 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383 test -z "$LN_S" && LN_S="ln -s"
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398 if test -n "${ZSH_VERSION+set}" ; then
8399 setopt NO_GLOB_SUBST
8400 fi
8401
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8403 $as_echo_n "checking for objdir... " >&6; }
8404 if ${lt_cv_objdir+:} false; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 rm -f .libs 2>/dev/null
8408 mkdir .libs 2>/dev/null
8409 if test -d .libs; then
8410 lt_cv_objdir=.libs
8411 else
8412 # MS-DOS does not allow filenames that begin with a dot.
8413 lt_cv_objdir=_libs
8414 fi
8415 rmdir .libs 2>/dev/null
8416 fi
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8418 $as_echo "$lt_cv_objdir" >&6; }
8419 objdir=$lt_cv_objdir
8420
8421
8422
8423
8424
8425 cat >>confdefs.h <<_ACEOF
8426 #define LT_OBJDIR "$lt_cv_objdir/"
8427 _ACEOF
8428
8429
8430
8431
8432 case $host_os in
8433 aix3*)
8434 # AIX sometimes has problems with the GCC collect2 program. For some
8435 # reason, if we set the COLLECT_NAMES environment variable, the problems
8436 # vanish in a puff of smoke.
8437 if test "X${COLLECT_NAMES+set}" != Xset; then
8438 COLLECT_NAMES=
8439 export COLLECT_NAMES
8440 fi
8441 ;;
8442 esac
8443
8444 # Global variables:
8445 ofile=libtool
8446 can_build_shared=yes
8447
8448 # All known linkers require a `.a' archive for static linking (except MSVC,
8449 # which needs '.lib').
8450 libext=a
8451
8452 with_gnu_ld="$lt_cv_prog_gnu_ld"
8453
8454 old_CC="$CC"
8455 old_CFLAGS="$CFLAGS"
8456
8457 # Set sane defaults for various variables
8458 test -z "$CC" && CC=cc
8459 test -z "$LTCC" && LTCC=$CC
8460 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8461 test -z "$LD" && LD=ld
8462 test -z "$ac_objext" && ac_objext=o
8463
8464 for cc_temp in $compiler""; do
8465 case $cc_temp in
8466 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8467 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8468 \-*) ;;
8469 *) break;;
8470 esac
8471 done
8472 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8473
8474
8475 # Only perform the check for file, if the check method requires it
8476 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8477 case $deplibs_check_method in
8478 file_magic*)
8479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8481 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8482 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 case $MAGIC_CMD in
8486 [\\/*] | ?:[\\/]*)
8487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8488 ;;
8489 *)
8490 lt_save_MAGIC_CMD="$MAGIC_CMD"
8491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8493 for ac_dir in $ac_dummy; do
8494 IFS="$lt_save_ifs"
8495 test -z "$ac_dir" && ac_dir=.
8496 if test -f $ac_dir/${ac_tool_prefix}file; then
8497 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8498 if test -n "$file_magic_test_file"; then
8499 case $deplibs_check_method in
8500 "file_magic "*)
8501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8504 $EGREP "$file_magic_regex" > /dev/null; then
8505 :
8506 else
8507 cat <<_LT_EOF 1>&2
8508
8509 *** Warning: the command libtool uses to detect shared libraries,
8510 *** $file_magic_cmd, produces output that libtool cannot recognize.
8511 *** The result is that libtool may fail to recognize shared libraries
8512 *** as such. This will affect the creation of libtool libraries that
8513 *** depend on shared libraries, but programs linked with such libtool
8514 *** libraries will work regardless of this problem. Nevertheless, you
8515 *** may want to report the problem to your system manager and/or to
8516 *** bug-libtool@gnu.org
8517
8518 _LT_EOF
8519 fi ;;
8520 esac
8521 fi
8522 break
8523 fi
8524 done
8525 IFS="$lt_save_ifs"
8526 MAGIC_CMD="$lt_save_MAGIC_CMD"
8527 ;;
8528 esac
8529 fi
8530
8531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532 if test -n "$MAGIC_CMD"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8534 $as_echo "$MAGIC_CMD" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538 fi
8539
8540
8541
8542
8543
8544 if test -z "$lt_cv_path_MAGIC_CMD"; then
8545 if test -n "$ac_tool_prefix"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8547 $as_echo_n "checking for file... " >&6; }
8548 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 case $MAGIC_CMD in
8552 [\\/*] | ?:[\\/]*)
8553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8554 ;;
8555 *)
8556 lt_save_MAGIC_CMD="$MAGIC_CMD"
8557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8559 for ac_dir in $ac_dummy; do
8560 IFS="$lt_save_ifs"
8561 test -z "$ac_dir" && ac_dir=.
8562 if test -f $ac_dir/file; then
8563 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8564 if test -n "$file_magic_test_file"; then
8565 case $deplibs_check_method in
8566 "file_magic "*)
8567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8570 $EGREP "$file_magic_regex" > /dev/null; then
8571 :
8572 else
8573 cat <<_LT_EOF 1>&2
8574
8575 *** Warning: the command libtool uses to detect shared libraries,
8576 *** $file_magic_cmd, produces output that libtool cannot recognize.
8577 *** The result is that libtool may fail to recognize shared libraries
8578 *** as such. This will affect the creation of libtool libraries that
8579 *** depend on shared libraries, but programs linked with such libtool
8580 *** libraries will work regardless of this problem. Nevertheless, you
8581 *** may want to report the problem to your system manager and/or to
8582 *** bug-libtool@gnu.org
8583
8584 _LT_EOF
8585 fi ;;
8586 esac
8587 fi
8588 break
8589 fi
8590 done
8591 IFS="$lt_save_ifs"
8592 MAGIC_CMD="$lt_save_MAGIC_CMD"
8593 ;;
8594 esac
8595 fi
8596
8597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8598 if test -n "$MAGIC_CMD"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8600 $as_echo "$MAGIC_CMD" >&6; }
8601 else
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8604 fi
8605
8606
8607 else
8608 MAGIC_CMD=:
8609 fi
8610 fi
8611
8612 fi
8613 ;;
8614 esac
8615
8616 # Use C for the default configuration in the libtool script
8617
8618 lt_save_CC="$CC"
8619 ac_ext=c
8620 ac_cpp='$CPP $CPPFLAGS'
8621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8624
8625
8626 # Source file extension for C test sources.
8627 ac_ext=c
8628
8629 # Object file extension for compiled C test sources.
8630 objext=o
8631 objext=$objext
8632
8633 # Code to be used in simple compile tests
8634 lt_simple_compile_test_code="int some_variable = 0;"
8635
8636 # Code to be used in simple link tests
8637 lt_simple_link_test_code='int main(){return(0);}'
8638
8639
8640
8641
8642
8643
8644
8645 # If no C compiler was specified, use CC.
8646 LTCC=${LTCC-"$CC"}
8647
8648 # If no C compiler flags were specified, use CFLAGS.
8649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8650
8651 # Allow CC to be a program name with arguments.
8652 compiler=$CC
8653
8654 # Save the default compiler, since it gets overwritten when the other
8655 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8656 compiler_DEFAULT=$CC
8657
8658 # save warnings/boilerplate of simple test code
8659 ac_outfile=conftest.$ac_objext
8660 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8662 _lt_compiler_boilerplate=`cat conftest.err`
8663 $RM conftest*
8664
8665 ac_outfile=conftest.$ac_objext
8666 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8668 _lt_linker_boilerplate=`cat conftest.err`
8669 $RM -r conftest*
8670
8671
8672 if test -n "$compiler"; then
8673
8674 lt_prog_compiler_no_builtin_flag=
8675
8676 if test "$GCC" = yes; then
8677 case $cc_basename in
8678 nvcc*)
8679 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8680 *)
8681 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8682 esac
8683
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8685 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8686 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 lt_cv_prog_compiler_rtti_exceptions=no
8690 ac_outfile=conftest.$ac_objext
8691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8692 lt_compiler_flag="-fno-rtti -fno-exceptions"
8693 # Insert the option either (1) after the last *FLAGS variable, or
8694 # (2) before a word containing "conftest.", or (3) at the end.
8695 # Note that $ac_compile itself does not contain backslashes and begins
8696 # with a dollar sign (not a hyphen), so the echo should work correctly.
8697 # The option is referenced via a variable to avoid confusing sed.
8698 lt_compile=`echo "$ac_compile" | $SED \
8699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8701 -e 's:$: $lt_compiler_flag:'`
8702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8703 (eval "$lt_compile" 2>conftest.err)
8704 ac_status=$?
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 if (exit $ac_status) && test -s "$ac_outfile"; then
8708 # The compiler can only warn and ignore the option if not recognized
8709 # So say no if there are warnings other than the usual output.
8710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8713 lt_cv_prog_compiler_rtti_exceptions=yes
8714 fi
8715 fi
8716 $RM conftest*
8717
8718 fi
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8720 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8721
8722 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8724 else
8725 :
8726 fi
8727
8728 fi
8729
8730
8731
8732
8733
8734
8735 lt_prog_compiler_wl=
8736 lt_prog_compiler_pic=
8737 lt_prog_compiler_static=
8738
8739
8740 if test "$GCC" = yes; then
8741 lt_prog_compiler_wl='-Wl,'
8742 lt_prog_compiler_static='-static'
8743
8744 case $host_os in
8745 aix*)
8746 # All AIX code is PIC.
8747 if test "$host_cpu" = ia64; then
8748 # AIX 5 now supports IA64 processor
8749 lt_prog_compiler_static='-Bstatic'
8750 fi
8751 ;;
8752
8753 amigaos*)
8754 case $host_cpu in
8755 powerpc)
8756 # see comment about AmigaOS4 .so support
8757 lt_prog_compiler_pic='-fPIC'
8758 ;;
8759 m68k)
8760 # FIXME: we need at least 68020 code to build shared libraries, but
8761 # adding the `-m68020' flag to GCC prevents building anything better,
8762 # like `-m68040'.
8763 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8764 ;;
8765 esac
8766 ;;
8767
8768 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8769 # PIC is the default for these OSes.
8770 ;;
8771
8772 mingw* | cygwin* | pw32* | os2* | cegcc*)
8773 # This hack is so that the source file can tell whether it is being
8774 # built for inclusion in a dll (and should export symbols for example).
8775 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8776 # (--disable-auto-import) libraries
8777 lt_prog_compiler_pic='-DDLL_EXPORT'
8778 ;;
8779
8780 darwin* | rhapsody*)
8781 # PIC is the default on this platform
8782 # Common symbols not allowed in MH_DYLIB files
8783 lt_prog_compiler_pic='-fno-common'
8784 ;;
8785
8786 haiku*)
8787 # PIC is the default for Haiku.
8788 # The "-static" flag exists, but is broken.
8789 lt_prog_compiler_static=
8790 ;;
8791
8792 hpux*)
8793 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8794 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8795 # sets the default TLS model and affects inlining.
8796 case $host_cpu in
8797 hppa*64*)
8798 # +Z the default
8799 ;;
8800 *)
8801 lt_prog_compiler_pic='-fPIC'
8802 ;;
8803 esac
8804 ;;
8805
8806 interix[3-9]*)
8807 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8808 # Instead, we relocate shared libraries at runtime.
8809 ;;
8810
8811 msdosdjgpp*)
8812 # Just because we use GCC doesn't mean we suddenly get shared libraries
8813 # on systems that don't support them.
8814 lt_prog_compiler_can_build_shared=no
8815 enable_shared=no
8816 ;;
8817
8818 *nto* | *qnx*)
8819 # QNX uses GNU C++, but need to define -shared option too, otherwise
8820 # it will coredump.
8821 lt_prog_compiler_pic='-fPIC -shared'
8822 ;;
8823
8824 sysv4*MP*)
8825 if test -d /usr/nec; then
8826 lt_prog_compiler_pic=-Kconform_pic
8827 fi
8828 ;;
8829
8830 *)
8831 lt_prog_compiler_pic='-fPIC'
8832 ;;
8833 esac
8834
8835 case $cc_basename in
8836 nvcc*) # Cuda Compiler Driver 2.2
8837 lt_prog_compiler_wl='-Xlinker '
8838 if test -n "$lt_prog_compiler_pic"; then
8839 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8840 fi
8841 ;;
8842 esac
8843 else
8844 # PORTME Check for flag to pass linker flags through the system compiler.
8845 case $host_os in
8846 aix*)
8847 lt_prog_compiler_wl='-Wl,'
8848 if test "$host_cpu" = ia64; then
8849 # AIX 5 now supports IA64 processor
8850 lt_prog_compiler_static='-Bstatic'
8851 else
8852 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8853 fi
8854 ;;
8855
8856 mingw* | cygwin* | pw32* | os2* | cegcc*)
8857 # This hack is so that the source file can tell whether it is being
8858 # built for inclusion in a dll (and should export symbols for example).
8859 lt_prog_compiler_pic='-DDLL_EXPORT'
8860 ;;
8861
8862 hpux9* | hpux10* | hpux11*)
8863 lt_prog_compiler_wl='-Wl,'
8864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8865 # not for PA HP-UX.
8866 case $host_cpu in
8867 hppa*64*|ia64*)
8868 # +Z the default
8869 ;;
8870 *)
8871 lt_prog_compiler_pic='+Z'
8872 ;;
8873 esac
8874 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8875 lt_prog_compiler_static='${wl}-a ${wl}archive'
8876 ;;
8877
8878 irix5* | irix6* | nonstopux*)
8879 lt_prog_compiler_wl='-Wl,'
8880 # PIC (with -KPIC) is the default.
8881 lt_prog_compiler_static='-non_shared'
8882 ;;
8883
8884 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8885 case $cc_basename in
8886 # old Intel for x86_64 which still supported -KPIC.
8887 ecc*)
8888 lt_prog_compiler_wl='-Wl,'
8889 lt_prog_compiler_pic='-KPIC'
8890 lt_prog_compiler_static='-static'
8891 ;;
8892 # icc used to be incompatible with GCC.
8893 # ICC 10 doesn't accept -KPIC any more.
8894 icc* | ifort*)
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_pic='-fPIC'
8897 lt_prog_compiler_static='-static'
8898 ;;
8899 # Lahey Fortran 8.1.
8900 lf95*)
8901 lt_prog_compiler_wl='-Wl,'
8902 lt_prog_compiler_pic='--shared'
8903 lt_prog_compiler_static='--static'
8904 ;;
8905 nagfor*)
8906 # NAG Fortran compiler
8907 lt_prog_compiler_wl='-Wl,-Wl,,'
8908 lt_prog_compiler_pic='-PIC'
8909 lt_prog_compiler_static='-Bstatic'
8910 ;;
8911 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8912 # Portland Group compilers (*not* the Pentium gcc compiler,
8913 # which looks to be a dead project)
8914 lt_prog_compiler_wl='-Wl,'
8915 lt_prog_compiler_pic='-fpic'
8916 lt_prog_compiler_static='-Bstatic'
8917 ;;
8918 ccc*)
8919 lt_prog_compiler_wl='-Wl,'
8920 # All Alpha code is PIC.
8921 lt_prog_compiler_static='-non_shared'
8922 ;;
8923 xl* | bgxl* | bgf* | mpixl*)
8924 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-qpic'
8927 lt_prog_compiler_static='-qstaticlink'
8928 ;;
8929 *)
8930 case `$CC -V 2>&1 | sed 5q` in
8931 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8932 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-Bstatic'
8935 lt_prog_compiler_wl=''
8936 ;;
8937 *Sun\ F* | *Sun*Fortran*)
8938 lt_prog_compiler_pic='-KPIC'
8939 lt_prog_compiler_static='-Bstatic'
8940 lt_prog_compiler_wl='-Qoption ld '
8941 ;;
8942 *Sun\ C*)
8943 # Sun C 5.9
8944 lt_prog_compiler_pic='-KPIC'
8945 lt_prog_compiler_static='-Bstatic'
8946 lt_prog_compiler_wl='-Wl,'
8947 ;;
8948 *Intel*\ [CF]*Compiler*)
8949 lt_prog_compiler_wl='-Wl,'
8950 lt_prog_compiler_pic='-fPIC'
8951 lt_prog_compiler_static='-static'
8952 ;;
8953 *Portland\ Group*)
8954 lt_prog_compiler_wl='-Wl,'
8955 lt_prog_compiler_pic='-fpic'
8956 lt_prog_compiler_static='-Bstatic'
8957 ;;
8958 esac
8959 ;;
8960 esac
8961 ;;
8962
8963 newsos6)
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
8966 ;;
8967
8968 *nto* | *qnx*)
8969 # QNX uses GNU C++, but need to define -shared option too, otherwise
8970 # it will coredump.
8971 lt_prog_compiler_pic='-fPIC -shared'
8972 ;;
8973
8974 osf3* | osf4* | osf5*)
8975 lt_prog_compiler_wl='-Wl,'
8976 # All OSF/1 code is PIC.
8977 lt_prog_compiler_static='-non_shared'
8978 ;;
8979
8980 rdos*)
8981 lt_prog_compiler_static='-non_shared'
8982 ;;
8983
8984 solaris*)
8985 lt_prog_compiler_pic='-KPIC'
8986 lt_prog_compiler_static='-Bstatic'
8987 case $cc_basename in
8988 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8989 lt_prog_compiler_wl='-Qoption ld ';;
8990 *)
8991 lt_prog_compiler_wl='-Wl,';;
8992 esac
8993 ;;
8994
8995 sunos4*)
8996 lt_prog_compiler_wl='-Qoption ld '
8997 lt_prog_compiler_pic='-PIC'
8998 lt_prog_compiler_static='-Bstatic'
8999 ;;
9000
9001 sysv4 | sysv4.2uw2* | sysv4.3*)
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='-KPIC'
9004 lt_prog_compiler_static='-Bstatic'
9005 ;;
9006
9007 sysv4*MP*)
9008 if test -d /usr/nec ;then
9009 lt_prog_compiler_pic='-Kconform_pic'
9010 lt_prog_compiler_static='-Bstatic'
9011 fi
9012 ;;
9013
9014 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9015 lt_prog_compiler_wl='-Wl,'
9016 lt_prog_compiler_pic='-KPIC'
9017 lt_prog_compiler_static='-Bstatic'
9018 ;;
9019
9020 unicos*)
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_can_build_shared=no
9023 ;;
9024
9025 uts4*)
9026 lt_prog_compiler_pic='-pic'
9027 lt_prog_compiler_static='-Bstatic'
9028 ;;
9029
9030 *)
9031 lt_prog_compiler_can_build_shared=no
9032 ;;
9033 esac
9034 fi
9035
9036 case $host_os in
9037 # For platforms which do not support PIC, -DPIC is meaningless:
9038 *djgpp*)
9039 lt_prog_compiler_pic=
9040 ;;
9041 *)
9042 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9043 ;;
9044 esac
9045
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9047 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9048 if ${lt_cv_prog_compiler_pic+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9054 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9055 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9056
9057 #
9058 # Check to make sure the PIC flag actually works.
9059 #
9060 if test -n "$lt_prog_compiler_pic"; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9062 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9063 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 lt_cv_prog_compiler_pic_works=no
9067 ac_outfile=conftest.$ac_objext
9068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9069 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9070 # Insert the option either (1) after the last *FLAGS variable, or
9071 # (2) before a word containing "conftest.", or (3) at the end.
9072 # Note that $ac_compile itself does not contain backslashes and begins
9073 # with a dollar sign (not a hyphen), so the echo should work correctly.
9074 # The option is referenced via a variable to avoid confusing sed.
9075 lt_compile=`echo "$ac_compile" | $SED \
9076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9078 -e 's:$: $lt_compiler_flag:'`
9079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9080 (eval "$lt_compile" 2>conftest.err)
9081 ac_status=$?
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 if (exit $ac_status) && test -s "$ac_outfile"; then
9085 # The compiler can only warn and ignore the option if not recognized
9086 # So say no if there are warnings other than the usual output.
9087 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9090 lt_cv_prog_compiler_pic_works=yes
9091 fi
9092 fi
9093 $RM conftest*
9094
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9097 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9098
9099 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9100 case $lt_prog_compiler_pic in
9101 "" | " "*) ;;
9102 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9103 esac
9104 else
9105 lt_prog_compiler_pic=
9106 lt_prog_compiler_can_build_shared=no
9107 fi
9108
9109 fi
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121 #
9122 # Check to make sure the static flag actually works.
9123 #
9124 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9126 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9127 if ${lt_cv_prog_compiler_static_works+:} false; then :
9128 $as_echo_n "(cached) " >&6
9129 else
9130 lt_cv_prog_compiler_static_works=no
9131 save_LDFLAGS="$LDFLAGS"
9132 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9133 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9135 # The linker can only warn and ignore the option if not recognized
9136 # So say no if there are warnings
9137 if test -s conftest.err; then
9138 # Append any errors to the config.log.
9139 cat conftest.err 1>&5
9140 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9142 if diff conftest.exp conftest.er2 >/dev/null; then
9143 lt_cv_prog_compiler_static_works=yes
9144 fi
9145 else
9146 lt_cv_prog_compiler_static_works=yes
9147 fi
9148 fi
9149 $RM -r conftest*
9150 LDFLAGS="$save_LDFLAGS"
9151
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9154 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9155
9156 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9157 :
9158 else
9159 lt_prog_compiler_static=
9160 fi
9161
9162
9163
9164
9165
9166
9167
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9169 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9170 if ${lt_cv_prog_compiler_c_o+:} false; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 lt_cv_prog_compiler_c_o=no
9174 $RM -r conftest 2>/dev/null
9175 mkdir conftest
9176 cd conftest
9177 mkdir out
9178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9179
9180 lt_compiler_flag="-o out/conftest2.$ac_objext"
9181 # Insert the option either (1) after the last *FLAGS variable, or
9182 # (2) before a word containing "conftest.", or (3) at the end.
9183 # Note that $ac_compile itself does not contain backslashes and begins
9184 # with a dollar sign (not a hyphen), so the echo should work correctly.
9185 lt_compile=`echo "$ac_compile" | $SED \
9186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9188 -e 's:$: $lt_compiler_flag:'`
9189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9190 (eval "$lt_compile" 2>out/conftest.err)
9191 ac_status=$?
9192 cat out/conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9195 then
9196 # The compiler can only warn and ignore the option if not recognized
9197 # So say no if there are warnings
9198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9201 lt_cv_prog_compiler_c_o=yes
9202 fi
9203 fi
9204 chmod u+w . 2>&5
9205 $RM conftest*
9206 # SGI C++ compiler will create directory out/ii_files/ for
9207 # template instantiation
9208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9209 $RM out/* && rmdir out
9210 cd ..
9211 $RM -r conftest
9212 $RM conftest*
9213
9214 fi
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9216 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9217
9218
9219
9220
9221
9222
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9224 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9225 if ${lt_cv_prog_compiler_c_o+:} false; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 lt_cv_prog_compiler_c_o=no
9229 $RM -r conftest 2>/dev/null
9230 mkdir conftest
9231 cd conftest
9232 mkdir out
9233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9234
9235 lt_compiler_flag="-o out/conftest2.$ac_objext"
9236 # Insert the option either (1) after the last *FLAGS variable, or
9237 # (2) before a word containing "conftest.", or (3) at the end.
9238 # Note that $ac_compile itself does not contain backslashes and begins
9239 # with a dollar sign (not a hyphen), so the echo should work correctly.
9240 lt_compile=`echo "$ac_compile" | $SED \
9241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9243 -e 's:$: $lt_compiler_flag:'`
9244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9245 (eval "$lt_compile" 2>out/conftest.err)
9246 ac_status=$?
9247 cat out/conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9250 then
9251 # The compiler can only warn and ignore the option if not recognized
9252 # So say no if there are warnings
9253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9254 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9255 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9256 lt_cv_prog_compiler_c_o=yes
9257 fi
9258 fi
9259 chmod u+w . 2>&5
9260 $RM conftest*
9261 # SGI C++ compiler will create directory out/ii_files/ for
9262 # template instantiation
9263 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9264 $RM out/* && rmdir out
9265 cd ..
9266 $RM -r conftest
9267 $RM conftest*
9268
9269 fi
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9271 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9272
9273
9274
9275
9276 hard_links="nottested"
9277 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9278 # do not overwrite the value of need_locks provided by the user
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9280 $as_echo_n "checking if we can lock with hard links... " >&6; }
9281 hard_links=yes
9282 $RM conftest*
9283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9284 touch conftest.a
9285 ln conftest.a conftest.b 2>&5 || hard_links=no
9286 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9288 $as_echo "$hard_links" >&6; }
9289 if test "$hard_links" = no; then
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9291 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9292 need_locks=warn
9293 fi
9294 else
9295 need_locks=no
9296 fi
9297
9298
9299
9300
9301
9302
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9304 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9305
9306 runpath_var=
9307 allow_undefined_flag=
9308 always_export_symbols=no
9309 archive_cmds=
9310 archive_expsym_cmds=
9311 compiler_needs_object=no
9312 enable_shared_with_static_runtimes=no
9313 export_dynamic_flag_spec=
9314 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9315 hardcode_automatic=no
9316 hardcode_direct=no
9317 hardcode_direct_absolute=no
9318 hardcode_libdir_flag_spec=
9319 hardcode_libdir_separator=
9320 hardcode_minus_L=no
9321 hardcode_shlibpath_var=unsupported
9322 inherit_rpath=no
9323 link_all_deplibs=unknown
9324 module_cmds=
9325 module_expsym_cmds=
9326 old_archive_from_new_cmds=
9327 old_archive_from_expsyms_cmds=
9328 thread_safe_flag_spec=
9329 whole_archive_flag_spec=
9330 # include_expsyms should be a list of space-separated symbols to be *always*
9331 # included in the symbol list
9332 include_expsyms=
9333 # exclude_expsyms can be an extended regexp of symbols to exclude
9334 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9335 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9336 # as well as any symbol that contains `d'.
9337 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9338 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9339 # platforms (ab)use it in PIC code, but their linkers get confused if
9340 # the symbol is explicitly referenced. Since portable code cannot
9341 # rely on this symbol name, it's probably fine to never include it in
9342 # preloaded symbol tables.
9343 # Exclude shared library initialization/finalization symbols.
9344 extract_expsyms_cmds=
9345
9346 case $host_os in
9347 cygwin* | mingw* | pw32* | cegcc*)
9348 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9349 # When not using gcc, we currently assume that we are using
9350 # Microsoft Visual C++.
9351 if test "$GCC" != yes; then
9352 with_gnu_ld=no
9353 fi
9354 ;;
9355 interix*)
9356 # we just hope/assume this is gcc and not c89 (= MSVC++)
9357 with_gnu_ld=yes
9358 ;;
9359 openbsd*)
9360 with_gnu_ld=no
9361 ;;
9362 esac
9363
9364 ld_shlibs=yes
9365
9366 # On some targets, GNU ld is compatible enough with the native linker
9367 # that we're better off using the native interface for both.
9368 lt_use_gnu_ld_interface=no
9369 if test "$with_gnu_ld" = yes; then
9370 case $host_os in
9371 aix*)
9372 # The AIX port of GNU ld has always aspired to compatibility
9373 # with the native linker. However, as the warning in the GNU ld
9374 # block says, versions before 2.19.5* couldn't really create working
9375 # shared libraries, regardless of the interface used.
9376 case `$LD -v 2>&1` in
9377 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9378 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9379 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9380 *)
9381 lt_use_gnu_ld_interface=yes
9382 ;;
9383 esac
9384 ;;
9385 *)
9386 lt_use_gnu_ld_interface=yes
9387 ;;
9388 esac
9389 fi
9390
9391 if test "$lt_use_gnu_ld_interface" = yes; then
9392 # If archive_cmds runs LD, not CC, wlarc should be empty
9393 wlarc='${wl}'
9394
9395 # Set some defaults for GNU ld with shared library support. These
9396 # are reset later if shared libraries are not supported. Putting them
9397 # here allows them to be overridden if necessary.
9398 runpath_var=LD_RUN_PATH
9399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9400 export_dynamic_flag_spec='${wl}--export-dynamic'
9401 # ancient GNU ld didn't support --whole-archive et. al.
9402 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9403 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9404 else
9405 whole_archive_flag_spec=
9406 fi
9407 supports_anon_versioning=no
9408 case `$LD -v 2>&1` in
9409 *GNU\ gold*) supports_anon_versioning=yes ;;
9410 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9411 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9412 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9413 *\ 2.11.*) ;; # other 2.11 versions
9414 *) supports_anon_versioning=yes ;;
9415 esac
9416
9417 # See if GNU ld supports shared libraries.
9418 case $host_os in
9419 aix[3-9]*)
9420 # On AIX/PPC, the GNU linker is very broken
9421 if test "$host_cpu" != ia64; then
9422 ld_shlibs=no
9423 cat <<_LT_EOF 1>&2
9424
9425 *** Warning: the GNU linker, at least up to release 2.19, is reported
9426 *** to be unable to reliably create shared libraries on AIX.
9427 *** Therefore, libtool is disabling shared libraries support. If you
9428 *** really care for shared libraries, you may want to install binutils
9429 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9430 *** You will then need to restart the configuration process.
9431
9432 _LT_EOF
9433 fi
9434 ;;
9435
9436 amigaos*)
9437 case $host_cpu in
9438 powerpc)
9439 # see comment about AmigaOS4 .so support
9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 archive_expsym_cmds=''
9442 ;;
9443 m68k)
9444 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)'
9445 hardcode_libdir_flag_spec='-L$libdir'
9446 hardcode_minus_L=yes
9447 ;;
9448 esac
9449 ;;
9450
9451 beos*)
9452 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9453 allow_undefined_flag=unsupported
9454 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9455 # support --undefined. This deserves some investigation. FIXME
9456 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9457 else
9458 ld_shlibs=no
9459 fi
9460 ;;
9461
9462 cygwin* | mingw* | pw32* | cegcc*)
9463 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9464 # as there is no search path for DLLs.
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 export_dynamic_flag_spec='${wl}--export-all-symbols'
9467 allow_undefined_flag=unsupported
9468 always_export_symbols=no
9469 enable_shared_with_static_runtimes=yes
9470 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'
9471 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9472
9473 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9475 # If the export-symbols file already is a .def file (1st line
9476 # is EXPORTS), use it as is; otherwise, prepend...
9477 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9478 cp $export_symbols $output_objdir/$soname.def;
9479 else
9480 echo EXPORTS > $output_objdir/$soname.def;
9481 cat $export_symbols >> $output_objdir/$soname.def;
9482 fi~
9483 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9484 else
9485 ld_shlibs=no
9486 fi
9487 ;;
9488
9489 haiku*)
9490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491 link_all_deplibs=yes
9492 ;;
9493
9494 interix[3-9]*)
9495 hardcode_direct=no
9496 hardcode_shlibpath_var=no
9497 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9498 export_dynamic_flag_spec='${wl}-E'
9499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9500 # Instead, shared libraries are loaded at an image base (0x10000000 by
9501 # default) and relocated if they conflict, which is a slow very memory
9502 # consuming and fragmenting process. To avoid this, we pick a random,
9503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9504 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9505 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9506 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'
9507 ;;
9508
9509 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9510 tmp_diet=no
9511 if test "$host_os" = linux-dietlibc; then
9512 case $cc_basename in
9513 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9514 esac
9515 fi
9516 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9517 && test "$tmp_diet" = no
9518 then
9519 tmp_addflag=' $pic_flag'
9520 tmp_sharedflag='-shared'
9521 case $cc_basename,$host_cpu in
9522 pgcc*) # Portland Group C compiler
9523 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'
9524 tmp_addflag=' $pic_flag'
9525 ;;
9526 pgf77* | pgf90* | pgf95* | pgfortran*)
9527 # Portland Group f77 and f90 compilers
9528 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'
9529 tmp_addflag=' $pic_flag -Mnomain' ;;
9530 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9531 tmp_addflag=' -i_dynamic' ;;
9532 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9533 tmp_addflag=' -i_dynamic -nofor_main' ;;
9534 ifc* | ifort*) # Intel Fortran compiler
9535 tmp_addflag=' -nofor_main' ;;
9536 lf95*) # Lahey Fortran 8.1
9537 whole_archive_flag_spec=
9538 tmp_sharedflag='--shared' ;;
9539 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9540 tmp_sharedflag='-qmkshrobj'
9541 tmp_addflag= ;;
9542 nvcc*) # Cuda Compiler Driver 2.2
9543 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'
9544 compiler_needs_object=yes
9545 ;;
9546 esac
9547 case `$CC -V 2>&1 | sed 5q` in
9548 *Sun\ C*) # Sun C 5.9
9549 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'
9550 compiler_needs_object=yes
9551 tmp_sharedflag='-G' ;;
9552 *Sun\ F*) # Sun Fortran 8.3
9553 tmp_sharedflag='-G' ;;
9554 esac
9555 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556
9557 if test "x$supports_anon_versioning" = xyes; then
9558 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9560 echo "local: *; };" >> $output_objdir/$libname.ver~
9561 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9562 fi
9563
9564 case $cc_basename in
9565 xlf* | bgf* | bgxlf* | mpixlf*)
9566 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9567 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9569 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9570 if test "x$supports_anon_versioning" = xyes; then
9571 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9572 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9573 echo "local: *; };" >> $output_objdir/$libname.ver~
9574 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9575 fi
9576 ;;
9577 esac
9578 else
9579 ld_shlibs=no
9580 fi
9581 ;;
9582
9583 netbsd*)
9584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9585 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9586 wlarc=
9587 else
9588 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9589 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9590 fi
9591 ;;
9592
9593 solaris*)
9594 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9595 ld_shlibs=no
9596 cat <<_LT_EOF 1>&2
9597
9598 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9599 *** create shared libraries on Solaris systems. Therefore, libtool
9600 *** is disabling shared libraries support. We urge you to upgrade GNU
9601 *** binutils to release 2.9.1 or newer. Another option is to modify
9602 *** your PATH or compiler configuration so that the native linker is
9603 *** used, and then restart.
9604
9605 _LT_EOF
9606 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9607 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9608 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9609 else
9610 ld_shlibs=no
9611 fi
9612 ;;
9613
9614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9615 case `$LD -v 2>&1` in
9616 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9617 ld_shlibs=no
9618 cat <<_LT_EOF 1>&2
9619
9620 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9621 *** reliably create shared libraries on SCO systems. Therefore, libtool
9622 *** is disabling shared libraries support. We urge you to upgrade GNU
9623 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9624 *** your PATH or compiler configuration so that the native linker is
9625 *** used, and then restart.
9626
9627 _LT_EOF
9628 ;;
9629 *)
9630 # For security reasons, it is highly recommended that you always
9631 # use absolute paths for naming shared libraries, and exclude the
9632 # DT_RUNPATH tag from executables and libraries. But doing so
9633 # requires that you compile everything twice, which is a pain.
9634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9637 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9638 else
9639 ld_shlibs=no
9640 fi
9641 ;;
9642 esac
9643 ;;
9644
9645 sunos4*)
9646 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9647 wlarc=
9648 hardcode_direct=yes
9649 hardcode_shlibpath_var=no
9650 ;;
9651
9652 *)
9653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9654 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9655 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9656 else
9657 ld_shlibs=no
9658 fi
9659 ;;
9660 esac
9661
9662 if test "$ld_shlibs" = no; then
9663 runpath_var=
9664 hardcode_libdir_flag_spec=
9665 export_dynamic_flag_spec=
9666 whole_archive_flag_spec=
9667 fi
9668 else
9669 # PORTME fill in a description of your system's linker (not GNU ld)
9670 case $host_os in
9671 aix3*)
9672 allow_undefined_flag=unsupported
9673 always_export_symbols=yes
9674 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'
9675 # Note: this linker hardcodes the directories in LIBPATH if there
9676 # are no directories specified by -L.
9677 hardcode_minus_L=yes
9678 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9679 # Neither direct hardcoding nor static linking is supported with a
9680 # broken collect2.
9681 hardcode_direct=unsupported
9682 fi
9683 ;;
9684
9685 aix[4-9]*)
9686 if test "$host_cpu" = ia64; then
9687 # On IA64, the linker does run time linking by default, so we don't
9688 # have to do anything special.
9689 aix_use_runtimelinking=no
9690 exp_sym_flag='-Bexport'
9691 no_entry_flag=""
9692 else
9693 # If we're using GNU nm, then we don't want the "-C" option.
9694 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9695 # Also, AIX nm treats weak defined symbols like other global
9696 # defined symbols, whereas GNU nm marks them as "W".
9697 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9698 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'
9699 else
9700 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'
9701 fi
9702 aix_use_runtimelinking=no
9703
9704 # Test if we are trying to use run time linking or normal
9705 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9706 # need to do runtime linking.
9707 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9708 for ld_flag in $LDFLAGS; do
9709 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9710 aix_use_runtimelinking=yes
9711 break
9712 fi
9713 done
9714 ;;
9715 esac
9716
9717 exp_sym_flag='-bexport'
9718 no_entry_flag='-bnoentry'
9719 fi
9720
9721 # When large executables or shared objects are built, AIX ld can
9722 # have problems creating the table of contents. If linking a library
9723 # or program results in "error TOC overflow" add -mminimal-toc to
9724 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9725 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9726
9727 archive_cmds=''
9728 hardcode_direct=yes
9729 hardcode_direct_absolute=yes
9730 hardcode_libdir_separator=':'
9731 link_all_deplibs=yes
9732 file_list_spec='${wl}-f,'
9733
9734 if test "$GCC" = yes; then
9735 case $host_os in aix4.[012]|aix4.[012].*)
9736 # We only want to do this on AIX 4.2 and lower, the check
9737 # below for broken collect2 doesn't work under 4.3+
9738 collect2name=`${CC} -print-prog-name=collect2`
9739 if test -f "$collect2name" &&
9740 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9741 then
9742 # We have reworked collect2
9743 :
9744 else
9745 # We have old collect2
9746 hardcode_direct=unsupported
9747 # It fails to find uninstalled libraries when the uninstalled
9748 # path is not listed in the libpath. Setting hardcode_minus_L
9749 # to unsupported forces relinking
9750 hardcode_minus_L=yes
9751 hardcode_libdir_flag_spec='-L$libdir'
9752 hardcode_libdir_separator=
9753 fi
9754 ;;
9755 esac
9756 shared_flag='-shared'
9757 if test "$aix_use_runtimelinking" = yes; then
9758 shared_flag="$shared_flag "'${wl}-G'
9759 fi
9760 else
9761 # not using gcc
9762 if test "$host_cpu" = ia64; then
9763 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9764 # chokes on -Wl,-G. The following line is correct:
9765 shared_flag='-G'
9766 else
9767 if test "$aix_use_runtimelinking" = yes; then
9768 shared_flag='${wl}-G'
9769 else
9770 shared_flag='${wl}-bM:SRE'
9771 fi
9772 fi
9773 fi
9774
9775 export_dynamic_flag_spec='${wl}-bexpall'
9776 # It seems that -bexpall does not export symbols beginning with
9777 # underscore (_), so it is better to generate a list of symbols to export.
9778 always_export_symbols=yes
9779 if test "$aix_use_runtimelinking" = yes; then
9780 # Warning - without using the other runtime loading flags (-brtl),
9781 # -berok will link without error, but may produce a broken library.
9782 allow_undefined_flag='-berok'
9783 # Determine the default libpath from the value encoded in an
9784 # empty executable.
9785 if test "${lt_cv_aix_libpath+set}" = set; then
9786 aix_libpath=$lt_cv_aix_libpath
9787 else
9788 if ${lt_cv_aix_libpath_+:} false; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792 /* end confdefs.h. */
9793
9794 int
9795 main ()
9796 {
9797
9798 ;
9799 return 0;
9800 }
9801 _ACEOF
9802 if ac_fn_c_try_link "$LINENO"; then :
9803
9804 lt_aix_libpath_sed='
9805 /Import File Strings/,/^$/ {
9806 /^0/ {
9807 s/^0 *\([^ ]*\) *$/\1/
9808 p
9809 }
9810 }'
9811 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9812 # Check for a 64-bit object if we didn't find anything.
9813 if test -z "$lt_cv_aix_libpath_"; then
9814 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9815 fi
9816 fi
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819 if test -z "$lt_cv_aix_libpath_"; then
9820 lt_cv_aix_libpath_="/usr/lib:/lib"
9821 fi
9822
9823 fi
9824
9825 aix_libpath=$lt_cv_aix_libpath_
9826 fi
9827
9828 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9829 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"
9830 else
9831 if test "$host_cpu" = ia64; then
9832 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9833 allow_undefined_flag="-z nodefs"
9834 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"
9835 else
9836 # Determine the default libpath from the value encoded in an
9837 # empty executable.
9838 if test "${lt_cv_aix_libpath+set}" = set; then
9839 aix_libpath=$lt_cv_aix_libpath
9840 else
9841 if ${lt_cv_aix_libpath_+:} false; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9846
9847 int
9848 main ()
9849 {
9850
9851 ;
9852 return 0;
9853 }
9854 _ACEOF
9855 if ac_fn_c_try_link "$LINENO"; then :
9856
9857 lt_aix_libpath_sed='
9858 /Import File Strings/,/^$/ {
9859 /^0/ {
9860 s/^0 *\([^ ]*\) *$/\1/
9861 p
9862 }
9863 }'
9864 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9865 # Check for a 64-bit object if we didn't find anything.
9866 if test -z "$lt_cv_aix_libpath_"; then
9867 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9868 fi
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 if test -z "$lt_cv_aix_libpath_"; then
9873 lt_cv_aix_libpath_="/usr/lib:/lib"
9874 fi
9875
9876 fi
9877
9878 aix_libpath=$lt_cv_aix_libpath_
9879 fi
9880
9881 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9882 # Warning - without using the other run time loading flags,
9883 # -berok will link without error, but may produce a broken library.
9884 no_undefined_flag=' ${wl}-bernotok'
9885 allow_undefined_flag=' ${wl}-berok'
9886 if test "$with_gnu_ld" = yes; then
9887 # We only use this code for GNU lds that support --whole-archive.
9888 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9889 else
9890 # Exported symbols can be pulled into shared objects from archives
9891 whole_archive_flag_spec='$convenience'
9892 fi
9893 archive_cmds_need_lc=yes
9894 # This is similar to how AIX traditionally builds its shared libraries.
9895 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'
9896 fi
9897 fi
9898 ;;
9899
9900 amigaos*)
9901 case $host_cpu in
9902 powerpc)
9903 # see comment about AmigaOS4 .so support
9904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9905 archive_expsym_cmds=''
9906 ;;
9907 m68k)
9908 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)'
9909 hardcode_libdir_flag_spec='-L$libdir'
9910 hardcode_minus_L=yes
9911 ;;
9912 esac
9913 ;;
9914
9915 bsdi[45]*)
9916 export_dynamic_flag_spec=-rdynamic
9917 ;;
9918
9919 cygwin* | mingw* | pw32* | cegcc*)
9920 # When not using gcc, we currently assume that we are using
9921 # Microsoft Visual C++.
9922 # hardcode_libdir_flag_spec is actually meaningless, as there is
9923 # no search path for DLLs.
9924 case $cc_basename in
9925 cl*)
9926 # Native MSVC
9927 hardcode_libdir_flag_spec=' '
9928 allow_undefined_flag=unsupported
9929 always_export_symbols=yes
9930 file_list_spec='@'
9931 # Tell ltmain to make .lib files, not .a files.
9932 libext=lib
9933 # Tell ltmain to make .dll files, not .so files.
9934 shrext_cmds=".dll"
9935 # FIXME: Setting linknames here is a bad hack.
9936 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9937 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9938 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9939 else
9940 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9941 fi~
9942 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9943 linknames='
9944 # The linker will not automatically build a static lib if we build a DLL.
9945 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9946 enable_shared_with_static_runtimes=yes
9947 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9948 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9949 # Don't use ranlib
9950 old_postinstall_cmds='chmod 644 $oldlib'
9951 postlink_cmds='lt_outputfile="@OUTPUT@"~
9952 lt_tool_outputfile="@TOOL_OUTPUT@"~
9953 case $lt_outputfile in
9954 *.exe|*.EXE) ;;
9955 *)
9956 lt_outputfile="$lt_outputfile.exe"
9957 lt_tool_outputfile="$lt_tool_outputfile.exe"
9958 ;;
9959 esac~
9960 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9961 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9962 $RM "$lt_outputfile.manifest";
9963 fi'
9964 ;;
9965 *)
9966 # Assume MSVC wrapper
9967 hardcode_libdir_flag_spec=' '
9968 allow_undefined_flag=unsupported
9969 # Tell ltmain to make .lib files, not .a files.
9970 libext=lib
9971 # Tell ltmain to make .dll files, not .so files.
9972 shrext_cmds=".dll"
9973 # FIXME: Setting linknames here is a bad hack.
9974 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9975 # The linker will automatically build a .lib file if we build a DLL.
9976 old_archive_from_new_cmds='true'
9977 # FIXME: Should let the user specify the lib program.
9978 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9979 enable_shared_with_static_runtimes=yes
9980 ;;
9981 esac
9982 ;;
9983
9984 darwin* | rhapsody*)
9985
9986
9987 archive_cmds_need_lc=no
9988 hardcode_direct=no
9989 hardcode_automatic=yes
9990 hardcode_shlibpath_var=unsupported
9991 if test "$lt_cv_ld_force_load" = "yes"; then
9992 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\"`'
9993
9994 else
9995 whole_archive_flag_spec=''
9996 fi
9997 link_all_deplibs=yes
9998 allow_undefined_flag="$_lt_dar_allow_undefined"
9999 case $cc_basename in
10000 ifort*) _lt_dar_can_shared=yes ;;
10001 *) _lt_dar_can_shared=$GCC ;;
10002 esac
10003 if test "$_lt_dar_can_shared" = "yes"; then
10004 output_verbose_link_cmd=func_echo_all
10005 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10006 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10007 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}"
10008 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}"
10009
10010 else
10011 ld_shlibs=no
10012 fi
10013
10014 ;;
10015
10016 dgux*)
10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_shlibpath_var=no
10020 ;;
10021
10022 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10023 # support. Future versions do this automatically, but an explicit c++rt0.o
10024 # does not break anything, and helps significantly (at the cost of a little
10025 # extra space).
10026 freebsd2.2*)
10027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10028 hardcode_libdir_flag_spec='-R$libdir'
10029 hardcode_direct=yes
10030 hardcode_shlibpath_var=no
10031 ;;
10032
10033 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10034 freebsd2.*)
10035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10036 hardcode_direct=yes
10037 hardcode_minus_L=yes
10038 hardcode_shlibpath_var=no
10039 ;;
10040
10041 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10042 freebsd* | dragonfly*)
10043 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10044 hardcode_libdir_flag_spec='-R$libdir'
10045 hardcode_direct=yes
10046 hardcode_shlibpath_var=no
10047 ;;
10048
10049 hpux9*)
10050 if test "$GCC" = yes; then
10051 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'
10052 else
10053 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'
10054 fi
10055 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10056 hardcode_libdir_separator=:
10057 hardcode_direct=yes
10058
10059 # hardcode_minus_L: Not really in the search PATH,
10060 # but as the default location of the library.
10061 hardcode_minus_L=yes
10062 export_dynamic_flag_spec='${wl}-E'
10063 ;;
10064
10065 hpux10*)
10066 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10067 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10068 else
10069 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10070 fi
10071 if test "$with_gnu_ld" = no; then
10072 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10073 hardcode_libdir_separator=:
10074 hardcode_direct=yes
10075 hardcode_direct_absolute=yes
10076 export_dynamic_flag_spec='${wl}-E'
10077 # hardcode_minus_L: Not really in the search PATH,
10078 # but as the default location of the library.
10079 hardcode_minus_L=yes
10080 fi
10081 ;;
10082
10083 hpux11*)
10084 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10085 case $host_cpu in
10086 hppa*64*)
10087 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 ;;
10089 ia64*)
10090 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10091 ;;
10092 *)
10093 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10094 ;;
10095 esac
10096 else
10097 case $host_cpu in
10098 hppa*64*)
10099 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 ;;
10101 ia64*)
10102 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10103 ;;
10104 *)
10105
10106 # Older versions of the 11.00 compiler do not understand -b yet
10107 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10109 $as_echo_n "checking if $CC understands -b... " >&6; }
10110 if ${lt_cv_prog_compiler__b+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 lt_cv_prog_compiler__b=no
10114 save_LDFLAGS="$LDFLAGS"
10115 LDFLAGS="$LDFLAGS -b"
10116 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10118 # The linker can only warn and ignore the option if not recognized
10119 # So say no if there are warnings
10120 if test -s conftest.err; then
10121 # Append any errors to the config.log.
10122 cat conftest.err 1>&5
10123 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10125 if diff conftest.exp conftest.er2 >/dev/null; then
10126 lt_cv_prog_compiler__b=yes
10127 fi
10128 else
10129 lt_cv_prog_compiler__b=yes
10130 fi
10131 fi
10132 $RM -r conftest*
10133 LDFLAGS="$save_LDFLAGS"
10134
10135 fi
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10137 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10138
10139 if test x"$lt_cv_prog_compiler__b" = xyes; then
10140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10141 else
10142 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10143 fi
10144
10145 ;;
10146 esac
10147 fi
10148 if test "$with_gnu_ld" = no; then
10149 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10150 hardcode_libdir_separator=:
10151
10152 case $host_cpu in
10153 hppa*64*|ia64*)
10154 hardcode_direct=no
10155 hardcode_shlibpath_var=no
10156 ;;
10157 *)
10158 hardcode_direct=yes
10159 hardcode_direct_absolute=yes
10160 export_dynamic_flag_spec='${wl}-E'
10161
10162 # hardcode_minus_L: Not really in the search PATH,
10163 # but as the default location of the library.
10164 hardcode_minus_L=yes
10165 ;;
10166 esac
10167 fi
10168 ;;
10169
10170 irix5* | irix6* | nonstopux*)
10171 if test "$GCC" = yes; then
10172 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'
10173 # Try to use the -exported_symbol ld option, if it does not
10174 # work, assume that -exports_file does not work either and
10175 # implicitly export all symbols.
10176 # This should be the same for all languages, so no per-tag cache variable.
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10178 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10179 if ${lt_cv_irix_exported_symbol+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 save_LDFLAGS="$LDFLAGS"
10183 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186 int foo (void) { return 0; }
10187 _ACEOF
10188 if ac_fn_c_try_link "$LINENO"; then :
10189 lt_cv_irix_exported_symbol=yes
10190 else
10191 lt_cv_irix_exported_symbol=no
10192 fi
10193 rm -f core conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext conftest.$ac_ext
10195 LDFLAGS="$save_LDFLAGS"
10196 fi
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10198 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10199 if test "$lt_cv_irix_exported_symbol" = yes; then
10200 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'
10201 fi
10202 else
10203 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'
10204 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'
10205 fi
10206 archive_cmds_need_lc='no'
10207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10208 hardcode_libdir_separator=:
10209 inherit_rpath=yes
10210 link_all_deplibs=yes
10211 ;;
10212
10213 netbsd*)
10214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10216 else
10217 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10218 fi
10219 hardcode_libdir_flag_spec='-R$libdir'
10220 hardcode_direct=yes
10221 hardcode_shlibpath_var=no
10222 ;;
10223
10224 newsos6)
10225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226 hardcode_direct=yes
10227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10228 hardcode_libdir_separator=:
10229 hardcode_shlibpath_var=no
10230 ;;
10231
10232 *nto* | *qnx*)
10233 ;;
10234
10235 openbsd*)
10236 if test -f /usr/libexec/ld.so; then
10237 hardcode_direct=yes
10238 hardcode_shlibpath_var=no
10239 hardcode_direct_absolute=yes
10240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10244 export_dynamic_flag_spec='${wl}-E'
10245 else
10246 case $host_os in
10247 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10249 hardcode_libdir_flag_spec='-R$libdir'
10250 ;;
10251 *)
10252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10253 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10254 ;;
10255 esac
10256 fi
10257 else
10258 ld_shlibs=no
10259 fi
10260 ;;
10261
10262 os2*)
10263 hardcode_libdir_flag_spec='-L$libdir'
10264 hardcode_minus_L=yes
10265 allow_undefined_flag=unsupported
10266 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'
10267 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10268 ;;
10269
10270 osf3*)
10271 if test "$GCC" = yes; then
10272 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10273 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'
10274 else
10275 allow_undefined_flag=' -expect_unresolved \*'
10276 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'
10277 fi
10278 archive_cmds_need_lc='no'
10279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10280 hardcode_libdir_separator=:
10281 ;;
10282
10283 osf4* | osf5*) # as osf3* with the addition of -msym flag
10284 if test "$GCC" = yes; then
10285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10286 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'
10287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10288 else
10289 allow_undefined_flag=' -expect_unresolved \*'
10290 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'
10291 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~
10292 $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'
10293
10294 # Both c and cxx compiler support -rpath directly
10295 hardcode_libdir_flag_spec='-rpath $libdir'
10296 fi
10297 archive_cmds_need_lc='no'
10298 hardcode_libdir_separator=:
10299 ;;
10300
10301 solaris*)
10302 no_undefined_flag=' -z defs'
10303 if test "$GCC" = yes; then
10304 wlarc='${wl}'
10305 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10306 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10307 $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'
10308 else
10309 case `$CC -V 2>&1` in
10310 *"Compilers 5.0"*)
10311 wlarc=''
10312 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10314 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10315 ;;
10316 *)
10317 wlarc='${wl}'
10318 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10320 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10321 ;;
10322 esac
10323 fi
10324 hardcode_libdir_flag_spec='-R$libdir'
10325 hardcode_shlibpath_var=no
10326 case $host_os in
10327 solaris2.[0-5] | solaris2.[0-5].*) ;;
10328 *)
10329 # The compiler driver will combine and reorder linker options,
10330 # but understands `-z linker_flag'. GCC discards it without `$wl',
10331 # but is careful enough not to reorder.
10332 # Supported since Solaris 2.6 (maybe 2.5.1?)
10333 if test "$GCC" = yes; then
10334 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10335 else
10336 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10337 fi
10338 ;;
10339 esac
10340 link_all_deplibs=yes
10341 ;;
10342
10343 sunos4*)
10344 if test "x$host_vendor" = xsequent; then
10345 # Use $CC to link under sequent, because it throws in some extra .o
10346 # files that make .init and .fini sections work.
10347 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10348 else
10349 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10350 fi
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_direct=yes
10353 hardcode_minus_L=yes
10354 hardcode_shlibpath_var=no
10355 ;;
10356
10357 sysv4)
10358 case $host_vendor in
10359 sni)
10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_direct=yes # is this really true???
10362 ;;
10363 siemens)
10364 ## LD is ld it makes a PLAMLIB
10365 ## CC just makes a GrossModule.
10366 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10367 reload_cmds='$CC -r -o $output$reload_objs'
10368 hardcode_direct=no
10369 ;;
10370 motorola)
10371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10372 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10373 ;;
10374 esac
10375 runpath_var='LD_RUN_PATH'
10376 hardcode_shlibpath_var=no
10377 ;;
10378
10379 sysv4.3*)
10380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10381 hardcode_shlibpath_var=no
10382 export_dynamic_flag_spec='-Bexport'
10383 ;;
10384
10385 sysv4*MP*)
10386 if test -d /usr/nec; then
10387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10388 hardcode_shlibpath_var=no
10389 runpath_var=LD_RUN_PATH
10390 hardcode_runpath_var=yes
10391 ld_shlibs=yes
10392 fi
10393 ;;
10394
10395 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10396 no_undefined_flag='${wl}-z,text'
10397 archive_cmds_need_lc=no
10398 hardcode_shlibpath_var=no
10399 runpath_var='LD_RUN_PATH'
10400
10401 if test "$GCC" = yes; then
10402 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 else
10405 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10407 fi
10408 ;;
10409
10410 sysv5* | sco3.2v5* | sco5v6*)
10411 # Note: We can NOT use -z defs as we might desire, because we do not
10412 # link with -lc, and that would cause any symbols used from libc to
10413 # always be unresolved, which means just about no library would
10414 # ever link correctly. If we're not using GNU ld we use -z text
10415 # though, which does catch some bad symbols but isn't as heavy-handed
10416 # as -z defs.
10417 no_undefined_flag='${wl}-z,text'
10418 allow_undefined_flag='${wl}-z,nodefs'
10419 archive_cmds_need_lc=no
10420 hardcode_shlibpath_var=no
10421 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10422 hardcode_libdir_separator=':'
10423 link_all_deplibs=yes
10424 export_dynamic_flag_spec='${wl}-Bexport'
10425 runpath_var='LD_RUN_PATH'
10426
10427 if test "$GCC" = yes; then
10428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10430 else
10431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 fi
10434 ;;
10435
10436 uts4*)
10437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10438 hardcode_libdir_flag_spec='-L$libdir'
10439 hardcode_shlibpath_var=no
10440 ;;
10441
10442 *)
10443 ld_shlibs=no
10444 ;;
10445 esac
10446
10447 if test x$host_vendor = xsni; then
10448 case $host in
10449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10450 export_dynamic_flag_spec='${wl}-Blargedynsym'
10451 ;;
10452 esac
10453 fi
10454 fi
10455
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10457 $as_echo "$ld_shlibs" >&6; }
10458 test "$ld_shlibs" = no && can_build_shared=no
10459
10460 with_gnu_ld=$with_gnu_ld
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476 #
10477 # Do we need to explicitly link libc?
10478 #
10479 case "x$archive_cmds_need_lc" in
10480 x|xyes)
10481 # Assume -lc should be added
10482 archive_cmds_need_lc=yes
10483
10484 if test "$enable_shared" = yes && test "$GCC" = yes; then
10485 case $archive_cmds in
10486 *'~'*)
10487 # FIXME: we may have to deal with multi-command sequences.
10488 ;;
10489 '$CC '*)
10490 # Test whether the compiler implicitly links with -lc since on some
10491 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10492 # to ld, don't add -lc before -lgcc.
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10494 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10495 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10498 $RM conftest*
10499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10500
10501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10502 (eval $ac_compile) 2>&5
10503 ac_status=$?
10504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10505 test $ac_status = 0; } 2>conftest.err; then
10506 soname=conftest
10507 lib=conftest
10508 libobjs=conftest.$ac_objext
10509 deplibs=
10510 wl=$lt_prog_compiler_wl
10511 pic_flag=$lt_prog_compiler_pic
10512 compiler_flags=-v
10513 linker_flags=-v
10514 verstring=
10515 output_objdir=.
10516 libname=conftest
10517 lt_save_allow_undefined_flag=$allow_undefined_flag
10518 allow_undefined_flag=
10519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10520 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10521 ac_status=$?
10522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10523 test $ac_status = 0; }
10524 then
10525 lt_cv_archive_cmds_need_lc=no
10526 else
10527 lt_cv_archive_cmds_need_lc=yes
10528 fi
10529 allow_undefined_flag=$lt_save_allow_undefined_flag
10530 else
10531 cat conftest.err 1>&5
10532 fi
10533 $RM conftest*
10534
10535 fi
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10537 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10538 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10539 ;;
10540 esac
10541 fi
10542 ;;
10543 esac
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10697 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10698
10699 if test "$GCC" = yes; then
10700 case $host_os in
10701 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10702 *) lt_awk_arg="/^libraries:/" ;;
10703 esac
10704 case $host_os in
10705 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10706 *) lt_sed_strip_eq="s,=/,/,g" ;;
10707 esac
10708 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10709 case $lt_search_path_spec in
10710 *\;*)
10711 # if the path contains ";" then we assume it to be the separator
10712 # otherwise default to the standard path separator (i.e. ":") - it is
10713 # assumed that no part of a normal pathname contains ";" but that should
10714 # okay in the real world where ";" in dirpaths is itself problematic.
10715 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10716 ;;
10717 *)
10718 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10719 ;;
10720 esac
10721 # Ok, now we have the path, separated by spaces, we can step through it
10722 # and add multilib dir if necessary.
10723 lt_tmp_lt_search_path_spec=
10724 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10725 for lt_sys_path in $lt_search_path_spec; do
10726 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10727 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10728 else
10729 test -d "$lt_sys_path" && \
10730 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10731 fi
10732 done
10733 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10734 BEGIN {RS=" "; FS="/|\n";} {
10735 lt_foo="";
10736 lt_count=0;
10737 for (lt_i = NF; lt_i > 0; lt_i--) {
10738 if ($lt_i != "" && $lt_i != ".") {
10739 if ($lt_i == "..") {
10740 lt_count++;
10741 } else {
10742 if (lt_count == 0) {
10743 lt_foo="/" $lt_i lt_foo;
10744 } else {
10745 lt_count--;
10746 }
10747 }
10748 }
10749 }
10750 if (lt_foo != "") { lt_freq[lt_foo]++; }
10751 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10752 }'`
10753 # AWK program above erroneously prepends '/' to C:/dos/paths
10754 # for these hosts.
10755 case $host_os in
10756 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10757 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10758 esac
10759 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10760 else
10761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10762 fi
10763 library_names_spec=
10764 libname_spec='lib$name'
10765 soname_spec=
10766 shrext_cmds=".so"
10767 postinstall_cmds=
10768 postuninstall_cmds=
10769 finish_cmds=
10770 finish_eval=
10771 shlibpath_var=
10772 shlibpath_overrides_runpath=unknown
10773 version_type=none
10774 dynamic_linker="$host_os ld.so"
10775 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10776 need_lib_prefix=unknown
10777 hardcode_into_libs=no
10778
10779 # when you set need_version to no, make sure it does not cause -set_version
10780 # flags to be left without arguments
10781 need_version=unknown
10782
10783 case $host_os in
10784 aix3*)
10785 version_type=linux # correct to gnu/linux during the next big refactor
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10787 shlibpath_var=LIBPATH
10788
10789 # AIX 3 has no versioning support, so we append a major version to the name.
10790 soname_spec='${libname}${release}${shared_ext}$major'
10791 ;;
10792
10793 aix[4-9]*)
10794 version_type=linux # correct to gnu/linux during the next big refactor
10795 need_lib_prefix=no
10796 need_version=no
10797 hardcode_into_libs=yes
10798 if test "$host_cpu" = ia64; then
10799 # AIX 5 supports IA64
10800 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 else
10803 # With GCC up to 2.95.x, collect2 would create an import file
10804 # for dependence libraries. The import file would start with
10805 # the line `#! .'. This would cause the generated library to
10806 # depend on `.', always an invalid library. This was fixed in
10807 # development snapshots of GCC prior to 3.0.
10808 case $host_os in
10809 aix4 | aix4.[01] | aix4.[01].*)
10810 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10811 echo ' yes '
10812 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10813 :
10814 else
10815 can_build_shared=no
10816 fi
10817 ;;
10818 esac
10819 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10820 # soname into executable. Probably we can add versioning support to
10821 # collect2, so additional links can be useful in future.
10822 if test "$aix_use_runtimelinking" = yes; then
10823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10824 # instead of lib<name>.a to let people know that these are not
10825 # typical AIX shared libraries.
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827 else
10828 # We preserve .a as extension for shared libraries through AIX4.2
10829 # and later when we are not doing run time linking.
10830 library_names_spec='${libname}${release}.a $libname.a'
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 fi
10833 shlibpath_var=LIBPATH
10834 fi
10835 ;;
10836
10837 amigaos*)
10838 case $host_cpu in
10839 powerpc)
10840 # Since July 2007 AmigaOS4 officially supports .so libraries.
10841 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843 ;;
10844 m68k)
10845 library_names_spec='$libname.ixlibrary $libname.a'
10846 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10847 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'
10848 ;;
10849 esac
10850 ;;
10851
10852 beos*)
10853 library_names_spec='${libname}${shared_ext}'
10854 dynamic_linker="$host_os ld.so"
10855 shlibpath_var=LIBRARY_PATH
10856 ;;
10857
10858 bsdi[45]*)
10859 version_type=linux # correct to gnu/linux during the next big refactor
10860 need_version=no
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 soname_spec='${libname}${release}${shared_ext}$major'
10863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10864 shlibpath_var=LD_LIBRARY_PATH
10865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10867 # the default ld.so.conf also contains /usr/contrib/lib and
10868 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10869 # libtool to hard-code these into programs
10870 ;;
10871
10872 cygwin* | mingw* | pw32* | cegcc*)
10873 version_type=windows
10874 shrext_cmds=".dll"
10875 need_version=no
10876 need_lib_prefix=no
10877
10878 case $GCC,$cc_basename in
10879 yes,*)
10880 # gcc
10881 library_names_spec='$libname.dll.a'
10882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10883 postinstall_cmds='base_file=`basename \${file}`~
10884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10885 dldir=$destdir/`dirname \$dlpath`~
10886 test -d \$dldir || mkdir -p \$dldir~
10887 $install_prog $dir/$dlname \$dldir/$dlname~
10888 chmod a+x \$dldir/$dlname~
10889 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10890 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10891 fi'
10892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10893 dlpath=$dir/\$dldll~
10894 $RM \$dlpath'
10895 shlibpath_overrides_runpath=yes
10896
10897 case $host_os in
10898 cygwin*)
10899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10900 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10901
10902 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10903 ;;
10904 mingw* | cegcc*)
10905 # MinGW DLLs use traditional 'lib' prefix
10906 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10907 ;;
10908 pw32*)
10909 # pw32 DLLs use 'pw' prefix rather than 'lib'
10910 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10911 ;;
10912 esac
10913 dynamic_linker='Win32 ld.exe'
10914 ;;
10915
10916 *,cl*)
10917 # Native MSVC
10918 libname_spec='$name'
10919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10920 library_names_spec='${libname}.dll.lib'
10921
10922 case $build_os in
10923 mingw*)
10924 sys_lib_search_path_spec=
10925 lt_save_ifs=$IFS
10926 IFS=';'
10927 for lt_path in $LIB
10928 do
10929 IFS=$lt_save_ifs
10930 # Let DOS variable expansion print the short 8.3 style file name.
10931 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10932 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10933 done
10934 IFS=$lt_save_ifs
10935 # Convert to MSYS style.
10936 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10937 ;;
10938 cygwin*)
10939 # Convert to unix form, then to dos form, then back to unix form
10940 # but this time dos style (no spaces!) so that the unix form looks
10941 # like /cygdrive/c/PROGRA~1:/cygdr...
10942 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10943 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10944 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10945 ;;
10946 *)
10947 sys_lib_search_path_spec="$LIB"
10948 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10949 # It is most probably a Windows format PATH.
10950 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10951 else
10952 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10953 fi
10954 # FIXME: find the short name or the path components, as spaces are
10955 # common. (e.g. "Program Files" -> "PROGRA~1")
10956 ;;
10957 esac
10958
10959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10960 postinstall_cmds='base_file=`basename \${file}`~
10961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10962 dldir=$destdir/`dirname \$dlpath`~
10963 test -d \$dldir || mkdir -p \$dldir~
10964 $install_prog $dir/$dlname \$dldir/$dlname'
10965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10966 dlpath=$dir/\$dldll~
10967 $RM \$dlpath'
10968 shlibpath_overrides_runpath=yes
10969 dynamic_linker='Win32 link.exe'
10970 ;;
10971
10972 *)
10973 # Assume MSVC wrapper
10974 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10975 dynamic_linker='Win32 ld.exe'
10976 ;;
10977 esac
10978 # FIXME: first we should search . and the directory the executable is in
10979 shlibpath_var=PATH
10980 ;;
10981
10982 darwin* | rhapsody*)
10983 dynamic_linker="$host_os dyld"
10984 version_type=darwin
10985 need_lib_prefix=no
10986 need_version=no
10987 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10988 soname_spec='${libname}${release}${major}$shared_ext'
10989 shlibpath_overrides_runpath=yes
10990 shlibpath_var=DYLD_LIBRARY_PATH
10991 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10992
10993 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10995 ;;
10996
10997 dgux*)
10998 version_type=linux # correct to gnu/linux during the next big refactor
10999 need_lib_prefix=no
11000 need_version=no
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 ;;
11005
11006 freebsd* | dragonfly*)
11007 # DragonFly does not have aout. When/if they implement a new
11008 # versioning mechanism, adjust this.
11009 if test -x /usr/bin/objformat; then
11010 objformat=`/usr/bin/objformat`
11011 else
11012 case $host_os in
11013 freebsd[23].*) objformat=aout ;;
11014 *) objformat=elf ;;
11015 esac
11016 fi
11017 version_type=freebsd-$objformat
11018 case $version_type in
11019 freebsd-elf*)
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11021 need_version=no
11022 need_lib_prefix=no
11023 ;;
11024 freebsd-*)
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11026 need_version=yes
11027 ;;
11028 esac
11029 shlibpath_var=LD_LIBRARY_PATH
11030 case $host_os in
11031 freebsd2.*)
11032 shlibpath_overrides_runpath=yes
11033 ;;
11034 freebsd3.[01]* | freebsdelf3.[01]*)
11035 shlibpath_overrides_runpath=yes
11036 hardcode_into_libs=yes
11037 ;;
11038 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11039 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11040 shlibpath_overrides_runpath=no
11041 hardcode_into_libs=yes
11042 ;;
11043 *) # from 4.6 on, and DragonFly
11044 shlibpath_overrides_runpath=yes
11045 hardcode_into_libs=yes
11046 ;;
11047 esac
11048 ;;
11049
11050 gnu*)
11051 version_type=linux # correct to gnu/linux during the next big refactor
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=no
11058 hardcode_into_libs=yes
11059 ;;
11060
11061 haiku*)
11062 version_type=linux # correct to gnu/linux during the next big refactor
11063 need_lib_prefix=no
11064 need_version=no
11065 dynamic_linker="$host_os runtime_loader"
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 shlibpath_var=LIBRARY_PATH
11069 shlibpath_overrides_runpath=yes
11070 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11071 hardcode_into_libs=yes
11072 ;;
11073
11074 hpux9* | hpux10* | hpux11*)
11075 # Give a soname corresponding to the major version so that dld.sl refuses to
11076 # link against other versions.
11077 version_type=sunos
11078 need_lib_prefix=no
11079 need_version=no
11080 case $host_cpu in
11081 ia64*)
11082 shrext_cmds='.so'
11083 hardcode_into_libs=yes
11084 dynamic_linker="$host_os dld.so"
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088 soname_spec='${libname}${release}${shared_ext}$major'
11089 if test "X$HPUX_IA64_MODE" = X32; then
11090 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11091 else
11092 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11093 fi
11094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11095 ;;
11096 hppa*64*)
11097 shrext_cmds='.sl'
11098 hardcode_into_libs=yes
11099 dynamic_linker="$host_os dld.sl"
11100 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11106 ;;
11107 *)
11108 shrext_cmds='.sl'
11109 dynamic_linker="$host_os dld.sl"
11110 shlibpath_var=SHLIB_PATH
11111 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 ;;
11115 esac
11116 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11117 postinstall_cmds='chmod 555 $lib'
11118 # or fails outright, so override atomically:
11119 install_override_mode=555
11120 ;;
11121
11122 interix[3-9]*)
11123 version_type=linux # correct to gnu/linux during the next big refactor
11124 need_lib_prefix=no
11125 need_version=no
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=no
11131 hardcode_into_libs=yes
11132 ;;
11133
11134 irix5* | irix6* | nonstopux*)
11135 case $host_os in
11136 nonstopux*) version_type=nonstopux ;;
11137 *)
11138 if test "$lt_cv_prog_gnu_ld" = yes; then
11139 version_type=linux # correct to gnu/linux during the next big refactor
11140 else
11141 version_type=irix
11142 fi ;;
11143 esac
11144 need_lib_prefix=no
11145 need_version=no
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11148 case $host_os in
11149 irix5* | nonstopux*)
11150 libsuff= shlibsuff=
11151 ;;
11152 *)
11153 case $LD in # libtool.m4 will add one of these switches to LD
11154 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11155 libsuff= shlibsuff= libmagic=32-bit;;
11156 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11157 libsuff=32 shlibsuff=N32 libmagic=N32;;
11158 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11159 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11160 *) libsuff= shlibsuff= libmagic=never-match;;
11161 esac
11162 ;;
11163 esac
11164 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11165 shlibpath_overrides_runpath=no
11166 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11167 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11168 hardcode_into_libs=yes
11169 ;;
11170
11171 # No shared lib support for Linux oldld, aout, or coff.
11172 linux*oldld* | linux*aout* | linux*coff*)
11173 dynamic_linker=no
11174 ;;
11175
11176 # This must be glibc/ELF.
11177 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11178 version_type=linux # correct to gnu/linux during the next big refactor
11179 need_lib_prefix=no
11180 need_version=no
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 shlibpath_overrides_runpath=no
11186
11187 # Some binutils ld are patched to set DT_RUNPATH
11188 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 lt_cv_shlibpath_overrides_runpath=no
11192 save_LDFLAGS=$LDFLAGS
11193 save_libdir=$libdir
11194 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11195 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11198
11199 int
11200 main ()
11201 {
11202
11203 ;
11204 return 0;
11205 }
11206 _ACEOF
11207 if ac_fn_c_try_link "$LINENO"; then :
11208 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11209 lt_cv_shlibpath_overrides_runpath=yes
11210 fi
11211 fi
11212 rm -f core conftest.err conftest.$ac_objext \
11213 conftest$ac_exeext conftest.$ac_ext
11214 LDFLAGS=$save_LDFLAGS
11215 libdir=$save_libdir
11216
11217 fi
11218
11219 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11220
11221 # This implies no fast_install, which is unacceptable.
11222 # Some rework will be needed to allow for fast_install
11223 # before this can be enabled.
11224 hardcode_into_libs=yes
11225
11226 # Add ABI-specific directories to the system library path.
11227 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11228
11229 # Append ld.so.conf contents to the search path
11230 if test -f /etc/ld.so.conf; then
11231 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' ' '`
11232 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11233
11234 fi
11235
11236 # We used to test for /lib/ld.so.1 and disable shared libraries on
11237 # powerpc, because MkLinux only supported shared libraries with the
11238 # GNU dynamic linker. Since this was broken with cross compilers,
11239 # most powerpc-linux boxes support dynamic linking these days and
11240 # people can always --disable-shared, the test was removed, and we
11241 # assume the GNU/Linux dynamic linker is in use.
11242 dynamic_linker='GNU/Linux ld.so'
11243 ;;
11244
11245 netbsd*)
11246 version_type=sunos
11247 need_lib_prefix=no
11248 need_version=no
11249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11252 dynamic_linker='NetBSD (a.out) ld.so'
11253 else
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 dynamic_linker='NetBSD ld.elf_so'
11257 fi
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes
11260 hardcode_into_libs=yes
11261 ;;
11262
11263 newsos6)
11264 version_type=linux # correct to gnu/linux during the next big refactor
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=yes
11268 ;;
11269
11270 *nto* | *qnx*)
11271 version_type=qnx
11272 need_lib_prefix=no
11273 need_version=no
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=no
11278 hardcode_into_libs=yes
11279 dynamic_linker='ldqnx.so'
11280 ;;
11281
11282 openbsd*)
11283 version_type=sunos
11284 sys_lib_dlsearch_path_spec="/usr/lib"
11285 need_lib_prefix=no
11286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11287 case $host_os in
11288 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11289 *) need_version=no ;;
11290 esac
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11295 case $host_os in
11296 openbsd2.[89] | openbsd2.[89].*)
11297 shlibpath_overrides_runpath=no
11298 ;;
11299 *)
11300 shlibpath_overrides_runpath=yes
11301 ;;
11302 esac
11303 else
11304 shlibpath_overrides_runpath=yes
11305 fi
11306 ;;
11307
11308 os2*)
11309 libname_spec='$name'
11310 shrext_cmds=".dll"
11311 need_lib_prefix=no
11312 library_names_spec='$libname${shared_ext} $libname.a'
11313 dynamic_linker='OS/2 ld.exe'
11314 shlibpath_var=LIBPATH
11315 ;;
11316
11317 osf3* | osf4* | osf5*)
11318 version_type=osf
11319 need_lib_prefix=no
11320 need_version=no
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11323 shlibpath_var=LD_LIBRARY_PATH
11324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11326 ;;
11327
11328 rdos*)
11329 dynamic_linker=no
11330 ;;
11331
11332 solaris*)
11333 version_type=linux # correct to gnu/linux during the next big refactor
11334 need_lib_prefix=no
11335 need_version=no
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337 soname_spec='${libname}${release}${shared_ext}$major'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 shlibpath_overrides_runpath=yes
11340 hardcode_into_libs=yes
11341 # ldd complains unless libraries are executable
11342 postinstall_cmds='chmod +x $lib'
11343 ;;
11344
11345 sunos4*)
11346 version_type=sunos
11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=yes
11351 if test "$with_gnu_ld" = yes; then
11352 need_lib_prefix=no
11353 fi
11354 need_version=yes
11355 ;;
11356
11357 sysv4 | sysv4.3*)
11358 version_type=linux # correct to gnu/linux during the next big refactor
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 case $host_vendor in
11363 sni)
11364 shlibpath_overrides_runpath=no
11365 need_lib_prefix=no
11366 runpath_var=LD_RUN_PATH
11367 ;;
11368 siemens)
11369 need_lib_prefix=no
11370 ;;
11371 motorola)
11372 need_lib_prefix=no
11373 need_version=no
11374 shlibpath_overrides_runpath=no
11375 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11376 ;;
11377 esac
11378 ;;
11379
11380 sysv4*MP*)
11381 if test -d /usr/nec ;then
11382 version_type=linux # correct to gnu/linux during the next big refactor
11383 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11384 soname_spec='$libname${shared_ext}.$major'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 fi
11387 ;;
11388
11389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11390 version_type=freebsd-elf
11391 need_lib_prefix=no
11392 need_version=no
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 shlibpath_var=LD_LIBRARY_PATH
11396 shlibpath_overrides_runpath=yes
11397 hardcode_into_libs=yes
11398 if test "$with_gnu_ld" = yes; then
11399 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11400 else
11401 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11402 case $host_os in
11403 sco3.2v5*)
11404 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11405 ;;
11406 esac
11407 fi
11408 sys_lib_dlsearch_path_spec='/usr/lib'
11409 ;;
11410
11411 tpf*)
11412 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11413 version_type=linux # correct to gnu/linux during the next big refactor
11414 need_lib_prefix=no
11415 need_version=no
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417 shlibpath_var=LD_LIBRARY_PATH
11418 shlibpath_overrides_runpath=no
11419 hardcode_into_libs=yes
11420 ;;
11421
11422 uts4*)
11423 version_type=linux # correct to gnu/linux during the next big refactor
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 ;;
11428
11429 *)
11430 dynamic_linker=no
11431 ;;
11432 esac
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11434 $as_echo "$dynamic_linker" >&6; }
11435 test "$dynamic_linker" = no && can_build_shared=no
11436
11437 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11438 if test "$GCC" = yes; then
11439 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11440 fi
11441
11442 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11443 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11444 fi
11445 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11446 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11447 fi
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11541 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11542 hardcode_action=
11543 if test -n "$hardcode_libdir_flag_spec" ||
11544 test -n "$runpath_var" ||
11545 test "X$hardcode_automatic" = "Xyes" ; then
11546
11547 # We can hardcode non-existent directories.
11548 if test "$hardcode_direct" != no &&
11549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11550 # have to relink, otherwise we might link with an installed library
11551 # when we should be linking with a yet-to-be-installed one
11552 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11553 test "$hardcode_minus_L" != no; then
11554 # Linking always hardcodes the temporary library directory.
11555 hardcode_action=relink
11556 else
11557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11558 hardcode_action=immediate
11559 fi
11560 else
11561 # We cannot hardcode anything, or else we can only hardcode existing
11562 # directories.
11563 hardcode_action=unsupported
11564 fi
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11566 $as_echo "$hardcode_action" >&6; }
11567
11568 if test "$hardcode_action" = relink ||
11569 test "$inherit_rpath" = yes; then
11570 # Fast installation is not supported
11571 enable_fast_install=no
11572 elif test "$shlibpath_overrides_runpath" = yes ||
11573 test "$enable_shared" = no; then
11574 # Fast installation is not necessary
11575 enable_fast_install=needless
11576 fi
11577
11578
11579
11580
11581
11582
11583 if test "x$enable_dlopen" != xyes; then
11584 enable_dlopen=unknown
11585 enable_dlopen_self=unknown
11586 enable_dlopen_self_static=unknown
11587 else
11588 lt_cv_dlopen=no
11589 lt_cv_dlopen_libs=
11590
11591 case $host_os in
11592 beos*)
11593 lt_cv_dlopen="load_add_on"
11594 lt_cv_dlopen_libs=
11595 lt_cv_dlopen_self=yes
11596 ;;
11597
11598 mingw* | pw32* | cegcc*)
11599 lt_cv_dlopen="LoadLibrary"
11600 lt_cv_dlopen_libs=
11601 ;;
11602
11603 cygwin*)
11604 lt_cv_dlopen="dlopen"
11605 lt_cv_dlopen_libs=
11606 ;;
11607
11608 darwin*)
11609 # if libdl is installed we need to link against it
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11611 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11612 if ${ac_cv_lib_dl_dlopen+:} false; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-ldl $LIBS"
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11619
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char dlopen ();
11627 int
11628 main ()
11629 {
11630 return dlopen ();
11631 ;
11632 return 0;
11633 }
11634 _ACEOF
11635 if ac_fn_c_try_link "$LINENO"; then :
11636 ac_cv_lib_dl_dlopen=yes
11637 else
11638 ac_cv_lib_dl_dlopen=no
11639 fi
11640 rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642 LIBS=$ac_check_lib_save_LIBS
11643 fi
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11645 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11646 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11648 else
11649
11650 lt_cv_dlopen="dyld"
11651 lt_cv_dlopen_libs=
11652 lt_cv_dlopen_self=yes
11653
11654 fi
11655
11656 ;;
11657
11658 *)
11659 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11660 if test "x$ac_cv_func_shl_load" = xyes; then :
11661 lt_cv_dlopen="shl_load"
11662 else
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11664 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11665 if ${ac_cv_lib_dld_shl_load+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 ac_check_lib_save_LIBS=$LIBS
11669 LIBS="-ldld $LIBS"
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11672
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char shl_load ();
11680 int
11681 main ()
11682 {
11683 return shl_load ();
11684 ;
11685 return 0;
11686 }
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"; then :
11689 ac_cv_lib_dld_shl_load=yes
11690 else
11691 ac_cv_lib_dld_shl_load=no
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11698 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11699 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11700 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11701 else
11702 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11703 if test "x$ac_cv_func_dlopen" = xyes; then :
11704 lt_cv_dlopen="dlopen"
11705 else
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11707 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11708 if ${ac_cv_lib_dl_dlopen+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 ac_check_lib_save_LIBS=$LIBS
11712 LIBS="-ldl $LIBS"
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11715
11716 /* Override any GCC internal prototype to avoid an error.
11717 Use char because int might match the return type of a GCC
11718 builtin and then its argument prototype would still apply. */
11719 #ifdef __cplusplus
11720 extern "C"
11721 #endif
11722 char dlopen ();
11723 int
11724 main ()
11725 {
11726 return dlopen ();
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 if ac_fn_c_try_link "$LINENO"; then :
11732 ac_cv_lib_dl_dlopen=yes
11733 else
11734 ac_cv_lib_dl_dlopen=no
11735 fi
11736 rm -f core conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11741 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11742 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11744 else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11746 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11747 if ${ac_cv_lib_svld_dlopen+:} false; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 ac_check_lib_save_LIBS=$LIBS
11751 LIBS="-lsvld $LIBS"
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11754
11755 /* Override any GCC internal prototype to avoid an error.
11756 Use char because int might match the return type of a GCC
11757 builtin and then its argument prototype would still apply. */
11758 #ifdef __cplusplus
11759 extern "C"
11760 #endif
11761 char dlopen ();
11762 int
11763 main ()
11764 {
11765 return dlopen ();
11766 ;
11767 return 0;
11768 }
11769 _ACEOF
11770 if ac_fn_c_try_link "$LINENO"; then :
11771 ac_cv_lib_svld_dlopen=yes
11772 else
11773 ac_cv_lib_svld_dlopen=no
11774 fi
11775 rm -f core conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 LIBS=$ac_check_lib_save_LIBS
11778 fi
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11780 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11781 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11783 else
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11785 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11786 if ${ac_cv_lib_dld_dld_link+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 ac_check_lib_save_LIBS=$LIBS
11790 LIBS="-ldld $LIBS"
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11793
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char dld_link ();
11801 int
11802 main ()
11803 {
11804 return dld_link ();
11805 ;
11806 return 0;
11807 }
11808 _ACEOF
11809 if ac_fn_c_try_link "$LINENO"; then :
11810 ac_cv_lib_dld_dld_link=yes
11811 else
11812 ac_cv_lib_dld_dld_link=no
11813 fi
11814 rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_lib_save_LIBS
11817 fi
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11819 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11820 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11821 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11822 fi
11823
11824
11825 fi
11826
11827
11828 fi
11829
11830
11831 fi
11832
11833
11834 fi
11835
11836
11837 fi
11838
11839 ;;
11840 esac
11841
11842 if test "x$lt_cv_dlopen" != xno; then
11843 enable_dlopen=yes
11844 else
11845 enable_dlopen=no
11846 fi
11847
11848 case $lt_cv_dlopen in
11849 dlopen)
11850 save_CPPFLAGS="$CPPFLAGS"
11851 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11852
11853 save_LDFLAGS="$LDFLAGS"
11854 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11855
11856 save_LIBS="$LIBS"
11857 LIBS="$lt_cv_dlopen_libs $LIBS"
11858
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11860 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11861 if ${lt_cv_dlopen_self+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 if test "$cross_compiling" = yes; then :
11865 lt_cv_dlopen_self=cross
11866 else
11867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11868 lt_status=$lt_dlunknown
11869 cat > conftest.$ac_ext <<_LT_EOF
11870 #line $LINENO "configure"
11871 #include "confdefs.h"
11872
11873 #if HAVE_DLFCN_H
11874 #include <dlfcn.h>
11875 #endif
11876
11877 #include <stdio.h>
11878
11879 #ifdef RTLD_GLOBAL
11880 # define LT_DLGLOBAL RTLD_GLOBAL
11881 #else
11882 # ifdef DL_GLOBAL
11883 # define LT_DLGLOBAL DL_GLOBAL
11884 # else
11885 # define LT_DLGLOBAL 0
11886 # endif
11887 #endif
11888
11889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11890 find out it does not work in some platform. */
11891 #ifndef LT_DLLAZY_OR_NOW
11892 # ifdef RTLD_LAZY
11893 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11894 # else
11895 # ifdef DL_LAZY
11896 # define LT_DLLAZY_OR_NOW DL_LAZY
11897 # else
11898 # ifdef RTLD_NOW
11899 # define LT_DLLAZY_OR_NOW RTLD_NOW
11900 # else
11901 # ifdef DL_NOW
11902 # define LT_DLLAZY_OR_NOW DL_NOW
11903 # else
11904 # define LT_DLLAZY_OR_NOW 0
11905 # endif
11906 # endif
11907 # endif
11908 # endif
11909 #endif
11910
11911 /* When -fvisbility=hidden is used, assume the code has been annotated
11912 correspondingly for the symbols needed. */
11913 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11914 int fnord () __attribute__((visibility("default")));
11915 #endif
11916
11917 int fnord () { return 42; }
11918 int main ()
11919 {
11920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11921 int status = $lt_dlunknown;
11922
11923 if (self)
11924 {
11925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11926 else
11927 {
11928 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11929 else puts (dlerror ());
11930 }
11931 /* dlclose (self); */
11932 }
11933 else
11934 puts (dlerror ());
11935
11936 return status;
11937 }
11938 _LT_EOF
11939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11940 (eval $ac_link) 2>&5
11941 ac_status=$?
11942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11943 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11944 (./conftest; exit; ) >&5 2>/dev/null
11945 lt_status=$?
11946 case x$lt_status in
11947 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11948 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11949 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11950 esac
11951 else :
11952 # compilation failed
11953 lt_cv_dlopen_self=no
11954 fi
11955 fi
11956 rm -fr conftest*
11957
11958
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11961 $as_echo "$lt_cv_dlopen_self" >&6; }
11962
11963 if test "x$lt_cv_dlopen_self" = xyes; then
11964 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11966 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11967 if ${lt_cv_dlopen_self_static+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 if test "$cross_compiling" = yes; then :
11971 lt_cv_dlopen_self_static=cross
11972 else
11973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11974 lt_status=$lt_dlunknown
11975 cat > conftest.$ac_ext <<_LT_EOF
11976 #line $LINENO "configure"
11977 #include "confdefs.h"
11978
11979 #if HAVE_DLFCN_H
11980 #include <dlfcn.h>
11981 #endif
11982
11983 #include <stdio.h>
11984
11985 #ifdef RTLD_GLOBAL
11986 # define LT_DLGLOBAL RTLD_GLOBAL
11987 #else
11988 # ifdef DL_GLOBAL
11989 # define LT_DLGLOBAL DL_GLOBAL
11990 # else
11991 # define LT_DLGLOBAL 0
11992 # endif
11993 #endif
11994
11995 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11996 find out it does not work in some platform. */
11997 #ifndef LT_DLLAZY_OR_NOW
11998 # ifdef RTLD_LAZY
11999 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12000 # else
12001 # ifdef DL_LAZY
12002 # define LT_DLLAZY_OR_NOW DL_LAZY
12003 # else
12004 # ifdef RTLD_NOW
12005 # define LT_DLLAZY_OR_NOW RTLD_NOW
12006 # else
12007 # ifdef DL_NOW
12008 # define LT_DLLAZY_OR_NOW DL_NOW
12009 # else
12010 # define LT_DLLAZY_OR_NOW 0
12011 # endif
12012 # endif
12013 # endif
12014 # endif
12015 #endif
12016
12017 /* When -fvisbility=hidden is used, assume the code has been annotated
12018 correspondingly for the symbols needed. */
12019 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12020 int fnord () __attribute__((visibility("default")));
12021 #endif
12022
12023 int fnord () { return 42; }
12024 int main ()
12025 {
12026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12027 int status = $lt_dlunknown;
12028
12029 if (self)
12030 {
12031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12032 else
12033 {
12034 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12035 else puts (dlerror ());
12036 }
12037 /* dlclose (self); */
12038 }
12039 else
12040 puts (dlerror ());
12041
12042 return status;
12043 }
12044 _LT_EOF
12045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12046 (eval $ac_link) 2>&5
12047 ac_status=$?
12048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12049 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12050 (./conftest; exit; ) >&5 2>/dev/null
12051 lt_status=$?
12052 case x$lt_status in
12053 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12054 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12055 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12056 esac
12057 else :
12058 # compilation failed
12059 lt_cv_dlopen_self_static=no
12060 fi
12061 fi
12062 rm -fr conftest*
12063
12064
12065 fi
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12067 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12068 fi
12069
12070 CPPFLAGS="$save_CPPFLAGS"
12071 LDFLAGS="$save_LDFLAGS"
12072 LIBS="$save_LIBS"
12073 ;;
12074 esac
12075
12076 case $lt_cv_dlopen_self in
12077 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12078 *) enable_dlopen_self=unknown ;;
12079 esac
12080
12081 case $lt_cv_dlopen_self_static in
12082 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12083 *) enable_dlopen_self_static=unknown ;;
12084 esac
12085 fi
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103 striplib=
12104 old_striplib=
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12106 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12107 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12108 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12109 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12111 $as_echo "yes" >&6; }
12112 else
12113 # FIXME - insert some real tests, host_os isn't really good enough
12114 case $host_os in
12115 darwin*)
12116 if test -n "$STRIP" ; then
12117 striplib="$STRIP -x"
12118 old_striplib="$STRIP -S"
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12120 $as_echo "yes" >&6; }
12121 else
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12124 fi
12125 ;;
12126 *)
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12129 ;;
12130 esac
12131 fi
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144 # Report which library types will actually be built
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12146 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12148 $as_echo "$can_build_shared" >&6; }
12149
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12151 $as_echo_n "checking whether to build shared libraries... " >&6; }
12152 test "$can_build_shared" = "no" && enable_shared=no
12153
12154 # On AIX, shared libraries and static libraries use the same namespace, and
12155 # are all built from PIC.
12156 case $host_os in
12157 aix3*)
12158 test "$enable_shared" = yes && enable_static=no
12159 if test -n "$RANLIB"; then
12160 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12161 postinstall_cmds='$RANLIB $lib'
12162 fi
12163 ;;
12164
12165 aix[4-9]*)
12166 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12167 test "$enable_shared" = yes && enable_static=no
12168 fi
12169 ;;
12170 esac
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12172 $as_echo "$enable_shared" >&6; }
12173
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12175 $as_echo_n "checking whether to build static libraries... " >&6; }
12176 # Make sure either enable_shared or enable_static is yes.
12177 test "$enable_shared" = yes || enable_static=yes
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12179 $as_echo "$enable_static" >&6; }
12180
12181
12182
12183
12184 fi
12185 ac_ext=c
12186 ac_cpp='$CPP $CPPFLAGS'
12187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12190
12191 CC="$lt_save_CC"
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207 ac_config_commands="$ac_config_commands libtool"
12208
12209
12210
12211
12212 # Only expand once:
12213
12214
12215
12216 if test "$PS" = "ps"
12217 then
12218 as_fn_error $? "Cannot find pathname to ps" "$LINENO" 5
12219 fi
12220
12221 if test x$GXX = xyes
12222 then
12223 CFLAGS="-Wall $CFLAGS"
12224 fi
12225
12226 CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
12227
12228
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12230 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12231 if ${ac_cv_header_sys_wait_h+:} false; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236 #include <sys/types.h>
12237 #include <sys/wait.h>
12238 #ifndef WEXITSTATUS
12239 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12240 #endif
12241 #ifndef WIFEXITED
12242 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12243 #endif
12244
12245 int
12246 main ()
12247 {
12248 int s;
12249 wait (&s);
12250 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 if ac_fn_c_try_compile "$LINENO"; then :
12256 ac_cv_header_sys_wait_h=yes
12257 else
12258 ac_cv_header_sys_wait_h=no
12259 fi
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 fi
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12263 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12264 if test $ac_cv_header_sys_wait_h = yes; then
12265
12266 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12267
12268 fi
12269
12270 for ac_header in unistd.h fcntl.h
12271 do :
12272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12273 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12274 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12275 cat >>confdefs.h <<_ACEOF
12276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12277 _ACEOF
12278
12279 fi
12280
12281 done
12282
12283
12284 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12285 if test "x$ac_cv_type_pid_t" = xyes; then :
12286
12287 else
12288
12289 cat >>confdefs.h <<_ACEOF
12290 #define pid_t int
12291 _ACEOF
12292
12293 fi
12294
12295 # Check whether --enable-largefile was given.
12296 if test "${enable_largefile+set}" = set; then :
12297 enableval=$enable_largefile;
12298 fi
12299
12300 if test "$enable_largefile" != no; then
12301
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12303 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12304 if ${ac_cv_sys_largefile_CC+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 ac_cv_sys_largefile_CC=no
12308 if test "$GCC" != yes; then
12309 ac_save_CC=$CC
12310 while :; do
12311 # IRIX 6.2 and later do not support large files by default,
12312 # so use the C compiler's -n32 option if that helps.
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315 #include <sys/types.h>
12316 /* Check that off_t can represent 2**63 - 1 correctly.
12317 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12318 since some C++ compilers masquerading as C compilers
12319 incorrectly reject 9223372036854775807. */
12320 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12321 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12322 && LARGE_OFF_T % 2147483647 == 1)
12323 ? 1 : -1];
12324 int
12325 main ()
12326 {
12327
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 if ac_fn_c_try_compile "$LINENO"; then :
12333 break
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext
12336 CC="$CC -n32"
12337 if ac_fn_c_try_compile "$LINENO"; then :
12338 ac_cv_sys_largefile_CC=' -n32'; break
12339 fi
12340 rm -f core conftest.err conftest.$ac_objext
12341 break
12342 done
12343 CC=$ac_save_CC
12344 rm -f conftest.$ac_ext
12345 fi
12346 fi
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12348 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12349 if test "$ac_cv_sys_largefile_CC" != no; then
12350 CC=$CC$ac_cv_sys_largefile_CC
12351 fi
12352
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12354 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12355 if ${ac_cv_sys_file_offset_bits+:} false; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 while :; do
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361 #include <sys/types.h>
12362 /* Check that off_t can represent 2**63 - 1 correctly.
12363 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12364 since some C++ compilers masquerading as C compilers
12365 incorrectly reject 9223372036854775807. */
12366 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12367 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12368 && LARGE_OFF_T % 2147483647 == 1)
12369 ? 1 : -1];
12370 int
12371 main ()
12372 {
12373
12374 ;
12375 return 0;
12376 }
12377 _ACEOF
12378 if ac_fn_c_try_compile "$LINENO"; then :
12379 ac_cv_sys_file_offset_bits=no; break
12380 fi
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12384 #define _FILE_OFFSET_BITS 64
12385 #include <sys/types.h>
12386 /* Check that off_t can represent 2**63 - 1 correctly.
12387 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12388 since some C++ compilers masquerading as C compilers
12389 incorrectly reject 9223372036854775807. */
12390 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12391 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12392 && LARGE_OFF_T % 2147483647 == 1)
12393 ? 1 : -1];
12394 int
12395 main ()
12396 {
12397
12398 ;
12399 return 0;
12400 }
12401 _ACEOF
12402 if ac_fn_c_try_compile "$LINENO"; then :
12403 ac_cv_sys_file_offset_bits=64; break
12404 fi
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 ac_cv_sys_file_offset_bits=unknown
12407 break
12408 done
12409 fi
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12411 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12412 case $ac_cv_sys_file_offset_bits in #(
12413 no | unknown) ;;
12414 *)
12415 cat >>confdefs.h <<_ACEOF
12416 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12417 _ACEOF
12418 ;;
12419 esac
12420 rm -rf conftest*
12421 if test $ac_cv_sys_file_offset_bits = unknown; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12423 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12424 if ${ac_cv_sys_large_files+:} false; then :
12425 $as_echo_n "(cached) " >&6
12426 else
12427 while :; do
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430 #include <sys/types.h>
12431 /* Check that off_t can represent 2**63 - 1 correctly.
12432 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12433 since some C++ compilers masquerading as C compilers
12434 incorrectly reject 9223372036854775807. */
12435 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12436 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12437 && LARGE_OFF_T % 2147483647 == 1)
12438 ? 1 : -1];
12439 int
12440 main ()
12441 {
12442
12443 ;
12444 return 0;
12445 }
12446 _ACEOF
12447 if ac_fn_c_try_compile "$LINENO"; then :
12448 ac_cv_sys_large_files=no; break
12449 fi
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12453 #define _LARGE_FILES 1
12454 #include <sys/types.h>
12455 /* Check that off_t can represent 2**63 - 1 correctly.
12456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12457 since some C++ compilers masquerading as C compilers
12458 incorrectly reject 9223372036854775807. */
12459 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12461 && LARGE_OFF_T % 2147483647 == 1)
12462 ? 1 : -1];
12463 int
12464 main ()
12465 {
12466
12467 ;
12468 return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_c_try_compile "$LINENO"; then :
12472 ac_cv_sys_large_files=1; break
12473 fi
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 ac_cv_sys_large_files=unknown
12476 break
12477 done
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12480 $as_echo "$ac_cv_sys_large_files" >&6; }
12481 case $ac_cv_sys_large_files in #(
12482 no | unknown) ;;
12483 *)
12484 cat >>confdefs.h <<_ACEOF
12485 #define _LARGE_FILES $ac_cv_sys_large_files
12486 _ACEOF
12487 ;;
12488 esac
12489 rm -rf conftest*
12490 fi
12491
12492
12493 fi
12494
12495
12496
12497 # Check whether --with-random was given.
12498 if test "${with_random+set}" = set; then :
12499 withval=$with_random; random="$withval"
12500 else
12501 random="y"
12502 fi
12503
12504
12505 case "$random" in
12506 /*)
12507 ;;
12508 y*|1*)
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5
12510 $as_echo_n "checking for random source... " >&6; }
12511 if ${random_cv_RANDOM+:} false; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 if test -c /dev/urandom
12515 then
12516 random_cv_RANDOM=/dev/urandom
12517 else
12518 if test -c /dev/random
12519 then
12520 random_cv_RANDOM=/dev/random
12521 else
12522 random_cv_RANDOM="none"
12523 fi
12524 fi
12525
12526 fi
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_RANDOM" >&5
12528 $as_echo "$random_cv_RANDOM" >&6; }
12529 random="$random_cv_RANDOM"
12530 ;;
12531 *)
12532 random="none"
12533 ;;
12534 esac
12535
12536 if test "$random" != "none"
12537 then
12538
12539 cat >>confdefs.h <<_ACEOF
12540 #define RANDOM "$random"
12541 _ACEOF
12542
12543 fi
12544
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some good options for ps" >&5
12546 $as_echo_n "checking for some good options for ps... " >&6; }
12547 if ${random_cv_PS_OPTIONS+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
12551 do
12552 ps $opts >/dev/null 2>/dev/null || continue
12553 break
12554 done
12555 random_cv_PS_OPTIONS="$opts"
12556
12557 fi
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_PS_OPTIONS" >&5
12559 $as_echo "$random_cv_PS_OPTIONS" >&6; }
12560
12561
12562 cat >>confdefs.h <<_ACEOF
12563 #define PS_OPTIONS "$random_cv_PS_OPTIONS"
12564 _ACEOF
12565
12566
12567 cat >>confdefs.h <<_ACEOF
12568 #define PS "$PS"
12569 _ACEOF
12570
12571
12572 if test "$W" != "w"
12573 then
12574
12575 cat >>confdefs.h <<_ACEOF
12576 #define W "$w"
12577 _ACEOF
12578
12579 fi
12580
12581 ac_config_files="$ac_config_files Makefile"
12582
12583 cat >confcache <<\_ACEOF
12584 # This file is a shell script that caches the results of configure
12585 # tests run on this system so they can be shared between configure
12586 # scripts and configure runs, see configure's option --config-cache.
12587 # It is not useful on other systems. If it contains results you don't
12588 # want to keep, you may remove or edit it.
12589 #
12590 # config.status only pays attention to the cache file if you give it
12591 # the --recheck option to rerun configure.
12592 #
12593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12595 # following values.
12596
12597 _ACEOF
12598
12599 # The following way of writing the cache mishandles newlines in values,
12600 # but we know of no workaround that is simple, portable, and efficient.
12601 # So, we kill variables containing newlines.
12602 # Ultrix sh set writes to stderr and can't be redirected directly,
12603 # and sets the high bit in the cache file unless we assign to the vars.
12604 (
12605 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12606 eval ac_val=\$$ac_var
12607 case $ac_val in #(
12608 *${as_nl}*)
12609 case $ac_var in #(
12610 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12611 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12612 esac
12613 case $ac_var in #(
12614 _ | IFS | as_nl) ;; #(
12615 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12616 *) { eval $ac_var=; unset $ac_var;} ;;
12617 esac ;;
12618 esac
12619 done
12620
12621 (set) 2>&1 |
12622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12623 *${as_nl}ac_space=\ *)
12624 # `set' does not quote correctly, so add quotes: double-quote
12625 # substitution turns \\\\ into \\, and sed turns \\ into \.
12626 sed -n \
12627 "s/'/'\\\\''/g;
12628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12629 ;; #(
12630 *)
12631 # `set' quotes correctly as required by POSIX, so do not add quotes.
12632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12633 ;;
12634 esac |
12635 sort
12636 ) |
12637 sed '
12638 /^ac_cv_env_/b end
12639 t clear
12640 :clear
12641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12642 t end
12643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12644 :end' >>confcache
12645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12646 if test -w "$cache_file"; then
12647 if test "x$cache_file" != "x/dev/null"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12649 $as_echo "$as_me: updating cache $cache_file" >&6;}
12650 if test ! -f "$cache_file" || test -h "$cache_file"; then
12651 cat confcache >"$cache_file"
12652 else
12653 case $cache_file in #(
12654 */* | ?:*)
12655 mv -f confcache "$cache_file"$$ &&
12656 mv -f "$cache_file"$$ "$cache_file" ;; #(
12657 *)
12658 mv -f confcache "$cache_file" ;;
12659 esac
12660 fi
12661 fi
12662 else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12664 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12665 fi
12666 fi
12667 rm -f confcache
12668
12669 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12670 # Let make expand exec_prefix.
12671 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12672
12673 DEFS=-DHAVE_CONFIG_H
12674
12675 ac_libobjs=
12676 ac_ltlibobjs=
12677 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12678 # 1. Remove the extension, and $U if already installed.
12679 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12680 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12681 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12682 # will be set to the directory where LIBOBJS objects are built.
12683 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12684 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12685 done
12686 LIBOBJS=$ac_libobjs
12687
12688 LTLIBOBJS=$ac_ltlibobjs
12689
12690
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12692 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12693 if test -n "$am_sleep_pid"; then
12694 # Hide warnings about reused PIDs.
12695 wait $am_sleep_pid 2>/dev/null
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12698 $as_echo "done" >&6; }
12699 if test -n "$EXEEXT"; then
12700 am__EXEEXT_TRUE=
12701 am__EXEEXT_FALSE='#'
12702 else
12703 am__EXEEXT_TRUE='#'
12704 am__EXEEXT_FALSE=
12705 fi
12706
12707 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12708 as_fn_error $? "conditional \"AMDEP\" was never defined.
12709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12710 fi
12711 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12712 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12714 fi
12715 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12716 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12718 fi
12719
12720 : "${CONFIG_STATUS=./config.status}"
12721 ac_write_fail=0
12722 ac_clean_files_save=$ac_clean_files
12723 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12725 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12726 as_write_fail=0
12727 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12728 #! $SHELL
12729 # Generated by $as_me.
12730 # Run this file to recreate the current configuration.
12731 # Compiler output produced by configure, useful for debugging
12732 # configure, is in config.log if it exists.
12733
12734 debug=false
12735 ac_cs_recheck=false
12736 ac_cs_silent=false
12737
12738 SHELL=\${CONFIG_SHELL-$SHELL}
12739 export SHELL
12740 _ASEOF
12741 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12742 ## -------------------- ##
12743 ## M4sh Initialization. ##
12744 ## -------------------- ##
12745
12746 # Be more Bourne compatible
12747 DUALCASE=1; export DUALCASE # for MKS sh
12748 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12749 emulate sh
12750 NULLCMD=:
12751 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12752 # is contrary to our usage. Disable this feature.
12753 alias -g '${1+"$@"}'='"$@"'
12754 setopt NO_GLOB_SUBST
12755 else
12756 case `(set -o) 2>/dev/null` in #(
12757 *posix*) :
12758 set -o posix ;; #(
12759 *) :
12760 ;;
12761 esac
12762 fi
12763
12764
12765 as_nl='
12766 '
12767 export as_nl
12768 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12769 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12770 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12772 # Prefer a ksh shell builtin over an external printf program on Solaris,
12773 # but without wasting forks for bash or zsh.
12774 if test -z "$BASH_VERSION$ZSH_VERSION" \
12775 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12776 as_echo='print -r --'
12777 as_echo_n='print -rn --'
12778 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12779 as_echo='printf %s\n'
12780 as_echo_n='printf %s'
12781 else
12782 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12783 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12784 as_echo_n='/usr/ucb/echo -n'
12785 else
12786 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12787 as_echo_n_body='eval
12788 arg=$1;
12789 case $arg in #(
12790 *"$as_nl"*)
12791 expr "X$arg" : "X\\(.*\\)$as_nl";
12792 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12793 esac;
12794 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12795 '
12796 export as_echo_n_body
12797 as_echo_n='sh -c $as_echo_n_body as_echo'
12798 fi
12799 export as_echo_body
12800 as_echo='sh -c $as_echo_body as_echo'
12801 fi
12802
12803 # The user is always right.
12804 if test "${PATH_SEPARATOR+set}" != set; then
12805 PATH_SEPARATOR=:
12806 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12807 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12808 PATH_SEPARATOR=';'
12809 }
12810 fi
12811
12812
12813 # IFS
12814 # We need space, tab and new line, in precisely that order. Quoting is
12815 # there to prevent editors from complaining about space-tab.
12816 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12817 # splitting by setting IFS to empty value.)
12818 IFS=" "" $as_nl"
12819
12820 # Find who we are. Look in the path if we contain no directory separator.
12821 as_myself=
12822 case $0 in #((
12823 *[\\/]* ) as_myself=$0 ;;
12824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12826 do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
12829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12830 done
12831 IFS=$as_save_IFS
12832
12833 ;;
12834 esac
12835 # We did not find ourselves, most probably we were run as `sh COMMAND'
12836 # in which case we are not to be found in the path.
12837 if test "x$as_myself" = x; then
12838 as_myself=$0
12839 fi
12840 if test ! -f "$as_myself"; then
12841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12842 exit 1
12843 fi
12844
12845 # Unset variables that we do not need and which cause bugs (e.g. in
12846 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12847 # suppresses any "Segmentation fault" message there. '((' could
12848 # trigger a bug in pdksh 5.2.14.
12849 for as_var in BASH_ENV ENV MAIL MAILPATH
12850 do eval test x\${$as_var+set} = xset \
12851 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12852 done
12853 PS1='$ '
12854 PS2='> '
12855 PS4='+ '
12856
12857 # NLS nuisances.
12858 LC_ALL=C
12859 export LC_ALL
12860 LANGUAGE=C
12861 export LANGUAGE
12862
12863 # CDPATH.
12864 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12865
12866
12867 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12868 # ----------------------------------------
12869 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12870 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12871 # script with STATUS, using 1 if that was 0.
12872 as_fn_error ()
12873 {
12874 as_status=$1; test $as_status -eq 0 && as_status=1
12875 if test "$4"; then
12876 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12877 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12878 fi
12879 $as_echo "$as_me: error: $2" >&2
12880 as_fn_exit $as_status
12881 } # as_fn_error
12882
12883
12884 # as_fn_set_status STATUS
12885 # -----------------------
12886 # Set $? to STATUS, without forking.
12887 as_fn_set_status ()
12888 {
12889 return $1
12890 } # as_fn_set_status
12891
12892 # as_fn_exit STATUS
12893 # -----------------
12894 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12895 as_fn_exit ()
12896 {
12897 set +e
12898 as_fn_set_status $1
12899 exit $1
12900 } # as_fn_exit
12901
12902 # as_fn_unset VAR
12903 # ---------------
12904 # Portably unset VAR.
12905 as_fn_unset ()
12906 {
12907 { eval $1=; unset $1;}
12908 }
12909 as_unset=as_fn_unset
12910 # as_fn_append VAR VALUE
12911 # ----------------------
12912 # Append the text in VALUE to the end of the definition contained in VAR. Take
12913 # advantage of any shell optimizations that allow amortized linear growth over
12914 # repeated appends, instead of the typical quadratic growth present in naive
12915 # implementations.
12916 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12917 eval 'as_fn_append ()
12918 {
12919 eval $1+=\$2
12920 }'
12921 else
12922 as_fn_append ()
12923 {
12924 eval $1=\$$1\$2
12925 }
12926 fi # as_fn_append
12927
12928 # as_fn_arith ARG...
12929 # ------------------
12930 # Perform arithmetic evaluation on the ARGs, and store the result in the
12931 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12932 # must be portable across $(()) and expr.
12933 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12934 eval 'as_fn_arith ()
12935 {
12936 as_val=$(( $* ))
12937 }'
12938 else
12939 as_fn_arith ()
12940 {
12941 as_val=`expr "$@" || test $? -eq 1`
12942 }
12943 fi # as_fn_arith
12944
12945
12946 if expr a : '\(a\)' >/dev/null 2>&1 &&
12947 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12948 as_expr=expr
12949 else
12950 as_expr=false
12951 fi
12952
12953 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12954 as_basename=basename
12955 else
12956 as_basename=false
12957 fi
12958
12959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12960 as_dirname=dirname
12961 else
12962 as_dirname=false
12963 fi
12964
12965 as_me=`$as_basename -- "$0" ||
12966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12967 X"$0" : 'X\(//\)$' \| \
12968 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12969 $as_echo X/"$0" |
12970 sed '/^.*\/\([^/][^/]*\)\/*$/{
12971 s//\1/
12972 q
12973 }
12974 /^X\/\(\/\/\)$/{
12975 s//\1/
12976 q
12977 }
12978 /^X\/\(\/\).*/{
12979 s//\1/
12980 q
12981 }
12982 s/.*/./; q'`
12983
12984 # Avoid depending upon Character Ranges.
12985 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12986 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12987 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12988 as_cr_digits='0123456789'
12989 as_cr_alnum=$as_cr_Letters$as_cr_digits
12990
12991 ECHO_C= ECHO_N= ECHO_T=
12992 case `echo -n x` in #(((((
12993 -n*)
12994 case `echo 'xy\c'` in
12995 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12996 xy) ECHO_C='\c';;
12997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12998 ECHO_T=' ';;
12999 esac;;
13000 *)
13001 ECHO_N='-n';;
13002 esac
13003
13004 rm -f conf$$ conf$$.exe conf$$.file
13005 if test -d conf$$.dir; then
13006 rm -f conf$$.dir/conf$$.file
13007 else
13008 rm -f conf$$.dir
13009 mkdir conf$$.dir 2>/dev/null
13010 fi
13011 if (echo >conf$$.file) 2>/dev/null; then
13012 if ln -s conf$$.file conf$$ 2>/dev/null; then
13013 as_ln_s='ln -s'
13014 # ... but there are two gotchas:
13015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13017 # In both cases, we have to default to `cp -pR'.
13018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13019 as_ln_s='cp -pR'
13020 elif ln conf$$.file conf$$ 2>/dev/null; then
13021 as_ln_s=ln
13022 else
13023 as_ln_s='cp -pR'
13024 fi
13025 else
13026 as_ln_s='cp -pR'
13027 fi
13028 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13029 rmdir conf$$.dir 2>/dev/null
13030
13031
13032 # as_fn_mkdir_p
13033 # -------------
13034 # Create "$as_dir" as a directory, including parents if necessary.
13035 as_fn_mkdir_p ()
13036 {
13037
13038 case $as_dir in #(
13039 -*) as_dir=./$as_dir;;
13040 esac
13041 test -d "$as_dir" || eval $as_mkdir_p || {
13042 as_dirs=
13043 while :; do
13044 case $as_dir in #(
13045 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13046 *) as_qdir=$as_dir;;
13047 esac
13048 as_dirs="'$as_qdir' $as_dirs"
13049 as_dir=`$as_dirname -- "$as_dir" ||
13050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13051 X"$as_dir" : 'X\(//\)[^/]' \| \
13052 X"$as_dir" : 'X\(//\)$' \| \
13053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13054 $as_echo X"$as_dir" |
13055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13056 s//\1/
13057 q
13058 }
13059 /^X\(\/\/\)[^/].*/{
13060 s//\1/
13061 q
13062 }
13063 /^X\(\/\/\)$/{
13064 s//\1/
13065 q
13066 }
13067 /^X\(\/\).*/{
13068 s//\1/
13069 q
13070 }
13071 s/.*/./; q'`
13072 test -d "$as_dir" && break
13073 done
13074 test -z "$as_dirs" || eval "mkdir $as_dirs"
13075 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13076
13077
13078 } # as_fn_mkdir_p
13079 if mkdir -p . 2>/dev/null; then
13080 as_mkdir_p='mkdir -p "$as_dir"'
13081 else
13082 test -d ./-p && rmdir ./-p
13083 as_mkdir_p=false
13084 fi
13085
13086
13087 # as_fn_executable_p FILE
13088 # -----------------------
13089 # Test if FILE is an executable regular file.
13090 as_fn_executable_p ()
13091 {
13092 test -f "$1" && test -x "$1"
13093 } # as_fn_executable_p
13094 as_test_x='test -x'
13095 as_executable_p=as_fn_executable_p
13096
13097 # Sed expression to map a string onto a valid CPP name.
13098 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13099
13100 # Sed expression to map a string onto a valid variable name.
13101 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13102
13103
13104 exec 6>&1
13105 ## ----------------------------------- ##
13106 ## Main body of $CONFIG_STATUS script. ##
13107 ## ----------------------------------- ##
13108 _ASEOF
13109 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13110
13111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13112 # Save the log message, to keep $0 and so on meaningful, and to
13113 # report actual input values of CONFIG_FILES etc. instead of their
13114 # values after options handling.
13115 ac_log="
13116 This file was extended by random128 $as_me 0.10, which was
13117 generated by GNU Autoconf 2.69. Invocation command line was
13118
13119 CONFIG_FILES = $CONFIG_FILES
13120 CONFIG_HEADERS = $CONFIG_HEADERS
13121 CONFIG_LINKS = $CONFIG_LINKS
13122 CONFIG_COMMANDS = $CONFIG_COMMANDS
13123 $ $0 $@
13124
13125 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13126 "
13127
13128 _ACEOF
13129
13130 case $ac_config_files in *"
13131 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13132 esac
13133
13134 case $ac_config_headers in *"
13135 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13136 esac
13137
13138
13139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13140 # Files that config.status was made for.
13141 config_files="$ac_config_files"
13142 config_headers="$ac_config_headers"
13143 config_commands="$ac_config_commands"
13144
13145 _ACEOF
13146
13147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13148 ac_cs_usage="\
13149 \`$as_me' instantiates files and other configuration actions
13150 from templates according to the current configuration. Unless the files
13151 and actions are specified as TAGs, all are instantiated by default.
13152
13153 Usage: $0 [OPTION]... [TAG]...
13154
13155 -h, --help print this help, then exit
13156 -V, --version print version number and configuration settings, then exit
13157 --config print configuration, then exit
13158 -q, --quiet, --silent
13159 do not print progress messages
13160 -d, --debug don't remove temporary files
13161 --recheck update $as_me by reconfiguring in the same conditions
13162 --file=FILE[:TEMPLATE]
13163 instantiate the configuration file FILE
13164 --header=FILE[:TEMPLATE]
13165 instantiate the configuration header FILE
13166
13167 Configuration files:
13168 $config_files
13169
13170 Configuration headers:
13171 $config_headers
13172
13173 Configuration commands:
13174 $config_commands
13175
13176 Report bugs to <courier-users@lists.sourceforge.net>."
13177
13178 _ACEOF
13179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13180 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13181 ac_cs_version="\\
13182 random128 config.status 0.10
13183 configured by $0, generated by GNU Autoconf 2.69,
13184 with options \\"\$ac_cs_config\\"
13185
13186 Copyright (C) 2012 Free Software Foundation, Inc.
13187 This config.status script is free software; the Free Software Foundation
13188 gives unlimited permission to copy, distribute and modify it."
13189
13190 ac_pwd='$ac_pwd'
13191 srcdir='$srcdir'
13192 INSTALL='$INSTALL'
13193 MKDIR_P='$MKDIR_P'
13194 AWK='$AWK'
13195 test -n "\$AWK" || AWK=awk
13196 _ACEOF
13197
13198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13199 # The default lists apply if the user does not specify any file.
13200 ac_need_defaults=:
13201 while test $# != 0
13202 do
13203 case $1 in
13204 --*=?*)
13205 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13206 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13207 ac_shift=:
13208 ;;
13209 --*=)
13210 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13211 ac_optarg=
13212 ac_shift=:
13213 ;;
13214 *)
13215 ac_option=$1
13216 ac_optarg=$2
13217 ac_shift=shift
13218 ;;
13219 esac
13220
13221 case $ac_option in
13222 # Handling of the options.
13223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13224 ac_cs_recheck=: ;;
13225 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13226 $as_echo "$ac_cs_version"; exit ;;
13227 --config | --confi | --conf | --con | --co | --c )
13228 $as_echo "$ac_cs_config"; exit ;;
13229 --debug | --debu | --deb | --de | --d | -d )
13230 debug=: ;;
13231 --file | --fil | --fi | --f )
13232 $ac_shift
13233 case $ac_optarg in
13234 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13235 '') as_fn_error $? "missing file argument" ;;
13236 esac
13237 as_fn_append CONFIG_FILES " '$ac_optarg'"
13238 ac_need_defaults=false;;
13239 --header | --heade | --head | --hea )
13240 $ac_shift
13241 case $ac_optarg in
13242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13243 esac
13244 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13245 ac_need_defaults=false;;
13246 --he | --h)
13247 # Conflict between --help and --header
13248 as_fn_error $? "ambiguous option: \`$1'
13249 Try \`$0 --help' for more information.";;
13250 --help | --hel | -h )
13251 $as_echo "$ac_cs_usage"; exit ;;
13252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13253 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13254 ac_cs_silent=: ;;
13255
13256 # This is an error.
13257 -*) as_fn_error $? "unrecognized option: \`$1'
13258 Try \`$0 --help' for more information." ;;
13259
13260 *) as_fn_append ac_config_targets " $1"
13261 ac_need_defaults=false ;;
13262
13263 esac
13264 shift
13265 done
13266
13267 ac_configure_extra_args=
13268
13269 if $ac_cs_silent; then
13270 exec 6>/dev/null
13271 ac_configure_extra_args="$ac_configure_extra_args --silent"
13272 fi
13273
13274 _ACEOF
13275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13276 if \$ac_cs_recheck; then
13277 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13278 shift
13279 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13280 CONFIG_SHELL='$SHELL'
13281 export CONFIG_SHELL
13282 exec "\$@"
13283 fi
13284
13285 _ACEOF
13286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13287 exec 5>>config.log
13288 {
13289 echo
13290 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13291 ## Running $as_me. ##
13292 _ASBOX
13293 $as_echo "$ac_log"
13294 } >&5
13295
13296 _ACEOF
13297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13298 #
13299 # INIT-COMMANDS
13300 #
13301 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13302
13303
13304 # The HP-UX ksh and POSIX shell print the target directory to stdout
13305 # if CDPATH is set.
13306 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13307
13308 sed_quote_subst='$sed_quote_subst'
13309 double_quote_subst='$double_quote_subst'
13310 delay_variable_subst='$delay_variable_subst'
13311 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13312 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13313 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13314 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13315 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13316 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13317 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13318 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13319 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13320 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13321 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13322 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13323 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13324 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13325 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13326 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13327 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13328 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13329 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13330 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13331 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13332 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13333 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13334 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13335 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13336 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13337 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13338 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13339 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13340 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13341 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13342 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13343 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13344 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13345 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13346 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13347 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13348 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13349 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13350 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13351 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13352 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13353 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13354 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13355 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13356 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13357 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13358 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13359 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13360 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13361 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13362 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13363 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13364 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13365 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13366 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13367 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"`'
13368 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13369 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13370 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13371 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13372 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13373 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13374 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13375 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13376 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13377 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13378 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13379 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13380 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13381 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13382 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13383 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13384 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13385 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13386 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13387 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13388 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13389 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13390 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13391 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13392 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13393 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13394 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13395 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13396 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13397 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13398 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13399 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13400 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13401 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13402 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13403 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13404 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13405 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13406 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13407 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13408 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13409 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13410 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13411 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13412 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13413 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13414 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13415 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13416 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13417 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13418 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13419 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13420 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13421 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13422 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13423 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13424 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13425 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13426 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13427 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13428 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13429 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13430 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13431 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13432 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13433 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13434 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13435 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13436 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13437 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13438 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13439 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13440 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13441
13442 LTCC='$LTCC'
13443 LTCFLAGS='$LTCFLAGS'
13444 compiler='$compiler_DEFAULT'
13445
13446 # A function that is used when there is no print builtin or printf.
13447 func_fallback_echo ()
13448 {
13449 eval 'cat <<_LTECHO_EOF
13450 \$1
13451 _LTECHO_EOF'
13452 }
13453
13454 # Quote evaled strings.
13455 for var in SHELL \
13456 ECHO \
13457 PATH_SEPARATOR \
13458 SED \
13459 GREP \
13460 EGREP \
13461 FGREP \
13462 LD \
13463 NM \
13464 LN_S \
13465 lt_SP2NL \
13466 lt_NL2SP \
13467 reload_flag \
13468 OBJDUMP \
13469 deplibs_check_method \
13470 file_magic_cmd \
13471 file_magic_glob \
13472 want_nocaseglob \
13473 DLLTOOL \
13474 sharedlib_from_linklib_cmd \
13475 AR \
13476 AR_FLAGS \
13477 archiver_list_spec \
13478 STRIP \
13479 RANLIB \
13480 CC \
13481 CFLAGS \
13482 compiler \
13483 lt_cv_sys_global_symbol_pipe \
13484 lt_cv_sys_global_symbol_to_cdecl \
13485 lt_cv_sys_global_symbol_to_c_name_address \
13486 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13487 nm_file_list_spec \
13488 lt_prog_compiler_no_builtin_flag \
13489 lt_prog_compiler_pic \
13490 lt_prog_compiler_wl \
13491 lt_prog_compiler_static \
13492 lt_cv_prog_compiler_c_o \
13493 need_locks \
13494 MANIFEST_TOOL \
13495 DSYMUTIL \
13496 NMEDIT \
13497 LIPO \
13498 OTOOL \
13499 OTOOL64 \
13500 shrext_cmds \
13501 export_dynamic_flag_spec \
13502 whole_archive_flag_spec \
13503 compiler_needs_object \
13504 with_gnu_ld \
13505 allow_undefined_flag \
13506 no_undefined_flag \
13507 hardcode_libdir_flag_spec \
13508 hardcode_libdir_separator \
13509 exclude_expsyms \
13510 include_expsyms \
13511 file_list_spec \
13512 variables_saved_for_relink \
13513 libname_spec \
13514 library_names_spec \
13515 soname_spec \
13516 install_override_mode \
13517 finish_eval \
13518 old_striplib \
13519 striplib; do
13520 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13521 *[\\\\\\\`\\"\\\$]*)
13522 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13523 ;;
13524 *)
13525 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13526 ;;
13527 esac
13528 done
13529
13530 # Double-quote double-evaled strings.
13531 for var in reload_cmds \
13532 old_postinstall_cmds \
13533 old_postuninstall_cmds \
13534 old_archive_cmds \
13535 extract_expsyms_cmds \
13536 old_archive_from_new_cmds \
13537 old_archive_from_expsyms_cmds \
13538 archive_cmds \
13539 archive_expsym_cmds \
13540 module_cmds \
13541 module_expsym_cmds \
13542 export_symbols_cmds \
13543 prelink_cmds \
13544 postlink_cmds \
13545 postinstall_cmds \
13546 postuninstall_cmds \
13547 finish_cmds \
13548 sys_lib_search_path_spec \
13549 sys_lib_dlsearch_path_spec; do
13550 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13551 *[\\\\\\\`\\"\\\$]*)
13552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13553 ;;
13554 *)
13555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13556 ;;
13557 esac
13558 done
13559
13560 ac_aux_dir='$ac_aux_dir'
13561 xsi_shell='$xsi_shell'
13562 lt_shell_append='$lt_shell_append'
13563
13564 # See if we are running on zsh, and set the options which allow our
13565 # commands through without removal of \ escapes INIT.
13566 if test -n "\${ZSH_VERSION+set}" ; then
13567 setopt NO_GLOB_SUBST
13568 fi
13569
13570
13571 PACKAGE='$PACKAGE'
13572 VERSION='$VERSION'
13573 TIMESTAMP='$TIMESTAMP'
13574 RM='$RM'
13575 ofile='$ofile'
13576
13577
13578
13579
13580 _ACEOF
13581
13582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13583
13584 # Handling of arguments.
13585 for ac_config_target in $ac_config_targets
13586 do
13587 case $ac_config_target in
13588 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13589 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13590 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13591 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13592
13593 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13594 esac
13595 done
13596
13597
13598 # If the user did not use the arguments to specify the items to instantiate,
13599 # then the envvar interface is used. Set only those that are not.
13600 # We use the long form for the default assignment because of an extremely
13601 # bizarre bug on SunOS 4.1.3.
13602 if $ac_need_defaults; then
13603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13606 fi
13607
13608 # Have a temporary directory for convenience. Make it in the build tree
13609 # simply because there is no reason against having it here, and in addition,
13610 # creating and moving files from /tmp can sometimes cause problems.
13611 # Hook for its removal unless debugging.
13612 # Note that there is a small window in which the directory will not be cleaned:
13613 # after its creation but before its name has been assigned to `$tmp'.
13614 $debug ||
13615 {
13616 tmp= ac_tmp=
13617 trap 'exit_status=$?
13618 : "${ac_tmp:=$tmp}"
13619 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13620 ' 0
13621 trap 'as_fn_exit 1' 1 2 13 15
13622 }
13623 # Create a (secure) tmp directory for tmp files.
13624
13625 {
13626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13627 test -d "$tmp"
13628 } ||
13629 {
13630 tmp=./conf$$-$RANDOM
13631 (umask 077 && mkdir "$tmp")
13632 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13633 ac_tmp=$tmp
13634
13635 # Set up the scripts for CONFIG_FILES section.
13636 # No need to generate them if there are no CONFIG_FILES.
13637 # This happens for instance with `./config.status config.h'.
13638 if test -n "$CONFIG_FILES"; then
13639
13640
13641 ac_cr=`echo X | tr X '\015'`
13642 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13643 # But we know of no other shell where ac_cr would be empty at this
13644 # point, so we can use a bashism as a fallback.
13645 if test "x$ac_cr" = x; then
13646 eval ac_cr=\$\'\\r\'
13647 fi
13648 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13649 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13650 ac_cs_awk_cr='\\r'
13651 else
13652 ac_cs_awk_cr=$ac_cr
13653 fi
13654
13655 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13656 _ACEOF
13657
13658
13659 {
13660 echo "cat >conf$$subs.awk <<_ACEOF" &&
13661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13662 echo "_ACEOF"
13663 } >conf$$subs.sh ||
13664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13666 ac_delim='%!_!# '
13667 for ac_last_try in false false false false false :; do
13668 . ./conf$$subs.sh ||
13669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13670
13671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13672 if test $ac_delim_n = $ac_delim_num; then
13673 break
13674 elif $ac_last_try; then
13675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13676 else
13677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13678 fi
13679 done
13680 rm -f conf$$subs.sh
13681
13682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13683 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13684 _ACEOF
13685 sed -n '
13686 h
13687 s/^/S["/; s/!.*/"]=/
13688 p
13689 g
13690 s/^[^!]*!//
13691 :repl
13692 t repl
13693 s/'"$ac_delim"'$//
13694 t delim
13695 :nl
13696 h
13697 s/\(.\{148\}\)..*/\1/
13698 t more1
13699 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13700 p
13701 n
13702 b repl
13703 :more1
13704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13705 p
13706 g
13707 s/.\{148\}//
13708 t nl
13709 :delim
13710 h
13711 s/\(.\{148\}\)..*/\1/
13712 t more2
13713 s/["\\]/\\&/g; s/^/"/; s/$/"/
13714 p
13715 b
13716 :more2
13717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13718 p
13719 g
13720 s/.\{148\}//
13721 t delim
13722 ' <conf$$subs.awk | sed '
13723 /^[^""]/{
13724 N
13725 s/\n//
13726 }
13727 ' >>$CONFIG_STATUS || ac_write_fail=1
13728 rm -f conf$$subs.awk
13729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13730 _ACAWK
13731 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13732 for (key in S) S_is_set[key] = 1
13733 FS = "\a"
13734
13735 }
13736 {
13737 line = $ 0
13738 nfields = split(line, field, "@")
13739 substed = 0
13740 len = length(field[1])
13741 for (i = 2; i < nfields; i++) {
13742 key = field[i]
13743 keylen = length(key)
13744 if (S_is_set[key]) {
13745 value = S[key]
13746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13747 len += length(value) + length(field[++i])
13748 substed = 1
13749 } else
13750 len += 1 + keylen
13751 }
13752
13753 print line
13754 }
13755
13756 _ACAWK
13757 _ACEOF
13758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13759 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13761 else
13762 cat
13763 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13764 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13765 _ACEOF
13766
13767 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13768 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13769 # trailing colons and then remove the whole line if VPATH becomes empty
13770 # (actually we leave an empty line to preserve line numbers).
13771 if test "x$srcdir" = x.; then
13772 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13773 h
13774 s///
13775 s/^/:/
13776 s/[ ]*$/:/
13777 s/:\$(srcdir):/:/g
13778 s/:\${srcdir}:/:/g
13779 s/:@srcdir@:/:/g
13780 s/^:*//
13781 s/:*$//
13782 x
13783 s/\(=[ ]*\).*/\1/
13784 G
13785 s/\n//
13786 s/^[^=]*=[ ]*$//
13787 }'
13788 fi
13789
13790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13791 fi # test -n "$CONFIG_FILES"
13792
13793 # Set up the scripts for CONFIG_HEADERS section.
13794 # No need to generate them if there are no CONFIG_HEADERS.
13795 # This happens for instance with `./config.status Makefile'.
13796 if test -n "$CONFIG_HEADERS"; then
13797 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13798 BEGIN {
13799 _ACEOF
13800
13801 # Transform confdefs.h into an awk script `defines.awk', embedded as
13802 # here-document in config.status, that substitutes the proper values into
13803 # config.h.in to produce config.h.
13804
13805 # Create a delimiter string that does not exist in confdefs.h, to ease
13806 # handling of long lines.
13807 ac_delim='%!_!# '
13808 for ac_last_try in false false :; do
13809 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13810 if test -z "$ac_tt"; then
13811 break
13812 elif $ac_last_try; then
13813 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13814 else
13815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13816 fi
13817 done
13818
13819 # For the awk script, D is an array of macro values keyed by name,
13820 # likewise P contains macro parameters if any. Preserve backslash
13821 # newline sequences.
13822
13823 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13824 sed -n '
13825 s/.\{148\}/&'"$ac_delim"'/g
13826 t rset
13827 :rset
13828 s/^[ ]*#[ ]*define[ ][ ]*/ /
13829 t def
13830 d
13831 :def
13832 s/\\$//
13833 t bsnl
13834 s/["\\]/\\&/g
13835 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13836 D["\1"]=" \3"/p
13837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13838 d
13839 :bsnl
13840 s/["\\]/\\&/g
13841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13842 D["\1"]=" \3\\\\\\n"\\/p
13843 t cont
13844 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13845 t cont
13846 d
13847 :cont
13848 n
13849 s/.\{148\}/&'"$ac_delim"'/g
13850 t clear
13851 :clear
13852 s/\\$//
13853 t bsnlc
13854 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13855 d
13856 :bsnlc
13857 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13858 b cont
13859 ' <confdefs.h | sed '
13860 s/'"$ac_delim"'/"\\\
13861 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13862
13863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13864 for (key in D) D_is_set[key] = 1
13865 FS = "\a"
13866 }
13867 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13868 line = \$ 0
13869 split(line, arg, " ")
13870 if (arg[1] == "#") {
13871 defundef = arg[2]
13872 mac1 = arg[3]
13873 } else {
13874 defundef = substr(arg[1], 2)
13875 mac1 = arg[2]
13876 }
13877 split(mac1, mac2, "(") #)
13878 macro = mac2[1]
13879 prefix = substr(line, 1, index(line, defundef) - 1)
13880 if (D_is_set[macro]) {
13881 # Preserve the white space surrounding the "#".
13882 print prefix "define", macro P[macro] D[macro]
13883 next
13884 } else {
13885 # Replace #undef with comments. This is necessary, for example,
13886 # in the case of _POSIX_SOURCE, which is predefined and required
13887 # on some systems where configure will not decide to define it.
13888 if (defundef == "undef") {
13889 print "/*", prefix defundef, macro, "*/"
13890 next
13891 }
13892 }
13893 }
13894 { print }
13895 _ACAWK
13896 _ACEOF
13897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13898 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13899 fi # test -n "$CONFIG_HEADERS"
13900
13901
13902 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13903 shift
13904 for ac_tag
13905 do
13906 case $ac_tag in
13907 :[FHLC]) ac_mode=$ac_tag; continue;;
13908 esac
13909 case $ac_mode$ac_tag in
13910 :[FHL]*:*);;
13911 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13912 :[FH]-) ac_tag=-:-;;
13913 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13914 esac
13915 ac_save_IFS=$IFS
13916 IFS=:
13917 set x $ac_tag
13918 IFS=$ac_save_IFS
13919 shift
13920 ac_file=$1
13921 shift
13922
13923 case $ac_mode in
13924 :L) ac_source=$1;;
13925 :[FH])
13926 ac_file_inputs=
13927 for ac_f
13928 do
13929 case $ac_f in
13930 -) ac_f="$ac_tmp/stdin";;
13931 *) # Look for the file first in the build tree, then in the source tree
13932 # (if the path is not absolute). The absolute path cannot be DOS-style,
13933 # because $ac_f cannot contain `:'.
13934 test -f "$ac_f" ||
13935 case $ac_f in
13936 [\\/$]*) false;;
13937 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13938 esac ||
13939 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13940 esac
13941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13942 as_fn_append ac_file_inputs " '$ac_f'"
13943 done
13944
13945 # Let's still pretend it is `configure' which instantiates (i.e., don't
13946 # use $as_me), people would be surprised to read:
13947 # /* config.h. Generated by config.status. */
13948 configure_input='Generated from '`
13949 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13950 `' by configure.'
13951 if test x"$ac_file" != x-; then
13952 configure_input="$ac_file. $configure_input"
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13954 $as_echo "$as_me: creating $ac_file" >&6;}
13955 fi
13956 # Neutralize special characters interpreted by sed in replacement strings.
13957 case $configure_input in #(
13958 *\&* | *\|* | *\\* )
13959 ac_sed_conf_input=`$as_echo "$configure_input" |
13960 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13961 *) ac_sed_conf_input=$configure_input;;
13962 esac
13963
13964 case $ac_tag in
13965 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13967 esac
13968 ;;
13969 esac
13970
13971 ac_dir=`$as_dirname -- "$ac_file" ||
13972 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13973 X"$ac_file" : 'X\(//\)[^/]' \| \
13974 X"$ac_file" : 'X\(//\)$' \| \
13975 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13976 $as_echo X"$ac_file" |
13977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13978 s//\1/
13979 q
13980 }
13981 /^X\(\/\/\)[^/].*/{
13982 s//\1/
13983 q
13984 }
13985 /^X\(\/\/\)$/{
13986 s//\1/
13987 q
13988 }
13989 /^X\(\/\).*/{
13990 s//\1/
13991 q
13992 }
13993 s/.*/./; q'`
13994 as_dir="$ac_dir"; as_fn_mkdir_p
13995 ac_builddir=.
13996
13997 case "$ac_dir" in
13998 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13999 *)
14000 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14001 # A ".." for each directory in $ac_dir_suffix.
14002 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14003 case $ac_top_builddir_sub in
14004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14006 esac ;;
14007 esac
14008 ac_abs_top_builddir=$ac_pwd
14009 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14010 # for backward compatibility:
14011 ac_top_builddir=$ac_top_build_prefix
14012
14013 case $srcdir in
14014 .) # We are building in place.
14015 ac_srcdir=.
14016 ac_top_srcdir=$ac_top_builddir_sub
14017 ac_abs_top_srcdir=$ac_pwd ;;
14018 [\\/]* | ?:[\\/]* ) # Absolute name.
14019 ac_srcdir=$srcdir$ac_dir_suffix;
14020 ac_top_srcdir=$srcdir
14021 ac_abs_top_srcdir=$srcdir ;;
14022 *) # Relative name.
14023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14024 ac_top_srcdir=$ac_top_build_prefix$srcdir
14025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14026 esac
14027 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14028
14029
14030 case $ac_mode in
14031 :F)
14032 #
14033 # CONFIG_FILE
14034 #
14035
14036 case $INSTALL in
14037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14038 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14039 esac
14040 ac_MKDIR_P=$MKDIR_P
14041 case $MKDIR_P in
14042 [\\/$]* | ?:[\\/]* ) ;;
14043 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14044 esac
14045 _ACEOF
14046
14047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14048 # If the template does not know about datarootdir, expand it.
14049 # FIXME: This hack should be removed a few years after 2.60.
14050 ac_datarootdir_hack=; ac_datarootdir_seen=
14051 ac_sed_dataroot='
14052 /datarootdir/ {
14053 p
14054 q
14055 }
14056 /@datadir@/p
14057 /@docdir@/p
14058 /@infodir@/p
14059 /@localedir@/p
14060 /@mandir@/p'
14061 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14062 *datarootdir*) ac_datarootdir_seen=yes;;
14063 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14065 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14066 _ACEOF
14067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14068 ac_datarootdir_hack='
14069 s&@datadir@&$datadir&g
14070 s&@docdir@&$docdir&g
14071 s&@infodir@&$infodir&g
14072 s&@localedir@&$localedir&g
14073 s&@mandir@&$mandir&g
14074 s&\\\${datarootdir}&$datarootdir&g' ;;
14075 esac
14076 _ACEOF
14077
14078 # Neutralize VPATH when `$srcdir' = `.'.
14079 # Shell code in configure.ac might set extrasub.
14080 # FIXME: do we really want to maintain this feature?
14081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14082 ac_sed_extra="$ac_vpsub
14083 $extrasub
14084 _ACEOF
14085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14086 :t
14087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14088 s|@configure_input@|$ac_sed_conf_input|;t t
14089 s&@top_builddir@&$ac_top_builddir_sub&;t t
14090 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14091 s&@srcdir@&$ac_srcdir&;t t
14092 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14093 s&@top_srcdir@&$ac_top_srcdir&;t t
14094 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14095 s&@builddir@&$ac_builddir&;t t
14096 s&@abs_builddir@&$ac_abs_builddir&;t t
14097 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14098 s&@INSTALL@&$ac_INSTALL&;t t
14099 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14100 $ac_datarootdir_hack
14101 "
14102 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14103 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14104
14105 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14108 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14110 which seems to be undefined. Please make sure it is defined" >&5
14111 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14112 which seems to be undefined. Please make sure it is defined" >&2;}
14113
14114 rm -f "$ac_tmp/stdin"
14115 case $ac_file in
14116 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14117 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14118 esac \
14119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14120 ;;
14121 :H)
14122 #
14123 # CONFIG_HEADER
14124 #
14125 if test x"$ac_file" != x-; then
14126 {
14127 $as_echo "/* $configure_input */" \
14128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14129 } >"$ac_tmp/config.h" \
14130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14131 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14133 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14134 else
14135 rm -f "$ac_file"
14136 mv "$ac_tmp/config.h" "$ac_file" \
14137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14138 fi
14139 else
14140 $as_echo "/* $configure_input */" \
14141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14142 || as_fn_error $? "could not create -" "$LINENO" 5
14143 fi
14144 # Compute "$ac_file"'s index in $config_headers.
14145 _am_arg="$ac_file"
14146 _am_stamp_count=1
14147 for _am_header in $config_headers :; do
14148 case $_am_header in
14149 $_am_arg | $_am_arg:* )
14150 break ;;
14151 * )
14152 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14153 esac
14154 done
14155 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14156 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14157 X"$_am_arg" : 'X\(//\)[^/]' \| \
14158 X"$_am_arg" : 'X\(//\)$' \| \
14159 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14160 $as_echo X"$_am_arg" |
14161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14162 s//\1/
14163 q
14164 }
14165 /^X\(\/\/\)[^/].*/{
14166 s//\1/
14167 q
14168 }
14169 /^X\(\/\/\)$/{
14170 s//\1/
14171 q
14172 }
14173 /^X\(\/\).*/{
14174 s//\1/
14175 q
14176 }
14177 s/.*/./; q'`/stamp-h$_am_stamp_count
14178 ;;
14179
14180 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14181 $as_echo "$as_me: executing $ac_file commands" >&6;}
14182 ;;
14183 esac
14184
14185
14186 case $ac_file$ac_mode in
14187 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14188 # Older Autoconf quotes --file arguments for eval, but not when files
14189 # are listed without --file. Let's play safe and only enable the eval
14190 # if we detect the quoting.
14191 case $CONFIG_FILES in
14192 *\'*) eval set x "$CONFIG_FILES" ;;
14193 *) set x $CONFIG_FILES ;;
14194 esac
14195 shift
14196 for mf
14197 do
14198 # Strip MF so we end up with the name of the file.
14199 mf=`echo "$mf" | sed -e 's/:.*$//'`
14200 # Check whether this is an Automake generated Makefile or not.
14201 # We used to match only the files named 'Makefile.in', but
14202 # some people rename them; so instead we look at the file content.
14203 # Grep'ing the first line is not enough: some people post-process
14204 # each Makefile.in and add a new line on top of each file to say so.
14205 # Grep'ing the whole file is not good either: AIX grep has a line
14206 # limit of 2048, but all sed's we know have understand at least 4000.
14207 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14208 dirpart=`$as_dirname -- "$mf" ||
14209 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14210 X"$mf" : 'X\(//\)[^/]' \| \
14211 X"$mf" : 'X\(//\)$' \| \
14212 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14213 $as_echo X"$mf" |
14214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14215 s//\1/
14216 q
14217 }
14218 /^X\(\/\/\)[^/].*/{
14219 s//\1/
14220 q
14221 }
14222 /^X\(\/\/\)$/{
14223 s//\1/
14224 q
14225 }
14226 /^X\(\/\).*/{
14227 s//\1/
14228 q
14229 }
14230 s/.*/./; q'`
14231 else
14232 continue
14233 fi
14234 # Extract the definition of DEPDIR, am__include, and am__quote
14235 # from the Makefile without running 'make'.
14236 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14237 test -z "$DEPDIR" && continue
14238 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14239 test -z "$am__include" && continue
14240 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14241 # Find all dependency output files, they are included files with
14242 # $(DEPDIR) in their names. We invoke sed twice because it is the
14243 # simplest approach to changing $(DEPDIR) to its actual value in the
14244 # expansion.
14245 for file in `sed -n "
14246 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14247 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14248 # Make sure the directory exists.
14249 test -f "$dirpart/$file" && continue
14250 fdir=`$as_dirname -- "$file" ||
14251 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14252 X"$file" : 'X\(//\)[^/]' \| \
14253 X"$file" : 'X\(//\)$' \| \
14254 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14255 $as_echo X"$file" |
14256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14257 s//\1/
14258 q
14259 }
14260 /^X\(\/\/\)[^/].*/{
14261 s//\1/
14262 q
14263 }
14264 /^X\(\/\/\)$/{
14265 s//\1/
14266 q
14267 }
14268 /^X\(\/\).*/{
14269 s//\1/
14270 q
14271 }
14272 s/.*/./; q'`
14273 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14274 # echo "creating $dirpart/$file"
14275 echo '# dummy' > "$dirpart/$file"
14276 done
14277 done
14278 }
14279 ;;
14280 "libtool":C)
14281
14282 # See if we are running on zsh, and set the options which allow our
14283 # commands through without removal of \ escapes.
14284 if test -n "${ZSH_VERSION+set}" ; then
14285 setopt NO_GLOB_SUBST
14286 fi
14287
14288 cfgfile="${ofile}T"
14289 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14290 $RM "$cfgfile"
14291
14292 cat <<_LT_EOF >> "$cfgfile"
14293 #! $SHELL
14294
14295 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14296 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14298 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14299 #
14300 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14301 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14302 # Foundation, Inc.
14303 # Written by Gordon Matzigkeit, 1996
14304 #
14305 # This file is part of GNU Libtool.
14306 #
14307 # GNU Libtool is free software; you can redistribute it and/or
14308 # modify it under the terms of the GNU General Public License as
14309 # published by the Free Software Foundation; either version 2 of
14310 # the License, or (at your option) any later version.
14311 #
14312 # As a special exception to the GNU General Public License,
14313 # if you distribute this file as part of a program or library that
14314 # is built using GNU Libtool, you may include this file under the
14315 # same distribution terms that you use for the rest of that program.
14316 #
14317 # GNU Libtool is distributed in the hope that it will be useful,
14318 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14319 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14320 # GNU General Public License for more details.
14321 #
14322 # You should have received a copy of the GNU General Public License
14323 # along with GNU Libtool; see the file COPYING. If not, a copy
14324 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14325 # obtained by writing to the Free Software Foundation, Inc.,
14326 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14327
14328
14329 # The names of the tagged configurations supported by this script.
14330 available_tags=""
14331
14332 # ### BEGIN LIBTOOL CONFIG
14333
14334 # Which release of libtool.m4 was used?
14335 macro_version=$macro_version
14336 macro_revision=$macro_revision
14337
14338 # Whether or not to build shared libraries.
14339 build_libtool_libs=$enable_shared
14340
14341 # Whether or not to build static libraries.
14342 build_old_libs=$enable_static
14343
14344 # What type of objects to build.
14345 pic_mode=$pic_mode
14346
14347 # Whether or not to optimize for fast installation.
14348 fast_install=$enable_fast_install
14349
14350 # Shell to use when invoking shell scripts.
14351 SHELL=$lt_SHELL
14352
14353 # An echo program that protects backslashes.
14354 ECHO=$lt_ECHO
14355
14356 # The PATH separator for the build system.
14357 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14358
14359 # The host system.
14360 host_alias=$host_alias
14361 host=$host
14362 host_os=$host_os
14363
14364 # The build system.
14365 build_alias=$build_alias
14366 build=$build
14367 build_os=$build_os
14368
14369 # A sed program that does not truncate output.
14370 SED=$lt_SED
14371
14372 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14373 Xsed="\$SED -e 1s/^X//"
14374
14375 # A grep program that handles long lines.
14376 GREP=$lt_GREP
14377
14378 # An ERE matcher.
14379 EGREP=$lt_EGREP
14380
14381 # A literal string matcher.
14382 FGREP=$lt_FGREP
14383
14384 # A BSD- or MS-compatible name lister.
14385 NM=$lt_NM
14386
14387 # Whether we need soft or hard links.
14388 LN_S=$lt_LN_S
14389
14390 # What is the maximum length of a command?
14391 max_cmd_len=$max_cmd_len
14392
14393 # Object file suffix (normally "o").
14394 objext=$ac_objext
14395
14396 # Executable file suffix (normally "").
14397 exeext=$exeext
14398
14399 # whether the shell understands "unset".
14400 lt_unset=$lt_unset
14401
14402 # turn spaces into newlines.
14403 SP2NL=$lt_lt_SP2NL
14404
14405 # turn newlines into spaces.
14406 NL2SP=$lt_lt_NL2SP
14407
14408 # convert \$build file names to \$host format.
14409 to_host_file_cmd=$lt_cv_to_host_file_cmd
14410
14411 # convert \$build files to toolchain format.
14412 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14413
14414 # An object symbol dumper.
14415 OBJDUMP=$lt_OBJDUMP
14416
14417 # Method to check whether dependent libraries are shared objects.
14418 deplibs_check_method=$lt_deplibs_check_method
14419
14420 # Command to use when deplibs_check_method = "file_magic".
14421 file_magic_cmd=$lt_file_magic_cmd
14422
14423 # How to find potential files when deplibs_check_method = "file_magic".
14424 file_magic_glob=$lt_file_magic_glob
14425
14426 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14427 want_nocaseglob=$lt_want_nocaseglob
14428
14429 # DLL creation program.
14430 DLLTOOL=$lt_DLLTOOL
14431
14432 # Command to associate shared and link libraries.
14433 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14434
14435 # The archiver.
14436 AR=$lt_AR
14437
14438 # Flags to create an archive.
14439 AR_FLAGS=$lt_AR_FLAGS
14440
14441 # How to feed a file listing to the archiver.
14442 archiver_list_spec=$lt_archiver_list_spec
14443
14444 # A symbol stripping program.
14445 STRIP=$lt_STRIP
14446
14447 # Commands used to install an old-style archive.
14448 RANLIB=$lt_RANLIB
14449 old_postinstall_cmds=$lt_old_postinstall_cmds
14450 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14451
14452 # Whether to use a lock for old archive extraction.
14453 lock_old_archive_extraction=$lock_old_archive_extraction
14454
14455 # A C compiler.
14456 LTCC=$lt_CC
14457
14458 # LTCC compiler flags.
14459 LTCFLAGS=$lt_CFLAGS
14460
14461 # Take the output of nm and produce a listing of raw symbols and C names.
14462 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14463
14464 # Transform the output of nm in a proper C declaration.
14465 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14466
14467 # Transform the output of nm in a C name address pair.
14468 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14469
14470 # Transform the output of nm in a C name address pair when lib prefix is needed.
14471 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14472
14473 # Specify filename containing input files for \$NM.
14474 nm_file_list_spec=$lt_nm_file_list_spec
14475
14476 # The root where to search for dependent libraries,and in which our libraries should be installed.
14477 lt_sysroot=$lt_sysroot
14478
14479 # The name of the directory that contains temporary libtool files.
14480 objdir=$objdir
14481
14482 # Used to examine libraries when file_magic_cmd begins with "file".
14483 MAGIC_CMD=$MAGIC_CMD
14484
14485 # Must we lock files when doing compilation?
14486 need_locks=$lt_need_locks
14487
14488 # Manifest tool.
14489 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14490
14491 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14492 DSYMUTIL=$lt_DSYMUTIL
14493
14494 # Tool to change global to local symbols on Mac OS X.
14495 NMEDIT=$lt_NMEDIT
14496
14497 # Tool to manipulate fat objects and archives on Mac OS X.
14498 LIPO=$lt_LIPO
14499
14500 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14501 OTOOL=$lt_OTOOL
14502
14503 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14504 OTOOL64=$lt_OTOOL64
14505
14506 # Old archive suffix (normally "a").
14507 libext=$libext
14508
14509 # Shared library suffix (normally ".so").
14510 shrext_cmds=$lt_shrext_cmds
14511
14512 # The commands to extract the exported symbol list from a shared archive.
14513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14514
14515 # Variables whose values should be saved in libtool wrapper scripts and
14516 # restored at link time.
14517 variables_saved_for_relink=$lt_variables_saved_for_relink
14518
14519 # Do we need the "lib" prefix for modules?
14520 need_lib_prefix=$need_lib_prefix
14521
14522 # Do we need a version for libraries?
14523 need_version=$need_version
14524
14525 # Library versioning type.
14526 version_type=$version_type
14527
14528 # Shared library runtime path variable.
14529 runpath_var=$runpath_var
14530
14531 # Shared library path variable.
14532 shlibpath_var=$shlibpath_var
14533
14534 # Is shlibpath searched before the hard-coded library search path?
14535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14536
14537 # Format of library name prefix.
14538 libname_spec=$lt_libname_spec
14539
14540 # List of archive names. First name is the real one, the rest are links.
14541 # The last name is the one that the linker finds with -lNAME
14542 library_names_spec=$lt_library_names_spec
14543
14544 # The coded name of the library, if different from the real name.
14545 soname_spec=$lt_soname_spec
14546
14547 # Permission mode override for installation of shared libraries.
14548 install_override_mode=$lt_install_override_mode
14549
14550 # Command to use after installation of a shared archive.
14551 postinstall_cmds=$lt_postinstall_cmds
14552
14553 # Command to use after uninstallation of a shared archive.
14554 postuninstall_cmds=$lt_postuninstall_cmds
14555
14556 # Commands used to finish a libtool library installation in a directory.
14557 finish_cmds=$lt_finish_cmds
14558
14559 # As "finish_cmds", except a single script fragment to be evaled but
14560 # not shown.
14561 finish_eval=$lt_finish_eval
14562
14563 # Whether we should hardcode library paths into libraries.
14564 hardcode_into_libs=$hardcode_into_libs
14565
14566 # Compile-time system search path for libraries.
14567 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14568
14569 # Run-time system search path for libraries.
14570 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14571
14572 # Whether dlopen is supported.
14573 dlopen_support=$enable_dlopen
14574
14575 # Whether dlopen of programs is supported.
14576 dlopen_self=$enable_dlopen_self
14577
14578 # Whether dlopen of statically linked programs is supported.
14579 dlopen_self_static=$enable_dlopen_self_static
14580
14581 # Commands to strip libraries.
14582 old_striplib=$lt_old_striplib
14583 striplib=$lt_striplib
14584
14585
14586 # The linker used to build libraries.
14587 LD=$lt_LD
14588
14589 # How to create reloadable object files.
14590 reload_flag=$lt_reload_flag
14591 reload_cmds=$lt_reload_cmds
14592
14593 # Commands used to build an old-style archive.
14594 old_archive_cmds=$lt_old_archive_cmds
14595
14596 # A language specific compiler.
14597 CC=$lt_compiler
14598
14599 # Is the compiler the GNU compiler?
14600 with_gcc=$GCC
14601
14602 # Compiler flag to turn off builtin functions.
14603 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14604
14605 # Additional compiler flags for building library objects.
14606 pic_flag=$lt_lt_prog_compiler_pic
14607
14608 # How to pass a linker flag through the compiler.
14609 wl=$lt_lt_prog_compiler_wl
14610
14611 # Compiler flag to prevent dynamic linking.
14612 link_static_flag=$lt_lt_prog_compiler_static
14613
14614 # Does compiler simultaneously support -c and -o options?
14615 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14616
14617 # Whether or not to add -lc for building shared libraries.
14618 build_libtool_need_lc=$archive_cmds_need_lc
14619
14620 # Whether or not to disallow shared libs when runtime libs are static.
14621 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14622
14623 # Compiler flag to allow reflexive dlopens.
14624 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14625
14626 # Compiler flag to generate shared objects directly from archives.
14627 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14628
14629 # Whether the compiler copes with passing no objects directly.
14630 compiler_needs_object=$lt_compiler_needs_object
14631
14632 # Create an old-style archive from a shared archive.
14633 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14634
14635 # Create a temporary old-style archive to link instead of a shared archive.
14636 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14637
14638 # Commands used to build a shared archive.
14639 archive_cmds=$lt_archive_cmds
14640 archive_expsym_cmds=$lt_archive_expsym_cmds
14641
14642 # Commands used to build a loadable module if different from building
14643 # a shared archive.
14644 module_cmds=$lt_module_cmds
14645 module_expsym_cmds=$lt_module_expsym_cmds
14646
14647 # Whether we are building with GNU ld or not.
14648 with_gnu_ld=$lt_with_gnu_ld
14649
14650 # Flag that allows shared libraries with undefined symbols to be built.
14651 allow_undefined_flag=$lt_allow_undefined_flag
14652
14653 # Flag that enforces no undefined symbols.
14654 no_undefined_flag=$lt_no_undefined_flag
14655
14656 # Flag to hardcode \$libdir into a binary during linking.
14657 # This must work even if \$libdir does not exist
14658 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14659
14660 # Whether we need a single "-rpath" flag with a separated argument.
14661 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14662
14663 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14664 # DIR into the resulting binary.
14665 hardcode_direct=$hardcode_direct
14666
14667 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14668 # DIR into the resulting binary and the resulting library dependency is
14669 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14670 # library is relocated.
14671 hardcode_direct_absolute=$hardcode_direct_absolute
14672
14673 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14674 # into the resulting binary.
14675 hardcode_minus_L=$hardcode_minus_L
14676
14677 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14678 # into the resulting binary.
14679 hardcode_shlibpath_var=$hardcode_shlibpath_var
14680
14681 # Set to "yes" if building a shared library automatically hardcodes DIR
14682 # into the library and all subsequent libraries and executables linked
14683 # against it.
14684 hardcode_automatic=$hardcode_automatic
14685
14686 # Set to yes if linker adds runtime paths of dependent libraries
14687 # to runtime path list.
14688 inherit_rpath=$inherit_rpath
14689
14690 # Whether libtool must link a program against all its dependency libraries.
14691 link_all_deplibs=$link_all_deplibs
14692
14693 # Set to "yes" if exported symbols are required.
14694 always_export_symbols=$always_export_symbols
14695
14696 # The commands to list exported symbols.
14697 export_symbols_cmds=$lt_export_symbols_cmds
14698
14699 # Symbols that should not be listed in the preloaded symbols.
14700 exclude_expsyms=$lt_exclude_expsyms
14701
14702 # Symbols that must always be exported.
14703 include_expsyms=$lt_include_expsyms
14704
14705 # Commands necessary for linking programs (against libraries) with templates.
14706 prelink_cmds=$lt_prelink_cmds
14707
14708 # Commands necessary for finishing linking programs.
14709 postlink_cmds=$lt_postlink_cmds
14710
14711 # Specify filename containing input files.
14712 file_list_spec=$lt_file_list_spec
14713
14714 # How to hardcode a shared library path into an executable.
14715 hardcode_action=$hardcode_action
14716
14717 # ### END LIBTOOL CONFIG
14718
14719 _LT_EOF
14720
14721 case $host_os in
14722 aix3*)
14723 cat <<\_LT_EOF >> "$cfgfile"
14724 # AIX sometimes has problems with the GCC collect2 program. For some
14725 # reason, if we set the COLLECT_NAMES environment variable, the problems
14726 # vanish in a puff of smoke.
14727 if test "X${COLLECT_NAMES+set}" != Xset; then
14728 COLLECT_NAMES=
14729 export COLLECT_NAMES
14730 fi
14731 _LT_EOF
14732 ;;
14733 esac
14734
14735
14736 ltmain="$ac_aux_dir/ltmain.sh"
14737
14738
14739 # We use sed instead of cat because bash on DJGPP gets confused if
14740 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14741 # text mode, it properly converts lines to CR/LF. This bash problem
14742 # is reportedly fixed, but why not run on old versions too?
14743 sed '$q' "$ltmain" >> "$cfgfile" \
14744 || (rm -f "$cfgfile"; exit 1)
14745
14746 if test x"$xsi_shell" = xyes; then
14747 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14748 func_dirname ()\
14749 {\
14750 \ case ${1} in\
14751 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14752 \ * ) func_dirname_result="${3}" ;;\
14753 \ esac\
14754 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14755 && mv -f "$cfgfile.tmp" "$cfgfile" \
14756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14757 test 0 -eq $? || _lt_function_replace_fail=:
14758
14759
14760 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14761 func_basename ()\
14762 {\
14763 \ func_basename_result="${1##*/}"\
14764 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14765 && mv -f "$cfgfile.tmp" "$cfgfile" \
14766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14767 test 0 -eq $? || _lt_function_replace_fail=:
14768
14769
14770 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14771 func_dirname_and_basename ()\
14772 {\
14773 \ case ${1} in\
14774 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14775 \ * ) func_dirname_result="${3}" ;;\
14776 \ esac\
14777 \ func_basename_result="${1##*/}"\
14778 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14779 && mv -f "$cfgfile.tmp" "$cfgfile" \
14780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14781 test 0 -eq $? || _lt_function_replace_fail=:
14782
14783
14784 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14785 func_stripname ()\
14786 {\
14787 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14788 \ # positional parameters, so assign one to ordinary parameter first.\
14789 \ func_stripname_result=${3}\
14790 \ func_stripname_result=${func_stripname_result#"${1}"}\
14791 \ func_stripname_result=${func_stripname_result%"${2}"}\
14792 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14793 && mv -f "$cfgfile.tmp" "$cfgfile" \
14794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14795 test 0 -eq $? || _lt_function_replace_fail=:
14796
14797
14798 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14799 func_split_long_opt ()\
14800 {\
14801 \ func_split_long_opt_name=${1%%=*}\
14802 \ func_split_long_opt_arg=${1#*=}\
14803 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14804 && mv -f "$cfgfile.tmp" "$cfgfile" \
14805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14806 test 0 -eq $? || _lt_function_replace_fail=:
14807
14808
14809 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14810 func_split_short_opt ()\
14811 {\
14812 \ func_split_short_opt_arg=${1#??}\
14813 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14814 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14815 && mv -f "$cfgfile.tmp" "$cfgfile" \
14816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14817 test 0 -eq $? || _lt_function_replace_fail=:
14818
14819
14820 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14821 func_lo2o ()\
14822 {\
14823 \ case ${1} in\
14824 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14825 \ *) func_lo2o_result=${1} ;;\
14826 \ esac\
14827 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14828 && mv -f "$cfgfile.tmp" "$cfgfile" \
14829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14830 test 0 -eq $? || _lt_function_replace_fail=:
14831
14832
14833 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14834 func_xform ()\
14835 {\
14836 func_xform_result=${1%.*}.lo\
14837 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14838 && mv -f "$cfgfile.tmp" "$cfgfile" \
14839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14840 test 0 -eq $? || _lt_function_replace_fail=:
14841
14842
14843 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14844 func_arith ()\
14845 {\
14846 func_arith_result=$(( $* ))\
14847 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14848 && mv -f "$cfgfile.tmp" "$cfgfile" \
14849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14850 test 0 -eq $? || _lt_function_replace_fail=:
14851
14852
14853 sed -e '/^func_len ()$/,/^} # func_len /c\
14854 func_len ()\
14855 {\
14856 func_len_result=${#1}\
14857 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14858 && mv -f "$cfgfile.tmp" "$cfgfile" \
14859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14860 test 0 -eq $? || _lt_function_replace_fail=:
14861
14862 fi
14863
14864 if test x"$lt_shell_append" = xyes; then
14865 sed -e '/^func_append ()$/,/^} # func_append /c\
14866 func_append ()\
14867 {\
14868 eval "${1}+=\\${2}"\
14869 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14870 && mv -f "$cfgfile.tmp" "$cfgfile" \
14871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14872 test 0 -eq $? || _lt_function_replace_fail=:
14873
14874
14875 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14876 func_append_quoted ()\
14877 {\
14878 \ func_quote_for_eval "${2}"\
14879 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14880 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14881 && mv -f "$cfgfile.tmp" "$cfgfile" \
14882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14883 test 0 -eq $? || _lt_function_replace_fail=:
14884
14885
14886 # Save a `func_append' function call where possible by direct use of '+='
14887 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14888 && mv -f "$cfgfile.tmp" "$cfgfile" \
14889 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14890 test 0 -eq $? || _lt_function_replace_fail=:
14891 else
14892 # Save a `func_append' function call even when '+=' is not available
14893 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14894 && mv -f "$cfgfile.tmp" "$cfgfile" \
14895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14896 test 0 -eq $? || _lt_function_replace_fail=:
14897 fi
14898
14899 if test x"$_lt_function_replace_fail" = x":"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14901 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14902 fi
14903
14904
14905 mv -f "$cfgfile" "$ofile" ||
14906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14907 chmod +x "$ofile"
14908
14909 ;;
14910
14911 esac
14912 done # for ac_tag
14913
14914
14915 as_fn_exit 0
14916 _ACEOF
14917 ac_clean_files=$ac_clean_files_save
14918
14919 test $ac_write_fail = 0 ||
14920 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14921
14922
14923 # configure is writing to config.log, and then calls config.status.
14924 # config.status does its own redirection, appending to config.log.
14925 # Unfortunately, on DOS this fails, as config.log is still kept open
14926 # by configure, so config.status won't be able to write to it; its
14927 # output is simply discarded. So we exec the FD to /dev/null,
14928 # effectively closing config.log, so it can be properly (re)opened and
14929 # appended to by config.status. When coming back to configure, we
14930 # need to make the FD available again.
14931 if test "$no_create" != yes; then
14932 ac_cs_success=:
14933 ac_config_status_args=
14934 test "$silent" = yes &&
14935 ac_config_status_args="$ac_config_status_args --quiet"
14936 exec 5>/dev/null
14937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14938 exec 5>>config.log
14939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14940 # would make configure fail if this is the last instruction.
14941 $ac_cs_success || as_fn_exit 1
14942 fi
14943 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14945 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14946 fi
14947