Import Upstream version 0.66.4
[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 LT_SYS_LIBRARY_PATH
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 MANIFEST_TOOL
646 RANLIB
647 ac_ct_AR
648 AR
649 DLLTOOL
650 OBJDUMP
651 NM
652 ac_ct_DUMPBIN
653 DUMPBIN
654 LD
655 FGREP
656 SED
657 host_os
658 host_vendor
659 host_cpu
660 host
661 build_os
662 build_vendor
663 build_cpu
664 build
665 LIBTOOL
666 W
667 PS
668 LN_S
669 EGREP
670 GREP
671 CPP
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__quote
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_silent_rules
758 enable_dependency_tracking
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_aix_soname
764 with_gnu_ld
765 with_sysroot
766 enable_libtool_lock
767 enable_largefile
768 with_random
769 '
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
773 CC
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
778 CPP
779 LT_SYS_LIBRARY_PATH'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
845 esac
846
847 # Accept the important Cygnus configure options, so we can diagnose typos.
848
849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
857
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
872
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
877
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
910
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
946
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
951
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
981
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1055
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1091
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1114
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1130
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 ;;
1186
1187 esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1208 do
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285 else
1286 ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures random128 0.10 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/random128]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1374
1375 cat <<\_ACEOF
1376
1377 Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382 System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of random128 0.10:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-silent-rules less verbose build output (undo: "make V=1")
1399 --disable-silent-rules verbose build output (undo: "make V=0")
1400 --enable-dependency-tracking
1401 do not reject slow dependency extractors
1402 --disable-dependency-tracking
1403 speeds up one-time build
1404 --enable-shared[=PKGS] build shared libraries [default=yes]
1405 --enable-static[=PKGS] build static libraries [default=yes]
1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
1408 --disable-libtool-lock avoid locking (might break parallel builds)
1409 --disable-largefile omit support for large files
1410
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-aix-soname=aix|svr4|both
1417 shared library versioning (aka "SONAME") variant to
1418 provide on AIX, [default=aix].
1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1420 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1421 compiler's sysroot if not specified).
1422 --with-random=/dev/urandom - location of the system random file generator
1423 --without-random - there is no system random file generator
1424
1425 Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CPP C preprocessor
1434 LT_SYS_LIBRARY_PATH
1435 User-defined run-time library search path.
1436
1437 Use these variables to override the choices made by `configure' or to help
1438 it to find libraries and programs with nonstandard names/locations.
1439
1440 Report bugs to <courier-users@lists.sourceforge.net>.
1441 _ACEOF
1442 ac_status=$?
1443 fi
1444
1445 if test "$ac_init_help" = "recursive"; then
1446 # If there are subdirs, report their specific --help.
1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448 test -d "$ac_dir" ||
1449 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450 continue
1451 ac_builddir=.
1452
1453 case "$ac_dir" in
1454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *)
1456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457 # A ".." for each directory in $ac_dir_suffix.
1458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459 case $ac_top_builddir_sub in
1460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462 esac ;;
1463 esac
1464 ac_abs_top_builddir=$ac_pwd
1465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466 # for backward compatibility:
1467 ac_top_builddir=$ac_top_build_prefix
1468
1469 case $srcdir in
1470 .) # We are building in place.
1471 ac_srcdir=.
1472 ac_top_srcdir=$ac_top_builddir_sub
1473 ac_abs_top_srcdir=$ac_pwd ;;
1474 [\\/]* | ?:[\\/]* ) # Absolute name.
1475 ac_srcdir=$srcdir$ac_dir_suffix;
1476 ac_top_srcdir=$srcdir
1477 ac_abs_top_srcdir=$srcdir ;;
1478 *) # Relative name.
1479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480 ac_top_srcdir=$ac_top_build_prefix$srcdir
1481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 esac
1483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484
1485 cd "$ac_dir" || { ac_status=$?; continue; }
1486 # Check for guested configure.
1487 if test -f "$ac_srcdir/configure.gnu"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490 elif test -f "$ac_srcdir/configure"; then
1491 echo &&
1492 $SHELL "$ac_srcdir/configure" --help=recursive
1493 else
1494 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 fi || ac_status=$?
1496 cd "$ac_pwd" || { ac_status=$?; break; }
1497 done
1498 fi
1499
1500 test -n "$ac_init_help" && exit $ac_status
1501 if $ac_init_version; then
1502 cat <<\_ACEOF
1503 random128 configure 0.10
1504 generated by GNU Autoconf 2.69
1505
1506 Copyright (C) 2012 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1509 _ACEOF
1510 exit
1511 fi
1512
1513 ## ------------------------ ##
1514 ## Autoconf initialization. ##
1515 ## ------------------------ ##
1516
1517 # ac_fn_c_try_compile LINENO
1518 # --------------------------
1519 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_compile ()
1521 {
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext
1524 if { { ac_try="$ac_compile"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_compile") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest.$ac_objext; then :
1543 ac_retval=0
1544 else
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=1
1549 fi
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1552
1553 } # ac_fn_c_try_compile
1554
1555 # ac_fn_c_try_cpp LINENO
1556 # ----------------------
1557 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_cpp ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 if { { ac_try="$ac_cpp conftest.$ac_ext"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } > conftest.i && {
1577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 }; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586 fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_cpp
1591
1592 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1593 # -------------------------------------------------------
1594 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1595 # the include files in INCLUDES and setting the cache variable VAR
1596 # accordingly.
1597 ac_fn_c_check_header_mongrel ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if eval \${$3+:} false; then :
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 $as_echo_n "checking for $2... " >&6; }
1603 if eval \${$3+:} false; then :
1604 $as_echo_n "(cached) " >&6
1605 fi
1606 eval ac_res=\$$3
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1608 $as_echo "$ac_res" >&6; }
1609 else
1610 # Is the header compilable?
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1612 $as_echo_n "checking $2 usability... " >&6; }
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614 /* end confdefs.h. */
1615 $4
1616 #include <$2>
1617 _ACEOF
1618 if ac_fn_c_try_compile "$LINENO"; then :
1619 ac_header_compiler=yes
1620 else
1621 ac_header_compiler=no
1622 fi
1623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1625 $as_echo "$ac_header_compiler" >&6; }
1626
1627 # Is the header present?
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1629 $as_echo_n "checking $2 presence... " >&6; }
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1632 #include <$2>
1633 _ACEOF
1634 if ac_fn_c_try_cpp "$LINENO"; then :
1635 ac_header_preproc=yes
1636 else
1637 ac_header_preproc=no
1638 fi
1639 rm -f conftest.err conftest.i conftest.$ac_ext
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1641 $as_echo "$ac_header_preproc" >&6; }
1642
1643 # So? What about this header?
1644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1645 yes:no: )
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1647 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1650 ;;
1651 no:yes:* )
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1653 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1655 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1657 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1659 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 ( $as_echo "## -------------------------------------------------- ##
1663 ## Report this to courier-users@lists.sourceforge.net ##
1664 ## -------------------------------------------------- ##"
1665 ) | sed "s/^/$as_me: WARNING: /" >&2
1666 ;;
1667 esac
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1672 else
1673 eval "$3=\$ac_header_compiler"
1674 fi
1675 eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681 } # ac_fn_c_check_header_mongrel
1682
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1687 ac_fn_c_try_run ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=$ac_status
1718 fi
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_run
1724
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_compile "$LINENO"; then :
1743 eval "$3=yes"
1744 else
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_compile
1755
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_link ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 test -x conftest$ac_exeext
1784 }; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791 fi
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_link
1801
1802 # ac_fn_c_check_func LINENO FUNC VAR
1803 # ----------------------------------
1804 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1805 ac_fn_c_check_func ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1817 #define $2 innocuous_$2
1818
1819 /* System header to define __stub macros and hopefully few prototypes,
1820 which can conflict with char $2 (); below.
1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1822 <limits.h> exists even on freestanding compilers. */
1823
1824 #ifdef __STDC__
1825 # include <limits.h>
1826 #else
1827 # include <assert.h>
1828 #endif
1829
1830 #undef $2
1831
1832 /* Override any GCC internal prototype to avoid an error.
1833 Use char because int might match the return type of a GCC
1834 builtin and then its argument prototype would still apply. */
1835 #ifdef __cplusplus
1836 extern "C"
1837 #endif
1838 char $2 ();
1839 /* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842 #if defined __stub_$2 || defined __stub___$2
1843 choke me
1844 #endif
1845
1846 int
1847 main ()
1848 {
1849 return $2 ();
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_link "$LINENO"; then :
1855 eval "$3=yes"
1856 else
1857 eval "$3=no"
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext \
1860 conftest$ac_exeext conftest.$ac_ext
1861 fi
1862 eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_func
1868
1869 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1870 # -------------------------------------------
1871 # Tests whether TYPE exists after having included INCLUDES, setting cache
1872 # variable VAR accordingly.
1873 ac_fn_c_check_type ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879 $as_echo_n "(cached) " >&6
1880 else
1881 eval "$3=no"
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 $4
1885 int
1886 main ()
1887 {
1888 if (sizeof ($2))
1889 return 0;
1890 ;
1891 return 0;
1892 }
1893 _ACEOF
1894 if ac_fn_c_try_compile "$LINENO"; then :
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 $4
1898 int
1899 main ()
1900 {
1901 if (sizeof (($2)))
1902 return 0;
1903 ;
1904 return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908
1909 else
1910 eval "$3=yes"
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 fi
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 fi
1916 eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920
1921 } # ac_fn_c_check_type
1922 cat >config.log <<_ACEOF
1923 This file contains any messages produced by compilers while
1924 running configure, to aid debugging if configure makes a mistake.
1925
1926 It was created by random128 $as_me 0.10, which was
1927 generated by GNU Autoconf 2.69. Invocation command line was
1928
1929 $ $0 $@
1930
1931 _ACEOF
1932 exec 5>>config.log
1933 {
1934 cat <<_ASUNAME
1935 ## --------- ##
1936 ## Platform. ##
1937 ## --------- ##
1938
1939 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1940 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1941 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1942 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1943 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1944
1945 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1946 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1947
1948 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1949 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1950 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1951 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1952 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1953 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1954 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1955
1956 _ASUNAME
1957
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1960 do
1961 IFS=$as_save_IFS
1962 test -z "$as_dir" && as_dir=.
1963 $as_echo "PATH: $as_dir"
1964 done
1965 IFS=$as_save_IFS
1966
1967 } >&5
1968
1969 cat >&5 <<_ACEOF
1970
1971
1972 ## ----------- ##
1973 ## Core tests. ##
1974 ## ----------- ##
1975
1976 _ACEOF
1977
1978
1979 # Keep a trace of the command line.
1980 # Strip out --no-create and --no-recursion so they do not pile up.
1981 # Strip out --silent because we don't want to record it for future runs.
1982 # Also quote any args containing shell meta-characters.
1983 # Make two passes to allow for proper duplicate-argument suppression.
1984 ac_configure_args=
1985 ac_configure_args0=
1986 ac_configure_args1=
1987 ac_must_keep_next=false
1988 for ac_pass in 1 2
1989 do
1990 for ac_arg
1991 do
1992 case $ac_arg in
1993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1995 | -silent | --silent | --silen | --sile | --sil)
1996 continue ;;
1997 *\'*)
1998 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1999 esac
2000 case $ac_pass in
2001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2002 2)
2003 as_fn_append ac_configure_args1 " '$ac_arg'"
2004 if test $ac_must_keep_next = true; then
2005 ac_must_keep_next=false # Got value, back to normal.
2006 else
2007 case $ac_arg in
2008 *=* | --config-cache | -C | -disable-* | --disable-* \
2009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2011 | -with-* | --with-* | -without-* | --without-* | --x)
2012 case "$ac_configure_args0 " in
2013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2014 esac
2015 ;;
2016 -* ) ac_must_keep_next=true ;;
2017 esac
2018 fi
2019 as_fn_append ac_configure_args " '$ac_arg'"
2020 ;;
2021 esac
2022 done
2023 done
2024 { ac_configure_args0=; unset ac_configure_args0;}
2025 { ac_configure_args1=; unset ac_configure_args1;}
2026
2027 # When interrupted or exit'd, cleanup temporary files, and complete
2028 # config.log. We remove comments because anyway the quotes in there
2029 # would cause problems or look ugly.
2030 # WARNING: Use '\'' to represent an apostrophe within the trap.
2031 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2032 trap 'exit_status=$?
2033 # Save into config.log some information that might help in debugging.
2034 {
2035 echo
2036
2037 $as_echo "## ---------------- ##
2038 ## Cache variables. ##
2039 ## ---------------- ##"
2040 echo
2041 # The following way of writing the cache mishandles newlines in values,
2042 (
2043 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2044 eval ac_val=\$$ac_var
2045 case $ac_val in #(
2046 *${as_nl}*)
2047 case $ac_var in #(
2048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2050 esac
2051 case $ac_var in #(
2052 _ | IFS | as_nl) ;; #(
2053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2054 *) { eval $ac_var=; unset $ac_var;} ;;
2055 esac ;;
2056 esac
2057 done
2058 (set) 2>&1 |
2059 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2060 *${as_nl}ac_space=\ *)
2061 sed -n \
2062 "s/'\''/'\''\\\\'\'''\''/g;
2063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2064 ;; #(
2065 *)
2066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2067 ;;
2068 esac |
2069 sort
2070 )
2071 echo
2072
2073 $as_echo "## ----------------- ##
2074 ## Output variables. ##
2075 ## ----------------- ##"
2076 echo
2077 for ac_var in $ac_subst_vars
2078 do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
2084 done | sort
2085 echo
2086
2087 if test -n "$ac_subst_files"; then
2088 $as_echo "## ------------------- ##
2089 ## File substitutions. ##
2090 ## ------------------- ##"
2091 echo
2092 for ac_var in $ac_subst_files
2093 do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2101 fi
2102
2103 if test -s confdefs.h; then
2104 $as_echo "## ----------- ##
2105 ## confdefs.h. ##
2106 ## ----------- ##"
2107 echo
2108 cat confdefs.h
2109 echo
2110 fi
2111 test "$ac_signal" != 0 &&
2112 $as_echo "$as_me: caught signal $ac_signal"
2113 $as_echo "$as_me: exit $exit_status"
2114 } >&5
2115 rm -f core *.core core.conftest.* &&
2116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2117 exit $exit_status
2118 ' 0
2119 for ac_signal in 1 2 13 15; do
2120 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2121 done
2122 ac_signal=0
2123
2124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2125 rm -f -r conftest* confdefs.h
2126
2127 $as_echo "/* confdefs.h */" > confdefs.h
2128
2129 # Predefined preprocessor variables.
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_NAME "$PACKAGE_NAME"
2133 _ACEOF
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2137 _ACEOF
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2141 _ACEOF
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_STRING "$PACKAGE_STRING"
2145 _ACEOF
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_URL "$PACKAGE_URL"
2153 _ACEOF
2154
2155
2156 # Let the site file select an alternate cache file if it wants to.
2157 # Prefer an explicitly selected file to automatically selected ones.
2158 ac_site_file1=NONE
2159 ac_site_file2=NONE
2160 if test -n "$CONFIG_SITE"; then
2161 # We do not want a PATH search for config.site.
2162 case $CONFIG_SITE in #((
2163 -*) ac_site_file1=./$CONFIG_SITE;;
2164 */*) ac_site_file1=$CONFIG_SITE;;
2165 *) ac_site_file1=./$CONFIG_SITE;;
2166 esac
2167 elif test "x$prefix" != xNONE; then
2168 ac_site_file1=$prefix/share/config.site
2169 ac_site_file2=$prefix/etc/config.site
2170 else
2171 ac_site_file1=$ac_default_prefix/share/config.site
2172 ac_site_file2=$ac_default_prefix/etc/config.site
2173 fi
2174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2175 do
2176 test "x$ac_site_file" = xNONE && continue
2177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2180 sed 's/^/| /' "$ac_site_file" >&5
2181 . "$ac_site_file" \
2182 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2184 as_fn_error $? "failed to load site script $ac_site_file
2185 See \`config.log' for more details" "$LINENO" 5; }
2186 fi
2187 done
2188
2189 if test -r "$cache_file"; then
2190 # Some versions of bash will fail to source /dev/null (special files
2191 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2194 $as_echo "$as_me: loading cache $cache_file" >&6;}
2195 case $cache_file in
2196 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2197 *) . "./$cache_file";;
2198 esac
2199 fi
2200 else
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2202 $as_echo "$as_me: creating cache $cache_file" >&6;}
2203 >$cache_file
2204 fi
2205
2206 # Check that the precious variables saved in the cache have kept the same
2207 # value.
2208 ac_cache_corrupted=false
2209 for ac_var in $ac_precious_vars; do
2210 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2211 eval ac_new_set=\$ac_env_${ac_var}_set
2212 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2213 eval ac_new_val=\$ac_env_${ac_var}_value
2214 case $ac_old_set,$ac_new_set in
2215 set,)
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2217 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2218 ac_cache_corrupted=: ;;
2219 ,set)
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2221 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2222 ac_cache_corrupted=: ;;
2223 ,);;
2224 *)
2225 if test "x$ac_old_val" != "x$ac_new_val"; then
2226 # differences in whitespace do not lead to failure.
2227 ac_old_val_w=`echo x $ac_old_val`
2228 ac_new_val_w=`echo x $ac_new_val`
2229 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2231 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2232 ac_cache_corrupted=:
2233 else
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2235 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2236 eval $ac_var=\$ac_old_val
2237 fi
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2239 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2241 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2242 fi;;
2243 esac
2244 # Pass precious variables to config.status.
2245 if test "$ac_new_set" = set; then
2246 case $ac_new_val in
2247 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 *) ac_arg=$ac_var=$ac_new_val ;;
2249 esac
2250 case " $ac_configure_args " in
2251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2252 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2253 esac
2254 fi
2255 done
2256 if $ac_cache_corrupted; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2260 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2261 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2262 fi
2263 ## -------------------- ##
2264 ## Main body of script. ##
2265 ## -------------------- ##
2266
2267 ac_ext=c
2268 ac_cpp='$CPP $CPPFLAGS'
2269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2272
2273
2274
2275 >confdefs.h # Kill PACKAGE_ macros
2276
2277
2278 ac_aux_dir=
2279 for ac_dir in ../.. "$srcdir"/../..; do
2280 if test -f "$ac_dir/install-sh"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/install-sh -c"
2283 break
2284 elif test -f "$ac_dir/install.sh"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install.sh -c"
2287 break
2288 elif test -f "$ac_dir/shtool"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/shtool install -c"
2291 break
2292 fi
2293 done
2294 if test -z "$ac_aux_dir"; then
2295 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2296 fi
2297
2298 # These three variables are undocumented and unsupported,
2299 # and are intended to be withdrawn in a future Autoconf release.
2300 # They can cause serious problems if a builder's source tree is in a directory
2301 # whose full name contains unusual characters.
2302 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2303 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2304 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2305
2306
2307 am__api_version='1.15'
2308
2309 # Find a good install program. We prefer a C program (faster),
2310 # so one script is as good as another. But avoid the broken or
2311 # incompatible versions:
2312 # SysV /etc/install, /usr/sbin/install
2313 # SunOS /usr/etc/install
2314 # IRIX /sbin/install
2315 # AIX /bin/install
2316 # AmigaOS /C/install, which installs bootblocks on floppy discs
2317 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2318 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2319 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2320 # OS/2's system install, which has a completely different semantic
2321 # ./install, which can be erroneously created by make from ./install.sh.
2322 # Reject install programs that cannot install multiple files.
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2324 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2325 if test -z "$INSTALL"; then
2326 if ${ac_cv_path_install+:} false; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 # Account for people who put trailing slashes in PATH elements.
2335 case $as_dir/ in #((
2336 ./ | .// | /[cC]/* | \
2337 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2338 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2339 /usr/ucb/* ) ;;
2340 *)
2341 # OSF1 and SCO ODT 3.0 have their own names for install.
2342 # Don't use installbsd from OSF since it installs stuff as root
2343 # by default.
2344 for ac_prog in ginstall scoinst install; do
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2347 if test $ac_prog = install &&
2348 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2349 # AIX install. It has an incompatible calling convention.
2350 :
2351 elif test $ac_prog = install &&
2352 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2353 # program-specific install script used by HP pwplus--don't use.
2354 :
2355 else
2356 rm -rf conftest.one conftest.two conftest.dir
2357 echo one > conftest.one
2358 echo two > conftest.two
2359 mkdir conftest.dir
2360 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2361 test -s conftest.one && test -s conftest.two &&
2362 test -s conftest.dir/conftest.one &&
2363 test -s conftest.dir/conftest.two
2364 then
2365 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2366 break 3
2367 fi
2368 fi
2369 fi
2370 done
2371 done
2372 ;;
2373 esac
2374
2375 done
2376 IFS=$as_save_IFS
2377
2378 rm -rf conftest.one conftest.two conftest.dir
2379
2380 fi
2381 if test "${ac_cv_path_install+set}" = set; then
2382 INSTALL=$ac_cv_path_install
2383 else
2384 # As a last resort, use the slow shell script. Don't cache a
2385 # value for INSTALL within a source directory, because that will
2386 # break other packages using the cache if that directory is
2387 # removed, or if the value is a relative name.
2388 INSTALL=$ac_install_sh
2389 fi
2390 fi
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2392 $as_echo "$INSTALL" >&6; }
2393
2394 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2395 # It thinks the first close brace ends the variable substitution.
2396 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2397
2398 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2399
2400 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2401
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2403 $as_echo_n "checking whether build environment is sane... " >&6; }
2404 # Reject unsafe characters in $srcdir or the absolute working directory
2405 # name. Accept space and tab only in the latter.
2406 am_lf='
2407 '
2408 case `pwd` in
2409 *[\\\"\#\$\&\'\`$am_lf]*)
2410 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2411 esac
2412 case $srcdir in
2413 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2414 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2415 esac
2416
2417 # Do 'set' in a subshell so we don't clobber the current shell's
2418 # arguments. Must try -L first in case configure is actually a
2419 # symlink; some systems play weird games with the mod time of symlinks
2420 # (eg FreeBSD returns the mod time of the symlink's containing
2421 # directory).
2422 if (
2423 am_has_slept=no
2424 for am_try in 1 2; do
2425 echo "timestamp, slept: $am_has_slept" > conftest.file
2426 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2427 if test "$*" = "X"; then
2428 # -L didn't work.
2429 set X `ls -t "$srcdir/configure" conftest.file`
2430 fi
2431 if test "$*" != "X $srcdir/configure conftest.file" \
2432 && test "$*" != "X conftest.file $srcdir/configure"; then
2433
2434 # If neither matched, then we have a broken ls. This can happen
2435 # if, for instance, CONFIG_SHELL is bash and it inherits a
2436 # broken ls alias from the environment. This has actually
2437 # happened. Such a system could not be considered "sane".
2438 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2439 alias in your environment" "$LINENO" 5
2440 fi
2441 if test "$2" = conftest.file || test $am_try -eq 2; then
2442 break
2443 fi
2444 # Just in case.
2445 sleep 1
2446 am_has_slept=yes
2447 done
2448 test "$2" = conftest.file
2449 )
2450 then
2451 # Ok.
2452 :
2453 else
2454 as_fn_error $? "newly created file is older than distributed files!
2455 Check your system clock" "$LINENO" 5
2456 fi
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2458 $as_echo "yes" >&6; }
2459 # If we didn't sleep, we still need to ensure time stamps of config.status and
2460 # generated files are strictly newer.
2461 am_sleep_pid=
2462 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2463 ( sleep 1 ) &
2464 am_sleep_pid=$!
2465 fi
2466
2467 rm -f conftest.file
2468
2469 test "$program_prefix" != NONE &&
2470 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2471 # Use a double $ so make ignores it.
2472 test "$program_suffix" != NONE &&
2473 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2474 # Double any \ or $.
2475 # By default was `s,x,x', remove it if useless.
2476 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2477 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2478
2479 # Expand $ac_aux_dir to an absolute path.
2480 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2481
2482 if test x"${MISSING+set}" != xset; then
2483 case $am_aux_dir in
2484 *\ * | *\ *)
2485 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2486 *)
2487 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2488 esac
2489 fi
2490 # Use eval to expand $SHELL
2491 if eval "$MISSING --is-lightweight"; then
2492 am_missing_run="$MISSING "
2493 else
2494 am_missing_run=
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2496 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2497 fi
2498
2499 if test x"${install_sh+set}" != xset; then
2500 case $am_aux_dir in
2501 *\ * | *\ *)
2502 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2503 *)
2504 install_sh="\${SHELL} $am_aux_dir/install-sh"
2505 esac
2506 fi
2507
2508 # Installed binaries are usually stripped using 'strip' when the user
2509 # run "make install-strip". However 'strip' might not be the right
2510 # tool to use in cross-compilation environments, therefore Automake
2511 # will honor the 'STRIP' environment variable to overrule this program.
2512 if test "$cross_compiling" != no; then
2513 if test -n "$ac_tool_prefix"; then
2514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2515 set dummy ${ac_tool_prefix}strip; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if ${ac_cv_prog_STRIP+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test -n "$STRIP"; then
2522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 STRIP=$ac_cv_prog_STRIP
2542 if test -n "$STRIP"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2544 $as_echo "$STRIP" >&6; }
2545 else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2548 fi
2549
2550
2551 fi
2552 if test -z "$ac_cv_prog_STRIP"; then
2553 ac_ct_STRIP=$STRIP
2554 # Extract the first word of "strip", so it can be a program name with args.
2555 set dummy strip; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 if test -n "$ac_ct_STRIP"; then
2562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_ac_ct_STRIP="strip"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 fi
2580 fi
2581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2582 if test -n "$ac_ct_STRIP"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2584 $as_echo "$ac_ct_STRIP" >&6; }
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 fi
2589
2590 if test "x$ac_ct_STRIP" = x; then
2591 STRIP=":"
2592 else
2593 case $cross_compiling:$ac_tool_warned in
2594 yes:)
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2597 ac_tool_warned=yes ;;
2598 esac
2599 STRIP=$ac_ct_STRIP
2600 fi
2601 else
2602 STRIP="$ac_cv_prog_STRIP"
2603 fi
2604
2605 fi
2606 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2607
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2609 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2610 if test -z "$MKDIR_P"; then
2611 if ${ac_cv_path_mkdir+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2616 do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_prog in mkdir gmkdir; do
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2622 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2623 'mkdir (GNU coreutils) '* | \
2624 'mkdir (coreutils) '* | \
2625 'mkdir (fileutils) '4.1*)
2626 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2627 break 3;;
2628 esac
2629 done
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635
2636 test -d ./--version && rmdir ./--version
2637 if test "${ac_cv_path_mkdir+set}" = set; then
2638 MKDIR_P="$ac_cv_path_mkdir -p"
2639 else
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for MKDIR_P within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 MKDIR_P="$ac_install_sh -d"
2645 fi
2646 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2648 $as_echo "$MKDIR_P" >&6; }
2649
2650 for ac_prog in gawk mawk nawk awk
2651 do
2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2653 set dummy $ac_prog; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if ${ac_cv_prog_AWK+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 if test -n "$AWK"; then
2660 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_AWK="$ac_prog"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2672 fi
2673 done
2674 done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 AWK=$ac_cv_prog_AWK
2680 if test -n "$AWK"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2682 $as_echo "$AWK" >&6; }
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2686 fi
2687
2688
2689 test -n "$AWK" && break
2690 done
2691
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2693 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2694 set x ${MAKE-make}
2695 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2696 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 cat >conftest.make <<\_ACEOF
2700 SHELL = /bin/sh
2701 all:
2702 @echo '@@@%%%=$(MAKE)=@@@%%%'
2703 _ACEOF
2704 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2705 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2706 *@@@%%%=?*=@@@%%%*)
2707 eval ac_cv_prog_make_${ac_make}_set=yes;;
2708 *)
2709 eval ac_cv_prog_make_${ac_make}_set=no;;
2710 esac
2711 rm -f conftest.make
2712 fi
2713 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715 $as_echo "yes" >&6; }
2716 SET_MAKE=
2717 else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2720 SET_MAKE="MAKE=${MAKE-make}"
2721 fi
2722
2723 rm -rf .tst 2>/dev/null
2724 mkdir .tst 2>/dev/null
2725 if test -d .tst; then
2726 am__leading_dot=.
2727 else
2728 am__leading_dot=_
2729 fi
2730 rmdir .tst 2>/dev/null
2731
2732 # Check whether --enable-silent-rules was given.
2733 if test "${enable_silent_rules+set}" = set; then :
2734 enableval=$enable_silent_rules;
2735 fi
2736
2737 case $enable_silent_rules in # (((
2738 yes) AM_DEFAULT_VERBOSITY=0;;
2739 no) AM_DEFAULT_VERBOSITY=1;;
2740 *) AM_DEFAULT_VERBOSITY=1;;
2741 esac
2742 am_make=${MAKE-make}
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2744 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2745 if ${am_cv_make_support_nested_variables+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 if $as_echo 'TRUE=$(BAR$(V))
2749 BAR0=false
2750 BAR1=true
2751 V=1
2752 am__doit:
2753 @$(TRUE)
2754 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2755 am_cv_make_support_nested_variables=yes
2756 else
2757 am_cv_make_support_nested_variables=no
2758 fi
2759 fi
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2761 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2762 if test $am_cv_make_support_nested_variables = yes; then
2763 AM_V='$(V)'
2764 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2765 else
2766 AM_V=$AM_DEFAULT_VERBOSITY
2767 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2768 fi
2769 AM_BACKSLASH='\'
2770
2771 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2772 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2773 # is not polluted with repeated "-I."
2774 am__isrc=' -I$(srcdir)'
2775 # test to see if srcdir already configured
2776 if test -f $srcdir/config.status; then
2777 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2778 fi
2779 fi
2780
2781 # test whether we have cygpath
2782 if test -z "$CYGPATH_W"; then
2783 if (cygpath --version) >/dev/null 2>/dev/null; then
2784 CYGPATH_W='cygpath -w'
2785 else
2786 CYGPATH_W=echo
2787 fi
2788 fi
2789
2790
2791 # Define the identity of the package.
2792 PACKAGE='random128'
2793 VERSION='0.10'
2794
2795
2796 # Some tools Automake needs.
2797
2798 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2799
2800
2801 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2802
2803
2804 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2805
2806
2807 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2808
2809
2810 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2811
2812 # For better backward compatibility. To be removed once Automake 1.9.x
2813 # dies out for good. For more background, see:
2814 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2815 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2816 mkdir_p='$(MKDIR_P)'
2817
2818 # We need awk for the "check" target (and possibly the TAP driver). The
2819 # system "awk" is bad on some platforms.
2820 # Always define AMTAR for backward compatibility. Yes, it's still used
2821 # in the wild :-( We should find a proper way to deprecate it ...
2822 AMTAR='$${TAR-tar}'
2823
2824
2825 # We'll loop over all known methods to create a tar archive until one works.
2826 _am_tools='gnutar pax cpio none'
2827
2828 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2829
2830
2831
2832
2833
2834
2835 # POSIX will say in a future version that running "rm -f" with no argument
2836 # is OK; and we want to be able to make that assumption in our Makefile
2837 # recipes. So use an aggressive probe to check that the usage we want is
2838 # actually supported "in the wild" to an acceptable degree.
2839 # See automake bug#10828.
2840 # To make any issue more visible, cause the running configure to be aborted
2841 # by default if the 'rm' program in use doesn't match our expectations; the
2842 # user can still override this though.
2843 if rm -f && rm -fr && rm -rf; then : OK; else
2844 cat >&2 <<'END'
2845 Oops!
2846
2847 Your 'rm' program seems unable to run without file operands specified
2848 on the command line, even when the '-f' option is present. This is contrary
2849 to the behaviour of most rm programs out there, and not conforming with
2850 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2851
2852 Please tell bug-automake@gnu.org about your system, including the value
2853 of your $PATH and any error possibly output before this message. This
2854 can help us improve future automake versions.
2855
2856 END
2857 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2858 echo 'Configuration will proceed anyway, since you have set the' >&2
2859 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2860 echo >&2
2861 else
2862 cat >&2 <<'END'
2863 Aborting the configuration process, to ensure you take notice of the issue.
2864
2865 You can download and install GNU coreutils to get an 'rm' implementation
2866 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2867
2868 If you want to complete the configuration process using your problematic
2869 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2870 to "yes", and re-run configure.
2871
2872 END
2873 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2874 fi
2875 fi
2876
2877 LPATH="$PATH:/usr/local/bin"
2878
2879
2880 ac_config_headers="$ac_config_headers config.h"
2881
2882 DEPDIR="${am__leading_dot}deps"
2883
2884 ac_config_commands="$ac_config_commands depfiles"
2885
2886
2887 am_make=${MAKE-make}
2888 cat > confinc << 'END'
2889 am__doit:
2890 @echo this is the am__doit target
2891 .PHONY: am__doit
2892 END
2893 # If we don't find an include directive, just comment out the code.
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2895 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2896 am__include="#"
2897 am__quote=
2898 _am_result=none
2899 # First try GNU make style include.
2900 echo "include confinc" > confmf
2901 # Ignore all kinds of additional output from 'make'.
2902 case `$am_make -s -f confmf 2> /dev/null` in #(
2903 *the\ am__doit\ target*)
2904 am__include=include
2905 am__quote=
2906 _am_result=GNU
2907 ;;
2908 esac
2909 # Now try BSD make style include.
2910 if test "$am__include" = "#"; then
2911 echo '.include "confinc"' > confmf
2912 case `$am_make -s -f confmf 2> /dev/null` in #(
2913 *the\ am__doit\ target*)
2914 am__include=.include
2915 am__quote="\""
2916 _am_result=BSD
2917 ;;
2918 esac
2919 fi
2920
2921
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2923 $as_echo "$_am_result" >&6; }
2924 rm -f confinc confmf
2925
2926 # Check whether --enable-dependency-tracking was given.
2927 if test "${enable_dependency_tracking+set}" = set; then :
2928 enableval=$enable_dependency_tracking;
2929 fi
2930
2931 if test "x$enable_dependency_tracking" != xno; then
2932 am_depcomp="$ac_aux_dir/depcomp"
2933 AMDEPBACKSLASH='\'
2934 am__nodep='_no'
2935 fi
2936 if test "x$enable_dependency_tracking" != xno; then
2937 AMDEP_TRUE=
2938 AMDEP_FALSE='#'
2939 else
2940 AMDEP_TRUE='#'
2941 AMDEP_FALSE=
2942 fi
2943
2944
2945 ac_ext=c
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950 if test -n "$ac_tool_prefix"; then
2951 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2952 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_CC+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$CC"; then
2959 ac_cv_prog_CC="$CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2971 fi
2972 done
2973 done
2974 IFS=$as_save_IFS
2975
2976 fi
2977 fi
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988 fi
2989 if test -z "$ac_cv_prog_CC"; then
2990 ac_ct_CC=$CC
2991 # Extract the first word of "gcc", so it can be a program name with args.
2992 set dummy gcc; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 if test -n "$ac_ct_CC"; then
2999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_ac_ct_CC="gcc"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3011 fi
3012 done
3013 done
3014 IFS=$as_save_IFS
3015
3016 fi
3017 fi
3018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3019 if test -n "$ac_ct_CC"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3021 $as_echo "$ac_ct_CC" >&6; }
3022 else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3025 fi
3026
3027 if test "x$ac_ct_CC" = x; then
3028 CC=""
3029 else
3030 case $cross_compiling:$ac_tool_warned in
3031 yes:)
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036 CC=$ac_ct_CC
3037 fi
3038 else
3039 CC="$ac_cv_prog_CC"
3040 fi
3041
3042 if test -z "$CC"; then
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3045 set dummy ${ac_tool_prefix}cc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_CC="${ac_tool_prefix}cc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065 done
3066 done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 CC=$ac_cv_prog_CC
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081 fi
3082 fi
3083 if test -z "$CC"; then
3084 # Extract the first word of "cc", so it can be a program name with args.
3085 set dummy cc; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_CC+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if test -n "$CC"; then
3092 ac_cv_prog_CC="$CC" # Let the user override the test.
3093 else
3094 ac_prog_rejected=no
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3103 ac_prog_rejected=yes
3104 continue
3105 fi
3106 ac_cv_prog_CC="cc"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 if test $ac_prog_rejected = yes; then
3115 # We found a bogon in the path, so make sure we never use it.
3116 set dummy $ac_cv_prog_CC
3117 shift
3118 if test $# != 0; then
3119 # We chose a different compiler from the bogus one.
3120 # However, it has the same basename, so the bogon will be chosen
3121 # first if we set CC to just the basename; use the full file name.
3122 shift
3123 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3124 fi
3125 fi
3126 fi
3127 fi
3128 CC=$ac_cv_prog_CC
3129 if test -n "$CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 fi
3136
3137
3138 fi
3139 if test -z "$CC"; then
3140 if test -n "$ac_tool_prefix"; then
3141 for ac_prog in cl.exe
3142 do
3143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if ${ac_cv_prog_CC+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164 done
3165 done
3166 IFS=$as_save_IFS
3167
3168 fi
3169 fi
3170 CC=$ac_cv_prog_CC
3171 if test -n "$CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173 $as_echo "$CC" >&6; }
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 fi
3178
3179
3180 test -n "$CC" && break
3181 done
3182 fi
3183 if test -z "$CC"; then
3184 ac_ct_CC=$CC
3185 for ac_prog in cl.exe
3186 do
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy $ac_prog; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$ac_ct_CC"; then
3195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_ac_ct_CC="$ac_prog"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208 done
3209 done
3210 IFS=$as_save_IFS
3211
3212 fi
3213 fi
3214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215 if test -n "$ac_ct_CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3217 $as_echo "$ac_ct_CC" >&6; }
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224 test -n "$ac_ct_CC" && break
3225 done
3226
3227 if test "x$ac_ct_CC" = x; then
3228 CC=""
3229 else
3230 case $cross_compiling:$ac_tool_warned in
3231 yes:)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234 ac_tool_warned=yes ;;
3235 esac
3236 CC=$ac_ct_CC
3237 fi
3238 fi
3239
3240 fi
3241
3242
3243 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "no acceptable C compiler found in \$PATH
3246 See \`config.log' for more details" "$LINENO" 5; }
3247
3248 # Provide some information about the compiler.
3249 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3250 set X $ac_compile
3251 ac_compiler=$2
3252 for ac_option in --version -v -V -qversion; do
3253 { { ac_try="$ac_compiler $ac_option >&5"
3254 case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3261 ac_status=$?
3262 if test -s conftest.err; then
3263 sed '10a\
3264 ... rest of stderr output deleted ...
3265 10q' conftest.err >conftest.er1
3266 cat conftest.er1 >&5
3267 fi
3268 rm -f conftest.er1 conftest.err
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }
3271 done
3272
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275
3276 int
3277 main ()
3278 {
3279
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 ac_clean_files_save=$ac_clean_files
3285 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3286 # Try to create an executable without -o first, disregard a.out.
3287 # It will help us diagnose broken compilers, and finding out an intuition
3288 # of exeext.
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3290 $as_echo_n "checking whether the C compiler works... " >&6; }
3291 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3292
3293 # The possible output files:
3294 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3295
3296 ac_rmfiles=
3297 for ac_file in $ac_files
3298 do
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3302 esac
3303 done
3304 rm -f $ac_rmfiles
3305
3306 if { { ac_try="$ac_link_default"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_link_default") 2>&5
3314 ac_status=$?
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3318 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3319 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3320 # so that the user can short-circuit this test for compilers unknown to
3321 # Autoconf.
3322 for ac_file in $ac_files ''
3323 do
3324 test -f "$ac_file" || continue
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3327 ;;
3328 [ab].out )
3329 # We found the default executable, but exeext='' is most
3330 # certainly right.
3331 break;;
3332 *.* )
3333 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3334 then :; else
3335 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 fi
3337 # We set ac_cv_exeext here because the later test for it is not
3338 # safe: cross compilers may not add the suffix if given an `-o'
3339 # argument, so we may need to know it at that point already.
3340 # Even if this section looks crufty: it has the advantage of
3341 # actually working.
3342 break;;
3343 * )
3344 break;;
3345 esac
3346 done
3347 test "$ac_cv_exeext" = no && ac_cv_exeext=
3348
3349 else
3350 ac_file=''
3351 fi
3352 if test -z "$ac_file"; then :
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3355 $as_echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error 77 "C compiler cannot create executables
3361 See \`config.log' for more details" "$LINENO" 5; }
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364 $as_echo "yes" >&6; }
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3367 $as_echo_n "checking for C compiler default output file name... " >&6; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3369 $as_echo "$ac_file" >&6; }
3370 ac_exeext=$ac_cv_exeext
3371
3372 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3373 ac_clean_files=$ac_clean_files_save
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3375 $as_echo_n "checking for suffix of executables... " >&6; }
3376 if { { ac_try="$ac_link"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_link") 2>&5
3384 ac_status=$?
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; then :
3387 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3388 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3389 # work properly (i.e., refer to `conftest.exe'), while it won't with
3390 # `rm'.
3391 for ac_file in conftest.exe conftest conftest.*; do
3392 test -f "$ac_file" || continue
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3395 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3396 break;;
3397 * ) break;;
3398 esac
3399 done
3400 else
3401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3404 See \`config.log' for more details" "$LINENO" 5; }
3405 fi
3406 rm -f conftest conftest$ac_cv_exeext
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3408 $as_echo "$ac_cv_exeext" >&6; }
3409
3410 rm -f conftest.$ac_ext
3411 EXEEXT=$ac_cv_exeext
3412 ac_exeext=$EXEEXT
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415 #include <stdio.h>
3416 int
3417 main ()
3418 {
3419 FILE *f = fopen ("conftest.out", "w");
3420 return ferror (f) || fclose (f) != 0;
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 ac_clean_files="$ac_clean_files conftest.out"
3427 # Check that the compiler produces executables we can run. If not, either
3428 # the compiler is broken, or we cross compile.
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3430 $as_echo_n "checking whether we are cross compiling... " >&6; }
3431 if test "$cross_compiling" != yes; then
3432 { { ac_try="$ac_link"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_link") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }
3443 if { ac_try='./conftest$ac_cv_exeext'
3444 { { case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_try") 2>&5
3451 ac_status=$?
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; }; then
3454 cross_compiling=no
3455 else
3456 if test "$cross_compiling" = maybe; then
3457 cross_compiling=yes
3458 else
3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 as_fn_error $? "cannot run C compiled programs.
3462 If you meant to cross compile, use \`--host'.
3463 See \`config.log' for more details" "$LINENO" 5; }
3464 fi
3465 fi
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3468 $as_echo "$cross_compiling" >&6; }
3469
3470 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3471 ac_clean_files=$ac_clean_files_save
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3473 $as_echo_n "checking for suffix of object files... " >&6; }
3474 if ${ac_cv_objext+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479
3480 int
3481 main ()
3482 {
3483
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.o conftest.obj
3489 if { { ac_try="$ac_compile"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495 $as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_compile") 2>&5
3497 ac_status=$?
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }; then :
3500 for ac_file in conftest.o conftest.obj conftest.*; do
3501 test -f "$ac_file" || continue;
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505 break;;
3506 esac
3507 done
3508 else
3509 $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 as_fn_error $? "cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details" "$LINENO" 5; }
3516 fi
3517 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3518 fi
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3520 $as_echo "$ac_cv_objext" >&6; }
3521 OBJEXT=$ac_cv_objext
3522 ac_objext=$OBJEXT
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3524 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3525 if ${ac_cv_c_compiler_gnu+:} false; then :
3526 $as_echo_n "(cached) " >&6
3527 else
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530
3531 int
3532 main ()
3533 {
3534 #ifndef __GNUC__
3535 choke me
3536 #endif
3537
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 if ac_fn_c_try_compile "$LINENO"; then :
3543 ac_compiler_gnu=yes
3544 else
3545 ac_compiler_gnu=no
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3549
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3552 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3553 if test $ac_compiler_gnu = yes; then
3554 GCC=yes
3555 else
3556 GCC=
3557 fi
3558 ac_test_CFLAGS=${CFLAGS+set}
3559 ac_save_CFLAGS=$CFLAGS
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3561 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3562 if ${ac_cv_prog_cc_g+:} false; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 ac_save_c_werror_flag=$ac_c_werror_flag
3566 ac_c_werror_flag=yes
3567 ac_cv_prog_cc_g=no
3568 CFLAGS="-g"
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571
3572 int
3573 main ()
3574 {
3575
3576 ;
3577 return 0;
3578 }
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_cv_prog_cc_g=yes
3582 else
3583 CFLAGS=""
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586
3587 int
3588 main ()
3589 {
3590
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596
3597 else
3598 ac_c_werror_flag=$ac_save_c_werror_flag
3599 CFLAGS="-g"
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602
3603 int
3604 main ()
3605 {
3606
3607 ;
3608 return 0;
3609 }
3610 _ACEOF
3611 if ac_fn_c_try_compile "$LINENO"; then :
3612 ac_cv_prog_cc_g=yes
3613 fi
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 fi
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 fi
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 ac_c_werror_flag=$ac_save_c_werror_flag
3620 fi
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3622 $as_echo "$ac_cv_prog_cc_g" >&6; }
3623 if test "$ac_test_CFLAGS" = set; then
3624 CFLAGS=$ac_save_CFLAGS
3625 elif test $ac_cv_prog_cc_g = yes; then
3626 if test "$GCC" = yes; then
3627 CFLAGS="-g -O2"
3628 else
3629 CFLAGS="-g"
3630 fi
3631 else
3632 if test "$GCC" = yes; then
3633 CFLAGS="-O2"
3634 else
3635 CFLAGS=
3636 fi
3637 fi
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3639 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3640 if ${ac_cv_prog_cc_c89+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 ac_cv_prog_cc_c89=no
3644 ac_save_CC=$CC
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647 #include <stdarg.h>
3648 #include <stdio.h>
3649 struct stat;
3650 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3651 struct buf { int x; };
3652 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3653 static char *e (p, i)
3654 char **p;
3655 int i;
3656 {
3657 return p[i];
3658 }
3659 static char *f (char * (*g) (char **, int), char **p, ...)
3660 {
3661 char *s;
3662 va_list v;
3663 va_start (v,p);
3664 s = g (p, va_arg (v,int));
3665 va_end (v);
3666 return s;
3667 }
3668
3669 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3670 function prototypes and stuff, but not '\xHH' hex character constants.
3671 These don't provoke an error unfortunately, instead are silently treated
3672 as 'x'. The following induces an error, until -std is added to get
3673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3674 array size at least. It's necessary to write '\x00'==0 to get something
3675 that's true only with -std. */
3676 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3677
3678 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3679 inside strings and character constants. */
3680 #define FOO(x) 'x'
3681 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3682
3683 int test (int i, double x);
3684 struct s1 {int (*f) (int a);};
3685 struct s2 {int (*f) (double a);};
3686 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3687 int argc;
3688 char **argv;
3689 int
3690 main ()
3691 {
3692 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3699 do
3700 CC="$ac_save_CC $ac_arg"
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702 ac_cv_prog_cc_c89=$ac_arg
3703 fi
3704 rm -f core conftest.err conftest.$ac_objext
3705 test "x$ac_cv_prog_cc_c89" != "xno" && break
3706 done
3707 rm -f conftest.$ac_ext
3708 CC=$ac_save_CC
3709
3710 fi
3711 # AC_CACHE_VAL
3712 case "x$ac_cv_prog_cc_c89" in
3713 x)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3715 $as_echo "none needed" >&6; } ;;
3716 xno)
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3718 $as_echo "unsupported" >&6; } ;;
3719 *)
3720 CC="$CC $ac_cv_prog_cc_c89"
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3722 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3723 esac
3724 if test "x$ac_cv_prog_cc_c89" != xno; then :
3725
3726 fi
3727
3728 ac_ext=c
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3740 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3741 if ${am_cv_prog_cc_c_o+:} false; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746
3747 int
3748 main ()
3749 {
3750
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 # Make sure it works both with $CC and with simple cc.
3756 # Following AC_PROG_CC_C_O, we do the test twice because some
3757 # compilers refuse to overwrite an existing .o file with -o,
3758 # though they will create one.
3759 am_cv_prog_cc_c_o=yes
3760 for am_i in 1 2; do
3761 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3762 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } \
3766 && test -f conftest2.$ac_objext; then
3767 : OK
3768 else
3769 am_cv_prog_cc_c_o=no
3770 break
3771 fi
3772 done
3773 rm -f core conftest*
3774 unset am_i
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3777 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3778 if test "$am_cv_prog_cc_c_o" != yes; then
3779 # Losing compiler, so override with the script.
3780 # FIXME: It is wrong to rewrite CC.
3781 # But if we don't then we get into trouble of one sort or another.
3782 # A longer-term fix would be to have automake use am__CC in this case,
3783 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3784 CC="$am_aux_dir/compile $CC"
3785 fi
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792
3793 depcc="$CC" am_compiler_list=
3794
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3796 $as_echo_n "checking dependency style of $depcc... " >&6; }
3797 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3801 # We make a subdir and do the tests there. Otherwise we can end up
3802 # making bogus files that we don't know about and never remove. For
3803 # instance it was reported that on HP-UX the gcc test will end up
3804 # making a dummy file named 'D' -- because '-MD' means "put the output
3805 # in D".
3806 rm -rf conftest.dir
3807 mkdir conftest.dir
3808 # Copy depcomp to subdir because otherwise we won't find it if we're
3809 # using a relative directory.
3810 cp "$am_depcomp" conftest.dir
3811 cd conftest.dir
3812 # We will build objects and dependencies in a subdirectory because
3813 # it helps to detect inapplicable dependency modes. For instance
3814 # both Tru64's cc and ICC support -MD to output dependencies as a
3815 # side effect of compilation, but ICC will put the dependencies in
3816 # the current directory while Tru64 will put them in the object
3817 # directory.
3818 mkdir sub
3819
3820 am_cv_CC_dependencies_compiler_type=none
3821 if test "$am_compiler_list" = ""; then
3822 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823 fi
3824 am__universal=false
3825 case " $depcc " in #(
3826 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3827 esac
3828
3829 for depmode in $am_compiler_list; do
3830 # Setup a source with many dependencies, because some compilers
3831 # like to wrap large dependency lists on column 80 (with \), and
3832 # we should not choose a depcomp mode which is confused by this.
3833 #
3834 # We need to recreate these files for each test, as the compiler may
3835 # overwrite some of them when testing with obscure command lines.
3836 # This happens at least with the AIX C compiler.
3837 : > sub/conftest.c
3838 for i in 1 2 3 4 5 6; do
3839 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3840 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3841 # Solaris 10 /bin/sh.
3842 echo '/* dummy */' > sub/conftst$i.h
3843 done
3844 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3845
3846 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3847 # mode. It turns out that the SunPro C++ compiler does not properly
3848 # handle '-M -o', and we need to detect this. Also, some Intel
3849 # versions had trouble with output in subdirs.
3850 am__obj=sub/conftest.${OBJEXT-o}
3851 am__minus_obj="-o $am__obj"
3852 case $depmode in
3853 gcc)
3854 # This depmode causes a compiler race in universal mode.
3855 test "$am__universal" = false || continue
3856 ;;
3857 nosideeffect)
3858 # After this tag, mechanisms are not by side-effect, so they'll
3859 # only be used when explicitly requested.
3860 if test "x$enable_dependency_tracking" = xyes; then
3861 continue
3862 else
3863 break
3864 fi
3865 ;;
3866 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3867 # This compiler won't grok '-c -o', but also, the minuso test has
3868 # not run yet. These depmodes are late enough in the game, and
3869 # so weak that their functioning should not be impacted.
3870 am__obj=conftest.${OBJEXT-o}
3871 am__minus_obj=
3872 ;;
3873 none) break ;;
3874 esac
3875 if depmode=$depmode \
3876 source=sub/conftest.c object=$am__obj \
3877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3878 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3879 >/dev/null 2>conftest.err &&
3880 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3881 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3882 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3883 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3884 # icc doesn't choke on unknown options, it will just issue warnings
3885 # or remarks (even with -Werror). So we grep stderr for any message
3886 # that says an option was ignored or not supported.
3887 # When given -MP, icc 7.0 and 7.1 complain thusly:
3888 # icc: Command line warning: ignoring option '-M'; no argument required
3889 # The diagnosis changed in icc 8.0:
3890 # icc: Command line remark: option '-MP' not supported
3891 if (grep 'ignoring option' conftest.err ||
3892 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3893 am_cv_CC_dependencies_compiler_type=$depmode
3894 break
3895 fi
3896 fi
3897 done
3898
3899 cd ..
3900 rm -rf conftest.dir
3901 else
3902 am_cv_CC_dependencies_compiler_type=none
3903 fi
3904
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3907 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3908 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3909
3910 if
3911 test "x$enable_dependency_tracking" != xno \
3912 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3913 am__fastdepCC_TRUE=
3914 am__fastdepCC_FALSE='#'
3915 else
3916 am__fastdepCC_TRUE='#'
3917 am__fastdepCC_FALSE=
3918 fi
3919
3920
3921
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3928 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3929 # On Suns, sometimes $CPP names a directory.
3930 if test -n "$CPP" && test -d "$CPP"; then
3931 CPP=
3932 fi
3933 if test -z "$CPP"; then
3934 if ${ac_cv_prog_CPP+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 # Double quotes because CPP needs to be expanded
3938 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3939 do
3940 ac_preproc_ok=false
3941 for ac_c_preproc_warn_flag in '' yes
3942 do
3943 # Use a header file that comes with gcc, so configuring glibc
3944 # with a fresh cross-compiler works.
3945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946 # <limits.h> exists even on freestanding compilers.
3947 # On the NeXT, cc -E runs the code through the compiler's parser,
3948 # not just through cpp. "Syntax error" is here to catch this case.
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3951 #ifdef __STDC__
3952 # include <limits.h>
3953 #else
3954 # include <assert.h>
3955 #endif
3956 Syntax error
3957 _ACEOF
3958 if ac_fn_c_try_cpp "$LINENO"; then :
3959
3960 else
3961 # Broken: fails on valid input.
3962 continue
3963 fi
3964 rm -f conftest.err conftest.i conftest.$ac_ext
3965
3966 # OK, works on sane cases. Now check whether nonexistent headers
3967 # can be detected and how.
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970 #include <ac_nonexistent.h>
3971 _ACEOF
3972 if ac_fn_c_try_cpp "$LINENO"; then :
3973 # Broken: success on invalid input.
3974 continue
3975 else
3976 # Passes both tests.
3977 ac_preproc_ok=:
3978 break
3979 fi
3980 rm -f conftest.err conftest.i conftest.$ac_ext
3981
3982 done
3983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3984 rm -f conftest.i conftest.err conftest.$ac_ext
3985 if $ac_preproc_ok; then :
3986 break
3987 fi
3988
3989 done
3990 ac_cv_prog_CPP=$CPP
3991
3992 fi
3993 CPP=$ac_cv_prog_CPP
3994 else
3995 ac_cv_prog_CPP=$CPP
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3998 $as_echo "$CPP" >&6; }
3999 ac_preproc_ok=false
4000 for ac_c_preproc_warn_flag in '' yes
4001 do
4002 # Use a header file that comes with gcc, so configuring glibc
4003 # with a fresh cross-compiler works.
4004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005 # <limits.h> exists even on freestanding compilers.
4006 # On the NeXT, cc -E runs the code through the compiler's parser,
4007 # not just through cpp. "Syntax error" is here to catch this case.
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4010 #ifdef __STDC__
4011 # include <limits.h>
4012 #else
4013 # include <assert.h>
4014 #endif
4015 Syntax error
4016 _ACEOF
4017 if ac_fn_c_try_cpp "$LINENO"; then :
4018
4019 else
4020 # Broken: fails on valid input.
4021 continue
4022 fi
4023 rm -f conftest.err conftest.i conftest.$ac_ext
4024
4025 # OK, works on sane cases. Now check whether nonexistent headers
4026 # can be detected and how.
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4029 #include <ac_nonexistent.h>
4030 _ACEOF
4031 if ac_fn_c_try_cpp "$LINENO"; then :
4032 # Broken: success on invalid input.
4033 continue
4034 else
4035 # Passes both tests.
4036 ac_preproc_ok=:
4037 break
4038 fi
4039 rm -f conftest.err conftest.i conftest.$ac_ext
4040
4041 done
4042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043 rm -f conftest.i conftest.err conftest.$ac_ext
4044 if $ac_preproc_ok; then :
4045
4046 else
4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4050 See \`config.log' for more details" "$LINENO" 5; }
4051 fi
4052
4053 ac_ext=c
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058
4059
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4061 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4062 if ${ac_cv_path_GREP+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 if test -z "$GREP"; then
4066 ac_path_GREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_prog in grep ggrep; do
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4076 as_fn_executable_p "$ac_path_GREP" || continue
4077 # Check for GNU ac_path_GREP and select it if it is found.
4078 # Check for GNU $ac_path_GREP
4079 case `"$ac_path_GREP" --version 2>&1` in
4080 *GNU*)
4081 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4082 *)
4083 ac_count=0
4084 $as_echo_n 0123456789 >"conftest.in"
4085 while :
4086 do
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 $as_echo 'GREP' >> "conftest.nl"
4091 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093 as_fn_arith $ac_count + 1 && ac_count=$as_val
4094 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_GREP="$ac_path_GREP"
4097 ac_path_GREP_max=$ac_count
4098 fi
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4101 done
4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103 esac
4104
4105 $ac_path_GREP_found && break 3
4106 done
4107 done
4108 done
4109 IFS=$as_save_IFS
4110 if test -z "$ac_cv_path_GREP"; then
4111 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4112 fi
4113 else
4114 ac_cv_path_GREP=$GREP
4115 fi
4116
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4119 $as_echo "$ac_cv_path_GREP" >&6; }
4120 GREP="$ac_cv_path_GREP"
4121
4122
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4124 $as_echo_n "checking for egrep... " >&6; }
4125 if ${ac_cv_path_EGREP+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4129 then ac_cv_path_EGREP="$GREP -E"
4130 else
4131 if test -z "$EGREP"; then
4132 ac_path_EGREP_found=false
4133 # Loop through the user's path and test for each of PROGNAME-LIST
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4136 do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_prog in egrep; do
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4142 as_fn_executable_p "$ac_path_EGREP" || continue
4143 # Check for GNU ac_path_EGREP and select it if it is found.
4144 # Check for GNU $ac_path_EGREP
4145 case `"$ac_path_EGREP" --version 2>&1` in
4146 *GNU*)
4147 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4148 *)
4149 ac_count=0
4150 $as_echo_n 0123456789 >"conftest.in"
4151 while :
4152 do
4153 cat "conftest.in" "conftest.in" >"conftest.tmp"
4154 mv "conftest.tmp" "conftest.in"
4155 cp "conftest.in" "conftest.nl"
4156 $as_echo 'EGREP' >> "conftest.nl"
4157 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4159 as_fn_arith $ac_count + 1 && ac_count=$as_val
4160 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4161 # Best one so far, save it but keep looking for a better one
4162 ac_cv_path_EGREP="$ac_path_EGREP"
4163 ac_path_EGREP_max=$ac_count
4164 fi
4165 # 10*(2^10) chars as input seems more than enough
4166 test $ac_count -gt 10 && break
4167 done
4168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4169 esac
4170
4171 $ac_path_EGREP_found && break 3
4172 done
4173 done
4174 done
4175 IFS=$as_save_IFS
4176 if test -z "$ac_cv_path_EGREP"; then
4177 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4178 fi
4179 else
4180 ac_cv_path_EGREP=$EGREP
4181 fi
4182
4183 fi
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4186 $as_echo "$ac_cv_path_EGREP" >&6; }
4187 EGREP="$ac_cv_path_EGREP"
4188
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4191 $as_echo_n "checking for ANSI C header files... " >&6; }
4192 if ${ac_cv_header_stdc+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #include <stdlib.h>
4198 #include <stdarg.h>
4199 #include <string.h>
4200 #include <float.h>
4201
4202 int
4203 main ()
4204 {
4205
4206 ;
4207 return 0;
4208 }
4209 _ACEOF
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_cv_header_stdc=yes
4212 else
4213 ac_cv_header_stdc=no
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216
4217 if test $ac_cv_header_stdc = yes; then
4218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #include <string.h>
4222
4223 _ACEOF
4224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4225 $EGREP "memchr" >/dev/null 2>&1; then :
4226
4227 else
4228 ac_cv_header_stdc=no
4229 fi
4230 rm -f conftest*
4231
4232 fi
4233
4234 if test $ac_cv_header_stdc = yes; then
4235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #include <stdlib.h>
4239
4240 _ACEOF
4241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242 $EGREP "free" >/dev/null 2>&1; then :
4243
4244 else
4245 ac_cv_header_stdc=no
4246 fi
4247 rm -f conftest*
4248
4249 fi
4250
4251 if test $ac_cv_header_stdc = yes; then
4252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4253 if test "$cross_compiling" = yes; then :
4254 :
4255 else
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <ctype.h>
4259 #include <stdlib.h>
4260 #if ((' ' & 0x0FF) == 0x020)
4261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4263 #else
4264 # define ISLOWER(c) \
4265 (('a' <= (c) && (c) <= 'i') \
4266 || ('j' <= (c) && (c) <= 'r') \
4267 || ('s' <= (c) && (c) <= 'z'))
4268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4269 #endif
4270
4271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4272 int
4273 main ()
4274 {
4275 int i;
4276 for (i = 0; i < 256; i++)
4277 if (XOR (islower (i), ISLOWER (i))
4278 || toupper (i) != TOUPPER (i))
4279 return 2;
4280 return 0;
4281 }
4282 _ACEOF
4283 if ac_fn_c_try_run "$LINENO"; then :
4284
4285 else
4286 ac_cv_header_stdc=no
4287 fi
4288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4289 conftest.$ac_objext conftest.beam conftest.$ac_ext
4290 fi
4291
4292 fi
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4295 $as_echo "$ac_cv_header_stdc" >&6; }
4296 if test $ac_cv_header_stdc = yes; then
4297
4298 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4299
4300 fi
4301
4302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4303 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4304 inttypes.h stdint.h unistd.h
4305 do :
4306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4307 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4308 "
4309 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4310 cat >>confdefs.h <<_ACEOF
4311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312 _ACEOF
4313
4314 fi
4315
4316 done
4317
4318
4319
4320 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4321 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4322 MINIX=yes
4323 else
4324 MINIX=
4325 fi
4326
4327
4328 if test "$MINIX" = yes; then
4329
4330 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4331
4332
4333 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4334
4335
4336 $as_echo "#define _MINIX 1" >>confdefs.h
4337
4338 fi
4339
4340
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4342 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4343 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348
4349 # define __EXTENSIONS__ 1
4350 $ac_includes_default
4351 int
4352 main ()
4353 {
4354
4355 ;
4356 return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360 ac_cv_safe_to_define___extensions__=yes
4361 else
4362 ac_cv_safe_to_define___extensions__=no
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4367 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4368 test $ac_cv_safe_to_define___extensions__ = yes &&
4369 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4370
4371 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4372
4373 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4374
4375 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4376
4377 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4378
4379
4380
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4382 $as_echo_n "checking whether ln -s works... " >&6; }
4383 LN_S=$as_ln_s
4384 if test "$LN_S" = "ln -s"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4386 $as_echo "yes" >&6; }
4387 else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4389 $as_echo "no, using $LN_S" >&6; }
4390 fi
4391
4392 ac_ext=c
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_prog_CC+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$CC"; then
4406 ac_cv_prog_CC="$CC" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419 done
4420 done
4421 IFS=$as_save_IFS
4422
4423 fi
4424 fi
4425 CC=$ac_cv_prog_CC
4426 if test -n "$CC"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4428 $as_echo "$CC" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433
4434
4435 fi
4436 if test -z "$ac_cv_prog_CC"; then
4437 ac_ct_CC=$CC
4438 # Extract the first word of "gcc", so it can be a program name with args.
4439 set dummy gcc; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$ac_ct_CC"; then
4446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_ac_ct_CC="gcc"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4466 if test -n "$ac_ct_CC"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4468 $as_echo "$ac_ct_CC" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474 if test "x$ac_ct_CC" = x; then
4475 CC=""
4476 else
4477 case $cross_compiling:$ac_tool_warned in
4478 yes:)
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4481 ac_tool_warned=yes ;;
4482 esac
4483 CC=$ac_ct_CC
4484 fi
4485 else
4486 CC="$ac_cv_prog_CC"
4487 fi
4488
4489 if test -z "$CC"; then
4490 if test -n "$ac_tool_prefix"; then
4491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4492 set dummy ${ac_tool_prefix}cc; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if ${ac_cv_prog_CC+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 if test -n "$CC"; then
4499 ac_cv_prog_CC="$CC" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508 ac_cv_prog_CC="${ac_tool_prefix}cc"
4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512 done
4513 done
4514 IFS=$as_save_IFS
4515
4516 fi
4517 fi
4518 CC=$ac_cv_prog_CC
4519 if test -n "$CC"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4521 $as_echo "$CC" >&6; }
4522 else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4525 fi
4526
4527
4528 fi
4529 fi
4530 if test -z "$CC"; then
4531 # Extract the first word of "cc", so it can be a program name with args.
4532 set dummy cc; ac_word=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if ${ac_cv_prog_CC+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if test -n "$CC"; then
4539 ac_cv_prog_CC="$CC" # Let the user override the test.
4540 else
4541 ac_prog_rejected=no
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4550 ac_prog_rejected=yes
4551 continue
4552 fi
4553 ac_cv_prog_CC="cc"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557 done
4558 done
4559 IFS=$as_save_IFS
4560
4561 if test $ac_prog_rejected = yes; then
4562 # We found a bogon in the path, so make sure we never use it.
4563 set dummy $ac_cv_prog_CC
4564 shift
4565 if test $# != 0; then
4566 # We chose a different compiler from the bogus one.
4567 # However, it has the same basename, so the bogon will be chosen
4568 # first if we set CC to just the basename; use the full file name.
4569 shift
4570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4571 fi
4572 fi
4573 fi
4574 fi
4575 CC=$ac_cv_prog_CC
4576 if test -n "$CC"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4578 $as_echo "$CC" >&6; }
4579 else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4582 fi
4583
4584
4585 fi
4586 if test -z "$CC"; then
4587 if test -n "$ac_tool_prefix"; then
4588 for ac_prog in cl.exe
4589 do
4590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_CC+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$CC"; then
4598 ac_cv_prog_CC="$CC" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 CC=$ac_cv_prog_CC
4618 if test -n "$CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620 $as_echo "$CC" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4625
4626
4627 test -n "$CC" && break
4628 done
4629 fi
4630 if test -z "$CC"; then
4631 ac_ct_CC=$CC
4632 for ac_prog in cl.exe
4633 do
4634 # Extract the first word of "$ac_prog", so it can be a program name with args.
4635 set dummy $ac_prog; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if test -n "$ac_ct_CC"; then
4642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_CC="$ac_prog"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659 fi
4660 fi
4661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4662 if test -n "$ac_ct_CC"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4664 $as_echo "$ac_ct_CC" >&6; }
4665 else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670
4671 test -n "$ac_ct_CC" && break
4672 done
4673
4674 if test "x$ac_ct_CC" = x; then
4675 CC=""
4676 else
4677 case $cross_compiling:$ac_tool_warned in
4678 yes:)
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4681 ac_tool_warned=yes ;;
4682 esac
4683 CC=$ac_ct_CC
4684 fi
4685 fi
4686
4687 fi
4688
4689
4690 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4692 as_fn_error $? "no acceptable C compiler found in \$PATH
4693 See \`config.log' for more details" "$LINENO" 5; }
4694
4695 # Provide some information about the compiler.
4696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4697 set X $ac_compile
4698 ac_compiler=$2
4699 for ac_option in --version -v -V -qversion; do
4700 { { ac_try="$ac_compiler $ac_option >&5"
4701 case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706 $as_echo "$ac_try_echo"; } >&5
4707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4708 ac_status=$?
4709 if test -s conftest.err; then
4710 sed '10a\
4711 ... rest of stderr output deleted ...
4712 10q' conftest.err >conftest.er1
4713 cat conftest.er1 >&5
4714 fi
4715 rm -f conftest.er1 conftest.err
4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }
4718 done
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4721 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4722 if ${ac_cv_c_compiler_gnu+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727
4728 int
4729 main ()
4730 {
4731 #ifndef __GNUC__
4732 choke me
4733 #endif
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_c_try_compile "$LINENO"; then :
4740 ac_compiler_gnu=yes
4741 else
4742 ac_compiler_gnu=no
4743 fi
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4746
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4749 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4750 if test $ac_compiler_gnu = yes; then
4751 GCC=yes
4752 else
4753 GCC=
4754 fi
4755 ac_test_CFLAGS=${CFLAGS+set}
4756 ac_save_CFLAGS=$CFLAGS
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4758 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4759 if ${ac_cv_prog_cc_g+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 ac_save_c_werror_flag=$ac_c_werror_flag
4763 ac_c_werror_flag=yes
4764 ac_cv_prog_cc_g=no
4765 CFLAGS="-g"
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768
4769 int
4770 main ()
4771 {
4772
4773 ;
4774 return 0;
4775 }
4776 _ACEOF
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778 ac_cv_prog_cc_g=yes
4779 else
4780 CFLAGS=""
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783
4784 int
4785 main ()
4786 {
4787
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793
4794 else
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4796 CFLAGS="-g"
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799
4800 int
4801 main ()
4802 {
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_prog_cc_g=yes
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 fi
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_c_werror_flag=$ac_save_c_werror_flag
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4819 $as_echo "$ac_cv_prog_cc_g" >&6; }
4820 if test "$ac_test_CFLAGS" = set; then
4821 CFLAGS=$ac_save_CFLAGS
4822 elif test $ac_cv_prog_cc_g = yes; then
4823 if test "$GCC" = yes; then
4824 CFLAGS="-g -O2"
4825 else
4826 CFLAGS="-g"
4827 fi
4828 else
4829 if test "$GCC" = yes; then
4830 CFLAGS="-O2"
4831 else
4832 CFLAGS=
4833 fi
4834 fi
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4836 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4837 if ${ac_cv_prog_cc_c89+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 ac_cv_prog_cc_c89=no
4841 ac_save_CC=$CC
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844 #include <stdarg.h>
4845 #include <stdio.h>
4846 struct stat;
4847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4848 struct buf { int x; };
4849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4850 static char *e (p, i)
4851 char **p;
4852 int i;
4853 {
4854 return p[i];
4855 }
4856 static char *f (char * (*g) (char **, int), char **p, ...)
4857 {
4858 char *s;
4859 va_list v;
4860 va_start (v,p);
4861 s = g (p, va_arg (v,int));
4862 va_end (v);
4863 return s;
4864 }
4865
4866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4867 function prototypes and stuff, but not '\xHH' hex character constants.
4868 These don't provoke an error unfortunately, instead are silently treated
4869 as 'x'. The following induces an error, until -std is added to get
4870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4871 array size at least. It's necessary to write '\x00'==0 to get something
4872 that's true only with -std. */
4873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4874
4875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4876 inside strings and character constants. */
4877 #define FOO(x) 'x'
4878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4879
4880 int test (int i, double x);
4881 struct s1 {int (*f) (int a);};
4882 struct s2 {int (*f) (double a);};
4883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4884 int argc;
4885 char **argv;
4886 int
4887 main ()
4888 {
4889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4890 ;
4891 return 0;
4892 }
4893 _ACEOF
4894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4896 do
4897 CC="$ac_save_CC $ac_arg"
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899 ac_cv_prog_cc_c89=$ac_arg
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext
4902 test "x$ac_cv_prog_cc_c89" != "xno" && break
4903 done
4904 rm -f conftest.$ac_ext
4905 CC=$ac_save_CC
4906
4907 fi
4908 # AC_CACHE_VAL
4909 case "x$ac_cv_prog_cc_c89" in
4910 x)
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4912 $as_echo "none needed" >&6; } ;;
4913 xno)
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4915 $as_echo "unsupported" >&6; } ;;
4916 *)
4917 CC="$CC $ac_cv_prog_cc_c89"
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4919 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4920 esac
4921 if test "x$ac_cv_prog_cc_c89" != xno; then :
4922
4923 fi
4924
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931 ac_ext=c
4932 ac_cpp='$CPP $CPPFLAGS'
4933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4937 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4938 if ${am_cv_prog_cc_c_o+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943
4944 int
4945 main ()
4946 {
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 # Make sure it works both with $CC and with simple cc.
4953 # Following AC_PROG_CC_C_O, we do the test twice because some
4954 # compilers refuse to overwrite an existing .o file with -o,
4955 # though they will create one.
4956 am_cv_prog_cc_c_o=yes
4957 for am_i in 1 2; do
4958 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4959 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } \
4963 && test -f conftest2.$ac_objext; then
4964 : OK
4965 else
4966 am_cv_prog_cc_c_o=no
4967 break
4968 fi
4969 done
4970 rm -f core conftest*
4971 unset am_i
4972 fi
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4974 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4975 if test "$am_cv_prog_cc_c_o" != yes; then
4976 # Losing compiler, so override with the script.
4977 # FIXME: It is wrong to rewrite CC.
4978 # But if we don't then we get into trouble of one sort or another.
4979 # A longer-term fix would be to have automake use am__CC in this case,
4980 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4981 CC="$am_aux_dir/compile $CC"
4982 fi
4983 ac_ext=c
4984 ac_cpp='$CPP $CPPFLAGS'
4985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4988
4989
4990 depcc="$CC" am_compiler_list=
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4993 $as_echo_n "checking dependency style of $depcc... " >&6; }
4994 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4998 # We make a subdir and do the tests there. Otherwise we can end up
4999 # making bogus files that we don't know about and never remove. For
5000 # instance it was reported that on HP-UX the gcc test will end up
5001 # making a dummy file named 'D' -- because '-MD' means "put the output
5002 # in D".
5003 rm -rf conftest.dir
5004 mkdir conftest.dir
5005 # Copy depcomp to subdir because otherwise we won't find it if we're
5006 # using a relative directory.
5007 cp "$am_depcomp" conftest.dir
5008 cd conftest.dir
5009 # We will build objects and dependencies in a subdirectory because
5010 # it helps to detect inapplicable dependency modes. For instance
5011 # both Tru64's cc and ICC support -MD to output dependencies as a
5012 # side effect of compilation, but ICC will put the dependencies in
5013 # the current directory while Tru64 will put them in the object
5014 # directory.
5015 mkdir sub
5016
5017 am_cv_CC_dependencies_compiler_type=none
5018 if test "$am_compiler_list" = ""; then
5019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5020 fi
5021 am__universal=false
5022 case " $depcc " in #(
5023 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5024 esac
5025
5026 for depmode in $am_compiler_list; do
5027 # Setup a source with many dependencies, because some compilers
5028 # like to wrap large dependency lists on column 80 (with \), and
5029 # we should not choose a depcomp mode which is confused by this.
5030 #
5031 # We need to recreate these files for each test, as the compiler may
5032 # overwrite some of them when testing with obscure command lines.
5033 # This happens at least with the AIX C compiler.
5034 : > sub/conftest.c
5035 for i in 1 2 3 4 5 6; do
5036 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5037 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5038 # Solaris 10 /bin/sh.
5039 echo '/* dummy */' > sub/conftst$i.h
5040 done
5041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5042
5043 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5044 # mode. It turns out that the SunPro C++ compiler does not properly
5045 # handle '-M -o', and we need to detect this. Also, some Intel
5046 # versions had trouble with output in subdirs.
5047 am__obj=sub/conftest.${OBJEXT-o}
5048 am__minus_obj="-o $am__obj"
5049 case $depmode in
5050 gcc)
5051 # This depmode causes a compiler race in universal mode.
5052 test "$am__universal" = false || continue
5053 ;;
5054 nosideeffect)
5055 # After this tag, mechanisms are not by side-effect, so they'll
5056 # only be used when explicitly requested.
5057 if test "x$enable_dependency_tracking" = xyes; then
5058 continue
5059 else
5060 break
5061 fi
5062 ;;
5063 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5064 # This compiler won't grok '-c -o', but also, the minuso test has
5065 # not run yet. These depmodes are late enough in the game, and
5066 # so weak that their functioning should not be impacted.
5067 am__obj=conftest.${OBJEXT-o}
5068 am__minus_obj=
5069 ;;
5070 none) break ;;
5071 esac
5072 if depmode=$depmode \
5073 source=sub/conftest.c object=$am__obj \
5074 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5075 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5076 >/dev/null 2>conftest.err &&
5077 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5078 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5079 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5080 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5081 # icc doesn't choke on unknown options, it will just issue warnings
5082 # or remarks (even with -Werror). So we grep stderr for any message
5083 # that says an option was ignored or not supported.
5084 # When given -MP, icc 7.0 and 7.1 complain thusly:
5085 # icc: Command line warning: ignoring option '-M'; no argument required
5086 # The diagnosis changed in icc 8.0:
5087 # icc: Command line remark: option '-MP' not supported
5088 if (grep 'ignoring option' conftest.err ||
5089 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5090 am_cv_CC_dependencies_compiler_type=$depmode
5091 break
5092 fi
5093 fi
5094 done
5095
5096 cd ..
5097 rm -rf conftest.dir
5098 else
5099 am_cv_CC_dependencies_compiler_type=none
5100 fi
5101
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5104 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5105 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5106
5107 if
5108 test "x$enable_dependency_tracking" != xno \
5109 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5110 am__fastdepCC_TRUE=
5111 am__fastdepCC_FALSE='#'
5112 else
5113 am__fastdepCC_TRUE='#'
5114 am__fastdepCC_FALSE=
5115 fi
5116
5117
5118 for ac_prog in ps
5119 do
5120 # Extract the first word of "$ac_prog", so it can be a program name with args.
5121 set dummy $ac_prog; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_path_PS+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 case $PS in
5128 [\\/]* | ?:[\\/]*)
5129 ac_cv_path_PS="$PS" # Let the user override the test with a path.
5130 ;;
5131 *)
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $LPATH
5134 do
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5142 fi
5143 done
5144 done
5145 IFS=$as_save_IFS
5146
5147 ;;
5148 esac
5149 fi
5150 PS=$ac_cv_path_PS
5151 if test -n "$PS"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
5153 $as_echo "$PS" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 fi
5158
5159
5160 test -n "$PS" && break
5161 done
5162 test -n "$PS" || PS="ps"
5163
5164 for ac_prog in w
5165 do
5166 # Extract the first word of "$ac_prog", so it can be a program name with args.
5167 set dummy $ac_prog; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_path_W+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 case $W in
5174 [\\/]* | ?:[\\/]*)
5175 ac_cv_path_W="$W" # Let the user override the test with a path.
5176 ;;
5177 *)
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $LPATH
5180 do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189 done
5190 done
5191 IFS=$as_save_IFS
5192
5193 ;;
5194 esac
5195 fi
5196 W=$ac_cv_path_W
5197 if test -n "$W"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W" >&5
5199 $as_echo "$W" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205
5206 test -n "$W" && break
5207 done
5208 test -n "$W" || W="w"
5209
5210 case `pwd` in
5211 *\ * | *\ *)
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5213 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5214 esac
5215
5216
5217
5218 macro_version='2.4.6'
5219 macro_revision='2.4.6'
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233 ltmain=$ac_aux_dir/ltmain.sh
5234
5235 # Make sure we can run config.sub.
5236 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5237 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5238
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5240 $as_echo_n "checking build system type... " >&6; }
5241 if ${ac_cv_build+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 ac_build_alias=$build_alias
5245 test "x$ac_build_alias" = x &&
5246 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5247 test "x$ac_build_alias" = x &&
5248 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5249 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5250 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5251
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5254 $as_echo "$ac_cv_build" >&6; }
5255 case $ac_cv_build in
5256 *-*-*) ;;
5257 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5258 esac
5259 build=$ac_cv_build
5260 ac_save_IFS=$IFS; IFS='-'
5261 set x $ac_cv_build
5262 shift
5263 build_cpu=$1
5264 build_vendor=$2
5265 shift; shift
5266 # Remember, the first character of IFS is used to create $*,
5267 # except with old shells:
5268 build_os=$*
5269 IFS=$ac_save_IFS
5270 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5271
5272
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5274 $as_echo_n "checking host system type... " >&6; }
5275 if ${ac_cv_host+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if test "x$host_alias" = x; then
5279 ac_cv_host=$ac_cv_build
5280 else
5281 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5282 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5283 fi
5284
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5287 $as_echo "$ac_cv_host" >&6; }
5288 case $ac_cv_host in
5289 *-*-*) ;;
5290 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5291 esac
5292 host=$ac_cv_host
5293 ac_save_IFS=$IFS; IFS='-'
5294 set x $ac_cv_host
5295 shift
5296 host_cpu=$1
5297 host_vendor=$2
5298 shift; shift
5299 # Remember, the first character of IFS is used to create $*,
5300 # except with old shells:
5301 host_os=$*
5302 IFS=$ac_save_IFS
5303 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5304
5305
5306 # Backslashify metacharacters that are still active within
5307 # double-quoted strings.
5308 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5309
5310 # Same as above, but do not quote variable references.
5311 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5312
5313 # Sed substitution to delay expansion of an escaped shell variable in a
5314 # double_quote_subst'ed string.
5315 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5316
5317 # Sed substitution to delay expansion of an escaped single quote.
5318 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5319
5320 # Sed substitution to avoid accidental globbing in evaled expressions
5321 no_glob_subst='s/\*/\\\*/g'
5322
5323 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5324 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5325 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5328 $as_echo_n "checking how to print strings... " >&6; }
5329 # Test print first, because it will be a builtin if present.
5330 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5331 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5332 ECHO='print -r --'
5333 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5334 ECHO='printf %s\n'
5335 else
5336 # Use this function as a fallback that always works.
5337 func_fallback_echo ()
5338 {
5339 eval 'cat <<_LTECHO_EOF
5340 $1
5341 _LTECHO_EOF'
5342 }
5343 ECHO='func_fallback_echo'
5344 fi
5345
5346 # func_echo_all arg...
5347 # Invoke $ECHO with all args, space-separated.
5348 func_echo_all ()
5349 {
5350 $ECHO ""
5351 }
5352
5353 case $ECHO in
5354 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5355 $as_echo "printf" >&6; } ;;
5356 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5357 $as_echo "print -r" >&6; } ;;
5358 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5359 $as_echo "cat" >&6; } ;;
5360 esac
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5376 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5377 if ${ac_cv_path_SED+:} false; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5381 for ac_i in 1 2 3 4 5 6 7; do
5382 ac_script="$ac_script$as_nl$ac_script"
5383 done
5384 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5385 { ac_script=; unset ac_script;}
5386 if test -z "$SED"; then
5387 ac_path_SED_found=false
5388 # Loop through the user's path and test for each of PROGNAME-LIST
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_prog in sed gsed; do
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5397 as_fn_executable_p "$ac_path_SED" || continue
5398 # Check for GNU ac_path_SED and select it if it is found.
5399 # Check for GNU $ac_path_SED
5400 case `"$ac_path_SED" --version 2>&1` in
5401 *GNU*)
5402 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5403 *)
5404 ac_count=0
5405 $as_echo_n 0123456789 >"conftest.in"
5406 while :
5407 do
5408 cat "conftest.in" "conftest.in" >"conftest.tmp"
5409 mv "conftest.tmp" "conftest.in"
5410 cp "conftest.in" "conftest.nl"
5411 $as_echo '' >> "conftest.nl"
5412 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5414 as_fn_arith $ac_count + 1 && ac_count=$as_val
5415 if test $ac_count -gt ${ac_path_SED_max-0}; then
5416 # Best one so far, save it but keep looking for a better one
5417 ac_cv_path_SED="$ac_path_SED"
5418 ac_path_SED_max=$ac_count
5419 fi
5420 # 10*(2^10) chars as input seems more than enough
5421 test $ac_count -gt 10 && break
5422 done
5423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5424 esac
5425
5426 $ac_path_SED_found && break 3
5427 done
5428 done
5429 done
5430 IFS=$as_save_IFS
5431 if test -z "$ac_cv_path_SED"; then
5432 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5433 fi
5434 else
5435 ac_cv_path_SED=$SED
5436 fi
5437
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5440 $as_echo "$ac_cv_path_SED" >&6; }
5441 SED="$ac_cv_path_SED"
5442 rm -f conftest.sed
5443
5444 test -z "$SED" && SED=sed
5445 Xsed="$SED -e 1s/^X//"
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5458 $as_echo_n "checking for fgrep... " >&6; }
5459 if ${ac_cv_path_FGREP+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5463 then ac_cv_path_FGREP="$GREP -F"
5464 else
5465 if test -z "$FGREP"; then
5466 ac_path_FGREP_found=false
5467 # Loop through the user's path and test for each of PROGNAME-LIST
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5470 do
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_prog in fgrep; do
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5476 as_fn_executable_p "$ac_path_FGREP" || continue
5477 # Check for GNU ac_path_FGREP and select it if it is found.
5478 # Check for GNU $ac_path_FGREP
5479 case `"$ac_path_FGREP" --version 2>&1` in
5480 *GNU*)
5481 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5482 *)
5483 ac_count=0
5484 $as_echo_n 0123456789 >"conftest.in"
5485 while :
5486 do
5487 cat "conftest.in" "conftest.in" >"conftest.tmp"
5488 mv "conftest.tmp" "conftest.in"
5489 cp "conftest.in" "conftest.nl"
5490 $as_echo 'FGREP' >> "conftest.nl"
5491 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5493 as_fn_arith $ac_count + 1 && ac_count=$as_val
5494 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5495 # Best one so far, save it but keep looking for a better one
5496 ac_cv_path_FGREP="$ac_path_FGREP"
5497 ac_path_FGREP_max=$ac_count
5498 fi
5499 # 10*(2^10) chars as input seems more than enough
5500 test $ac_count -gt 10 && break
5501 done
5502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5503 esac
5504
5505 $ac_path_FGREP_found && break 3
5506 done
5507 done
5508 done
5509 IFS=$as_save_IFS
5510 if test -z "$ac_cv_path_FGREP"; then
5511 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5512 fi
5513 else
5514 ac_cv_path_FGREP=$FGREP
5515 fi
5516
5517 fi
5518 fi
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5520 $as_echo "$ac_cv_path_FGREP" >&6; }
5521 FGREP="$ac_cv_path_FGREP"
5522
5523
5524 test -z "$GREP" && GREP=grep
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544 # Check whether --with-gnu-ld was given.
5545 if test "${with_gnu_ld+set}" = set; then :
5546 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5547 else
5548 with_gnu_ld=no
5549 fi
5550
5551 ac_prog=ld
5552 if test yes = "$GCC"; then
5553 # Check if gcc -print-prog-name=ld gives a path.
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5555 $as_echo_n "checking for ld used by $CC... " >&6; }
5556 case $host in
5557 *-*-mingw*)
5558 # gcc leaves a trailing carriage return, which upsets mingw
5559 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5560 *)
5561 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5562 esac
5563 case $ac_prog in
5564 # Accept absolute paths.
5565 [\\/]* | ?:[\\/]*)
5566 re_direlt='/[^/][^/]*/\.\./'
5567 # Canonicalize the pathname of ld
5568 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5569 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5570 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5571 done
5572 test -z "$LD" && LD=$ac_prog
5573 ;;
5574 "")
5575 # If it fails, then pretend we aren't using GCC.
5576 ac_prog=ld
5577 ;;
5578 *)
5579 # If it is relative, then search for the first ld in PATH.
5580 with_gnu_ld=unknown
5581 ;;
5582 esac
5583 elif test yes = "$with_gnu_ld"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5585 $as_echo_n "checking for GNU ld... " >&6; }
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5588 $as_echo_n "checking for non-GNU ld... " >&6; }
5589 fi
5590 if ${lt_cv_path_LD+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 if test -z "$LD"; then
5594 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5595 for ac_dir in $PATH; do
5596 IFS=$lt_save_ifs
5597 test -z "$ac_dir" && ac_dir=.
5598 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5599 lt_cv_path_LD=$ac_dir/$ac_prog
5600 # Check to see if the program is GNU ld. I'd rather use --version,
5601 # but apparently some variants of GNU ld only accept -v.
5602 # Break only if it was the GNU/non-GNU ld that we prefer.
5603 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5604 *GNU* | *'with BFD'*)
5605 test no != "$with_gnu_ld" && break
5606 ;;
5607 *)
5608 test yes != "$with_gnu_ld" && break
5609 ;;
5610 esac
5611 fi
5612 done
5613 IFS=$lt_save_ifs
5614 else
5615 lt_cv_path_LD=$LD # Let the user override the test with a path.
5616 fi
5617 fi
5618
5619 LD=$lt_cv_path_LD
5620 if test -n "$LD"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5622 $as_echo "$LD" >&6; }
5623 else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5629 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5630 if ${lt_cv_prog_gnu_ld+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5634 case `$LD -v 2>&1 </dev/null` in
5635 *GNU* | *'with BFD'*)
5636 lt_cv_prog_gnu_ld=yes
5637 ;;
5638 *)
5639 lt_cv_prog_gnu_ld=no
5640 ;;
5641 esac
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5644 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5645 with_gnu_ld=$lt_cv_prog_gnu_ld
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5656 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5657 if ${lt_cv_path_NM+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -n "$NM"; then
5661 # Let the user override the test.
5662 lt_cv_path_NM=$NM
5663 else
5664 lt_nm_to_check=${ac_tool_prefix}nm
5665 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5666 lt_nm_to_check="$lt_nm_to_check nm"
5667 fi
5668 for lt_tmp_nm in $lt_nm_to_check; do
5669 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5670 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5671 IFS=$lt_save_ifs
5672 test -z "$ac_dir" && ac_dir=.
5673 tmp_nm=$ac_dir/$lt_tmp_nm
5674 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5675 # Check to see if the nm accepts a BSD-compat flag.
5676 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5677 # nm: unknown option "B" ignored
5678 # Tru64's nm complains that /dev/null is an invalid object file
5679 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5680 case $build_os in
5681 mingw*) lt_bad_file=conftest.nm/nofile ;;
5682 *) lt_bad_file=/dev/null ;;
5683 esac
5684 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5685 *$lt_bad_file* | *'Invalid file or object type'*)
5686 lt_cv_path_NM="$tmp_nm -B"
5687 break 2
5688 ;;
5689 *)
5690 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5691 */dev/null*)
5692 lt_cv_path_NM="$tmp_nm -p"
5693 break 2
5694 ;;
5695 *)
5696 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5697 continue # so that we can try to find one that supports BSD flags
5698 ;;
5699 esac
5700 ;;
5701 esac
5702 fi
5703 done
5704 IFS=$lt_save_ifs
5705 done
5706 : ${lt_cv_path_NM=no}
5707 fi
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5710 $as_echo "$lt_cv_path_NM" >&6; }
5711 if test no != "$lt_cv_path_NM"; then
5712 NM=$lt_cv_path_NM
5713 else
5714 # Didn't find any BSD compatible name lister, look for dumpbin.
5715 if test -n "$DUMPBIN"; then :
5716 # Let the user override the test.
5717 else
5718 if test -n "$ac_tool_prefix"; then
5719 for ac_prog in dumpbin "link -dump"
5720 do
5721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if ${ac_cv_prog_DUMPBIN+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 if test -n "$DUMPBIN"; then
5729 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5741 fi
5742 done
5743 done
5744 IFS=$as_save_IFS
5745
5746 fi
5747 fi
5748 DUMPBIN=$ac_cv_prog_DUMPBIN
5749 if test -n "$DUMPBIN"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5751 $as_echo "$DUMPBIN" >&6; }
5752 else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5755 fi
5756
5757
5758 test -n "$DUMPBIN" && break
5759 done
5760 fi
5761 if test -z "$DUMPBIN"; then
5762 ac_ct_DUMPBIN=$DUMPBIN
5763 for ac_prog in dumpbin "link -dump"
5764 do
5765 # Extract the first word of "$ac_prog", so it can be a program name with args.
5766 set dummy $ac_prog; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if test -n "$ac_ct_DUMPBIN"; then
5773 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786 done
5787 done
5788 IFS=$as_save_IFS
5789
5790 fi
5791 fi
5792 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5793 if test -n "$ac_ct_DUMPBIN"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5795 $as_echo "$ac_ct_DUMPBIN" >&6; }
5796 else
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801
5802 test -n "$ac_ct_DUMPBIN" && break
5803 done
5804
5805 if test "x$ac_ct_DUMPBIN" = x; then
5806 DUMPBIN=":"
5807 else
5808 case $cross_compiling:$ac_tool_warned in
5809 yes:)
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5812 ac_tool_warned=yes ;;
5813 esac
5814 DUMPBIN=$ac_ct_DUMPBIN
5815 fi
5816 fi
5817
5818 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5819 *COFF*)
5820 DUMPBIN="$DUMPBIN -symbols -headers"
5821 ;;
5822 *)
5823 DUMPBIN=:
5824 ;;
5825 esac
5826 fi
5827
5828 if test : != "$DUMPBIN"; then
5829 NM=$DUMPBIN
5830 fi
5831 fi
5832 test -z "$NM" && NM=nm
5833
5834
5835
5836
5837
5838
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5840 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5841 if ${lt_cv_nm_interface+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 lt_cv_nm_interface="BSD nm"
5845 echo "int some_variable = 0;" > conftest.$ac_ext
5846 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5847 (eval "$ac_compile" 2>conftest.err)
5848 cat conftest.err >&5
5849 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5850 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5851 cat conftest.err >&5
5852 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5853 cat conftest.out >&5
5854 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5855 lt_cv_nm_interface="MS dumpbin"
5856 fi
5857 rm -f conftest*
5858 fi
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5860 $as_echo "$lt_cv_nm_interface" >&6; }
5861
5862 # find the maximum length of command line arguments
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5864 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5865 if ${lt_cv_sys_max_cmd_len+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 i=0
5869 teststring=ABCD
5870
5871 case $build_os in
5872 msdosdjgpp*)
5873 # On DJGPP, this test can blow up pretty badly due to problems in libc
5874 # (any single argument exceeding 2000 bytes causes a buffer overrun
5875 # during glob expansion). Even if it were fixed, the result of this
5876 # check would be larger than it should be.
5877 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5878 ;;
5879
5880 gnu*)
5881 # Under GNU Hurd, this test is not required because there is
5882 # no limit to the length of command line arguments.
5883 # Libtool will interpret -1 as no limit whatsoever
5884 lt_cv_sys_max_cmd_len=-1;
5885 ;;
5886
5887 cygwin* | mingw* | cegcc*)
5888 # On Win9x/ME, this test blows up -- it succeeds, but takes
5889 # about 5 minutes as the teststring grows exponentially.
5890 # Worse, since 9x/ME are not pre-emptively multitasking,
5891 # you end up with a "frozen" computer, even though with patience
5892 # the test eventually succeeds (with a max line length of 256k).
5893 # Instead, let's just punt: use the minimum linelength reported by
5894 # all of the supported platforms: 8192 (on NT/2K/XP).
5895 lt_cv_sys_max_cmd_len=8192;
5896 ;;
5897
5898 mint*)
5899 # On MiNT this can take a long time and run out of memory.
5900 lt_cv_sys_max_cmd_len=8192;
5901 ;;
5902
5903 amigaos*)
5904 # On AmigaOS with pdksh, this test takes hours, literally.
5905 # So we just punt and use a minimum line length of 8192.
5906 lt_cv_sys_max_cmd_len=8192;
5907 ;;
5908
5909 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5910 # This has been around since 386BSD, at least. Likely further.
5911 if test -x /sbin/sysctl; then
5912 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5913 elif test -x /usr/sbin/sysctl; then
5914 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5915 else
5916 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5917 fi
5918 # And add a safety zone
5919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5921 ;;
5922
5923 interix*)
5924 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5925 lt_cv_sys_max_cmd_len=196608
5926 ;;
5927
5928 os2*)
5929 # The test takes a long time on OS/2.
5930 lt_cv_sys_max_cmd_len=8192
5931 ;;
5932
5933 osf*)
5934 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5935 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5936 # nice to cause kernel panics so lets avoid the loop below.
5937 # First set a reasonable default.
5938 lt_cv_sys_max_cmd_len=16384
5939 #
5940 if test -x /sbin/sysconfig; then
5941 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5942 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5943 esac
5944 fi
5945 ;;
5946 sco3.2v5*)
5947 lt_cv_sys_max_cmd_len=102400
5948 ;;
5949 sysv5* | sco5v6* | sysv4.2uw2*)
5950 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5951 if test -n "$kargmax"; then
5952 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5953 else
5954 lt_cv_sys_max_cmd_len=32768
5955 fi
5956 ;;
5957 *)
5958 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5959 if test -n "$lt_cv_sys_max_cmd_len" && \
5960 test undefined != "$lt_cv_sys_max_cmd_len"; then
5961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5963 else
5964 # Make teststring a little bigger before we do anything with it.
5965 # a 1K string should be a reasonable start.
5966 for i in 1 2 3 4 5 6 7 8; do
5967 teststring=$teststring$teststring
5968 done
5969 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5970 # If test is not a shell built-in, we'll probably end up computing a
5971 # maximum length that is only half of the actual maximum length, but
5972 # we can't tell.
5973 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5974 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5975 test 17 != "$i" # 1/2 MB should be enough
5976 do
5977 i=`expr $i + 1`
5978 teststring=$teststring$teststring
5979 done
5980 # Only check the string length outside the loop.
5981 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5982 teststring=
5983 # Add a significant safety factor because C++ compilers can tack on
5984 # massive amounts of additional arguments before passing them to the
5985 # linker. It appears as though 1/2 is a usable value.
5986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5987 fi
5988 ;;
5989 esac
5990
5991 fi
5992
5993 if test -n "$lt_cv_sys_max_cmd_len"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5995 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5996 else
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5998 $as_echo "none" >&6; }
5999 fi
6000 max_cmd_len=$lt_cv_sys_max_cmd_len
6001
6002
6003
6004
6005
6006
6007 : ${CP="cp -f"}
6008 : ${MV="mv -f"}
6009 : ${RM="rm -f"}
6010
6011 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6012 lt_unset=unset
6013 else
6014 lt_unset=false
6015 fi
6016
6017
6018
6019
6020
6021 # test EBCDIC or ASCII
6022 case `echo X|tr X '\101'` in
6023 A) # ASCII based system
6024 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6025 lt_SP2NL='tr \040 \012'
6026 lt_NL2SP='tr \015\012 \040\040'
6027 ;;
6028 *) # EBCDIC based system
6029 lt_SP2NL='tr \100 \n'
6030 lt_NL2SP='tr \r\n \100\100'
6031 ;;
6032 esac
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6043 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6044 if ${lt_cv_to_host_file_cmd+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 case $host in
6048 *-*-mingw* )
6049 case $build in
6050 *-*-mingw* ) # actually msys
6051 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6052 ;;
6053 *-*-cygwin* )
6054 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6055 ;;
6056 * ) # otherwise, assume *nix
6057 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6058 ;;
6059 esac
6060 ;;
6061 *-*-cygwin* )
6062 case $build in
6063 *-*-mingw* ) # actually msys
6064 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6065 ;;
6066 *-*-cygwin* )
6067 lt_cv_to_host_file_cmd=func_convert_file_noop
6068 ;;
6069 * ) # otherwise, assume *nix
6070 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6071 ;;
6072 esac
6073 ;;
6074 * ) # unhandled hosts (and "normal" native builds)
6075 lt_cv_to_host_file_cmd=func_convert_file_noop
6076 ;;
6077 esac
6078
6079 fi
6080
6081 to_host_file_cmd=$lt_cv_to_host_file_cmd
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6083 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6084
6085
6086
6087
6088
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6090 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6091 if ${lt_cv_to_tool_file_cmd+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 #assume ordinary cross tools, or native build.
6095 lt_cv_to_tool_file_cmd=func_convert_file_noop
6096 case $host in
6097 *-*-mingw* )
6098 case $build in
6099 *-*-mingw* ) # actually msys
6100 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6101 ;;
6102 esac
6103 ;;
6104 esac
6105
6106 fi
6107
6108 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6110 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6111
6112
6113
6114
6115
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6117 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6118 if ${lt_cv_ld_reload_flag+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 lt_cv_ld_reload_flag='-r'
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6124 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6125 reload_flag=$lt_cv_ld_reload_flag
6126 case $reload_flag in
6127 "" | " "*) ;;
6128 *) reload_flag=" $reload_flag" ;;
6129 esac
6130 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6131 case $host_os in
6132 cygwin* | mingw* | pw32* | cegcc*)
6133 if test yes != "$GCC"; then
6134 reload_cmds=false
6135 fi
6136 ;;
6137 darwin*)
6138 if test yes = "$GCC"; then
6139 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6140 else
6141 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6142 fi
6143 ;;
6144 esac
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 if test -n "$ac_tool_prefix"; then
6155 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6156 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if ${ac_cv_prog_OBJDUMP+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -n "$OBJDUMP"; then
6163 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6167 do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 OBJDUMP=$ac_cv_prog_OBJDUMP
6183 if test -n "$OBJDUMP"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6185 $as_echo "$OBJDUMP" >&6; }
6186 else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6189 fi
6190
6191
6192 fi
6193 if test -z "$ac_cv_prog_OBJDUMP"; then
6194 ac_ct_OBJDUMP=$OBJDUMP
6195 # Extract the first word of "objdump", so it can be a program name with args.
6196 set dummy objdump; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$ac_ct_OBJDUMP"; then
6203 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6223 if test -n "$ac_ct_OBJDUMP"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6225 $as_echo "$ac_ct_OBJDUMP" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231 if test "x$ac_ct_OBJDUMP" = x; then
6232 OBJDUMP="false"
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235 yes:)
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238 ac_tool_warned=yes ;;
6239 esac
6240 OBJDUMP=$ac_ct_OBJDUMP
6241 fi
6242 else
6243 OBJDUMP="$ac_cv_prog_OBJDUMP"
6244 fi
6245
6246 test -z "$OBJDUMP" && OBJDUMP=objdump
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6257 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6258 if ${lt_cv_deplibs_check_method+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 lt_cv_file_magic_cmd='$MAGIC_CMD'
6262 lt_cv_file_magic_test_file=
6263 lt_cv_deplibs_check_method='unknown'
6264 # Need to set the preceding variable on all platforms that support
6265 # interlibrary dependencies.
6266 # 'none' -- dependencies not supported.
6267 # 'unknown' -- same as none, but documents that we really don't know.
6268 # 'pass_all' -- all dependencies passed with no checks.
6269 # 'test_compile' -- check by making test program.
6270 # 'file_magic [[regex]]' -- check by looking for files in library path
6271 # that responds to the $file_magic_cmd with a given extended regex.
6272 # If you have 'file' or equivalent on your system and you're not sure
6273 # whether 'pass_all' will *always* work, you probably want this one.
6274
6275 case $host_os in
6276 aix[4-9]*)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
6279
6280 beos*)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
6283
6284 bsdi[45]*)
6285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6286 lt_cv_file_magic_cmd='/usr/bin/file -L'
6287 lt_cv_file_magic_test_file=/shlib/libc.so
6288 ;;
6289
6290 cygwin*)
6291 # func_win32_libid is a shell function defined in ltmain.sh
6292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6293 lt_cv_file_magic_cmd='func_win32_libid'
6294 ;;
6295
6296 mingw* | pw32*)
6297 # Base MSYS/MinGW do not provide the 'file' command needed by
6298 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6299 # unless we find 'file', for example because we are cross-compiling.
6300 if ( file / ) >/dev/null 2>&1; then
6301 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6302 lt_cv_file_magic_cmd='func_win32_libid'
6303 else
6304 # Keep this pattern in sync with the one in func_win32_libid.
6305 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6306 lt_cv_file_magic_cmd='$OBJDUMP -f'
6307 fi
6308 ;;
6309
6310 cegcc*)
6311 # use the weaker test based on 'objdump'. See mingw*.
6312 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6313 lt_cv_file_magic_cmd='$OBJDUMP -f'
6314 ;;
6315
6316 darwin* | rhapsody*)
6317 lt_cv_deplibs_check_method=pass_all
6318 ;;
6319
6320 freebsd* | dragonfly*)
6321 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6322 case $host_cpu in
6323 i*86 )
6324 # Not sure whether the presence of OpenBSD here was a mistake.
6325 # Let's accept both of them until this is cleared up.
6326 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6327 lt_cv_file_magic_cmd=/usr/bin/file
6328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6329 ;;
6330 esac
6331 else
6332 lt_cv_deplibs_check_method=pass_all
6333 fi
6334 ;;
6335
6336 haiku*)
6337 lt_cv_deplibs_check_method=pass_all
6338 ;;
6339
6340 hpux10.20* | hpux11*)
6341 lt_cv_file_magic_cmd=/usr/bin/file
6342 case $host_cpu in
6343 ia64*)
6344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6345 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6346 ;;
6347 hppa*64*)
6348 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]'
6349 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6350 ;;
6351 *)
6352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6353 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6354 ;;
6355 esac
6356 ;;
6357
6358 interix[3-9]*)
6359 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6361 ;;
6362
6363 irix5* | irix6* | nonstopux*)
6364 case $LD in
6365 *-32|*"-32 ") libmagic=32-bit;;
6366 *-n32|*"-n32 ") libmagic=N32;;
6367 *-64|*"-64 ") libmagic=64-bit;;
6368 *) libmagic=never-match;;
6369 esac
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372
6373 # This must be glibc/ELF.
6374 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6375 lt_cv_deplibs_check_method=pass_all
6376 ;;
6377
6378 netbsd*)
6379 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6381 else
6382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6383 fi
6384 ;;
6385
6386 newos6*)
6387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6388 lt_cv_file_magic_cmd=/usr/bin/file
6389 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6390 ;;
6391
6392 *nto* | *qnx*)
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396 openbsd* | bitrig*)
6397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6399 else
6400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6401 fi
6402 ;;
6403
6404 osf3* | osf4* | osf5*)
6405 lt_cv_deplibs_check_method=pass_all
6406 ;;
6407
6408 rdos*)
6409 lt_cv_deplibs_check_method=pass_all
6410 ;;
6411
6412 solaris*)
6413 lt_cv_deplibs_check_method=pass_all
6414 ;;
6415
6416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6417 lt_cv_deplibs_check_method=pass_all
6418 ;;
6419
6420 sysv4 | sysv4.3*)
6421 case $host_vendor in
6422 motorola)
6423 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]'
6424 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6425 ;;
6426 ncr)
6427 lt_cv_deplibs_check_method=pass_all
6428 ;;
6429 sequent)
6430 lt_cv_file_magic_cmd='/bin/file'
6431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6432 ;;
6433 sni)
6434 lt_cv_file_magic_cmd='/bin/file'
6435 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6436 lt_cv_file_magic_test_file=/lib/libc.so
6437 ;;
6438 siemens)
6439 lt_cv_deplibs_check_method=pass_all
6440 ;;
6441 pc)
6442 lt_cv_deplibs_check_method=pass_all
6443 ;;
6444 esac
6445 ;;
6446
6447 tpf*)
6448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450 os2*)
6451 lt_cv_deplibs_check_method=pass_all
6452 ;;
6453 esac
6454
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6457 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6458
6459 file_magic_glob=
6460 want_nocaseglob=no
6461 if test "$build" = "$host"; then
6462 case $host_os in
6463 mingw* | pw32*)
6464 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6465 want_nocaseglob=yes
6466 else
6467 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6468 fi
6469 ;;
6470 esac
6471 fi
6472
6473 file_magic_cmd=$lt_cv_file_magic_cmd
6474 deplibs_check_method=$lt_cv_deplibs_check_method
6475 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_DLLTOOL+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 if test -n "$DLLTOOL"; then
6507 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520 done
6521 done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 DLLTOOL=$ac_cv_prog_DLLTOOL
6527 if test -n "$DLLTOOL"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6529 $as_echo "$DLLTOOL" >&6; }
6530 else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535
6536 fi
6537 if test -z "$ac_cv_prog_DLLTOOL"; then
6538 ac_ct_DLLTOOL=$DLLTOOL
6539 # Extract the first word of "dlltool", so it can be a program name with args.
6540 set dummy dlltool; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -n "$ac_ct_DLLTOOL"; then
6547 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560 done
6561 done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6567 if test -n "$ac_ct_DLLTOOL"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6569 $as_echo "$ac_ct_DLLTOOL" >&6; }
6570 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575 if test "x$ac_ct_DLLTOOL" = x; then
6576 DLLTOOL="false"
6577 else
6578 case $cross_compiling:$ac_tool_warned in
6579 yes:)
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582 ac_tool_warned=yes ;;
6583 esac
6584 DLLTOOL=$ac_ct_DLLTOOL
6585 fi
6586 else
6587 DLLTOOL="$ac_cv_prog_DLLTOOL"
6588 fi
6589
6590 test -z "$DLLTOOL" && DLLTOOL=dlltool
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6602 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6603 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 lt_cv_sharedlib_from_linklib_cmd='unknown'
6607
6608 case $host_os in
6609 cygwin* | mingw* | pw32* | cegcc*)
6610 # two different shell functions defined in ltmain.sh;
6611 # decide which one to use based on capabilities of $DLLTOOL
6612 case `$DLLTOOL --help 2>&1` in
6613 *--identify-strict*)
6614 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6615 ;;
6616 *)
6617 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6618 ;;
6619 esac
6620 ;;
6621 *)
6622 # fallback: assume linklib IS sharedlib
6623 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6624 ;;
6625 esac
6626
6627 fi
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6629 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6630 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6631 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6632
6633
6634
6635
6636
6637
6638
6639 if test -n "$ac_tool_prefix"; then
6640 for ac_prog in ar
6641 do
6642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if ${ac_cv_prog_AR+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 if test -n "$AR"; then
6650 ac_cv_prog_AR="$AR" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667 fi
6668 fi
6669 AR=$ac_cv_prog_AR
6670 if test -n "$AR"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6672 $as_echo "$AR" >&6; }
6673 else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6676 fi
6677
6678
6679 test -n "$AR" && break
6680 done
6681 fi
6682 if test -z "$AR"; then
6683 ac_ct_AR=$AR
6684 for ac_prog in ar
6685 do
6686 # Extract the first word of "$ac_prog", so it can be a program name with args.
6687 set dummy $ac_prog; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 if test -n "$ac_ct_AR"; then
6694 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_ac_ct_AR="$ac_prog"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6714 if test -n "$ac_ct_AR"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6716 $as_echo "$ac_ct_AR" >&6; }
6717 else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6720 fi
6721
6722
6723 test -n "$ac_ct_AR" && break
6724 done
6725
6726 if test "x$ac_ct_AR" = x; then
6727 AR="false"
6728 else
6729 case $cross_compiling:$ac_tool_warned in
6730 yes:)
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6733 ac_tool_warned=yes ;;
6734 esac
6735 AR=$ac_ct_AR
6736 fi
6737 fi
6738
6739 : ${AR=ar}
6740 : ${AR_FLAGS=cru}
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6753 $as_echo_n "checking for archiver @FILE support... " >&6; }
6754 if ${lt_cv_ar_at_file+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 lt_cv_ar_at_file=no
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760
6761 int
6762 main ()
6763 {
6764
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 if ac_fn_c_try_compile "$LINENO"; then :
6770 echo conftest.$ac_objext > conftest.lst
6771 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6773 (eval $lt_ar_try) 2>&5
6774 ac_status=$?
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; }
6777 if test 0 -eq "$ac_status"; then
6778 # Ensure the archiver fails upon bogus file names.
6779 rm -f conftest.$ac_objext libconftest.a
6780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6781 (eval $lt_ar_try) 2>&5
6782 ac_status=$?
6783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784 test $ac_status = 0; }
6785 if test 0 -ne "$ac_status"; then
6786 lt_cv_ar_at_file=@
6787 fi
6788 fi
6789 rm -f conftest.* libconftest.a
6790
6791 fi
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793
6794 fi
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6796 $as_echo "$lt_cv_ar_at_file" >&6; }
6797
6798 if test no = "$lt_cv_ar_at_file"; then
6799 archiver_list_spec=
6800 else
6801 archiver_list_spec=$lt_cv_ar_at_file
6802 fi
6803
6804
6805
6806
6807
6808
6809
6810 if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}strip; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_STRIP+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 if test -n "$STRIP"; then
6819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 STRIP=$ac_cv_prog_STRIP
6839 if test -n "$STRIP"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6841 $as_echo "$STRIP" >&6; }
6842 else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847
6848 fi
6849 if test -z "$ac_cv_prog_STRIP"; then
6850 ac_ct_STRIP=$STRIP
6851 # Extract the first word of "strip", so it can be a program name with args.
6852 set dummy strip; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test -n "$ac_ct_STRIP"; then
6859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_prog_ac_ct_STRIP="strip"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6879 if test -n "$ac_ct_STRIP"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6881 $as_echo "$ac_ct_STRIP" >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887 if test "x$ac_ct_STRIP" = x; then
6888 STRIP=":"
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891 yes:)
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896 STRIP=$ac_ct_STRIP
6897 fi
6898 else
6899 STRIP="$ac_cv_prog_STRIP"
6900 fi
6901
6902 test -z "$STRIP" && STRIP=:
6903
6904
6905
6906
6907
6908
6909 if test -n "$ac_tool_prefix"; then
6910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if ${ac_cv_prog_RANLIB+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 if test -n "$RANLIB"; then
6918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 RANLIB=$ac_cv_prog_RANLIB
6938 if test -n "$RANLIB"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6940 $as_echo "$RANLIB" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 fi
6945
6946
6947 fi
6948 if test -z "$ac_cv_prog_RANLIB"; then
6949 ac_ct_RANLIB=$RANLIB
6950 # Extract the first word of "ranlib", so it can be a program name with args.
6951 set dummy ranlib; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 if test -n "$ac_ct_RANLIB"; then
6958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_ac_ct_RANLIB="ranlib"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6978 if test -n "$ac_ct_RANLIB"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6980 $as_echo "$ac_ct_RANLIB" >&6; }
6981 else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986 if test "x$ac_ct_RANLIB" = x; then
6987 RANLIB=":"
6988 else
6989 case $cross_compiling:$ac_tool_warned in
6990 yes:)
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993 ac_tool_warned=yes ;;
6994 esac
6995 RANLIB=$ac_ct_RANLIB
6996 fi
6997 else
6998 RANLIB="$ac_cv_prog_RANLIB"
6999 fi
7000
7001 test -z "$RANLIB" && RANLIB=:
7002
7003
7004
7005
7006
7007
7008 # Determine commands to create old-style static archives.
7009 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7010 old_postinstall_cmds='chmod 644 $oldlib'
7011 old_postuninstall_cmds=
7012
7013 if test -n "$RANLIB"; then
7014 case $host_os in
7015 bitrig* | openbsd*)
7016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7017 ;;
7018 *)
7019 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7020 ;;
7021 esac
7022 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7023 fi
7024
7025 case $host_os in
7026 darwin*)
7027 lock_old_archive_extraction=yes ;;
7028 *)
7029 lock_old_archive_extraction=no ;;
7030 esac
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070 # If no C compiler was specified, use CC.
7071 LTCC=${LTCC-"$CC"}
7072
7073 # If no C compiler flags were specified, use CFLAGS.
7074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7075
7076 # Allow CC to be a program name with arguments.
7077 compiler=$CC
7078
7079
7080 # Check for command to grab the raw symbol name followed by C symbol from nm.
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7082 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7083 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086
7087 # These are sane defaults that work on at least a few old systems.
7088 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7089
7090 # Character class describing NM global symbol codes.
7091 symcode='[BCDEGRST]'
7092
7093 # Regexp to match symbols that can be accessed directly from C.
7094 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7095
7096 # Define system-specific variables.
7097 case $host_os in
7098 aix*)
7099 symcode='[BCDT]'
7100 ;;
7101 cygwin* | mingw* | pw32* | cegcc*)
7102 symcode='[ABCDGISTW]'
7103 ;;
7104 hpux*)
7105 if test ia64 = "$host_cpu"; then
7106 symcode='[ABCDEGRST]'
7107 fi
7108 ;;
7109 irix* | nonstopux*)
7110 symcode='[BCDEGRST]'
7111 ;;
7112 osf*)
7113 symcode='[BCDEGQRST]'
7114 ;;
7115 solaris*)
7116 symcode='[BDRT]'
7117 ;;
7118 sco3.2v5*)
7119 symcode='[DT]'
7120 ;;
7121 sysv4.2uw2*)
7122 symcode='[DT]'
7123 ;;
7124 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7125 symcode='[ABDT]'
7126 ;;
7127 sysv4)
7128 symcode='[DFNSTU]'
7129 ;;
7130 esac
7131
7132 # If we're using GNU nm, then use its standard symbol codes.
7133 case `$NM -V 2>&1` in
7134 *GNU* | *'with BFD'*)
7135 symcode='[ABCDGIRSTW]' ;;
7136 esac
7137
7138 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7139 # Gets list of data symbols to import.
7140 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7141 # Adjust the below global symbol transforms to fixup imported variables.
7142 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7143 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7144 lt_c_name_lib_hook="\
7145 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7146 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7147 else
7148 # Disable hooks by default.
7149 lt_cv_sys_global_symbol_to_import=
7150 lt_cdecl_hook=
7151 lt_c_name_hook=
7152 lt_c_name_lib_hook=
7153 fi
7154
7155 # Transform an extracted symbol line into a proper C declaration.
7156 # Some systems (esp. on ia64) link data and code symbols differently,
7157 # so use this general approach.
7158 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7159 $lt_cdecl_hook\
7160 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7161 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7162
7163 # Transform an extracted symbol line into symbol name and symbol address
7164 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7165 $lt_c_name_hook\
7166 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7167 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7168
7169 # Transform an extracted symbol line into symbol name with lib prefix and
7170 # symbol address.
7171 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7172 $lt_c_name_lib_hook\
7173 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7174 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7175 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7176
7177 # Handle CRLF in mingw tool chain
7178 opt_cr=
7179 case $build_os in
7180 mingw*)
7181 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7182 ;;
7183 esac
7184
7185 # Try without a prefix underscore, then with it.
7186 for ac_symprfx in "" "_"; do
7187
7188 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7189 symxfrm="\\1 $ac_symprfx\\2 \\2"
7190
7191 # Write the raw and C identifiers.
7192 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7193 # Fake it for dumpbin and say T for any non-static function,
7194 # D for any global variable and I for any imported variable.
7195 # Also find C++ and __fastcall symbols from MSVC++,
7196 # which start with @ or ?.
7197 lt_cv_sys_global_symbol_pipe="$AWK '"\
7198 " {last_section=section; section=\$ 3};"\
7199 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7200 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7201 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7202 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7203 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7204 " \$ 0!~/External *\|/{next};"\
7205 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7206 " {if(hide[section]) next};"\
7207 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7208 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7209 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7210 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7211 " ' prfx=^$ac_symprfx"
7212 else
7213 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7214 fi
7215 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7216
7217 # Check to see that the pipe works correctly.
7218 pipe_works=no
7219
7220 rm -f conftest*
7221 cat > conftest.$ac_ext <<_LT_EOF
7222 #ifdef __cplusplus
7223 extern "C" {
7224 #endif
7225 char nm_test_var;
7226 void nm_test_func(void);
7227 void nm_test_func(void){}
7228 #ifdef __cplusplus
7229 }
7230 #endif
7231 int main(){nm_test_var='a';nm_test_func();return(0);}
7232 _LT_EOF
7233
7234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7235 (eval $ac_compile) 2>&5
7236 ac_status=$?
7237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7238 test $ac_status = 0; }; then
7239 # Now try to grab the symbols.
7240 nlist=conftest.nm
7241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7242 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7243 ac_status=$?
7244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245 test $ac_status = 0; } && test -s "$nlist"; then
7246 # Try sorting and uniquifying the output.
7247 if sort "$nlist" | uniq > "$nlist"T; then
7248 mv -f "$nlist"T "$nlist"
7249 else
7250 rm -f "$nlist"T
7251 fi
7252
7253 # Make sure that we snagged all the symbols we need.
7254 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7255 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7256 cat <<_LT_EOF > conftest.$ac_ext
7257 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7258 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7259 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7260 relocations are performed -- see ld's documentation on pseudo-relocs. */
7261 # define LT_DLSYM_CONST
7262 #elif defined __osf__
7263 /* This system does not cope well with relocations in const data. */
7264 # define LT_DLSYM_CONST
7265 #else
7266 # define LT_DLSYM_CONST const
7267 #endif
7268
7269 #ifdef __cplusplus
7270 extern "C" {
7271 #endif
7272
7273 _LT_EOF
7274 # Now generate the symbol file.
7275 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7276
7277 cat <<_LT_EOF >> conftest.$ac_ext
7278
7279 /* The mapping between symbol names and symbols. */
7280 LT_DLSYM_CONST struct {
7281 const char *name;
7282 void *address;
7283 }
7284 lt__PROGRAM__LTX_preloaded_symbols[] =
7285 {
7286 { "@PROGRAM@", (void *) 0 },
7287 _LT_EOF
7288 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7289 cat <<\_LT_EOF >> conftest.$ac_ext
7290 {0, (void *) 0}
7291 };
7292
7293 /* This works around a problem in FreeBSD linker */
7294 #ifdef FREEBSD_WORKAROUND
7295 static const void *lt_preloaded_setup() {
7296 return lt__PROGRAM__LTX_preloaded_symbols;
7297 }
7298 #endif
7299
7300 #ifdef __cplusplus
7301 }
7302 #endif
7303 _LT_EOF
7304 # Now try linking the two files.
7305 mv conftest.$ac_objext conftstm.$ac_objext
7306 lt_globsym_save_LIBS=$LIBS
7307 lt_globsym_save_CFLAGS=$CFLAGS
7308 LIBS=conftstm.$ac_objext
7309 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7311 (eval $ac_link) 2>&5
7312 ac_status=$?
7313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7314 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7315 pipe_works=yes
7316 fi
7317 LIBS=$lt_globsym_save_LIBS
7318 CFLAGS=$lt_globsym_save_CFLAGS
7319 else
7320 echo "cannot find nm_test_func in $nlist" >&5
7321 fi
7322 else
7323 echo "cannot find nm_test_var in $nlist" >&5
7324 fi
7325 else
7326 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7327 fi
7328 else
7329 echo "$progname: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7331 fi
7332 rm -rf conftest* conftst*
7333
7334 # Do not use the global_symbol_pipe unless it works.
7335 if test yes = "$pipe_works"; then
7336 break
7337 else
7338 lt_cv_sys_global_symbol_pipe=
7339 fi
7340 done
7341
7342 fi
7343
7344 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7345 lt_cv_sys_global_symbol_to_cdecl=
7346 fi
7347 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7349 $as_echo "failed" >&6; }
7350 else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7352 $as_echo "ok" >&6; }
7353 fi
7354
7355 # Response file support.
7356 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7357 nm_file_list_spec='@'
7358 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7359 nm_file_list_spec='@'
7360 fi
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7399 $as_echo_n "checking for sysroot... " >&6; }
7400
7401 # Check whether --with-sysroot was given.
7402 if test "${with_sysroot+set}" = set; then :
7403 withval=$with_sysroot;
7404 else
7405 with_sysroot=no
7406 fi
7407
7408
7409 lt_sysroot=
7410 case $with_sysroot in #(
7411 yes)
7412 if test yes = "$GCC"; then
7413 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7414 fi
7415 ;; #(
7416 /*)
7417 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7418 ;; #(
7419 no|'')
7420 ;; #(
7421 *)
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7423 $as_echo "$with_sysroot" >&6; }
7424 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7425 ;;
7426 esac
7427
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7429 $as_echo "${lt_sysroot:-no}" >&6; }
7430
7431
7432
7433
7434
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7436 $as_echo_n "checking for a working dd... " >&6; }
7437 if ${ac_cv_path_lt_DD+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 printf 0123456789abcdef0123456789abcdef >conftest.i
7441 cat conftest.i conftest.i >conftest2.i
7442 : ${lt_DD:=$DD}
7443 if test -z "$lt_DD"; then
7444 ac_path_lt_DD_found=false
7445 # Loop through the user's path and test for each of PROGNAME-LIST
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_prog in dd; do
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7454 as_fn_executable_p "$ac_path_lt_DD" || continue
7455 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7456 cmp -s conftest.i conftest.out \
7457 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7458 fi
7459 $ac_path_lt_DD_found && break 3
7460 done
7461 done
7462 done
7463 IFS=$as_save_IFS
7464 if test -z "$ac_cv_path_lt_DD"; then
7465 :
7466 fi
7467 else
7468 ac_cv_path_lt_DD=$lt_DD
7469 fi
7470
7471 rm -f conftest.i conftest2.i conftest.out
7472 fi
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7474 $as_echo "$ac_cv_path_lt_DD" >&6; }
7475
7476
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7478 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7479 if ${lt_cv_truncate_bin+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 printf 0123456789abcdef0123456789abcdef >conftest.i
7483 cat conftest.i conftest.i >conftest2.i
7484 lt_cv_truncate_bin=
7485 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7486 cmp -s conftest.i conftest.out \
7487 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7488 fi
7489 rm -f conftest.i conftest2.i conftest.out
7490 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7491 fi
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7493 $as_echo "$lt_cv_truncate_bin" >&6; }
7494
7495
7496
7497
7498
7499
7500
7501 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7502 func_cc_basename ()
7503 {
7504 for cc_temp in $*""; do
7505 case $cc_temp in
7506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7508 \-*) ;;
7509 *) break;;
7510 esac
7511 done
7512 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7513 }
7514
7515 # Check whether --enable-libtool-lock was given.
7516 if test "${enable_libtool_lock+set}" = set; then :
7517 enableval=$enable_libtool_lock;
7518 fi
7519
7520 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7521
7522 # Some flags need to be propagated to the compiler or linker for good
7523 # libtool support.
7524 case $host in
7525 ia64-*-hpux*)
7526 # Find out what ABI is being produced by ac_compile, and set mode
7527 # options accordingly.
7528 echo 'int i;' > conftest.$ac_ext
7529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7530 (eval $ac_compile) 2>&5
7531 ac_status=$?
7532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7533 test $ac_status = 0; }; then
7534 case `/usr/bin/file conftest.$ac_objext` in
7535 *ELF-32*)
7536 HPUX_IA64_MODE=32
7537 ;;
7538 *ELF-64*)
7539 HPUX_IA64_MODE=64
7540 ;;
7541 esac
7542 fi
7543 rm -rf conftest*
7544 ;;
7545 *-*-irix6*)
7546 # Find out what ABI is being produced by ac_compile, and set linker
7547 # options accordingly.
7548 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7550 (eval $ac_compile) 2>&5
7551 ac_status=$?
7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; }; then
7554 if test yes = "$lt_cv_prog_gnu_ld"; then
7555 case `/usr/bin/file conftest.$ac_objext` in
7556 *32-bit*)
7557 LD="${LD-ld} -melf32bsmip"
7558 ;;
7559 *N32*)
7560 LD="${LD-ld} -melf32bmipn32"
7561 ;;
7562 *64-bit*)
7563 LD="${LD-ld} -melf64bmip"
7564 ;;
7565 esac
7566 else
7567 case `/usr/bin/file conftest.$ac_objext` in
7568 *32-bit*)
7569 LD="${LD-ld} -32"
7570 ;;
7571 *N32*)
7572 LD="${LD-ld} -n32"
7573 ;;
7574 *64-bit*)
7575 LD="${LD-ld} -64"
7576 ;;
7577 esac
7578 fi
7579 fi
7580 rm -rf conftest*
7581 ;;
7582
7583 mips64*-*linux*)
7584 # Find out what ABI is being produced by ac_compile, and set linker
7585 # options accordingly.
7586 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7588 (eval $ac_compile) 2>&5
7589 ac_status=$?
7590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7591 test $ac_status = 0; }; then
7592 emul=elf
7593 case `/usr/bin/file conftest.$ac_objext` in
7594 *32-bit*)
7595 emul="${emul}32"
7596 ;;
7597 *64-bit*)
7598 emul="${emul}64"
7599 ;;
7600 esac
7601 case `/usr/bin/file conftest.$ac_objext` in
7602 *MSB*)
7603 emul="${emul}btsmip"
7604 ;;
7605 *LSB*)
7606 emul="${emul}ltsmip"
7607 ;;
7608 esac
7609 case `/usr/bin/file conftest.$ac_objext` in
7610 *N32*)
7611 emul="${emul}n32"
7612 ;;
7613 esac
7614 LD="${LD-ld} -m $emul"
7615 fi
7616 rm -rf conftest*
7617 ;;
7618
7619 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7620 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7621 # Find out what ABI is being produced by ac_compile, and set linker
7622 # options accordingly. Note that the listed cases only cover the
7623 # situations where additional linker options are needed (such as when
7624 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7625 # vice versa); the common cases where no linker options are needed do
7626 # not appear in the list.
7627 echo 'int i;' > conftest.$ac_ext
7628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7629 (eval $ac_compile) 2>&5
7630 ac_status=$?
7631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7632 test $ac_status = 0; }; then
7633 case `/usr/bin/file conftest.o` in
7634 *32-bit*)
7635 case $host in
7636 x86_64-*kfreebsd*-gnu)
7637 LD="${LD-ld} -m elf_i386_fbsd"
7638 ;;
7639 x86_64-*linux*)
7640 case `/usr/bin/file conftest.o` in
7641 *x86-64*)
7642 LD="${LD-ld} -m elf32_x86_64"
7643 ;;
7644 *)
7645 LD="${LD-ld} -m elf_i386"
7646 ;;
7647 esac
7648 ;;
7649 powerpc64le-*linux*)
7650 LD="${LD-ld} -m elf32lppclinux"
7651 ;;
7652 powerpc64-*linux*)
7653 LD="${LD-ld} -m elf32ppclinux"
7654 ;;
7655 s390x-*linux*)
7656 LD="${LD-ld} -m elf_s390"
7657 ;;
7658 sparc64-*linux*)
7659 LD="${LD-ld} -m elf32_sparc"
7660 ;;
7661 esac
7662 ;;
7663 *64-bit*)
7664 case $host in
7665 x86_64-*kfreebsd*-gnu)
7666 LD="${LD-ld} -m elf_x86_64_fbsd"
7667 ;;
7668 x86_64-*linux*)
7669 LD="${LD-ld} -m elf_x86_64"
7670 ;;
7671 powerpcle-*linux*)
7672 LD="${LD-ld} -m elf64lppc"
7673 ;;
7674 powerpc-*linux*)
7675 LD="${LD-ld} -m elf64ppc"
7676 ;;
7677 s390*-*linux*|s390*-*tpf*)
7678 LD="${LD-ld} -m elf64_s390"
7679 ;;
7680 sparc*-*linux*)
7681 LD="${LD-ld} -m elf64_sparc"
7682 ;;
7683 esac
7684 ;;
7685 esac
7686 fi
7687 rm -rf conftest*
7688 ;;
7689
7690 *-*-sco3.2v5*)
7691 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7692 SAVE_CFLAGS=$CFLAGS
7693 CFLAGS="$CFLAGS -belf"
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7695 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7696 if ${lt_cv_cc_needs_belf+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 ac_ext=c
7700 ac_cpp='$CPP $CPPFLAGS'
7701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7704
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707
7708 int
7709 main ()
7710 {
7711
7712 ;
7713 return 0;
7714 }
7715 _ACEOF
7716 if ac_fn_c_try_link "$LINENO"; then :
7717 lt_cv_cc_needs_belf=yes
7718 else
7719 lt_cv_cc_needs_belf=no
7720 fi
7721 rm -f core conftest.err conftest.$ac_objext \
7722 conftest$ac_exeext conftest.$ac_ext
7723 ac_ext=c
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728
7729 fi
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7731 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7732 if test yes != "$lt_cv_cc_needs_belf"; then
7733 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7734 CFLAGS=$SAVE_CFLAGS
7735 fi
7736 ;;
7737 *-*solaris*)
7738 # Find out what ABI is being produced by ac_compile, and set linker
7739 # options accordingly.
7740 echo 'int i;' > conftest.$ac_ext
7741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7742 (eval $ac_compile) 2>&5
7743 ac_status=$?
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; }; then
7746 case `/usr/bin/file conftest.o` in
7747 *64-bit*)
7748 case $lt_cv_prog_gnu_ld in
7749 yes*)
7750 case $host in
7751 i?86-*-solaris*|x86_64-*-solaris*)
7752 LD="${LD-ld} -m elf_x86_64"
7753 ;;
7754 sparc*-*-solaris*)
7755 LD="${LD-ld} -m elf64_sparc"
7756 ;;
7757 esac
7758 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7759 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7760 LD=${LD-ld}_sol2
7761 fi
7762 ;;
7763 *)
7764 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7765 LD="${LD-ld} -64"
7766 fi
7767 ;;
7768 esac
7769 ;;
7770 esac
7771 fi
7772 rm -rf conftest*
7773 ;;
7774 esac
7775
7776 need_locks=$enable_libtool_lock
7777
7778 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7780 set dummy ${ac_tool_prefix}mt; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 if test -n "$MANIFEST_TOOL"; then
7787 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 break 2
7799 fi
7800 done
7801 done
7802 IFS=$as_save_IFS
7803
7804 fi
7805 fi
7806 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7807 if test -n "$MANIFEST_TOOL"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7809 $as_echo "$MANIFEST_TOOL" >&6; }
7810 else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813 fi
7814
7815
7816 fi
7817 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7818 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7819 # Extract the first word of "mt", so it can be a program name with args.
7820 set dummy mt; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 if test -n "$ac_ct_MANIFEST_TOOL"; then
7827 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7831 do
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7836 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7839 fi
7840 done
7841 done
7842 IFS=$as_save_IFS
7843
7844 fi
7845 fi
7846 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7847 if test -n "$ac_ct_MANIFEST_TOOL"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7849 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7850 else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7853 fi
7854
7855 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7856 MANIFEST_TOOL=":"
7857 else
7858 case $cross_compiling:$ac_tool_warned in
7859 yes:)
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862 ac_tool_warned=yes ;;
7863 esac
7864 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7865 fi
7866 else
7867 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7868 fi
7869
7870 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7872 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7873 if ${lt_cv_path_mainfest_tool+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 lt_cv_path_mainfest_tool=no
7877 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7878 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7879 cat conftest.err >&5
7880 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7881 lt_cv_path_mainfest_tool=yes
7882 fi
7883 rm -f conftest*
7884 fi
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7886 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7887 if test yes != "$lt_cv_path_mainfest_tool"; then
7888 MANIFEST_TOOL=:
7889 fi
7890
7891
7892
7893
7894
7895
7896 case $host_os in
7897 rhapsody* | darwin*)
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$DSYMUTIL"; then
7907 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920 done
7921 done
7922 IFS=$as_save_IFS
7923
7924 fi
7925 fi
7926 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7927 if test -n "$DSYMUTIL"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7929 $as_echo "$DSYMUTIL" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 fi
7934
7935
7936 fi
7937 if test -z "$ac_cv_prog_DSYMUTIL"; then
7938 ac_ct_DSYMUTIL=$DSYMUTIL
7939 # Extract the first word of "dsymutil", so it can be a program name with args.
7940 set dummy dsymutil; 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_ac_ct_DSYMUTIL+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 if test -n "$ac_ct_DSYMUTIL"; then
7947 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_ac_ct_DSYMUTIL="dsymutil"
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 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7967 if test -n "$ac_ct_DSYMUTIL"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7969 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7973 fi
7974
7975 if test "x$ac_ct_DSYMUTIL" = x; then
7976 DSYMUTIL=":"
7977 else
7978 case $cross_compiling:$ac_tool_warned in
7979 yes:)
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982 ac_tool_warned=yes ;;
7983 esac
7984 DSYMUTIL=$ac_ct_DSYMUTIL
7985 fi
7986 else
7987 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7988 fi
7989
7990 if test -n "$ac_tool_prefix"; then
7991 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7992 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if ${ac_cv_prog_NMEDIT+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 if test -n "$NMEDIT"; then
7999 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8008 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012 done
8013 done
8014 IFS=$as_save_IFS
8015
8016 fi
8017 fi
8018 NMEDIT=$ac_cv_prog_NMEDIT
8019 if test -n "$NMEDIT"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8021 $as_echo "$NMEDIT" >&6; }
8022 else
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8025 fi
8026
8027
8028 fi
8029 if test -z "$ac_cv_prog_NMEDIT"; then
8030 ac_ct_NMEDIT=$NMEDIT
8031 # Extract the first word of "nmedit", so it can be a program name with args.
8032 set dummy nmedit; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 if test -n "$ac_ct_NMEDIT"; then
8039 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052 done
8053 done
8054 IFS=$as_save_IFS
8055
8056 fi
8057 fi
8058 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8059 if test -n "$ac_ct_NMEDIT"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8061 $as_echo "$ac_ct_NMEDIT" >&6; }
8062 else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 fi
8066
8067 if test "x$ac_ct_NMEDIT" = x; then
8068 NMEDIT=":"
8069 else
8070 case $cross_compiling:$ac_tool_warned in
8071 yes:)
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074 ac_tool_warned=yes ;;
8075 esac
8076 NMEDIT=$ac_ct_NMEDIT
8077 fi
8078 else
8079 NMEDIT="$ac_cv_prog_NMEDIT"
8080 fi
8081
8082 if test -n "$ac_tool_prefix"; then
8083 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8084 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if ${ac_cv_prog_LIPO+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 if test -n "$LIPO"; then
8091 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8092 else
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH
8095 do
8096 IFS=$as_save_IFS
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 break 2
8103 fi
8104 done
8105 done
8106 IFS=$as_save_IFS
8107
8108 fi
8109 fi
8110 LIPO=$ac_cv_prog_LIPO
8111 if test -n "$LIPO"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8113 $as_echo "$LIPO" >&6; }
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 fi
8118
8119
8120 fi
8121 if test -z "$ac_cv_prog_LIPO"; then
8122 ac_ct_LIPO=$LIPO
8123 # Extract the first word of "lipo", so it can be a program name with args.
8124 set dummy lipo; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 if test -n "$ac_ct_LIPO"; then
8131 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_ac_ct_LIPO="lipo"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 break 2
8143 fi
8144 done
8145 done
8146 IFS=$as_save_IFS
8147
8148 fi
8149 fi
8150 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8151 if test -n "$ac_ct_LIPO"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8153 $as_echo "$ac_ct_LIPO" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8157 fi
8158
8159 if test "x$ac_ct_LIPO" = x; then
8160 LIPO=":"
8161 else
8162 case $cross_compiling:$ac_tool_warned in
8163 yes:)
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8166 ac_tool_warned=yes ;;
8167 esac
8168 LIPO=$ac_ct_LIPO
8169 fi
8170 else
8171 LIPO="$ac_cv_prog_LIPO"
8172 fi
8173
8174 if test -n "$ac_tool_prefix"; then
8175 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8176 set dummy ${ac_tool_prefix}otool; ac_word=$2
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178 $as_echo_n "checking for $ac_word... " >&6; }
8179 if ${ac_cv_prog_OTOOL+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 if test -n "$OTOOL"; then
8183 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8184 else
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8187 do
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8192 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8195 fi
8196 done
8197 done
8198 IFS=$as_save_IFS
8199
8200 fi
8201 fi
8202 OTOOL=$ac_cv_prog_OTOOL
8203 if test -n "$OTOOL"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8205 $as_echo "$OTOOL" >&6; }
8206 else
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8209 fi
8210
8211
8212 fi
8213 if test -z "$ac_cv_prog_OTOOL"; then
8214 ac_ct_OTOOL=$OTOOL
8215 # Extract the first word of "otool", so it can be a program name with args.
8216 set dummy otool; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 if test -n "$ac_ct_OTOOL"; then
8223 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_ac_ct_OTOOL="otool"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236 done
8237 done
8238 IFS=$as_save_IFS
8239
8240 fi
8241 fi
8242 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8243 if test -n "$ac_ct_OTOOL"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8245 $as_echo "$ac_ct_OTOOL" >&6; }
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8249 fi
8250
8251 if test "x$ac_ct_OTOOL" = x; then
8252 OTOOL=":"
8253 else
8254 case $cross_compiling:$ac_tool_warned in
8255 yes:)
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8258 ac_tool_warned=yes ;;
8259 esac
8260 OTOOL=$ac_ct_OTOOL
8261 fi
8262 else
8263 OTOOL="$ac_cv_prog_OTOOL"
8264 fi
8265
8266 if test -n "$ac_tool_prefix"; then
8267 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8268 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if ${ac_cv_prog_OTOOL64+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 if test -n "$OTOOL64"; then
8275 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8287 fi
8288 done
8289 done
8290 IFS=$as_save_IFS
8291
8292 fi
8293 fi
8294 OTOOL64=$ac_cv_prog_OTOOL64
8295 if test -n "$OTOOL64"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8297 $as_echo "$OTOOL64" >&6; }
8298 else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8301 fi
8302
8303
8304 fi
8305 if test -z "$ac_cv_prog_OTOOL64"; then
8306 ac_ct_OTOOL64=$OTOOL64
8307 # Extract the first word of "otool64", so it can be a program name with args.
8308 set dummy otool64; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 if test -n "$ac_ct_OTOOL64"; then
8315 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_ac_ct_OTOOL64="otool64"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328 done
8329 done
8330 IFS=$as_save_IFS
8331
8332 fi
8333 fi
8334 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8335 if test -n "$ac_ct_OTOOL64"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8337 $as_echo "$ac_ct_OTOOL64" >&6; }
8338 else
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8341 fi
8342
8343 if test "x$ac_ct_OTOOL64" = x; then
8344 OTOOL64=":"
8345 else
8346 case $cross_compiling:$ac_tool_warned in
8347 yes:)
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8350 ac_tool_warned=yes ;;
8351 esac
8352 OTOOL64=$ac_ct_OTOOL64
8353 fi
8354 else
8355 OTOOL64="$ac_cv_prog_OTOOL64"
8356 fi
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
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8385 $as_echo_n "checking for -single_module linker flag... " >&6; }
8386 if ${lt_cv_apple_cc_single_mod+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 lt_cv_apple_cc_single_mod=no
8390 if test -z "$LT_MULTI_MODULE"; then
8391 # By default we will add the -single_module flag. You can override
8392 # by either setting the environment variable LT_MULTI_MODULE
8393 # non-empty at configure time, or by adding -multi_module to the
8394 # link flags.
8395 rm -rf libconftest.dylib*
8396 echo "int foo(void){return 1;}" > conftest.c
8397 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8398 -dynamiclib -Wl,-single_module conftest.c" >&5
8399 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8400 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8401 _lt_result=$?
8402 # If there is a non-empty error log, and "single_module"
8403 # appears in it, assume the flag caused a linker warning
8404 if test -s conftest.err && $GREP single_module conftest.err; then
8405 cat conftest.err >&5
8406 # Otherwise, if the output was created with a 0 exit code from
8407 # the compiler, it worked.
8408 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8409 lt_cv_apple_cc_single_mod=yes
8410 else
8411 cat conftest.err >&5
8412 fi
8413 rm -rf libconftest.dylib*
8414 rm -f conftest.*
8415 fi
8416 fi
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8418 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8419
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8421 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8422 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 lt_cv_ld_exported_symbols_list=no
8426 save_LDFLAGS=$LDFLAGS
8427 echo "_main" > conftest.sym
8428 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431
8432 int
8433 main ()
8434 {
8435
8436 ;
8437 return 0;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_link "$LINENO"; then :
8441 lt_cv_ld_exported_symbols_list=yes
8442 else
8443 lt_cv_ld_exported_symbols_list=no
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 LDFLAGS=$save_LDFLAGS
8448
8449 fi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8451 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8454 $as_echo_n "checking for -force_load linker flag... " >&6; }
8455 if ${lt_cv_ld_force_load+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 lt_cv_ld_force_load=no
8459 cat > conftest.c << _LT_EOF
8460 int forced_loaded() { return 2;}
8461 _LT_EOF
8462 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8463 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8464 echo "$AR cru libconftest.a conftest.o" >&5
8465 $AR cru libconftest.a conftest.o 2>&5
8466 echo "$RANLIB libconftest.a" >&5
8467 $RANLIB libconftest.a 2>&5
8468 cat > conftest.c << _LT_EOF
8469 int main() { return 0;}
8470 _LT_EOF
8471 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8472 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8473 _lt_result=$?
8474 if test -s conftest.err && $GREP force_load conftest.err; then
8475 cat conftest.err >&5
8476 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8477 lt_cv_ld_force_load=yes
8478 else
8479 cat conftest.err >&5
8480 fi
8481 rm -f conftest.err libconftest.a conftest conftest.c
8482 rm -rf conftest.dSYM
8483
8484 fi
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8486 $as_echo "$lt_cv_ld_force_load" >&6; }
8487 case $host_os in
8488 rhapsody* | darwin1.[012])
8489 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8490 darwin1.*)
8491 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8492 darwin*) # darwin 5.x on
8493 # if running on 10.5 or later, the deployment target defaults
8494 # to the OS version, if on x86, and 10.4, the deployment
8495 # target defaults to 10.4. Don't you love it?
8496 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8497 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8498 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8499 10.[012][,.]*)
8500 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8501 10.*)
8502 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8503 esac
8504 ;;
8505 esac
8506 if test yes = "$lt_cv_apple_cc_single_mod"; then
8507 _lt_dar_single_mod='$single_module'
8508 fi
8509 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8510 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8511 else
8512 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8513 fi
8514 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8515 _lt_dsymutil='~$DSYMUTIL $lib || :'
8516 else
8517 _lt_dsymutil=
8518 fi
8519 ;;
8520 esac
8521
8522 # func_munge_path_list VARIABLE PATH
8523 # -----------------------------------
8524 # VARIABLE is name of variable containing _space_ separated list of
8525 # directories to be munged by the contents of PATH, which is string
8526 # having a format:
8527 # "DIR[:DIR]:"
8528 # string "DIR[ DIR]" will be prepended to VARIABLE
8529 # ":DIR[:DIR]"
8530 # string "DIR[ DIR]" will be appended to VARIABLE
8531 # "DIRP[:DIRP]::[DIRA:]DIRA"
8532 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8533 # "DIRA[ DIRA]" will be appended to VARIABLE
8534 # "DIR[:DIR]"
8535 # VARIABLE will be replaced by "DIR[ DIR]"
8536 func_munge_path_list ()
8537 {
8538 case x$2 in
8539 x)
8540 ;;
8541 *:)
8542 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8543 ;;
8544 x:*)
8545 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8546 ;;
8547 *::*)
8548 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8549 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8550 ;;
8551 *)
8552 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8553 ;;
8554 esac
8555 }
8556
8557 for ac_header in dlfcn.h
8558 do :
8559 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8560 "
8561 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8562 cat >>confdefs.h <<_ACEOF
8563 #define HAVE_DLFCN_H 1
8564 _ACEOF
8565
8566 fi
8567
8568 done
8569
8570
8571
8572
8573
8574 # Set options
8575
8576
8577
8578 enable_dlopen=no
8579
8580
8581 enable_win32_dll=no
8582
8583
8584 # Check whether --enable-shared was given.
8585 if test "${enable_shared+set}" = set; then :
8586 enableval=$enable_shared; p=${PACKAGE-default}
8587 case $enableval in
8588 yes) enable_shared=yes ;;
8589 no) enable_shared=no ;;
8590 *)
8591 enable_shared=no
8592 # Look at the argument we got. We use all the common list separators.
8593 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8594 for pkg in $enableval; do
8595 IFS=$lt_save_ifs
8596 if test "X$pkg" = "X$p"; then
8597 enable_shared=yes
8598 fi
8599 done
8600 IFS=$lt_save_ifs
8601 ;;
8602 esac
8603 else
8604 enable_shared=yes
8605 fi
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615 # Check whether --enable-static was given.
8616 if test "${enable_static+set}" = set; then :
8617 enableval=$enable_static; p=${PACKAGE-default}
8618 case $enableval in
8619 yes) enable_static=yes ;;
8620 no) enable_static=no ;;
8621 *)
8622 enable_static=no
8623 # Look at the argument we got. We use all the common list separators.
8624 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8625 for pkg in $enableval; do
8626 IFS=$lt_save_ifs
8627 if test "X$pkg" = "X$p"; then
8628 enable_static=yes
8629 fi
8630 done
8631 IFS=$lt_save_ifs
8632 ;;
8633 esac
8634 else
8635 enable_static=yes
8636 fi
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647 # Check whether --with-pic was given.
8648 if test "${with_pic+set}" = set; then :
8649 withval=$with_pic; lt_p=${PACKAGE-default}
8650 case $withval in
8651 yes|no) pic_mode=$withval ;;
8652 *)
8653 pic_mode=default
8654 # Look at the argument we got. We use all the common list separators.
8655 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8656 for lt_pkg in $withval; do
8657 IFS=$lt_save_ifs
8658 if test "X$lt_pkg" = "X$lt_p"; then
8659 pic_mode=yes
8660 fi
8661 done
8662 IFS=$lt_save_ifs
8663 ;;
8664 esac
8665 else
8666 pic_mode=default
8667 fi
8668
8669
8670
8671
8672
8673
8674
8675
8676 # Check whether --enable-fast-install was given.
8677 if test "${enable_fast_install+set}" = set; then :
8678 enableval=$enable_fast_install; p=${PACKAGE-default}
8679 case $enableval in
8680 yes) enable_fast_install=yes ;;
8681 no) enable_fast_install=no ;;
8682 *)
8683 enable_fast_install=no
8684 # Look at the argument we got. We use all the common list separators.
8685 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8686 for pkg in $enableval; do
8687 IFS=$lt_save_ifs
8688 if test "X$pkg" = "X$p"; then
8689 enable_fast_install=yes
8690 fi
8691 done
8692 IFS=$lt_save_ifs
8693 ;;
8694 esac
8695 else
8696 enable_fast_install=yes
8697 fi
8698
8699
8700
8701
8702
8703
8704
8705
8706 shared_archive_member_spec=
8707 case $host,$enable_shared in
8708 power*-*-aix[5-9]*,yes)
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8710 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8711
8712 # Check whether --with-aix-soname was given.
8713 if test "${with_aix_soname+set}" = set; then :
8714 withval=$with_aix_soname; case $withval in
8715 aix|svr4|both)
8716 ;;
8717 *)
8718 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8719 ;;
8720 esac
8721 lt_cv_with_aix_soname=$with_aix_soname
8722 else
8723 if ${lt_cv_with_aix_soname+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 lt_cv_with_aix_soname=aix
8727 fi
8728
8729 with_aix_soname=$lt_cv_with_aix_soname
8730 fi
8731
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8733 $as_echo "$with_aix_soname" >&6; }
8734 if test aix != "$with_aix_soname"; then
8735 # For the AIX way of multilib, we name the shared archive member
8736 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8737 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8738 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8739 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8740 if test 64 = "${OBJECT_MODE-32}"; then
8741 shared_archive_member_spec=shr_64
8742 else
8743 shared_archive_member_spec=shr
8744 fi
8745 fi
8746 ;;
8747 *)
8748 with_aix_soname=aix
8749 ;;
8750 esac
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761 # This can be used to rebuild libtool when needed
8762 LIBTOOL_DEPS=$ltmain
8763
8764 # Always use our own libtool.
8765 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796 test -z "$LN_S" && LN_S="ln -s"
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811 if test -n "${ZSH_VERSION+set}"; then
8812 setopt NO_GLOB_SUBST
8813 fi
8814
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8816 $as_echo_n "checking for objdir... " >&6; }
8817 if ${lt_cv_objdir+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 rm -f .libs 2>/dev/null
8821 mkdir .libs 2>/dev/null
8822 if test -d .libs; then
8823 lt_cv_objdir=.libs
8824 else
8825 # MS-DOS does not allow filenames that begin with a dot.
8826 lt_cv_objdir=_libs
8827 fi
8828 rmdir .libs 2>/dev/null
8829 fi
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8831 $as_echo "$lt_cv_objdir" >&6; }
8832 objdir=$lt_cv_objdir
8833
8834
8835
8836
8837
8838 cat >>confdefs.h <<_ACEOF
8839 #define LT_OBJDIR "$lt_cv_objdir/"
8840 _ACEOF
8841
8842
8843
8844
8845 case $host_os in
8846 aix3*)
8847 # AIX sometimes has problems with the GCC collect2 program. For some
8848 # reason, if we set the COLLECT_NAMES environment variable, the problems
8849 # vanish in a puff of smoke.
8850 if test set != "${COLLECT_NAMES+set}"; then
8851 COLLECT_NAMES=
8852 export COLLECT_NAMES
8853 fi
8854 ;;
8855 esac
8856
8857 # Global variables:
8858 ofile=libtool
8859 can_build_shared=yes
8860
8861 # All known linkers require a '.a' archive for static linking (except MSVC,
8862 # which needs '.lib').
8863 libext=a
8864
8865 with_gnu_ld=$lt_cv_prog_gnu_ld
8866
8867 old_CC=$CC
8868 old_CFLAGS=$CFLAGS
8869
8870 # Set sane defaults for various variables
8871 test -z "$CC" && CC=cc
8872 test -z "$LTCC" && LTCC=$CC
8873 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8874 test -z "$LD" && LD=ld
8875 test -z "$ac_objext" && ac_objext=o
8876
8877 func_cc_basename $compiler
8878 cc_basename=$func_cc_basename_result
8879
8880
8881 # Only perform the check for file, if the check method requires it
8882 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8883 case $deplibs_check_method in
8884 file_magic*)
8885 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8887 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8888 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 case $MAGIC_CMD in
8892 [\\/*] | ?:[\\/]*)
8893 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8894 ;;
8895 *)
8896 lt_save_MAGIC_CMD=$MAGIC_CMD
8897 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8898 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8899 for ac_dir in $ac_dummy; do
8900 IFS=$lt_save_ifs
8901 test -z "$ac_dir" && ac_dir=.
8902 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8903 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8904 if test -n "$file_magic_test_file"; then
8905 case $deplibs_check_method in
8906 "file_magic "*)
8907 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8908 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8910 $EGREP "$file_magic_regex" > /dev/null; then
8911 :
8912 else
8913 cat <<_LT_EOF 1>&2
8914
8915 *** Warning: the command libtool uses to detect shared libraries,
8916 *** $file_magic_cmd, produces output that libtool cannot recognize.
8917 *** The result is that libtool may fail to recognize shared libraries
8918 *** as such. This will affect the creation of libtool libraries that
8919 *** depend on shared libraries, but programs linked with such libtool
8920 *** libraries will work regardless of this problem. Nevertheless, you
8921 *** may want to report the problem to your system manager and/or to
8922 *** bug-libtool@gnu.org
8923
8924 _LT_EOF
8925 fi ;;
8926 esac
8927 fi
8928 break
8929 fi
8930 done
8931 IFS=$lt_save_ifs
8932 MAGIC_CMD=$lt_save_MAGIC_CMD
8933 ;;
8934 esac
8935 fi
8936
8937 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8938 if test -n "$MAGIC_CMD"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8940 $as_echo "$MAGIC_CMD" >&6; }
8941 else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8944 fi
8945
8946
8947
8948
8949
8950 if test -z "$lt_cv_path_MAGIC_CMD"; then
8951 if test -n "$ac_tool_prefix"; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8953 $as_echo_n "checking for file... " >&6; }
8954 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8955 $as_echo_n "(cached) " >&6
8956 else
8957 case $MAGIC_CMD in
8958 [\\/*] | ?:[\\/]*)
8959 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8960 ;;
8961 *)
8962 lt_save_MAGIC_CMD=$MAGIC_CMD
8963 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8964 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8965 for ac_dir in $ac_dummy; do
8966 IFS=$lt_save_ifs
8967 test -z "$ac_dir" && ac_dir=.
8968 if test -f "$ac_dir/file"; then
8969 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8970 if test -n "$file_magic_test_file"; then
8971 case $deplibs_check_method in
8972 "file_magic "*)
8973 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8974 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8975 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8976 $EGREP "$file_magic_regex" > /dev/null; then
8977 :
8978 else
8979 cat <<_LT_EOF 1>&2
8980
8981 *** Warning: the command libtool uses to detect shared libraries,
8982 *** $file_magic_cmd, produces output that libtool cannot recognize.
8983 *** The result is that libtool may fail to recognize shared libraries
8984 *** as such. This will affect the creation of libtool libraries that
8985 *** depend on shared libraries, but programs linked with such libtool
8986 *** libraries will work regardless of this problem. Nevertheless, you
8987 *** may want to report the problem to your system manager and/or to
8988 *** bug-libtool@gnu.org
8989
8990 _LT_EOF
8991 fi ;;
8992 esac
8993 fi
8994 break
8995 fi
8996 done
8997 IFS=$lt_save_ifs
8998 MAGIC_CMD=$lt_save_MAGIC_CMD
8999 ;;
9000 esac
9001 fi
9002
9003 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9004 if test -n "$MAGIC_CMD"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9006 $as_echo "$MAGIC_CMD" >&6; }
9007 else
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9010 fi
9011
9012
9013 else
9014 MAGIC_CMD=:
9015 fi
9016 fi
9017
9018 fi
9019 ;;
9020 esac
9021
9022 # Use C for the default configuration in the libtool script
9023
9024 lt_save_CC=$CC
9025 ac_ext=c
9026 ac_cpp='$CPP $CPPFLAGS'
9027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9030
9031
9032 # Source file extension for C test sources.
9033 ac_ext=c
9034
9035 # Object file extension for compiled C test sources.
9036 objext=o
9037 objext=$objext
9038
9039 # Code to be used in simple compile tests
9040 lt_simple_compile_test_code="int some_variable = 0;"
9041
9042 # Code to be used in simple link tests
9043 lt_simple_link_test_code='int main(){return(0);}'
9044
9045
9046
9047
9048
9049
9050
9051 # If no C compiler was specified, use CC.
9052 LTCC=${LTCC-"$CC"}
9053
9054 # If no C compiler flags were specified, use CFLAGS.
9055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9056
9057 # Allow CC to be a program name with arguments.
9058 compiler=$CC
9059
9060 # Save the default compiler, since it gets overwritten when the other
9061 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9062 compiler_DEFAULT=$CC
9063
9064 # save warnings/boilerplate of simple test code
9065 ac_outfile=conftest.$ac_objext
9066 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9067 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9068 _lt_compiler_boilerplate=`cat conftest.err`
9069 $RM conftest*
9070
9071 ac_outfile=conftest.$ac_objext
9072 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9073 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9074 _lt_linker_boilerplate=`cat conftest.err`
9075 $RM -r conftest*
9076
9077
9078 if test -n "$compiler"; then
9079
9080 lt_prog_compiler_no_builtin_flag=
9081
9082 if test yes = "$GCC"; then
9083 case $cc_basename in
9084 nvcc*)
9085 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9086 *)
9087 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9088 esac
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9091 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9092 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 lt_cv_prog_compiler_rtti_exceptions=no
9096 ac_outfile=conftest.$ac_objext
9097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9098 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9099 # Insert the option either (1) after the last *FLAGS variable, or
9100 # (2) before a word containing "conftest.", or (3) at the end.
9101 # Note that $ac_compile itself does not contain backslashes and begins
9102 # with a dollar sign (not a hyphen), so the echo should work correctly.
9103 # The option is referenced via a variable to avoid confusing sed.
9104 lt_compile=`echo "$ac_compile" | $SED \
9105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9107 -e 's:$: $lt_compiler_flag:'`
9108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9109 (eval "$lt_compile" 2>conftest.err)
9110 ac_status=$?
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 if (exit $ac_status) && test -s "$ac_outfile"; then
9114 # The compiler can only warn and ignore the option if not recognized
9115 # So say no if there are warnings other than the usual output.
9116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9118 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9119 lt_cv_prog_compiler_rtti_exceptions=yes
9120 fi
9121 fi
9122 $RM conftest*
9123
9124 fi
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9126 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9127
9128 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9129 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9130 else
9131 :
9132 fi
9133
9134 fi
9135
9136
9137
9138
9139
9140
9141 lt_prog_compiler_wl=
9142 lt_prog_compiler_pic=
9143 lt_prog_compiler_static=
9144
9145
9146 if test yes = "$GCC"; then
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_static='-static'
9149
9150 case $host_os in
9151 aix*)
9152 # All AIX code is PIC.
9153 if test ia64 = "$host_cpu"; then
9154 # AIX 5 now supports IA64 processor
9155 lt_prog_compiler_static='-Bstatic'
9156 fi
9157 lt_prog_compiler_pic='-fPIC'
9158 ;;
9159
9160 amigaos*)
9161 case $host_cpu in
9162 powerpc)
9163 # see comment about AmigaOS4 .so support
9164 lt_prog_compiler_pic='-fPIC'
9165 ;;
9166 m68k)
9167 # FIXME: we need at least 68020 code to build shared libraries, but
9168 # adding the '-m68020' flag to GCC prevents building anything better,
9169 # like '-m68040'.
9170 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9171 ;;
9172 esac
9173 ;;
9174
9175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9176 # PIC is the default for these OSes.
9177 ;;
9178
9179 mingw* | cygwin* | pw32* | os2* | cegcc*)
9180 # This hack is so that the source file can tell whether it is being
9181 # built for inclusion in a dll (and should export symbols for example).
9182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9183 # (--disable-auto-import) libraries
9184 lt_prog_compiler_pic='-DDLL_EXPORT'
9185 case $host_os in
9186 os2*)
9187 lt_prog_compiler_static='$wl-static'
9188 ;;
9189 esac
9190 ;;
9191
9192 darwin* | rhapsody*)
9193 # PIC is the default on this platform
9194 # Common symbols not allowed in MH_DYLIB files
9195 lt_prog_compiler_pic='-fno-common'
9196 ;;
9197
9198 haiku*)
9199 # PIC is the default for Haiku.
9200 # The "-static" flag exists, but is broken.
9201 lt_prog_compiler_static=
9202 ;;
9203
9204 hpux*)
9205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9207 # sets the default TLS model and affects inlining.
9208 case $host_cpu in
9209 hppa*64*)
9210 # +Z the default
9211 ;;
9212 *)
9213 lt_prog_compiler_pic='-fPIC'
9214 ;;
9215 esac
9216 ;;
9217
9218 interix[3-9]*)
9219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9220 # Instead, we relocate shared libraries at runtime.
9221 ;;
9222
9223 msdosdjgpp*)
9224 # Just because we use GCC doesn't mean we suddenly get shared libraries
9225 # on systems that don't support them.
9226 lt_prog_compiler_can_build_shared=no
9227 enable_shared=no
9228 ;;
9229
9230 *nto* | *qnx*)
9231 # QNX uses GNU C++, but need to define -shared option too, otherwise
9232 # it will coredump.
9233 lt_prog_compiler_pic='-fPIC -shared'
9234 ;;
9235
9236 sysv4*MP*)
9237 if test -d /usr/nec; then
9238 lt_prog_compiler_pic=-Kconform_pic
9239 fi
9240 ;;
9241
9242 *)
9243 lt_prog_compiler_pic='-fPIC'
9244 ;;
9245 esac
9246
9247 case $cc_basename in
9248 nvcc*) # Cuda Compiler Driver 2.2
9249 lt_prog_compiler_wl='-Xlinker '
9250 if test -n "$lt_prog_compiler_pic"; then
9251 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9252 fi
9253 ;;
9254 esac
9255 else
9256 # PORTME Check for flag to pass linker flags through the system compiler.
9257 case $host_os in
9258 aix*)
9259 lt_prog_compiler_wl='-Wl,'
9260 if test ia64 = "$host_cpu"; then
9261 # AIX 5 now supports IA64 processor
9262 lt_prog_compiler_static='-Bstatic'
9263 else
9264 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9265 fi
9266 ;;
9267
9268 darwin* | rhapsody*)
9269 # PIC is the default on this platform
9270 # Common symbols not allowed in MH_DYLIB files
9271 lt_prog_compiler_pic='-fno-common'
9272 case $cc_basename in
9273 nagfor*)
9274 # NAG Fortran compiler
9275 lt_prog_compiler_wl='-Wl,-Wl,,'
9276 lt_prog_compiler_pic='-PIC'
9277 lt_prog_compiler_static='-Bstatic'
9278 ;;
9279 esac
9280 ;;
9281
9282 mingw* | cygwin* | pw32* | os2* | cegcc*)
9283 # This hack is so that the source file can tell whether it is being
9284 # built for inclusion in a dll (and should export symbols for example).
9285 lt_prog_compiler_pic='-DDLL_EXPORT'
9286 case $host_os in
9287 os2*)
9288 lt_prog_compiler_static='$wl-static'
9289 ;;
9290 esac
9291 ;;
9292
9293 hpux9* | hpux10* | hpux11*)
9294 lt_prog_compiler_wl='-Wl,'
9295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9296 # not for PA HP-UX.
9297 case $host_cpu in
9298 hppa*64*|ia64*)
9299 # +Z the default
9300 ;;
9301 *)
9302 lt_prog_compiler_pic='+Z'
9303 ;;
9304 esac
9305 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9306 lt_prog_compiler_static='$wl-a ${wl}archive'
9307 ;;
9308
9309 irix5* | irix6* | nonstopux*)
9310 lt_prog_compiler_wl='-Wl,'
9311 # PIC (with -KPIC) is the default.
9312 lt_prog_compiler_static='-non_shared'
9313 ;;
9314
9315 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9316 case $cc_basename in
9317 # old Intel for x86_64, which still supported -KPIC.
9318 ecc*)
9319 lt_prog_compiler_wl='-Wl,'
9320 lt_prog_compiler_pic='-KPIC'
9321 lt_prog_compiler_static='-static'
9322 ;;
9323 # icc used to be incompatible with GCC.
9324 # ICC 10 doesn't accept -KPIC any more.
9325 icc* | ifort*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-fPIC'
9328 lt_prog_compiler_static='-static'
9329 ;;
9330 # Lahey Fortran 8.1.
9331 lf95*)
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_pic='--shared'
9334 lt_prog_compiler_static='--static'
9335 ;;
9336 nagfor*)
9337 # NAG Fortran compiler
9338 lt_prog_compiler_wl='-Wl,-Wl,,'
9339 lt_prog_compiler_pic='-PIC'
9340 lt_prog_compiler_static='-Bstatic'
9341 ;;
9342 tcc*)
9343 # Fabrice Bellard et al's Tiny C Compiler
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-fPIC'
9346 lt_prog_compiler_static='-static'
9347 ;;
9348 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9349 # Portland Group compilers (*not* the Pentium gcc compiler,
9350 # which looks to be a dead project)
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_pic='-fpic'
9353 lt_prog_compiler_static='-Bstatic'
9354 ;;
9355 ccc*)
9356 lt_prog_compiler_wl='-Wl,'
9357 # All Alpha code is PIC.
9358 lt_prog_compiler_static='-non_shared'
9359 ;;
9360 xl* | bgxl* | bgf* | mpixl*)
9361 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9362 lt_prog_compiler_wl='-Wl,'
9363 lt_prog_compiler_pic='-qpic'
9364 lt_prog_compiler_static='-qstaticlink'
9365 ;;
9366 *)
9367 case `$CC -V 2>&1 | sed 5q` in
9368 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9369 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9370 lt_prog_compiler_pic='-KPIC'
9371 lt_prog_compiler_static='-Bstatic'
9372 lt_prog_compiler_wl=''
9373 ;;
9374 *Sun\ F* | *Sun*Fortran*)
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
9377 lt_prog_compiler_wl='-Qoption ld '
9378 ;;
9379 *Sun\ C*)
9380 # Sun C 5.9
9381 lt_prog_compiler_pic='-KPIC'
9382 lt_prog_compiler_static='-Bstatic'
9383 lt_prog_compiler_wl='-Wl,'
9384 ;;
9385 *Intel*\ [CF]*Compiler*)
9386 lt_prog_compiler_wl='-Wl,'
9387 lt_prog_compiler_pic='-fPIC'
9388 lt_prog_compiler_static='-static'
9389 ;;
9390 *Portland\ Group*)
9391 lt_prog_compiler_wl='-Wl,'
9392 lt_prog_compiler_pic='-fpic'
9393 lt_prog_compiler_static='-Bstatic'
9394 ;;
9395 esac
9396 ;;
9397 esac
9398 ;;
9399
9400 newsos6)
9401 lt_prog_compiler_pic='-KPIC'
9402 lt_prog_compiler_static='-Bstatic'
9403 ;;
9404
9405 *nto* | *qnx*)
9406 # QNX uses GNU C++, but need to define -shared option too, otherwise
9407 # it will coredump.
9408 lt_prog_compiler_pic='-fPIC -shared'
9409 ;;
9410
9411 osf3* | osf4* | osf5*)
9412 lt_prog_compiler_wl='-Wl,'
9413 # All OSF/1 code is PIC.
9414 lt_prog_compiler_static='-non_shared'
9415 ;;
9416
9417 rdos*)
9418 lt_prog_compiler_static='-non_shared'
9419 ;;
9420
9421 solaris*)
9422 lt_prog_compiler_pic='-KPIC'
9423 lt_prog_compiler_static='-Bstatic'
9424 case $cc_basename in
9425 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9426 lt_prog_compiler_wl='-Qoption ld ';;
9427 *)
9428 lt_prog_compiler_wl='-Wl,';;
9429 esac
9430 ;;
9431
9432 sunos4*)
9433 lt_prog_compiler_wl='-Qoption ld '
9434 lt_prog_compiler_pic='-PIC'
9435 lt_prog_compiler_static='-Bstatic'
9436 ;;
9437
9438 sysv4 | sysv4.2uw2* | sysv4.3*)
9439 lt_prog_compiler_wl='-Wl,'
9440 lt_prog_compiler_pic='-KPIC'
9441 lt_prog_compiler_static='-Bstatic'
9442 ;;
9443
9444 sysv4*MP*)
9445 if test -d /usr/nec; then
9446 lt_prog_compiler_pic='-Kconform_pic'
9447 lt_prog_compiler_static='-Bstatic'
9448 fi
9449 ;;
9450
9451 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9452 lt_prog_compiler_wl='-Wl,'
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 ;;
9456
9457 unicos*)
9458 lt_prog_compiler_wl='-Wl,'
9459 lt_prog_compiler_can_build_shared=no
9460 ;;
9461
9462 uts4*)
9463 lt_prog_compiler_pic='-pic'
9464 lt_prog_compiler_static='-Bstatic'
9465 ;;
9466
9467 *)
9468 lt_prog_compiler_can_build_shared=no
9469 ;;
9470 esac
9471 fi
9472
9473 case $host_os in
9474 # For platforms that do not support PIC, -DPIC is meaningless:
9475 *djgpp*)
9476 lt_prog_compiler_pic=
9477 ;;
9478 *)
9479 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9480 ;;
9481 esac
9482
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9484 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9485 if ${lt_cv_prog_compiler_pic+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9489 fi
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9491 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9492 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9493
9494 #
9495 # Check to make sure the PIC flag actually works.
9496 #
9497 if test -n "$lt_prog_compiler_pic"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9499 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9500 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 lt_cv_prog_compiler_pic_works=no
9504 ac_outfile=conftest.$ac_objext
9505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9506 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9507 # Insert the option either (1) after the last *FLAGS variable, or
9508 # (2) before a word containing "conftest.", or (3) at the end.
9509 # Note that $ac_compile itself does not contain backslashes and begins
9510 # with a dollar sign (not a hyphen), so the echo should work correctly.
9511 # The option is referenced via a variable to avoid confusing sed.
9512 lt_compile=`echo "$ac_compile" | $SED \
9513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9515 -e 's:$: $lt_compiler_flag:'`
9516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9517 (eval "$lt_compile" 2>conftest.err)
9518 ac_status=$?
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 if (exit $ac_status) && test -s "$ac_outfile"; then
9522 # The compiler can only warn and ignore the option if not recognized
9523 # So say no if there are warnings other than the usual output.
9524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9527 lt_cv_prog_compiler_pic_works=yes
9528 fi
9529 fi
9530 $RM conftest*
9531
9532 fi
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9534 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9535
9536 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9537 case $lt_prog_compiler_pic in
9538 "" | " "*) ;;
9539 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9540 esac
9541 else
9542 lt_prog_compiler_pic=
9543 lt_prog_compiler_can_build_shared=no
9544 fi
9545
9546 fi
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558 #
9559 # Check to make sure the static flag actually works.
9560 #
9561 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9563 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9564 if ${lt_cv_prog_compiler_static_works+:} false; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 lt_cv_prog_compiler_static_works=no
9568 save_LDFLAGS=$LDFLAGS
9569 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9570 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9571 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9572 # The linker can only warn and ignore the option if not recognized
9573 # So say no if there are warnings
9574 if test -s conftest.err; then
9575 # Append any errors to the config.log.
9576 cat conftest.err 1>&5
9577 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9579 if diff conftest.exp conftest.er2 >/dev/null; then
9580 lt_cv_prog_compiler_static_works=yes
9581 fi
9582 else
9583 lt_cv_prog_compiler_static_works=yes
9584 fi
9585 fi
9586 $RM -r conftest*
9587 LDFLAGS=$save_LDFLAGS
9588
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9591 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9592
9593 if test yes = "$lt_cv_prog_compiler_static_works"; then
9594 :
9595 else
9596 lt_prog_compiler_static=
9597 fi
9598
9599
9600
9601
9602
9603
9604
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9606 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9607 if ${lt_cv_prog_compiler_c_o+:} false; then :
9608 $as_echo_n "(cached) " >&6
9609 else
9610 lt_cv_prog_compiler_c_o=no
9611 $RM -r conftest 2>/dev/null
9612 mkdir conftest
9613 cd conftest
9614 mkdir out
9615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9616
9617 lt_compiler_flag="-o out/conftest2.$ac_objext"
9618 # Insert the option either (1) after the last *FLAGS variable, or
9619 # (2) before a word containing "conftest.", or (3) at the end.
9620 # Note that $ac_compile itself does not contain backslashes and begins
9621 # with a dollar sign (not a hyphen), so the echo should work correctly.
9622 lt_compile=`echo "$ac_compile" | $SED \
9623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9625 -e 's:$: $lt_compiler_flag:'`
9626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9627 (eval "$lt_compile" 2>out/conftest.err)
9628 ac_status=$?
9629 cat out/conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9632 then
9633 # The compiler can only warn and ignore the option if not recognized
9634 # So say no if there are warnings
9635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9636 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9637 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9638 lt_cv_prog_compiler_c_o=yes
9639 fi
9640 fi
9641 chmod u+w . 2>&5
9642 $RM conftest*
9643 # SGI C++ compiler will create directory out/ii_files/ for
9644 # template instantiation
9645 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9646 $RM out/* && rmdir out
9647 cd ..
9648 $RM -r conftest
9649 $RM conftest*
9650
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9653 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9654
9655
9656
9657
9658
9659
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9661 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9662 if ${lt_cv_prog_compiler_c_o+:} false; then :
9663 $as_echo_n "(cached) " >&6
9664 else
9665 lt_cv_prog_compiler_c_o=no
9666 $RM -r conftest 2>/dev/null
9667 mkdir conftest
9668 cd conftest
9669 mkdir out
9670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9671
9672 lt_compiler_flag="-o out/conftest2.$ac_objext"
9673 # Insert the option either (1) after the last *FLAGS variable, or
9674 # (2) before a word containing "conftest.", or (3) at the end.
9675 # Note that $ac_compile itself does not contain backslashes and begins
9676 # with a dollar sign (not a hyphen), so the echo should work correctly.
9677 lt_compile=`echo "$ac_compile" | $SED \
9678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9680 -e 's:$: $lt_compiler_flag:'`
9681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9682 (eval "$lt_compile" 2>out/conftest.err)
9683 ac_status=$?
9684 cat out/conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9687 then
9688 # The compiler can only warn and ignore the option if not recognized
9689 # So say no if there are warnings
9690 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9693 lt_cv_prog_compiler_c_o=yes
9694 fi
9695 fi
9696 chmod u+w . 2>&5
9697 $RM conftest*
9698 # SGI C++ compiler will create directory out/ii_files/ for
9699 # template instantiation
9700 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9701 $RM out/* && rmdir out
9702 cd ..
9703 $RM -r conftest
9704 $RM conftest*
9705
9706 fi
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9708 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9709
9710
9711
9712
9713 hard_links=nottested
9714 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9715 # do not overwrite the value of need_locks provided by the user
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9717 $as_echo_n "checking if we can lock with hard links... " >&6; }
9718 hard_links=yes
9719 $RM conftest*
9720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9721 touch conftest.a
9722 ln conftest.a conftest.b 2>&5 || hard_links=no
9723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9725 $as_echo "$hard_links" >&6; }
9726 if test no = "$hard_links"; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9728 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9729 need_locks=warn
9730 fi
9731 else
9732 need_locks=no
9733 fi
9734
9735
9736
9737
9738
9739
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9741 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9742
9743 runpath_var=
9744 allow_undefined_flag=
9745 always_export_symbols=no
9746 archive_cmds=
9747 archive_expsym_cmds=
9748 compiler_needs_object=no
9749 enable_shared_with_static_runtimes=no
9750 export_dynamic_flag_spec=
9751 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9752 hardcode_automatic=no
9753 hardcode_direct=no
9754 hardcode_direct_absolute=no
9755 hardcode_libdir_flag_spec=
9756 hardcode_libdir_separator=
9757 hardcode_minus_L=no
9758 hardcode_shlibpath_var=unsupported
9759 inherit_rpath=no
9760 link_all_deplibs=unknown
9761 module_cmds=
9762 module_expsym_cmds=
9763 old_archive_from_new_cmds=
9764 old_archive_from_expsyms_cmds=
9765 thread_safe_flag_spec=
9766 whole_archive_flag_spec=
9767 # include_expsyms should be a list of space-separated symbols to be *always*
9768 # included in the symbol list
9769 include_expsyms=
9770 # exclude_expsyms can be an extended regexp of symbols to exclude
9771 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9772 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9773 # as well as any symbol that contains 'd'.
9774 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9775 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9776 # platforms (ab)use it in PIC code, but their linkers get confused if
9777 # the symbol is explicitly referenced. Since portable code cannot
9778 # rely on this symbol name, it's probably fine to never include it in
9779 # preloaded symbol tables.
9780 # Exclude shared library initialization/finalization symbols.
9781 extract_expsyms_cmds=
9782
9783 case $host_os in
9784 cygwin* | mingw* | pw32* | cegcc*)
9785 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9786 # When not using gcc, we currently assume that we are using
9787 # Microsoft Visual C++.
9788 if test yes != "$GCC"; then
9789 with_gnu_ld=no
9790 fi
9791 ;;
9792 interix*)
9793 # we just hope/assume this is gcc and not c89 (= MSVC++)
9794 with_gnu_ld=yes
9795 ;;
9796 openbsd* | bitrig*)
9797 with_gnu_ld=no
9798 ;;
9799 esac
9800
9801 ld_shlibs=yes
9802
9803 # On some targets, GNU ld is compatible enough with the native linker
9804 # that we're better off using the native interface for both.
9805 lt_use_gnu_ld_interface=no
9806 if test yes = "$with_gnu_ld"; then
9807 case $host_os in
9808 aix*)
9809 # The AIX port of GNU ld has always aspired to compatibility
9810 # with the native linker. However, as the warning in the GNU ld
9811 # block says, versions before 2.19.5* couldn't really create working
9812 # shared libraries, regardless of the interface used.
9813 case `$LD -v 2>&1` in
9814 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9815 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9816 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9817 *)
9818 lt_use_gnu_ld_interface=yes
9819 ;;
9820 esac
9821 ;;
9822 *)
9823 lt_use_gnu_ld_interface=yes
9824 ;;
9825 esac
9826 fi
9827
9828 if test yes = "$lt_use_gnu_ld_interface"; then
9829 # If archive_cmds runs LD, not CC, wlarc should be empty
9830 wlarc='$wl'
9831
9832 # Set some defaults for GNU ld with shared library support. These
9833 # are reset later if shared libraries are not supported. Putting them
9834 # here allows them to be overridden if necessary.
9835 runpath_var=LD_RUN_PATH
9836 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9837 export_dynamic_flag_spec='$wl--export-dynamic'
9838 # ancient GNU ld didn't support --whole-archive et. al.
9839 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9840 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9841 else
9842 whole_archive_flag_spec=
9843 fi
9844 supports_anon_versioning=no
9845 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9846 *GNU\ gold*) supports_anon_versioning=yes ;;
9847 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9848 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9849 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9850 *\ 2.11.*) ;; # other 2.11 versions
9851 *) supports_anon_versioning=yes ;;
9852 esac
9853
9854 # See if GNU ld supports shared libraries.
9855 case $host_os in
9856 aix[3-9]*)
9857 # On AIX/PPC, the GNU linker is very broken
9858 if test ia64 != "$host_cpu"; then
9859 ld_shlibs=no
9860 cat <<_LT_EOF 1>&2
9861
9862 *** Warning: the GNU linker, at least up to release 2.19, is reported
9863 *** to be unable to reliably create shared libraries on AIX.
9864 *** Therefore, libtool is disabling shared libraries support. If you
9865 *** really care for shared libraries, you may want to install binutils
9866 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9867 *** You will then need to restart the configuration process.
9868
9869 _LT_EOF
9870 fi
9871 ;;
9872
9873 amigaos*)
9874 case $host_cpu in
9875 powerpc)
9876 # see comment about AmigaOS4 .so support
9877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9878 archive_expsym_cmds=''
9879 ;;
9880 m68k)
9881 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)'
9882 hardcode_libdir_flag_spec='-L$libdir'
9883 hardcode_minus_L=yes
9884 ;;
9885 esac
9886 ;;
9887
9888 beos*)
9889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9890 allow_undefined_flag=unsupported
9891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9892 # support --undefined. This deserves some investigation. FIXME
9893 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9894 else
9895 ld_shlibs=no
9896 fi
9897 ;;
9898
9899 cygwin* | mingw* | pw32* | cegcc*)
9900 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9901 # as there is no search path for DLLs.
9902 hardcode_libdir_flag_spec='-L$libdir'
9903 export_dynamic_flag_spec='$wl--export-all-symbols'
9904 allow_undefined_flag=unsupported
9905 always_export_symbols=no
9906 enable_shared_with_static_runtimes=yes
9907 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'
9908 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9909
9910 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9912 # If the export-symbols file already is a .def file, use it as
9913 # is; otherwise, prepend EXPORTS...
9914 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9915 cp $export_symbols $output_objdir/$soname.def;
9916 else
9917 echo EXPORTS > $output_objdir/$soname.def;
9918 cat $export_symbols >> $output_objdir/$soname.def;
9919 fi~
9920 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9921 else
9922 ld_shlibs=no
9923 fi
9924 ;;
9925
9926 haiku*)
9927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9928 link_all_deplibs=yes
9929 ;;
9930
9931 os2*)
9932 hardcode_libdir_flag_spec='-L$libdir'
9933 hardcode_minus_L=yes
9934 allow_undefined_flag=unsupported
9935 shrext_cmds=.dll
9936 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9937 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9938 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9939 $ECHO EXPORTS >> $output_objdir/$libname.def~
9940 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9941 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9942 emximp -o $lib $output_objdir/$libname.def'
9943 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9944 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9945 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9946 $ECHO EXPORTS >> $output_objdir/$libname.def~
9947 prefix_cmds="$SED"~
9948 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9949 prefix_cmds="$prefix_cmds -e 1d";
9950 fi~
9951 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9952 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9953 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9954 emximp -o $lib $output_objdir/$libname.def'
9955 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9956 enable_shared_with_static_runtimes=yes
9957 ;;
9958
9959 interix[3-9]*)
9960 hardcode_direct=no
9961 hardcode_shlibpath_var=no
9962 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9963 export_dynamic_flag_spec='$wl-E'
9964 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9965 # Instead, shared libraries are loaded at an image base (0x10000000 by
9966 # default) and relocated if they conflict, which is a slow very memory
9967 # consuming and fragmenting process. To avoid this, we pick a random,
9968 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9969 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9970 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9971 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'
9972 ;;
9973
9974 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9975 tmp_diet=no
9976 if test linux-dietlibc = "$host_os"; then
9977 case $cc_basename in
9978 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9979 esac
9980 fi
9981 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9982 && test no = "$tmp_diet"
9983 then
9984 tmp_addflag=' $pic_flag'
9985 tmp_sharedflag='-shared'
9986 case $cc_basename,$host_cpu in
9987 pgcc*) # Portland Group C compiler
9988 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'
9989 tmp_addflag=' $pic_flag'
9990 ;;
9991 pgf77* | pgf90* | pgf95* | pgfortran*)
9992 # Portland Group f77 and f90 compilers
9993 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'
9994 tmp_addflag=' $pic_flag -Mnomain' ;;
9995 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9996 tmp_addflag=' -i_dynamic' ;;
9997 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9998 tmp_addflag=' -i_dynamic -nofor_main' ;;
9999 ifc* | ifort*) # Intel Fortran compiler
10000 tmp_addflag=' -nofor_main' ;;
10001 lf95*) # Lahey Fortran 8.1
10002 whole_archive_flag_spec=
10003 tmp_sharedflag='--shared' ;;
10004 nagfor*) # NAGFOR 5.3
10005 tmp_sharedflag='-Wl,-shared' ;;
10006 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10007 tmp_sharedflag='-qmkshrobj'
10008 tmp_addflag= ;;
10009 nvcc*) # Cuda Compiler Driver 2.2
10010 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'
10011 compiler_needs_object=yes
10012 ;;
10013 esac
10014 case `$CC -V 2>&1 | sed 5q` in
10015 *Sun\ C*) # Sun C 5.9
10016 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'
10017 compiler_needs_object=yes
10018 tmp_sharedflag='-G' ;;
10019 *Sun\ F*) # Sun Fortran 8.3
10020 tmp_sharedflag='-G' ;;
10021 esac
10022 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10023
10024 if test yes = "$supports_anon_versioning"; then
10025 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10026 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10027 echo "local: *; };" >> $output_objdir/$libname.ver~
10028 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10029 fi
10030
10031 case $cc_basename in
10032 tcc*)
10033 export_dynamic_flag_spec='-rdynamic'
10034 ;;
10035 xlf* | bgf* | bgxlf* | mpixlf*)
10036 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10037 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10038 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10039 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10040 if test yes = "$supports_anon_versioning"; then
10041 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10043 echo "local: *; };" >> $output_objdir/$libname.ver~
10044 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10045 fi
10046 ;;
10047 esac
10048 else
10049 ld_shlibs=no
10050 fi
10051 ;;
10052
10053 netbsd*)
10054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10055 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10056 wlarc=
10057 else
10058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10059 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10060 fi
10061 ;;
10062
10063 solaris*)
10064 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10065 ld_shlibs=no
10066 cat <<_LT_EOF 1>&2
10067
10068 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10069 *** create shared libraries on Solaris systems. Therefore, libtool
10070 *** is disabling shared libraries support. We urge you to upgrade GNU
10071 *** binutils to release 2.9.1 or newer. Another option is to modify
10072 *** your PATH or compiler configuration so that the native linker is
10073 *** used, and then restart.
10074
10075 _LT_EOF
10076 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10077 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10078 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10079 else
10080 ld_shlibs=no
10081 fi
10082 ;;
10083
10084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10085 case `$LD -v 2>&1` in
10086 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10087 ld_shlibs=no
10088 cat <<_LT_EOF 1>&2
10089
10090 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10091 *** reliably create shared libraries on SCO systems. Therefore, libtool
10092 *** is disabling shared libraries support. We urge you to upgrade GNU
10093 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10094 *** your PATH or compiler configuration so that the native linker is
10095 *** used, and then restart.
10096
10097 _LT_EOF
10098 ;;
10099 *)
10100 # For security reasons, it is highly recommended that you always
10101 # use absolute paths for naming shared libraries, and exclude the
10102 # DT_RUNPATH tag from executables and libraries. But doing so
10103 # requires that you compile everything twice, which is a pain.
10104 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10105 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10108 else
10109 ld_shlibs=no
10110 fi
10111 ;;
10112 esac
10113 ;;
10114
10115 sunos4*)
10116 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10117 wlarc=
10118 hardcode_direct=yes
10119 hardcode_shlibpath_var=no
10120 ;;
10121
10122 *)
10123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10124 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10125 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10126 else
10127 ld_shlibs=no
10128 fi
10129 ;;
10130 esac
10131
10132 if test no = "$ld_shlibs"; then
10133 runpath_var=
10134 hardcode_libdir_flag_spec=
10135 export_dynamic_flag_spec=
10136 whole_archive_flag_spec=
10137 fi
10138 else
10139 # PORTME fill in a description of your system's linker (not GNU ld)
10140 case $host_os in
10141 aix3*)
10142 allow_undefined_flag=unsupported
10143 always_export_symbols=yes
10144 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'
10145 # Note: this linker hardcodes the directories in LIBPATH if there
10146 # are no directories specified by -L.
10147 hardcode_minus_L=yes
10148 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10149 # Neither direct hardcoding nor static linking is supported with a
10150 # broken collect2.
10151 hardcode_direct=unsupported
10152 fi
10153 ;;
10154
10155 aix[4-9]*)
10156 if test ia64 = "$host_cpu"; then
10157 # On IA64, the linker does run time linking by default, so we don't
10158 # have to do anything special.
10159 aix_use_runtimelinking=no
10160 exp_sym_flag='-Bexport'
10161 no_entry_flag=
10162 else
10163 # If we're using GNU nm, then we don't want the "-C" option.
10164 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10165 # Without the "-l" option, or with the "-B" option, AIX nm treats
10166 # weak defined symbols like other global defined symbols, whereas
10167 # GNU nm marks them as "W".
10168 # While the 'weak' keyword is ignored in the Export File, we need
10169 # it in the Import File for the 'aix-soname' feature, so we have
10170 # to replace the "-B" option with "-P" for AIX nm.
10171 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10172 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10173 else
10174 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10175 fi
10176 aix_use_runtimelinking=no
10177
10178 # Test if we are trying to use run time linking or normal
10179 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10180 # have runtime linking enabled, and use it for executables.
10181 # For shared libraries, we enable/disable runtime linking
10182 # depending on the kind of the shared library created -
10183 # when "with_aix_soname,aix_use_runtimelinking" is:
10184 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10185 # "aix,yes" lib.so shared, rtl:yes, for executables
10186 # lib.a static archive
10187 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10188 # lib.a(lib.so.V) shared, rtl:no, for executables
10189 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10190 # lib.a(lib.so.V) shared, rtl:no
10191 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10192 # lib.a static archive
10193 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10194 for ld_flag in $LDFLAGS; do
10195 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10196 aix_use_runtimelinking=yes
10197 break
10198 fi
10199 done
10200 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10201 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10202 # so we don't have lib.a shared libs to link our executables.
10203 # We have to force runtime linking in this case.
10204 aix_use_runtimelinking=yes
10205 LDFLAGS="$LDFLAGS -Wl,-brtl"
10206 fi
10207 ;;
10208 esac
10209
10210 exp_sym_flag='-bexport'
10211 no_entry_flag='-bnoentry'
10212 fi
10213
10214 # When large executables or shared objects are built, AIX ld can
10215 # have problems creating the table of contents. If linking a library
10216 # or program results in "error TOC overflow" add -mminimal-toc to
10217 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10218 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10219
10220 archive_cmds=''
10221 hardcode_direct=yes
10222 hardcode_direct_absolute=yes
10223 hardcode_libdir_separator=':'
10224 link_all_deplibs=yes
10225 file_list_spec='$wl-f,'
10226 case $with_aix_soname,$aix_use_runtimelinking in
10227 aix,*) ;; # traditional, no import file
10228 svr4,* | *,yes) # use import file
10229 # The Import File defines what to hardcode.
10230 hardcode_direct=no
10231 hardcode_direct_absolute=no
10232 ;;
10233 esac
10234
10235 if test yes = "$GCC"; then
10236 case $host_os in aix4.[012]|aix4.[012].*)
10237 # We only want to do this on AIX 4.2 and lower, the check
10238 # below for broken collect2 doesn't work under 4.3+
10239 collect2name=`$CC -print-prog-name=collect2`
10240 if test -f "$collect2name" &&
10241 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10242 then
10243 # We have reworked collect2
10244 :
10245 else
10246 # We have old collect2
10247 hardcode_direct=unsupported
10248 # It fails to find uninstalled libraries when the uninstalled
10249 # path is not listed in the libpath. Setting hardcode_minus_L
10250 # to unsupported forces relinking
10251 hardcode_minus_L=yes
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_libdir_separator=
10254 fi
10255 ;;
10256 esac
10257 shared_flag='-shared'
10258 if test yes = "$aix_use_runtimelinking"; then
10259 shared_flag="$shared_flag "'$wl-G'
10260 fi
10261 # Need to ensure runtime linking is disabled for the traditional
10262 # shared library, or the linker may eventually find shared libraries
10263 # /with/ Import File - we do not want to mix them.
10264 shared_flag_aix='-shared'
10265 shared_flag_svr4='-shared $wl-G'
10266 else
10267 # not using gcc
10268 if test ia64 = "$host_cpu"; then
10269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10270 # chokes on -Wl,-G. The following line is correct:
10271 shared_flag='-G'
10272 else
10273 if test yes = "$aix_use_runtimelinking"; then
10274 shared_flag='$wl-G'
10275 else
10276 shared_flag='$wl-bM:SRE'
10277 fi
10278 shared_flag_aix='$wl-bM:SRE'
10279 shared_flag_svr4='$wl-G'
10280 fi
10281 fi
10282
10283 export_dynamic_flag_spec='$wl-bexpall'
10284 # It seems that -bexpall does not export symbols beginning with
10285 # underscore (_), so it is better to generate a list of symbols to export.
10286 always_export_symbols=yes
10287 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10288 # Warning - without using the other runtime loading flags (-brtl),
10289 # -berok will link without error, but may produce a broken library.
10290 allow_undefined_flag='-berok'
10291 # Determine the default libpath from the value encoded in an
10292 # empty executable.
10293 if test set = "${lt_cv_aix_libpath+set}"; then
10294 aix_libpath=$lt_cv_aix_libpath
10295 else
10296 if ${lt_cv_aix_libpath_+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10301
10302 int
10303 main ()
10304 {
10305
10306 ;
10307 return 0;
10308 }
10309 _ACEOF
10310 if ac_fn_c_try_link "$LINENO"; then :
10311
10312 lt_aix_libpath_sed='
10313 /Import File Strings/,/^$/ {
10314 /^0/ {
10315 s/^0 *\([^ ]*\) *$/\1/
10316 p
10317 }
10318 }'
10319 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10320 # Check for a 64-bit object if we didn't find anything.
10321 if test -z "$lt_cv_aix_libpath_"; then
10322 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10323 fi
10324 fi
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 if test -z "$lt_cv_aix_libpath_"; then
10328 lt_cv_aix_libpath_=/usr/lib:/lib
10329 fi
10330
10331 fi
10332
10333 aix_libpath=$lt_cv_aix_libpath_
10334 fi
10335
10336 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10337 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10338 else
10339 if test ia64 = "$host_cpu"; then
10340 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10341 allow_undefined_flag="-z nodefs"
10342 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"
10343 else
10344 # Determine the default libpath from the value encoded in an
10345 # empty executable.
10346 if test set = "${lt_cv_aix_libpath+set}"; then
10347 aix_libpath=$lt_cv_aix_libpath
10348 else
10349 if ${lt_cv_aix_libpath_+:} false; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10354
10355 int
10356 main ()
10357 {
10358
10359 ;
10360 return 0;
10361 }
10362 _ACEOF
10363 if ac_fn_c_try_link "$LINENO"; then :
10364
10365 lt_aix_libpath_sed='
10366 /Import File Strings/,/^$/ {
10367 /^0/ {
10368 s/^0 *\([^ ]*\) *$/\1/
10369 p
10370 }
10371 }'
10372 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10373 # Check for a 64-bit object if we didn't find anything.
10374 if test -z "$lt_cv_aix_libpath_"; then
10375 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10376 fi
10377 fi
10378 rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10380 if test -z "$lt_cv_aix_libpath_"; then
10381 lt_cv_aix_libpath_=/usr/lib:/lib
10382 fi
10383
10384 fi
10385
10386 aix_libpath=$lt_cv_aix_libpath_
10387 fi
10388
10389 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10390 # Warning - without using the other run time loading flags,
10391 # -berok will link without error, but may produce a broken library.
10392 no_undefined_flag=' $wl-bernotok'
10393 allow_undefined_flag=' $wl-berok'
10394 if test yes = "$with_gnu_ld"; then
10395 # We only use this code for GNU lds that support --whole-archive.
10396 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10397 else
10398 # Exported symbols can be pulled into shared objects from archives
10399 whole_archive_flag_spec='$convenience'
10400 fi
10401 archive_cmds_need_lc=yes
10402 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10403 # -brtl affects multiple linker settings, -berok does not and is overridden later
10404 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10405 if test svr4 != "$with_aix_soname"; then
10406 # This is similar to how AIX traditionally builds its shared libraries.
10407 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10408 fi
10409 if test aix != "$with_aix_soname"; then
10410 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10411 else
10412 # used by -dlpreopen to get the symbols
10413 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10414 fi
10415 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10416 fi
10417 fi
10418 ;;
10419
10420 amigaos*)
10421 case $host_cpu in
10422 powerpc)
10423 # see comment about AmigaOS4 .so support
10424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10425 archive_expsym_cmds=''
10426 ;;
10427 m68k)
10428 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)'
10429 hardcode_libdir_flag_spec='-L$libdir'
10430 hardcode_minus_L=yes
10431 ;;
10432 esac
10433 ;;
10434
10435 bsdi[45]*)
10436 export_dynamic_flag_spec=-rdynamic
10437 ;;
10438
10439 cygwin* | mingw* | pw32* | cegcc*)
10440 # When not using gcc, we currently assume that we are using
10441 # Microsoft Visual C++.
10442 # hardcode_libdir_flag_spec is actually meaningless, as there is
10443 # no search path for DLLs.
10444 case $cc_basename in
10445 cl*)
10446 # Native MSVC
10447 hardcode_libdir_flag_spec=' '
10448 allow_undefined_flag=unsupported
10449 always_export_symbols=yes
10450 file_list_spec='@'
10451 # Tell ltmain to make .lib files, not .a files.
10452 libext=lib
10453 # Tell ltmain to make .dll files, not .so files.
10454 shrext_cmds=.dll
10455 # FIXME: Setting linknames here is a bad hack.
10456 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10457 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10458 cp "$export_symbols" "$output_objdir/$soname.def";
10459 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10460 else
10461 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10462 fi~
10463 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10464 linknames='
10465 # The linker will not automatically build a static lib if we build a DLL.
10466 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10467 enable_shared_with_static_runtimes=yes
10468 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10469 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10470 # Don't use ranlib
10471 old_postinstall_cmds='chmod 644 $oldlib'
10472 postlink_cmds='lt_outputfile="@OUTPUT@"~
10473 lt_tool_outputfile="@TOOL_OUTPUT@"~
10474 case $lt_outputfile in
10475 *.exe|*.EXE) ;;
10476 *)
10477 lt_outputfile=$lt_outputfile.exe
10478 lt_tool_outputfile=$lt_tool_outputfile.exe
10479 ;;
10480 esac~
10481 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10482 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10483 $RM "$lt_outputfile.manifest";
10484 fi'
10485 ;;
10486 *)
10487 # Assume MSVC wrapper
10488 hardcode_libdir_flag_spec=' '
10489 allow_undefined_flag=unsupported
10490 # Tell ltmain to make .lib files, not .a files.
10491 libext=lib
10492 # Tell ltmain to make .dll files, not .so files.
10493 shrext_cmds=.dll
10494 # FIXME: Setting linknames here is a bad hack.
10495 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10496 # The linker will automatically build a .lib file if we build a DLL.
10497 old_archive_from_new_cmds='true'
10498 # FIXME: Should let the user specify the lib program.
10499 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10500 enable_shared_with_static_runtimes=yes
10501 ;;
10502 esac
10503 ;;
10504
10505 darwin* | rhapsody*)
10506
10507
10508 archive_cmds_need_lc=no
10509 hardcode_direct=no
10510 hardcode_automatic=yes
10511 hardcode_shlibpath_var=unsupported
10512 if test yes = "$lt_cv_ld_force_load"; then
10513 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\"`'
10514
10515 else
10516 whole_archive_flag_spec=''
10517 fi
10518 link_all_deplibs=yes
10519 allow_undefined_flag=$_lt_dar_allow_undefined
10520 case $cc_basename in
10521 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10522 *) _lt_dar_can_shared=$GCC ;;
10523 esac
10524 if test yes = "$_lt_dar_can_shared"; then
10525 output_verbose_link_cmd=func_echo_all
10526 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10527 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10528 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"
10529 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"
10530
10531 else
10532 ld_shlibs=no
10533 fi
10534
10535 ;;
10536
10537 dgux*)
10538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10539 hardcode_libdir_flag_spec='-L$libdir'
10540 hardcode_shlibpath_var=no
10541 ;;
10542
10543 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10544 # support. Future versions do this automatically, but an explicit c++rt0.o
10545 # does not break anything, and helps significantly (at the cost of a little
10546 # extra space).
10547 freebsd2.2*)
10548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10549 hardcode_libdir_flag_spec='-R$libdir'
10550 hardcode_direct=yes
10551 hardcode_shlibpath_var=no
10552 ;;
10553
10554 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10555 freebsd2.*)
10556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10557 hardcode_direct=yes
10558 hardcode_minus_L=yes
10559 hardcode_shlibpath_var=no
10560 ;;
10561
10562 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10563 freebsd* | dragonfly*)
10564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10565 hardcode_libdir_flag_spec='-R$libdir'
10566 hardcode_direct=yes
10567 hardcode_shlibpath_var=no
10568 ;;
10569
10570 hpux9*)
10571 if test yes = "$GCC"; then
10572 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10573 else
10574 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10575 fi
10576 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10577 hardcode_libdir_separator=:
10578 hardcode_direct=yes
10579
10580 # hardcode_minus_L: Not really in the search PATH,
10581 # but as the default location of the library.
10582 hardcode_minus_L=yes
10583 export_dynamic_flag_spec='$wl-E'
10584 ;;
10585
10586 hpux10*)
10587 if test yes,no = "$GCC,$with_gnu_ld"; then
10588 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10589 else
10590 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10591 fi
10592 if test no = "$with_gnu_ld"; then
10593 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10594 hardcode_libdir_separator=:
10595 hardcode_direct=yes
10596 hardcode_direct_absolute=yes
10597 export_dynamic_flag_spec='$wl-E'
10598 # hardcode_minus_L: Not really in the search PATH,
10599 # but as the default location of the library.
10600 hardcode_minus_L=yes
10601 fi
10602 ;;
10603
10604 hpux11*)
10605 if test yes,no = "$GCC,$with_gnu_ld"; then
10606 case $host_cpu in
10607 hppa*64*)
10608 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10609 ;;
10610 ia64*)
10611 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10612 ;;
10613 *)
10614 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10615 ;;
10616 esac
10617 else
10618 case $host_cpu in
10619 hppa*64*)
10620 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 ;;
10622 ia64*)
10623 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10624 ;;
10625 *)
10626
10627 # Older versions of the 11.00 compiler do not understand -b yet
10628 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10630 $as_echo_n "checking if $CC understands -b... " >&6; }
10631 if ${lt_cv_prog_compiler__b+:} false; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 lt_cv_prog_compiler__b=no
10635 save_LDFLAGS=$LDFLAGS
10636 LDFLAGS="$LDFLAGS -b"
10637 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10639 # The linker can only warn and ignore the option if not recognized
10640 # So say no if there are warnings
10641 if test -s conftest.err; then
10642 # Append any errors to the config.log.
10643 cat conftest.err 1>&5
10644 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10646 if diff conftest.exp conftest.er2 >/dev/null; then
10647 lt_cv_prog_compiler__b=yes
10648 fi
10649 else
10650 lt_cv_prog_compiler__b=yes
10651 fi
10652 fi
10653 $RM -r conftest*
10654 LDFLAGS=$save_LDFLAGS
10655
10656 fi
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10658 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10659
10660 if test yes = "$lt_cv_prog_compiler__b"; then
10661 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10662 else
10663 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10664 fi
10665
10666 ;;
10667 esac
10668 fi
10669 if test no = "$with_gnu_ld"; then
10670 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10671 hardcode_libdir_separator=:
10672
10673 case $host_cpu in
10674 hppa*64*|ia64*)
10675 hardcode_direct=no
10676 hardcode_shlibpath_var=no
10677 ;;
10678 *)
10679 hardcode_direct=yes
10680 hardcode_direct_absolute=yes
10681 export_dynamic_flag_spec='$wl-E'
10682
10683 # hardcode_minus_L: Not really in the search PATH,
10684 # but as the default location of the library.
10685 hardcode_minus_L=yes
10686 ;;
10687 esac
10688 fi
10689 ;;
10690
10691 irix5* | irix6* | nonstopux*)
10692 if test yes = "$GCC"; then
10693 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'
10694 # Try to use the -exported_symbol ld option, if it does not
10695 # work, assume that -exports_file does not work either and
10696 # implicitly export all symbols.
10697 # This should be the same for all languages, so no per-tag cache variable.
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10699 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10700 if ${lt_cv_irix_exported_symbol+:} false; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 save_LDFLAGS=$LDFLAGS
10704 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 int foo (void) { return 0; }
10708 _ACEOF
10709 if ac_fn_c_try_link "$LINENO"; then :
10710 lt_cv_irix_exported_symbol=yes
10711 else
10712 lt_cv_irix_exported_symbol=no
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
10716 LDFLAGS=$save_LDFLAGS
10717 fi
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10719 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10720 if test yes = "$lt_cv_irix_exported_symbol"; then
10721 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'
10722 fi
10723 else
10724 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'
10725 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'
10726 fi
10727 archive_cmds_need_lc='no'
10728 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10729 hardcode_libdir_separator=:
10730 inherit_rpath=yes
10731 link_all_deplibs=yes
10732 ;;
10733
10734 linux*)
10735 case $cc_basename in
10736 tcc*)
10737 # Fabrice Bellard et al's Tiny C Compiler
10738 ld_shlibs=yes
10739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10740 ;;
10741 esac
10742 ;;
10743
10744 netbsd*)
10745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10747 else
10748 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10749 fi
10750 hardcode_libdir_flag_spec='-R$libdir'
10751 hardcode_direct=yes
10752 hardcode_shlibpath_var=no
10753 ;;
10754
10755 newsos6)
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_direct=yes
10758 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10759 hardcode_libdir_separator=:
10760 hardcode_shlibpath_var=no
10761 ;;
10762
10763 *nto* | *qnx*)
10764 ;;
10765
10766 openbsd* | bitrig*)
10767 if test -f /usr/libexec/ld.so; then
10768 hardcode_direct=yes
10769 hardcode_shlibpath_var=no
10770 hardcode_direct_absolute=yes
10771 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10772 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10773 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10774 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10775 export_dynamic_flag_spec='$wl-E'
10776 else
10777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10778 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10779 fi
10780 else
10781 ld_shlibs=no
10782 fi
10783 ;;
10784
10785 os2*)
10786 hardcode_libdir_flag_spec='-L$libdir'
10787 hardcode_minus_L=yes
10788 allow_undefined_flag=unsupported
10789 shrext_cmds=.dll
10790 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10791 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10792 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10793 $ECHO EXPORTS >> $output_objdir/$libname.def~
10794 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10795 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10796 emximp -o $lib $output_objdir/$libname.def'
10797 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10798 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10799 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10800 $ECHO EXPORTS >> $output_objdir/$libname.def~
10801 prefix_cmds="$SED"~
10802 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10803 prefix_cmds="$prefix_cmds -e 1d";
10804 fi~
10805 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10806 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10807 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10808 emximp -o $lib $output_objdir/$libname.def'
10809 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10810 enable_shared_with_static_runtimes=yes
10811 ;;
10812
10813 osf3*)
10814 if test yes = "$GCC"; then
10815 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10816 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'
10817 else
10818 allow_undefined_flag=' -expect_unresolved \*'
10819 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'
10820 fi
10821 archive_cmds_need_lc='no'
10822 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10823 hardcode_libdir_separator=:
10824 ;;
10825
10826 osf4* | osf5*) # as osf3* with the addition of -msym flag
10827 if test yes = "$GCC"; then
10828 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10829 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'
10830 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10831 else
10832 allow_undefined_flag=' -expect_unresolved \*'
10833 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'
10834 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~
10835 $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'
10836
10837 # Both c and cxx compiler support -rpath directly
10838 hardcode_libdir_flag_spec='-rpath $libdir'
10839 fi
10840 archive_cmds_need_lc='no'
10841 hardcode_libdir_separator=:
10842 ;;
10843
10844 solaris*)
10845 no_undefined_flag=' -z defs'
10846 if test yes = "$GCC"; then
10847 wlarc='$wl'
10848 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10849 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10850 $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'
10851 else
10852 case `$CC -V 2>&1` in
10853 *"Compilers 5.0"*)
10854 wlarc=''
10855 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10857 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10858 ;;
10859 *)
10860 wlarc='$wl'
10861 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10863 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10864 ;;
10865 esac
10866 fi
10867 hardcode_libdir_flag_spec='-R$libdir'
10868 hardcode_shlibpath_var=no
10869 case $host_os in
10870 solaris2.[0-5] | solaris2.[0-5].*) ;;
10871 *)
10872 # The compiler driver will combine and reorder linker options,
10873 # but understands '-z linker_flag'. GCC discards it without '$wl',
10874 # but is careful enough not to reorder.
10875 # Supported since Solaris 2.6 (maybe 2.5.1?)
10876 if test yes = "$GCC"; then
10877 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10878 else
10879 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10880 fi
10881 ;;
10882 esac
10883 link_all_deplibs=yes
10884 ;;
10885
10886 sunos4*)
10887 if test sequent = "$host_vendor"; then
10888 # Use $CC to link under sequent, because it throws in some extra .o
10889 # files that make .init and .fini sections work.
10890 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10891 else
10892 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10893 fi
10894 hardcode_libdir_flag_spec='-L$libdir'
10895 hardcode_direct=yes
10896 hardcode_minus_L=yes
10897 hardcode_shlibpath_var=no
10898 ;;
10899
10900 sysv4)
10901 case $host_vendor in
10902 sni)
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_direct=yes # is this really true???
10905 ;;
10906 siemens)
10907 ## LD is ld it makes a PLAMLIB
10908 ## CC just makes a GrossModule.
10909 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10910 reload_cmds='$CC -r -o $output$reload_objs'
10911 hardcode_direct=no
10912 ;;
10913 motorola)
10914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10916 ;;
10917 esac
10918 runpath_var='LD_RUN_PATH'
10919 hardcode_shlibpath_var=no
10920 ;;
10921
10922 sysv4.3*)
10923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10924 hardcode_shlibpath_var=no
10925 export_dynamic_flag_spec='-Bexport'
10926 ;;
10927
10928 sysv4*MP*)
10929 if test -d /usr/nec; then
10930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931 hardcode_shlibpath_var=no
10932 runpath_var=LD_RUN_PATH
10933 hardcode_runpath_var=yes
10934 ld_shlibs=yes
10935 fi
10936 ;;
10937
10938 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10939 no_undefined_flag='$wl-z,text'
10940 archive_cmds_need_lc=no
10941 hardcode_shlibpath_var=no
10942 runpath_var='LD_RUN_PATH'
10943
10944 if test yes = "$GCC"; then
10945 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 else
10948 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 fi
10951 ;;
10952
10953 sysv5* | sco3.2v5* | sco5v6*)
10954 # Note: We CANNOT use -z defs as we might desire, because we do not
10955 # link with -lc, and that would cause any symbols used from libc to
10956 # always be unresolved, which means just about no library would
10957 # ever link correctly. If we're not using GNU ld we use -z text
10958 # though, which does catch some bad symbols but isn't as heavy-handed
10959 # as -z defs.
10960 no_undefined_flag='$wl-z,text'
10961 allow_undefined_flag='$wl-z,nodefs'
10962 archive_cmds_need_lc=no
10963 hardcode_shlibpath_var=no
10964 hardcode_libdir_flag_spec='$wl-R,$libdir'
10965 hardcode_libdir_separator=':'
10966 link_all_deplibs=yes
10967 export_dynamic_flag_spec='$wl-Bexport'
10968 runpath_var='LD_RUN_PATH'
10969
10970 if test yes = "$GCC"; then
10971 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973 else
10974 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10975 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976 fi
10977 ;;
10978
10979 uts4*)
10980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981 hardcode_libdir_flag_spec='-L$libdir'
10982 hardcode_shlibpath_var=no
10983 ;;
10984
10985 *)
10986 ld_shlibs=no
10987 ;;
10988 esac
10989
10990 if test sni = "$host_vendor"; then
10991 case $host in
10992 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10993 export_dynamic_flag_spec='$wl-Blargedynsym'
10994 ;;
10995 esac
10996 fi
10997 fi
10998
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11000 $as_echo "$ld_shlibs" >&6; }
11001 test no = "$ld_shlibs" && can_build_shared=no
11002
11003 with_gnu_ld=$with_gnu_ld
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019 #
11020 # Do we need to explicitly link libc?
11021 #
11022 case "x$archive_cmds_need_lc" in
11023 x|xyes)
11024 # Assume -lc should be added
11025 archive_cmds_need_lc=yes
11026
11027 if test yes,yes = "$GCC,$enable_shared"; then
11028 case $archive_cmds in
11029 *'~'*)
11030 # FIXME: we may have to deal with multi-command sequences.
11031 ;;
11032 '$CC '*)
11033 # Test whether the compiler implicitly links with -lc since on some
11034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11035 # to ld, don't add -lc before -lgcc.
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11037 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11038 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 $RM conftest*
11042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11043
11044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11045 (eval $ac_compile) 2>&5
11046 ac_status=$?
11047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11048 test $ac_status = 0; } 2>conftest.err; then
11049 soname=conftest
11050 lib=conftest
11051 libobjs=conftest.$ac_objext
11052 deplibs=
11053 wl=$lt_prog_compiler_wl
11054 pic_flag=$lt_prog_compiler_pic
11055 compiler_flags=-v
11056 linker_flags=-v
11057 verstring=
11058 output_objdir=.
11059 libname=conftest
11060 lt_save_allow_undefined_flag=$allow_undefined_flag
11061 allow_undefined_flag=
11062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11063 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11064 ac_status=$?
11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; }
11067 then
11068 lt_cv_archive_cmds_need_lc=no
11069 else
11070 lt_cv_archive_cmds_need_lc=yes
11071 fi
11072 allow_undefined_flag=$lt_save_allow_undefined_flag
11073 else
11074 cat conftest.err 1>&5
11075 fi
11076 $RM conftest*
11077
11078 fi
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11080 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11081 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11082 ;;
11083 esac
11084 fi
11085 ;;
11086 esac
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11240 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11241
11242 if test yes = "$GCC"; then
11243 case $host_os in
11244 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11245 *) lt_awk_arg='/^libraries:/' ;;
11246 esac
11247 case $host_os in
11248 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11249 *) lt_sed_strip_eq='s|=/|/|g' ;;
11250 esac
11251 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11252 case $lt_search_path_spec in
11253 *\;*)
11254 # if the path contains ";" then we assume it to be the separator
11255 # otherwise default to the standard path separator (i.e. ":") - it is
11256 # assumed that no part of a normal pathname contains ";" but that should
11257 # okay in the real world where ";" in dirpaths is itself problematic.
11258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11259 ;;
11260 *)
11261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11262 ;;
11263 esac
11264 # Ok, now we have the path, separated by spaces, we can step through it
11265 # and add multilib dir if necessary...
11266 lt_tmp_lt_search_path_spec=
11267 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11268 # ...but if some path component already ends with the multilib dir we assume
11269 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11270 case "$lt_multi_os_dir; $lt_search_path_spec " in
11271 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11272 lt_multi_os_dir=
11273 ;;
11274 esac
11275 for lt_sys_path in $lt_search_path_spec; do
11276 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11277 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11278 elif test -n "$lt_multi_os_dir"; then
11279 test -d "$lt_sys_path" && \
11280 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11281 fi
11282 done
11283 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11284 BEGIN {RS = " "; FS = "/|\n";} {
11285 lt_foo = "";
11286 lt_count = 0;
11287 for (lt_i = NF; lt_i > 0; lt_i--) {
11288 if ($lt_i != "" && $lt_i != ".") {
11289 if ($lt_i == "..") {
11290 lt_count++;
11291 } else {
11292 if (lt_count == 0) {
11293 lt_foo = "/" $lt_i lt_foo;
11294 } else {
11295 lt_count--;
11296 }
11297 }
11298 }
11299 }
11300 if (lt_foo != "") { lt_freq[lt_foo]++; }
11301 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11302 }'`
11303 # AWK program above erroneously prepends '/' to C:/dos/paths
11304 # for these hosts.
11305 case $host_os in
11306 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11307 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11308 esac
11309 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11310 else
11311 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11312 fi
11313 library_names_spec=
11314 libname_spec='lib$name'
11315 soname_spec=
11316 shrext_cmds=.so
11317 postinstall_cmds=
11318 postuninstall_cmds=
11319 finish_cmds=
11320 finish_eval=
11321 shlibpath_var=
11322 shlibpath_overrides_runpath=unknown
11323 version_type=none
11324 dynamic_linker="$host_os ld.so"
11325 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11326 need_lib_prefix=unknown
11327 hardcode_into_libs=no
11328
11329 # when you set need_version to no, make sure it does not cause -set_version
11330 # flags to be left without arguments
11331 need_version=unknown
11332
11333
11334
11335 case $host_os in
11336 aix3*)
11337 version_type=linux # correct to gnu/linux during the next big refactor
11338 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11339 shlibpath_var=LIBPATH
11340
11341 # AIX 3 has no versioning support, so we append a major version to the name.
11342 soname_spec='$libname$release$shared_ext$major'
11343 ;;
11344
11345 aix[4-9]*)
11346 version_type=linux # correct to gnu/linux during the next big refactor
11347 need_lib_prefix=no
11348 need_version=no
11349 hardcode_into_libs=yes
11350 if test ia64 = "$host_cpu"; then
11351 # AIX 5 supports IA64
11352 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 else
11355 # With GCC up to 2.95.x, collect2 would create an import file
11356 # for dependence libraries. The import file would start with
11357 # the line '#! .'. This would cause the generated library to
11358 # depend on '.', always an invalid library. This was fixed in
11359 # development snapshots of GCC prior to 3.0.
11360 case $host_os in
11361 aix4 | aix4.[01] | aix4.[01].*)
11362 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11363 echo ' yes '
11364 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11365 :
11366 else
11367 can_build_shared=no
11368 fi
11369 ;;
11370 esac
11371 # Using Import Files as archive members, it is possible to support
11372 # filename-based versioning of shared library archives on AIX. While
11373 # this would work for both with and without runtime linking, it will
11374 # prevent static linking of such archives. So we do filename-based
11375 # shared library versioning with .so extension only, which is used
11376 # when both runtime linking and shared linking is enabled.
11377 # Unfortunately, runtime linking may impact performance, so we do
11378 # not want this to be the default eventually. Also, we use the
11379 # versioned .so libs for executables only if there is the -brtl
11380 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11381 # To allow for filename-based versioning support, we need to create
11382 # libNAME.so.V as an archive file, containing:
11383 # *) an Import File, referring to the versioned filename of the
11384 # archive as well as the shared archive member, telling the
11385 # bitwidth (32 or 64) of that shared object, and providing the
11386 # list of exported symbols of that shared object, eventually
11387 # decorated with the 'weak' keyword
11388 # *) the shared object with the F_LOADONLY flag set, to really avoid
11389 # it being seen by the linker.
11390 # At run time we better use the real file rather than another symlink,
11391 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11392
11393 case $with_aix_soname,$aix_use_runtimelinking in
11394 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11395 # soname into executable. Probably we can add versioning support to
11396 # collect2, so additional links can be useful in future.
11397 aix,yes) # traditional libtool
11398 dynamic_linker='AIX unversionable lib.so'
11399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11400 # instead of lib<name>.a to let people know that these are not
11401 # typical AIX shared libraries.
11402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11403 ;;
11404 aix,no) # traditional AIX only
11405 dynamic_linker='AIX lib.a(lib.so.V)'
11406 # We preserve .a as extension for shared libraries through AIX4.2
11407 # and later when we are not doing run time linking.
11408 library_names_spec='$libname$release.a $libname.a'
11409 soname_spec='$libname$release$shared_ext$major'
11410 ;;
11411 svr4,*) # full svr4 only
11412 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11413 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11414 # We do not specify a path in Import Files, so LIBPATH fires.
11415 shlibpath_overrides_runpath=yes
11416 ;;
11417 *,yes) # both, prefer svr4
11418 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11419 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11420 # unpreferred sharedlib libNAME.a needs extra handling
11421 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11422 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11423 # We do not specify a path in Import Files, so LIBPATH fires.
11424 shlibpath_overrides_runpath=yes
11425 ;;
11426 *,no) # both, prefer aix
11427 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11428 library_names_spec='$libname$release.a $libname.a'
11429 soname_spec='$libname$release$shared_ext$major'
11430 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11431 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11432 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11433 ;;
11434 esac
11435 shlibpath_var=LIBPATH
11436 fi
11437 ;;
11438
11439 amigaos*)
11440 case $host_cpu in
11441 powerpc)
11442 # Since July 2007 AmigaOS4 officially supports .so libraries.
11443 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11445 ;;
11446 m68k)
11447 library_names_spec='$libname.ixlibrary $libname.a'
11448 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11449 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11450 ;;
11451 esac
11452 ;;
11453
11454 beos*)
11455 library_names_spec='$libname$shared_ext'
11456 dynamic_linker="$host_os ld.so"
11457 shlibpath_var=LIBRARY_PATH
11458 ;;
11459
11460 bsdi[45]*)
11461 version_type=linux # correct to gnu/linux during the next big refactor
11462 need_version=no
11463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11464 soname_spec='$libname$release$shared_ext$major'
11465 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11466 shlibpath_var=LD_LIBRARY_PATH
11467 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11468 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11469 # the default ld.so.conf also contains /usr/contrib/lib and
11470 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11471 # libtool to hard-code these into programs
11472 ;;
11473
11474 cygwin* | mingw* | pw32* | cegcc*)
11475 version_type=windows
11476 shrext_cmds=.dll
11477 need_version=no
11478 need_lib_prefix=no
11479
11480 case $GCC,$cc_basename in
11481 yes,*)
11482 # gcc
11483 library_names_spec='$libname.dll.a'
11484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11485 postinstall_cmds='base_file=`basename \$file`~
11486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11487 dldir=$destdir/`dirname \$dlpath`~
11488 test -d \$dldir || mkdir -p \$dldir~
11489 $install_prog $dir/$dlname \$dldir/$dlname~
11490 chmod a+x \$dldir/$dlname~
11491 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11492 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11493 fi'
11494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11495 dlpath=$dir/\$dldll~
11496 $RM \$dlpath'
11497 shlibpath_overrides_runpath=yes
11498
11499 case $host_os in
11500 cygwin*)
11501 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11502 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11503
11504 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11505 ;;
11506 mingw* | cegcc*)
11507 # MinGW DLLs use traditional 'lib' prefix
11508 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11509 ;;
11510 pw32*)
11511 # pw32 DLLs use 'pw' prefix rather than 'lib'
11512 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11513 ;;
11514 esac
11515 dynamic_linker='Win32 ld.exe'
11516 ;;
11517
11518 *,cl*)
11519 # Native MSVC
11520 libname_spec='$name'
11521 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11522 library_names_spec='$libname.dll.lib'
11523
11524 case $build_os in
11525 mingw*)
11526 sys_lib_search_path_spec=
11527 lt_save_ifs=$IFS
11528 IFS=';'
11529 for lt_path in $LIB
11530 do
11531 IFS=$lt_save_ifs
11532 # Let DOS variable expansion print the short 8.3 style file name.
11533 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11534 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11535 done
11536 IFS=$lt_save_ifs
11537 # Convert to MSYS style.
11538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11539 ;;
11540 cygwin*)
11541 # Convert to unix form, then to dos form, then back to unix form
11542 # but this time dos style (no spaces!) so that the unix form looks
11543 # like /cygdrive/c/PROGRA~1:/cygdr...
11544 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11545 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11546 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11547 ;;
11548 *)
11549 sys_lib_search_path_spec=$LIB
11550 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11551 # It is most probably a Windows format PATH.
11552 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11553 else
11554 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11555 fi
11556 # FIXME: find the short name or the path components, as spaces are
11557 # common. (e.g. "Program Files" -> "PROGRA~1")
11558 ;;
11559 esac
11560
11561 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11562 postinstall_cmds='base_file=`basename \$file`~
11563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11564 dldir=$destdir/`dirname \$dlpath`~
11565 test -d \$dldir || mkdir -p \$dldir~
11566 $install_prog $dir/$dlname \$dldir/$dlname'
11567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11568 dlpath=$dir/\$dldll~
11569 $RM \$dlpath'
11570 shlibpath_overrides_runpath=yes
11571 dynamic_linker='Win32 link.exe'
11572 ;;
11573
11574 *)
11575 # Assume MSVC wrapper
11576 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11577 dynamic_linker='Win32 ld.exe'
11578 ;;
11579 esac
11580 # FIXME: first we should search . and the directory the executable is in
11581 shlibpath_var=PATH
11582 ;;
11583
11584 darwin* | rhapsody*)
11585 dynamic_linker="$host_os dyld"
11586 version_type=darwin
11587 need_lib_prefix=no
11588 need_version=no
11589 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11590 soname_spec='$libname$release$major$shared_ext'
11591 shlibpath_overrides_runpath=yes
11592 shlibpath_var=DYLD_LIBRARY_PATH
11593 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11594
11595 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11596 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11597 ;;
11598
11599 dgux*)
11600 version_type=linux # correct to gnu/linux during the next big refactor
11601 need_lib_prefix=no
11602 need_version=no
11603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11604 soname_spec='$libname$release$shared_ext$major'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 ;;
11607
11608 freebsd* | dragonfly*)
11609 # DragonFly does not have aout. When/if they implement a new
11610 # versioning mechanism, adjust this.
11611 if test -x /usr/bin/objformat; then
11612 objformat=`/usr/bin/objformat`
11613 else
11614 case $host_os in
11615 freebsd[23].*) objformat=aout ;;
11616 *) objformat=elf ;;
11617 esac
11618 fi
11619 version_type=freebsd-$objformat
11620 case $version_type in
11621 freebsd-elf*)
11622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623 soname_spec='$libname$release$shared_ext$major'
11624 need_version=no
11625 need_lib_prefix=no
11626 ;;
11627 freebsd-*)
11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11629 need_version=yes
11630 ;;
11631 esac
11632 shlibpath_var=LD_LIBRARY_PATH
11633 case $host_os in
11634 freebsd2.*)
11635 shlibpath_overrides_runpath=yes
11636 ;;
11637 freebsd3.[01]* | freebsdelf3.[01]*)
11638 shlibpath_overrides_runpath=yes
11639 hardcode_into_libs=yes
11640 ;;
11641 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11642 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11643 shlibpath_overrides_runpath=no
11644 hardcode_into_libs=yes
11645 ;;
11646 *) # from 4.6 on, and DragonFly
11647 shlibpath_overrides_runpath=yes
11648 hardcode_into_libs=yes
11649 ;;
11650 esac
11651 ;;
11652
11653 haiku*)
11654 version_type=linux # correct to gnu/linux during the next big refactor
11655 need_lib_prefix=no
11656 need_version=no
11657 dynamic_linker="$host_os runtime_loader"
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659 soname_spec='$libname$release$shared_ext$major'
11660 shlibpath_var=LIBRARY_PATH
11661 shlibpath_overrides_runpath=no
11662 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11663 hardcode_into_libs=yes
11664 ;;
11665
11666 hpux9* | hpux10* | hpux11*)
11667 # Give a soname corresponding to the major version so that dld.sl refuses to
11668 # link against other versions.
11669 version_type=sunos
11670 need_lib_prefix=no
11671 need_version=no
11672 case $host_cpu in
11673 ia64*)
11674 shrext_cmds='.so'
11675 hardcode_into_libs=yes
11676 dynamic_linker="$host_os dld.so"
11677 shlibpath_var=LD_LIBRARY_PATH
11678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11680 soname_spec='$libname$release$shared_ext$major'
11681 if test 32 = "$HPUX_IA64_MODE"; then
11682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11683 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11684 else
11685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11686 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11687 fi
11688 ;;
11689 hppa*64*)
11690 shrext_cmds='.sl'
11691 hardcode_into_libs=yes
11692 dynamic_linker="$host_os dld.sl"
11693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696 soname_spec='$libname$release$shared_ext$major'
11697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11699 ;;
11700 *)
11701 shrext_cmds='.sl'
11702 dynamic_linker="$host_os dld.sl"
11703 shlibpath_var=SHLIB_PATH
11704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706 soname_spec='$libname$release$shared_ext$major'
11707 ;;
11708 esac
11709 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11710 postinstall_cmds='chmod 555 $lib'
11711 # or fails outright, so override atomically:
11712 install_override_mode=555
11713 ;;
11714
11715 interix[3-9]*)
11716 version_type=linux # correct to gnu/linux during the next big refactor
11717 need_lib_prefix=no
11718 need_version=no
11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11720 soname_spec='$libname$release$shared_ext$major'
11721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=no
11724 hardcode_into_libs=yes
11725 ;;
11726
11727 irix5* | irix6* | nonstopux*)
11728 case $host_os in
11729 nonstopux*) version_type=nonstopux ;;
11730 *)
11731 if test yes = "$lt_cv_prog_gnu_ld"; then
11732 version_type=linux # correct to gnu/linux during the next big refactor
11733 else
11734 version_type=irix
11735 fi ;;
11736 esac
11737 need_lib_prefix=no
11738 need_version=no
11739 soname_spec='$libname$release$shared_ext$major'
11740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11741 case $host_os in
11742 irix5* | nonstopux*)
11743 libsuff= shlibsuff=
11744 ;;
11745 *)
11746 case $LD in # libtool.m4 will add one of these switches to LD
11747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11748 libsuff= shlibsuff= libmagic=32-bit;;
11749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11750 libsuff=32 shlibsuff=N32 libmagic=N32;;
11751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11753 *) libsuff= shlibsuff= libmagic=never-match;;
11754 esac
11755 ;;
11756 esac
11757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11758 shlibpath_overrides_runpath=no
11759 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11760 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11761 hardcode_into_libs=yes
11762 ;;
11763
11764 # No shared lib support for Linux oldld, aout, or coff.
11765 linux*oldld* | linux*aout* | linux*coff*)
11766 dynamic_linker=no
11767 ;;
11768
11769 linux*android*)
11770 version_type=none # Android doesn't support versioned libraries.
11771 need_lib_prefix=no
11772 need_version=no
11773 library_names_spec='$libname$release$shared_ext'
11774 soname_spec='$libname$release$shared_ext'
11775 finish_cmds=
11776 shlibpath_var=LD_LIBRARY_PATH
11777 shlibpath_overrides_runpath=yes
11778
11779 # This implies no fast_install, which is unacceptable.
11780 # Some rework will be needed to allow for fast_install
11781 # before this can be enabled.
11782 hardcode_into_libs=yes
11783
11784 dynamic_linker='Android linker'
11785 # Don't embed -rpath directories since the linker doesn't support them.
11786 hardcode_libdir_flag_spec='-L$libdir'
11787 ;;
11788
11789 # This must be glibc/ELF.
11790 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11791 version_type=linux # correct to gnu/linux during the next big refactor
11792 need_lib_prefix=no
11793 need_version=no
11794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11795 soname_spec='$libname$release$shared_ext$major'
11796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=no
11799
11800 # Some binutils ld are patched to set DT_RUNPATH
11801 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11802 $as_echo_n "(cached) " >&6
11803 else
11804 lt_cv_shlibpath_overrides_runpath=no
11805 save_LDFLAGS=$LDFLAGS
11806 save_libdir=$libdir
11807 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11808 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811
11812 int
11813 main ()
11814 {
11815
11816 ;
11817 return 0;
11818 }
11819 _ACEOF
11820 if ac_fn_c_try_link "$LINENO"; then :
11821 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11822 lt_cv_shlibpath_overrides_runpath=yes
11823 fi
11824 fi
11825 rm -f core conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11827 LDFLAGS=$save_LDFLAGS
11828 libdir=$save_libdir
11829
11830 fi
11831
11832 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11833
11834 # This implies no fast_install, which is unacceptable.
11835 # Some rework will be needed to allow for fast_install
11836 # before this can be enabled.
11837 hardcode_into_libs=yes
11838
11839 # Add ABI-specific directories to the system library path.
11840 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11841
11842 # Ideally, we could use ldconfig to report *all* directores which are
11843 # searched for libraries, however this is still not possible. Aside from not
11844 # being certain /sbin/ldconfig is available, command
11845 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11846 # even though it is searched at run-time. Try to do the best guess by
11847 # appending ld.so.conf contents (and includes) to the search path.
11848 if test -f /etc/ld.so.conf; then
11849 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' ' '`
11850 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11851 fi
11852
11853 # We used to test for /lib/ld.so.1 and disable shared libraries on
11854 # powerpc, because MkLinux only supported shared libraries with the
11855 # GNU dynamic linker. Since this was broken with cross compilers,
11856 # most powerpc-linux boxes support dynamic linking these days and
11857 # people can always --disable-shared, the test was removed, and we
11858 # assume the GNU/Linux dynamic linker is in use.
11859 dynamic_linker='GNU/Linux ld.so'
11860 ;;
11861
11862 netbsd*)
11863 version_type=sunos
11864 need_lib_prefix=no
11865 need_version=no
11866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11867 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11869 dynamic_linker='NetBSD (a.out) ld.so'
11870 else
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
11873 dynamic_linker='NetBSD ld.elf_so'
11874 fi
11875 shlibpath_var=LD_LIBRARY_PATH
11876 shlibpath_overrides_runpath=yes
11877 hardcode_into_libs=yes
11878 ;;
11879
11880 newsos6)
11881 version_type=linux # correct to gnu/linux during the next big refactor
11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=yes
11885 ;;
11886
11887 *nto* | *qnx*)
11888 version_type=qnx
11889 need_lib_prefix=no
11890 need_version=no
11891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11892 soname_spec='$libname$release$shared_ext$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=no
11895 hardcode_into_libs=yes
11896 dynamic_linker='ldqnx.so'
11897 ;;
11898
11899 openbsd* | bitrig*)
11900 version_type=sunos
11901 sys_lib_dlsearch_path_spec=/usr/lib
11902 need_lib_prefix=no
11903 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11904 need_version=no
11905 else
11906 need_version=yes
11907 fi
11908 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 ;;
11913
11914 os2*)
11915 libname_spec='$name'
11916 version_type=windows
11917 shrext_cmds=.dll
11918 need_version=no
11919 need_lib_prefix=no
11920 # OS/2 can only load a DLL with a base name of 8 characters or less.
11921 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11922 v=$($ECHO $release$versuffix | tr -d .-);
11923 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11924 $ECHO $n$v`$shared_ext'
11925 library_names_spec='${libname}_dll.$libext'
11926 dynamic_linker='OS/2 ld.exe'
11927 shlibpath_var=BEGINLIBPATH
11928 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11930 postinstall_cmds='base_file=`basename \$file`~
11931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11932 dldir=$destdir/`dirname \$dlpath`~
11933 test -d \$dldir || mkdir -p \$dldir~
11934 $install_prog $dir/$dlname \$dldir/$dlname~
11935 chmod a+x \$dldir/$dlname~
11936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11937 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11938 fi'
11939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11940 dlpath=$dir/\$dldll~
11941 $RM \$dlpath'
11942 ;;
11943
11944 osf3* | osf4* | osf5*)
11945 version_type=osf
11946 need_lib_prefix=no
11947 need_version=no
11948 soname_spec='$libname$release$shared_ext$major'
11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11953 ;;
11954
11955 rdos*)
11956 dynamic_linker=no
11957 ;;
11958
11959 solaris*)
11960 version_type=linux # correct to gnu/linux during the next big refactor
11961 need_lib_prefix=no
11962 need_version=no
11963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11964 soname_spec='$libname$release$shared_ext$major'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=yes
11967 hardcode_into_libs=yes
11968 # ldd complains unless libraries are executable
11969 postinstall_cmds='chmod +x $lib'
11970 ;;
11971
11972 sunos4*)
11973 version_type=sunos
11974 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11975 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11976 shlibpath_var=LD_LIBRARY_PATH
11977 shlibpath_overrides_runpath=yes
11978 if test yes = "$with_gnu_ld"; then
11979 need_lib_prefix=no
11980 fi
11981 need_version=yes
11982 ;;
11983
11984 sysv4 | sysv4.3*)
11985 version_type=linux # correct to gnu/linux during the next big refactor
11986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11987 soname_spec='$libname$release$shared_ext$major'
11988 shlibpath_var=LD_LIBRARY_PATH
11989 case $host_vendor in
11990 sni)
11991 shlibpath_overrides_runpath=no
11992 need_lib_prefix=no
11993 runpath_var=LD_RUN_PATH
11994 ;;
11995 siemens)
11996 need_lib_prefix=no
11997 ;;
11998 motorola)
11999 need_lib_prefix=no
12000 need_version=no
12001 shlibpath_overrides_runpath=no
12002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12003 ;;
12004 esac
12005 ;;
12006
12007 sysv4*MP*)
12008 if test -d /usr/nec; then
12009 version_type=linux # correct to gnu/linux during the next big refactor
12010 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12011 soname_spec='$libname$shared_ext.$major'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 fi
12014 ;;
12015
12016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12017 version_type=sco
12018 need_lib_prefix=no
12019 need_version=no
12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12021 soname_spec='$libname$release$shared_ext$major'
12022 shlibpath_var=LD_LIBRARY_PATH
12023 shlibpath_overrides_runpath=yes
12024 hardcode_into_libs=yes
12025 if test yes = "$with_gnu_ld"; then
12026 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12027 else
12028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12029 case $host_os in
12030 sco3.2v5*)
12031 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12032 ;;
12033 esac
12034 fi
12035 sys_lib_dlsearch_path_spec='/usr/lib'
12036 ;;
12037
12038 tpf*)
12039 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12040 version_type=linux # correct to gnu/linux during the next big refactor
12041 need_lib_prefix=no
12042 need_version=no
12043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12044 shlibpath_var=LD_LIBRARY_PATH
12045 shlibpath_overrides_runpath=no
12046 hardcode_into_libs=yes
12047 ;;
12048
12049 uts4*)
12050 version_type=linux # correct to gnu/linux during the next big refactor
12051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12052 soname_spec='$libname$release$shared_ext$major'
12053 shlibpath_var=LD_LIBRARY_PATH
12054 ;;
12055
12056 *)
12057 dynamic_linker=no
12058 ;;
12059 esac
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12061 $as_echo "$dynamic_linker" >&6; }
12062 test no = "$dynamic_linker" && can_build_shared=no
12063
12064 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12065 if test yes = "$GCC"; then
12066 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12067 fi
12068
12069 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12070 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12071 fi
12072
12073 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12074 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12075 fi
12076
12077 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12078 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12079
12080 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12081 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12082
12083 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12084 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12183 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12184 hardcode_action=
12185 if test -n "$hardcode_libdir_flag_spec" ||
12186 test -n "$runpath_var" ||
12187 test yes = "$hardcode_automatic"; then
12188
12189 # We can hardcode non-existent directories.
12190 if test no != "$hardcode_direct" &&
12191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12192 # have to relink, otherwise we might link with an installed library
12193 # when we should be linking with a yet-to-be-installed one
12194 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12195 test no != "$hardcode_minus_L"; then
12196 # Linking always hardcodes the temporary library directory.
12197 hardcode_action=relink
12198 else
12199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12200 hardcode_action=immediate
12201 fi
12202 else
12203 # We cannot hardcode anything, or else we can only hardcode existing
12204 # directories.
12205 hardcode_action=unsupported
12206 fi
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12208 $as_echo "$hardcode_action" >&6; }
12209
12210 if test relink = "$hardcode_action" ||
12211 test yes = "$inherit_rpath"; then
12212 # Fast installation is not supported
12213 enable_fast_install=no
12214 elif test yes = "$shlibpath_overrides_runpath" ||
12215 test no = "$enable_shared"; then
12216 # Fast installation is not necessary
12217 enable_fast_install=needless
12218 fi
12219
12220
12221
12222
12223
12224
12225 if test yes != "$enable_dlopen"; then
12226 enable_dlopen=unknown
12227 enable_dlopen_self=unknown
12228 enable_dlopen_self_static=unknown
12229 else
12230 lt_cv_dlopen=no
12231 lt_cv_dlopen_libs=
12232
12233 case $host_os in
12234 beos*)
12235 lt_cv_dlopen=load_add_on
12236 lt_cv_dlopen_libs=
12237 lt_cv_dlopen_self=yes
12238 ;;
12239
12240 mingw* | pw32* | cegcc*)
12241 lt_cv_dlopen=LoadLibrary
12242 lt_cv_dlopen_libs=
12243 ;;
12244
12245 cygwin*)
12246 lt_cv_dlopen=dlopen
12247 lt_cv_dlopen_libs=
12248 ;;
12249
12250 darwin*)
12251 # if libdl is installed we need to link against it
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12253 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12254 if ${ac_cv_lib_dl_dlopen+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-ldl $LIBS"
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261
12262 /* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 char dlopen ();
12269 int
12270 main ()
12271 {
12272 return dlopen ();
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 if ac_fn_c_try_link "$LINENO"; then :
12278 ac_cv_lib_dl_dlopen=yes
12279 else
12280 ac_cv_lib_dl_dlopen=no
12281 fi
12282 rm -f core conftest.err conftest.$ac_objext \
12283 conftest$ac_exeext conftest.$ac_ext
12284 LIBS=$ac_check_lib_save_LIBS
12285 fi
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12287 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12288 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12289 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12290 else
12291
12292 lt_cv_dlopen=dyld
12293 lt_cv_dlopen_libs=
12294 lt_cv_dlopen_self=yes
12295
12296 fi
12297
12298 ;;
12299
12300 tpf*)
12301 # Don't try to run any link tests for TPF. We know it's impossible
12302 # because TPF is a cross-compiler, and we know how we open DSOs.
12303 lt_cv_dlopen=dlopen
12304 lt_cv_dlopen_libs=
12305 lt_cv_dlopen_self=no
12306 ;;
12307
12308 *)
12309 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12310 if test "x$ac_cv_func_shl_load" = xyes; then :
12311 lt_cv_dlopen=shl_load
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12314 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12315 if ${ac_cv_lib_dld_shl_load+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-ldld $LIBS"
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12322
12323 /* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 char shl_load ();
12330 int
12331 main ()
12332 {
12333 return shl_load ();
12334 ;
12335 return 0;
12336 }
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_lib_dld_shl_load=yes
12340 else
12341 ac_cv_lib_dld_shl_load=no
12342 fi
12343 rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345 LIBS=$ac_check_lib_save_LIBS
12346 fi
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12348 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12349 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12350 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12351 else
12352 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12353 if test "x$ac_cv_func_dlopen" = xyes; then :
12354 lt_cv_dlopen=dlopen
12355 else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12357 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12358 if ${ac_cv_lib_dl_dlopen+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-ldl $LIBS"
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12365
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12369 #ifdef __cplusplus
12370 extern "C"
12371 #endif
12372 char dlopen ();
12373 int
12374 main ()
12375 {
12376 return dlopen ();
12377 ;
12378 return 0;
12379 }
12380 _ACEOF
12381 if ac_fn_c_try_link "$LINENO"; then :
12382 ac_cv_lib_dl_dlopen=yes
12383 else
12384 ac_cv_lib_dl_dlopen=no
12385 fi
12386 rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12389 fi
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12391 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12392 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12393 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12394 else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12396 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12397 if ${ac_cv_lib_svld_dlopen+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 ac_check_lib_save_LIBS=$LIBS
12401 LIBS="-lsvld $LIBS"
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char dlopen ();
12412 int
12413 main ()
12414 {
12415 return dlopen ();
12416 ;
12417 return 0;
12418 }
12419 _ACEOF
12420 if ac_fn_c_try_link "$LINENO"; then :
12421 ac_cv_lib_svld_dlopen=yes
12422 else
12423 ac_cv_lib_svld_dlopen=no
12424 fi
12425 rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12427 LIBS=$ac_check_lib_save_LIBS
12428 fi
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12430 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12431 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12432 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12435 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12436 if ${ac_cv_lib_dld_dld_link+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 ac_check_lib_save_LIBS=$LIBS
12440 LIBS="-ldld $LIBS"
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443
12444 /* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
12447 #ifdef __cplusplus
12448 extern "C"
12449 #endif
12450 char dld_link ();
12451 int
12452 main ()
12453 {
12454 return dld_link ();
12455 ;
12456 return 0;
12457 }
12458 _ACEOF
12459 if ac_fn_c_try_link "$LINENO"; then :
12460 ac_cv_lib_dld_dld_link=yes
12461 else
12462 ac_cv_lib_dld_dld_link=no
12463 fi
12464 rm -f core conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12466 LIBS=$ac_check_lib_save_LIBS
12467 fi
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12469 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12470 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12471 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12472 fi
12473
12474
12475 fi
12476
12477
12478 fi
12479
12480
12481 fi
12482
12483
12484 fi
12485
12486
12487 fi
12488
12489 ;;
12490 esac
12491
12492 if test no = "$lt_cv_dlopen"; then
12493 enable_dlopen=no
12494 else
12495 enable_dlopen=yes
12496 fi
12497
12498 case $lt_cv_dlopen in
12499 dlopen)
12500 save_CPPFLAGS=$CPPFLAGS
12501 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12502
12503 save_LDFLAGS=$LDFLAGS
12504 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12505
12506 save_LIBS=$LIBS
12507 LIBS="$lt_cv_dlopen_libs $LIBS"
12508
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12510 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12511 if ${lt_cv_dlopen_self+:} false; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 if test yes = "$cross_compiling"; then :
12515 lt_cv_dlopen_self=cross
12516 else
12517 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12518 lt_status=$lt_dlunknown
12519 cat > conftest.$ac_ext <<_LT_EOF
12520 #line $LINENO "configure"
12521 #include "confdefs.h"
12522
12523 #if HAVE_DLFCN_H
12524 #include <dlfcn.h>
12525 #endif
12526
12527 #include <stdio.h>
12528
12529 #ifdef RTLD_GLOBAL
12530 # define LT_DLGLOBAL RTLD_GLOBAL
12531 #else
12532 # ifdef DL_GLOBAL
12533 # define LT_DLGLOBAL DL_GLOBAL
12534 # else
12535 # define LT_DLGLOBAL 0
12536 # endif
12537 #endif
12538
12539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12540 find out it does not work in some platform. */
12541 #ifndef LT_DLLAZY_OR_NOW
12542 # ifdef RTLD_LAZY
12543 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12544 # else
12545 # ifdef DL_LAZY
12546 # define LT_DLLAZY_OR_NOW DL_LAZY
12547 # else
12548 # ifdef RTLD_NOW
12549 # define LT_DLLAZY_OR_NOW RTLD_NOW
12550 # else
12551 # ifdef DL_NOW
12552 # define LT_DLLAZY_OR_NOW DL_NOW
12553 # else
12554 # define LT_DLLAZY_OR_NOW 0
12555 # endif
12556 # endif
12557 # endif
12558 # endif
12559 #endif
12560
12561 /* When -fvisibility=hidden is used, assume the code has been annotated
12562 correspondingly for the symbols needed. */
12563 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12564 int fnord () __attribute__((visibility("default")));
12565 #endif
12566
12567 int fnord () { return 42; }
12568 int main ()
12569 {
12570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12571 int status = $lt_dlunknown;
12572
12573 if (self)
12574 {
12575 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12576 else
12577 {
12578 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12579 else puts (dlerror ());
12580 }
12581 /* dlclose (self); */
12582 }
12583 else
12584 puts (dlerror ());
12585
12586 return status;
12587 }
12588 _LT_EOF
12589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12590 (eval $ac_link) 2>&5
12591 ac_status=$?
12592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12593 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12594 (./conftest; exit; ) >&5 2>/dev/null
12595 lt_status=$?
12596 case x$lt_status in
12597 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12598 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12599 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12600 esac
12601 else :
12602 # compilation failed
12603 lt_cv_dlopen_self=no
12604 fi
12605 fi
12606 rm -fr conftest*
12607
12608
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12611 $as_echo "$lt_cv_dlopen_self" >&6; }
12612
12613 if test yes = "$lt_cv_dlopen_self"; then
12614 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12616 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12617 if ${lt_cv_dlopen_self_static+:} false; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 if test yes = "$cross_compiling"; then :
12621 lt_cv_dlopen_self_static=cross
12622 else
12623 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12624 lt_status=$lt_dlunknown
12625 cat > conftest.$ac_ext <<_LT_EOF
12626 #line $LINENO "configure"
12627 #include "confdefs.h"
12628
12629 #if HAVE_DLFCN_H
12630 #include <dlfcn.h>
12631 #endif
12632
12633 #include <stdio.h>
12634
12635 #ifdef RTLD_GLOBAL
12636 # define LT_DLGLOBAL RTLD_GLOBAL
12637 #else
12638 # ifdef DL_GLOBAL
12639 # define LT_DLGLOBAL DL_GLOBAL
12640 # else
12641 # define LT_DLGLOBAL 0
12642 # endif
12643 #endif
12644
12645 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12646 find out it does not work in some platform. */
12647 #ifndef LT_DLLAZY_OR_NOW
12648 # ifdef RTLD_LAZY
12649 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12650 # else
12651 # ifdef DL_LAZY
12652 # define LT_DLLAZY_OR_NOW DL_LAZY
12653 # else
12654 # ifdef RTLD_NOW
12655 # define LT_DLLAZY_OR_NOW RTLD_NOW
12656 # else
12657 # ifdef DL_NOW
12658 # define LT_DLLAZY_OR_NOW DL_NOW
12659 # else
12660 # define LT_DLLAZY_OR_NOW 0
12661 # endif
12662 # endif
12663 # endif
12664 # endif
12665 #endif
12666
12667 /* When -fvisibility=hidden is used, assume the code has been annotated
12668 correspondingly for the symbols needed. */
12669 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12670 int fnord () __attribute__((visibility("default")));
12671 #endif
12672
12673 int fnord () { return 42; }
12674 int main ()
12675 {
12676 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12677 int status = $lt_dlunknown;
12678
12679 if (self)
12680 {
12681 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12682 else
12683 {
12684 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12685 else puts (dlerror ());
12686 }
12687 /* dlclose (self); */
12688 }
12689 else
12690 puts (dlerror ());
12691
12692 return status;
12693 }
12694 _LT_EOF
12695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12696 (eval $ac_link) 2>&5
12697 ac_status=$?
12698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12700 (./conftest; exit; ) >&5 2>/dev/null
12701 lt_status=$?
12702 case x$lt_status in
12703 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12704 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12705 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12706 esac
12707 else :
12708 # compilation failed
12709 lt_cv_dlopen_self_static=no
12710 fi
12711 fi
12712 rm -fr conftest*
12713
12714
12715 fi
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12717 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12718 fi
12719
12720 CPPFLAGS=$save_CPPFLAGS
12721 LDFLAGS=$save_LDFLAGS
12722 LIBS=$save_LIBS
12723 ;;
12724 esac
12725
12726 case $lt_cv_dlopen_self in
12727 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12728 *) enable_dlopen_self=unknown ;;
12729 esac
12730
12731 case $lt_cv_dlopen_self_static in
12732 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12733 *) enable_dlopen_self_static=unknown ;;
12734 esac
12735 fi
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753 striplib=
12754 old_striplib=
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12756 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12757 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12758 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12759 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12761 $as_echo "yes" >&6; }
12762 else
12763 # FIXME - insert some real tests, host_os isn't really good enough
12764 case $host_os in
12765 darwin*)
12766 if test -n "$STRIP"; then
12767 striplib="$STRIP -x"
12768 old_striplib="$STRIP -S"
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12770 $as_echo "yes" >&6; }
12771 else
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773 $as_echo "no" >&6; }
12774 fi
12775 ;;
12776 *)
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12779 ;;
12780 esac
12781 fi
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794 # Report what library types will actually be built
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12796 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12798 $as_echo "$can_build_shared" >&6; }
12799
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12801 $as_echo_n "checking whether to build shared libraries... " >&6; }
12802 test no = "$can_build_shared" && enable_shared=no
12803
12804 # On AIX, shared libraries and static libraries use the same namespace, and
12805 # are all built from PIC.
12806 case $host_os in
12807 aix3*)
12808 test yes = "$enable_shared" && enable_static=no
12809 if test -n "$RANLIB"; then
12810 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12811 postinstall_cmds='$RANLIB $lib'
12812 fi
12813 ;;
12814
12815 aix[4-9]*)
12816 if test ia64 != "$host_cpu"; then
12817 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12818 yes,aix,yes) ;; # shared object as lib.so file only
12819 yes,svr4,*) ;; # shared object as lib.so archive member only
12820 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12821 esac
12822 fi
12823 ;;
12824 esac
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12826 $as_echo "$enable_shared" >&6; }
12827
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12829 $as_echo_n "checking whether to build static libraries... " >&6; }
12830 # Make sure either enable_shared or enable_static is yes.
12831 test yes = "$enable_shared" || enable_static=yes
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12833 $as_echo "$enable_static" >&6; }
12834
12835
12836
12837
12838 fi
12839 ac_ext=c
12840 ac_cpp='$CPP $CPPFLAGS'
12841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12844
12845 CC=$lt_save_CC
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861 ac_config_commands="$ac_config_commands libtool"
12862
12863
12864
12865
12866 # Only expand once:
12867
12868
12869
12870 if test "$PS" = "ps"
12871 then
12872 as_fn_error $? "Cannot find pathname to ps" "$LINENO" 5
12873 fi
12874
12875 if test x$GXX = xyes
12876 then
12877 CFLAGS="-Wall $CFLAGS"
12878 fi
12879
12880 CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
12881
12882
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12884 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12885 if ${ac_cv_header_sys_wait_h+:} false; then :
12886 $as_echo_n "(cached) " >&6
12887 else
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890 #include <sys/types.h>
12891 #include <sys/wait.h>
12892 #ifndef WEXITSTATUS
12893 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12894 #endif
12895 #ifndef WIFEXITED
12896 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12897 #endif
12898
12899 int
12900 main ()
12901 {
12902 int s;
12903 wait (&s);
12904 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12905 ;
12906 return 0;
12907 }
12908 _ACEOF
12909 if ac_fn_c_try_compile "$LINENO"; then :
12910 ac_cv_header_sys_wait_h=yes
12911 else
12912 ac_cv_header_sys_wait_h=no
12913 fi
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915 fi
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12917 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12918 if test $ac_cv_header_sys_wait_h = yes; then
12919
12920 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12921
12922 fi
12923
12924 for ac_header in unistd.h fcntl.h
12925 do :
12926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12927 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12928 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12929 cat >>confdefs.h <<_ACEOF
12930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12931 _ACEOF
12932
12933 fi
12934
12935 done
12936
12937
12938 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12939 if test "x$ac_cv_type_pid_t" = xyes; then :
12940
12941 else
12942
12943 cat >>confdefs.h <<_ACEOF
12944 #define pid_t int
12945 _ACEOF
12946
12947 fi
12948
12949 # Check whether --enable-largefile was given.
12950 if test "${enable_largefile+set}" = set; then :
12951 enableval=$enable_largefile;
12952 fi
12953
12954 if test "$enable_largefile" != no; then
12955
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12957 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12958 if ${ac_cv_sys_largefile_CC+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 ac_cv_sys_largefile_CC=no
12962 if test "$GCC" != yes; then
12963 ac_save_CC=$CC
12964 while :; do
12965 # IRIX 6.2 and later do not support large files by default,
12966 # so use the C compiler's -n32 option if that helps.
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969 #include <sys/types.h>
12970 /* Check that off_t can represent 2**63 - 1 correctly.
12971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12972 since some C++ compilers masquerading as C compilers
12973 incorrectly reject 9223372036854775807. */
12974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12976 && LARGE_OFF_T % 2147483647 == 1)
12977 ? 1 : -1];
12978 int
12979 main ()
12980 {
12981
12982 ;
12983 return 0;
12984 }
12985 _ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 break
12988 fi
12989 rm -f core conftest.err conftest.$ac_objext
12990 CC="$CC -n32"
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992 ac_cv_sys_largefile_CC=' -n32'; break
12993 fi
12994 rm -f core conftest.err conftest.$ac_objext
12995 break
12996 done
12997 CC=$ac_save_CC
12998 rm -f conftest.$ac_ext
12999 fi
13000 fi
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13002 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13003 if test "$ac_cv_sys_largefile_CC" != no; then
13004 CC=$CC$ac_cv_sys_largefile_CC
13005 fi
13006
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13008 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13009 if ${ac_cv_sys_file_offset_bits+:} false; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012 while :; do
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13015 #include <sys/types.h>
13016 /* Check that off_t can represent 2**63 - 1 correctly.
13017 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13018 since some C++ compilers masquerading as C compilers
13019 incorrectly reject 9223372036854775807. */
13020 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13021 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13022 && LARGE_OFF_T % 2147483647 == 1)
13023 ? 1 : -1];
13024 int
13025 main ()
13026 {
13027
13028 ;
13029 return 0;
13030 }
13031 _ACEOF
13032 if ac_fn_c_try_compile "$LINENO"; then :
13033 ac_cv_sys_file_offset_bits=no; break
13034 fi
13035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13038 #define _FILE_OFFSET_BITS 64
13039 #include <sys/types.h>
13040 /* Check that off_t can represent 2**63 - 1 correctly.
13041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13042 since some C++ compilers masquerading as C compilers
13043 incorrectly reject 9223372036854775807. */
13044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13046 && LARGE_OFF_T % 2147483647 == 1)
13047 ? 1 : -1];
13048 int
13049 main ()
13050 {
13051
13052 ;
13053 return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_compile "$LINENO"; then :
13057 ac_cv_sys_file_offset_bits=64; break
13058 fi
13059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13060 ac_cv_sys_file_offset_bits=unknown
13061 break
13062 done
13063 fi
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13065 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13066 case $ac_cv_sys_file_offset_bits in #(
13067 no | unknown) ;;
13068 *)
13069 cat >>confdefs.h <<_ACEOF
13070 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13071 _ACEOF
13072 ;;
13073 esac
13074 rm -rf conftest*
13075 if test $ac_cv_sys_file_offset_bits = unknown; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13077 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13078 if ${ac_cv_sys_large_files+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 while :; do
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13084 #include <sys/types.h>
13085 /* Check that off_t can represent 2**63 - 1 correctly.
13086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13087 since some C++ compilers masquerading as C compilers
13088 incorrectly reject 9223372036854775807. */
13089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13091 && LARGE_OFF_T % 2147483647 == 1)
13092 ? 1 : -1];
13093 int
13094 main ()
13095 {
13096
13097 ;
13098 return 0;
13099 }
13100 _ACEOF
13101 if ac_fn_c_try_compile "$LINENO"; then :
13102 ac_cv_sys_large_files=no; break
13103 fi
13104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13107 #define _LARGE_FILES 1
13108 #include <sys/types.h>
13109 /* Check that off_t can represent 2**63 - 1 correctly.
13110 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13111 since some C++ compilers masquerading as C compilers
13112 incorrectly reject 9223372036854775807. */
13113 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13114 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13115 && LARGE_OFF_T % 2147483647 == 1)
13116 ? 1 : -1];
13117 int
13118 main ()
13119 {
13120
13121 ;
13122 return 0;
13123 }
13124 _ACEOF
13125 if ac_fn_c_try_compile "$LINENO"; then :
13126 ac_cv_sys_large_files=1; break
13127 fi
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129 ac_cv_sys_large_files=unknown
13130 break
13131 done
13132 fi
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13134 $as_echo "$ac_cv_sys_large_files" >&6; }
13135 case $ac_cv_sys_large_files in #(
13136 no | unknown) ;;
13137 *)
13138 cat >>confdefs.h <<_ACEOF
13139 #define _LARGE_FILES $ac_cv_sys_large_files
13140 _ACEOF
13141 ;;
13142 esac
13143 rm -rf conftest*
13144 fi
13145
13146
13147 fi
13148
13149
13150
13151 # Check whether --with-random was given.
13152 if test "${with_random+set}" = set; then :
13153 withval=$with_random; random="$withval"
13154 else
13155 random="y"
13156 fi
13157
13158
13159 case "$random" in
13160 /*)
13161 ;;
13162 y*|1*)
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5
13164 $as_echo_n "checking for random source... " >&6; }
13165 if ${random_cv_RANDOM+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 if test -c /dev/urandom
13169 then
13170 random_cv_RANDOM=/dev/urandom
13171 else
13172 if test -c /dev/random
13173 then
13174 random_cv_RANDOM=/dev/random
13175 else
13176 random_cv_RANDOM="none"
13177 fi
13178 fi
13179
13180 fi
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_RANDOM" >&5
13182 $as_echo "$random_cv_RANDOM" >&6; }
13183 random="$random_cv_RANDOM"
13184 ;;
13185 *)
13186 random="none"
13187 ;;
13188 esac
13189
13190 if test "$random" != "none"
13191 then
13192
13193 cat >>confdefs.h <<_ACEOF
13194 #define RANDOM "$random"
13195 _ACEOF
13196
13197 fi
13198
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some good options for ps" >&5
13200 $as_echo_n "checking for some good options for ps... " >&6; }
13201 if ${random_cv_PS_OPTIONS+:} false; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
13205 do
13206 ps $opts >/dev/null 2>/dev/null || continue
13207 break
13208 done
13209 random_cv_PS_OPTIONS="$opts"
13210
13211 fi
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_PS_OPTIONS" >&5
13213 $as_echo "$random_cv_PS_OPTIONS" >&6; }
13214
13215
13216 cat >>confdefs.h <<_ACEOF
13217 #define PS_OPTIONS "$random_cv_PS_OPTIONS"
13218 _ACEOF
13219
13220
13221 cat >>confdefs.h <<_ACEOF
13222 #define PS "$PS"
13223 _ACEOF
13224
13225
13226 if test "$W" != "w"
13227 then
13228
13229 cat >>confdefs.h <<_ACEOF
13230 #define W "$w"
13231 _ACEOF
13232
13233 fi
13234
13235 ac_config_files="$ac_config_files Makefile"
13236
13237 cat >confcache <<\_ACEOF
13238 # This file is a shell script that caches the results of configure
13239 # tests run on this system so they can be shared between configure
13240 # scripts and configure runs, see configure's option --config-cache.
13241 # It is not useful on other systems. If it contains results you don't
13242 # want to keep, you may remove or edit it.
13243 #
13244 # config.status only pays attention to the cache file if you give it
13245 # the --recheck option to rerun configure.
13246 #
13247 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13248 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13249 # following values.
13250
13251 _ACEOF
13252
13253 # The following way of writing the cache mishandles newlines in values,
13254 # but we know of no workaround that is simple, portable, and efficient.
13255 # So, we kill variables containing newlines.
13256 # Ultrix sh set writes to stderr and can't be redirected directly,
13257 # and sets the high bit in the cache file unless we assign to the vars.
13258 (
13259 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13260 eval ac_val=\$$ac_var
13261 case $ac_val in #(
13262 *${as_nl}*)
13263 case $ac_var in #(
13264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13265 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13266 esac
13267 case $ac_var in #(
13268 _ | IFS | as_nl) ;; #(
13269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13270 *) { eval $ac_var=; unset $ac_var;} ;;
13271 esac ;;
13272 esac
13273 done
13274
13275 (set) 2>&1 |
13276 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13277 *${as_nl}ac_space=\ *)
13278 # `set' does not quote correctly, so add quotes: double-quote
13279 # substitution turns \\\\ into \\, and sed turns \\ into \.
13280 sed -n \
13281 "s/'/'\\\\''/g;
13282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13283 ;; #(
13284 *)
13285 # `set' quotes correctly as required by POSIX, so do not add quotes.
13286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13287 ;;
13288 esac |
13289 sort
13290 ) |
13291 sed '
13292 /^ac_cv_env_/b end
13293 t clear
13294 :clear
13295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13296 t end
13297 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13298 :end' >>confcache
13299 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13300 if test -w "$cache_file"; then
13301 if test "x$cache_file" != "x/dev/null"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13303 $as_echo "$as_me: updating cache $cache_file" >&6;}
13304 if test ! -f "$cache_file" || test -h "$cache_file"; then
13305 cat confcache >"$cache_file"
13306 else
13307 case $cache_file in #(
13308 */* | ?:*)
13309 mv -f confcache "$cache_file"$$ &&
13310 mv -f "$cache_file"$$ "$cache_file" ;; #(
13311 *)
13312 mv -f confcache "$cache_file" ;;
13313 esac
13314 fi
13315 fi
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13318 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13319 fi
13320 fi
13321 rm -f confcache
13322
13323 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13324 # Let make expand exec_prefix.
13325 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13326
13327 DEFS=-DHAVE_CONFIG_H
13328
13329 ac_libobjs=
13330 ac_ltlibobjs=
13331 U=
13332 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13333 # 1. Remove the extension, and $U if already installed.
13334 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13335 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13336 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13337 # will be set to the directory where LIBOBJS objects are built.
13338 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13339 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13340 done
13341 LIBOBJS=$ac_libobjs
13342
13343 LTLIBOBJS=$ac_ltlibobjs
13344
13345
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13347 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13348 if test -n "$am_sleep_pid"; then
13349 # Hide warnings about reused PIDs.
13350 wait $am_sleep_pid 2>/dev/null
13351 fi
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13353 $as_echo "done" >&6; }
13354 if test -n "$EXEEXT"; then
13355 am__EXEEXT_TRUE=
13356 am__EXEEXT_FALSE='#'
13357 else
13358 am__EXEEXT_TRUE='#'
13359 am__EXEEXT_FALSE=
13360 fi
13361
13362 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13363 as_fn_error $? "conditional \"AMDEP\" was never defined.
13364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13365 fi
13366 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13367 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13369 fi
13370 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13371 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13373 fi
13374
13375 : "${CONFIG_STATUS=./config.status}"
13376 ac_write_fail=0
13377 ac_clean_files_save=$ac_clean_files
13378 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13380 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13381 as_write_fail=0
13382 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13383 #! $SHELL
13384 # Generated by $as_me.
13385 # Run this file to recreate the current configuration.
13386 # Compiler output produced by configure, useful for debugging
13387 # configure, is in config.log if it exists.
13388
13389 debug=false
13390 ac_cs_recheck=false
13391 ac_cs_silent=false
13392
13393 SHELL=\${CONFIG_SHELL-$SHELL}
13394 export SHELL
13395 _ASEOF
13396 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13397 ## -------------------- ##
13398 ## M4sh Initialization. ##
13399 ## -------------------- ##
13400
13401 # Be more Bourne compatible
13402 DUALCASE=1; export DUALCASE # for MKS sh
13403 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13404 emulate sh
13405 NULLCMD=:
13406 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13407 # is contrary to our usage. Disable this feature.
13408 alias -g '${1+"$@"}'='"$@"'
13409 setopt NO_GLOB_SUBST
13410 else
13411 case `(set -o) 2>/dev/null` in #(
13412 *posix*) :
13413 set -o posix ;; #(
13414 *) :
13415 ;;
13416 esac
13417 fi
13418
13419
13420 as_nl='
13421 '
13422 export as_nl
13423 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13424 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13425 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13426 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13427 # Prefer a ksh shell builtin over an external printf program on Solaris,
13428 # but without wasting forks for bash or zsh.
13429 if test -z "$BASH_VERSION$ZSH_VERSION" \
13430 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13431 as_echo='print -r --'
13432 as_echo_n='print -rn --'
13433 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13434 as_echo='printf %s\n'
13435 as_echo_n='printf %s'
13436 else
13437 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13438 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13439 as_echo_n='/usr/ucb/echo -n'
13440 else
13441 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13442 as_echo_n_body='eval
13443 arg=$1;
13444 case $arg in #(
13445 *"$as_nl"*)
13446 expr "X$arg" : "X\\(.*\\)$as_nl";
13447 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13448 esac;
13449 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13450 '
13451 export as_echo_n_body
13452 as_echo_n='sh -c $as_echo_n_body as_echo'
13453 fi
13454 export as_echo_body
13455 as_echo='sh -c $as_echo_body as_echo'
13456 fi
13457
13458 # The user is always right.
13459 if test "${PATH_SEPARATOR+set}" != set; then
13460 PATH_SEPARATOR=:
13461 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13462 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13463 PATH_SEPARATOR=';'
13464 }
13465 fi
13466
13467
13468 # IFS
13469 # We need space, tab and new line, in precisely that order. Quoting is
13470 # there to prevent editors from complaining about space-tab.
13471 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13472 # splitting by setting IFS to empty value.)
13473 IFS=" "" $as_nl"
13474
13475 # Find who we are. Look in the path if we contain no directory separator.
13476 as_myself=
13477 case $0 in #((
13478 *[\\/]* ) as_myself=$0 ;;
13479 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH
13481 do
13482 IFS=$as_save_IFS
13483 test -z "$as_dir" && as_dir=.
13484 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13485 done
13486 IFS=$as_save_IFS
13487
13488 ;;
13489 esac
13490 # We did not find ourselves, most probably we were run as `sh COMMAND'
13491 # in which case we are not to be found in the path.
13492 if test "x$as_myself" = x; then
13493 as_myself=$0
13494 fi
13495 if test ! -f "$as_myself"; then
13496 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13497 exit 1
13498 fi
13499
13500 # Unset variables that we do not need and which cause bugs (e.g. in
13501 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13502 # suppresses any "Segmentation fault" message there. '((' could
13503 # trigger a bug in pdksh 5.2.14.
13504 for as_var in BASH_ENV ENV MAIL MAILPATH
13505 do eval test x\${$as_var+set} = xset \
13506 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13507 done
13508 PS1='$ '
13509 PS2='> '
13510 PS4='+ '
13511
13512 # NLS nuisances.
13513 LC_ALL=C
13514 export LC_ALL
13515 LANGUAGE=C
13516 export LANGUAGE
13517
13518 # CDPATH.
13519 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13520
13521
13522 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13523 # ----------------------------------------
13524 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13525 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13526 # script with STATUS, using 1 if that was 0.
13527 as_fn_error ()
13528 {
13529 as_status=$1; test $as_status -eq 0 && as_status=1
13530 if test "$4"; then
13531 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13532 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13533 fi
13534 $as_echo "$as_me: error: $2" >&2
13535 as_fn_exit $as_status
13536 } # as_fn_error
13537
13538
13539 # as_fn_set_status STATUS
13540 # -----------------------
13541 # Set $? to STATUS, without forking.
13542 as_fn_set_status ()
13543 {
13544 return $1
13545 } # as_fn_set_status
13546
13547 # as_fn_exit STATUS
13548 # -----------------
13549 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13550 as_fn_exit ()
13551 {
13552 set +e
13553 as_fn_set_status $1
13554 exit $1
13555 } # as_fn_exit
13556
13557 # as_fn_unset VAR
13558 # ---------------
13559 # Portably unset VAR.
13560 as_fn_unset ()
13561 {
13562 { eval $1=; unset $1;}
13563 }
13564 as_unset=as_fn_unset
13565 # as_fn_append VAR VALUE
13566 # ----------------------
13567 # Append the text in VALUE to the end of the definition contained in VAR. Take
13568 # advantage of any shell optimizations that allow amortized linear growth over
13569 # repeated appends, instead of the typical quadratic growth present in naive
13570 # implementations.
13571 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13572 eval 'as_fn_append ()
13573 {
13574 eval $1+=\$2
13575 }'
13576 else
13577 as_fn_append ()
13578 {
13579 eval $1=\$$1\$2
13580 }
13581 fi # as_fn_append
13582
13583 # as_fn_arith ARG...
13584 # ------------------
13585 # Perform arithmetic evaluation on the ARGs, and store the result in the
13586 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13587 # must be portable across $(()) and expr.
13588 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13589 eval 'as_fn_arith ()
13590 {
13591 as_val=$(( $* ))
13592 }'
13593 else
13594 as_fn_arith ()
13595 {
13596 as_val=`expr "$@" || test $? -eq 1`
13597 }
13598 fi # as_fn_arith
13599
13600
13601 if expr a : '\(a\)' >/dev/null 2>&1 &&
13602 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13603 as_expr=expr
13604 else
13605 as_expr=false
13606 fi
13607
13608 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13609 as_basename=basename
13610 else
13611 as_basename=false
13612 fi
13613
13614 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13615 as_dirname=dirname
13616 else
13617 as_dirname=false
13618 fi
13619
13620 as_me=`$as_basename -- "$0" ||
13621 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13622 X"$0" : 'X\(//\)$' \| \
13623 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13624 $as_echo X/"$0" |
13625 sed '/^.*\/\([^/][^/]*\)\/*$/{
13626 s//\1/
13627 q
13628 }
13629 /^X\/\(\/\/\)$/{
13630 s//\1/
13631 q
13632 }
13633 /^X\/\(\/\).*/{
13634 s//\1/
13635 q
13636 }
13637 s/.*/./; q'`
13638
13639 # Avoid depending upon Character Ranges.
13640 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13641 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13642 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13643 as_cr_digits='0123456789'
13644 as_cr_alnum=$as_cr_Letters$as_cr_digits
13645
13646 ECHO_C= ECHO_N= ECHO_T=
13647 case `echo -n x` in #(((((
13648 -n*)
13649 case `echo 'xy\c'` in
13650 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13651 xy) ECHO_C='\c';;
13652 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13653 ECHO_T=' ';;
13654 esac;;
13655 *)
13656 ECHO_N='-n';;
13657 esac
13658
13659 rm -f conf$$ conf$$.exe conf$$.file
13660 if test -d conf$$.dir; then
13661 rm -f conf$$.dir/conf$$.file
13662 else
13663 rm -f conf$$.dir
13664 mkdir conf$$.dir 2>/dev/null
13665 fi
13666 if (echo >conf$$.file) 2>/dev/null; then
13667 if ln -s conf$$.file conf$$ 2>/dev/null; then
13668 as_ln_s='ln -s'
13669 # ... but there are two gotchas:
13670 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13671 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13672 # In both cases, we have to default to `cp -pR'.
13673 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13674 as_ln_s='cp -pR'
13675 elif ln conf$$.file conf$$ 2>/dev/null; then
13676 as_ln_s=ln
13677 else
13678 as_ln_s='cp -pR'
13679 fi
13680 else
13681 as_ln_s='cp -pR'
13682 fi
13683 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13684 rmdir conf$$.dir 2>/dev/null
13685
13686
13687 # as_fn_mkdir_p
13688 # -------------
13689 # Create "$as_dir" as a directory, including parents if necessary.
13690 as_fn_mkdir_p ()
13691 {
13692
13693 case $as_dir in #(
13694 -*) as_dir=./$as_dir;;
13695 esac
13696 test -d "$as_dir" || eval $as_mkdir_p || {
13697 as_dirs=
13698 while :; do
13699 case $as_dir in #(
13700 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13701 *) as_qdir=$as_dir;;
13702 esac
13703 as_dirs="'$as_qdir' $as_dirs"
13704 as_dir=`$as_dirname -- "$as_dir" ||
13705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13706 X"$as_dir" : 'X\(//\)[^/]' \| \
13707 X"$as_dir" : 'X\(//\)$' \| \
13708 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13709 $as_echo X"$as_dir" |
13710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13711 s//\1/
13712 q
13713 }
13714 /^X\(\/\/\)[^/].*/{
13715 s//\1/
13716 q
13717 }
13718 /^X\(\/\/\)$/{
13719 s//\1/
13720 q
13721 }
13722 /^X\(\/\).*/{
13723 s//\1/
13724 q
13725 }
13726 s/.*/./; q'`
13727 test -d "$as_dir" && break
13728 done
13729 test -z "$as_dirs" || eval "mkdir $as_dirs"
13730 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13731
13732
13733 } # as_fn_mkdir_p
13734 if mkdir -p . 2>/dev/null; then
13735 as_mkdir_p='mkdir -p "$as_dir"'
13736 else
13737 test -d ./-p && rmdir ./-p
13738 as_mkdir_p=false
13739 fi
13740
13741
13742 # as_fn_executable_p FILE
13743 # -----------------------
13744 # Test if FILE is an executable regular file.
13745 as_fn_executable_p ()
13746 {
13747 test -f "$1" && test -x "$1"
13748 } # as_fn_executable_p
13749 as_test_x='test -x'
13750 as_executable_p=as_fn_executable_p
13751
13752 # Sed expression to map a string onto a valid CPP name.
13753 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13754
13755 # Sed expression to map a string onto a valid variable name.
13756 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13757
13758
13759 exec 6>&1
13760 ## ----------------------------------- ##
13761 ## Main body of $CONFIG_STATUS script. ##
13762 ## ----------------------------------- ##
13763 _ASEOF
13764 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13765
13766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13767 # Save the log message, to keep $0 and so on meaningful, and to
13768 # report actual input values of CONFIG_FILES etc. instead of their
13769 # values after options handling.
13770 ac_log="
13771 This file was extended by random128 $as_me 0.10, which was
13772 generated by GNU Autoconf 2.69. Invocation command line was
13773
13774 CONFIG_FILES = $CONFIG_FILES
13775 CONFIG_HEADERS = $CONFIG_HEADERS
13776 CONFIG_LINKS = $CONFIG_LINKS
13777 CONFIG_COMMANDS = $CONFIG_COMMANDS
13778 $ $0 $@
13779
13780 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13781 "
13782
13783 _ACEOF
13784
13785 case $ac_config_files in *"
13786 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13787 esac
13788
13789 case $ac_config_headers in *"
13790 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13791 esac
13792
13793
13794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13795 # Files that config.status was made for.
13796 config_files="$ac_config_files"
13797 config_headers="$ac_config_headers"
13798 config_commands="$ac_config_commands"
13799
13800 _ACEOF
13801
13802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13803 ac_cs_usage="\
13804 \`$as_me' instantiates files and other configuration actions
13805 from templates according to the current configuration. Unless the files
13806 and actions are specified as TAGs, all are instantiated by default.
13807
13808 Usage: $0 [OPTION]... [TAG]...
13809
13810 -h, --help print this help, then exit
13811 -V, --version print version number and configuration settings, then exit
13812 --config print configuration, then exit
13813 -q, --quiet, --silent
13814 do not print progress messages
13815 -d, --debug don't remove temporary files
13816 --recheck update $as_me by reconfiguring in the same conditions
13817 --file=FILE[:TEMPLATE]
13818 instantiate the configuration file FILE
13819 --header=FILE[:TEMPLATE]
13820 instantiate the configuration header FILE
13821
13822 Configuration files:
13823 $config_files
13824
13825 Configuration headers:
13826 $config_headers
13827
13828 Configuration commands:
13829 $config_commands
13830
13831 Report bugs to <courier-users@lists.sourceforge.net>."
13832
13833 _ACEOF
13834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13835 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13836 ac_cs_version="\\
13837 random128 config.status 0.10
13838 configured by $0, generated by GNU Autoconf 2.69,
13839 with options \\"\$ac_cs_config\\"
13840
13841 Copyright (C) 2012 Free Software Foundation, Inc.
13842 This config.status script is free software; the Free Software Foundation
13843 gives unlimited permission to copy, distribute and modify it."
13844
13845 ac_pwd='$ac_pwd'
13846 srcdir='$srcdir'
13847 INSTALL='$INSTALL'
13848 MKDIR_P='$MKDIR_P'
13849 AWK='$AWK'
13850 test -n "\$AWK" || AWK=awk
13851 _ACEOF
13852
13853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13854 # The default lists apply if the user does not specify any file.
13855 ac_need_defaults=:
13856 while test $# != 0
13857 do
13858 case $1 in
13859 --*=?*)
13860 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13861 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13862 ac_shift=:
13863 ;;
13864 --*=)
13865 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13866 ac_optarg=
13867 ac_shift=:
13868 ;;
13869 *)
13870 ac_option=$1
13871 ac_optarg=$2
13872 ac_shift=shift
13873 ;;
13874 esac
13875
13876 case $ac_option in
13877 # Handling of the options.
13878 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13879 ac_cs_recheck=: ;;
13880 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13881 $as_echo "$ac_cs_version"; exit ;;
13882 --config | --confi | --conf | --con | --co | --c )
13883 $as_echo "$ac_cs_config"; exit ;;
13884 --debug | --debu | --deb | --de | --d | -d )
13885 debug=: ;;
13886 --file | --fil | --fi | --f )
13887 $ac_shift
13888 case $ac_optarg in
13889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13890 '') as_fn_error $? "missing file argument" ;;
13891 esac
13892 as_fn_append CONFIG_FILES " '$ac_optarg'"
13893 ac_need_defaults=false;;
13894 --header | --heade | --head | --hea )
13895 $ac_shift
13896 case $ac_optarg in
13897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13898 esac
13899 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13900 ac_need_defaults=false;;
13901 --he | --h)
13902 # Conflict between --help and --header
13903 as_fn_error $? "ambiguous option: \`$1'
13904 Try \`$0 --help' for more information.";;
13905 --help | --hel | -h )
13906 $as_echo "$ac_cs_usage"; exit ;;
13907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13908 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13909 ac_cs_silent=: ;;
13910
13911 # This is an error.
13912 -*) as_fn_error $? "unrecognized option: \`$1'
13913 Try \`$0 --help' for more information." ;;
13914
13915 *) as_fn_append ac_config_targets " $1"
13916 ac_need_defaults=false ;;
13917
13918 esac
13919 shift
13920 done
13921
13922 ac_configure_extra_args=
13923
13924 if $ac_cs_silent; then
13925 exec 6>/dev/null
13926 ac_configure_extra_args="$ac_configure_extra_args --silent"
13927 fi
13928
13929 _ACEOF
13930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13931 if \$ac_cs_recheck; then
13932 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13933 shift
13934 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13935 CONFIG_SHELL='$SHELL'
13936 export CONFIG_SHELL
13937 exec "\$@"
13938 fi
13939
13940 _ACEOF
13941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13942 exec 5>>config.log
13943 {
13944 echo
13945 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13946 ## Running $as_me. ##
13947 _ASBOX
13948 $as_echo "$ac_log"
13949 } >&5
13950
13951 _ACEOF
13952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13953 #
13954 # INIT-COMMANDS
13955 #
13956 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13957
13958
13959 # The HP-UX ksh and POSIX shell print the target directory to stdout
13960 # if CDPATH is set.
13961 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13962
13963 sed_quote_subst='$sed_quote_subst'
13964 double_quote_subst='$double_quote_subst'
13965 delay_variable_subst='$delay_variable_subst'
13966 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13967 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13968 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13969 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13970 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13971 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13972 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13973 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13974 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13975 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13976 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13977 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13978 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13979 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13980 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13981 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13982 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13983 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13984 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13985 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13986 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13987 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13988 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13989 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13990 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13991 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13992 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13993 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13994 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13995 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13996 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13997 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13998 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13999 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14000 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14001 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14002 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14003 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14004 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14005 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14006 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14007 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14008 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14009 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14010 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14011 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14012 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14013 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14014 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14015 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14016 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14017 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14018 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14019 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14020 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14021 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14022 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14023 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14024 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"`'
14025 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14026 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14027 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14028 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14029 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14030 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14031 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14032 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14033 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14034 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14035 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14036 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14037 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14038 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14039 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14040 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14041 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14042 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14043 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14044 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14045 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14046 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14047 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14048 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14049 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14050 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14051 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14052 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14053 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14054 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14055 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14056 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14057 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14058 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14059 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14060 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14061 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14062 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14063 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14064 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14065 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14066 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14067 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14068 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14069 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14070 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14071 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14072 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14073 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14074 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14075 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14076 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14077 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14078 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14079 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14080 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14081 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14082 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14083 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14084 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14085 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14086 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14087 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14088 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14089 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14090 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14091 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14092 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14093 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14094 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14095 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14096 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14097 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14098 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14099 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14100 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14101
14102 LTCC='$LTCC'
14103 LTCFLAGS='$LTCFLAGS'
14104 compiler='$compiler_DEFAULT'
14105
14106 # A function that is used when there is no print builtin or printf.
14107 func_fallback_echo ()
14108 {
14109 eval 'cat <<_LTECHO_EOF
14110 \$1
14111 _LTECHO_EOF'
14112 }
14113
14114 # Quote evaled strings.
14115 for var in SHELL \
14116 ECHO \
14117 PATH_SEPARATOR \
14118 SED \
14119 GREP \
14120 EGREP \
14121 FGREP \
14122 LD \
14123 NM \
14124 LN_S \
14125 lt_SP2NL \
14126 lt_NL2SP \
14127 reload_flag \
14128 OBJDUMP \
14129 deplibs_check_method \
14130 file_magic_cmd \
14131 file_magic_glob \
14132 want_nocaseglob \
14133 DLLTOOL \
14134 sharedlib_from_linklib_cmd \
14135 AR \
14136 AR_FLAGS \
14137 archiver_list_spec \
14138 STRIP \
14139 RANLIB \
14140 CC \
14141 CFLAGS \
14142 compiler \
14143 lt_cv_sys_global_symbol_pipe \
14144 lt_cv_sys_global_symbol_to_cdecl \
14145 lt_cv_sys_global_symbol_to_import \
14146 lt_cv_sys_global_symbol_to_c_name_address \
14147 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14148 lt_cv_nm_interface \
14149 nm_file_list_spec \
14150 lt_cv_truncate_bin \
14151 lt_prog_compiler_no_builtin_flag \
14152 lt_prog_compiler_pic \
14153 lt_prog_compiler_wl \
14154 lt_prog_compiler_static \
14155 lt_cv_prog_compiler_c_o \
14156 need_locks \
14157 MANIFEST_TOOL \
14158 DSYMUTIL \
14159 NMEDIT \
14160 LIPO \
14161 OTOOL \
14162 OTOOL64 \
14163 shrext_cmds \
14164 export_dynamic_flag_spec \
14165 whole_archive_flag_spec \
14166 compiler_needs_object \
14167 with_gnu_ld \
14168 allow_undefined_flag \
14169 no_undefined_flag \
14170 hardcode_libdir_flag_spec \
14171 hardcode_libdir_separator \
14172 exclude_expsyms \
14173 include_expsyms \
14174 file_list_spec \
14175 variables_saved_for_relink \
14176 libname_spec \
14177 library_names_spec \
14178 soname_spec \
14179 install_override_mode \
14180 finish_eval \
14181 old_striplib \
14182 striplib; do
14183 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14184 *[\\\\\\\`\\"\\\$]*)
14185 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14186 ;;
14187 *)
14188 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14189 ;;
14190 esac
14191 done
14192
14193 # Double-quote double-evaled strings.
14194 for var in reload_cmds \
14195 old_postinstall_cmds \
14196 old_postuninstall_cmds \
14197 old_archive_cmds \
14198 extract_expsyms_cmds \
14199 old_archive_from_new_cmds \
14200 old_archive_from_expsyms_cmds \
14201 archive_cmds \
14202 archive_expsym_cmds \
14203 module_cmds \
14204 module_expsym_cmds \
14205 export_symbols_cmds \
14206 prelink_cmds \
14207 postlink_cmds \
14208 postinstall_cmds \
14209 postuninstall_cmds \
14210 finish_cmds \
14211 sys_lib_search_path_spec \
14212 configure_time_dlsearch_path \
14213 configure_time_lt_sys_library_path; do
14214 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14215 *[\\\\\\\`\\"\\\$]*)
14216 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14217 ;;
14218 *)
14219 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14220 ;;
14221 esac
14222 done
14223
14224 ac_aux_dir='$ac_aux_dir'
14225
14226 # See if we are running on zsh, and set the options that allow our
14227 # commands through without removal of \ escapes INIT.
14228 if test -n "\${ZSH_VERSION+set}"; then
14229 setopt NO_GLOB_SUBST
14230 fi
14231
14232
14233 PACKAGE='$PACKAGE'
14234 VERSION='$VERSION'
14235 RM='$RM'
14236 ofile='$ofile'
14237
14238
14239
14240
14241 _ACEOF
14242
14243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14244
14245 # Handling of arguments.
14246 for ac_config_target in $ac_config_targets
14247 do
14248 case $ac_config_target in
14249 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14250 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14251 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14252 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14253
14254 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14255 esac
14256 done
14257
14258
14259 # If the user did not use the arguments to specify the items to instantiate,
14260 # then the envvar interface is used. Set only those that are not.
14261 # We use the long form for the default assignment because of an extremely
14262 # bizarre bug on SunOS 4.1.3.
14263 if $ac_need_defaults; then
14264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14267 fi
14268
14269 # Have a temporary directory for convenience. Make it in the build tree
14270 # simply because there is no reason against having it here, and in addition,
14271 # creating and moving files from /tmp can sometimes cause problems.
14272 # Hook for its removal unless debugging.
14273 # Note that there is a small window in which the directory will not be cleaned:
14274 # after its creation but before its name has been assigned to `$tmp'.
14275 $debug ||
14276 {
14277 tmp= ac_tmp=
14278 trap 'exit_status=$?
14279 : "${ac_tmp:=$tmp}"
14280 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14281 ' 0
14282 trap 'as_fn_exit 1' 1 2 13 15
14283 }
14284 # Create a (secure) tmp directory for tmp files.
14285
14286 {
14287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14288 test -d "$tmp"
14289 } ||
14290 {
14291 tmp=./conf$$-$RANDOM
14292 (umask 077 && mkdir "$tmp")
14293 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14294 ac_tmp=$tmp
14295
14296 # Set up the scripts for CONFIG_FILES section.
14297 # No need to generate them if there are no CONFIG_FILES.
14298 # This happens for instance with `./config.status config.h'.
14299 if test -n "$CONFIG_FILES"; then
14300
14301
14302 ac_cr=`echo X | tr X '\015'`
14303 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14304 # But we know of no other shell where ac_cr would be empty at this
14305 # point, so we can use a bashism as a fallback.
14306 if test "x$ac_cr" = x; then
14307 eval ac_cr=\$\'\\r\'
14308 fi
14309 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14310 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14311 ac_cs_awk_cr='\\r'
14312 else
14313 ac_cs_awk_cr=$ac_cr
14314 fi
14315
14316 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14317 _ACEOF
14318
14319
14320 {
14321 echo "cat >conf$$subs.awk <<_ACEOF" &&
14322 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14323 echo "_ACEOF"
14324 } >conf$$subs.sh ||
14325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14326 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14327 ac_delim='%!_!# '
14328 for ac_last_try in false false false false false :; do
14329 . ./conf$$subs.sh ||
14330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14331
14332 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14333 if test $ac_delim_n = $ac_delim_num; then
14334 break
14335 elif $ac_last_try; then
14336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14337 else
14338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14339 fi
14340 done
14341 rm -f conf$$subs.sh
14342
14343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14344 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14345 _ACEOF
14346 sed -n '
14347 h
14348 s/^/S["/; s/!.*/"]=/
14349 p
14350 g
14351 s/^[^!]*!//
14352 :repl
14353 t repl
14354 s/'"$ac_delim"'$//
14355 t delim
14356 :nl
14357 h
14358 s/\(.\{148\}\)..*/\1/
14359 t more1
14360 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14361 p
14362 n
14363 b repl
14364 :more1
14365 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14366 p
14367 g
14368 s/.\{148\}//
14369 t nl
14370 :delim
14371 h
14372 s/\(.\{148\}\)..*/\1/
14373 t more2
14374 s/["\\]/\\&/g; s/^/"/; s/$/"/
14375 p
14376 b
14377 :more2
14378 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14379 p
14380 g
14381 s/.\{148\}//
14382 t delim
14383 ' <conf$$subs.awk | sed '
14384 /^[^""]/{
14385 N
14386 s/\n//
14387 }
14388 ' >>$CONFIG_STATUS || ac_write_fail=1
14389 rm -f conf$$subs.awk
14390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14391 _ACAWK
14392 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14393 for (key in S) S_is_set[key] = 1
14394 FS = "\a"
14395
14396 }
14397 {
14398 line = $ 0
14399 nfields = split(line, field, "@")
14400 substed = 0
14401 len = length(field[1])
14402 for (i = 2; i < nfields; i++) {
14403 key = field[i]
14404 keylen = length(key)
14405 if (S_is_set[key]) {
14406 value = S[key]
14407 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14408 len += length(value) + length(field[++i])
14409 substed = 1
14410 } else
14411 len += 1 + keylen
14412 }
14413
14414 print line
14415 }
14416
14417 _ACAWK
14418 _ACEOF
14419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14420 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14421 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14422 else
14423 cat
14424 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14425 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14426 _ACEOF
14427
14428 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14429 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14430 # trailing colons and then remove the whole line if VPATH becomes empty
14431 # (actually we leave an empty line to preserve line numbers).
14432 if test "x$srcdir" = x.; then
14433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14434 h
14435 s///
14436 s/^/:/
14437 s/[ ]*$/:/
14438 s/:\$(srcdir):/:/g
14439 s/:\${srcdir}:/:/g
14440 s/:@srcdir@:/:/g
14441 s/^:*//
14442 s/:*$//
14443 x
14444 s/\(=[ ]*\).*/\1/
14445 G
14446 s/\n//
14447 s/^[^=]*=[ ]*$//
14448 }'
14449 fi
14450
14451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14452 fi # test -n "$CONFIG_FILES"
14453
14454 # Set up the scripts for CONFIG_HEADERS section.
14455 # No need to generate them if there are no CONFIG_HEADERS.
14456 # This happens for instance with `./config.status Makefile'.
14457 if test -n "$CONFIG_HEADERS"; then
14458 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14459 BEGIN {
14460 _ACEOF
14461
14462 # Transform confdefs.h into an awk script `defines.awk', embedded as
14463 # here-document in config.status, that substitutes the proper values into
14464 # config.h.in to produce config.h.
14465
14466 # Create a delimiter string that does not exist in confdefs.h, to ease
14467 # handling of long lines.
14468 ac_delim='%!_!# '
14469 for ac_last_try in false false :; do
14470 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14471 if test -z "$ac_tt"; then
14472 break
14473 elif $ac_last_try; then
14474 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14475 else
14476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14477 fi
14478 done
14479
14480 # For the awk script, D is an array of macro values keyed by name,
14481 # likewise P contains macro parameters if any. Preserve backslash
14482 # newline sequences.
14483
14484 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14485 sed -n '
14486 s/.\{148\}/&'"$ac_delim"'/g
14487 t rset
14488 :rset
14489 s/^[ ]*#[ ]*define[ ][ ]*/ /
14490 t def
14491 d
14492 :def
14493 s/\\$//
14494 t bsnl
14495 s/["\\]/\\&/g
14496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14497 D["\1"]=" \3"/p
14498 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14499 d
14500 :bsnl
14501 s/["\\]/\\&/g
14502 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14503 D["\1"]=" \3\\\\\\n"\\/p
14504 t cont
14505 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14506 t cont
14507 d
14508 :cont
14509 n
14510 s/.\{148\}/&'"$ac_delim"'/g
14511 t clear
14512 :clear
14513 s/\\$//
14514 t bsnlc
14515 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14516 d
14517 :bsnlc
14518 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14519 b cont
14520 ' <confdefs.h | sed '
14521 s/'"$ac_delim"'/"\\\
14522 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14523
14524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14525 for (key in D) D_is_set[key] = 1
14526 FS = "\a"
14527 }
14528 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14529 line = \$ 0
14530 split(line, arg, " ")
14531 if (arg[1] == "#") {
14532 defundef = arg[2]
14533 mac1 = arg[3]
14534 } else {
14535 defundef = substr(arg[1], 2)
14536 mac1 = arg[2]
14537 }
14538 split(mac1, mac2, "(") #)
14539 macro = mac2[1]
14540 prefix = substr(line, 1, index(line, defundef) - 1)
14541 if (D_is_set[macro]) {
14542 # Preserve the white space surrounding the "#".
14543 print prefix "define", macro P[macro] D[macro]
14544 next
14545 } else {
14546 # Replace #undef with comments. This is necessary, for example,
14547 # in the case of _POSIX_SOURCE, which is predefined and required
14548 # on some systems where configure will not decide to define it.
14549 if (defundef == "undef") {
14550 print "/*", prefix defundef, macro, "*/"
14551 next
14552 }
14553 }
14554 }
14555 { print }
14556 _ACAWK
14557 _ACEOF
14558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14559 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14560 fi # test -n "$CONFIG_HEADERS"
14561
14562
14563 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14564 shift
14565 for ac_tag
14566 do
14567 case $ac_tag in
14568 :[FHLC]) ac_mode=$ac_tag; continue;;
14569 esac
14570 case $ac_mode$ac_tag in
14571 :[FHL]*:*);;
14572 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14573 :[FH]-) ac_tag=-:-;;
14574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14575 esac
14576 ac_save_IFS=$IFS
14577 IFS=:
14578 set x $ac_tag
14579 IFS=$ac_save_IFS
14580 shift
14581 ac_file=$1
14582 shift
14583
14584 case $ac_mode in
14585 :L) ac_source=$1;;
14586 :[FH])
14587 ac_file_inputs=
14588 for ac_f
14589 do
14590 case $ac_f in
14591 -) ac_f="$ac_tmp/stdin";;
14592 *) # Look for the file first in the build tree, then in the source tree
14593 # (if the path is not absolute). The absolute path cannot be DOS-style,
14594 # because $ac_f cannot contain `:'.
14595 test -f "$ac_f" ||
14596 case $ac_f in
14597 [\\/$]*) false;;
14598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14599 esac ||
14600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14601 esac
14602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14603 as_fn_append ac_file_inputs " '$ac_f'"
14604 done
14605
14606 # Let's still pretend it is `configure' which instantiates (i.e., don't
14607 # use $as_me), people would be surprised to read:
14608 # /* config.h. Generated by config.status. */
14609 configure_input='Generated from '`
14610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14611 `' by configure.'
14612 if test x"$ac_file" != x-; then
14613 configure_input="$ac_file. $configure_input"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14615 $as_echo "$as_me: creating $ac_file" >&6;}
14616 fi
14617 # Neutralize special characters interpreted by sed in replacement strings.
14618 case $configure_input in #(
14619 *\&* | *\|* | *\\* )
14620 ac_sed_conf_input=`$as_echo "$configure_input" |
14621 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14622 *) ac_sed_conf_input=$configure_input;;
14623 esac
14624
14625 case $ac_tag in
14626 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14628 esac
14629 ;;
14630 esac
14631
14632 ac_dir=`$as_dirname -- "$ac_file" ||
14633 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14634 X"$ac_file" : 'X\(//\)[^/]' \| \
14635 X"$ac_file" : 'X\(//\)$' \| \
14636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14637 $as_echo X"$ac_file" |
14638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14639 s//\1/
14640 q
14641 }
14642 /^X\(\/\/\)[^/].*/{
14643 s//\1/
14644 q
14645 }
14646 /^X\(\/\/\)$/{
14647 s//\1/
14648 q
14649 }
14650 /^X\(\/\).*/{
14651 s//\1/
14652 q
14653 }
14654 s/.*/./; q'`
14655 as_dir="$ac_dir"; as_fn_mkdir_p
14656 ac_builddir=.
14657
14658 case "$ac_dir" in
14659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14660 *)
14661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14662 # A ".." for each directory in $ac_dir_suffix.
14663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14664 case $ac_top_builddir_sub in
14665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14667 esac ;;
14668 esac
14669 ac_abs_top_builddir=$ac_pwd
14670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14671 # for backward compatibility:
14672 ac_top_builddir=$ac_top_build_prefix
14673
14674 case $srcdir in
14675 .) # We are building in place.
14676 ac_srcdir=.
14677 ac_top_srcdir=$ac_top_builddir_sub
14678 ac_abs_top_srcdir=$ac_pwd ;;
14679 [\\/]* | ?:[\\/]* ) # Absolute name.
14680 ac_srcdir=$srcdir$ac_dir_suffix;
14681 ac_top_srcdir=$srcdir
14682 ac_abs_top_srcdir=$srcdir ;;
14683 *) # Relative name.
14684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14685 ac_top_srcdir=$ac_top_build_prefix$srcdir
14686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14687 esac
14688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14689
14690
14691 case $ac_mode in
14692 :F)
14693 #
14694 # CONFIG_FILE
14695 #
14696
14697 case $INSTALL in
14698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14700 esac
14701 ac_MKDIR_P=$MKDIR_P
14702 case $MKDIR_P in
14703 [\\/$]* | ?:[\\/]* ) ;;
14704 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14705 esac
14706 _ACEOF
14707
14708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14709 # If the template does not know about datarootdir, expand it.
14710 # FIXME: This hack should be removed a few years after 2.60.
14711 ac_datarootdir_hack=; ac_datarootdir_seen=
14712 ac_sed_dataroot='
14713 /datarootdir/ {
14714 p
14715 q
14716 }
14717 /@datadir@/p
14718 /@docdir@/p
14719 /@infodir@/p
14720 /@localedir@/p
14721 /@mandir@/p'
14722 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14723 *datarootdir*) ac_datarootdir_seen=yes;;
14724 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14726 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14727 _ACEOF
14728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14729 ac_datarootdir_hack='
14730 s&@datadir@&$datadir&g
14731 s&@docdir@&$docdir&g
14732 s&@infodir@&$infodir&g
14733 s&@localedir@&$localedir&g
14734 s&@mandir@&$mandir&g
14735 s&\\\${datarootdir}&$datarootdir&g' ;;
14736 esac
14737 _ACEOF
14738
14739 # Neutralize VPATH when `$srcdir' = `.'.
14740 # Shell code in configure.ac might set extrasub.
14741 # FIXME: do we really want to maintain this feature?
14742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14743 ac_sed_extra="$ac_vpsub
14744 $extrasub
14745 _ACEOF
14746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14747 :t
14748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14749 s|@configure_input@|$ac_sed_conf_input|;t t
14750 s&@top_builddir@&$ac_top_builddir_sub&;t t
14751 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14752 s&@srcdir@&$ac_srcdir&;t t
14753 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14754 s&@top_srcdir@&$ac_top_srcdir&;t t
14755 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14756 s&@builddir@&$ac_builddir&;t t
14757 s&@abs_builddir@&$ac_abs_builddir&;t t
14758 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14759 s&@INSTALL@&$ac_INSTALL&;t t
14760 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14761 $ac_datarootdir_hack
14762 "
14763 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14764 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14765
14766 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14767 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14769 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14771 which seems to be undefined. Please make sure it is defined" >&5
14772 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14773 which seems to be undefined. Please make sure it is defined" >&2;}
14774
14775 rm -f "$ac_tmp/stdin"
14776 case $ac_file in
14777 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14778 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14779 esac \
14780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14781 ;;
14782 :H)
14783 #
14784 # CONFIG_HEADER
14785 #
14786 if test x"$ac_file" != x-; then
14787 {
14788 $as_echo "/* $configure_input */" \
14789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14790 } >"$ac_tmp/config.h" \
14791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14792 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14794 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14795 else
14796 rm -f "$ac_file"
14797 mv "$ac_tmp/config.h" "$ac_file" \
14798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14799 fi
14800 else
14801 $as_echo "/* $configure_input */" \
14802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14803 || as_fn_error $? "could not create -" "$LINENO" 5
14804 fi
14805 # Compute "$ac_file"'s index in $config_headers.
14806 _am_arg="$ac_file"
14807 _am_stamp_count=1
14808 for _am_header in $config_headers :; do
14809 case $_am_header in
14810 $_am_arg | $_am_arg:* )
14811 break ;;
14812 * )
14813 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14814 esac
14815 done
14816 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14817 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14818 X"$_am_arg" : 'X\(//\)[^/]' \| \
14819 X"$_am_arg" : 'X\(//\)$' \| \
14820 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14821 $as_echo X"$_am_arg" |
14822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14823 s//\1/
14824 q
14825 }
14826 /^X\(\/\/\)[^/].*/{
14827 s//\1/
14828 q
14829 }
14830 /^X\(\/\/\)$/{
14831 s//\1/
14832 q
14833 }
14834 /^X\(\/\).*/{
14835 s//\1/
14836 q
14837 }
14838 s/.*/./; q'`/stamp-h$_am_stamp_count
14839 ;;
14840
14841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14842 $as_echo "$as_me: executing $ac_file commands" >&6;}
14843 ;;
14844 esac
14845
14846
14847 case $ac_file$ac_mode in
14848 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14849 # Older Autoconf quotes --file arguments for eval, but not when files
14850 # are listed without --file. Let's play safe and only enable the eval
14851 # if we detect the quoting.
14852 case $CONFIG_FILES in
14853 *\'*) eval set x "$CONFIG_FILES" ;;
14854 *) set x $CONFIG_FILES ;;
14855 esac
14856 shift
14857 for mf
14858 do
14859 # Strip MF so we end up with the name of the file.
14860 mf=`echo "$mf" | sed -e 's/:.*$//'`
14861 # Check whether this is an Automake generated Makefile or not.
14862 # We used to match only the files named 'Makefile.in', but
14863 # some people rename them; so instead we look at the file content.
14864 # Grep'ing the first line is not enough: some people post-process
14865 # each Makefile.in and add a new line on top of each file to say so.
14866 # Grep'ing the whole file is not good either: AIX grep has a line
14867 # limit of 2048, but all sed's we know have understand at least 4000.
14868 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14869 dirpart=`$as_dirname -- "$mf" ||
14870 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14871 X"$mf" : 'X\(//\)[^/]' \| \
14872 X"$mf" : 'X\(//\)$' \| \
14873 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14874 $as_echo X"$mf" |
14875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14876 s//\1/
14877 q
14878 }
14879 /^X\(\/\/\)[^/].*/{
14880 s//\1/
14881 q
14882 }
14883 /^X\(\/\/\)$/{
14884 s//\1/
14885 q
14886 }
14887 /^X\(\/\).*/{
14888 s//\1/
14889 q
14890 }
14891 s/.*/./; q'`
14892 else
14893 continue
14894 fi
14895 # Extract the definition of DEPDIR, am__include, and am__quote
14896 # from the Makefile without running 'make'.
14897 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14898 test -z "$DEPDIR" && continue
14899 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14900 test -z "$am__include" && continue
14901 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14902 # Find all dependency output files, they are included files with
14903 # $(DEPDIR) in their names. We invoke sed twice because it is the
14904 # simplest approach to changing $(DEPDIR) to its actual value in the
14905 # expansion.
14906 for file in `sed -n "
14907 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14908 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14909 # Make sure the directory exists.
14910 test -f "$dirpart/$file" && continue
14911 fdir=`$as_dirname -- "$file" ||
14912 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14913 X"$file" : 'X\(//\)[^/]' \| \
14914 X"$file" : 'X\(//\)$' \| \
14915 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14916 $as_echo X"$file" |
14917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14918 s//\1/
14919 q
14920 }
14921 /^X\(\/\/\)[^/].*/{
14922 s//\1/
14923 q
14924 }
14925 /^X\(\/\/\)$/{
14926 s//\1/
14927 q
14928 }
14929 /^X\(\/\).*/{
14930 s//\1/
14931 q
14932 }
14933 s/.*/./; q'`
14934 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14935 # echo "creating $dirpart/$file"
14936 echo '# dummy' > "$dirpart/$file"
14937 done
14938 done
14939 }
14940 ;;
14941 "libtool":C)
14942
14943 # See if we are running on zsh, and set the options that allow our
14944 # commands through without removal of \ escapes.
14945 if test -n "${ZSH_VERSION+set}"; then
14946 setopt NO_GLOB_SUBST
14947 fi
14948
14949 cfgfile=${ofile}T
14950 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14951 $RM "$cfgfile"
14952
14953 cat <<_LT_EOF >> "$cfgfile"
14954 #! $SHELL
14955 # Generated automatically by $as_me ($PACKAGE) $VERSION
14956 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14957 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14958
14959 # Provide generalized library-building support services.
14960 # Written by Gordon Matzigkeit, 1996
14961
14962 # Copyright (C) 2014 Free Software Foundation, Inc.
14963 # This is free software; see the source for copying conditions. There is NO
14964 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14965
14966 # GNU Libtool is free software; you can redistribute it and/or modify
14967 # it under the terms of the GNU General Public License as published by
14968 # the Free Software Foundation; either version 2 of of the License, or
14969 # (at your option) any later version.
14970 #
14971 # As a special exception to the GNU General Public License, if you
14972 # distribute this file as part of a program or library that is built
14973 # using GNU Libtool, you may include this file under the same
14974 # distribution terms that you use for the rest of that program.
14975 #
14976 # GNU Libtool is distributed in the hope that it will be useful, but
14977 # WITHOUT ANY WARRANTY; without even the implied warranty of
14978 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14979 # GNU General Public License for more details.
14980 #
14981 # You should have received a copy of the GNU General Public License
14982 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14983
14984
14985 # The names of the tagged configurations supported by this script.
14986 available_tags=''
14987
14988 # Configured defaults for sys_lib_dlsearch_path munging.
14989 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14990
14991 # ### BEGIN LIBTOOL CONFIG
14992
14993 # Which release of libtool.m4 was used?
14994 macro_version=$macro_version
14995 macro_revision=$macro_revision
14996
14997 # Whether or not to build shared libraries.
14998 build_libtool_libs=$enable_shared
14999
15000 # Whether or not to build static libraries.
15001 build_old_libs=$enable_static
15002
15003 # What type of objects to build.
15004 pic_mode=$pic_mode
15005
15006 # Whether or not to optimize for fast installation.
15007 fast_install=$enable_fast_install
15008
15009 # Shared archive member basename,for filename based shared library versioning on AIX.
15010 shared_archive_member_spec=$shared_archive_member_spec
15011
15012 # Shell to use when invoking shell scripts.
15013 SHELL=$lt_SHELL
15014
15015 # An echo program that protects backslashes.
15016 ECHO=$lt_ECHO
15017
15018 # The PATH separator for the build system.
15019 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15020
15021 # The host system.
15022 host_alias=$host_alias
15023 host=$host
15024 host_os=$host_os
15025
15026 # The build system.
15027 build_alias=$build_alias
15028 build=$build
15029 build_os=$build_os
15030
15031 # A sed program that does not truncate output.
15032 SED=$lt_SED
15033
15034 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15035 Xsed="\$SED -e 1s/^X//"
15036
15037 # A grep program that handles long lines.
15038 GREP=$lt_GREP
15039
15040 # An ERE matcher.
15041 EGREP=$lt_EGREP
15042
15043 # A literal string matcher.
15044 FGREP=$lt_FGREP
15045
15046 # A BSD- or MS-compatible name lister.
15047 NM=$lt_NM
15048
15049 # Whether we need soft or hard links.
15050 LN_S=$lt_LN_S
15051
15052 # What is the maximum length of a command?
15053 max_cmd_len=$max_cmd_len
15054
15055 # Object file suffix (normally "o").
15056 objext=$ac_objext
15057
15058 # Executable file suffix (normally "").
15059 exeext=$exeext
15060
15061 # whether the shell understands "unset".
15062 lt_unset=$lt_unset
15063
15064 # turn spaces into newlines.
15065 SP2NL=$lt_lt_SP2NL
15066
15067 # turn newlines into spaces.
15068 NL2SP=$lt_lt_NL2SP
15069
15070 # convert \$build file names to \$host format.
15071 to_host_file_cmd=$lt_cv_to_host_file_cmd
15072
15073 # convert \$build files to toolchain format.
15074 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15075
15076 # An object symbol dumper.
15077 OBJDUMP=$lt_OBJDUMP
15078
15079 # Method to check whether dependent libraries are shared objects.
15080 deplibs_check_method=$lt_deplibs_check_method
15081
15082 # Command to use when deplibs_check_method = "file_magic".
15083 file_magic_cmd=$lt_file_magic_cmd
15084
15085 # How to find potential files when deplibs_check_method = "file_magic".
15086 file_magic_glob=$lt_file_magic_glob
15087
15088 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15089 want_nocaseglob=$lt_want_nocaseglob
15090
15091 # DLL creation program.
15092 DLLTOOL=$lt_DLLTOOL
15093
15094 # Command to associate shared and link libraries.
15095 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15096
15097 # The archiver.
15098 AR=$lt_AR
15099
15100 # Flags to create an archive.
15101 AR_FLAGS=$lt_AR_FLAGS
15102
15103 # How to feed a file listing to the archiver.
15104 archiver_list_spec=$lt_archiver_list_spec
15105
15106 # A symbol stripping program.
15107 STRIP=$lt_STRIP
15108
15109 # Commands used to install an old-style archive.
15110 RANLIB=$lt_RANLIB
15111 old_postinstall_cmds=$lt_old_postinstall_cmds
15112 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15113
15114 # Whether to use a lock for old archive extraction.
15115 lock_old_archive_extraction=$lock_old_archive_extraction
15116
15117 # A C compiler.
15118 LTCC=$lt_CC
15119
15120 # LTCC compiler flags.
15121 LTCFLAGS=$lt_CFLAGS
15122
15123 # Take the output of nm and produce a listing of raw symbols and C names.
15124 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15125
15126 # Transform the output of nm in a proper C declaration.
15127 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15128
15129 # Transform the output of nm into a list of symbols to manually relocate.
15130 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15131
15132 # Transform the output of nm in a C name address pair.
15133 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15134
15135 # Transform the output of nm in a C name address pair when lib prefix is needed.
15136 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15137
15138 # The name lister interface.
15139 nm_interface=$lt_lt_cv_nm_interface
15140
15141 # Specify filename containing input files for \$NM.
15142 nm_file_list_spec=$lt_nm_file_list_spec
15143
15144 # The root where to search for dependent libraries,and where our libraries should be installed.
15145 lt_sysroot=$lt_sysroot
15146
15147 # Command to truncate a binary pipe.
15148 lt_truncate_bin=$lt_lt_cv_truncate_bin
15149
15150 # The name of the directory that contains temporary libtool files.
15151 objdir=$objdir
15152
15153 # Used to examine libraries when file_magic_cmd begins with "file".
15154 MAGIC_CMD=$MAGIC_CMD
15155
15156 # Must we lock files when doing compilation?
15157 need_locks=$lt_need_locks
15158
15159 # Manifest tool.
15160 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15161
15162 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15163 DSYMUTIL=$lt_DSYMUTIL
15164
15165 # Tool to change global to local symbols on Mac OS X.
15166 NMEDIT=$lt_NMEDIT
15167
15168 # Tool to manipulate fat objects and archives on Mac OS X.
15169 LIPO=$lt_LIPO
15170
15171 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15172 OTOOL=$lt_OTOOL
15173
15174 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15175 OTOOL64=$lt_OTOOL64
15176
15177 # Old archive suffix (normally "a").
15178 libext=$libext
15179
15180 # Shared library suffix (normally ".so").
15181 shrext_cmds=$lt_shrext_cmds
15182
15183 # The commands to extract the exported symbol list from a shared archive.
15184 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15185
15186 # Variables whose values should be saved in libtool wrapper scripts and
15187 # restored at link time.
15188 variables_saved_for_relink=$lt_variables_saved_for_relink
15189
15190 # Do we need the "lib" prefix for modules?
15191 need_lib_prefix=$need_lib_prefix
15192
15193 # Do we need a version for libraries?
15194 need_version=$need_version
15195
15196 # Library versioning type.
15197 version_type=$version_type
15198
15199 # Shared library runtime path variable.
15200 runpath_var=$runpath_var
15201
15202 # Shared library path variable.
15203 shlibpath_var=$shlibpath_var
15204
15205 # Is shlibpath searched before the hard-coded library search path?
15206 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15207
15208 # Format of library name prefix.
15209 libname_spec=$lt_libname_spec
15210
15211 # List of archive names. First name is the real one, the rest are links.
15212 # The last name is the one that the linker finds with -lNAME
15213 library_names_spec=$lt_library_names_spec
15214
15215 # The coded name of the library, if different from the real name.
15216 soname_spec=$lt_soname_spec
15217
15218 # Permission mode override for installation of shared libraries.
15219 install_override_mode=$lt_install_override_mode
15220
15221 # Command to use after installation of a shared archive.
15222 postinstall_cmds=$lt_postinstall_cmds
15223
15224 # Command to use after uninstallation of a shared archive.
15225 postuninstall_cmds=$lt_postuninstall_cmds
15226
15227 # Commands used to finish a libtool library installation in a directory.
15228 finish_cmds=$lt_finish_cmds
15229
15230 # As "finish_cmds", except a single script fragment to be evaled but
15231 # not shown.
15232 finish_eval=$lt_finish_eval
15233
15234 # Whether we should hardcode library paths into libraries.
15235 hardcode_into_libs=$hardcode_into_libs
15236
15237 # Compile-time system search path for libraries.
15238 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15239
15240 # Detected run-time system search path for libraries.
15241 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15242
15243 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15244 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15245
15246 # Whether dlopen is supported.
15247 dlopen_support=$enable_dlopen
15248
15249 # Whether dlopen of programs is supported.
15250 dlopen_self=$enable_dlopen_self
15251
15252 # Whether dlopen of statically linked programs is supported.
15253 dlopen_self_static=$enable_dlopen_self_static
15254
15255 # Commands to strip libraries.
15256 old_striplib=$lt_old_striplib
15257 striplib=$lt_striplib
15258
15259
15260 # The linker used to build libraries.
15261 LD=$lt_LD
15262
15263 # How to create reloadable object files.
15264 reload_flag=$lt_reload_flag
15265 reload_cmds=$lt_reload_cmds
15266
15267 # Commands used to build an old-style archive.
15268 old_archive_cmds=$lt_old_archive_cmds
15269
15270 # A language specific compiler.
15271 CC=$lt_compiler
15272
15273 # Is the compiler the GNU compiler?
15274 with_gcc=$GCC
15275
15276 # Compiler flag to turn off builtin functions.
15277 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15278
15279 # Additional compiler flags for building library objects.
15280 pic_flag=$lt_lt_prog_compiler_pic
15281
15282 # How to pass a linker flag through the compiler.
15283 wl=$lt_lt_prog_compiler_wl
15284
15285 # Compiler flag to prevent dynamic linking.
15286 link_static_flag=$lt_lt_prog_compiler_static
15287
15288 # Does compiler simultaneously support -c and -o options?
15289 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15290
15291 # Whether or not to add -lc for building shared libraries.
15292 build_libtool_need_lc=$archive_cmds_need_lc
15293
15294 # Whether or not to disallow shared libs when runtime libs are static.
15295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15296
15297 # Compiler flag to allow reflexive dlopens.
15298 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15299
15300 # Compiler flag to generate shared objects directly from archives.
15301 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15302
15303 # Whether the compiler copes with passing no objects directly.
15304 compiler_needs_object=$lt_compiler_needs_object
15305
15306 # Create an old-style archive from a shared archive.
15307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15308
15309 # Create a temporary old-style archive to link instead of a shared archive.
15310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15311
15312 # Commands used to build a shared archive.
15313 archive_cmds=$lt_archive_cmds
15314 archive_expsym_cmds=$lt_archive_expsym_cmds
15315
15316 # Commands used to build a loadable module if different from building
15317 # a shared archive.
15318 module_cmds=$lt_module_cmds
15319 module_expsym_cmds=$lt_module_expsym_cmds
15320
15321 # Whether we are building with GNU ld or not.
15322 with_gnu_ld=$lt_with_gnu_ld
15323
15324 # Flag that allows shared libraries with undefined symbols to be built.
15325 allow_undefined_flag=$lt_allow_undefined_flag
15326
15327 # Flag that enforces no undefined symbols.
15328 no_undefined_flag=$lt_no_undefined_flag
15329
15330 # Flag to hardcode \$libdir into a binary during linking.
15331 # This must work even if \$libdir does not exist
15332 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15333
15334 # Whether we need a single "-rpath" flag with a separated argument.
15335 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15336
15337 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15338 # DIR into the resulting binary.
15339 hardcode_direct=$hardcode_direct
15340
15341 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15342 # DIR into the resulting binary and the resulting library dependency is
15343 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15344 # library is relocated.
15345 hardcode_direct_absolute=$hardcode_direct_absolute
15346
15347 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15348 # into the resulting binary.
15349 hardcode_minus_L=$hardcode_minus_L
15350
15351 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15352 # into the resulting binary.
15353 hardcode_shlibpath_var=$hardcode_shlibpath_var
15354
15355 # Set to "yes" if building a shared library automatically hardcodes DIR
15356 # into the library and all subsequent libraries and executables linked
15357 # against it.
15358 hardcode_automatic=$hardcode_automatic
15359
15360 # Set to yes if linker adds runtime paths of dependent libraries
15361 # to runtime path list.
15362 inherit_rpath=$inherit_rpath
15363
15364 # Whether libtool must link a program against all its dependency libraries.
15365 link_all_deplibs=$link_all_deplibs
15366
15367 # Set to "yes" if exported symbols are required.
15368 always_export_symbols=$always_export_symbols
15369
15370 # The commands to list exported symbols.
15371 export_symbols_cmds=$lt_export_symbols_cmds
15372
15373 # Symbols that should not be listed in the preloaded symbols.
15374 exclude_expsyms=$lt_exclude_expsyms
15375
15376 # Symbols that must always be exported.
15377 include_expsyms=$lt_include_expsyms
15378
15379 # Commands necessary for linking programs (against libraries) with templates.
15380 prelink_cmds=$lt_prelink_cmds
15381
15382 # Commands necessary for finishing linking programs.
15383 postlink_cmds=$lt_postlink_cmds
15384
15385 # Specify filename containing input files.
15386 file_list_spec=$lt_file_list_spec
15387
15388 # How to hardcode a shared library path into an executable.
15389 hardcode_action=$hardcode_action
15390
15391 # ### END LIBTOOL CONFIG
15392
15393 _LT_EOF
15394
15395 cat <<'_LT_EOF' >> "$cfgfile"
15396
15397 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15398
15399 # func_munge_path_list VARIABLE PATH
15400 # -----------------------------------
15401 # VARIABLE is name of variable containing _space_ separated list of
15402 # directories to be munged by the contents of PATH, which is string
15403 # having a format:
15404 # "DIR[:DIR]:"
15405 # string "DIR[ DIR]" will be prepended to VARIABLE
15406 # ":DIR[:DIR]"
15407 # string "DIR[ DIR]" will be appended to VARIABLE
15408 # "DIRP[:DIRP]::[DIRA:]DIRA"
15409 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15410 # "DIRA[ DIRA]" will be appended to VARIABLE
15411 # "DIR[:DIR]"
15412 # VARIABLE will be replaced by "DIR[ DIR]"
15413 func_munge_path_list ()
15414 {
15415 case x$2 in
15416 x)
15417 ;;
15418 *:)
15419 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15420 ;;
15421 x:*)
15422 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15423 ;;
15424 *::*)
15425 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15426 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15427 ;;
15428 *)
15429 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15430 ;;
15431 esac
15432 }
15433
15434
15435 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15436 func_cc_basename ()
15437 {
15438 for cc_temp in $*""; do
15439 case $cc_temp in
15440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15442 \-*) ;;
15443 *) break;;
15444 esac
15445 done
15446 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15447 }
15448
15449
15450 # ### END FUNCTIONS SHARED WITH CONFIGURE
15451
15452 _LT_EOF
15453
15454 case $host_os in
15455 aix3*)
15456 cat <<\_LT_EOF >> "$cfgfile"
15457 # AIX sometimes has problems with the GCC collect2 program. For some
15458 # reason, if we set the COLLECT_NAMES environment variable, the problems
15459 # vanish in a puff of smoke.
15460 if test set != "${COLLECT_NAMES+set}"; then
15461 COLLECT_NAMES=
15462 export COLLECT_NAMES
15463 fi
15464 _LT_EOF
15465 ;;
15466 esac
15467
15468
15469 ltmain=$ac_aux_dir/ltmain.sh
15470
15471
15472 # We use sed instead of cat because bash on DJGPP gets confused if
15473 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15474 # text mode, it properly converts lines to CR/LF. This bash problem
15475 # is reportedly fixed, but why not run on old versions too?
15476 sed '$q' "$ltmain" >> "$cfgfile" \
15477 || (rm -f "$cfgfile"; exit 1)
15478
15479 mv -f "$cfgfile" "$ofile" ||
15480 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15481 chmod +x "$ofile"
15482
15483 ;;
15484
15485 esac
15486 done # for ac_tag
15487
15488
15489 as_fn_exit 0
15490 _ACEOF
15491 ac_clean_files=$ac_clean_files_save
15492
15493 test $ac_write_fail = 0 ||
15494 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15495
15496
15497 # configure is writing to config.log, and then calls config.status.
15498 # config.status does its own redirection, appending to config.log.
15499 # Unfortunately, on DOS this fails, as config.log is still kept open
15500 # by configure, so config.status won't be able to write to it; its
15501 # output is simply discarded. So we exec the FD to /dev/null,
15502 # effectively closing config.log, so it can be properly (re)opened and
15503 # appended to by config.status. When coming back to configure, we
15504 # need to make the FD available again.
15505 if test "$no_create" != yes; then
15506 ac_cs_success=:
15507 ac_config_status_args=
15508 test "$silent" = yes &&
15509 ac_config_status_args="$ac_config_status_args --quiet"
15510 exec 5>/dev/null
15511 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15512 exec 5>>config.log
15513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15514 # would make configure fail if this is the last instruction.
15515 $ac_cs_success || as_fn_exit 1
15516 fi
15517 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15519 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15520 fi
15521