Import Upstream version 0.66.4
[hcoop/debian/courier-authlib.git] / libs / sha1 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libsha1 1.21.
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
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
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='libsha1'
592 PACKAGE_TARNAME='libsha1'
593 PACKAGE_VERSION='1.21'
594 PACKAGE_STRING='libsha1 1.21'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="hmac.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 CPP
640 LT_SYS_LIBRARY_PATH
641 OTOOL64
642 OTOOL
643 LIPO
644 NMEDIT
645 DSYMUTIL
646 MANIFEST_TOOL
647 RANLIB
648 ac_ct_AR
649 AR
650 DLLTOOL
651 OBJDUMP
652 NM
653 ac_ct_DUMPBIN
654 DUMPBIN
655 LD
656 FGREP
657 EGREP
658 GREP
659 SED
660 host_os
661 host_vendor
662 host_cpu
663 host
664 build_os
665 build_vendor
666 build_cpu
667 build
668 LIBTOOL
669 LN_S
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 HMACC_FALSE
688 HMACC_TRUE
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 with_int32
768 with_int64
769 enable_largefile
770 '
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 LT_SYS_LIBRARY_PATH
780 CPP'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 ;;
1187
1188 esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209 do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures libsha1 1.21 to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/libsha1]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of libsha1 1.21:";;
1392 esac
1393 cat <<\_ACEOF
1394
1395 Optional Features:
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-silent-rules less verbose build output (undo: "make V=1")
1400 --disable-silent-rules verbose build output (undo: "make V=0")
1401 --enable-dependency-tracking
1402 do not reject slow dependency extractors
1403 --disable-dependency-tracking
1404 speeds up one-time build
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
1410 --disable-largefile omit support for large files
1411
1412 Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1416 both]
1417 --with-aix-soname=aix|svr4|both
1418 shared library versioning (aka "SONAME") variant to
1419 provide on AIX, [default=aix].
1420 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1421 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1422 compiler's sysroot if not specified).
1423 --with-int32='type' use 'type' for an unsigned 32 bit integer type
1424 ( default is 'unsigned')
1425 --with-int64='type' use 'type' for an unsigned 64 bit integer type
1426 ( default is 'unsigned')
1427
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 LT_SYS_LIBRARY_PATH
1437 User-defined run-time library search path.
1438 CPP C preprocessor
1439
1440 Use these variables to override the choices made by `configure' or to help
1441 it to find libraries and programs with nonstandard names/locations.
1442
1443 Report bugs to <courier-users@lists.sourceforge.net>.
1444 _ACEOF
1445 ac_status=$?
1446 fi
1447
1448 if test "$ac_init_help" = "recursive"; then
1449 # If there are subdirs, report their specific --help.
1450 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1451 test -d "$ac_dir" ||
1452 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1453 continue
1454 ac_builddir=.
1455
1456 case "$ac_dir" in
1457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *)
1459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1460 # A ".." for each directory in $ac_dir_suffix.
1461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1462 case $ac_top_builddir_sub in
1463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1465 esac ;;
1466 esac
1467 ac_abs_top_builddir=$ac_pwd
1468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1469 # for backward compatibility:
1470 ac_top_builddir=$ac_top_build_prefix
1471
1472 case $srcdir in
1473 .) # We are building in place.
1474 ac_srcdir=.
1475 ac_top_srcdir=$ac_top_builddir_sub
1476 ac_abs_top_srcdir=$ac_pwd ;;
1477 [\\/]* | ?:[\\/]* ) # Absolute name.
1478 ac_srcdir=$srcdir$ac_dir_suffix;
1479 ac_top_srcdir=$srcdir
1480 ac_abs_top_srcdir=$srcdir ;;
1481 *) # Relative name.
1482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1483 ac_top_srcdir=$ac_top_build_prefix$srcdir
1484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1485 esac
1486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487
1488 cd "$ac_dir" || { ac_status=$?; continue; }
1489 # Check for guested configure.
1490 if test -f "$ac_srcdir/configure.gnu"; then
1491 echo &&
1492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1493 elif test -f "$ac_srcdir/configure"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure" --help=recursive
1496 else
1497 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498 fi || ac_status=$?
1499 cd "$ac_pwd" || { ac_status=$?; break; }
1500 done
1501 fi
1502
1503 test -n "$ac_init_help" && exit $ac_status
1504 if $ac_init_version; then
1505 cat <<\_ACEOF
1506 libsha1 configure 1.21
1507 generated by GNU Autoconf 2.69
1508
1509 Copyright (C) 2012 Free Software Foundation, Inc.
1510 This configure script is free software; the Free Software Foundation
1511 gives unlimited permission to copy, distribute and modify it.
1512 _ACEOF
1513 exit
1514 fi
1515
1516 ## ------------------------ ##
1517 ## Autoconf initialization. ##
1518 ## ------------------------ ##
1519
1520 # ac_fn_c_try_compile LINENO
1521 # --------------------------
1522 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1523 ac_fn_c_try_compile ()
1524 {
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 rm -f conftest.$ac_objext
1527 if { { ac_try="$ac_compile"
1528 case "(($ac_try" in
1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1531 esac
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_compile") 2>conftest.err
1535 ac_status=$?
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1540 fi
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } && {
1543 test -z "$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 } && test -s conftest.$ac_objext; then :
1546 ac_retval=0
1547 else
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1550
1551 ac_retval=1
1552 fi
1553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554 as_fn_set_status $ac_retval
1555
1556 } # ac_fn_c_try_compile
1557
1558 # ac_fn_c_try_link LINENO
1559 # -----------------------
1560 # Try to link conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_link ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext conftest$ac_exeext
1565 if { { ac_try="$ac_link"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_link") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest$ac_exeext && {
1584 test "$cross_compiling" = yes ||
1585 test -x conftest$ac_exeext
1586 }; then :
1587 ac_retval=0
1588 else
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1591
1592 ac_retval=1
1593 fi
1594 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1595 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1596 # interfere with the next link command; also delete a directory that is
1597 # left behind by Apple's compiler. We do this before executing the actions.
1598 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1601
1602 } # ac_fn_c_try_link
1603
1604 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1605 # -------------------------------------------------------
1606 # Tests whether HEADER exists and can be compiled using the include files in
1607 # INCLUDES, setting the cache variable VAR accordingly.
1608 ac_fn_c_check_header_compile ()
1609 {
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if eval \${$3+:} false; then :
1614 $as_echo_n "(cached) " >&6
1615 else
1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h. */
1618 $4
1619 #include <$2>
1620 _ACEOF
1621 if ac_fn_c_try_compile "$LINENO"; then :
1622 eval "$3=yes"
1623 else
1624 eval "$3=no"
1625 fi
1626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1627 fi
1628 eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630 $as_echo "$ac_res" >&6; }
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632
1633 } # ac_fn_c_check_header_compile
1634
1635 # ac_fn_c_try_cpp LINENO
1636 # ----------------------
1637 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_cpp ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if { { ac_try="$ac_cpp conftest.$ac_ext"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1654 fi
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } > conftest.i && {
1657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 }; then :
1660 ac_retval=0
1661 else
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665 ac_retval=1
1666 fi
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_cpp
1671
1672 # ac_fn_c_try_run LINENO
1673 # ----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1675 # that executables *can* be run.
1676 ac_fn_c_try_run ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_link"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>&5
1687 ac_status=$?
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1690 { { case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_try") 2>&5
1697 ac_status=$?
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; }; }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: program exited with status $ac_status" >&5
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=$ac_status
1707 fi
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_run
1713
1714 # ac_fn_c_check_func LINENO FUNC VAR
1715 # ----------------------------------
1716 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1717 ac_fn_c_check_func ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 else
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1729 #define $2 innocuous_$2
1730
1731 /* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char $2 (); below.
1733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1734 <limits.h> exists even on freestanding compilers. */
1735
1736 #ifdef __STDC__
1737 # include <limits.h>
1738 #else
1739 # include <assert.h>
1740 #endif
1741
1742 #undef $2
1743
1744 /* Override any GCC internal prototype to avoid an error.
1745 Use char because int might match the return type of a GCC
1746 builtin and then its argument prototype would still apply. */
1747 #ifdef __cplusplus
1748 extern "C"
1749 #endif
1750 char $2 ();
1751 /* The GNU C library defines this for functions which it implements
1752 to always fail with ENOSYS. Some functions are actually named
1753 something starting with __ and the normal name is an alias. */
1754 #if defined __stub_$2 || defined __stub___$2
1755 choke me
1756 #endif
1757
1758 int
1759 main ()
1760 {
1761 return $2 ();
1762 ;
1763 return 0;
1764 }
1765 _ACEOF
1766 if ac_fn_c_try_link "$LINENO"; then :
1767 eval "$3=yes"
1768 else
1769 eval "$3=no"
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext \
1772 conftest$ac_exeext conftest.$ac_ext
1773 fi
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
1779 } # ac_fn_c_check_func
1780
1781 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782 # -------------------------------------------------------
1783 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784 # the include files in INCLUDES and setting the cache variable VAR
1785 # accordingly.
1786 ac_fn_c_check_header_mongrel ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if eval \${$3+:} false; then :
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1794 fi
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 else
1799 # Is the header compilable?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801 $as_echo_n "checking $2 usability... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 $4
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_header_compiler=yes
1809 else
1810 ac_header_compiler=no
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814 $as_echo "$ac_header_compiler" >&6; }
1815
1816 # Is the header present?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818 $as_echo_n "checking $2 presence... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_cpp "$LINENO"; then :
1824 ac_header_preproc=yes
1825 else
1826 ac_header_preproc=no
1827 fi
1828 rm -f conftest.err conftest.i conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830 $as_echo "$ac_header_preproc" >&6; }
1831
1832 # So? What about this header?
1833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1834 yes:no: )
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 ;;
1840 no:yes:* )
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1844 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1848 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851 ( $as_echo "## -------------------------------------------------- ##
1852 ## Report this to courier-users@lists.sourceforge.net ##
1853 ## -------------------------------------------------- ##"
1854 ) | sed "s/^/$as_me: WARNING: /" >&2
1855 ;;
1856 esac
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 eval "$3=\$ac_header_compiler"
1863 fi
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 fi
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870 } # ac_fn_c_check_header_mongrel
1871
1872 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1873 # --------------------------------------------
1874 # Tries to find the compile-time value of EXPR in a program that includes
1875 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1876 # computed
1877 ac_fn_c_compute_int ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if test "$cross_compiling" = yes; then
1881 # Depending upon the size, compute the lo and hi bounds.
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 $4
1885 int
1886 main ()
1887 {
1888 static int test_array [1 - 2 * !(($2) >= 0)];
1889 test_array [0] = 0;
1890 return test_array [0];
1891
1892 ;
1893 return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_lo=0 ac_mid=0
1898 while :; do
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 $4
1902 int
1903 main ()
1904 {
1905 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1906 test_array [0] = 0;
1907 return test_array [0];
1908
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_hi=$ac_mid; break
1915 else
1916 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1917 if test $ac_lo -le $ac_mid; then
1918 ac_lo= ac_hi=
1919 break
1920 fi
1921 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 done
1925 else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $4
1929 int
1930 main ()
1931 {
1932 static int test_array [1 - 2 * !(($2) < 0)];
1933 test_array [0] = 0;
1934 return test_array [0];
1935
1936 ;
1937 return 0;
1938 }
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_hi=-1 ac_mid=-1
1942 while :; do
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 $4
1946 int
1947 main ()
1948 {
1949 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1950 test_array [0] = 0;
1951 return test_array [0];
1952
1953 ;
1954 return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_lo=$ac_mid; break
1959 else
1960 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1961 if test $ac_mid -le $ac_hi; then
1962 ac_lo= ac_hi=
1963 break
1964 fi
1965 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 done
1969 else
1970 ac_lo= ac_hi=
1971 fi
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 # Binary search between lo and hi bounds.
1976 while test "x$ac_lo" != "x$ac_hi"; do
1977 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $4
1981 int
1982 main ()
1983 {
1984 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1985 test_array [0] = 0;
1986 return test_array [0];
1987
1988 ;
1989 return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_hi=$ac_mid
1994 else
1995 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 done
1999 case $ac_lo in #((
2000 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2001 '') ac_retval=1 ;;
2002 esac
2003 else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $4
2007 static long int longval () { return $2; }
2008 static unsigned long int ulongval () { return $2; }
2009 #include <stdio.h>
2010 #include <stdlib.h>
2011 int
2012 main ()
2013 {
2014
2015 FILE *f = fopen ("conftest.val", "w");
2016 if (! f)
2017 return 1;
2018 if (($2) < 0)
2019 {
2020 long int i = longval ();
2021 if (i != ($2))
2022 return 1;
2023 fprintf (f, "%ld", i);
2024 }
2025 else
2026 {
2027 unsigned long int i = ulongval ();
2028 if (i != ($2))
2029 return 1;
2030 fprintf (f, "%lu", i);
2031 }
2032 /* Do not output a trailing newline, as this causes \r\n confusion
2033 on some platforms. */
2034 return ferror (f) || fclose (f) != 0;
2035
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_run "$LINENO"; then :
2041 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2042 else
2043 ac_retval=1
2044 fi
2045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2046 conftest.$ac_objext conftest.beam conftest.$ac_ext
2047 rm -f conftest.val
2048
2049 fi
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 as_fn_set_status $ac_retval
2052
2053 } # ac_fn_c_compute_int
2054 cat >config.log <<_ACEOF
2055 This file contains any messages produced by compilers while
2056 running configure, to aid debugging if configure makes a mistake.
2057
2058 It was created by libsha1 $as_me 1.21, which was
2059 generated by GNU Autoconf 2.69. Invocation command line was
2060
2061 $ $0 $@
2062
2063 _ACEOF
2064 exec 5>>config.log
2065 {
2066 cat <<_ASUNAME
2067 ## --------- ##
2068 ## Platform. ##
2069 ## --------- ##
2070
2071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2076
2077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2078 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2079
2080 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2081 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2083 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2084 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2085 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2086 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2087
2088 _ASUNAME
2089
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 $as_echo "PATH: $as_dir"
2096 done
2097 IFS=$as_save_IFS
2098
2099 } >&5
2100
2101 cat >&5 <<_ACEOF
2102
2103
2104 ## ----------- ##
2105 ## Core tests. ##
2106 ## ----------- ##
2107
2108 _ACEOF
2109
2110
2111 # Keep a trace of the command line.
2112 # Strip out --no-create and --no-recursion so they do not pile up.
2113 # Strip out --silent because we don't want to record it for future runs.
2114 # Also quote any args containing shell meta-characters.
2115 # Make two passes to allow for proper duplicate-argument suppression.
2116 ac_configure_args=
2117 ac_configure_args0=
2118 ac_configure_args1=
2119 ac_must_keep_next=false
2120 for ac_pass in 1 2
2121 do
2122 for ac_arg
2123 do
2124 case $ac_arg in
2125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2127 | -silent | --silent | --silen | --sile | --sil)
2128 continue ;;
2129 *\'*)
2130 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2131 esac
2132 case $ac_pass in
2133 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2134 2)
2135 as_fn_append ac_configure_args1 " '$ac_arg'"
2136 if test $ac_must_keep_next = true; then
2137 ac_must_keep_next=false # Got value, back to normal.
2138 else
2139 case $ac_arg in
2140 *=* | --config-cache | -C | -disable-* | --disable-* \
2141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2143 | -with-* | --with-* | -without-* | --without-* | --x)
2144 case "$ac_configure_args0 " in
2145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2146 esac
2147 ;;
2148 -* ) ac_must_keep_next=true ;;
2149 esac
2150 fi
2151 as_fn_append ac_configure_args " '$ac_arg'"
2152 ;;
2153 esac
2154 done
2155 done
2156 { ac_configure_args0=; unset ac_configure_args0;}
2157 { ac_configure_args1=; unset ac_configure_args1;}
2158
2159 # When interrupted or exit'd, cleanup temporary files, and complete
2160 # config.log. We remove comments because anyway the quotes in there
2161 # would cause problems or look ugly.
2162 # WARNING: Use '\'' to represent an apostrophe within the trap.
2163 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2164 trap 'exit_status=$?
2165 # Save into config.log some information that might help in debugging.
2166 {
2167 echo
2168
2169 $as_echo "## ---------------- ##
2170 ## Cache variables. ##
2171 ## ---------------- ##"
2172 echo
2173 # The following way of writing the cache mishandles newlines in values,
2174 (
2175 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2176 eval ac_val=\$$ac_var
2177 case $ac_val in #(
2178 *${as_nl}*)
2179 case $ac_var in #(
2180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2181 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2182 esac
2183 case $ac_var in #(
2184 _ | IFS | as_nl) ;; #(
2185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2186 *) { eval $ac_var=; unset $ac_var;} ;;
2187 esac ;;
2188 esac
2189 done
2190 (set) 2>&1 |
2191 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2192 *${as_nl}ac_space=\ *)
2193 sed -n \
2194 "s/'\''/'\''\\\\'\'''\''/g;
2195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2196 ;; #(
2197 *)
2198 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2199 ;;
2200 esac |
2201 sort
2202 )
2203 echo
2204
2205 $as_echo "## ----------------- ##
2206 ## Output variables. ##
2207 ## ----------------- ##"
2208 echo
2209 for ac_var in $ac_subst_vars
2210 do
2211 eval ac_val=\$$ac_var
2212 case $ac_val in
2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214 esac
2215 $as_echo "$ac_var='\''$ac_val'\''"
2216 done | sort
2217 echo
2218
2219 if test -n "$ac_subst_files"; then
2220 $as_echo "## ------------------- ##
2221 ## File substitutions. ##
2222 ## ------------------- ##"
2223 echo
2224 for ac_var in $ac_subst_files
2225 do
2226 eval ac_val=\$$ac_var
2227 case $ac_val in
2228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2229 esac
2230 $as_echo "$ac_var='\''$ac_val'\''"
2231 done | sort
2232 echo
2233 fi
2234
2235 if test -s confdefs.h; then
2236 $as_echo "## ----------- ##
2237 ## confdefs.h. ##
2238 ## ----------- ##"
2239 echo
2240 cat confdefs.h
2241 echo
2242 fi
2243 test "$ac_signal" != 0 &&
2244 $as_echo "$as_me: caught signal $ac_signal"
2245 $as_echo "$as_me: exit $exit_status"
2246 } >&5
2247 rm -f core *.core core.conftest.* &&
2248 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2249 exit $exit_status
2250 ' 0
2251 for ac_signal in 1 2 13 15; do
2252 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2253 done
2254 ac_signal=0
2255
2256 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2257 rm -f -r conftest* confdefs.h
2258
2259 $as_echo "/* confdefs.h */" > confdefs.h
2260
2261 # Predefined preprocessor variables.
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_NAME "$PACKAGE_NAME"
2265 _ACEOF
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2269 _ACEOF
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_STRING "$PACKAGE_STRING"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2281 _ACEOF
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_URL "$PACKAGE_URL"
2285 _ACEOF
2286
2287
2288 # Let the site file select an alternate cache file if it wants to.
2289 # Prefer an explicitly selected file to automatically selected ones.
2290 ac_site_file1=NONE
2291 ac_site_file2=NONE
2292 if test -n "$CONFIG_SITE"; then
2293 # We do not want a PATH search for config.site.
2294 case $CONFIG_SITE in #((
2295 -*) ac_site_file1=./$CONFIG_SITE;;
2296 */*) ac_site_file1=$CONFIG_SITE;;
2297 *) ac_site_file1=./$CONFIG_SITE;;
2298 esac
2299 elif test "x$prefix" != xNONE; then
2300 ac_site_file1=$prefix/share/config.site
2301 ac_site_file2=$prefix/etc/config.site
2302 else
2303 ac_site_file1=$ac_default_prefix/share/config.site
2304 ac_site_file2=$ac_default_prefix/etc/config.site
2305 fi
2306 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2307 do
2308 test "x$ac_site_file" = xNONE && continue
2309 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2311 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2312 sed 's/^/| /' "$ac_site_file" >&5
2313 . "$ac_site_file" \
2314 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2316 as_fn_error $? "failed to load site script $ac_site_file
2317 See \`config.log' for more details" "$LINENO" 5; }
2318 fi
2319 done
2320
2321 if test -r "$cache_file"; then
2322 # Some versions of bash will fail to source /dev/null (special files
2323 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2324 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2326 $as_echo "$as_me: loading cache $cache_file" >&6;}
2327 case $cache_file in
2328 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2329 *) . "./$cache_file";;
2330 esac
2331 fi
2332 else
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2334 $as_echo "$as_me: creating cache $cache_file" >&6;}
2335 >$cache_file
2336 fi
2337
2338 # Check that the precious variables saved in the cache have kept the same
2339 # value.
2340 ac_cache_corrupted=false
2341 for ac_var in $ac_precious_vars; do
2342 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2343 eval ac_new_set=\$ac_env_${ac_var}_set
2344 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2345 eval ac_new_val=\$ac_env_${ac_var}_value
2346 case $ac_old_set,$ac_new_set in
2347 set,)
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2349 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2350 ac_cache_corrupted=: ;;
2351 ,set)
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2353 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2354 ac_cache_corrupted=: ;;
2355 ,);;
2356 *)
2357 if test "x$ac_old_val" != "x$ac_new_val"; then
2358 # differences in whitespace do not lead to failure.
2359 ac_old_val_w=`echo x $ac_old_val`
2360 ac_new_val_w=`echo x $ac_new_val`
2361 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2363 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2364 ac_cache_corrupted=:
2365 else
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2367 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2368 eval $ac_var=\$ac_old_val
2369 fi
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2371 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2373 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2374 fi;;
2375 esac
2376 # Pass precious variables to config.status.
2377 if test "$ac_new_set" = set; then
2378 case $ac_new_val in
2379 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2380 *) ac_arg=$ac_var=$ac_new_val ;;
2381 esac
2382 case " $ac_configure_args " in
2383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2384 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2385 esac
2386 fi
2387 done
2388 if $ac_cache_corrupted; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2392 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2393 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2394 fi
2395 ## -------------------- ##
2396 ## Main body of script. ##
2397 ## -------------------- ##
2398
2399 ac_ext=c
2400 ac_cpp='$CPP $CPPFLAGS'
2401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404
2405
2406
2407 >confdefs.h # Kill PACKAGE_ macros
2408
2409
2410 ac_aux_dir=
2411 for ac_dir in ../.. "$srcdir"/../..; do
2412 if test -f "$ac_dir/install-sh"; then
2413 ac_aux_dir=$ac_dir
2414 ac_install_sh="$ac_aux_dir/install-sh -c"
2415 break
2416 elif test -f "$ac_dir/install.sh"; then
2417 ac_aux_dir=$ac_dir
2418 ac_install_sh="$ac_aux_dir/install.sh -c"
2419 break
2420 elif test -f "$ac_dir/shtool"; then
2421 ac_aux_dir=$ac_dir
2422 ac_install_sh="$ac_aux_dir/shtool install -c"
2423 break
2424 fi
2425 done
2426 if test -z "$ac_aux_dir"; then
2427 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2428 fi
2429
2430 # These three variables are undocumented and unsupported,
2431 # and are intended to be withdrawn in a future Autoconf release.
2432 # They can cause serious problems if a builder's source tree is in a directory
2433 # whose full name contains unusual characters.
2434 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2435 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2436 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2437
2438
2439 ac_config_headers="$ac_config_headers config.h"
2440
2441 am__api_version='1.15'
2442
2443 # Find a good install program. We prefer a C program (faster),
2444 # so one script is as good as another. But avoid the broken or
2445 # incompatible versions:
2446 # SysV /etc/install, /usr/sbin/install
2447 # SunOS /usr/etc/install
2448 # IRIX /sbin/install
2449 # AIX /bin/install
2450 # AmigaOS /C/install, which installs bootblocks on floppy discs
2451 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2452 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2453 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2454 # OS/2's system install, which has a completely different semantic
2455 # ./install, which can be erroneously created by make from ./install.sh.
2456 # Reject install programs that cannot install multiple files.
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2458 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2459 if test -z "$INSTALL"; then
2460 if ${ac_cv_path_install+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 # Account for people who put trailing slashes in PATH elements.
2469 case $as_dir/ in #((
2470 ./ | .// | /[cC]/* | \
2471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2472 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2473 /usr/ucb/* ) ;;
2474 *)
2475 # OSF1 and SCO ODT 3.0 have their own names for install.
2476 # Don't use installbsd from OSF since it installs stuff as root
2477 # by default.
2478 for ac_prog in ginstall scoinst install; do
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2481 if test $ac_prog = install &&
2482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # AIX install. It has an incompatible calling convention.
2484 :
2485 elif test $ac_prog = install &&
2486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # program-specific install script used by HP pwplus--don't use.
2488 :
2489 else
2490 rm -rf conftest.one conftest.two conftest.dir
2491 echo one > conftest.one
2492 echo two > conftest.two
2493 mkdir conftest.dir
2494 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2495 test -s conftest.one && test -s conftest.two &&
2496 test -s conftest.dir/conftest.one &&
2497 test -s conftest.dir/conftest.two
2498 then
2499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2500 break 3
2501 fi
2502 fi
2503 fi
2504 done
2505 done
2506 ;;
2507 esac
2508
2509 done
2510 IFS=$as_save_IFS
2511
2512 rm -rf conftest.one conftest.two conftest.dir
2513
2514 fi
2515 if test "${ac_cv_path_install+set}" = set; then
2516 INSTALL=$ac_cv_path_install
2517 else
2518 # As a last resort, use the slow shell script. Don't cache a
2519 # value for INSTALL within a source directory, because that will
2520 # break other packages using the cache if that directory is
2521 # removed, or if the value is a relative name.
2522 INSTALL=$ac_install_sh
2523 fi
2524 fi
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2526 $as_echo "$INSTALL" >&6; }
2527
2528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2529 # It thinks the first close brace ends the variable substitution.
2530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2531
2532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2533
2534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2535
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2537 $as_echo_n "checking whether build environment is sane... " >&6; }
2538 # Reject unsafe characters in $srcdir or the absolute working directory
2539 # name. Accept space and tab only in the latter.
2540 am_lf='
2541 '
2542 case `pwd` in
2543 *[\\\"\#\$\&\'\`$am_lf]*)
2544 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2545 esac
2546 case $srcdir in
2547 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2548 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2549 esac
2550
2551 # Do 'set' in a subshell so we don't clobber the current shell's
2552 # arguments. Must try -L first in case configure is actually a
2553 # symlink; some systems play weird games with the mod time of symlinks
2554 # (eg FreeBSD returns the mod time of the symlink's containing
2555 # directory).
2556 if (
2557 am_has_slept=no
2558 for am_try in 1 2; do
2559 echo "timestamp, slept: $am_has_slept" > conftest.file
2560 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2561 if test "$*" = "X"; then
2562 # -L didn't work.
2563 set X `ls -t "$srcdir/configure" conftest.file`
2564 fi
2565 if test "$*" != "X $srcdir/configure conftest.file" \
2566 && test "$*" != "X conftest.file $srcdir/configure"; then
2567
2568 # If neither matched, then we have a broken ls. This can happen
2569 # if, for instance, CONFIG_SHELL is bash and it inherits a
2570 # broken ls alias from the environment. This has actually
2571 # happened. Such a system could not be considered "sane".
2572 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2573 alias in your environment" "$LINENO" 5
2574 fi
2575 if test "$2" = conftest.file || test $am_try -eq 2; then
2576 break
2577 fi
2578 # Just in case.
2579 sleep 1
2580 am_has_slept=yes
2581 done
2582 test "$2" = conftest.file
2583 )
2584 then
2585 # Ok.
2586 :
2587 else
2588 as_fn_error $? "newly created file is older than distributed files!
2589 Check your system clock" "$LINENO" 5
2590 fi
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2592 $as_echo "yes" >&6; }
2593 # If we didn't sleep, we still need to ensure time stamps of config.status and
2594 # generated files are strictly newer.
2595 am_sleep_pid=
2596 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2597 ( sleep 1 ) &
2598 am_sleep_pid=$!
2599 fi
2600
2601 rm -f conftest.file
2602
2603 test "$program_prefix" != NONE &&
2604 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2605 # Use a double $ so make ignores it.
2606 test "$program_suffix" != NONE &&
2607 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2608 # Double any \ or $.
2609 # By default was `s,x,x', remove it if useless.
2610 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2611 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2612
2613 # Expand $ac_aux_dir to an absolute path.
2614 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2615
2616 if test x"${MISSING+set}" != xset; then
2617 case $am_aux_dir in
2618 *\ * | *\ *)
2619 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2620 *)
2621 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2622 esac
2623 fi
2624 # Use eval to expand $SHELL
2625 if eval "$MISSING --is-lightweight"; then
2626 am_missing_run="$MISSING "
2627 else
2628 am_missing_run=
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2630 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2631 fi
2632
2633 if test x"${install_sh+set}" != xset; then
2634 case $am_aux_dir in
2635 *\ * | *\ *)
2636 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2637 *)
2638 install_sh="\${SHELL} $am_aux_dir/install-sh"
2639 esac
2640 fi
2641
2642 # Installed binaries are usually stripped using 'strip' when the user
2643 # run "make install-strip". However 'strip' might not be the right
2644 # tool to use in cross-compilation environments, therefore Automake
2645 # will honor the 'STRIP' environment variable to overrule this program.
2646 if test "$cross_compiling" != no; then
2647 if test -n "$ac_tool_prefix"; then
2648 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2649 set dummy ${ac_tool_prefix}strip; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if ${ac_cv_prog_STRIP+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$STRIP"; then
2656 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2668 fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 STRIP=$ac_cv_prog_STRIP
2676 if test -n "$STRIP"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2678 $as_echo "$STRIP" >&6; }
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685 fi
2686 if test -z "$ac_cv_prog_STRIP"; then
2687 ac_ct_STRIP=$STRIP
2688 # Extract the first word of "strip", so it can be a program name with args.
2689 set dummy strip; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$ac_ct_STRIP"; then
2696 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_ac_ct_STRIP="strip"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709 done
2710 done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2716 if test -n "$ac_ct_STRIP"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2718 $as_echo "$ac_ct_STRIP" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724 if test "x$ac_ct_STRIP" = x; then
2725 STRIP=":"
2726 else
2727 case $cross_compiling:$ac_tool_warned in
2728 yes:)
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2731 ac_tool_warned=yes ;;
2732 esac
2733 STRIP=$ac_ct_STRIP
2734 fi
2735 else
2736 STRIP="$ac_cv_prog_STRIP"
2737 fi
2738
2739 fi
2740 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2741
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2743 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2744 if test -z "$MKDIR_P"; then
2745 if ${ac_cv_path_mkdir+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_prog in mkdir gmkdir; do
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2756 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2757 'mkdir (GNU coreutils) '* | \
2758 'mkdir (coreutils) '* | \
2759 'mkdir (fileutils) '4.1*)
2760 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2761 break 3;;
2762 esac
2763 done
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 fi
2769
2770 test -d ./--version && rmdir ./--version
2771 if test "${ac_cv_path_mkdir+set}" = set; then
2772 MKDIR_P="$ac_cv_path_mkdir -p"
2773 else
2774 # As a last resort, use the slow shell script. Don't cache a
2775 # value for MKDIR_P within a source directory, because that will
2776 # break other packages using the cache if that directory is
2777 # removed, or if the value is a relative name.
2778 MKDIR_P="$ac_install_sh -d"
2779 fi
2780 fi
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2782 $as_echo "$MKDIR_P" >&6; }
2783
2784 for ac_prog in gawk mawk nawk awk
2785 do
2786 # Extract the first word of "$ac_prog", so it can be a program name with args.
2787 set dummy $ac_prog; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_AWK+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test -n "$AWK"; then
2794 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_AWK="$ac_prog"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 AWK=$ac_cv_prog_AWK
2814 if test -n "$AWK"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2816 $as_echo "$AWK" >&6; }
2817 else
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2820 fi
2821
2822
2823 test -n "$AWK" && break
2824 done
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2827 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2828 set x ${MAKE-make}
2829 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2830 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 cat >conftest.make <<\_ACEOF
2834 SHELL = /bin/sh
2835 all:
2836 @echo '@@@%%%=$(MAKE)=@@@%%%'
2837 _ACEOF
2838 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2839 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2840 *@@@%%%=?*=@@@%%%*)
2841 eval ac_cv_prog_make_${ac_make}_set=yes;;
2842 *)
2843 eval ac_cv_prog_make_${ac_make}_set=no;;
2844 esac
2845 rm -f conftest.make
2846 fi
2847 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2849 $as_echo "yes" >&6; }
2850 SET_MAKE=
2851 else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2854 SET_MAKE="MAKE=${MAKE-make}"
2855 fi
2856
2857 rm -rf .tst 2>/dev/null
2858 mkdir .tst 2>/dev/null
2859 if test -d .tst; then
2860 am__leading_dot=.
2861 else
2862 am__leading_dot=_
2863 fi
2864 rmdir .tst 2>/dev/null
2865
2866 # Check whether --enable-silent-rules was given.
2867 if test "${enable_silent_rules+set}" = set; then :
2868 enableval=$enable_silent_rules;
2869 fi
2870
2871 case $enable_silent_rules in # (((
2872 yes) AM_DEFAULT_VERBOSITY=0;;
2873 no) AM_DEFAULT_VERBOSITY=1;;
2874 *) AM_DEFAULT_VERBOSITY=1;;
2875 esac
2876 am_make=${MAKE-make}
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2878 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2879 if ${am_cv_make_support_nested_variables+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if $as_echo 'TRUE=$(BAR$(V))
2883 BAR0=false
2884 BAR1=true
2885 V=1
2886 am__doit:
2887 @$(TRUE)
2888 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2889 am_cv_make_support_nested_variables=yes
2890 else
2891 am_cv_make_support_nested_variables=no
2892 fi
2893 fi
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2895 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2896 if test $am_cv_make_support_nested_variables = yes; then
2897 AM_V='$(V)'
2898 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2899 else
2900 AM_V=$AM_DEFAULT_VERBOSITY
2901 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2902 fi
2903 AM_BACKSLASH='\'
2904
2905 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2906 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2907 # is not polluted with repeated "-I."
2908 am__isrc=' -I$(srcdir)'
2909 # test to see if srcdir already configured
2910 if test -f $srcdir/config.status; then
2911 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2912 fi
2913 fi
2914
2915 # test whether we have cygpath
2916 if test -z "$CYGPATH_W"; then
2917 if (cygpath --version) >/dev/null 2>/dev/null; then
2918 CYGPATH_W='cygpath -w'
2919 else
2920 CYGPATH_W=echo
2921 fi
2922 fi
2923
2924
2925 # Define the identity of the package.
2926 PACKAGE='libsha1'
2927 VERSION='1.21'
2928
2929
2930 # Some tools Automake needs.
2931
2932 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2933
2934
2935 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2936
2937
2938 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2939
2940
2941 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2942
2943
2944 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2945
2946 # For better backward compatibility. To be removed once Automake 1.9.x
2947 # dies out for good. For more background, see:
2948 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2949 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2950 mkdir_p='$(MKDIR_P)'
2951
2952 # We need awk for the "check" target (and possibly the TAP driver). The
2953 # system "awk" is bad on some platforms.
2954 # Always define AMTAR for backward compatibility. Yes, it's still used
2955 # in the wild :-( We should find a proper way to deprecate it ...
2956 AMTAR='$${TAR-tar}'
2957
2958
2959 # We'll loop over all known methods to create a tar archive until one works.
2960 _am_tools='gnutar pax cpio none'
2961
2962 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2963
2964
2965
2966
2967
2968
2969 # POSIX will say in a future version that running "rm -f" with no argument
2970 # is OK; and we want to be able to make that assumption in our Makefile
2971 # recipes. So use an aggressive probe to check that the usage we want is
2972 # actually supported "in the wild" to an acceptable degree.
2973 # See automake bug#10828.
2974 # To make any issue more visible, cause the running configure to be aborted
2975 # by default if the 'rm' program in use doesn't match our expectations; the
2976 # user can still override this though.
2977 if rm -f && rm -fr && rm -rf; then : OK; else
2978 cat >&2 <<'END'
2979 Oops!
2980
2981 Your 'rm' program seems unable to run without file operands specified
2982 on the command line, even when the '-f' option is present. This is contrary
2983 to the behaviour of most rm programs out there, and not conforming with
2984 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2985
2986 Please tell bug-automake@gnu.org about your system, including the value
2987 of your $PATH and any error possibly output before this message. This
2988 can help us improve future automake versions.
2989
2990 END
2991 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2992 echo 'Configuration will proceed anyway, since you have set the' >&2
2993 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2994 echo >&2
2995 else
2996 cat >&2 <<'END'
2997 Aborting the configuration process, to ensure you take notice of the issue.
2998
2999 You can download and install GNU coreutils to get an 'rm' implementation
3000 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3001
3002 If you want to complete the configuration process using your problematic
3003 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3004 to "yes", and re-run configure.
3005
3006 END
3007 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3008 fi
3009 fi
3010
3011
3012 if test -d ${srcdir}/../libhmac; then
3013 HMACC_TRUE=
3014 HMACC_FALSE='#'
3015 else
3016 HMACC_TRUE='#'
3017 HMACC_FALSE=
3018 fi
3019
3020
3021 ac_ext=c
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_CC+:} false; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 fi
3053 fi
3054 CC=$ac_cv_prog_CC
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3058 else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 fi
3062
3063
3064 fi
3065 if test -z "$ac_cv_prog_CC"; then
3066 ac_ct_CC=$CC
3067 # Extract the first word of "gcc", so it can be a program name with args.
3068 set dummy gcc; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$ac_ct_CC"; then
3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_ac_ct_CC="gcc"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095 if test -n "$ac_ct_CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3097 $as_echo "$ac_ct_CC" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 fi
3102
3103 if test "x$ac_ct_CC" = x; then
3104 CC=""
3105 else
3106 case $cross_compiling:$ac_tool_warned in
3107 yes:)
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110 ac_tool_warned=yes ;;
3111 esac
3112 CC=$ac_ct_CC
3113 fi
3114 else
3115 CC="$ac_cv_prog_CC"
3116 fi
3117
3118 if test -z "$CC"; then
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3121 set dummy ${ac_tool_prefix}cc; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_CC="${ac_tool_prefix}cc"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157 fi
3158 fi
3159 if test -z "$CC"; then
3160 # Extract the first word of "cc", so it can be a program name with args.
3161 set dummy cc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 ac_prog_rejected=no
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3179 ac_prog_rejected=yes
3180 continue
3181 fi
3182 ac_cv_prog_CC="cc"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3185 fi
3186 done
3187 done
3188 IFS=$as_save_IFS
3189
3190 if test $ac_prog_rejected = yes; then
3191 # We found a bogon in the path, so make sure we never use it.
3192 set dummy $ac_cv_prog_CC
3193 shift
3194 if test $# != 0; then
3195 # We chose a different compiler from the bogus one.
3196 # However, it has the same basename, so the bogon will be chosen
3197 # first if we set CC to just the basename; use the full file name.
3198 shift
3199 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3200 fi
3201 fi
3202 fi
3203 fi
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213
3214 fi
3215 if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
3217 for ac_prog in cl.exe
3218 do
3219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 fi
3245 fi
3246 CC=$ac_cv_prog_CC
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 fi
3254
3255
3256 test -n "$CC" && break
3257 done
3258 fi
3259 if test -z "$CC"; then
3260 ac_ct_CC=$CC
3261 for ac_prog in cl.exe
3262 do
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264 set dummy $ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$ac_ct_CC"; then
3271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_ac_ct_CC="$ac_prog"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284 done
3285 done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291 if test -n "$ac_ct_CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3293 $as_echo "$ac_ct_CC" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300 test -n "$ac_ct_CC" && break
3301 done
3302
3303 if test "x$ac_ct_CC" = x; then
3304 CC=""
3305 else
3306 case $cross_compiling:$ac_tool_warned in
3307 yes:)
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310 ac_tool_warned=yes ;;
3311 esac
3312 CC=$ac_ct_CC
3313 fi
3314 fi
3315
3316 fi
3317
3318
3319 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "no acceptable C compiler found in \$PATH
3322 See \`config.log' for more details" "$LINENO" 5; }
3323
3324 # Provide some information about the compiler.
3325 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3326 set X $ac_compile
3327 ac_compiler=$2
3328 for ac_option in --version -v -V -qversion; do
3329 { { ac_try="$ac_compiler $ac_option >&5"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3337 ac_status=$?
3338 if test -s conftest.err; then
3339 sed '10a\
3340 ... rest of stderr output deleted ...
3341 10q' conftest.err >conftest.er1
3342 cat conftest.er1 >&5
3343 fi
3344 rm -f conftest.er1 conftest.err
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }
3347 done
3348
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 ac_clean_files_save=$ac_clean_files
3361 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3362 # Try to create an executable without -o first, disregard a.out.
3363 # It will help us diagnose broken compilers, and finding out an intuition
3364 # of exeext.
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3366 $as_echo_n "checking whether the C compiler works... " >&6; }
3367 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3368
3369 # The possible output files:
3370 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3371
3372 ac_rmfiles=
3373 for ac_file in $ac_files
3374 do
3375 case $ac_file in
3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3377 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3378 esac
3379 done
3380 rm -f $ac_rmfiles
3381
3382 if { { ac_try="$ac_link_default"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_link_default") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; then :
3393 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3394 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3395 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3396 # so that the user can short-circuit this test for compilers unknown to
3397 # Autoconf.
3398 for ac_file in $ac_files ''
3399 do
3400 test -f "$ac_file" || continue
3401 case $ac_file in
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3403 ;;
3404 [ab].out )
3405 # We found the default executable, but exeext='' is most
3406 # certainly right.
3407 break;;
3408 *.* )
3409 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3410 then :; else
3411 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 fi
3413 # We set ac_cv_exeext here because the later test for it is not
3414 # safe: cross compilers may not add the suffix if given an `-o'
3415 # argument, so we may need to know it at that point already.
3416 # Even if this section looks crufty: it has the advantage of
3417 # actually working.
3418 break;;
3419 * )
3420 break;;
3421 esac
3422 done
3423 test "$ac_cv_exeext" = no && ac_cv_exeext=
3424
3425 else
3426 ac_file=''
3427 fi
3428 if test -z "$ac_file"; then :
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3431 $as_echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error 77 "C compiler cannot create executables
3437 See \`config.log' for more details" "$LINENO" 5; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440 $as_echo "yes" >&6; }
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3443 $as_echo_n "checking for C compiler default output file name... " >&6; }
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3445 $as_echo "$ac_file" >&6; }
3446 ac_exeext=$ac_cv_exeext
3447
3448 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3449 ac_clean_files=$ac_clean_files_save
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3451 $as_echo_n "checking for suffix of executables... " >&6; }
3452 if { { ac_try="$ac_link"
3453 case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_link") 2>&5
3460 ac_status=$?
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }; then :
3463 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3464 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3465 # work properly (i.e., refer to `conftest.exe'), while it won't with
3466 # `rm'.
3467 for ac_file in conftest.exe conftest conftest.*; do
3468 test -f "$ac_file" || continue
3469 case $ac_file in
3470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3471 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3472 break;;
3473 * ) break;;
3474 esac
3475 done
3476 else
3477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3480 See \`config.log' for more details" "$LINENO" 5; }
3481 fi
3482 rm -f conftest conftest$ac_cv_exeext
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3484 $as_echo "$ac_cv_exeext" >&6; }
3485
3486 rm -f conftest.$ac_ext
3487 EXEEXT=$ac_cv_exeext
3488 ac_exeext=$EXEEXT
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3491 #include <stdio.h>
3492 int
3493 main ()
3494 {
3495 FILE *f = fopen ("conftest.out", "w");
3496 return ferror (f) || fclose (f) != 0;
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 ac_clean_files="$ac_clean_files conftest.out"
3503 # Check that the compiler produces executables we can run. If not, either
3504 # the compiler is broken, or we cross compile.
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3506 $as_echo_n "checking whether we are cross compiling... " >&6; }
3507 if test "$cross_compiling" != yes; then
3508 { { ac_try="$ac_link"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514 $as_echo "$ac_try_echo"; } >&5
3515 (eval "$ac_link") 2>&5
3516 ac_status=$?
3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }
3519 if { ac_try='./conftest$ac_cv_exeext'
3520 { { case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_try") 2>&5
3527 ac_status=$?
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }; }; then
3530 cross_compiling=no
3531 else
3532 if test "$cross_compiling" = maybe; then
3533 cross_compiling=yes
3534 else
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error $? "cannot run C compiled programs.
3538 If you meant to cross compile, use \`--host'.
3539 See \`config.log' for more details" "$LINENO" 5; }
3540 fi
3541 fi
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3544 $as_echo "$cross_compiling" >&6; }
3545
3546 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3547 ac_clean_files=$ac_clean_files_save
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3549 $as_echo_n "checking for suffix of object files... " >&6; }
3550 if ${ac_cv_objext+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555
3556 int
3557 main ()
3558 {
3559
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 rm -f conftest.o conftest.obj
3565 if { { ac_try="$ac_compile"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_compile") 2>&5
3573 ac_status=$?
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; then :
3576 for ac_file in conftest.o conftest.obj conftest.*; do
3577 test -f "$ac_file" || continue;
3578 case $ac_file in
3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3580 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3581 break;;
3582 esac
3583 done
3584 else
3585 $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot compute suffix of object files: cannot compile
3591 See \`config.log' for more details" "$LINENO" 5; }
3592 fi
3593 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3596 $as_echo "$ac_cv_objext" >&6; }
3597 OBJEXT=$ac_cv_objext
3598 ac_objext=$OBJEXT
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3600 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3601 if ${ac_cv_c_compiler_gnu+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606
3607 int
3608 main ()
3609 {
3610 #ifndef __GNUC__
3611 choke me
3612 #endif
3613
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_compiler_gnu=yes
3620 else
3621 ac_compiler_gnu=no
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3625
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3628 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3629 if test $ac_compiler_gnu = yes; then
3630 GCC=yes
3631 else
3632 GCC=
3633 fi
3634 ac_test_CFLAGS=${CFLAGS+set}
3635 ac_save_CFLAGS=$CFLAGS
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3637 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3638 if ${ac_cv_prog_cc_g+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 ac_save_c_werror_flag=$ac_c_werror_flag
3642 ac_c_werror_flag=yes
3643 ac_cv_prog_cc_g=no
3644 CFLAGS="-g"
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647
3648 int
3649 main ()
3650 {
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 if ac_fn_c_try_compile "$LINENO"; then :
3657 ac_cv_prog_cc_g=yes
3658 else
3659 CFLAGS=""
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662
3663 int
3664 main ()
3665 {
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 if ac_fn_c_try_compile "$LINENO"; then :
3672
3673 else
3674 ac_c_werror_flag=$ac_save_c_werror_flag
3675 CFLAGS="-g"
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678
3679 int
3680 main ()
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_g=yes
3689 fi
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 fi
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 fi
3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_c_werror_flag=$ac_save_c_werror_flag
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3698 $as_echo "$ac_cv_prog_cc_g" >&6; }
3699 if test "$ac_test_CFLAGS" = set; then
3700 CFLAGS=$ac_save_CFLAGS
3701 elif test $ac_cv_prog_cc_g = yes; then
3702 if test "$GCC" = yes; then
3703 CFLAGS="-g -O2"
3704 else
3705 CFLAGS="-g"
3706 fi
3707 else
3708 if test "$GCC" = yes; then
3709 CFLAGS="-O2"
3710 else
3711 CFLAGS=
3712 fi
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3715 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3716 if ${ac_cv_prog_cc_c89+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 ac_cv_prog_cc_c89=no
3720 ac_save_CC=$CC
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3723 #include <stdarg.h>
3724 #include <stdio.h>
3725 struct stat;
3726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3727 struct buf { int x; };
3728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3729 static char *e (p, i)
3730 char **p;
3731 int i;
3732 {
3733 return p[i];
3734 }
3735 static char *f (char * (*g) (char **, int), char **p, ...)
3736 {
3737 char *s;
3738 va_list v;
3739 va_start (v,p);
3740 s = g (p, va_arg (v,int));
3741 va_end (v);
3742 return s;
3743 }
3744
3745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3746 function prototypes and stuff, but not '\xHH' hex character constants.
3747 These don't provoke an error unfortunately, instead are silently treated
3748 as 'x'. The following induces an error, until -std is added to get
3749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3750 array size at least. It's necessary to write '\x00'==0 to get something
3751 that's true only with -std. */
3752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3753
3754 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3755 inside strings and character constants. */
3756 #define FOO(x) 'x'
3757 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3758
3759 int test (int i, double x);
3760 struct s1 {int (*f) (int a);};
3761 struct s2 {int (*f) (double a);};
3762 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3763 int argc;
3764 char **argv;
3765 int
3766 main ()
3767 {
3768 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3774 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3775 do
3776 CC="$ac_save_CC $ac_arg"
3777 if ac_fn_c_try_compile "$LINENO"; then :
3778 ac_cv_prog_cc_c89=$ac_arg
3779 fi
3780 rm -f core conftest.err conftest.$ac_objext
3781 test "x$ac_cv_prog_cc_c89" != "xno" && break
3782 done
3783 rm -f conftest.$ac_ext
3784 CC=$ac_save_CC
3785
3786 fi
3787 # AC_CACHE_VAL
3788 case "x$ac_cv_prog_cc_c89" in
3789 x)
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3791 $as_echo "none needed" >&6; } ;;
3792 xno)
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3794 $as_echo "unsupported" >&6; } ;;
3795 *)
3796 CC="$CC $ac_cv_prog_cc_c89"
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3798 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3799 esac
3800 if test "x$ac_cv_prog_cc_c89" != xno; then :
3801
3802 fi
3803
3804 ac_ext=c
3805 ac_cpp='$CPP $CPPFLAGS'
3806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809
3810 ac_ext=c
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3816 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3817 if ${am_cv_prog_cc_c_o+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822
3823 int
3824 main ()
3825 {
3826
3827 ;
3828 return 0;
3829 }
3830 _ACEOF
3831 # Make sure it works both with $CC and with simple cc.
3832 # Following AC_PROG_CC_C_O, we do the test twice because some
3833 # compilers refuse to overwrite an existing .o file with -o,
3834 # though they will create one.
3835 am_cv_prog_cc_c_o=yes
3836 for am_i in 1 2; do
3837 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3838 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } \
3842 && test -f conftest2.$ac_objext; then
3843 : OK
3844 else
3845 am_cv_prog_cc_c_o=no
3846 break
3847 fi
3848 done
3849 rm -f core conftest*
3850 unset am_i
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3853 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3854 if test "$am_cv_prog_cc_c_o" != yes; then
3855 # Losing compiler, so override with the script.
3856 # FIXME: It is wrong to rewrite CC.
3857 # But if we don't then we get into trouble of one sort or another.
3858 # A longer-term fix would be to have automake use am__CC in this case,
3859 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3860 CC="$am_aux_dir/compile $CC"
3861 fi
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868 DEPDIR="${am__leading_dot}deps"
3869
3870 ac_config_commands="$ac_config_commands depfiles"
3871
3872
3873 am_make=${MAKE-make}
3874 cat > confinc << 'END'
3875 am__doit:
3876 @echo this is the am__doit target
3877 .PHONY: am__doit
3878 END
3879 # If we don't find an include directive, just comment out the code.
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3881 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3882 am__include="#"
3883 am__quote=
3884 _am_result=none
3885 # First try GNU make style include.
3886 echo "include confinc" > confmf
3887 # Ignore all kinds of additional output from 'make'.
3888 case `$am_make -s -f confmf 2> /dev/null` in #(
3889 *the\ am__doit\ target*)
3890 am__include=include
3891 am__quote=
3892 _am_result=GNU
3893 ;;
3894 esac
3895 # Now try BSD make style include.
3896 if test "$am__include" = "#"; then
3897 echo '.include "confinc"' > confmf
3898 case `$am_make -s -f confmf 2> /dev/null` in #(
3899 *the\ am__doit\ target*)
3900 am__include=.include
3901 am__quote="\""
3902 _am_result=BSD
3903 ;;
3904 esac
3905 fi
3906
3907
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3909 $as_echo "$_am_result" >&6; }
3910 rm -f confinc confmf
3911
3912 # Check whether --enable-dependency-tracking was given.
3913 if test "${enable_dependency_tracking+set}" = set; then :
3914 enableval=$enable_dependency_tracking;
3915 fi
3916
3917 if test "x$enable_dependency_tracking" != xno; then
3918 am_depcomp="$ac_aux_dir/depcomp"
3919 AMDEPBACKSLASH='\'
3920 am__nodep='_no'
3921 fi
3922 if test "x$enable_dependency_tracking" != xno; then
3923 AMDEP_TRUE=
3924 AMDEP_FALSE='#'
3925 else
3926 AMDEP_TRUE='#'
3927 AMDEP_FALSE=
3928 fi
3929
3930
3931
3932 depcc="$CC" am_compiler_list=
3933
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3935 $as_echo_n "checking dependency style of $depcc... " >&6; }
3936 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3940 # We make a subdir and do the tests there. Otherwise we can end up
3941 # making bogus files that we don't know about and never remove. For
3942 # instance it was reported that on HP-UX the gcc test will end up
3943 # making a dummy file named 'D' -- because '-MD' means "put the output
3944 # in D".
3945 rm -rf conftest.dir
3946 mkdir conftest.dir
3947 # Copy depcomp to subdir because otherwise we won't find it if we're
3948 # using a relative directory.
3949 cp "$am_depcomp" conftest.dir
3950 cd conftest.dir
3951 # We will build objects and dependencies in a subdirectory because
3952 # it helps to detect inapplicable dependency modes. For instance
3953 # both Tru64's cc and ICC support -MD to output dependencies as a
3954 # side effect of compilation, but ICC will put the dependencies in
3955 # the current directory while Tru64 will put them in the object
3956 # directory.
3957 mkdir sub
3958
3959 am_cv_CC_dependencies_compiler_type=none
3960 if test "$am_compiler_list" = ""; then
3961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3962 fi
3963 am__universal=false
3964 case " $depcc " in #(
3965 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3966 esac
3967
3968 for depmode in $am_compiler_list; do
3969 # Setup a source with many dependencies, because some compilers
3970 # like to wrap large dependency lists on column 80 (with \), and
3971 # we should not choose a depcomp mode which is confused by this.
3972 #
3973 # We need to recreate these files for each test, as the compiler may
3974 # overwrite some of them when testing with obscure command lines.
3975 # This happens at least with the AIX C compiler.
3976 : > sub/conftest.c
3977 for i in 1 2 3 4 5 6; do
3978 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3979 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3980 # Solaris 10 /bin/sh.
3981 echo '/* dummy */' > sub/conftst$i.h
3982 done
3983 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3984
3985 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3986 # mode. It turns out that the SunPro C++ compiler does not properly
3987 # handle '-M -o', and we need to detect this. Also, some Intel
3988 # versions had trouble with output in subdirs.
3989 am__obj=sub/conftest.${OBJEXT-o}
3990 am__minus_obj="-o $am__obj"
3991 case $depmode in
3992 gcc)
3993 # This depmode causes a compiler race in universal mode.
3994 test "$am__universal" = false || continue
3995 ;;
3996 nosideeffect)
3997 # After this tag, mechanisms are not by side-effect, so they'll
3998 # only be used when explicitly requested.
3999 if test "x$enable_dependency_tracking" = xyes; then
4000 continue
4001 else
4002 break
4003 fi
4004 ;;
4005 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4006 # This compiler won't grok '-c -o', but also, the minuso test has
4007 # not run yet. These depmodes are late enough in the game, and
4008 # so weak that their functioning should not be impacted.
4009 am__obj=conftest.${OBJEXT-o}
4010 am__minus_obj=
4011 ;;
4012 none) break ;;
4013 esac
4014 if depmode=$depmode \
4015 source=sub/conftest.c object=$am__obj \
4016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4017 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4018 >/dev/null 2>conftest.err &&
4019 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4020 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4021 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4022 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4023 # icc doesn't choke on unknown options, it will just issue warnings
4024 # or remarks (even with -Werror). So we grep stderr for any message
4025 # that says an option was ignored or not supported.
4026 # When given -MP, icc 7.0 and 7.1 complain thusly:
4027 # icc: Command line warning: ignoring option '-M'; no argument required
4028 # The diagnosis changed in icc 8.0:
4029 # icc: Command line remark: option '-MP' not supported
4030 if (grep 'ignoring option' conftest.err ||
4031 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4032 am_cv_CC_dependencies_compiler_type=$depmode
4033 break
4034 fi
4035 fi
4036 done
4037
4038 cd ..
4039 rm -rf conftest.dir
4040 else
4041 am_cv_CC_dependencies_compiler_type=none
4042 fi
4043
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4046 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4047 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4048
4049 if
4050 test "x$enable_dependency_tracking" != xno \
4051 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4052 am__fastdepCC_TRUE=
4053 am__fastdepCC_FALSE='#'
4054 else
4055 am__fastdepCC_TRUE='#'
4056 am__fastdepCC_FALSE=
4057 fi
4058
4059
4060
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4062 $as_echo_n "checking whether ln -s works... " >&6; }
4063 LN_S=$as_ln_s
4064 if test "$LN_S" = "ln -s"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4066 $as_echo "yes" >&6; }
4067 else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4069 $as_echo "no, using $LN_S" >&6; }
4070 fi
4071
4072 case `pwd` in
4073 *\ * | *\ *)
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4075 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4076 esac
4077
4078
4079
4080 macro_version='2.4.6'
4081 macro_revision='2.4.6'
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095 ltmain=$ac_aux_dir/ltmain.sh
4096
4097 # Make sure we can run config.sub.
4098 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4099 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4100
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4102 $as_echo_n "checking build system type... " >&6; }
4103 if ${ac_cv_build+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 ac_build_alias=$build_alias
4107 test "x$ac_build_alias" = x &&
4108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4109 test "x$ac_build_alias" = x &&
4110 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4111 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4112 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4113
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4116 $as_echo "$ac_cv_build" >&6; }
4117 case $ac_cv_build in
4118 *-*-*) ;;
4119 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4120 esac
4121 build=$ac_cv_build
4122 ac_save_IFS=$IFS; IFS='-'
4123 set x $ac_cv_build
4124 shift
4125 build_cpu=$1
4126 build_vendor=$2
4127 shift; shift
4128 # Remember, the first character of IFS is used to create $*,
4129 # except with old shells:
4130 build_os=$*
4131 IFS=$ac_save_IFS
4132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4133
4134
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4136 $as_echo_n "checking host system type... " >&6; }
4137 if ${ac_cv_host+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 if test "x$host_alias" = x; then
4141 ac_cv_host=$ac_cv_build
4142 else
4143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4144 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4145 fi
4146
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4149 $as_echo "$ac_cv_host" >&6; }
4150 case $ac_cv_host in
4151 *-*-*) ;;
4152 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4153 esac
4154 host=$ac_cv_host
4155 ac_save_IFS=$IFS; IFS='-'
4156 set x $ac_cv_host
4157 shift
4158 host_cpu=$1
4159 host_vendor=$2
4160 shift; shift
4161 # Remember, the first character of IFS is used to create $*,
4162 # except with old shells:
4163 host_os=$*
4164 IFS=$ac_save_IFS
4165 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4166
4167
4168 # Backslashify metacharacters that are still active within
4169 # double-quoted strings.
4170 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4171
4172 # Same as above, but do not quote variable references.
4173 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4174
4175 # Sed substitution to delay expansion of an escaped shell variable in a
4176 # double_quote_subst'ed string.
4177 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4178
4179 # Sed substitution to delay expansion of an escaped single quote.
4180 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4181
4182 # Sed substitution to avoid accidental globbing in evaled expressions
4183 no_glob_subst='s/\*/\\\*/g'
4184
4185 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4186 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4187 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4190 $as_echo_n "checking how to print strings... " >&6; }
4191 # Test print first, because it will be a builtin if present.
4192 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4194 ECHO='print -r --'
4195 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4196 ECHO='printf %s\n'
4197 else
4198 # Use this function as a fallback that always works.
4199 func_fallback_echo ()
4200 {
4201 eval 'cat <<_LTECHO_EOF
4202 $1
4203 _LTECHO_EOF'
4204 }
4205 ECHO='func_fallback_echo'
4206 fi
4207
4208 # func_echo_all arg...
4209 # Invoke $ECHO with all args, space-separated.
4210 func_echo_all ()
4211 {
4212 $ECHO ""
4213 }
4214
4215 case $ECHO in
4216 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4217 $as_echo "printf" >&6; } ;;
4218 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4219 $as_echo "print -r" >&6; } ;;
4220 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4221 $as_echo "cat" >&6; } ;;
4222 esac
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4238 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4239 if ${ac_cv_path_SED+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4243 for ac_i in 1 2 3 4 5 6 7; do
4244 ac_script="$ac_script$as_nl$ac_script"
4245 done
4246 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4247 { ac_script=; unset ac_script;}
4248 if test -z "$SED"; then
4249 ac_path_SED_found=false
4250 # Loop through the user's path and test for each of PROGNAME-LIST
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_prog in sed gsed; do
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4259 as_fn_executable_p "$ac_path_SED" || continue
4260 # Check for GNU ac_path_SED and select it if it is found.
4261 # Check for GNU $ac_path_SED
4262 case `"$ac_path_SED" --version 2>&1` in
4263 *GNU*)
4264 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4265 *)
4266 ac_count=0
4267 $as_echo_n 0123456789 >"conftest.in"
4268 while :
4269 do
4270 cat "conftest.in" "conftest.in" >"conftest.tmp"
4271 mv "conftest.tmp" "conftest.in"
4272 cp "conftest.in" "conftest.nl"
4273 $as_echo '' >> "conftest.nl"
4274 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276 as_fn_arith $ac_count + 1 && ac_count=$as_val
4277 if test $ac_count -gt ${ac_path_SED_max-0}; then
4278 # Best one so far, save it but keep looking for a better one
4279 ac_cv_path_SED="$ac_path_SED"
4280 ac_path_SED_max=$ac_count
4281 fi
4282 # 10*(2^10) chars as input seems more than enough
4283 test $ac_count -gt 10 && break
4284 done
4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286 esac
4287
4288 $ac_path_SED_found && break 3
4289 done
4290 done
4291 done
4292 IFS=$as_save_IFS
4293 if test -z "$ac_cv_path_SED"; then
4294 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4295 fi
4296 else
4297 ac_cv_path_SED=$SED
4298 fi
4299
4300 fi
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4302 $as_echo "$ac_cv_path_SED" >&6; }
4303 SED="$ac_cv_path_SED"
4304 rm -f conftest.sed
4305
4306 test -z "$SED" && SED=sed
4307 Xsed="$SED -e 1s/^X//"
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4320 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4321 if ${ac_cv_path_GREP+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if test -z "$GREP"; then
4325 ac_path_GREP_found=false
4326 # Loop through the user's path and test for each of PROGNAME-LIST
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_prog in grep ggrep; do
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4335 as_fn_executable_p "$ac_path_GREP" || continue
4336 # Check for GNU ac_path_GREP and select it if it is found.
4337 # Check for GNU $ac_path_GREP
4338 case `"$ac_path_GREP" --version 2>&1` in
4339 *GNU*)
4340 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4341 *)
4342 ac_count=0
4343 $as_echo_n 0123456789 >"conftest.in"
4344 while :
4345 do
4346 cat "conftest.in" "conftest.in" >"conftest.tmp"
4347 mv "conftest.tmp" "conftest.in"
4348 cp "conftest.in" "conftest.nl"
4349 $as_echo 'GREP' >> "conftest.nl"
4350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4352 as_fn_arith $ac_count + 1 && ac_count=$as_val
4353 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4354 # Best one so far, save it but keep looking for a better one
4355 ac_cv_path_GREP="$ac_path_GREP"
4356 ac_path_GREP_max=$ac_count
4357 fi
4358 # 10*(2^10) chars as input seems more than enough
4359 test $ac_count -gt 10 && break
4360 done
4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362 esac
4363
4364 $ac_path_GREP_found && break 3
4365 done
4366 done
4367 done
4368 IFS=$as_save_IFS
4369 if test -z "$ac_cv_path_GREP"; then
4370 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4371 fi
4372 else
4373 ac_cv_path_GREP=$GREP
4374 fi
4375
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4378 $as_echo "$ac_cv_path_GREP" >&6; }
4379 GREP="$ac_cv_path_GREP"
4380
4381
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4383 $as_echo_n "checking for egrep... " >&6; }
4384 if ${ac_cv_path_EGREP+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4388 then ac_cv_path_EGREP="$GREP -E"
4389 else
4390 if test -z "$EGREP"; then
4391 ac_path_EGREP_found=false
4392 # Loop through the user's path and test for each of PROGNAME-LIST
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395 do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_prog in egrep; do
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4401 as_fn_executable_p "$ac_path_EGREP" || continue
4402 # Check for GNU ac_path_EGREP and select it if it is found.
4403 # Check for GNU $ac_path_EGREP
4404 case `"$ac_path_EGREP" --version 2>&1` in
4405 *GNU*)
4406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4407 *)
4408 ac_count=0
4409 $as_echo_n 0123456789 >"conftest.in"
4410 while :
4411 do
4412 cat "conftest.in" "conftest.in" >"conftest.tmp"
4413 mv "conftest.tmp" "conftest.in"
4414 cp "conftest.in" "conftest.nl"
4415 $as_echo 'EGREP' >> "conftest.nl"
4416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418 as_fn_arith $ac_count + 1 && ac_count=$as_val
4419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4420 # Best one so far, save it but keep looking for a better one
4421 ac_cv_path_EGREP="$ac_path_EGREP"
4422 ac_path_EGREP_max=$ac_count
4423 fi
4424 # 10*(2^10) chars as input seems more than enough
4425 test $ac_count -gt 10 && break
4426 done
4427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428 esac
4429
4430 $ac_path_EGREP_found && break 3
4431 done
4432 done
4433 done
4434 IFS=$as_save_IFS
4435 if test -z "$ac_cv_path_EGREP"; then
4436 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4437 fi
4438 else
4439 ac_cv_path_EGREP=$EGREP
4440 fi
4441
4442 fi
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4445 $as_echo "$ac_cv_path_EGREP" >&6; }
4446 EGREP="$ac_cv_path_EGREP"
4447
4448
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4450 $as_echo_n "checking for fgrep... " >&6; }
4451 if ${ac_cv_path_FGREP+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4455 then ac_cv_path_FGREP="$GREP -F"
4456 else
4457 if test -z "$FGREP"; then
4458 ac_path_FGREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462 do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in fgrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4468 as_fn_executable_p "$ac_path_FGREP" || continue
4469 # Check for GNU ac_path_FGREP and select it if it is found.
4470 # Check for GNU $ac_path_FGREP
4471 case `"$ac_path_FGREP" --version 2>&1` in
4472 *GNU*)
4473 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4474 *)
4475 ac_count=0
4476 $as_echo_n 0123456789 >"conftest.in"
4477 while :
4478 do
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'FGREP' >> "conftest.nl"
4483 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_FGREP="$ac_path_FGREP"
4489 ac_path_FGREP_max=$ac_count
4490 fi
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4493 done
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495 esac
4496
4497 $ac_path_FGREP_found && break 3
4498 done
4499 done
4500 done
4501 IFS=$as_save_IFS
4502 if test -z "$ac_cv_path_FGREP"; then
4503 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4504 fi
4505 else
4506 ac_cv_path_FGREP=$FGREP
4507 fi
4508
4509 fi
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4512 $as_echo "$ac_cv_path_FGREP" >&6; }
4513 FGREP="$ac_cv_path_FGREP"
4514
4515
4516 test -z "$GREP" && GREP=grep
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536 # Check whether --with-gnu-ld was given.
4537 if test "${with_gnu_ld+set}" = set; then :
4538 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4539 else
4540 with_gnu_ld=no
4541 fi
4542
4543 ac_prog=ld
4544 if test yes = "$GCC"; then
4545 # Check if gcc -print-prog-name=ld gives a path.
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4547 $as_echo_n "checking for ld used by $CC... " >&6; }
4548 case $host in
4549 *-*-mingw*)
4550 # gcc leaves a trailing carriage return, which upsets mingw
4551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4552 *)
4553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4554 esac
4555 case $ac_prog in
4556 # Accept absolute paths.
4557 [\\/]* | ?:[\\/]*)
4558 re_direlt='/[^/][^/]*/\.\./'
4559 # Canonicalize the pathname of ld
4560 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4561 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4562 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4563 done
4564 test -z "$LD" && LD=$ac_prog
4565 ;;
4566 "")
4567 # If it fails, then pretend we aren't using GCC.
4568 ac_prog=ld
4569 ;;
4570 *)
4571 # If it is relative, then search for the first ld in PATH.
4572 with_gnu_ld=unknown
4573 ;;
4574 esac
4575 elif test yes = "$with_gnu_ld"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4577 $as_echo_n "checking for GNU ld... " >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4580 $as_echo_n "checking for non-GNU ld... " >&6; }
4581 fi
4582 if ${lt_cv_path_LD+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -z "$LD"; then
4586 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4587 for ac_dir in $PATH; do
4588 IFS=$lt_save_ifs
4589 test -z "$ac_dir" && ac_dir=.
4590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4591 lt_cv_path_LD=$ac_dir/$ac_prog
4592 # Check to see if the program is GNU ld. I'd rather use --version,
4593 # but apparently some variants of GNU ld only accept -v.
4594 # Break only if it was the GNU/non-GNU ld that we prefer.
4595 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4596 *GNU* | *'with BFD'*)
4597 test no != "$with_gnu_ld" && break
4598 ;;
4599 *)
4600 test yes != "$with_gnu_ld" && break
4601 ;;
4602 esac
4603 fi
4604 done
4605 IFS=$lt_save_ifs
4606 else
4607 lt_cv_path_LD=$LD # Let the user override the test with a path.
4608 fi
4609 fi
4610
4611 LD=$lt_cv_path_LD
4612 if test -n "$LD"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4614 $as_echo "$LD" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4618 fi
4619 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4621 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4622 if ${lt_cv_prog_gnu_ld+:} false; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4626 case `$LD -v 2>&1 </dev/null` in
4627 *GNU* | *'with BFD'*)
4628 lt_cv_prog_gnu_ld=yes
4629 ;;
4630 *)
4631 lt_cv_prog_gnu_ld=no
4632 ;;
4633 esac
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4636 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4637 with_gnu_ld=$lt_cv_prog_gnu_ld
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4648 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4649 if ${lt_cv_path_NM+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$NM"; then
4653 # Let the user override the test.
4654 lt_cv_path_NM=$NM
4655 else
4656 lt_nm_to_check=${ac_tool_prefix}nm
4657 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4658 lt_nm_to_check="$lt_nm_to_check nm"
4659 fi
4660 for lt_tmp_nm in $lt_nm_to_check; do
4661 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4662 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4663 IFS=$lt_save_ifs
4664 test -z "$ac_dir" && ac_dir=.
4665 tmp_nm=$ac_dir/$lt_tmp_nm
4666 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4667 # Check to see if the nm accepts a BSD-compat flag.
4668 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4669 # nm: unknown option "B" ignored
4670 # Tru64's nm complains that /dev/null is an invalid object file
4671 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4672 case $build_os in
4673 mingw*) lt_bad_file=conftest.nm/nofile ;;
4674 *) lt_bad_file=/dev/null ;;
4675 esac
4676 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4677 *$lt_bad_file* | *'Invalid file or object type'*)
4678 lt_cv_path_NM="$tmp_nm -B"
4679 break 2
4680 ;;
4681 *)
4682 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4683 */dev/null*)
4684 lt_cv_path_NM="$tmp_nm -p"
4685 break 2
4686 ;;
4687 *)
4688 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4689 continue # so that we can try to find one that supports BSD flags
4690 ;;
4691 esac
4692 ;;
4693 esac
4694 fi
4695 done
4696 IFS=$lt_save_ifs
4697 done
4698 : ${lt_cv_path_NM=no}
4699 fi
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4702 $as_echo "$lt_cv_path_NM" >&6; }
4703 if test no != "$lt_cv_path_NM"; then
4704 NM=$lt_cv_path_NM
4705 else
4706 # Didn't find any BSD compatible name lister, look for dumpbin.
4707 if test -n "$DUMPBIN"; then :
4708 # Let the user override the test.
4709 else
4710 if test -n "$ac_tool_prefix"; then
4711 for ac_prog in dumpbin "link -dump"
4712 do
4713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4714 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if ${ac_cv_prog_DUMPBIN+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$DUMPBIN"; then
4721 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738 fi
4739 fi
4740 DUMPBIN=$ac_cv_prog_DUMPBIN
4741 if test -n "$DUMPBIN"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4743 $as_echo "$DUMPBIN" >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4747 fi
4748
4749
4750 test -n "$DUMPBIN" && break
4751 done
4752 fi
4753 if test -z "$DUMPBIN"; then
4754 ac_ct_DUMPBIN=$DUMPBIN
4755 for ac_prog in dumpbin "link -dump"
4756 do
4757 # Extract the first word of "$ac_prog", so it can be a program name with args.
4758 set dummy $ac_prog; ac_word=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 if test -n "$ac_ct_DUMPBIN"; then
4765 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4777 fi
4778 done
4779 done
4780 IFS=$as_save_IFS
4781
4782 fi
4783 fi
4784 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4785 if test -n "$ac_ct_DUMPBIN"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4787 $as_echo "$ac_ct_DUMPBIN" >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4791 fi
4792
4793
4794 test -n "$ac_ct_DUMPBIN" && break
4795 done
4796
4797 if test "x$ac_ct_DUMPBIN" = x; then
4798 DUMPBIN=":"
4799 else
4800 case $cross_compiling:$ac_tool_warned in
4801 yes:)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804 ac_tool_warned=yes ;;
4805 esac
4806 DUMPBIN=$ac_ct_DUMPBIN
4807 fi
4808 fi
4809
4810 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4811 *COFF*)
4812 DUMPBIN="$DUMPBIN -symbols -headers"
4813 ;;
4814 *)
4815 DUMPBIN=:
4816 ;;
4817 esac
4818 fi
4819
4820 if test : != "$DUMPBIN"; then
4821 NM=$DUMPBIN
4822 fi
4823 fi
4824 test -z "$NM" && NM=nm
4825
4826
4827
4828
4829
4830
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4832 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4833 if ${lt_cv_nm_interface+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 lt_cv_nm_interface="BSD nm"
4837 echo "int some_variable = 0;" > conftest.$ac_ext
4838 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4839 (eval "$ac_compile" 2>conftest.err)
4840 cat conftest.err >&5
4841 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4842 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4843 cat conftest.err >&5
4844 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4845 cat conftest.out >&5
4846 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4847 lt_cv_nm_interface="MS dumpbin"
4848 fi
4849 rm -f conftest*
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4852 $as_echo "$lt_cv_nm_interface" >&6; }
4853
4854 # find the maximum length of command line arguments
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4856 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4857 if ${lt_cv_sys_max_cmd_len+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 i=0
4861 teststring=ABCD
4862
4863 case $build_os in
4864 msdosdjgpp*)
4865 # On DJGPP, this test can blow up pretty badly due to problems in libc
4866 # (any single argument exceeding 2000 bytes causes a buffer overrun
4867 # during glob expansion). Even if it were fixed, the result of this
4868 # check would be larger than it should be.
4869 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4870 ;;
4871
4872 gnu*)
4873 # Under GNU Hurd, this test is not required because there is
4874 # no limit to the length of command line arguments.
4875 # Libtool will interpret -1 as no limit whatsoever
4876 lt_cv_sys_max_cmd_len=-1;
4877 ;;
4878
4879 cygwin* | mingw* | cegcc*)
4880 # On Win9x/ME, this test blows up -- it succeeds, but takes
4881 # about 5 minutes as the teststring grows exponentially.
4882 # Worse, since 9x/ME are not pre-emptively multitasking,
4883 # you end up with a "frozen" computer, even though with patience
4884 # the test eventually succeeds (with a max line length of 256k).
4885 # Instead, let's just punt: use the minimum linelength reported by
4886 # all of the supported platforms: 8192 (on NT/2K/XP).
4887 lt_cv_sys_max_cmd_len=8192;
4888 ;;
4889
4890 mint*)
4891 # On MiNT this can take a long time and run out of memory.
4892 lt_cv_sys_max_cmd_len=8192;
4893 ;;
4894
4895 amigaos*)
4896 # On AmigaOS with pdksh, this test takes hours, literally.
4897 # So we just punt and use a minimum line length of 8192.
4898 lt_cv_sys_max_cmd_len=8192;
4899 ;;
4900
4901 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4902 # This has been around since 386BSD, at least. Likely further.
4903 if test -x /sbin/sysctl; then
4904 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4905 elif test -x /usr/sbin/sysctl; then
4906 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4907 else
4908 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4909 fi
4910 # And add a safety zone
4911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4913 ;;
4914
4915 interix*)
4916 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4917 lt_cv_sys_max_cmd_len=196608
4918 ;;
4919
4920 os2*)
4921 # The test takes a long time on OS/2.
4922 lt_cv_sys_max_cmd_len=8192
4923 ;;
4924
4925 osf*)
4926 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4927 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4928 # nice to cause kernel panics so lets avoid the loop below.
4929 # First set a reasonable default.
4930 lt_cv_sys_max_cmd_len=16384
4931 #
4932 if test -x /sbin/sysconfig; then
4933 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4934 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4935 esac
4936 fi
4937 ;;
4938 sco3.2v5*)
4939 lt_cv_sys_max_cmd_len=102400
4940 ;;
4941 sysv5* | sco5v6* | sysv4.2uw2*)
4942 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4943 if test -n "$kargmax"; then
4944 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4945 else
4946 lt_cv_sys_max_cmd_len=32768
4947 fi
4948 ;;
4949 *)
4950 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4951 if test -n "$lt_cv_sys_max_cmd_len" && \
4952 test undefined != "$lt_cv_sys_max_cmd_len"; then
4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4955 else
4956 # Make teststring a little bigger before we do anything with it.
4957 # a 1K string should be a reasonable start.
4958 for i in 1 2 3 4 5 6 7 8; do
4959 teststring=$teststring$teststring
4960 done
4961 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4962 # If test is not a shell built-in, we'll probably end up computing a
4963 # maximum length that is only half of the actual maximum length, but
4964 # we can't tell.
4965 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4966 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4967 test 17 != "$i" # 1/2 MB should be enough
4968 do
4969 i=`expr $i + 1`
4970 teststring=$teststring$teststring
4971 done
4972 # Only check the string length outside the loop.
4973 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4974 teststring=
4975 # Add a significant safety factor because C++ compilers can tack on
4976 # massive amounts of additional arguments before passing them to the
4977 # linker. It appears as though 1/2 is a usable value.
4978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4979 fi
4980 ;;
4981 esac
4982
4983 fi
4984
4985 if test -n "$lt_cv_sys_max_cmd_len"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4987 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4988 else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4990 $as_echo "none" >&6; }
4991 fi
4992 max_cmd_len=$lt_cv_sys_max_cmd_len
4993
4994
4995
4996
4997
4998
4999 : ${CP="cp -f"}
5000 : ${MV="mv -f"}
5001 : ${RM="rm -f"}
5002
5003 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5004 lt_unset=unset
5005 else
5006 lt_unset=false
5007 fi
5008
5009
5010
5011
5012
5013 # test EBCDIC or ASCII
5014 case `echo X|tr X '\101'` in
5015 A) # ASCII based system
5016 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5017 lt_SP2NL='tr \040 \012'
5018 lt_NL2SP='tr \015\012 \040\040'
5019 ;;
5020 *) # EBCDIC based system
5021 lt_SP2NL='tr \100 \n'
5022 lt_NL2SP='tr \r\n \100\100'
5023 ;;
5024 esac
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5035 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5036 if ${lt_cv_to_host_file_cmd+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 case $host in
5040 *-*-mingw* )
5041 case $build in
5042 *-*-mingw* ) # actually msys
5043 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5044 ;;
5045 *-*-cygwin* )
5046 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5047 ;;
5048 * ) # otherwise, assume *nix
5049 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5050 ;;
5051 esac
5052 ;;
5053 *-*-cygwin* )
5054 case $build in
5055 *-*-mingw* ) # actually msys
5056 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5057 ;;
5058 *-*-cygwin* )
5059 lt_cv_to_host_file_cmd=func_convert_file_noop
5060 ;;
5061 * ) # otherwise, assume *nix
5062 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5063 ;;
5064 esac
5065 ;;
5066 * ) # unhandled hosts (and "normal" native builds)
5067 lt_cv_to_host_file_cmd=func_convert_file_noop
5068 ;;
5069 esac
5070
5071 fi
5072
5073 to_host_file_cmd=$lt_cv_to_host_file_cmd
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5075 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5076
5077
5078
5079
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5082 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5083 if ${lt_cv_to_tool_file_cmd+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 #assume ordinary cross tools, or native build.
5087 lt_cv_to_tool_file_cmd=func_convert_file_noop
5088 case $host in
5089 *-*-mingw* )
5090 case $build in
5091 *-*-mingw* ) # actually msys
5092 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5093 ;;
5094 esac
5095 ;;
5096 esac
5097
5098 fi
5099
5100 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5102 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5103
5104
5105
5106
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5109 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5110 if ${lt_cv_ld_reload_flag+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 lt_cv_ld_reload_flag='-r'
5114 fi
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5116 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5117 reload_flag=$lt_cv_ld_reload_flag
5118 case $reload_flag in
5119 "" | " "*) ;;
5120 *) reload_flag=" $reload_flag" ;;
5121 esac
5122 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5123 case $host_os in
5124 cygwin* | mingw* | pw32* | cegcc*)
5125 if test yes != "$GCC"; then
5126 reload_cmds=false
5127 fi
5128 ;;
5129 darwin*)
5130 if test yes = "$GCC"; then
5131 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5132 else
5133 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5134 fi
5135 ;;
5136 esac
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_OBJDUMP+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -n "$OBJDUMP"; then
5155 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5167 fi
5168 done
5169 done
5170 IFS=$as_save_IFS
5171
5172 fi
5173 fi
5174 OBJDUMP=$ac_cv_prog_OBJDUMP
5175 if test -n "$OBJDUMP"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5177 $as_echo "$OBJDUMP" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182
5183
5184 fi
5185 if test -z "$ac_cv_prog_OBJDUMP"; then
5186 ac_ct_OBJDUMP=$OBJDUMP
5187 # Extract the first word of "objdump", so it can be a program name with args.
5188 set dummy objdump; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 if test -n "$ac_ct_OBJDUMP"; then
5195 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208 done
5209 done
5210 IFS=$as_save_IFS
5211
5212 fi
5213 fi
5214 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5215 if test -n "$ac_ct_OBJDUMP"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5217 $as_echo "$ac_ct_OBJDUMP" >&6; }
5218 else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223 if test "x$ac_ct_OBJDUMP" = x; then
5224 OBJDUMP="false"
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227 yes:)
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5231 esac
5232 OBJDUMP=$ac_ct_OBJDUMP
5233 fi
5234 else
5235 OBJDUMP="$ac_cv_prog_OBJDUMP"
5236 fi
5237
5238 test -z "$OBJDUMP" && OBJDUMP=objdump
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5249 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5250 if ${lt_cv_deplibs_check_method+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 lt_cv_file_magic_cmd='$MAGIC_CMD'
5254 lt_cv_file_magic_test_file=
5255 lt_cv_deplibs_check_method='unknown'
5256 # Need to set the preceding variable on all platforms that support
5257 # interlibrary dependencies.
5258 # 'none' -- dependencies not supported.
5259 # 'unknown' -- same as none, but documents that we really don't know.
5260 # 'pass_all' -- all dependencies passed with no checks.
5261 # 'test_compile' -- check by making test program.
5262 # 'file_magic [[regex]]' -- check by looking for files in library path
5263 # that responds to the $file_magic_cmd with a given extended regex.
5264 # If you have 'file' or equivalent on your system and you're not sure
5265 # whether 'pass_all' will *always* work, you probably want this one.
5266
5267 case $host_os in
5268 aix[4-9]*)
5269 lt_cv_deplibs_check_method=pass_all
5270 ;;
5271
5272 beos*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275
5276 bsdi[45]*)
5277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5278 lt_cv_file_magic_cmd='/usr/bin/file -L'
5279 lt_cv_file_magic_test_file=/shlib/libc.so
5280 ;;
5281
5282 cygwin*)
5283 # func_win32_libid is a shell function defined in ltmain.sh
5284 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5285 lt_cv_file_magic_cmd='func_win32_libid'
5286 ;;
5287
5288 mingw* | pw32*)
5289 # Base MSYS/MinGW do not provide the 'file' command needed by
5290 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5291 # unless we find 'file', for example because we are cross-compiling.
5292 if ( file / ) >/dev/null 2>&1; then
5293 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5294 lt_cv_file_magic_cmd='func_win32_libid'
5295 else
5296 # Keep this pattern in sync with the one in func_win32_libid.
5297 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5298 lt_cv_file_magic_cmd='$OBJDUMP -f'
5299 fi
5300 ;;
5301
5302 cegcc*)
5303 # use the weaker test based on 'objdump'. See mingw*.
5304 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5305 lt_cv_file_magic_cmd='$OBJDUMP -f'
5306 ;;
5307
5308 darwin* | rhapsody*)
5309 lt_cv_deplibs_check_method=pass_all
5310 ;;
5311
5312 freebsd* | dragonfly*)
5313 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5314 case $host_cpu in
5315 i*86 )
5316 # Not sure whether the presence of OpenBSD here was a mistake.
5317 # Let's accept both of them until this is cleared up.
5318 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5319 lt_cv_file_magic_cmd=/usr/bin/file
5320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5321 ;;
5322 esac
5323 else
5324 lt_cv_deplibs_check_method=pass_all
5325 fi
5326 ;;
5327
5328 haiku*)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331
5332 hpux10.20* | hpux11*)
5333 lt_cv_file_magic_cmd=/usr/bin/file
5334 case $host_cpu in
5335 ia64*)
5336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5337 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5338 ;;
5339 hppa*64*)
5340 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]'
5341 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5342 ;;
5343 *)
5344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5345 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5346 ;;
5347 esac
5348 ;;
5349
5350 interix[3-9]*)
5351 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5353 ;;
5354
5355 irix5* | irix6* | nonstopux*)
5356 case $LD in
5357 *-32|*"-32 ") libmagic=32-bit;;
5358 *-n32|*"-n32 ") libmagic=N32;;
5359 *-64|*"-64 ") libmagic=64-bit;;
5360 *) libmagic=never-match;;
5361 esac
5362 lt_cv_deplibs_check_method=pass_all
5363 ;;
5364
5365 # This must be glibc/ELF.
5366 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369
5370 netbsd*)
5371 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5373 else
5374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5375 fi
5376 ;;
5377
5378 newos6*)
5379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5380 lt_cv_file_magic_cmd=/usr/bin/file
5381 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5382 ;;
5383
5384 *nto* | *qnx*)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387
5388 openbsd* | bitrig*)
5389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5391 else
5392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5393 fi
5394 ;;
5395
5396 osf3* | osf4* | osf5*)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
5399
5400 rdos*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403
5404 solaris*)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407
5408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412 sysv4 | sysv4.3*)
5413 case $host_vendor in
5414 motorola)
5415 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]'
5416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5417 ;;
5418 ncr)
5419 lt_cv_deplibs_check_method=pass_all
5420 ;;
5421 sequent)
5422 lt_cv_file_magic_cmd='/bin/file'
5423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5424 ;;
5425 sni)
5426 lt_cv_file_magic_cmd='/bin/file'
5427 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5428 lt_cv_file_magic_test_file=/lib/libc.so
5429 ;;
5430 siemens)
5431 lt_cv_deplibs_check_method=pass_all
5432 ;;
5433 pc)
5434 lt_cv_deplibs_check_method=pass_all
5435 ;;
5436 esac
5437 ;;
5438
5439 tpf*)
5440 lt_cv_deplibs_check_method=pass_all
5441 ;;
5442 os2*)
5443 lt_cv_deplibs_check_method=pass_all
5444 ;;
5445 esac
5446
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5449 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5450
5451 file_magic_glob=
5452 want_nocaseglob=no
5453 if test "$build" = "$host"; then
5454 case $host_os in
5455 mingw* | pw32*)
5456 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5457 want_nocaseglob=yes
5458 else
5459 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5460 fi
5461 ;;
5462 esac
5463 fi
5464
5465 file_magic_cmd=$lt_cv_file_magic_cmd
5466 deplibs_check_method=$lt_cv_deplibs_check_method
5467 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490 if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5492 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_DLLTOOL+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$DLLTOOL"; then
5499 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 fi
5517 fi
5518 DLLTOOL=$ac_cv_prog_DLLTOOL
5519 if test -n "$DLLTOOL"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5521 $as_echo "$DLLTOOL" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525 fi
5526
5527
5528 fi
5529 if test -z "$ac_cv_prog_DLLTOOL"; then
5530 ac_ct_DLLTOOL=$DLLTOOL
5531 # Extract the first word of "dlltool", so it can be a program name with args.
5532 set dummy dlltool; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$ac_ct_DLLTOOL"; then
5539 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552 done
5553 done
5554 IFS=$as_save_IFS
5555
5556 fi
5557 fi
5558 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5559 if test -n "$ac_ct_DLLTOOL"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5561 $as_echo "$ac_ct_DLLTOOL" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566
5567 if test "x$ac_ct_DLLTOOL" = x; then
5568 DLLTOOL="false"
5569 else
5570 case $cross_compiling:$ac_tool_warned in
5571 yes:)
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574 ac_tool_warned=yes ;;
5575 esac
5576 DLLTOOL=$ac_ct_DLLTOOL
5577 fi
5578 else
5579 DLLTOOL="$ac_cv_prog_DLLTOOL"
5580 fi
5581
5582 test -z "$DLLTOOL" && DLLTOOL=dlltool
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5594 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5595 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 lt_cv_sharedlib_from_linklib_cmd='unknown'
5599
5600 case $host_os in
5601 cygwin* | mingw* | pw32* | cegcc*)
5602 # two different shell functions defined in ltmain.sh;
5603 # decide which one to use based on capabilities of $DLLTOOL
5604 case `$DLLTOOL --help 2>&1` in
5605 *--identify-strict*)
5606 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5607 ;;
5608 *)
5609 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5610 ;;
5611 esac
5612 ;;
5613 *)
5614 # fallback: assume linklib IS sharedlib
5615 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5616 ;;
5617 esac
5618
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5621 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5622 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5623 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5624
5625
5626
5627
5628
5629
5630
5631
5632 if test -n "$ac_tool_prefix"; then
5633 for ac_prog in ar
5634 do
5635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if ${ac_cv_prog_AR+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 if test -n "$AR"; then
5643 ac_cv_prog_AR="$AR" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5655 fi
5656 done
5657 done
5658 IFS=$as_save_IFS
5659
5660 fi
5661 fi
5662 AR=$ac_cv_prog_AR
5663 if test -n "$AR"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5665 $as_echo "$AR" >&6; }
5666 else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670
5671
5672 test -n "$AR" && break
5673 done
5674 fi
5675 if test -z "$AR"; then
5676 ac_ct_AR=$AR
5677 for ac_prog in ar
5678 do
5679 # Extract the first word of "$ac_prog", so it can be a program name with args.
5680 set dummy $ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 if test -n "$ac_ct_AR"; then
5687 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_AR="$ac_prog"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700 done
5701 done
5702 IFS=$as_save_IFS
5703
5704 fi
5705 fi
5706 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5707 if test -n "$ac_ct_AR"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5709 $as_echo "$ac_ct_AR" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715
5716 test -n "$ac_ct_AR" && break
5717 done
5718
5719 if test "x$ac_ct_AR" = x; then
5720 AR="false"
5721 else
5722 case $cross_compiling:$ac_tool_warned in
5723 yes:)
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726 ac_tool_warned=yes ;;
5727 esac
5728 AR=$ac_ct_AR
5729 fi
5730 fi
5731
5732 : ${AR=ar}
5733 : ${AR_FLAGS=cru}
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5746 $as_echo_n "checking for archiver @FILE support... " >&6; }
5747 if ${lt_cv_ar_at_file+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 lt_cv_ar_at_file=no
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753
5754 int
5755 main ()
5756 {
5757
5758 ;
5759 return 0;
5760 }
5761 _ACEOF
5762 if ac_fn_c_try_compile "$LINENO"; then :
5763 echo conftest.$ac_objext > conftest.lst
5764 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5766 (eval $lt_ar_try) 2>&5
5767 ac_status=$?
5768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769 test $ac_status = 0; }
5770 if test 0 -eq "$ac_status"; then
5771 # Ensure the archiver fails upon bogus file names.
5772 rm -f conftest.$ac_objext libconftest.a
5773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5774 (eval $lt_ar_try) 2>&5
5775 ac_status=$?
5776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5777 test $ac_status = 0; }
5778 if test 0 -ne "$ac_status"; then
5779 lt_cv_ar_at_file=@
5780 fi
5781 fi
5782 rm -f conftest.* libconftest.a
5783
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5789 $as_echo "$lt_cv_ar_at_file" >&6; }
5790
5791 if test no = "$lt_cv_ar_at_file"; then
5792 archiver_list_spec=
5793 else
5794 archiver_list_spec=$lt_cv_ar_at_file
5795 fi
5796
5797
5798
5799
5800
5801
5802
5803 if test -n "$ac_tool_prefix"; then
5804 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5805 set dummy ${ac_tool_prefix}strip; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_prog_STRIP+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 if test -n "$STRIP"; then
5812 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5824 fi
5825 done
5826 done
5827 IFS=$as_save_IFS
5828
5829 fi
5830 fi
5831 STRIP=$ac_cv_prog_STRIP
5832 if test -n "$STRIP"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5834 $as_echo "$STRIP" >&6; }
5835 else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5838 fi
5839
5840
5841 fi
5842 if test -z "$ac_cv_prog_STRIP"; then
5843 ac_ct_STRIP=$STRIP
5844 # Extract the first word of "strip", so it can be a program name with args.
5845 set dummy strip; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 if test -n "$ac_ct_STRIP"; then
5852 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_ac_ct_STRIP="strip"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865 done
5866 done
5867 IFS=$as_save_IFS
5868
5869 fi
5870 fi
5871 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5872 if test -n "$ac_ct_STRIP"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5874 $as_echo "$ac_ct_STRIP" >&6; }
5875 else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5878 fi
5879
5880 if test "x$ac_ct_STRIP" = x; then
5881 STRIP=":"
5882 else
5883 case $cross_compiling:$ac_tool_warned in
5884 yes:)
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5887 ac_tool_warned=yes ;;
5888 esac
5889 STRIP=$ac_ct_STRIP
5890 fi
5891 else
5892 STRIP="$ac_cv_prog_STRIP"
5893 fi
5894
5895 test -z "$STRIP" && STRIP=:
5896
5897
5898
5899
5900
5901
5902 if test -n "$ac_tool_prefix"; then
5903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if ${ac_cv_prog_RANLIB+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 if test -n "$RANLIB"; then
5911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 2
5923 fi
5924 done
5925 done
5926 IFS=$as_save_IFS
5927
5928 fi
5929 fi
5930 RANLIB=$ac_cv_prog_RANLIB
5931 if test -n "$RANLIB"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5933 $as_echo "$RANLIB" >&6; }
5934 else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 fi
5938
5939
5940 fi
5941 if test -z "$ac_cv_prog_RANLIB"; then
5942 ac_ct_RANLIB=$RANLIB
5943 # Extract the first word of "ranlib", so it can be a program name with args.
5944 set dummy ranlib; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -n "$ac_ct_RANLIB"; then
5951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_ac_ct_RANLIB="ranlib"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964 done
5965 done
5966 IFS=$as_save_IFS
5967
5968 fi
5969 fi
5970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5971 if test -n "$ac_ct_RANLIB"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5973 $as_echo "$ac_ct_RANLIB" >&6; }
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5977 fi
5978
5979 if test "x$ac_ct_RANLIB" = x; then
5980 RANLIB=":"
5981 else
5982 case $cross_compiling:$ac_tool_warned in
5983 yes:)
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5986 ac_tool_warned=yes ;;
5987 esac
5988 RANLIB=$ac_ct_RANLIB
5989 fi
5990 else
5991 RANLIB="$ac_cv_prog_RANLIB"
5992 fi
5993
5994 test -z "$RANLIB" && RANLIB=:
5995
5996
5997
5998
5999
6000
6001 # Determine commands to create old-style static archives.
6002 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6003 old_postinstall_cmds='chmod 644 $oldlib'
6004 old_postuninstall_cmds=
6005
6006 if test -n "$RANLIB"; then
6007 case $host_os in
6008 bitrig* | openbsd*)
6009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6010 ;;
6011 *)
6012 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6013 ;;
6014 esac
6015 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6016 fi
6017
6018 case $host_os in
6019 darwin*)
6020 lock_old_archive_extraction=yes ;;
6021 *)
6022 lock_old_archive_extraction=no ;;
6023 esac
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063 # If no C compiler was specified, use CC.
6064 LTCC=${LTCC-"$CC"}
6065
6066 # If no C compiler flags were specified, use CFLAGS.
6067 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6068
6069 # Allow CC to be a program name with arguments.
6070 compiler=$CC
6071
6072
6073 # Check for command to grab the raw symbol name followed by C symbol from nm.
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6075 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6076 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079
6080 # These are sane defaults that work on at least a few old systems.
6081 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6082
6083 # Character class describing NM global symbol codes.
6084 symcode='[BCDEGRST]'
6085
6086 # Regexp to match symbols that can be accessed directly from C.
6087 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6088
6089 # Define system-specific variables.
6090 case $host_os in
6091 aix*)
6092 symcode='[BCDT]'
6093 ;;
6094 cygwin* | mingw* | pw32* | cegcc*)
6095 symcode='[ABCDGISTW]'
6096 ;;
6097 hpux*)
6098 if test ia64 = "$host_cpu"; then
6099 symcode='[ABCDEGRST]'
6100 fi
6101 ;;
6102 irix* | nonstopux*)
6103 symcode='[BCDEGRST]'
6104 ;;
6105 osf*)
6106 symcode='[BCDEGQRST]'
6107 ;;
6108 solaris*)
6109 symcode='[BDRT]'
6110 ;;
6111 sco3.2v5*)
6112 symcode='[DT]'
6113 ;;
6114 sysv4.2uw2*)
6115 symcode='[DT]'
6116 ;;
6117 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6118 symcode='[ABDT]'
6119 ;;
6120 sysv4)
6121 symcode='[DFNSTU]'
6122 ;;
6123 esac
6124
6125 # If we're using GNU nm, then use its standard symbol codes.
6126 case `$NM -V 2>&1` in
6127 *GNU* | *'with BFD'*)
6128 symcode='[ABCDGIRSTW]' ;;
6129 esac
6130
6131 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6132 # Gets list of data symbols to import.
6133 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6134 # Adjust the below global symbol transforms to fixup imported variables.
6135 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6136 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6137 lt_c_name_lib_hook="\
6138 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6139 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6140 else
6141 # Disable hooks by default.
6142 lt_cv_sys_global_symbol_to_import=
6143 lt_cdecl_hook=
6144 lt_c_name_hook=
6145 lt_c_name_lib_hook=
6146 fi
6147
6148 # Transform an extracted symbol line into a proper C declaration.
6149 # Some systems (esp. on ia64) link data and code symbols differently,
6150 # so use this general approach.
6151 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6152 $lt_cdecl_hook\
6153 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6154 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6155
6156 # Transform an extracted symbol line into symbol name and symbol address
6157 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6158 $lt_c_name_hook\
6159 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6160 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6161
6162 # Transform an extracted symbol line into symbol name with lib prefix and
6163 # symbol address.
6164 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6165 $lt_c_name_lib_hook\
6166 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6167 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6168 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6169
6170 # Handle CRLF in mingw tool chain
6171 opt_cr=
6172 case $build_os in
6173 mingw*)
6174 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6175 ;;
6176 esac
6177
6178 # Try without a prefix underscore, then with it.
6179 for ac_symprfx in "" "_"; do
6180
6181 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6182 symxfrm="\\1 $ac_symprfx\\2 \\2"
6183
6184 # Write the raw and C identifiers.
6185 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6186 # Fake it for dumpbin and say T for any non-static function,
6187 # D for any global variable and I for any imported variable.
6188 # Also find C++ and __fastcall symbols from MSVC++,
6189 # which start with @ or ?.
6190 lt_cv_sys_global_symbol_pipe="$AWK '"\
6191 " {last_section=section; section=\$ 3};"\
6192 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6193 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6194 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6195 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6196 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6197 " \$ 0!~/External *\|/{next};"\
6198 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6199 " {if(hide[section]) next};"\
6200 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6201 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6202 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6203 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6204 " ' prfx=^$ac_symprfx"
6205 else
6206 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6207 fi
6208 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6209
6210 # Check to see that the pipe works correctly.
6211 pipe_works=no
6212
6213 rm -f conftest*
6214 cat > conftest.$ac_ext <<_LT_EOF
6215 #ifdef __cplusplus
6216 extern "C" {
6217 #endif
6218 char nm_test_var;
6219 void nm_test_func(void);
6220 void nm_test_func(void){}
6221 #ifdef __cplusplus
6222 }
6223 #endif
6224 int main(){nm_test_var='a';nm_test_func();return(0);}
6225 _LT_EOF
6226
6227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6228 (eval $ac_compile) 2>&5
6229 ac_status=$?
6230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6231 test $ac_status = 0; }; then
6232 # Now try to grab the symbols.
6233 nlist=conftest.nm
6234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6235 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6236 ac_status=$?
6237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6238 test $ac_status = 0; } && test -s "$nlist"; then
6239 # Try sorting and uniquifying the output.
6240 if sort "$nlist" | uniq > "$nlist"T; then
6241 mv -f "$nlist"T "$nlist"
6242 else
6243 rm -f "$nlist"T
6244 fi
6245
6246 # Make sure that we snagged all the symbols we need.
6247 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6248 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6249 cat <<_LT_EOF > conftest.$ac_ext
6250 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6251 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6252 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6253 relocations are performed -- see ld's documentation on pseudo-relocs. */
6254 # define LT_DLSYM_CONST
6255 #elif defined __osf__
6256 /* This system does not cope well with relocations in const data. */
6257 # define LT_DLSYM_CONST
6258 #else
6259 # define LT_DLSYM_CONST const
6260 #endif
6261
6262 #ifdef __cplusplus
6263 extern "C" {
6264 #endif
6265
6266 _LT_EOF
6267 # Now generate the symbol file.
6268 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6269
6270 cat <<_LT_EOF >> conftest.$ac_ext
6271
6272 /* The mapping between symbol names and symbols. */
6273 LT_DLSYM_CONST struct {
6274 const char *name;
6275 void *address;
6276 }
6277 lt__PROGRAM__LTX_preloaded_symbols[] =
6278 {
6279 { "@PROGRAM@", (void *) 0 },
6280 _LT_EOF
6281 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6282 cat <<\_LT_EOF >> conftest.$ac_ext
6283 {0, (void *) 0}
6284 };
6285
6286 /* This works around a problem in FreeBSD linker */
6287 #ifdef FREEBSD_WORKAROUND
6288 static const void *lt_preloaded_setup() {
6289 return lt__PROGRAM__LTX_preloaded_symbols;
6290 }
6291 #endif
6292
6293 #ifdef __cplusplus
6294 }
6295 #endif
6296 _LT_EOF
6297 # Now try linking the two files.
6298 mv conftest.$ac_objext conftstm.$ac_objext
6299 lt_globsym_save_LIBS=$LIBS
6300 lt_globsym_save_CFLAGS=$CFLAGS
6301 LIBS=conftstm.$ac_objext
6302 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6304 (eval $ac_link) 2>&5
6305 ac_status=$?
6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6308 pipe_works=yes
6309 fi
6310 LIBS=$lt_globsym_save_LIBS
6311 CFLAGS=$lt_globsym_save_CFLAGS
6312 else
6313 echo "cannot find nm_test_func in $nlist" >&5
6314 fi
6315 else
6316 echo "cannot find nm_test_var in $nlist" >&5
6317 fi
6318 else
6319 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6320 fi
6321 else
6322 echo "$progname: failed program was:" >&5
6323 cat conftest.$ac_ext >&5
6324 fi
6325 rm -rf conftest* conftst*
6326
6327 # Do not use the global_symbol_pipe unless it works.
6328 if test yes = "$pipe_works"; then
6329 break
6330 else
6331 lt_cv_sys_global_symbol_pipe=
6332 fi
6333 done
6334
6335 fi
6336
6337 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6338 lt_cv_sys_global_symbol_to_cdecl=
6339 fi
6340 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6342 $as_echo "failed" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6345 $as_echo "ok" >&6; }
6346 fi
6347
6348 # Response file support.
6349 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6350 nm_file_list_spec='@'
6351 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6352 nm_file_list_spec='@'
6353 fi
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6392 $as_echo_n "checking for sysroot... " >&6; }
6393
6394 # Check whether --with-sysroot was given.
6395 if test "${with_sysroot+set}" = set; then :
6396 withval=$with_sysroot;
6397 else
6398 with_sysroot=no
6399 fi
6400
6401
6402 lt_sysroot=
6403 case $with_sysroot in #(
6404 yes)
6405 if test yes = "$GCC"; then
6406 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6407 fi
6408 ;; #(
6409 /*)
6410 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6411 ;; #(
6412 no|'')
6413 ;; #(
6414 *)
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6416 $as_echo "$with_sysroot" >&6; }
6417 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6418 ;;
6419 esac
6420
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6422 $as_echo "${lt_sysroot:-no}" >&6; }
6423
6424
6425
6426
6427
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6429 $as_echo_n "checking for a working dd... " >&6; }
6430 if ${ac_cv_path_lt_DD+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 printf 0123456789abcdef0123456789abcdef >conftest.i
6434 cat conftest.i conftest.i >conftest2.i
6435 : ${lt_DD:=$DD}
6436 if test -z "$lt_DD"; then
6437 ac_path_lt_DD_found=false
6438 # Loop through the user's path and test for each of PROGNAME-LIST
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_prog in dd; do
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6447 as_fn_executable_p "$ac_path_lt_DD" || continue
6448 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6449 cmp -s conftest.i conftest.out \
6450 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6451 fi
6452 $ac_path_lt_DD_found && break 3
6453 done
6454 done
6455 done
6456 IFS=$as_save_IFS
6457 if test -z "$ac_cv_path_lt_DD"; then
6458 :
6459 fi
6460 else
6461 ac_cv_path_lt_DD=$lt_DD
6462 fi
6463
6464 rm -f conftest.i conftest2.i conftest.out
6465 fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6467 $as_echo "$ac_cv_path_lt_DD" >&6; }
6468
6469
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6471 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6472 if ${lt_cv_truncate_bin+:} false; then :
6473 $as_echo_n "(cached) " >&6
6474 else
6475 printf 0123456789abcdef0123456789abcdef >conftest.i
6476 cat conftest.i conftest.i >conftest2.i
6477 lt_cv_truncate_bin=
6478 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6479 cmp -s conftest.i conftest.out \
6480 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6481 fi
6482 rm -f conftest.i conftest2.i conftest.out
6483 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6484 fi
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6486 $as_echo "$lt_cv_truncate_bin" >&6; }
6487
6488
6489
6490
6491
6492
6493
6494 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6495 func_cc_basename ()
6496 {
6497 for cc_temp in $*""; do
6498 case $cc_temp in
6499 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6500 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6501 \-*) ;;
6502 *) break;;
6503 esac
6504 done
6505 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6506 }
6507
6508 # Check whether --enable-libtool-lock was given.
6509 if test "${enable_libtool_lock+set}" = set; then :
6510 enableval=$enable_libtool_lock;
6511 fi
6512
6513 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6514
6515 # Some flags need to be propagated to the compiler or linker for good
6516 # libtool support.
6517 case $host in
6518 ia64-*-hpux*)
6519 # Find out what ABI is being produced by ac_compile, and set mode
6520 # options accordingly.
6521 echo 'int i;' > conftest.$ac_ext
6522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6523 (eval $ac_compile) 2>&5
6524 ac_status=$?
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526 test $ac_status = 0; }; then
6527 case `/usr/bin/file conftest.$ac_objext` in
6528 *ELF-32*)
6529 HPUX_IA64_MODE=32
6530 ;;
6531 *ELF-64*)
6532 HPUX_IA64_MODE=64
6533 ;;
6534 esac
6535 fi
6536 rm -rf conftest*
6537 ;;
6538 *-*-irix6*)
6539 # Find out what ABI is being produced by ac_compile, and set linker
6540 # options accordingly.
6541 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6543 (eval $ac_compile) 2>&5
6544 ac_status=$?
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; }; then
6547 if test yes = "$lt_cv_prog_gnu_ld"; then
6548 case `/usr/bin/file conftest.$ac_objext` in
6549 *32-bit*)
6550 LD="${LD-ld} -melf32bsmip"
6551 ;;
6552 *N32*)
6553 LD="${LD-ld} -melf32bmipn32"
6554 ;;
6555 *64-bit*)
6556 LD="${LD-ld} -melf64bmip"
6557 ;;
6558 esac
6559 else
6560 case `/usr/bin/file conftest.$ac_objext` in
6561 *32-bit*)
6562 LD="${LD-ld} -32"
6563 ;;
6564 *N32*)
6565 LD="${LD-ld} -n32"
6566 ;;
6567 *64-bit*)
6568 LD="${LD-ld} -64"
6569 ;;
6570 esac
6571 fi
6572 fi
6573 rm -rf conftest*
6574 ;;
6575
6576 mips64*-*linux*)
6577 # Find out what ABI is being produced by ac_compile, and set linker
6578 # options accordingly.
6579 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581 (eval $ac_compile) 2>&5
6582 ac_status=$?
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; }; then
6585 emul=elf
6586 case `/usr/bin/file conftest.$ac_objext` in
6587 *32-bit*)
6588 emul="${emul}32"
6589 ;;
6590 *64-bit*)
6591 emul="${emul}64"
6592 ;;
6593 esac
6594 case `/usr/bin/file conftest.$ac_objext` in
6595 *MSB*)
6596 emul="${emul}btsmip"
6597 ;;
6598 *LSB*)
6599 emul="${emul}ltsmip"
6600 ;;
6601 esac
6602 case `/usr/bin/file conftest.$ac_objext` in
6603 *N32*)
6604 emul="${emul}n32"
6605 ;;
6606 esac
6607 LD="${LD-ld} -m $emul"
6608 fi
6609 rm -rf conftest*
6610 ;;
6611
6612 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6613 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6614 # Find out what ABI is being produced by ac_compile, and set linker
6615 # options accordingly. Note that the listed cases only cover the
6616 # situations where additional linker options are needed (such as when
6617 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6618 # vice versa); the common cases where no linker options are needed do
6619 # not appear in the list.
6620 echo 'int i;' > conftest.$ac_ext
6621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6622 (eval $ac_compile) 2>&5
6623 ac_status=$?
6624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625 test $ac_status = 0; }; then
6626 case `/usr/bin/file conftest.o` in
6627 *32-bit*)
6628 case $host in
6629 x86_64-*kfreebsd*-gnu)
6630 LD="${LD-ld} -m elf_i386_fbsd"
6631 ;;
6632 x86_64-*linux*)
6633 case `/usr/bin/file conftest.o` in
6634 *x86-64*)
6635 LD="${LD-ld} -m elf32_x86_64"
6636 ;;
6637 *)
6638 LD="${LD-ld} -m elf_i386"
6639 ;;
6640 esac
6641 ;;
6642 powerpc64le-*linux*)
6643 LD="${LD-ld} -m elf32lppclinux"
6644 ;;
6645 powerpc64-*linux*)
6646 LD="${LD-ld} -m elf32ppclinux"
6647 ;;
6648 s390x-*linux*)
6649 LD="${LD-ld} -m elf_s390"
6650 ;;
6651 sparc64-*linux*)
6652 LD="${LD-ld} -m elf32_sparc"
6653 ;;
6654 esac
6655 ;;
6656 *64-bit*)
6657 case $host in
6658 x86_64-*kfreebsd*-gnu)
6659 LD="${LD-ld} -m elf_x86_64_fbsd"
6660 ;;
6661 x86_64-*linux*)
6662 LD="${LD-ld} -m elf_x86_64"
6663 ;;
6664 powerpcle-*linux*)
6665 LD="${LD-ld} -m elf64lppc"
6666 ;;
6667 powerpc-*linux*)
6668 LD="${LD-ld} -m elf64ppc"
6669 ;;
6670 s390*-*linux*|s390*-*tpf*)
6671 LD="${LD-ld} -m elf64_s390"
6672 ;;
6673 sparc*-*linux*)
6674 LD="${LD-ld} -m elf64_sparc"
6675 ;;
6676 esac
6677 ;;
6678 esac
6679 fi
6680 rm -rf conftest*
6681 ;;
6682
6683 *-*-sco3.2v5*)
6684 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6685 SAVE_CFLAGS=$CFLAGS
6686 CFLAGS="$CFLAGS -belf"
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6688 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6689 if ${lt_cv_cc_needs_belf+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 ac_ext=c
6693 ac_cpp='$CPP $CPPFLAGS'
6694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6697
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700
6701 int
6702 main ()
6703 {
6704
6705 ;
6706 return 0;
6707 }
6708 _ACEOF
6709 if ac_fn_c_try_link "$LINENO"; then :
6710 lt_cv_cc_needs_belf=yes
6711 else
6712 lt_cv_cc_needs_belf=no
6713 fi
6714 rm -f core conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716 ac_ext=c
6717 ac_cpp='$CPP $CPPFLAGS'
6718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6721
6722 fi
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6724 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6725 if test yes != "$lt_cv_cc_needs_belf"; then
6726 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6727 CFLAGS=$SAVE_CFLAGS
6728 fi
6729 ;;
6730 *-*solaris*)
6731 # Find out what ABI is being produced by ac_compile, and set linker
6732 # options accordingly.
6733 echo 'int i;' > conftest.$ac_ext
6734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6735 (eval $ac_compile) 2>&5
6736 ac_status=$?
6737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738 test $ac_status = 0; }; then
6739 case `/usr/bin/file conftest.o` in
6740 *64-bit*)
6741 case $lt_cv_prog_gnu_ld in
6742 yes*)
6743 case $host in
6744 i?86-*-solaris*|x86_64-*-solaris*)
6745 LD="${LD-ld} -m elf_x86_64"
6746 ;;
6747 sparc*-*-solaris*)
6748 LD="${LD-ld} -m elf64_sparc"
6749 ;;
6750 esac
6751 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6752 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6753 LD=${LD-ld}_sol2
6754 fi
6755 ;;
6756 *)
6757 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6758 LD="${LD-ld} -64"
6759 fi
6760 ;;
6761 esac
6762 ;;
6763 esac
6764 fi
6765 rm -rf conftest*
6766 ;;
6767 esac
6768
6769 need_locks=$enable_libtool_lock
6770
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}mt; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$MANIFEST_TOOL"; then
6780 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6800 if test -n "$MANIFEST_TOOL"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6802 $as_echo "$MANIFEST_TOOL" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808
6809 fi
6810 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6811 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6812 # Extract the first word of "mt", so it can be a program name with args.
6813 set dummy mt; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 if test -n "$ac_ct_MANIFEST_TOOL"; then
6820 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6840 if test -n "$ac_ct_MANIFEST_TOOL"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6842 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6849 MANIFEST_TOOL=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6858 fi
6859 else
6860 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6861 fi
6862
6863 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6865 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6866 if ${lt_cv_path_mainfest_tool+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 lt_cv_path_mainfest_tool=no
6870 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6871 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6872 cat conftest.err >&5
6873 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6874 lt_cv_path_mainfest_tool=yes
6875 fi
6876 rm -f conftest*
6877 fi
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6879 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6880 if test yes != "$lt_cv_path_mainfest_tool"; then
6881 MANIFEST_TOOL=:
6882 fi
6883
6884
6885
6886
6887
6888
6889 case $host_os in
6890 rhapsody* | darwin*)
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$DSYMUTIL"; then
6900 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6920 if test -n "$DSYMUTIL"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6922 $as_echo "$DSYMUTIL" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_DSYMUTIL"; then
6931 ac_ct_DSYMUTIL=$DSYMUTIL
6932 # Extract the first word of "dsymutil", so it can be a program name with args.
6933 set dummy dsymutil; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$ac_ct_DSYMUTIL"; then
6940 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6960 if test -n "$ac_ct_DSYMUTIL"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6962 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968 if test "x$ac_ct_DSYMUTIL" = x; then
6969 DSYMUTIL=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 DSYMUTIL=$ac_ct_DSYMUTIL
6978 fi
6979 else
6980 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6981 fi
6982
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_NMEDIT+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$NMEDIT"; then
6992 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 NMEDIT=$ac_cv_prog_NMEDIT
7012 if test -n "$NMEDIT"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7014 $as_echo "$NMEDIT" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020
7021 fi
7022 if test -z "$ac_cv_prog_NMEDIT"; then
7023 ac_ct_NMEDIT=$NMEDIT
7024 # Extract the first word of "nmedit", so it can be a program name with args.
7025 set dummy nmedit; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$ac_ct_NMEDIT"; then
7032 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045 done
7046 done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7052 if test -n "$ac_ct_NMEDIT"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7054 $as_echo "$ac_ct_NMEDIT" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060 if test "x$ac_ct_NMEDIT" = x; then
7061 NMEDIT=":"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069 NMEDIT=$ac_ct_NMEDIT
7070 fi
7071 else
7072 NMEDIT="$ac_cv_prog_NMEDIT"
7073 fi
7074
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_LIPO+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$LIPO"; then
7084 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 LIPO=$ac_cv_prog_LIPO
7104 if test -n "$LIPO"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7106 $as_echo "$LIPO" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112
7113 fi
7114 if test -z "$ac_cv_prog_LIPO"; then
7115 ac_ct_LIPO=$LIPO
7116 # Extract the first word of "lipo", so it can be a program name with args.
7117 set dummy lipo; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$ac_ct_LIPO"; then
7124 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_LIPO="lipo"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7144 if test -n "$ac_ct_LIPO"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7146 $as_echo "$ac_ct_LIPO" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152 if test "x$ac_ct_LIPO" = x; then
7153 LIPO=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161 LIPO=$ac_ct_LIPO
7162 fi
7163 else
7164 LIPO="$ac_cv_prog_LIPO"
7165 fi
7166
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7169 set dummy ${ac_tool_prefix}otool; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_OTOOL+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if test -n "$OTOOL"; then
7176 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7192
7193 fi
7194 fi
7195 OTOOL=$ac_cv_prog_OTOOL
7196 if test -n "$OTOOL"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7198 $as_echo "$OTOOL" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7202 fi
7203
7204
7205 fi
7206 if test -z "$ac_cv_prog_OTOOL"; then
7207 ac_ct_OTOOL=$OTOOL
7208 # Extract the first word of "otool", so it can be a program name with args.
7209 set dummy otool; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215 if test -n "$ac_ct_OTOOL"; then
7216 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_ac_ct_OTOOL="otool"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229 done
7230 done
7231 IFS=$as_save_IFS
7232
7233 fi
7234 fi
7235 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7236 if test -n "$ac_ct_OTOOL"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7238 $as_echo "$ac_ct_OTOOL" >&6; }
7239 else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244 if test "x$ac_ct_OTOOL" = x; then
7245 OTOOL=":"
7246 else
7247 case $cross_compiling:$ac_tool_warned in
7248 yes:)
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251 ac_tool_warned=yes ;;
7252 esac
7253 OTOOL=$ac_ct_OTOOL
7254 fi
7255 else
7256 OTOOL="$ac_cv_prog_OTOOL"
7257 fi
7258
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_OTOOL64+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 if test -n "$OTOOL64"; then
7268 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 OTOOL64=$ac_cv_prog_OTOOL64
7288 if test -n "$OTOOL64"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7290 $as_echo "$OTOOL64" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296
7297 fi
7298 if test -z "$ac_cv_prog_OTOOL64"; then
7299 ac_ct_OTOOL64=$OTOOL64
7300 # Extract the first word of "otool64", so it can be a program name with args.
7301 set dummy otool64; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$ac_ct_OTOOL64"; then
7308 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_ac_ct_OTOOL64="otool64"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7328 if test -n "$ac_ct_OTOOL64"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7330 $as_echo "$ac_ct_OTOOL64" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336 if test "x$ac_ct_OTOOL64" = x; then
7337 OTOOL64=":"
7338 else
7339 case $cross_compiling:$ac_tool_warned in
7340 yes:)
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7344 esac
7345 OTOOL64=$ac_ct_OTOOL64
7346 fi
7347 else
7348 OTOOL64="$ac_cv_prog_OTOOL64"
7349 fi
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7378 $as_echo_n "checking for -single_module linker flag... " >&6; }
7379 if ${lt_cv_apple_cc_single_mod+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 lt_cv_apple_cc_single_mod=no
7383 if test -z "$LT_MULTI_MODULE"; then
7384 # By default we will add the -single_module flag. You can override
7385 # by either setting the environment variable LT_MULTI_MODULE
7386 # non-empty at configure time, or by adding -multi_module to the
7387 # link flags.
7388 rm -rf libconftest.dylib*
7389 echo "int foo(void){return 1;}" > conftest.c
7390 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7391 -dynamiclib -Wl,-single_module conftest.c" >&5
7392 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7393 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7394 _lt_result=$?
7395 # If there is a non-empty error log, and "single_module"
7396 # appears in it, assume the flag caused a linker warning
7397 if test -s conftest.err && $GREP single_module conftest.err; then
7398 cat conftest.err >&5
7399 # Otherwise, if the output was created with a 0 exit code from
7400 # the compiler, it worked.
7401 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7402 lt_cv_apple_cc_single_mod=yes
7403 else
7404 cat conftest.err >&5
7405 fi
7406 rm -rf libconftest.dylib*
7407 rm -f conftest.*
7408 fi
7409 fi
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7411 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7412
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7414 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7415 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 lt_cv_ld_exported_symbols_list=no
7419 save_LDFLAGS=$LDFLAGS
7420 echo "_main" > conftest.sym
7421 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424
7425 int
7426 main ()
7427 {
7428
7429 ;
7430 return 0;
7431 }
7432 _ACEOF
7433 if ac_fn_c_try_link "$LINENO"; then :
7434 lt_cv_ld_exported_symbols_list=yes
7435 else
7436 lt_cv_ld_exported_symbols_list=no
7437 fi
7438 rm -f core conftest.err conftest.$ac_objext \
7439 conftest$ac_exeext conftest.$ac_ext
7440 LDFLAGS=$save_LDFLAGS
7441
7442 fi
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7444 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7445
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7447 $as_echo_n "checking for -force_load linker flag... " >&6; }
7448 if ${lt_cv_ld_force_load+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 lt_cv_ld_force_load=no
7452 cat > conftest.c << _LT_EOF
7453 int forced_loaded() { return 2;}
7454 _LT_EOF
7455 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7456 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7457 echo "$AR cru libconftest.a conftest.o" >&5
7458 $AR cru libconftest.a conftest.o 2>&5
7459 echo "$RANLIB libconftest.a" >&5
7460 $RANLIB libconftest.a 2>&5
7461 cat > conftest.c << _LT_EOF
7462 int main() { return 0;}
7463 _LT_EOF
7464 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7465 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7466 _lt_result=$?
7467 if test -s conftest.err && $GREP force_load conftest.err; then
7468 cat conftest.err >&5
7469 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7470 lt_cv_ld_force_load=yes
7471 else
7472 cat conftest.err >&5
7473 fi
7474 rm -f conftest.err libconftest.a conftest conftest.c
7475 rm -rf conftest.dSYM
7476
7477 fi
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7479 $as_echo "$lt_cv_ld_force_load" >&6; }
7480 case $host_os in
7481 rhapsody* | darwin1.[012])
7482 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7483 darwin1.*)
7484 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7485 darwin*) # darwin 5.x on
7486 # if running on 10.5 or later, the deployment target defaults
7487 # to the OS version, if on x86, and 10.4, the deployment
7488 # target defaults to 10.4. Don't you love it?
7489 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7490 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7491 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7492 10.[012][,.]*)
7493 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7494 10.*)
7495 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7496 esac
7497 ;;
7498 esac
7499 if test yes = "$lt_cv_apple_cc_single_mod"; then
7500 _lt_dar_single_mod='$single_module'
7501 fi
7502 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7503 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7504 else
7505 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7506 fi
7507 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7508 _lt_dsymutil='~$DSYMUTIL $lib || :'
7509 else
7510 _lt_dsymutil=
7511 fi
7512 ;;
7513 esac
7514
7515 # func_munge_path_list VARIABLE PATH
7516 # -----------------------------------
7517 # VARIABLE is name of variable containing _space_ separated list of
7518 # directories to be munged by the contents of PATH, which is string
7519 # having a format:
7520 # "DIR[:DIR]:"
7521 # string "DIR[ DIR]" will be prepended to VARIABLE
7522 # ":DIR[:DIR]"
7523 # string "DIR[ DIR]" will be appended to VARIABLE
7524 # "DIRP[:DIRP]::[DIRA:]DIRA"
7525 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7526 # "DIRA[ DIRA]" will be appended to VARIABLE
7527 # "DIR[:DIR]"
7528 # VARIABLE will be replaced by "DIR[ DIR]"
7529 func_munge_path_list ()
7530 {
7531 case x$2 in
7532 x)
7533 ;;
7534 *:)
7535 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7536 ;;
7537 x:*)
7538 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7539 ;;
7540 *::*)
7541 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7542 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7543 ;;
7544 *)
7545 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7546 ;;
7547 esac
7548 }
7549
7550 ac_ext=c
7551 ac_cpp='$CPP $CPPFLAGS'
7552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7556 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7557 # On Suns, sometimes $CPP names a directory.
7558 if test -n "$CPP" && test -d "$CPP"; then
7559 CPP=
7560 fi
7561 if test -z "$CPP"; then
7562 if ${ac_cv_prog_CPP+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 # Double quotes because CPP needs to be expanded
7566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7567 do
7568 ac_preproc_ok=false
7569 for ac_c_preproc_warn_flag in '' yes
7570 do
7571 # Use a header file that comes with gcc, so configuring glibc
7572 # with a fresh cross-compiler works.
7573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7574 # <limits.h> exists even on freestanding compilers.
7575 # On the NeXT, cc -E runs the code through the compiler's parser,
7576 # not just through cpp. "Syntax error" is here to catch this case.
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579 #ifdef __STDC__
7580 # include <limits.h>
7581 #else
7582 # include <assert.h>
7583 #endif
7584 Syntax error
7585 _ACEOF
7586 if ac_fn_c_try_cpp "$LINENO"; then :
7587
7588 else
7589 # Broken: fails on valid input.
7590 continue
7591 fi
7592 rm -f conftest.err conftest.i conftest.$ac_ext
7593
7594 # OK, works on sane cases. Now check whether nonexistent headers
7595 # can be detected and how.
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598 #include <ac_nonexistent.h>
7599 _ACEOF
7600 if ac_fn_c_try_cpp "$LINENO"; then :
7601 # Broken: success on invalid input.
7602 continue
7603 else
7604 # Passes both tests.
7605 ac_preproc_ok=:
7606 break
7607 fi
7608 rm -f conftest.err conftest.i conftest.$ac_ext
7609
7610 done
7611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7612 rm -f conftest.i conftest.err conftest.$ac_ext
7613 if $ac_preproc_ok; then :
7614 break
7615 fi
7616
7617 done
7618 ac_cv_prog_CPP=$CPP
7619
7620 fi
7621 CPP=$ac_cv_prog_CPP
7622 else
7623 ac_cv_prog_CPP=$CPP
7624 fi
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7626 $as_echo "$CPP" >&6; }
7627 ac_preproc_ok=false
7628 for ac_c_preproc_warn_flag in '' yes
7629 do
7630 # Use a header file that comes with gcc, so configuring glibc
7631 # with a fresh cross-compiler works.
7632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7633 # <limits.h> exists even on freestanding compilers.
7634 # On the NeXT, cc -E runs the code through the compiler's parser,
7635 # not just through cpp. "Syntax error" is here to catch this case.
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638 #ifdef __STDC__
7639 # include <limits.h>
7640 #else
7641 # include <assert.h>
7642 #endif
7643 Syntax error
7644 _ACEOF
7645 if ac_fn_c_try_cpp "$LINENO"; then :
7646
7647 else
7648 # Broken: fails on valid input.
7649 continue
7650 fi
7651 rm -f conftest.err conftest.i conftest.$ac_ext
7652
7653 # OK, works on sane cases. Now check whether nonexistent headers
7654 # can be detected and how.
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 #include <ac_nonexistent.h>
7658 _ACEOF
7659 if ac_fn_c_try_cpp "$LINENO"; then :
7660 # Broken: success on invalid input.
7661 continue
7662 else
7663 # Passes both tests.
7664 ac_preproc_ok=:
7665 break
7666 fi
7667 rm -f conftest.err conftest.i conftest.$ac_ext
7668
7669 done
7670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7671 rm -f conftest.i conftest.err conftest.$ac_ext
7672 if $ac_preproc_ok; then :
7673
7674 else
7675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7677 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7678 See \`config.log' for more details" "$LINENO" 5; }
7679 fi
7680
7681 ac_ext=c
7682 ac_cpp='$CPP $CPPFLAGS'
7683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686
7687
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7689 $as_echo_n "checking for ANSI C header files... " >&6; }
7690 if ${ac_cv_header_stdc+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695 #include <stdlib.h>
7696 #include <stdarg.h>
7697 #include <string.h>
7698 #include <float.h>
7699
7700 int
7701 main ()
7702 {
7703
7704 ;
7705 return 0;
7706 }
7707 _ACEOF
7708 if ac_fn_c_try_compile "$LINENO"; then :
7709 ac_cv_header_stdc=yes
7710 else
7711 ac_cv_header_stdc=no
7712 fi
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714
7715 if test $ac_cv_header_stdc = yes; then
7716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 #include <string.h>
7720
7721 _ACEOF
7722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7723 $EGREP "memchr" >/dev/null 2>&1; then :
7724
7725 else
7726 ac_cv_header_stdc=no
7727 fi
7728 rm -f conftest*
7729
7730 fi
7731
7732 if test $ac_cv_header_stdc = yes; then
7733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736 #include <stdlib.h>
7737
7738 _ACEOF
7739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7740 $EGREP "free" >/dev/null 2>&1; then :
7741
7742 else
7743 ac_cv_header_stdc=no
7744 fi
7745 rm -f conftest*
7746
7747 fi
7748
7749 if test $ac_cv_header_stdc = yes; then
7750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7751 if test "$cross_compiling" = yes; then :
7752 :
7753 else
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 #include <ctype.h>
7757 #include <stdlib.h>
7758 #if ((' ' & 0x0FF) == 0x020)
7759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7761 #else
7762 # define ISLOWER(c) \
7763 (('a' <= (c) && (c) <= 'i') \
7764 || ('j' <= (c) && (c) <= 'r') \
7765 || ('s' <= (c) && (c) <= 'z'))
7766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7767 #endif
7768
7769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7770 int
7771 main ()
7772 {
7773 int i;
7774 for (i = 0; i < 256; i++)
7775 if (XOR (islower (i), ISLOWER (i))
7776 || toupper (i) != TOUPPER (i))
7777 return 2;
7778 return 0;
7779 }
7780 _ACEOF
7781 if ac_fn_c_try_run "$LINENO"; then :
7782
7783 else
7784 ac_cv_header_stdc=no
7785 fi
7786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7787 conftest.$ac_objext conftest.beam conftest.$ac_ext
7788 fi
7789
7790 fi
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7793 $as_echo "$ac_cv_header_stdc" >&6; }
7794 if test $ac_cv_header_stdc = yes; then
7795
7796 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7797
7798 fi
7799
7800 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7801 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7802 inttypes.h stdint.h unistd.h
7803 do :
7804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7806 "
7807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7808 cat >>confdefs.h <<_ACEOF
7809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7810 _ACEOF
7811
7812 fi
7813
7814 done
7815
7816
7817 for ac_header in dlfcn.h
7818 do :
7819 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7820 "
7821 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7822 cat >>confdefs.h <<_ACEOF
7823 #define HAVE_DLFCN_H 1
7824 _ACEOF
7825
7826 fi
7827
7828 done
7829
7830
7831
7832
7833
7834 # Set options
7835
7836
7837
7838 enable_dlopen=no
7839
7840
7841 enable_win32_dll=no
7842
7843
7844 # Check whether --enable-shared was given.
7845 if test "${enable_shared+set}" = set; then :
7846 enableval=$enable_shared; p=${PACKAGE-default}
7847 case $enableval in
7848 yes) enable_shared=yes ;;
7849 no) enable_shared=no ;;
7850 *)
7851 enable_shared=no
7852 # Look at the argument we got. We use all the common list separators.
7853 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7854 for pkg in $enableval; do
7855 IFS=$lt_save_ifs
7856 if test "X$pkg" = "X$p"; then
7857 enable_shared=yes
7858 fi
7859 done
7860 IFS=$lt_save_ifs
7861 ;;
7862 esac
7863 else
7864 enable_shared=yes
7865 fi
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875 # Check whether --enable-static was given.
7876 if test "${enable_static+set}" = set; then :
7877 enableval=$enable_static; p=${PACKAGE-default}
7878 case $enableval in
7879 yes) enable_static=yes ;;
7880 no) enable_static=no ;;
7881 *)
7882 enable_static=no
7883 # Look at the argument we got. We use all the common list separators.
7884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7885 for pkg in $enableval; do
7886 IFS=$lt_save_ifs
7887 if test "X$pkg" = "X$p"; then
7888 enable_static=yes
7889 fi
7890 done
7891 IFS=$lt_save_ifs
7892 ;;
7893 esac
7894 else
7895 enable_static=yes
7896 fi
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907 # Check whether --with-pic was given.
7908 if test "${with_pic+set}" = set; then :
7909 withval=$with_pic; lt_p=${PACKAGE-default}
7910 case $withval in
7911 yes|no) pic_mode=$withval ;;
7912 *)
7913 pic_mode=default
7914 # Look at the argument we got. We use all the common list separators.
7915 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7916 for lt_pkg in $withval; do
7917 IFS=$lt_save_ifs
7918 if test "X$lt_pkg" = "X$lt_p"; then
7919 pic_mode=yes
7920 fi
7921 done
7922 IFS=$lt_save_ifs
7923 ;;
7924 esac
7925 else
7926 pic_mode=default
7927 fi
7928
7929
7930
7931
7932
7933
7934
7935
7936 # Check whether --enable-fast-install was given.
7937 if test "${enable_fast_install+set}" = set; then :
7938 enableval=$enable_fast_install; p=${PACKAGE-default}
7939 case $enableval in
7940 yes) enable_fast_install=yes ;;
7941 no) enable_fast_install=no ;;
7942 *)
7943 enable_fast_install=no
7944 # Look at the argument we got. We use all the common list separators.
7945 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7946 for pkg in $enableval; do
7947 IFS=$lt_save_ifs
7948 if test "X$pkg" = "X$p"; then
7949 enable_fast_install=yes
7950 fi
7951 done
7952 IFS=$lt_save_ifs
7953 ;;
7954 esac
7955 else
7956 enable_fast_install=yes
7957 fi
7958
7959
7960
7961
7962
7963
7964
7965
7966 shared_archive_member_spec=
7967 case $host,$enable_shared in
7968 power*-*-aix[5-9]*,yes)
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7970 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7971
7972 # Check whether --with-aix-soname was given.
7973 if test "${with_aix_soname+set}" = set; then :
7974 withval=$with_aix_soname; case $withval in
7975 aix|svr4|both)
7976 ;;
7977 *)
7978 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7979 ;;
7980 esac
7981 lt_cv_with_aix_soname=$with_aix_soname
7982 else
7983 if ${lt_cv_with_aix_soname+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 lt_cv_with_aix_soname=aix
7987 fi
7988
7989 with_aix_soname=$lt_cv_with_aix_soname
7990 fi
7991
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7993 $as_echo "$with_aix_soname" >&6; }
7994 if test aix != "$with_aix_soname"; then
7995 # For the AIX way of multilib, we name the shared archive member
7996 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7997 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7998 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7999 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8000 if test 64 = "${OBJECT_MODE-32}"; then
8001 shared_archive_member_spec=shr_64
8002 else
8003 shared_archive_member_spec=shr
8004 fi
8005 fi
8006 ;;
8007 *)
8008 with_aix_soname=aix
8009 ;;
8010 esac
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021 # This can be used to rebuild libtool when needed
8022 LIBTOOL_DEPS=$ltmain
8023
8024 # Always use our own libtool.
8025 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056 test -z "$LN_S" && LN_S="ln -s"
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 if test -n "${ZSH_VERSION+set}"; then
8072 setopt NO_GLOB_SUBST
8073 fi
8074
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8076 $as_echo_n "checking for objdir... " >&6; }
8077 if ${lt_cv_objdir+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 rm -f .libs 2>/dev/null
8081 mkdir .libs 2>/dev/null
8082 if test -d .libs; then
8083 lt_cv_objdir=.libs
8084 else
8085 # MS-DOS does not allow filenames that begin with a dot.
8086 lt_cv_objdir=_libs
8087 fi
8088 rmdir .libs 2>/dev/null
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8091 $as_echo "$lt_cv_objdir" >&6; }
8092 objdir=$lt_cv_objdir
8093
8094
8095
8096
8097
8098 cat >>confdefs.h <<_ACEOF
8099 #define LT_OBJDIR "$lt_cv_objdir/"
8100 _ACEOF
8101
8102
8103
8104
8105 case $host_os in
8106 aix3*)
8107 # AIX sometimes has problems with the GCC collect2 program. For some
8108 # reason, if we set the COLLECT_NAMES environment variable, the problems
8109 # vanish in a puff of smoke.
8110 if test set != "${COLLECT_NAMES+set}"; then
8111 COLLECT_NAMES=
8112 export COLLECT_NAMES
8113 fi
8114 ;;
8115 esac
8116
8117 # Global variables:
8118 ofile=libtool
8119 can_build_shared=yes
8120
8121 # All known linkers require a '.a' archive for static linking (except MSVC,
8122 # which needs '.lib').
8123 libext=a
8124
8125 with_gnu_ld=$lt_cv_prog_gnu_ld
8126
8127 old_CC=$CC
8128 old_CFLAGS=$CFLAGS
8129
8130 # Set sane defaults for various variables
8131 test -z "$CC" && CC=cc
8132 test -z "$LTCC" && LTCC=$CC
8133 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8134 test -z "$LD" && LD=ld
8135 test -z "$ac_objext" && ac_objext=o
8136
8137 func_cc_basename $compiler
8138 cc_basename=$func_cc_basename_result
8139
8140
8141 # Only perform the check for file, if the check method requires it
8142 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8143 case $deplibs_check_method in
8144 file_magic*)
8145 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8147 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8148 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 case $MAGIC_CMD in
8152 [\\/*] | ?:[\\/]*)
8153 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8154 ;;
8155 *)
8156 lt_save_MAGIC_CMD=$MAGIC_CMD
8157 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8158 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8159 for ac_dir in $ac_dummy; do
8160 IFS=$lt_save_ifs
8161 test -z "$ac_dir" && ac_dir=.
8162 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8163 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8164 if test -n "$file_magic_test_file"; then
8165 case $deplibs_check_method in
8166 "file_magic "*)
8167 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8168 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8169 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8170 $EGREP "$file_magic_regex" > /dev/null; then
8171 :
8172 else
8173 cat <<_LT_EOF 1>&2
8174
8175 *** Warning: the command libtool uses to detect shared libraries,
8176 *** $file_magic_cmd, produces output that libtool cannot recognize.
8177 *** The result is that libtool may fail to recognize shared libraries
8178 *** as such. This will affect the creation of libtool libraries that
8179 *** depend on shared libraries, but programs linked with such libtool
8180 *** libraries will work regardless of this problem. Nevertheless, you
8181 *** may want to report the problem to your system manager and/or to
8182 *** bug-libtool@gnu.org
8183
8184 _LT_EOF
8185 fi ;;
8186 esac
8187 fi
8188 break
8189 fi
8190 done
8191 IFS=$lt_save_ifs
8192 MAGIC_CMD=$lt_save_MAGIC_CMD
8193 ;;
8194 esac
8195 fi
8196
8197 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8198 if test -n "$MAGIC_CMD"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8200 $as_echo "$MAGIC_CMD" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8204 fi
8205
8206
8207
8208
8209
8210 if test -z "$lt_cv_path_MAGIC_CMD"; then
8211 if test -n "$ac_tool_prefix"; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8213 $as_echo_n "checking for file... " >&6; }
8214 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 case $MAGIC_CMD in
8218 [\\/*] | ?:[\\/]*)
8219 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8220 ;;
8221 *)
8222 lt_save_MAGIC_CMD=$MAGIC_CMD
8223 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8225 for ac_dir in $ac_dummy; do
8226 IFS=$lt_save_ifs
8227 test -z "$ac_dir" && ac_dir=.
8228 if test -f "$ac_dir/file"; then
8229 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8230 if test -n "$file_magic_test_file"; then
8231 case $deplibs_check_method in
8232 "file_magic "*)
8233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8234 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8236 $EGREP "$file_magic_regex" > /dev/null; then
8237 :
8238 else
8239 cat <<_LT_EOF 1>&2
8240
8241 *** Warning: the command libtool uses to detect shared libraries,
8242 *** $file_magic_cmd, produces output that libtool cannot recognize.
8243 *** The result is that libtool may fail to recognize shared libraries
8244 *** as such. This will affect the creation of libtool libraries that
8245 *** depend on shared libraries, but programs linked with such libtool
8246 *** libraries will work regardless of this problem. Nevertheless, you
8247 *** may want to report the problem to your system manager and/or to
8248 *** bug-libtool@gnu.org
8249
8250 _LT_EOF
8251 fi ;;
8252 esac
8253 fi
8254 break
8255 fi
8256 done
8257 IFS=$lt_save_ifs
8258 MAGIC_CMD=$lt_save_MAGIC_CMD
8259 ;;
8260 esac
8261 fi
8262
8263 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8264 if test -n "$MAGIC_CMD"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8266 $as_echo "$MAGIC_CMD" >&6; }
8267 else
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8270 fi
8271
8272
8273 else
8274 MAGIC_CMD=:
8275 fi
8276 fi
8277
8278 fi
8279 ;;
8280 esac
8281
8282 # Use C for the default configuration in the libtool script
8283
8284 lt_save_CC=$CC
8285 ac_ext=c
8286 ac_cpp='$CPP $CPPFLAGS'
8287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8290
8291
8292 # Source file extension for C test sources.
8293 ac_ext=c
8294
8295 # Object file extension for compiled C test sources.
8296 objext=o
8297 objext=$objext
8298
8299 # Code to be used in simple compile tests
8300 lt_simple_compile_test_code="int some_variable = 0;"
8301
8302 # Code to be used in simple link tests
8303 lt_simple_link_test_code='int main(){return(0);}'
8304
8305
8306
8307
8308
8309
8310
8311 # If no C compiler was specified, use CC.
8312 LTCC=${LTCC-"$CC"}
8313
8314 # If no C compiler flags were specified, use CFLAGS.
8315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8316
8317 # Allow CC to be a program name with arguments.
8318 compiler=$CC
8319
8320 # Save the default compiler, since it gets overwritten when the other
8321 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8322 compiler_DEFAULT=$CC
8323
8324 # save warnings/boilerplate of simple test code
8325 ac_outfile=conftest.$ac_objext
8326 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8327 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8328 _lt_compiler_boilerplate=`cat conftest.err`
8329 $RM conftest*
8330
8331 ac_outfile=conftest.$ac_objext
8332 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8333 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8334 _lt_linker_boilerplate=`cat conftest.err`
8335 $RM -r conftest*
8336
8337
8338 if test -n "$compiler"; then
8339
8340 lt_prog_compiler_no_builtin_flag=
8341
8342 if test yes = "$GCC"; then
8343 case $cc_basename in
8344 nvcc*)
8345 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8346 *)
8347 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8348 esac
8349
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8351 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8352 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 lt_cv_prog_compiler_rtti_exceptions=no
8356 ac_outfile=conftest.$ac_objext
8357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8358 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8359 # Insert the option either (1) after the last *FLAGS variable, or
8360 # (2) before a word containing "conftest.", or (3) at the end.
8361 # Note that $ac_compile itself does not contain backslashes and begins
8362 # with a dollar sign (not a hyphen), so the echo should work correctly.
8363 # The option is referenced via a variable to avoid confusing sed.
8364 lt_compile=`echo "$ac_compile" | $SED \
8365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8367 -e 's:$: $lt_compiler_flag:'`
8368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8369 (eval "$lt_compile" 2>conftest.err)
8370 ac_status=$?
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 if (exit $ac_status) && test -s "$ac_outfile"; then
8374 # The compiler can only warn and ignore the option if not recognized
8375 # So say no if there are warnings other than the usual output.
8376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8379 lt_cv_prog_compiler_rtti_exceptions=yes
8380 fi
8381 fi
8382 $RM conftest*
8383
8384 fi
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8386 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8387
8388 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8389 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8390 else
8391 :
8392 fi
8393
8394 fi
8395
8396
8397
8398
8399
8400
8401 lt_prog_compiler_wl=
8402 lt_prog_compiler_pic=
8403 lt_prog_compiler_static=
8404
8405
8406 if test yes = "$GCC"; then
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_static='-static'
8409
8410 case $host_os in
8411 aix*)
8412 # All AIX code is PIC.
8413 if test ia64 = "$host_cpu"; then
8414 # AIX 5 now supports IA64 processor
8415 lt_prog_compiler_static='-Bstatic'
8416 fi
8417 lt_prog_compiler_pic='-fPIC'
8418 ;;
8419
8420 amigaos*)
8421 case $host_cpu in
8422 powerpc)
8423 # see comment about AmigaOS4 .so support
8424 lt_prog_compiler_pic='-fPIC'
8425 ;;
8426 m68k)
8427 # FIXME: we need at least 68020 code to build shared libraries, but
8428 # adding the '-m68020' flag to GCC prevents building anything better,
8429 # like '-m68040'.
8430 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8431 ;;
8432 esac
8433 ;;
8434
8435 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8436 # PIC is the default for these OSes.
8437 ;;
8438
8439 mingw* | cygwin* | pw32* | os2* | cegcc*)
8440 # This hack is so that the source file can tell whether it is being
8441 # built for inclusion in a dll (and should export symbols for example).
8442 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8443 # (--disable-auto-import) libraries
8444 lt_prog_compiler_pic='-DDLL_EXPORT'
8445 case $host_os in
8446 os2*)
8447 lt_prog_compiler_static='$wl-static'
8448 ;;
8449 esac
8450 ;;
8451
8452 darwin* | rhapsody*)
8453 # PIC is the default on this platform
8454 # Common symbols not allowed in MH_DYLIB files
8455 lt_prog_compiler_pic='-fno-common'
8456 ;;
8457
8458 haiku*)
8459 # PIC is the default for Haiku.
8460 # The "-static" flag exists, but is broken.
8461 lt_prog_compiler_static=
8462 ;;
8463
8464 hpux*)
8465 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8466 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8467 # sets the default TLS model and affects inlining.
8468 case $host_cpu in
8469 hppa*64*)
8470 # +Z the default
8471 ;;
8472 *)
8473 lt_prog_compiler_pic='-fPIC'
8474 ;;
8475 esac
8476 ;;
8477
8478 interix[3-9]*)
8479 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8480 # Instead, we relocate shared libraries at runtime.
8481 ;;
8482
8483 msdosdjgpp*)
8484 # Just because we use GCC doesn't mean we suddenly get shared libraries
8485 # on systems that don't support them.
8486 lt_prog_compiler_can_build_shared=no
8487 enable_shared=no
8488 ;;
8489
8490 *nto* | *qnx*)
8491 # QNX uses GNU C++, but need to define -shared option too, otherwise
8492 # it will coredump.
8493 lt_prog_compiler_pic='-fPIC -shared'
8494 ;;
8495
8496 sysv4*MP*)
8497 if test -d /usr/nec; then
8498 lt_prog_compiler_pic=-Kconform_pic
8499 fi
8500 ;;
8501
8502 *)
8503 lt_prog_compiler_pic='-fPIC'
8504 ;;
8505 esac
8506
8507 case $cc_basename in
8508 nvcc*) # Cuda Compiler Driver 2.2
8509 lt_prog_compiler_wl='-Xlinker '
8510 if test -n "$lt_prog_compiler_pic"; then
8511 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8512 fi
8513 ;;
8514 esac
8515 else
8516 # PORTME Check for flag to pass linker flags through the system compiler.
8517 case $host_os in
8518 aix*)
8519 lt_prog_compiler_wl='-Wl,'
8520 if test ia64 = "$host_cpu"; then
8521 # AIX 5 now supports IA64 processor
8522 lt_prog_compiler_static='-Bstatic'
8523 else
8524 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8525 fi
8526 ;;
8527
8528 darwin* | rhapsody*)
8529 # PIC is the default on this platform
8530 # Common symbols not allowed in MH_DYLIB files
8531 lt_prog_compiler_pic='-fno-common'
8532 case $cc_basename in
8533 nagfor*)
8534 # NAG Fortran compiler
8535 lt_prog_compiler_wl='-Wl,-Wl,,'
8536 lt_prog_compiler_pic='-PIC'
8537 lt_prog_compiler_static='-Bstatic'
8538 ;;
8539 esac
8540 ;;
8541
8542 mingw* | cygwin* | pw32* | os2* | cegcc*)
8543 # This hack is so that the source file can tell whether it is being
8544 # built for inclusion in a dll (and should export symbols for example).
8545 lt_prog_compiler_pic='-DDLL_EXPORT'
8546 case $host_os in
8547 os2*)
8548 lt_prog_compiler_static='$wl-static'
8549 ;;
8550 esac
8551 ;;
8552
8553 hpux9* | hpux10* | hpux11*)
8554 lt_prog_compiler_wl='-Wl,'
8555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8556 # not for PA HP-UX.
8557 case $host_cpu in
8558 hppa*64*|ia64*)
8559 # +Z the default
8560 ;;
8561 *)
8562 lt_prog_compiler_pic='+Z'
8563 ;;
8564 esac
8565 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8566 lt_prog_compiler_static='$wl-a ${wl}archive'
8567 ;;
8568
8569 irix5* | irix6* | nonstopux*)
8570 lt_prog_compiler_wl='-Wl,'
8571 # PIC (with -KPIC) is the default.
8572 lt_prog_compiler_static='-non_shared'
8573 ;;
8574
8575 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8576 case $cc_basename in
8577 # old Intel for x86_64, which still supported -KPIC.
8578 ecc*)
8579 lt_prog_compiler_wl='-Wl,'
8580 lt_prog_compiler_pic='-KPIC'
8581 lt_prog_compiler_static='-static'
8582 ;;
8583 # icc used to be incompatible with GCC.
8584 # ICC 10 doesn't accept -KPIC any more.
8585 icc* | ifort*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-fPIC'
8588 lt_prog_compiler_static='-static'
8589 ;;
8590 # Lahey Fortran 8.1.
8591 lf95*)
8592 lt_prog_compiler_wl='-Wl,'
8593 lt_prog_compiler_pic='--shared'
8594 lt_prog_compiler_static='--static'
8595 ;;
8596 nagfor*)
8597 # NAG Fortran compiler
8598 lt_prog_compiler_wl='-Wl,-Wl,,'
8599 lt_prog_compiler_pic='-PIC'
8600 lt_prog_compiler_static='-Bstatic'
8601 ;;
8602 tcc*)
8603 # Fabrice Bellard et al's Tiny C Compiler
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_pic='-fPIC'
8606 lt_prog_compiler_static='-static'
8607 ;;
8608 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8609 # Portland Group compilers (*not* the Pentium gcc compiler,
8610 # which looks to be a dead project)
8611 lt_prog_compiler_wl='-Wl,'
8612 lt_prog_compiler_pic='-fpic'
8613 lt_prog_compiler_static='-Bstatic'
8614 ;;
8615 ccc*)
8616 lt_prog_compiler_wl='-Wl,'
8617 # All Alpha code is PIC.
8618 lt_prog_compiler_static='-non_shared'
8619 ;;
8620 xl* | bgxl* | bgf* | mpixl*)
8621 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8622 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-qpic'
8624 lt_prog_compiler_static='-qstaticlink'
8625 ;;
8626 *)
8627 case `$CC -V 2>&1 | sed 5q` in
8628 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8629 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-Bstatic'
8632 lt_prog_compiler_wl=''
8633 ;;
8634 *Sun\ F* | *Sun*Fortran*)
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 lt_prog_compiler_wl='-Qoption ld '
8638 ;;
8639 *Sun\ C*)
8640 # Sun C 5.9
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8643 lt_prog_compiler_wl='-Wl,'
8644 ;;
8645 *Intel*\ [CF]*Compiler*)
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='-fPIC'
8648 lt_prog_compiler_static='-static'
8649 ;;
8650 *Portland\ Group*)
8651 lt_prog_compiler_wl='-Wl,'
8652 lt_prog_compiler_pic='-fpic'
8653 lt_prog_compiler_static='-Bstatic'
8654 ;;
8655 esac
8656 ;;
8657 esac
8658 ;;
8659
8660 newsos6)
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
8663 ;;
8664
8665 *nto* | *qnx*)
8666 # QNX uses GNU C++, but need to define -shared option too, otherwise
8667 # it will coredump.
8668 lt_prog_compiler_pic='-fPIC -shared'
8669 ;;
8670
8671 osf3* | osf4* | osf5*)
8672 lt_prog_compiler_wl='-Wl,'
8673 # All OSF/1 code is PIC.
8674 lt_prog_compiler_static='-non_shared'
8675 ;;
8676
8677 rdos*)
8678 lt_prog_compiler_static='-non_shared'
8679 ;;
8680
8681 solaris*)
8682 lt_prog_compiler_pic='-KPIC'
8683 lt_prog_compiler_static='-Bstatic'
8684 case $cc_basename in
8685 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8686 lt_prog_compiler_wl='-Qoption ld ';;
8687 *)
8688 lt_prog_compiler_wl='-Wl,';;
8689 esac
8690 ;;
8691
8692 sunos4*)
8693 lt_prog_compiler_wl='-Qoption ld '
8694 lt_prog_compiler_pic='-PIC'
8695 lt_prog_compiler_static='-Bstatic'
8696 ;;
8697
8698 sysv4 | sysv4.2uw2* | sysv4.3*)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='-KPIC'
8701 lt_prog_compiler_static='-Bstatic'
8702 ;;
8703
8704 sysv4*MP*)
8705 if test -d /usr/nec; then
8706 lt_prog_compiler_pic='-Kconform_pic'
8707 lt_prog_compiler_static='-Bstatic'
8708 fi
8709 ;;
8710
8711 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_pic='-KPIC'
8714 lt_prog_compiler_static='-Bstatic'
8715 ;;
8716
8717 unicos*)
8718 lt_prog_compiler_wl='-Wl,'
8719 lt_prog_compiler_can_build_shared=no
8720 ;;
8721
8722 uts4*)
8723 lt_prog_compiler_pic='-pic'
8724 lt_prog_compiler_static='-Bstatic'
8725 ;;
8726
8727 *)
8728 lt_prog_compiler_can_build_shared=no
8729 ;;
8730 esac
8731 fi
8732
8733 case $host_os in
8734 # For platforms that do not support PIC, -DPIC is meaningless:
8735 *djgpp*)
8736 lt_prog_compiler_pic=
8737 ;;
8738 *)
8739 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8740 ;;
8741 esac
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8744 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8745 if ${lt_cv_prog_compiler_pic+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8749 fi
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8751 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8752 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8753
8754 #
8755 # Check to make sure the PIC flag actually works.
8756 #
8757 if test -n "$lt_prog_compiler_pic"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8759 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8760 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8761 $as_echo_n "(cached) " >&6
8762 else
8763 lt_cv_prog_compiler_pic_works=no
8764 ac_outfile=conftest.$ac_objext
8765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8766 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8767 # Insert the option either (1) after the last *FLAGS variable, or
8768 # (2) before a word containing "conftest.", or (3) at the end.
8769 # Note that $ac_compile itself does not contain backslashes and begins
8770 # with a dollar sign (not a hyphen), so the echo should work correctly.
8771 # The option is referenced via a variable to avoid confusing sed.
8772 lt_compile=`echo "$ac_compile" | $SED \
8773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8775 -e 's:$: $lt_compiler_flag:'`
8776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8777 (eval "$lt_compile" 2>conftest.err)
8778 ac_status=$?
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 if (exit $ac_status) && test -s "$ac_outfile"; then
8782 # The compiler can only warn and ignore the option if not recognized
8783 # So say no if there are warnings other than the usual output.
8784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8787 lt_cv_prog_compiler_pic_works=yes
8788 fi
8789 fi
8790 $RM conftest*
8791
8792 fi
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8794 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8795
8796 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8797 case $lt_prog_compiler_pic in
8798 "" | " "*) ;;
8799 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8800 esac
8801 else
8802 lt_prog_compiler_pic=
8803 lt_prog_compiler_can_build_shared=no
8804 fi
8805
8806 fi
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818 #
8819 # Check to make sure the static flag actually works.
8820 #
8821 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8823 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8824 if ${lt_cv_prog_compiler_static_works+:} false; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 lt_cv_prog_compiler_static_works=no
8828 save_LDFLAGS=$LDFLAGS
8829 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8830 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8832 # The linker can only warn and ignore the option if not recognized
8833 # So say no if there are warnings
8834 if test -s conftest.err; then
8835 # Append any errors to the config.log.
8836 cat conftest.err 1>&5
8837 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8839 if diff conftest.exp conftest.er2 >/dev/null; then
8840 lt_cv_prog_compiler_static_works=yes
8841 fi
8842 else
8843 lt_cv_prog_compiler_static_works=yes
8844 fi
8845 fi
8846 $RM -r conftest*
8847 LDFLAGS=$save_LDFLAGS
8848
8849 fi
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8851 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8852
8853 if test yes = "$lt_cv_prog_compiler_static_works"; then
8854 :
8855 else
8856 lt_prog_compiler_static=
8857 fi
8858
8859
8860
8861
8862
8863
8864
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8866 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8867 if ${lt_cv_prog_compiler_c_o+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 lt_cv_prog_compiler_c_o=no
8871 $RM -r conftest 2>/dev/null
8872 mkdir conftest
8873 cd conftest
8874 mkdir out
8875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8876
8877 lt_compiler_flag="-o out/conftest2.$ac_objext"
8878 # Insert the option either (1) after the last *FLAGS variable, or
8879 # (2) before a word containing "conftest.", or (3) at the end.
8880 # Note that $ac_compile itself does not contain backslashes and begins
8881 # with a dollar sign (not a hyphen), so the echo should work correctly.
8882 lt_compile=`echo "$ac_compile" | $SED \
8883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8885 -e 's:$: $lt_compiler_flag:'`
8886 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8887 (eval "$lt_compile" 2>out/conftest.err)
8888 ac_status=$?
8889 cat out/conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8892 then
8893 # The compiler can only warn and ignore the option if not recognized
8894 # So say no if there are warnings
8895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8898 lt_cv_prog_compiler_c_o=yes
8899 fi
8900 fi
8901 chmod u+w . 2>&5
8902 $RM conftest*
8903 # SGI C++ compiler will create directory out/ii_files/ for
8904 # template instantiation
8905 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8906 $RM out/* && rmdir out
8907 cd ..
8908 $RM -r conftest
8909 $RM conftest*
8910
8911 fi
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8913 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8914
8915
8916
8917
8918
8919
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8921 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8922 if ${lt_cv_prog_compiler_c_o+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 lt_cv_prog_compiler_c_o=no
8926 $RM -r conftest 2>/dev/null
8927 mkdir conftest
8928 cd conftest
8929 mkdir out
8930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931
8932 lt_compiler_flag="-o out/conftest2.$ac_objext"
8933 # Insert the option either (1) after the last *FLAGS variable, or
8934 # (2) before a word containing "conftest.", or (3) at the end.
8935 # Note that $ac_compile itself does not contain backslashes and begins
8936 # with a dollar sign (not a hyphen), so the echo should work correctly.
8937 lt_compile=`echo "$ac_compile" | $SED \
8938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8940 -e 's:$: $lt_compiler_flag:'`
8941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8942 (eval "$lt_compile" 2>out/conftest.err)
8943 ac_status=$?
8944 cat out/conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8947 then
8948 # The compiler can only warn and ignore the option if not recognized
8949 # So say no if there are warnings
8950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8953 lt_cv_prog_compiler_c_o=yes
8954 fi
8955 fi
8956 chmod u+w . 2>&5
8957 $RM conftest*
8958 # SGI C++ compiler will create directory out/ii_files/ for
8959 # template instantiation
8960 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8961 $RM out/* && rmdir out
8962 cd ..
8963 $RM -r conftest
8964 $RM conftest*
8965
8966 fi
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8968 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8969
8970
8971
8972
8973 hard_links=nottested
8974 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8975 # do not overwrite the value of need_locks provided by the user
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8977 $as_echo_n "checking if we can lock with hard links... " >&6; }
8978 hard_links=yes
8979 $RM conftest*
8980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8981 touch conftest.a
8982 ln conftest.a conftest.b 2>&5 || hard_links=no
8983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8985 $as_echo "$hard_links" >&6; }
8986 if test no = "$hard_links"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8988 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8989 need_locks=warn
8990 fi
8991 else
8992 need_locks=no
8993 fi
8994
8995
8996
8997
8998
8999
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9001 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9002
9003 runpath_var=
9004 allow_undefined_flag=
9005 always_export_symbols=no
9006 archive_cmds=
9007 archive_expsym_cmds=
9008 compiler_needs_object=no
9009 enable_shared_with_static_runtimes=no
9010 export_dynamic_flag_spec=
9011 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9012 hardcode_automatic=no
9013 hardcode_direct=no
9014 hardcode_direct_absolute=no
9015 hardcode_libdir_flag_spec=
9016 hardcode_libdir_separator=
9017 hardcode_minus_L=no
9018 hardcode_shlibpath_var=unsupported
9019 inherit_rpath=no
9020 link_all_deplibs=unknown
9021 module_cmds=
9022 module_expsym_cmds=
9023 old_archive_from_new_cmds=
9024 old_archive_from_expsyms_cmds=
9025 thread_safe_flag_spec=
9026 whole_archive_flag_spec=
9027 # include_expsyms should be a list of space-separated symbols to be *always*
9028 # included in the symbol list
9029 include_expsyms=
9030 # exclude_expsyms can be an extended regexp of symbols to exclude
9031 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9032 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9033 # as well as any symbol that contains 'd'.
9034 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9035 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9036 # platforms (ab)use it in PIC code, but their linkers get confused if
9037 # the symbol is explicitly referenced. Since portable code cannot
9038 # rely on this symbol name, it's probably fine to never include it in
9039 # preloaded symbol tables.
9040 # Exclude shared library initialization/finalization symbols.
9041 extract_expsyms_cmds=
9042
9043 case $host_os in
9044 cygwin* | mingw* | pw32* | cegcc*)
9045 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9046 # When not using gcc, we currently assume that we are using
9047 # Microsoft Visual C++.
9048 if test yes != "$GCC"; then
9049 with_gnu_ld=no
9050 fi
9051 ;;
9052 interix*)
9053 # we just hope/assume this is gcc and not c89 (= MSVC++)
9054 with_gnu_ld=yes
9055 ;;
9056 openbsd* | bitrig*)
9057 with_gnu_ld=no
9058 ;;
9059 esac
9060
9061 ld_shlibs=yes
9062
9063 # On some targets, GNU ld is compatible enough with the native linker
9064 # that we're better off using the native interface for both.
9065 lt_use_gnu_ld_interface=no
9066 if test yes = "$with_gnu_ld"; then
9067 case $host_os in
9068 aix*)
9069 # The AIX port of GNU ld has always aspired to compatibility
9070 # with the native linker. However, as the warning in the GNU ld
9071 # block says, versions before 2.19.5* couldn't really create working
9072 # shared libraries, regardless of the interface used.
9073 case `$LD -v 2>&1` in
9074 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9075 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9076 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9077 *)
9078 lt_use_gnu_ld_interface=yes
9079 ;;
9080 esac
9081 ;;
9082 *)
9083 lt_use_gnu_ld_interface=yes
9084 ;;
9085 esac
9086 fi
9087
9088 if test yes = "$lt_use_gnu_ld_interface"; then
9089 # If archive_cmds runs LD, not CC, wlarc should be empty
9090 wlarc='$wl'
9091
9092 # Set some defaults for GNU ld with shared library support. These
9093 # are reset later if shared libraries are not supported. Putting them
9094 # here allows them to be overridden if necessary.
9095 runpath_var=LD_RUN_PATH
9096 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9097 export_dynamic_flag_spec='$wl--export-dynamic'
9098 # ancient GNU ld didn't support --whole-archive et. al.
9099 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9100 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9101 else
9102 whole_archive_flag_spec=
9103 fi
9104 supports_anon_versioning=no
9105 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9106 *GNU\ gold*) supports_anon_versioning=yes ;;
9107 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9108 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9109 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9110 *\ 2.11.*) ;; # other 2.11 versions
9111 *) supports_anon_versioning=yes ;;
9112 esac
9113
9114 # See if GNU ld supports shared libraries.
9115 case $host_os in
9116 aix[3-9]*)
9117 # On AIX/PPC, the GNU linker is very broken
9118 if test ia64 != "$host_cpu"; then
9119 ld_shlibs=no
9120 cat <<_LT_EOF 1>&2
9121
9122 *** Warning: the GNU linker, at least up to release 2.19, is reported
9123 *** to be unable to reliably create shared libraries on AIX.
9124 *** Therefore, libtool is disabling shared libraries support. If you
9125 *** really care for shared libraries, you may want to install binutils
9126 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9127 *** You will then need to restart the configuration process.
9128
9129 _LT_EOF
9130 fi
9131 ;;
9132
9133 amigaos*)
9134 case $host_cpu in
9135 powerpc)
9136 # see comment about AmigaOS4 .so support
9137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9138 archive_expsym_cmds=''
9139 ;;
9140 m68k)
9141 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)'
9142 hardcode_libdir_flag_spec='-L$libdir'
9143 hardcode_minus_L=yes
9144 ;;
9145 esac
9146 ;;
9147
9148 beos*)
9149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9150 allow_undefined_flag=unsupported
9151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9152 # support --undefined. This deserves some investigation. FIXME
9153 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9154 else
9155 ld_shlibs=no
9156 fi
9157 ;;
9158
9159 cygwin* | mingw* | pw32* | cegcc*)
9160 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9161 # as there is no search path for DLLs.
9162 hardcode_libdir_flag_spec='-L$libdir'
9163 export_dynamic_flag_spec='$wl--export-all-symbols'
9164 allow_undefined_flag=unsupported
9165 always_export_symbols=no
9166 enable_shared_with_static_runtimes=yes
9167 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'
9168 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9169
9170 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9172 # If the export-symbols file already is a .def file, use it as
9173 # is; otherwise, prepend EXPORTS...
9174 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9175 cp $export_symbols $output_objdir/$soname.def;
9176 else
9177 echo EXPORTS > $output_objdir/$soname.def;
9178 cat $export_symbols >> $output_objdir/$soname.def;
9179 fi~
9180 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9181 else
9182 ld_shlibs=no
9183 fi
9184 ;;
9185
9186 haiku*)
9187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9188 link_all_deplibs=yes
9189 ;;
9190
9191 os2*)
9192 hardcode_libdir_flag_spec='-L$libdir'
9193 hardcode_minus_L=yes
9194 allow_undefined_flag=unsupported
9195 shrext_cmds=.dll
9196 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9197 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9198 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9199 $ECHO EXPORTS >> $output_objdir/$libname.def~
9200 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9201 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9202 emximp -o $lib $output_objdir/$libname.def'
9203 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9204 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9205 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9206 $ECHO EXPORTS >> $output_objdir/$libname.def~
9207 prefix_cmds="$SED"~
9208 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9209 prefix_cmds="$prefix_cmds -e 1d";
9210 fi~
9211 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9212 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9213 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9214 emximp -o $lib $output_objdir/$libname.def'
9215 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9216 enable_shared_with_static_runtimes=yes
9217 ;;
9218
9219 interix[3-9]*)
9220 hardcode_direct=no
9221 hardcode_shlibpath_var=no
9222 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9223 export_dynamic_flag_spec='$wl-E'
9224 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9225 # Instead, shared libraries are loaded at an image base (0x10000000 by
9226 # default) and relocated if they conflict, which is a slow very memory
9227 # consuming and fragmenting process. To avoid this, we pick a random,
9228 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9229 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9230 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9231 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'
9232 ;;
9233
9234 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9235 tmp_diet=no
9236 if test linux-dietlibc = "$host_os"; then
9237 case $cc_basename in
9238 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9239 esac
9240 fi
9241 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9242 && test no = "$tmp_diet"
9243 then
9244 tmp_addflag=' $pic_flag'
9245 tmp_sharedflag='-shared'
9246 case $cc_basename,$host_cpu in
9247 pgcc*) # Portland Group C compiler
9248 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'
9249 tmp_addflag=' $pic_flag'
9250 ;;
9251 pgf77* | pgf90* | pgf95* | pgfortran*)
9252 # Portland Group f77 and f90 compilers
9253 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'
9254 tmp_addflag=' $pic_flag -Mnomain' ;;
9255 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9256 tmp_addflag=' -i_dynamic' ;;
9257 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9258 tmp_addflag=' -i_dynamic -nofor_main' ;;
9259 ifc* | ifort*) # Intel Fortran compiler
9260 tmp_addflag=' -nofor_main' ;;
9261 lf95*) # Lahey Fortran 8.1
9262 whole_archive_flag_spec=
9263 tmp_sharedflag='--shared' ;;
9264 nagfor*) # NAGFOR 5.3
9265 tmp_sharedflag='-Wl,-shared' ;;
9266 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9267 tmp_sharedflag='-qmkshrobj'
9268 tmp_addflag= ;;
9269 nvcc*) # Cuda Compiler Driver 2.2
9270 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'
9271 compiler_needs_object=yes
9272 ;;
9273 esac
9274 case `$CC -V 2>&1 | sed 5q` in
9275 *Sun\ C*) # Sun C 5.9
9276 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'
9277 compiler_needs_object=yes
9278 tmp_sharedflag='-G' ;;
9279 *Sun\ F*) # Sun Fortran 8.3
9280 tmp_sharedflag='-G' ;;
9281 esac
9282 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9283
9284 if test yes = "$supports_anon_versioning"; then
9285 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9287 echo "local: *; };" >> $output_objdir/$libname.ver~
9288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9289 fi
9290
9291 case $cc_basename in
9292 tcc*)
9293 export_dynamic_flag_spec='-rdynamic'
9294 ;;
9295 xlf* | bgf* | bgxlf* | mpixlf*)
9296 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9297 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9298 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9299 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9300 if test yes = "$supports_anon_versioning"; then
9301 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9303 echo "local: *; };" >> $output_objdir/$libname.ver~
9304 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9305 fi
9306 ;;
9307 esac
9308 else
9309 ld_shlibs=no
9310 fi
9311 ;;
9312
9313 netbsd*)
9314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9315 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9316 wlarc=
9317 else
9318 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9319 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9320 fi
9321 ;;
9322
9323 solaris*)
9324 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9325 ld_shlibs=no
9326 cat <<_LT_EOF 1>&2
9327
9328 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9329 *** create shared libraries on Solaris systems. Therefore, libtool
9330 *** is disabling shared libraries support. We urge you to upgrade GNU
9331 *** binutils to release 2.9.1 or newer. Another option is to modify
9332 *** your PATH or compiler configuration so that the native linker is
9333 *** used, and then restart.
9334
9335 _LT_EOF
9336 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9338 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9339 else
9340 ld_shlibs=no
9341 fi
9342 ;;
9343
9344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9345 case `$LD -v 2>&1` in
9346 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9347 ld_shlibs=no
9348 cat <<_LT_EOF 1>&2
9349
9350 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9351 *** reliably create shared libraries on SCO systems. Therefore, libtool
9352 *** is disabling shared libraries support. We urge you to upgrade GNU
9353 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9354 *** your PATH or compiler configuration so that the native linker is
9355 *** used, and then restart.
9356
9357 _LT_EOF
9358 ;;
9359 *)
9360 # For security reasons, it is highly recommended that you always
9361 # use absolute paths for naming shared libraries, and exclude the
9362 # DT_RUNPATH tag from executables and libraries. But doing so
9363 # requires that you compile everything twice, which is a pain.
9364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9365 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9367 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9368 else
9369 ld_shlibs=no
9370 fi
9371 ;;
9372 esac
9373 ;;
9374
9375 sunos4*)
9376 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9377 wlarc=
9378 hardcode_direct=yes
9379 hardcode_shlibpath_var=no
9380 ;;
9381
9382 *)
9383 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9385 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9386 else
9387 ld_shlibs=no
9388 fi
9389 ;;
9390 esac
9391
9392 if test no = "$ld_shlibs"; then
9393 runpath_var=
9394 hardcode_libdir_flag_spec=
9395 export_dynamic_flag_spec=
9396 whole_archive_flag_spec=
9397 fi
9398 else
9399 # PORTME fill in a description of your system's linker (not GNU ld)
9400 case $host_os in
9401 aix3*)
9402 allow_undefined_flag=unsupported
9403 always_export_symbols=yes
9404 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'
9405 # Note: this linker hardcodes the directories in LIBPATH if there
9406 # are no directories specified by -L.
9407 hardcode_minus_L=yes
9408 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9409 # Neither direct hardcoding nor static linking is supported with a
9410 # broken collect2.
9411 hardcode_direct=unsupported
9412 fi
9413 ;;
9414
9415 aix[4-9]*)
9416 if test ia64 = "$host_cpu"; then
9417 # On IA64, the linker does run time linking by default, so we don't
9418 # have to do anything special.
9419 aix_use_runtimelinking=no
9420 exp_sym_flag='-Bexport'
9421 no_entry_flag=
9422 else
9423 # If we're using GNU nm, then we don't want the "-C" option.
9424 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9425 # Without the "-l" option, or with the "-B" option, AIX nm treats
9426 # weak defined symbols like other global defined symbols, whereas
9427 # GNU nm marks them as "W".
9428 # While the 'weak' keyword is ignored in the Export File, we need
9429 # it in the Import File for the 'aix-soname' feature, so we have
9430 # to replace the "-B" option with "-P" for AIX nm.
9431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9432 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'
9433 else
9434 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'
9435 fi
9436 aix_use_runtimelinking=no
9437
9438 # Test if we are trying to use run time linking or normal
9439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9440 # have runtime linking enabled, and use it for executables.
9441 # For shared libraries, we enable/disable runtime linking
9442 # depending on the kind of the shared library created -
9443 # when "with_aix_soname,aix_use_runtimelinking" is:
9444 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9445 # "aix,yes" lib.so shared, rtl:yes, for executables
9446 # lib.a static archive
9447 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9448 # lib.a(lib.so.V) shared, rtl:no, for executables
9449 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9450 # lib.a(lib.so.V) shared, rtl:no
9451 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9452 # lib.a static archive
9453 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9454 for ld_flag in $LDFLAGS; do
9455 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9456 aix_use_runtimelinking=yes
9457 break
9458 fi
9459 done
9460 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9461 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9462 # so we don't have lib.a shared libs to link our executables.
9463 # We have to force runtime linking in this case.
9464 aix_use_runtimelinking=yes
9465 LDFLAGS="$LDFLAGS -Wl,-brtl"
9466 fi
9467 ;;
9468 esac
9469
9470 exp_sym_flag='-bexport'
9471 no_entry_flag='-bnoentry'
9472 fi
9473
9474 # When large executables or shared objects are built, AIX ld can
9475 # have problems creating the table of contents. If linking a library
9476 # or program results in "error TOC overflow" add -mminimal-toc to
9477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9479
9480 archive_cmds=''
9481 hardcode_direct=yes
9482 hardcode_direct_absolute=yes
9483 hardcode_libdir_separator=':'
9484 link_all_deplibs=yes
9485 file_list_spec='$wl-f,'
9486 case $with_aix_soname,$aix_use_runtimelinking in
9487 aix,*) ;; # traditional, no import file
9488 svr4,* | *,yes) # use import file
9489 # The Import File defines what to hardcode.
9490 hardcode_direct=no
9491 hardcode_direct_absolute=no
9492 ;;
9493 esac
9494
9495 if test yes = "$GCC"; then
9496 case $host_os in aix4.[012]|aix4.[012].*)
9497 # We only want to do this on AIX 4.2 and lower, the check
9498 # below for broken collect2 doesn't work under 4.3+
9499 collect2name=`$CC -print-prog-name=collect2`
9500 if test -f "$collect2name" &&
9501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9502 then
9503 # We have reworked collect2
9504 :
9505 else
9506 # We have old collect2
9507 hardcode_direct=unsupported
9508 # It fails to find uninstalled libraries when the uninstalled
9509 # path is not listed in the libpath. Setting hardcode_minus_L
9510 # to unsupported forces relinking
9511 hardcode_minus_L=yes
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_libdir_separator=
9514 fi
9515 ;;
9516 esac
9517 shared_flag='-shared'
9518 if test yes = "$aix_use_runtimelinking"; then
9519 shared_flag="$shared_flag "'$wl-G'
9520 fi
9521 # Need to ensure runtime linking is disabled for the traditional
9522 # shared library, or the linker may eventually find shared libraries
9523 # /with/ Import File - we do not want to mix them.
9524 shared_flag_aix='-shared'
9525 shared_flag_svr4='-shared $wl-G'
9526 else
9527 # not using gcc
9528 if test ia64 = "$host_cpu"; then
9529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9530 # chokes on -Wl,-G. The following line is correct:
9531 shared_flag='-G'
9532 else
9533 if test yes = "$aix_use_runtimelinking"; then
9534 shared_flag='$wl-G'
9535 else
9536 shared_flag='$wl-bM:SRE'
9537 fi
9538 shared_flag_aix='$wl-bM:SRE'
9539 shared_flag_svr4='$wl-G'
9540 fi
9541 fi
9542
9543 export_dynamic_flag_spec='$wl-bexpall'
9544 # It seems that -bexpall does not export symbols beginning with
9545 # underscore (_), so it is better to generate a list of symbols to export.
9546 always_export_symbols=yes
9547 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9548 # Warning - without using the other runtime loading flags (-brtl),
9549 # -berok will link without error, but may produce a broken library.
9550 allow_undefined_flag='-berok'
9551 # Determine the default libpath from the value encoded in an
9552 # empty executable.
9553 if test set = "${lt_cv_aix_libpath+set}"; then
9554 aix_libpath=$lt_cv_aix_libpath
9555 else
9556 if ${lt_cv_aix_libpath_+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561
9562 int
9563 main ()
9564 {
9565
9566 ;
9567 return 0;
9568 }
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9571
9572 lt_aix_libpath_sed='
9573 /Import File Strings/,/^$/ {
9574 /^0/ {
9575 s/^0 *\([^ ]*\) *$/\1/
9576 p
9577 }
9578 }'
9579 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9580 # Check for a 64-bit object if we didn't find anything.
9581 if test -z "$lt_cv_aix_libpath_"; then
9582 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9583 fi
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 if test -z "$lt_cv_aix_libpath_"; then
9588 lt_cv_aix_libpath_=/usr/lib:/lib
9589 fi
9590
9591 fi
9592
9593 aix_libpath=$lt_cv_aix_libpath_
9594 fi
9595
9596 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9597 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
9598 else
9599 if test ia64 = "$host_cpu"; then
9600 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9601 allow_undefined_flag="-z nodefs"
9602 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"
9603 else
9604 # Determine the default libpath from the value encoded in an
9605 # empty executable.
9606 if test set = "${lt_cv_aix_libpath+set}"; then
9607 aix_libpath=$lt_cv_aix_libpath
9608 else
9609 if ${lt_cv_aix_libpath_+:} false; then :
9610 $as_echo_n "(cached) " >&6
9611 else
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614
9615 int
9616 main ()
9617 {
9618
9619 ;
9620 return 0;
9621 }
9622 _ACEOF
9623 if ac_fn_c_try_link "$LINENO"; then :
9624
9625 lt_aix_libpath_sed='
9626 /Import File Strings/,/^$/ {
9627 /^0/ {
9628 s/^0 *\([^ ]*\) *$/\1/
9629 p
9630 }
9631 }'
9632 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633 # Check for a 64-bit object if we didn't find anything.
9634 if test -z "$lt_cv_aix_libpath_"; then
9635 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636 fi
9637 fi
9638 rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640 if test -z "$lt_cv_aix_libpath_"; then
9641 lt_cv_aix_libpath_=/usr/lib:/lib
9642 fi
9643
9644 fi
9645
9646 aix_libpath=$lt_cv_aix_libpath_
9647 fi
9648
9649 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9650 # Warning - without using the other run time loading flags,
9651 # -berok will link without error, but may produce a broken library.
9652 no_undefined_flag=' $wl-bernotok'
9653 allow_undefined_flag=' $wl-berok'
9654 if test yes = "$with_gnu_ld"; then
9655 # We only use this code for GNU lds that support --whole-archive.
9656 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9657 else
9658 # Exported symbols can be pulled into shared objects from archives
9659 whole_archive_flag_spec='$convenience'
9660 fi
9661 archive_cmds_need_lc=yes
9662 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9663 # -brtl affects multiple linker settings, -berok does not and is overridden later
9664 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9665 if test svr4 != "$with_aix_soname"; then
9666 # This is similar to how AIX traditionally builds its shared libraries.
9667 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'
9668 fi
9669 if test aix != "$with_aix_soname"; then
9670 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'
9671 else
9672 # used by -dlpreopen to get the symbols
9673 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9674 fi
9675 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9676 fi
9677 fi
9678 ;;
9679
9680 amigaos*)
9681 case $host_cpu in
9682 powerpc)
9683 # see comment about AmigaOS4 .so support
9684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9685 archive_expsym_cmds=''
9686 ;;
9687 m68k)
9688 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)'
9689 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_minus_L=yes
9691 ;;
9692 esac
9693 ;;
9694
9695 bsdi[45]*)
9696 export_dynamic_flag_spec=-rdynamic
9697 ;;
9698
9699 cygwin* | mingw* | pw32* | cegcc*)
9700 # When not using gcc, we currently assume that we are using
9701 # Microsoft Visual C++.
9702 # hardcode_libdir_flag_spec is actually meaningless, as there is
9703 # no search path for DLLs.
9704 case $cc_basename in
9705 cl*)
9706 # Native MSVC
9707 hardcode_libdir_flag_spec=' '
9708 allow_undefined_flag=unsupported
9709 always_export_symbols=yes
9710 file_list_spec='@'
9711 # Tell ltmain to make .lib files, not .a files.
9712 libext=lib
9713 # Tell ltmain to make .dll files, not .so files.
9714 shrext_cmds=.dll
9715 # FIXME: Setting linknames here is a bad hack.
9716 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9717 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9718 cp "$export_symbols" "$output_objdir/$soname.def";
9719 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9720 else
9721 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9722 fi~
9723 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9724 linknames='
9725 # The linker will not automatically build a static lib if we build a DLL.
9726 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9727 enable_shared_with_static_runtimes=yes
9728 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9729 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9730 # Don't use ranlib
9731 old_postinstall_cmds='chmod 644 $oldlib'
9732 postlink_cmds='lt_outputfile="@OUTPUT@"~
9733 lt_tool_outputfile="@TOOL_OUTPUT@"~
9734 case $lt_outputfile in
9735 *.exe|*.EXE) ;;
9736 *)
9737 lt_outputfile=$lt_outputfile.exe
9738 lt_tool_outputfile=$lt_tool_outputfile.exe
9739 ;;
9740 esac~
9741 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9742 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9743 $RM "$lt_outputfile.manifest";
9744 fi'
9745 ;;
9746 *)
9747 # Assume MSVC wrapper
9748 hardcode_libdir_flag_spec=' '
9749 allow_undefined_flag=unsupported
9750 # Tell ltmain to make .lib files, not .a files.
9751 libext=lib
9752 # Tell ltmain to make .dll files, not .so files.
9753 shrext_cmds=.dll
9754 # FIXME: Setting linknames here is a bad hack.
9755 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9756 # The linker will automatically build a .lib file if we build a DLL.
9757 old_archive_from_new_cmds='true'
9758 # FIXME: Should let the user specify the lib program.
9759 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9760 enable_shared_with_static_runtimes=yes
9761 ;;
9762 esac
9763 ;;
9764
9765 darwin* | rhapsody*)
9766
9767
9768 archive_cmds_need_lc=no
9769 hardcode_direct=no
9770 hardcode_automatic=yes
9771 hardcode_shlibpath_var=unsupported
9772 if test yes = "$lt_cv_ld_force_load"; then
9773 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\"`'
9774
9775 else
9776 whole_archive_flag_spec=''
9777 fi
9778 link_all_deplibs=yes
9779 allow_undefined_flag=$_lt_dar_allow_undefined
9780 case $cc_basename in
9781 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9782 *) _lt_dar_can_shared=$GCC ;;
9783 esac
9784 if test yes = "$_lt_dar_can_shared"; then
9785 output_verbose_link_cmd=func_echo_all
9786 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9787 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9788 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"
9789 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"
9790
9791 else
9792 ld_shlibs=no
9793 fi
9794
9795 ;;
9796
9797 dgux*)
9798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_libdir_flag_spec='-L$libdir'
9800 hardcode_shlibpath_var=no
9801 ;;
9802
9803 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9804 # support. Future versions do this automatically, but an explicit c++rt0.o
9805 # does not break anything, and helps significantly (at the cost of a little
9806 # extra space).
9807 freebsd2.2*)
9808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9809 hardcode_libdir_flag_spec='-R$libdir'
9810 hardcode_direct=yes
9811 hardcode_shlibpath_var=no
9812 ;;
9813
9814 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9815 freebsd2.*)
9816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9817 hardcode_direct=yes
9818 hardcode_minus_L=yes
9819 hardcode_shlibpath_var=no
9820 ;;
9821
9822 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9823 freebsd* | dragonfly*)
9824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9825 hardcode_libdir_flag_spec='-R$libdir'
9826 hardcode_direct=yes
9827 hardcode_shlibpath_var=no
9828 ;;
9829
9830 hpux9*)
9831 if test yes = "$GCC"; then
9832 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'
9833 else
9834 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'
9835 fi
9836 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9837 hardcode_libdir_separator=:
9838 hardcode_direct=yes
9839
9840 # hardcode_minus_L: Not really in the search PATH,
9841 # but as the default location of the library.
9842 hardcode_minus_L=yes
9843 export_dynamic_flag_spec='$wl-E'
9844 ;;
9845
9846 hpux10*)
9847 if test yes,no = "$GCC,$with_gnu_ld"; then
9848 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9849 else
9850 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9851 fi
9852 if test no = "$with_gnu_ld"; then
9853 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9854 hardcode_libdir_separator=:
9855 hardcode_direct=yes
9856 hardcode_direct_absolute=yes
9857 export_dynamic_flag_spec='$wl-E'
9858 # hardcode_minus_L: Not really in the search PATH,
9859 # but as the default location of the library.
9860 hardcode_minus_L=yes
9861 fi
9862 ;;
9863
9864 hpux11*)
9865 if test yes,no = "$GCC,$with_gnu_ld"; then
9866 case $host_cpu in
9867 hppa*64*)
9868 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9869 ;;
9870 ia64*)
9871 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9872 ;;
9873 *)
9874 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9875 ;;
9876 esac
9877 else
9878 case $host_cpu in
9879 hppa*64*)
9880 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9881 ;;
9882 ia64*)
9883 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9884 ;;
9885 *)
9886
9887 # Older versions of the 11.00 compiler do not understand -b yet
9888 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9890 $as_echo_n "checking if $CC understands -b... " >&6; }
9891 if ${lt_cv_prog_compiler__b+:} false; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 lt_cv_prog_compiler__b=no
9895 save_LDFLAGS=$LDFLAGS
9896 LDFLAGS="$LDFLAGS -b"
9897 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9898 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9899 # The linker can only warn and ignore the option if not recognized
9900 # So say no if there are warnings
9901 if test -s conftest.err; then
9902 # Append any errors to the config.log.
9903 cat conftest.err 1>&5
9904 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9906 if diff conftest.exp conftest.er2 >/dev/null; then
9907 lt_cv_prog_compiler__b=yes
9908 fi
9909 else
9910 lt_cv_prog_compiler__b=yes
9911 fi
9912 fi
9913 $RM -r conftest*
9914 LDFLAGS=$save_LDFLAGS
9915
9916 fi
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9918 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9919
9920 if test yes = "$lt_cv_prog_compiler__b"; then
9921 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9922 else
9923 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9924 fi
9925
9926 ;;
9927 esac
9928 fi
9929 if test no = "$with_gnu_ld"; then
9930 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9931 hardcode_libdir_separator=:
9932
9933 case $host_cpu in
9934 hppa*64*|ia64*)
9935 hardcode_direct=no
9936 hardcode_shlibpath_var=no
9937 ;;
9938 *)
9939 hardcode_direct=yes
9940 hardcode_direct_absolute=yes
9941 export_dynamic_flag_spec='$wl-E'
9942
9943 # hardcode_minus_L: Not really in the search PATH,
9944 # but as the default location of the library.
9945 hardcode_minus_L=yes
9946 ;;
9947 esac
9948 fi
9949 ;;
9950
9951 irix5* | irix6* | nonstopux*)
9952 if test yes = "$GCC"; then
9953 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'
9954 # Try to use the -exported_symbol ld option, if it does not
9955 # work, assume that -exports_file does not work either and
9956 # implicitly export all symbols.
9957 # This should be the same for all languages, so no per-tag cache variable.
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9959 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9960 if ${lt_cv_irix_exported_symbol+:} false; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 save_LDFLAGS=$LDFLAGS
9964 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9967 int foo (void) { return 0; }
9968 _ACEOF
9969 if ac_fn_c_try_link "$LINENO"; then :
9970 lt_cv_irix_exported_symbol=yes
9971 else
9972 lt_cv_irix_exported_symbol=no
9973 fi
9974 rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 LDFLAGS=$save_LDFLAGS
9977 fi
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9979 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9980 if test yes = "$lt_cv_irix_exported_symbol"; then
9981 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'
9982 fi
9983 else
9984 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'
9985 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'
9986 fi
9987 archive_cmds_need_lc='no'
9988 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9989 hardcode_libdir_separator=:
9990 inherit_rpath=yes
9991 link_all_deplibs=yes
9992 ;;
9993
9994 linux*)
9995 case $cc_basename in
9996 tcc*)
9997 # Fabrice Bellard et al's Tiny C Compiler
9998 ld_shlibs=yes
9999 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10000 ;;
10001 esac
10002 ;;
10003
10004 netbsd*)
10005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10007 else
10008 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10009 fi
10010 hardcode_libdir_flag_spec='-R$libdir'
10011 hardcode_direct=yes
10012 hardcode_shlibpath_var=no
10013 ;;
10014
10015 newsos6)
10016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10017 hardcode_direct=yes
10018 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10019 hardcode_libdir_separator=:
10020 hardcode_shlibpath_var=no
10021 ;;
10022
10023 *nto* | *qnx*)
10024 ;;
10025
10026 openbsd* | bitrig*)
10027 if test -f /usr/libexec/ld.so; then
10028 hardcode_direct=yes
10029 hardcode_shlibpath_var=no
10030 hardcode_direct_absolute=yes
10031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10034 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10035 export_dynamic_flag_spec='$wl-E'
10036 else
10037 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10038 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10039 fi
10040 else
10041 ld_shlibs=no
10042 fi
10043 ;;
10044
10045 os2*)
10046 hardcode_libdir_flag_spec='-L$libdir'
10047 hardcode_minus_L=yes
10048 allow_undefined_flag=unsupported
10049 shrext_cmds=.dll
10050 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10051 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10052 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10053 $ECHO EXPORTS >> $output_objdir/$libname.def~
10054 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10055 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10056 emximp -o $lib $output_objdir/$libname.def'
10057 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10058 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10059 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10060 $ECHO EXPORTS >> $output_objdir/$libname.def~
10061 prefix_cmds="$SED"~
10062 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10063 prefix_cmds="$prefix_cmds -e 1d";
10064 fi~
10065 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10066 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10067 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10068 emximp -o $lib $output_objdir/$libname.def'
10069 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10070 enable_shared_with_static_runtimes=yes
10071 ;;
10072
10073 osf3*)
10074 if test yes = "$GCC"; then
10075 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10076 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'
10077 else
10078 allow_undefined_flag=' -expect_unresolved \*'
10079 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'
10080 fi
10081 archive_cmds_need_lc='no'
10082 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10083 hardcode_libdir_separator=:
10084 ;;
10085
10086 osf4* | osf5*) # as osf3* with the addition of -msym flag
10087 if test yes = "$GCC"; then
10088 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10089 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'
10090 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10091 else
10092 allow_undefined_flag=' -expect_unresolved \*'
10093 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'
10094 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~
10095 $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'
10096
10097 # Both c and cxx compiler support -rpath directly
10098 hardcode_libdir_flag_spec='-rpath $libdir'
10099 fi
10100 archive_cmds_need_lc='no'
10101 hardcode_libdir_separator=:
10102 ;;
10103
10104 solaris*)
10105 no_undefined_flag=' -z defs'
10106 if test yes = "$GCC"; then
10107 wlarc='$wl'
10108 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10110 $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'
10111 else
10112 case `$CC -V 2>&1` in
10113 *"Compilers 5.0"*)
10114 wlarc=''
10115 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10117 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10118 ;;
10119 *)
10120 wlarc='$wl'
10121 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10123 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10124 ;;
10125 esac
10126 fi
10127 hardcode_libdir_flag_spec='-R$libdir'
10128 hardcode_shlibpath_var=no
10129 case $host_os in
10130 solaris2.[0-5] | solaris2.[0-5].*) ;;
10131 *)
10132 # The compiler driver will combine and reorder linker options,
10133 # but understands '-z linker_flag'. GCC discards it without '$wl',
10134 # but is careful enough not to reorder.
10135 # Supported since Solaris 2.6 (maybe 2.5.1?)
10136 if test yes = "$GCC"; then
10137 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10138 else
10139 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10140 fi
10141 ;;
10142 esac
10143 link_all_deplibs=yes
10144 ;;
10145
10146 sunos4*)
10147 if test sequent = "$host_vendor"; then
10148 # Use $CC to link under sequent, because it throws in some extra .o
10149 # files that make .init and .fini sections work.
10150 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10151 else
10152 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10153 fi
10154 hardcode_libdir_flag_spec='-L$libdir'
10155 hardcode_direct=yes
10156 hardcode_minus_L=yes
10157 hardcode_shlibpath_var=no
10158 ;;
10159
10160 sysv4)
10161 case $host_vendor in
10162 sni)
10163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164 hardcode_direct=yes # is this really true???
10165 ;;
10166 siemens)
10167 ## LD is ld it makes a PLAMLIB
10168 ## CC just makes a GrossModule.
10169 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10170 reload_cmds='$CC -r -o $output$reload_objs'
10171 hardcode_direct=no
10172 ;;
10173 motorola)
10174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10176 ;;
10177 esac
10178 runpath_var='LD_RUN_PATH'
10179 hardcode_shlibpath_var=no
10180 ;;
10181
10182 sysv4.3*)
10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184 hardcode_shlibpath_var=no
10185 export_dynamic_flag_spec='-Bexport'
10186 ;;
10187
10188 sysv4*MP*)
10189 if test -d /usr/nec; then
10190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10191 hardcode_shlibpath_var=no
10192 runpath_var=LD_RUN_PATH
10193 hardcode_runpath_var=yes
10194 ld_shlibs=yes
10195 fi
10196 ;;
10197
10198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10199 no_undefined_flag='$wl-z,text'
10200 archive_cmds_need_lc=no
10201 hardcode_shlibpath_var=no
10202 runpath_var='LD_RUN_PATH'
10203
10204 if test yes = "$GCC"; then
10205 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 else
10208 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210 fi
10211 ;;
10212
10213 sysv5* | sco3.2v5* | sco5v6*)
10214 # Note: We CANNOT use -z defs as we might desire, because we do not
10215 # link with -lc, and that would cause any symbols used from libc to
10216 # always be unresolved, which means just about no library would
10217 # ever link correctly. If we're not using GNU ld we use -z text
10218 # though, which does catch some bad symbols but isn't as heavy-handed
10219 # as -z defs.
10220 no_undefined_flag='$wl-z,text'
10221 allow_undefined_flag='$wl-z,nodefs'
10222 archive_cmds_need_lc=no
10223 hardcode_shlibpath_var=no
10224 hardcode_libdir_flag_spec='$wl-R,$libdir'
10225 hardcode_libdir_separator=':'
10226 link_all_deplibs=yes
10227 export_dynamic_flag_spec='$wl-Bexport'
10228 runpath_var='LD_RUN_PATH'
10229
10230 if test yes = "$GCC"; then
10231 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233 else
10234 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236 fi
10237 ;;
10238
10239 uts4*)
10240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10241 hardcode_libdir_flag_spec='-L$libdir'
10242 hardcode_shlibpath_var=no
10243 ;;
10244
10245 *)
10246 ld_shlibs=no
10247 ;;
10248 esac
10249
10250 if test sni = "$host_vendor"; then
10251 case $host in
10252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10253 export_dynamic_flag_spec='$wl-Blargedynsym'
10254 ;;
10255 esac
10256 fi
10257 fi
10258
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10260 $as_echo "$ld_shlibs" >&6; }
10261 test no = "$ld_shlibs" && can_build_shared=no
10262
10263 with_gnu_ld=$with_gnu_ld
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279 #
10280 # Do we need to explicitly link libc?
10281 #
10282 case "x$archive_cmds_need_lc" in
10283 x|xyes)
10284 # Assume -lc should be added
10285 archive_cmds_need_lc=yes
10286
10287 if test yes,yes = "$GCC,$enable_shared"; then
10288 case $archive_cmds in
10289 *'~'*)
10290 # FIXME: we may have to deal with multi-command sequences.
10291 ;;
10292 '$CC '*)
10293 # Test whether the compiler implicitly links with -lc since on some
10294 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10295 # to ld, don't add -lc before -lgcc.
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10297 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10298 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 $RM conftest*
10302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10303
10304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10305 (eval $ac_compile) 2>&5
10306 ac_status=$?
10307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10308 test $ac_status = 0; } 2>conftest.err; then
10309 soname=conftest
10310 lib=conftest
10311 libobjs=conftest.$ac_objext
10312 deplibs=
10313 wl=$lt_prog_compiler_wl
10314 pic_flag=$lt_prog_compiler_pic
10315 compiler_flags=-v
10316 linker_flags=-v
10317 verstring=
10318 output_objdir=.
10319 libname=conftest
10320 lt_save_allow_undefined_flag=$allow_undefined_flag
10321 allow_undefined_flag=
10322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10323 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10324 ac_status=$?
10325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10326 test $ac_status = 0; }
10327 then
10328 lt_cv_archive_cmds_need_lc=no
10329 else
10330 lt_cv_archive_cmds_need_lc=yes
10331 fi
10332 allow_undefined_flag=$lt_save_allow_undefined_flag
10333 else
10334 cat conftest.err 1>&5
10335 fi
10336 $RM conftest*
10337
10338 fi
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10340 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10341 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10342 ;;
10343 esac
10344 fi
10345 ;;
10346 esac
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10500 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10501
10502 if test yes = "$GCC"; then
10503 case $host_os in
10504 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10505 *) lt_awk_arg='/^libraries:/' ;;
10506 esac
10507 case $host_os in
10508 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10509 *) lt_sed_strip_eq='s|=/|/|g' ;;
10510 esac
10511 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10512 case $lt_search_path_spec in
10513 *\;*)
10514 # if the path contains ";" then we assume it to be the separator
10515 # otherwise default to the standard path separator (i.e. ":") - it is
10516 # assumed that no part of a normal pathname contains ";" but that should
10517 # okay in the real world where ";" in dirpaths is itself problematic.
10518 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10519 ;;
10520 *)
10521 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10522 ;;
10523 esac
10524 # Ok, now we have the path, separated by spaces, we can step through it
10525 # and add multilib dir if necessary...
10526 lt_tmp_lt_search_path_spec=
10527 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10528 # ...but if some path component already ends with the multilib dir we assume
10529 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10530 case "$lt_multi_os_dir; $lt_search_path_spec " in
10531 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10532 lt_multi_os_dir=
10533 ;;
10534 esac
10535 for lt_sys_path in $lt_search_path_spec; do
10536 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10537 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10538 elif test -n "$lt_multi_os_dir"; then
10539 test -d "$lt_sys_path" && \
10540 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10541 fi
10542 done
10543 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10544 BEGIN {RS = " "; FS = "/|\n";} {
10545 lt_foo = "";
10546 lt_count = 0;
10547 for (lt_i = NF; lt_i > 0; lt_i--) {
10548 if ($lt_i != "" && $lt_i != ".") {
10549 if ($lt_i == "..") {
10550 lt_count++;
10551 } else {
10552 if (lt_count == 0) {
10553 lt_foo = "/" $lt_i lt_foo;
10554 } else {
10555 lt_count--;
10556 }
10557 }
10558 }
10559 }
10560 if (lt_foo != "") { lt_freq[lt_foo]++; }
10561 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10562 }'`
10563 # AWK program above erroneously prepends '/' to C:/dos/paths
10564 # for these hosts.
10565 case $host_os in
10566 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10567 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10568 esac
10569 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10570 else
10571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10572 fi
10573 library_names_spec=
10574 libname_spec='lib$name'
10575 soname_spec=
10576 shrext_cmds=.so
10577 postinstall_cmds=
10578 postuninstall_cmds=
10579 finish_cmds=
10580 finish_eval=
10581 shlibpath_var=
10582 shlibpath_overrides_runpath=unknown
10583 version_type=none
10584 dynamic_linker="$host_os ld.so"
10585 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10586 need_lib_prefix=unknown
10587 hardcode_into_libs=no
10588
10589 # when you set need_version to no, make sure it does not cause -set_version
10590 # flags to be left without arguments
10591 need_version=unknown
10592
10593
10594
10595 case $host_os in
10596 aix3*)
10597 version_type=linux # correct to gnu/linux during the next big refactor
10598 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10599 shlibpath_var=LIBPATH
10600
10601 # AIX 3 has no versioning support, so we append a major version to the name.
10602 soname_spec='$libname$release$shared_ext$major'
10603 ;;
10604
10605 aix[4-9]*)
10606 version_type=linux # correct to gnu/linux during the next big refactor
10607 need_lib_prefix=no
10608 need_version=no
10609 hardcode_into_libs=yes
10610 if test ia64 = "$host_cpu"; then
10611 # AIX 5 supports IA64
10612 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 else
10615 # With GCC up to 2.95.x, collect2 would create an import file
10616 # for dependence libraries. The import file would start with
10617 # the line '#! .'. This would cause the generated library to
10618 # depend on '.', always an invalid library. This was fixed in
10619 # development snapshots of GCC prior to 3.0.
10620 case $host_os in
10621 aix4 | aix4.[01] | aix4.[01].*)
10622 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10623 echo ' yes '
10624 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10625 :
10626 else
10627 can_build_shared=no
10628 fi
10629 ;;
10630 esac
10631 # Using Import Files as archive members, it is possible to support
10632 # filename-based versioning of shared library archives on AIX. While
10633 # this would work for both with and without runtime linking, it will
10634 # prevent static linking of such archives. So we do filename-based
10635 # shared library versioning with .so extension only, which is used
10636 # when both runtime linking and shared linking is enabled.
10637 # Unfortunately, runtime linking may impact performance, so we do
10638 # not want this to be the default eventually. Also, we use the
10639 # versioned .so libs for executables only if there is the -brtl
10640 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10641 # To allow for filename-based versioning support, we need to create
10642 # libNAME.so.V as an archive file, containing:
10643 # *) an Import File, referring to the versioned filename of the
10644 # archive as well as the shared archive member, telling the
10645 # bitwidth (32 or 64) of that shared object, and providing the
10646 # list of exported symbols of that shared object, eventually
10647 # decorated with the 'weak' keyword
10648 # *) the shared object with the F_LOADONLY flag set, to really avoid
10649 # it being seen by the linker.
10650 # At run time we better use the real file rather than another symlink,
10651 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10652
10653 case $with_aix_soname,$aix_use_runtimelinking in
10654 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10655 # soname into executable. Probably we can add versioning support to
10656 # collect2, so additional links can be useful in future.
10657 aix,yes) # traditional libtool
10658 dynamic_linker='AIX unversionable lib.so'
10659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10660 # instead of lib<name>.a to let people know that these are not
10661 # typical AIX shared libraries.
10662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10663 ;;
10664 aix,no) # traditional AIX only
10665 dynamic_linker='AIX lib.a(lib.so.V)'
10666 # We preserve .a as extension for shared libraries through AIX4.2
10667 # and later when we are not doing run time linking.
10668 library_names_spec='$libname$release.a $libname.a'
10669 soname_spec='$libname$release$shared_ext$major'
10670 ;;
10671 svr4,*) # full svr4 only
10672 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10673 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10674 # We do not specify a path in Import Files, so LIBPATH fires.
10675 shlibpath_overrides_runpath=yes
10676 ;;
10677 *,yes) # both, prefer svr4
10678 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10679 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10680 # unpreferred sharedlib libNAME.a needs extra handling
10681 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"'
10682 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"'
10683 # We do not specify a path in Import Files, so LIBPATH fires.
10684 shlibpath_overrides_runpath=yes
10685 ;;
10686 *,no) # both, prefer aix
10687 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10688 library_names_spec='$libname$release.a $libname.a'
10689 soname_spec='$libname$release$shared_ext$major'
10690 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10691 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)'
10692 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"'
10693 ;;
10694 esac
10695 shlibpath_var=LIBPATH
10696 fi
10697 ;;
10698
10699 amigaos*)
10700 case $host_cpu in
10701 powerpc)
10702 # Since July 2007 AmigaOS4 officially supports .so libraries.
10703 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10705 ;;
10706 m68k)
10707 library_names_spec='$libname.ixlibrary $libname.a'
10708 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10709 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'
10710 ;;
10711 esac
10712 ;;
10713
10714 beos*)
10715 library_names_spec='$libname$shared_ext'
10716 dynamic_linker="$host_os ld.so"
10717 shlibpath_var=LIBRARY_PATH
10718 ;;
10719
10720 bsdi[45]*)
10721 version_type=linux # correct to gnu/linux during the next big refactor
10722 need_version=no
10723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10724 soname_spec='$libname$release$shared_ext$major'
10725 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10728 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10729 # the default ld.so.conf also contains /usr/contrib/lib and
10730 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10731 # libtool to hard-code these into programs
10732 ;;
10733
10734 cygwin* | mingw* | pw32* | cegcc*)
10735 version_type=windows
10736 shrext_cmds=.dll
10737 need_version=no
10738 need_lib_prefix=no
10739
10740 case $GCC,$cc_basename in
10741 yes,*)
10742 # gcc
10743 library_names_spec='$libname.dll.a'
10744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10745 postinstall_cmds='base_file=`basename \$file`~
10746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10747 dldir=$destdir/`dirname \$dlpath`~
10748 test -d \$dldir || mkdir -p \$dldir~
10749 $install_prog $dir/$dlname \$dldir/$dlname~
10750 chmod a+x \$dldir/$dlname~
10751 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10752 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10753 fi'
10754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10755 dlpath=$dir/\$dldll~
10756 $RM \$dlpath'
10757 shlibpath_overrides_runpath=yes
10758
10759 case $host_os in
10760 cygwin*)
10761 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10762 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10763
10764 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10765 ;;
10766 mingw* | cegcc*)
10767 # MinGW DLLs use traditional 'lib' prefix
10768 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10769 ;;
10770 pw32*)
10771 # pw32 DLLs use 'pw' prefix rather than 'lib'
10772 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10773 ;;
10774 esac
10775 dynamic_linker='Win32 ld.exe'
10776 ;;
10777
10778 *,cl*)
10779 # Native MSVC
10780 libname_spec='$name'
10781 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10782 library_names_spec='$libname.dll.lib'
10783
10784 case $build_os in
10785 mingw*)
10786 sys_lib_search_path_spec=
10787 lt_save_ifs=$IFS
10788 IFS=';'
10789 for lt_path in $LIB
10790 do
10791 IFS=$lt_save_ifs
10792 # Let DOS variable expansion print the short 8.3 style file name.
10793 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10794 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10795 done
10796 IFS=$lt_save_ifs
10797 # Convert to MSYS style.
10798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10799 ;;
10800 cygwin*)
10801 # Convert to unix form, then to dos form, then back to unix form
10802 # but this time dos style (no spaces!) so that the unix form looks
10803 # like /cygdrive/c/PROGRA~1:/cygdr...
10804 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10805 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10806 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10807 ;;
10808 *)
10809 sys_lib_search_path_spec=$LIB
10810 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10811 # It is most probably a Windows format PATH.
10812 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10813 else
10814 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10815 fi
10816 # FIXME: find the short name or the path components, as spaces are
10817 # common. (e.g. "Program Files" -> "PROGRA~1")
10818 ;;
10819 esac
10820
10821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10822 postinstall_cmds='base_file=`basename \$file`~
10823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10824 dldir=$destdir/`dirname \$dlpath`~
10825 test -d \$dldir || mkdir -p \$dldir~
10826 $install_prog $dir/$dlname \$dldir/$dlname'
10827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10828 dlpath=$dir/\$dldll~
10829 $RM \$dlpath'
10830 shlibpath_overrides_runpath=yes
10831 dynamic_linker='Win32 link.exe'
10832 ;;
10833
10834 *)
10835 # Assume MSVC wrapper
10836 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10837 dynamic_linker='Win32 ld.exe'
10838 ;;
10839 esac
10840 # FIXME: first we should search . and the directory the executable is in
10841 shlibpath_var=PATH
10842 ;;
10843
10844 darwin* | rhapsody*)
10845 dynamic_linker="$host_os dyld"
10846 version_type=darwin
10847 need_lib_prefix=no
10848 need_version=no
10849 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10850 soname_spec='$libname$release$major$shared_ext'
10851 shlibpath_overrides_runpath=yes
10852 shlibpath_var=DYLD_LIBRARY_PATH
10853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10854
10855 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10857 ;;
10858
10859 dgux*)
10860 version_type=linux # correct to gnu/linux during the next big refactor
10861 need_lib_prefix=no
10862 need_version=no
10863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10864 soname_spec='$libname$release$shared_ext$major'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 ;;
10867
10868 freebsd* | dragonfly*)
10869 # DragonFly does not have aout. When/if they implement a new
10870 # versioning mechanism, adjust this.
10871 if test -x /usr/bin/objformat; then
10872 objformat=`/usr/bin/objformat`
10873 else
10874 case $host_os in
10875 freebsd[23].*) objformat=aout ;;
10876 *) objformat=elf ;;
10877 esac
10878 fi
10879 version_type=freebsd-$objformat
10880 case $version_type in
10881 freebsd-elf*)
10882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10883 soname_spec='$libname$release$shared_ext$major'
10884 need_version=no
10885 need_lib_prefix=no
10886 ;;
10887 freebsd-*)
10888 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10889 need_version=yes
10890 ;;
10891 esac
10892 shlibpath_var=LD_LIBRARY_PATH
10893 case $host_os in
10894 freebsd2.*)
10895 shlibpath_overrides_runpath=yes
10896 ;;
10897 freebsd3.[01]* | freebsdelf3.[01]*)
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10900 ;;
10901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10903 shlibpath_overrides_runpath=no
10904 hardcode_into_libs=yes
10905 ;;
10906 *) # from 4.6 on, and DragonFly
10907 shlibpath_overrides_runpath=yes
10908 hardcode_into_libs=yes
10909 ;;
10910 esac
10911 ;;
10912
10913 haiku*)
10914 version_type=linux # correct to gnu/linux during the next big refactor
10915 need_lib_prefix=no
10916 need_version=no
10917 dynamic_linker="$host_os runtime_loader"
10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10919 soname_spec='$libname$release$shared_ext$major'
10920 shlibpath_var=LIBRARY_PATH
10921 shlibpath_overrides_runpath=no
10922 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10923 hardcode_into_libs=yes
10924 ;;
10925
10926 hpux9* | hpux10* | hpux11*)
10927 # Give a soname corresponding to the major version so that dld.sl refuses to
10928 # link against other versions.
10929 version_type=sunos
10930 need_lib_prefix=no
10931 need_version=no
10932 case $host_cpu in
10933 ia64*)
10934 shrext_cmds='.so'
10935 hardcode_into_libs=yes
10936 dynamic_linker="$host_os dld.so"
10937 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10940 soname_spec='$libname$release$shared_ext$major'
10941 if test 32 = "$HPUX_IA64_MODE"; then
10942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10943 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10944 else
10945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10946 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10947 fi
10948 ;;
10949 hppa*64*)
10950 shrext_cmds='.sl'
10951 hardcode_into_libs=yes
10952 dynamic_linker="$host_os dld.sl"
10953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10956 soname_spec='$libname$release$shared_ext$major'
10957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10959 ;;
10960 *)
10961 shrext_cmds='.sl'
10962 dynamic_linker="$host_os dld.sl"
10963 shlibpath_var=SHLIB_PATH
10964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10966 soname_spec='$libname$release$shared_ext$major'
10967 ;;
10968 esac
10969 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10970 postinstall_cmds='chmod 555 $lib'
10971 # or fails outright, so override atomically:
10972 install_override_mode=555
10973 ;;
10974
10975 interix[3-9]*)
10976 version_type=linux # correct to gnu/linux during the next big refactor
10977 need_lib_prefix=no
10978 need_version=no
10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10980 soname_spec='$libname$release$shared_ext$major'
10981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=no
10984 hardcode_into_libs=yes
10985 ;;
10986
10987 irix5* | irix6* | nonstopux*)
10988 case $host_os in
10989 nonstopux*) version_type=nonstopux ;;
10990 *)
10991 if test yes = "$lt_cv_prog_gnu_ld"; then
10992 version_type=linux # correct to gnu/linux during the next big refactor
10993 else
10994 version_type=irix
10995 fi ;;
10996 esac
10997 need_lib_prefix=no
10998 need_version=no
10999 soname_spec='$libname$release$shared_ext$major'
11000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11001 case $host_os in
11002 irix5* | nonstopux*)
11003 libsuff= shlibsuff=
11004 ;;
11005 *)
11006 case $LD in # libtool.m4 will add one of these switches to LD
11007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11008 libsuff= shlibsuff= libmagic=32-bit;;
11009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11010 libsuff=32 shlibsuff=N32 libmagic=N32;;
11011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11013 *) libsuff= shlibsuff= libmagic=never-match;;
11014 esac
11015 ;;
11016 esac
11017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11018 shlibpath_overrides_runpath=no
11019 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11020 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11021 hardcode_into_libs=yes
11022 ;;
11023
11024 # No shared lib support for Linux oldld, aout, or coff.
11025 linux*oldld* | linux*aout* | linux*coff*)
11026 dynamic_linker=no
11027 ;;
11028
11029 linux*android*)
11030 version_type=none # Android doesn't support versioned libraries.
11031 need_lib_prefix=no
11032 need_version=no
11033 library_names_spec='$libname$release$shared_ext'
11034 soname_spec='$libname$release$shared_ext'
11035 finish_cmds=
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=yes
11038
11039 # This implies no fast_install, which is unacceptable.
11040 # Some rework will be needed to allow for fast_install
11041 # before this can be enabled.
11042 hardcode_into_libs=yes
11043
11044 dynamic_linker='Android linker'
11045 # Don't embed -rpath directories since the linker doesn't support them.
11046 hardcode_libdir_flag_spec='-L$libdir'
11047 ;;
11048
11049 # This must be glibc/ELF.
11050 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11051 version_type=linux # correct to gnu/linux during the next big refactor
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11055 soname_spec='$libname$release$shared_ext$major'
11056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=no
11059
11060 # Some binutils ld are patched to set DT_RUNPATH
11061 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 lt_cv_shlibpath_overrides_runpath=no
11065 save_LDFLAGS=$LDFLAGS
11066 save_libdir=$libdir
11067 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11068 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11071
11072 int
11073 main ()
11074 {
11075
11076 ;
11077 return 0;
11078 }
11079 _ACEOF
11080 if ac_fn_c_try_link "$LINENO"; then :
11081 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11082 lt_cv_shlibpath_overrides_runpath=yes
11083 fi
11084 fi
11085 rm -f core conftest.err conftest.$ac_objext \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LDFLAGS=$save_LDFLAGS
11088 libdir=$save_libdir
11089
11090 fi
11091
11092 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11093
11094 # This implies no fast_install, which is unacceptable.
11095 # Some rework will be needed to allow for fast_install
11096 # before this can be enabled.
11097 hardcode_into_libs=yes
11098
11099 # Add ABI-specific directories to the system library path.
11100 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11101
11102 # Ideally, we could use ldconfig to report *all* directores which are
11103 # searched for libraries, however this is still not possible. Aside from not
11104 # being certain /sbin/ldconfig is available, command
11105 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11106 # even though it is searched at run-time. Try to do the best guess by
11107 # appending ld.so.conf contents (and includes) to the search path.
11108 if test -f /etc/ld.so.conf; then
11109 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' ' '`
11110 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11111 fi
11112
11113 # We used to test for /lib/ld.so.1 and disable shared libraries on
11114 # powerpc, because MkLinux only supported shared libraries with the
11115 # GNU dynamic linker. Since this was broken with cross compilers,
11116 # most powerpc-linux boxes support dynamic linking these days and
11117 # people can always --disable-shared, the test was removed, and we
11118 # assume the GNU/Linux dynamic linker is in use.
11119 dynamic_linker='GNU/Linux ld.so'
11120 ;;
11121
11122 netbsd*)
11123 version_type=sunos
11124 need_lib_prefix=no
11125 need_version=no
11126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11127 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11129 dynamic_linker='NetBSD (a.out) ld.so'
11130 else
11131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11132 soname_spec='$libname$release$shared_ext$major'
11133 dynamic_linker='NetBSD ld.elf_so'
11134 fi
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=yes
11137 hardcode_into_libs=yes
11138 ;;
11139
11140 newsos6)
11141 version_type=linux # correct to gnu/linux during the next big refactor
11142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 ;;
11146
11147 *nto* | *qnx*)
11148 version_type=qnx
11149 need_lib_prefix=no
11150 need_version=no
11151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11152 soname_spec='$libname$release$shared_ext$major'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 shlibpath_overrides_runpath=no
11155 hardcode_into_libs=yes
11156 dynamic_linker='ldqnx.so'
11157 ;;
11158
11159 openbsd* | bitrig*)
11160 version_type=sunos
11161 sys_lib_dlsearch_path_spec=/usr/lib
11162 need_lib_prefix=no
11163 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11164 need_version=no
11165 else
11166 need_version=yes
11167 fi
11168 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11172 ;;
11173
11174 os2*)
11175 libname_spec='$name'
11176 version_type=windows
11177 shrext_cmds=.dll
11178 need_version=no
11179 need_lib_prefix=no
11180 # OS/2 can only load a DLL with a base name of 8 characters or less.
11181 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11182 v=$($ECHO $release$versuffix | tr -d .-);
11183 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11184 $ECHO $n$v`$shared_ext'
11185 library_names_spec='${libname}_dll.$libext'
11186 dynamic_linker='OS/2 ld.exe'
11187 shlibpath_var=BEGINLIBPATH
11188 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11190 postinstall_cmds='base_file=`basename \$file`~
11191 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11192 dldir=$destdir/`dirname \$dlpath`~
11193 test -d \$dldir || mkdir -p \$dldir~
11194 $install_prog $dir/$dlname \$dldir/$dlname~
11195 chmod a+x \$dldir/$dlname~
11196 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11197 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11198 fi'
11199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11200 dlpath=$dir/\$dldll~
11201 $RM \$dlpath'
11202 ;;
11203
11204 osf3* | osf4* | osf5*)
11205 version_type=osf
11206 need_lib_prefix=no
11207 need_version=no
11208 soname_spec='$libname$release$shared_ext$major'
11209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11213 ;;
11214
11215 rdos*)
11216 dynamic_linker=no
11217 ;;
11218
11219 solaris*)
11220 version_type=linux # correct to gnu/linux during the next big refactor
11221 need_lib_prefix=no
11222 need_version=no
11223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11224 soname_spec='$libname$release$shared_ext$major'
11225 shlibpath_var=LD_LIBRARY_PATH
11226 shlibpath_overrides_runpath=yes
11227 hardcode_into_libs=yes
11228 # ldd complains unless libraries are executable
11229 postinstall_cmds='chmod +x $lib'
11230 ;;
11231
11232 sunos4*)
11233 version_type=sunos
11234 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11235 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 shlibpath_overrides_runpath=yes
11238 if test yes = "$with_gnu_ld"; then
11239 need_lib_prefix=no
11240 fi
11241 need_version=yes
11242 ;;
11243
11244 sysv4 | sysv4.3*)
11245 version_type=linux # correct to gnu/linux during the next big refactor
11246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11247 soname_spec='$libname$release$shared_ext$major'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 case $host_vendor in
11250 sni)
11251 shlibpath_overrides_runpath=no
11252 need_lib_prefix=no
11253 runpath_var=LD_RUN_PATH
11254 ;;
11255 siemens)
11256 need_lib_prefix=no
11257 ;;
11258 motorola)
11259 need_lib_prefix=no
11260 need_version=no
11261 shlibpath_overrides_runpath=no
11262 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11263 ;;
11264 esac
11265 ;;
11266
11267 sysv4*MP*)
11268 if test -d /usr/nec; then
11269 version_type=linux # correct to gnu/linux during the next big refactor
11270 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11271 soname_spec='$libname$shared_ext.$major'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 fi
11274 ;;
11275
11276 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11277 version_type=sco
11278 need_lib_prefix=no
11279 need_version=no
11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11281 soname_spec='$libname$release$shared_ext$major'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 shlibpath_overrides_runpath=yes
11284 hardcode_into_libs=yes
11285 if test yes = "$with_gnu_ld"; then
11286 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11287 else
11288 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11289 case $host_os in
11290 sco3.2v5*)
11291 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11292 ;;
11293 esac
11294 fi
11295 sys_lib_dlsearch_path_spec='/usr/lib'
11296 ;;
11297
11298 tpf*)
11299 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11300 version_type=linux # correct to gnu/linux during the next big refactor
11301 need_lib_prefix=no
11302 need_version=no
11303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 shlibpath_overrides_runpath=no
11306 hardcode_into_libs=yes
11307 ;;
11308
11309 uts4*)
11310 version_type=linux # correct to gnu/linux during the next big refactor
11311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11312 soname_spec='$libname$release$shared_ext$major'
11313 shlibpath_var=LD_LIBRARY_PATH
11314 ;;
11315
11316 *)
11317 dynamic_linker=no
11318 ;;
11319 esac
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11321 $as_echo "$dynamic_linker" >&6; }
11322 test no = "$dynamic_linker" && can_build_shared=no
11323
11324 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11325 if test yes = "$GCC"; then
11326 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11327 fi
11328
11329 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11330 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11331 fi
11332
11333 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11334 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11335 fi
11336
11337 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11338 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11339
11340 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11341 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11342
11343 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11344 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11443 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11444 hardcode_action=
11445 if test -n "$hardcode_libdir_flag_spec" ||
11446 test -n "$runpath_var" ||
11447 test yes = "$hardcode_automatic"; then
11448
11449 # We can hardcode non-existent directories.
11450 if test no != "$hardcode_direct" &&
11451 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11452 # have to relink, otherwise we might link with an installed library
11453 # when we should be linking with a yet-to-be-installed one
11454 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11455 test no != "$hardcode_minus_L"; then
11456 # Linking always hardcodes the temporary library directory.
11457 hardcode_action=relink
11458 else
11459 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11460 hardcode_action=immediate
11461 fi
11462 else
11463 # We cannot hardcode anything, or else we can only hardcode existing
11464 # directories.
11465 hardcode_action=unsupported
11466 fi
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11468 $as_echo "$hardcode_action" >&6; }
11469
11470 if test relink = "$hardcode_action" ||
11471 test yes = "$inherit_rpath"; then
11472 # Fast installation is not supported
11473 enable_fast_install=no
11474 elif test yes = "$shlibpath_overrides_runpath" ||
11475 test no = "$enable_shared"; then
11476 # Fast installation is not necessary
11477 enable_fast_install=needless
11478 fi
11479
11480
11481
11482
11483
11484
11485 if test yes != "$enable_dlopen"; then
11486 enable_dlopen=unknown
11487 enable_dlopen_self=unknown
11488 enable_dlopen_self_static=unknown
11489 else
11490 lt_cv_dlopen=no
11491 lt_cv_dlopen_libs=
11492
11493 case $host_os in
11494 beos*)
11495 lt_cv_dlopen=load_add_on
11496 lt_cv_dlopen_libs=
11497 lt_cv_dlopen_self=yes
11498 ;;
11499
11500 mingw* | pw32* | cegcc*)
11501 lt_cv_dlopen=LoadLibrary
11502 lt_cv_dlopen_libs=
11503 ;;
11504
11505 cygwin*)
11506 lt_cv_dlopen=dlopen
11507 lt_cv_dlopen_libs=
11508 ;;
11509
11510 darwin*)
11511 # if libdl is installed we need to link against it
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11513 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11514 if ${ac_cv_lib_dl_dlopen+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 ac_check_lib_save_LIBS=$LIBS
11518 LIBS="-ldl $LIBS"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11521
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 char dlopen ();
11529 int
11530 main ()
11531 {
11532 return dlopen ();
11533 ;
11534 return 0;
11535 }
11536 _ACEOF
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_lib_dl_dlopen=yes
11539 else
11540 ac_cv_lib_dl_dlopen=no
11541 fi
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11545 fi
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11547 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11548 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11549 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11550 else
11551
11552 lt_cv_dlopen=dyld
11553 lt_cv_dlopen_libs=
11554 lt_cv_dlopen_self=yes
11555
11556 fi
11557
11558 ;;
11559
11560 tpf*)
11561 # Don't try to run any link tests for TPF. We know it's impossible
11562 # because TPF is a cross-compiler, and we know how we open DSOs.
11563 lt_cv_dlopen=dlopen
11564 lt_cv_dlopen_libs=
11565 lt_cv_dlopen_self=no
11566 ;;
11567
11568 *)
11569 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11570 if test "x$ac_cv_func_shl_load" = xyes; then :
11571 lt_cv_dlopen=shl_load
11572 else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11574 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11575 if ${ac_cv_lib_dld_shl_load+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 ac_check_lib_save_LIBS=$LIBS
11579 LIBS="-ldld $LIBS"
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582
11583 /* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11586 #ifdef __cplusplus
11587 extern "C"
11588 #endif
11589 char shl_load ();
11590 int
11591 main ()
11592 {
11593 return shl_load ();
11594 ;
11595 return 0;
11596 }
11597 _ACEOF
11598 if ac_fn_c_try_link "$LINENO"; then :
11599 ac_cv_lib_dld_shl_load=yes
11600 else
11601 ac_cv_lib_dld_shl_load=no
11602 fi
11603 rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11605 LIBS=$ac_check_lib_save_LIBS
11606 fi
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11608 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11609 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11610 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11611 else
11612 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11613 if test "x$ac_cv_func_dlopen" = xyes; then :
11614 lt_cv_dlopen=dlopen
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11617 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11618 if ${ac_cv_lib_dl_dlopen+:} false; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 ac_check_lib_save_LIBS=$LIBS
11622 LIBS="-ldl $LIBS"
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11625
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629 #ifdef __cplusplus
11630 extern "C"
11631 #endif
11632 char dlopen ();
11633 int
11634 main ()
11635 {
11636 return dlopen ();
11637 ;
11638 return 0;
11639 }
11640 _ACEOF
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_lib_dl_dlopen=yes
11643 else
11644 ac_cv_lib_dl_dlopen=no
11645 fi
11646 rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11649 fi
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11651 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11652 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11653 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11654 else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11656 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11657 if ${ac_cv_lib_svld_dlopen+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 ac_check_lib_save_LIBS=$LIBS
11661 LIBS="-lsvld $LIBS"
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 char dlopen ();
11672 int
11673 main ()
11674 {
11675 return dlopen ();
11676 ;
11677 return 0;
11678 }
11679 _ACEOF
11680 if ac_fn_c_try_link "$LINENO"; then :
11681 ac_cv_lib_svld_dlopen=yes
11682 else
11683 ac_cv_lib_svld_dlopen=no
11684 fi
11685 rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687 LIBS=$ac_check_lib_save_LIBS
11688 fi
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11690 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11691 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11692 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11693 else
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11695 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11696 if ${ac_cv_lib_dld_dld_link+:} false; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 ac_check_lib_save_LIBS=$LIBS
11700 LIBS="-ldld $LIBS"
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703
11704 /* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11707 #ifdef __cplusplus
11708 extern "C"
11709 #endif
11710 char dld_link ();
11711 int
11712 main ()
11713 {
11714 return dld_link ();
11715 ;
11716 return 0;
11717 }
11718 _ACEOF
11719 if ac_fn_c_try_link "$LINENO"; then :
11720 ac_cv_lib_dld_dld_link=yes
11721 else
11722 ac_cv_lib_dld_dld_link=no
11723 fi
11724 rm -f core conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
11726 LIBS=$ac_check_lib_save_LIBS
11727 fi
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11729 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11730 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11731 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11732 fi
11733
11734
11735 fi
11736
11737
11738 fi
11739
11740
11741 fi
11742
11743
11744 fi
11745
11746
11747 fi
11748
11749 ;;
11750 esac
11751
11752 if test no = "$lt_cv_dlopen"; then
11753 enable_dlopen=no
11754 else
11755 enable_dlopen=yes
11756 fi
11757
11758 case $lt_cv_dlopen in
11759 dlopen)
11760 save_CPPFLAGS=$CPPFLAGS
11761 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11762
11763 save_LDFLAGS=$LDFLAGS
11764 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11765
11766 save_LIBS=$LIBS
11767 LIBS="$lt_cv_dlopen_libs $LIBS"
11768
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11770 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11771 if ${lt_cv_dlopen_self+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 if test yes = "$cross_compiling"; then :
11775 lt_cv_dlopen_self=cross
11776 else
11777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11778 lt_status=$lt_dlunknown
11779 cat > conftest.$ac_ext <<_LT_EOF
11780 #line $LINENO "configure"
11781 #include "confdefs.h"
11782
11783 #if HAVE_DLFCN_H
11784 #include <dlfcn.h>
11785 #endif
11786
11787 #include <stdio.h>
11788
11789 #ifdef RTLD_GLOBAL
11790 # define LT_DLGLOBAL RTLD_GLOBAL
11791 #else
11792 # ifdef DL_GLOBAL
11793 # define LT_DLGLOBAL DL_GLOBAL
11794 # else
11795 # define LT_DLGLOBAL 0
11796 # endif
11797 #endif
11798
11799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11800 find out it does not work in some platform. */
11801 #ifndef LT_DLLAZY_OR_NOW
11802 # ifdef RTLD_LAZY
11803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11804 # else
11805 # ifdef DL_LAZY
11806 # define LT_DLLAZY_OR_NOW DL_LAZY
11807 # else
11808 # ifdef RTLD_NOW
11809 # define LT_DLLAZY_OR_NOW RTLD_NOW
11810 # else
11811 # ifdef DL_NOW
11812 # define LT_DLLAZY_OR_NOW DL_NOW
11813 # else
11814 # define LT_DLLAZY_OR_NOW 0
11815 # endif
11816 # endif
11817 # endif
11818 # endif
11819 #endif
11820
11821 /* When -fvisibility=hidden is used, assume the code has been annotated
11822 correspondingly for the symbols needed. */
11823 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11824 int fnord () __attribute__((visibility("default")));
11825 #endif
11826
11827 int fnord () { return 42; }
11828 int main ()
11829 {
11830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11831 int status = $lt_dlunknown;
11832
11833 if (self)
11834 {
11835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11836 else
11837 {
11838 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11839 else puts (dlerror ());
11840 }
11841 /* dlclose (self); */
11842 }
11843 else
11844 puts (dlerror ());
11845
11846 return status;
11847 }
11848 _LT_EOF
11849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11850 (eval $ac_link) 2>&5
11851 ac_status=$?
11852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11854 (./conftest; exit; ) >&5 2>/dev/null
11855 lt_status=$?
11856 case x$lt_status in
11857 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11858 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11859 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11860 esac
11861 else :
11862 # compilation failed
11863 lt_cv_dlopen_self=no
11864 fi
11865 fi
11866 rm -fr conftest*
11867
11868
11869 fi
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11871 $as_echo "$lt_cv_dlopen_self" >&6; }
11872
11873 if test yes = "$lt_cv_dlopen_self"; then
11874 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11876 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11877 if ${lt_cv_dlopen_self_static+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 if test yes = "$cross_compiling"; then :
11881 lt_cv_dlopen_self_static=cross
11882 else
11883 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11884 lt_status=$lt_dlunknown
11885 cat > conftest.$ac_ext <<_LT_EOF
11886 #line $LINENO "configure"
11887 #include "confdefs.h"
11888
11889 #if HAVE_DLFCN_H
11890 #include <dlfcn.h>
11891 #endif
11892
11893 #include <stdio.h>
11894
11895 #ifdef RTLD_GLOBAL
11896 # define LT_DLGLOBAL RTLD_GLOBAL
11897 #else
11898 # ifdef DL_GLOBAL
11899 # define LT_DLGLOBAL DL_GLOBAL
11900 # else
11901 # define LT_DLGLOBAL 0
11902 # endif
11903 #endif
11904
11905 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11906 find out it does not work in some platform. */
11907 #ifndef LT_DLLAZY_OR_NOW
11908 # ifdef RTLD_LAZY
11909 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11910 # else
11911 # ifdef DL_LAZY
11912 # define LT_DLLAZY_OR_NOW DL_LAZY
11913 # else
11914 # ifdef RTLD_NOW
11915 # define LT_DLLAZY_OR_NOW RTLD_NOW
11916 # else
11917 # ifdef DL_NOW
11918 # define LT_DLLAZY_OR_NOW DL_NOW
11919 # else
11920 # define LT_DLLAZY_OR_NOW 0
11921 # endif
11922 # endif
11923 # endif
11924 # endif
11925 #endif
11926
11927 /* When -fvisibility=hidden is used, assume the code has been annotated
11928 correspondingly for the symbols needed. */
11929 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11930 int fnord () __attribute__((visibility("default")));
11931 #endif
11932
11933 int fnord () { return 42; }
11934 int main ()
11935 {
11936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11937 int status = $lt_dlunknown;
11938
11939 if (self)
11940 {
11941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11942 else
11943 {
11944 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11945 else puts (dlerror ());
11946 }
11947 /* dlclose (self); */
11948 }
11949 else
11950 puts (dlerror ());
11951
11952 return status;
11953 }
11954 _LT_EOF
11955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11956 (eval $ac_link) 2>&5
11957 ac_status=$?
11958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11959 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11960 (./conftest; exit; ) >&5 2>/dev/null
11961 lt_status=$?
11962 case x$lt_status in
11963 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11964 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11965 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11966 esac
11967 else :
11968 # compilation failed
11969 lt_cv_dlopen_self_static=no
11970 fi
11971 fi
11972 rm -fr conftest*
11973
11974
11975 fi
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11977 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11978 fi
11979
11980 CPPFLAGS=$save_CPPFLAGS
11981 LDFLAGS=$save_LDFLAGS
11982 LIBS=$save_LIBS
11983 ;;
11984 esac
11985
11986 case $lt_cv_dlopen_self in
11987 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11988 *) enable_dlopen_self=unknown ;;
11989 esac
11990
11991 case $lt_cv_dlopen_self_static in
11992 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11993 *) enable_dlopen_self_static=unknown ;;
11994 esac
11995 fi
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013 striplib=
12014 old_striplib=
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12016 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12017 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12019 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12021 $as_echo "yes" >&6; }
12022 else
12023 # FIXME - insert some real tests, host_os isn't really good enough
12024 case $host_os in
12025 darwin*)
12026 if test -n "$STRIP"; then
12027 striplib="$STRIP -x"
12028 old_striplib="$STRIP -S"
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12030 $as_echo "yes" >&6; }
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12034 fi
12035 ;;
12036 *)
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12039 ;;
12040 esac
12041 fi
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054 # Report what library types will actually be built
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12056 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12058 $as_echo "$can_build_shared" >&6; }
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12061 $as_echo_n "checking whether to build shared libraries... " >&6; }
12062 test no = "$can_build_shared" && enable_shared=no
12063
12064 # On AIX, shared libraries and static libraries use the same namespace, and
12065 # are all built from PIC.
12066 case $host_os in
12067 aix3*)
12068 test yes = "$enable_shared" && enable_static=no
12069 if test -n "$RANLIB"; then
12070 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12071 postinstall_cmds='$RANLIB $lib'
12072 fi
12073 ;;
12074
12075 aix[4-9]*)
12076 if test ia64 != "$host_cpu"; then
12077 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12078 yes,aix,yes) ;; # shared object as lib.so file only
12079 yes,svr4,*) ;; # shared object as lib.so archive member only
12080 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12081 esac
12082 fi
12083 ;;
12084 esac
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12086 $as_echo "$enable_shared" >&6; }
12087
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12089 $as_echo_n "checking whether to build static libraries... " >&6; }
12090 # Make sure either enable_shared or enable_static is yes.
12091 test yes = "$enable_shared" || enable_static=yes
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12093 $as_echo "$enable_static" >&6; }
12094
12095
12096
12097
12098 fi
12099 ac_ext=c
12100 ac_cpp='$CPP $CPPFLAGS'
12101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12104
12105 CC=$lt_save_CC
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121 ac_config_commands="$ac_config_commands libtool"
12122
12123
12124
12125
12126 # Only expand once:
12127
12128
12129
12130 if test "$GCC" = yes
12131 then
12132 CFLAGS="-Wall $CFLAGS"
12133 fi
12134 CFLAGS="$CFLAGS -I$srcdir/.. -I.."
12135
12136
12137
12138 for ac_header in sys/types.h
12139 do :
12140 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12141 if test "x$ac_cv_header_sys_types_h" = xyes; then :
12142 cat >>confdefs.h <<_ACEOF
12143 #define HAVE_SYS_TYPES_H 1
12144 _ACEOF
12145
12146 fi
12147
12148 done
12149
12150
12151
12152 # Check whether --with-int32 was given.
12153 if test "${with_int32+set}" = set; then :
12154 withval=$with_int32; int32="$withval"
12155 else
12156
12157
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
12159 $as_echo_n "checking for uint32_t... " >&6; }
12160
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163
12164 #if HAVE_SYS_TYPES_H
12165 #include <sys/types.h>
12166 #endif
12167
12168 int
12169 main ()
12170 {
12171
12172 uint32_t i=0;
12173
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 if ac_fn_c_try_compile "$LINENO"; then :
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180 $as_echo "yes" >&6; } ; int32="uint32_t"
12181 else
12182
12183
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_32_t" >&5
12187 $as_echo_n "checking for u_int_32_t... " >&6; }
12188
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12191
12192 #if HAVE_SYS_TYPES_H
12193 #include <sys/types.h>
12194 #endif
12195
12196 int
12197 main ()
12198 {
12199
12200 u_int32_t i=0;
12201
12202 ;
12203 return 0;
12204 }
12205 _ACEOF
12206 if ac_fn_c_try_compile "$LINENO"; then :
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12208 $as_echo "yes" >&6; }; int32="u_int32_t"
12209 else
12210
12211
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12214
12215 # The cast to long int works around a bug in the HP C Compiler
12216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12218 # This bug is HP SR number 8606223364.
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
12220 $as_echo_n "checking size of unsigned... " >&6; }
12221 if ${ac_cv_sizeof_unsigned+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
12225
12226 else
12227 if test "$ac_cv_type_unsigned" = yes; then
12228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12230 as_fn_error 77 "cannot compute sizeof (unsigned)
12231 See \`config.log' for more details" "$LINENO" 5; }
12232 else
12233 ac_cv_sizeof_unsigned=0
12234 fi
12235 fi
12236
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
12239 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
12240
12241
12242
12243 cat >>confdefs.h <<_ACEOF
12244 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
12245 _ACEOF
12246
12247
12248 if test "$ac_cv_sizeof_unsigned" != 4
12249 then
12250 # The cast to long int works around a bug in the HP C Compiler
12251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12253 # This bug is HP SR number 8606223364.
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
12255 $as_echo_n "checking size of unsigned long... " >&6; }
12256 if ${ac_cv_sizeof_unsigned_long+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
12260
12261 else
12262 if test "$ac_cv_type_unsigned_long" = yes; then
12263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12265 as_fn_error 77 "cannot compute sizeof (unsigned long)
12266 See \`config.log' for more details" "$LINENO" 5; }
12267 else
12268 ac_cv_sizeof_unsigned_long=0
12269 fi
12270 fi
12271
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
12274 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
12275
12276
12277
12278 cat >>confdefs.h <<_ACEOF
12279 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12280 _ACEOF
12281
12282
12283 if test "$ac_cv_sizeof_unsigned_long" != 4
12284 then
12285 # The cast to long int works around a bug in the HP C Compiler
12286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12288 # This bug is HP SR number 8606223364.
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
12290 $as_echo_n "checking size of unsigned short... " >&6; }
12291 if ${ac_cv_sizeof_unsigned_short+:} false; then :
12292 $as_echo_n "(cached) " >&6
12293 else
12294 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
12295
12296 else
12297 if test "$ac_cv_type_unsigned_short" = yes; then
12298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12300 as_fn_error 77 "cannot compute sizeof (unsigned short)
12301 See \`config.log' for more details" "$LINENO" 5; }
12302 else
12303 ac_cv_sizeof_unsigned_short=0
12304 fi
12305 fi
12306
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
12309 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
12310
12311
12312
12313 cat >>confdefs.h <<_ACEOF
12314 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12315 _ACEOF
12316
12317
12318 if test "$ac_cv_sizeof_unsigned_short" != 4
12319 then
12320 as_fn_error $? "--with-int32 option is required" "$LINENO" 5
12321 fi
12322 int32="unsigned short"
12323 else
12324 int32="unsigned long"
12325 fi
12326 else
12327 int32="unsigned"
12328 fi
12329
12330 fi
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332
12333 fi
12334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335
12336
12337 fi
12338
12339 UINT32="$int32"
12340
12341
12342 cat >>confdefs.h <<_ACEOF
12343 #define SHA1_WORD $UINT32
12344 _ACEOF
12345
12346
12347
12348 # Check whether --with-int64 was given.
12349 if test "${with_int64+set}" = set; then :
12350 withval=$with_int64; int64="$withval"
12351 else
12352
12353
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
12355 $as_echo_n "checking for uint64_t... " >&6; }
12356
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359
12360 #if HAVE_SYS_TYPES_H
12361 #include <sys/types.h>
12362 #endif
12363
12364 int
12365 main ()
12366 {
12367
12368 uint64_t i=0;
12369
12370 ;
12371 return 0;
12372 }
12373 _ACEOF
12374 if ac_fn_c_try_compile "$LINENO"; then :
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12376 $as_echo "yes" >&6; } ; int64="uint64_t"
12377 else
12378
12379
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_64_t" >&5
12383 $as_echo_n "checking for u_int_64_t... " >&6; }
12384
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387
12388 #if HAVE_SYS_TYPES_H
12389 #include <sys/types.h>
12390 #endif
12391
12392 int
12393 main ()
12394 {
12395
12396 u_int64_t i=0;
12397
12398 ;
12399 return 0;
12400 }
12401 _ACEOF
12402 if ac_fn_c_try_compile "$LINENO"; then :
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12404 $as_echo "yes" >&6; }; int64="u_int64_t"
12405 else
12406
12407
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12410
12411 # The cast to long int works around a bug in the HP C Compiler
12412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12414 # This bug is HP SR number 8606223364.
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
12416 $as_echo_n "checking size of unsigned... " >&6; }
12417 if ${ac_cv_sizeof_unsigned+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
12421
12422 else
12423 if test "$ac_cv_type_unsigned" = yes; then
12424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12426 as_fn_error 77 "cannot compute sizeof (unsigned)
12427 See \`config.log' for more details" "$LINENO" 5; }
12428 else
12429 ac_cv_sizeof_unsigned=0
12430 fi
12431 fi
12432
12433 fi
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
12435 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
12436
12437
12438
12439 cat >>confdefs.h <<_ACEOF
12440 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
12441 _ACEOF
12442
12443
12444 if test "$ac_cv_sizeof_unsigned" != 8
12445 then
12446 # The cast to long int works around a bug in the HP C Compiler
12447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12449 # This bug is HP SR number 8606223364.
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
12451 $as_echo_n "checking size of unsigned long... " >&6; }
12452 if ${ac_cv_sizeof_unsigned_long+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
12456
12457 else
12458 if test "$ac_cv_type_unsigned_long" = yes; then
12459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12461 as_fn_error 77 "cannot compute sizeof (unsigned long)
12462 See \`config.log' for more details" "$LINENO" 5; }
12463 else
12464 ac_cv_sizeof_unsigned_long=0
12465 fi
12466 fi
12467
12468 fi
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
12470 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
12471
12472
12473
12474 cat >>confdefs.h <<_ACEOF
12475 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12476 _ACEOF
12477
12478
12479 if test "$ac_cv_sizeof_unsigned_long" != 8
12480 then
12481 # The cast to long int works around a bug in the HP C Compiler
12482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12484 # This bug is HP SR number 8606223364.
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
12486 $as_echo_n "checking size of unsigned long long... " >&6; }
12487 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
12491
12492 else
12493 if test "$ac_cv_type_unsigned_long_long" = yes; then
12494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12496 as_fn_error 77 "cannot compute sizeof (unsigned long long)
12497 See \`config.log' for more details" "$LINENO" 5; }
12498 else
12499 ac_cv_sizeof_unsigned_long_long=0
12500 fi
12501 fi
12502
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
12505 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
12506
12507
12508
12509 cat >>confdefs.h <<_ACEOF
12510 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
12511 _ACEOF
12512
12513
12514 if test "$ac_cv_sizeof_unsigned_long_long" != 8
12515 then
12516 # The cast to long int works around a bug in the HP C Compiler
12517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12519 # This bug is HP SR number 8606223364.
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
12521 $as_echo_n "checking size of unsigned short... " >&6; }
12522 if ${ac_cv_sizeof_unsigned_short+:} false; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
12526
12527 else
12528 if test "$ac_cv_type_unsigned_short" = yes; then
12529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12531 as_fn_error 77 "cannot compute sizeof (unsigned short)
12532 See \`config.log' for more details" "$LINENO" 5; }
12533 else
12534 ac_cv_sizeof_unsigned_short=0
12535 fi
12536 fi
12537
12538 fi
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
12540 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
12541
12542
12543
12544 cat >>confdefs.h <<_ACEOF
12545 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12546 _ACEOF
12547
12548
12549 if test "$ac_cv_sizeof_unsigned_short" != 8
12550 then
12551 as_fn_error $? "--with-int64 option is required" "$LINENO" 5
12552 fi
12553 int64="unsigned short"
12554 else
12555 int64="unsigned long long"
12556 fi
12557 else
12558 int64="unsigned long"
12559 fi
12560 else
12561 int64="unsigned"
12562 fi
12563
12564 fi
12565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566
12567 fi
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569
12570
12571 fi
12572
12573 UINT64="$int64"
12574
12575
12576 cat >>confdefs.h <<_ACEOF
12577 #define SHA512_WORD $UINT64
12578 _ACEOF
12579
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12581 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12582 if ${ac_cv_c_const+:} false; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587
12588 int
12589 main ()
12590 {
12591
12592 #ifndef __cplusplus
12593 /* Ultrix mips cc rejects this sort of thing. */
12594 typedef int charset[2];
12595 const charset cs = { 0, 0 };
12596 /* SunOS 4.1.1 cc rejects this. */
12597 char const *const *pcpcc;
12598 char **ppc;
12599 /* NEC SVR4.0.2 mips cc rejects this. */
12600 struct point {int x, y;};
12601 static struct point const zero = {0,0};
12602 /* AIX XL C 1.02.0.0 rejects this.
12603 It does not let you subtract one const X* pointer from another in
12604 an arm of an if-expression whose if-part is not a constant
12605 expression */
12606 const char *g = "string";
12607 pcpcc = &g + (g ? g-g : 0);
12608 /* HPUX 7.0 cc rejects these. */
12609 ++pcpcc;
12610 ppc = (char**) pcpcc;
12611 pcpcc = (char const *const *) ppc;
12612 { /* SCO 3.2v4 cc rejects this sort of thing. */
12613 char tx;
12614 char *t = &tx;
12615 char const *s = 0 ? (char *) 0 : (char const *) 0;
12616
12617 *t++ = 0;
12618 if (s) return 0;
12619 }
12620 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12621 int x[] = {25, 17};
12622 const int *foo = &x[0];
12623 ++foo;
12624 }
12625 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12626 typedef const int *iptr;
12627 iptr p = 0;
12628 ++p;
12629 }
12630 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12631 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12632 struct s { int j; const int *ap[3]; } bx;
12633 struct s *b = &bx; b->j = 5;
12634 }
12635 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12636 const int foo = 10;
12637 if (!foo) return 0;
12638 }
12639 return !cs[0] && !zero.x;
12640 #endif
12641
12642 ;
12643 return 0;
12644 }
12645 _ACEOF
12646 if ac_fn_c_try_compile "$LINENO"; then :
12647 ac_cv_c_const=yes
12648 else
12649 ac_cv_c_const=no
12650 fi
12651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652 fi
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12654 $as_echo "$ac_cv_c_const" >&6; }
12655 if test $ac_cv_c_const = no; then
12656
12657 $as_echo "#define const /**/" >>confdefs.h
12658
12659 fi
12660
12661 # Check whether --enable-largefile was given.
12662 if test "${enable_largefile+set}" = set; then :
12663 enableval=$enable_largefile;
12664 fi
12665
12666 if test "$enable_largefile" != no; then
12667
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12669 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12670 if ${ac_cv_sys_largefile_CC+:} false; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 ac_cv_sys_largefile_CC=no
12674 if test "$GCC" != yes; then
12675 ac_save_CC=$CC
12676 while :; do
12677 # IRIX 6.2 and later do not support large files by default,
12678 # so use the C compiler's -n32 option if that helps.
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681 #include <sys/types.h>
12682 /* Check that off_t can represent 2**63 - 1 correctly.
12683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12684 since some C++ compilers masquerading as C compilers
12685 incorrectly reject 9223372036854775807. */
12686 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12688 && LARGE_OFF_T % 2147483647 == 1)
12689 ? 1 : -1];
12690 int
12691 main ()
12692 {
12693
12694 ;
12695 return 0;
12696 }
12697 _ACEOF
12698 if ac_fn_c_try_compile "$LINENO"; then :
12699 break
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext
12702 CC="$CC -n32"
12703 if ac_fn_c_try_compile "$LINENO"; then :
12704 ac_cv_sys_largefile_CC=' -n32'; break
12705 fi
12706 rm -f core conftest.err conftest.$ac_objext
12707 break
12708 done
12709 CC=$ac_save_CC
12710 rm -f conftest.$ac_ext
12711 fi
12712 fi
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12714 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12715 if test "$ac_cv_sys_largefile_CC" != no; then
12716 CC=$CC$ac_cv_sys_largefile_CC
12717 fi
12718
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12720 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12721 if ${ac_cv_sys_file_offset_bits+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 while :; do
12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h. */
12727 #include <sys/types.h>
12728 /* Check that off_t can represent 2**63 - 1 correctly.
12729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12730 since some C++ compilers masquerading as C compilers
12731 incorrectly reject 9223372036854775807. */
12732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12734 && LARGE_OFF_T % 2147483647 == 1)
12735 ? 1 : -1];
12736 int
12737 main ()
12738 {
12739
12740 ;
12741 return 0;
12742 }
12743 _ACEOF
12744 if ac_fn_c_try_compile "$LINENO"; then :
12745 ac_cv_sys_file_offset_bits=no; break
12746 fi
12747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12750 #define _FILE_OFFSET_BITS 64
12751 #include <sys/types.h>
12752 /* Check that off_t can represent 2**63 - 1 correctly.
12753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12754 since some C++ compilers masquerading as C compilers
12755 incorrectly reject 9223372036854775807. */
12756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12758 && LARGE_OFF_T % 2147483647 == 1)
12759 ? 1 : -1];
12760 int
12761 main ()
12762 {
12763
12764 ;
12765 return 0;
12766 }
12767 _ACEOF
12768 if ac_fn_c_try_compile "$LINENO"; then :
12769 ac_cv_sys_file_offset_bits=64; break
12770 fi
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 ac_cv_sys_file_offset_bits=unknown
12773 break
12774 done
12775 fi
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12777 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12778 case $ac_cv_sys_file_offset_bits in #(
12779 no | unknown) ;;
12780 *)
12781 cat >>confdefs.h <<_ACEOF
12782 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12783 _ACEOF
12784 ;;
12785 esac
12786 rm -rf conftest*
12787 if test $ac_cv_sys_file_offset_bits = unknown; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12789 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12790 if ${ac_cv_sys_large_files+:} false; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 while :; do
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 #include <sys/types.h>
12797 /* Check that off_t can represent 2**63 - 1 correctly.
12798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12799 since some C++ compilers masquerading as C compilers
12800 incorrectly reject 9223372036854775807. */
12801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12803 && LARGE_OFF_T % 2147483647 == 1)
12804 ? 1 : -1];
12805 int
12806 main ()
12807 {
12808
12809 ;
12810 return 0;
12811 }
12812 _ACEOF
12813 if ac_fn_c_try_compile "$LINENO"; then :
12814 ac_cv_sys_large_files=no; break
12815 fi
12816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12819 #define _LARGE_FILES 1
12820 #include <sys/types.h>
12821 /* Check that off_t can represent 2**63 - 1 correctly.
12822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12823 since some C++ compilers masquerading as C compilers
12824 incorrectly reject 9223372036854775807. */
12825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12827 && LARGE_OFF_T % 2147483647 == 1)
12828 ? 1 : -1];
12829 int
12830 main ()
12831 {
12832
12833 ;
12834 return 0;
12835 }
12836 _ACEOF
12837 if ac_fn_c_try_compile "$LINENO"; then :
12838 ac_cv_sys_large_files=1; break
12839 fi
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 ac_cv_sys_large_files=unknown
12842 break
12843 done
12844 fi
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12846 $as_echo "$ac_cv_sys_large_files" >&6; }
12847 case $ac_cv_sys_large_files in #(
12848 no | unknown) ;;
12849 *)
12850 cat >>confdefs.h <<_ACEOF
12851 #define _LARGE_FILES $ac_cv_sys_large_files
12852 _ACEOF
12853 ;;
12854 esac
12855 rm -rf conftest*
12856 fi
12857
12858
12859 fi
12860
12861
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12863 $as_echo_n "checking for ANSI C header files... " >&6; }
12864 if ${ac_cv_header_stdc+:} false; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869 #include <stdlib.h>
12870 #include <stdarg.h>
12871 #include <string.h>
12872 #include <float.h>
12873
12874 int
12875 main ()
12876 {
12877
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 if ac_fn_c_try_compile "$LINENO"; then :
12883 ac_cv_header_stdc=yes
12884 else
12885 ac_cv_header_stdc=no
12886 fi
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888
12889 if test $ac_cv_header_stdc = yes; then
12890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12893 #include <string.h>
12894
12895 _ACEOF
12896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12897 $EGREP "memchr" >/dev/null 2>&1; then :
12898
12899 else
12900 ac_cv_header_stdc=no
12901 fi
12902 rm -f conftest*
12903
12904 fi
12905
12906 if test $ac_cv_header_stdc = yes; then
12907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12910 #include <stdlib.h>
12911
12912 _ACEOF
12913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12914 $EGREP "free" >/dev/null 2>&1; then :
12915
12916 else
12917 ac_cv_header_stdc=no
12918 fi
12919 rm -f conftest*
12920
12921 fi
12922
12923 if test $ac_cv_header_stdc = yes; then
12924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12925 if test "$cross_compiling" = yes; then :
12926 :
12927 else
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12930 #include <ctype.h>
12931 #include <stdlib.h>
12932 #if ((' ' & 0x0FF) == 0x020)
12933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12935 #else
12936 # define ISLOWER(c) \
12937 (('a' <= (c) && (c) <= 'i') \
12938 || ('j' <= (c) && (c) <= 'r') \
12939 || ('s' <= (c) && (c) <= 'z'))
12940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12941 #endif
12942
12943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12944 int
12945 main ()
12946 {
12947 int i;
12948 for (i = 0; i < 256; i++)
12949 if (XOR (islower (i), ISLOWER (i))
12950 || toupper (i) != TOUPPER (i))
12951 return 2;
12952 return 0;
12953 }
12954 _ACEOF
12955 if ac_fn_c_try_run "$LINENO"; then :
12956
12957 else
12958 ac_cv_header_stdc=no
12959 fi
12960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12961 conftest.$ac_objext conftest.beam conftest.$ac_ext
12962 fi
12963
12964 fi
12965 fi
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12967 $as_echo "$ac_cv_header_stdc" >&6; }
12968 if test $ac_cv_header_stdc = yes; then
12969
12970 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12971
12972 fi
12973
12974
12975 ac_config_files="$ac_config_files Makefile"
12976
12977 cat >confcache <<\_ACEOF
12978 # This file is a shell script that caches the results of configure
12979 # tests run on this system so they can be shared between configure
12980 # scripts and configure runs, see configure's option --config-cache.
12981 # It is not useful on other systems. If it contains results you don't
12982 # want to keep, you may remove or edit it.
12983 #
12984 # config.status only pays attention to the cache file if you give it
12985 # the --recheck option to rerun configure.
12986 #
12987 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12988 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12989 # following values.
12990
12991 _ACEOF
12992
12993 # The following way of writing the cache mishandles newlines in values,
12994 # but we know of no workaround that is simple, portable, and efficient.
12995 # So, we kill variables containing newlines.
12996 # Ultrix sh set writes to stderr and can't be redirected directly,
12997 # and sets the high bit in the cache file unless we assign to the vars.
12998 (
12999 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13000 eval ac_val=\$$ac_var
13001 case $ac_val in #(
13002 *${as_nl}*)
13003 case $ac_var in #(
13004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13006 esac
13007 case $ac_var in #(
13008 _ | IFS | as_nl) ;; #(
13009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13010 *) { eval $ac_var=; unset $ac_var;} ;;
13011 esac ;;
13012 esac
13013 done
13014
13015 (set) 2>&1 |
13016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13017 *${as_nl}ac_space=\ *)
13018 # `set' does not quote correctly, so add quotes: double-quote
13019 # substitution turns \\\\ into \\, and sed turns \\ into \.
13020 sed -n \
13021 "s/'/'\\\\''/g;
13022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13023 ;; #(
13024 *)
13025 # `set' quotes correctly as required by POSIX, so do not add quotes.
13026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13027 ;;
13028 esac |
13029 sort
13030 ) |
13031 sed '
13032 /^ac_cv_env_/b end
13033 t clear
13034 :clear
13035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13036 t end
13037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13038 :end' >>confcache
13039 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13040 if test -w "$cache_file"; then
13041 if test "x$cache_file" != "x/dev/null"; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13043 $as_echo "$as_me: updating cache $cache_file" >&6;}
13044 if test ! -f "$cache_file" || test -h "$cache_file"; then
13045 cat confcache >"$cache_file"
13046 else
13047 case $cache_file in #(
13048 */* | ?:*)
13049 mv -f confcache "$cache_file"$$ &&
13050 mv -f "$cache_file"$$ "$cache_file" ;; #(
13051 *)
13052 mv -f confcache "$cache_file" ;;
13053 esac
13054 fi
13055 fi
13056 else
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13058 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13059 fi
13060 fi
13061 rm -f confcache
13062
13063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13064 # Let make expand exec_prefix.
13065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13066
13067 DEFS=-DHAVE_CONFIG_H
13068
13069 ac_libobjs=
13070 ac_ltlibobjs=
13071 U=
13072 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13073 # 1. Remove the extension, and $U if already installed.
13074 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13075 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13076 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13077 # will be set to the directory where LIBOBJS objects are built.
13078 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13079 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13080 done
13081 LIBOBJS=$ac_libobjs
13082
13083 LTLIBOBJS=$ac_ltlibobjs
13084
13085
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13087 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13088 if test -n "$am_sleep_pid"; then
13089 # Hide warnings about reused PIDs.
13090 wait $am_sleep_pid 2>/dev/null
13091 fi
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13093 $as_echo "done" >&6; }
13094 if test -n "$EXEEXT"; then
13095 am__EXEEXT_TRUE=
13096 am__EXEEXT_FALSE='#'
13097 else
13098 am__EXEEXT_TRUE='#'
13099 am__EXEEXT_FALSE=
13100 fi
13101
13102 if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
13103 as_fn_error $? "conditional \"HMACC\" was never defined.
13104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13105 fi
13106 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13107 as_fn_error $? "conditional \"AMDEP\" was never defined.
13108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13109 fi
13110 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13111 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13113 fi
13114
13115 : "${CONFIG_STATUS=./config.status}"
13116 ac_write_fail=0
13117 ac_clean_files_save=$ac_clean_files
13118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13121 as_write_fail=0
13122 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13123 #! $SHELL
13124 # Generated by $as_me.
13125 # Run this file to recreate the current configuration.
13126 # Compiler output produced by configure, useful for debugging
13127 # configure, is in config.log if it exists.
13128
13129 debug=false
13130 ac_cs_recheck=false
13131 ac_cs_silent=false
13132
13133 SHELL=\${CONFIG_SHELL-$SHELL}
13134 export SHELL
13135 _ASEOF
13136 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13137 ## -------------------- ##
13138 ## M4sh Initialization. ##
13139 ## -------------------- ##
13140
13141 # Be more Bourne compatible
13142 DUALCASE=1; export DUALCASE # for MKS sh
13143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13144 emulate sh
13145 NULLCMD=:
13146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13147 # is contrary to our usage. Disable this feature.
13148 alias -g '${1+"$@"}'='"$@"'
13149 setopt NO_GLOB_SUBST
13150 else
13151 case `(set -o) 2>/dev/null` in #(
13152 *posix*) :
13153 set -o posix ;; #(
13154 *) :
13155 ;;
13156 esac
13157 fi
13158
13159
13160 as_nl='
13161 '
13162 export as_nl
13163 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13164 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13165 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13167 # Prefer a ksh shell builtin over an external printf program on Solaris,
13168 # but without wasting forks for bash or zsh.
13169 if test -z "$BASH_VERSION$ZSH_VERSION" \
13170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13171 as_echo='print -r --'
13172 as_echo_n='print -rn --'
13173 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13174 as_echo='printf %s\n'
13175 as_echo_n='printf %s'
13176 else
13177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13178 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13179 as_echo_n='/usr/ucb/echo -n'
13180 else
13181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13182 as_echo_n_body='eval
13183 arg=$1;
13184 case $arg in #(
13185 *"$as_nl"*)
13186 expr "X$arg" : "X\\(.*\\)$as_nl";
13187 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13188 esac;
13189 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13190 '
13191 export as_echo_n_body
13192 as_echo_n='sh -c $as_echo_n_body as_echo'
13193 fi
13194 export as_echo_body
13195 as_echo='sh -c $as_echo_body as_echo'
13196 fi
13197
13198 # The user is always right.
13199 if test "${PATH_SEPARATOR+set}" != set; then
13200 PATH_SEPARATOR=:
13201 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13202 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13203 PATH_SEPARATOR=';'
13204 }
13205 fi
13206
13207
13208 # IFS
13209 # We need space, tab and new line, in precisely that order. Quoting is
13210 # there to prevent editors from complaining about space-tab.
13211 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13212 # splitting by setting IFS to empty value.)
13213 IFS=" "" $as_nl"
13214
13215 # Find who we are. Look in the path if we contain no directory separator.
13216 as_myself=
13217 case $0 in #((
13218 *[\\/]* ) as_myself=$0 ;;
13219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13221 do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13225 done
13226 IFS=$as_save_IFS
13227
13228 ;;
13229 esac
13230 # We did not find ourselves, most probably we were run as `sh COMMAND'
13231 # in which case we are not to be found in the path.
13232 if test "x$as_myself" = x; then
13233 as_myself=$0
13234 fi
13235 if test ! -f "$as_myself"; then
13236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13237 exit 1
13238 fi
13239
13240 # Unset variables that we do not need and which cause bugs (e.g. in
13241 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13242 # suppresses any "Segmentation fault" message there. '((' could
13243 # trigger a bug in pdksh 5.2.14.
13244 for as_var in BASH_ENV ENV MAIL MAILPATH
13245 do eval test x\${$as_var+set} = xset \
13246 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13247 done
13248 PS1='$ '
13249 PS2='> '
13250 PS4='+ '
13251
13252 # NLS nuisances.
13253 LC_ALL=C
13254 export LC_ALL
13255 LANGUAGE=C
13256 export LANGUAGE
13257
13258 # CDPATH.
13259 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13260
13261
13262 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13263 # ----------------------------------------
13264 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13265 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13266 # script with STATUS, using 1 if that was 0.
13267 as_fn_error ()
13268 {
13269 as_status=$1; test $as_status -eq 0 && as_status=1
13270 if test "$4"; then
13271 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13272 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13273 fi
13274 $as_echo "$as_me: error: $2" >&2
13275 as_fn_exit $as_status
13276 } # as_fn_error
13277
13278
13279 # as_fn_set_status STATUS
13280 # -----------------------
13281 # Set $? to STATUS, without forking.
13282 as_fn_set_status ()
13283 {
13284 return $1
13285 } # as_fn_set_status
13286
13287 # as_fn_exit STATUS
13288 # -----------------
13289 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13290 as_fn_exit ()
13291 {
13292 set +e
13293 as_fn_set_status $1
13294 exit $1
13295 } # as_fn_exit
13296
13297 # as_fn_unset VAR
13298 # ---------------
13299 # Portably unset VAR.
13300 as_fn_unset ()
13301 {
13302 { eval $1=; unset $1;}
13303 }
13304 as_unset=as_fn_unset
13305 # as_fn_append VAR VALUE
13306 # ----------------------
13307 # Append the text in VALUE to the end of the definition contained in VAR. Take
13308 # advantage of any shell optimizations that allow amortized linear growth over
13309 # repeated appends, instead of the typical quadratic growth present in naive
13310 # implementations.
13311 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13312 eval 'as_fn_append ()
13313 {
13314 eval $1+=\$2
13315 }'
13316 else
13317 as_fn_append ()
13318 {
13319 eval $1=\$$1\$2
13320 }
13321 fi # as_fn_append
13322
13323 # as_fn_arith ARG...
13324 # ------------------
13325 # Perform arithmetic evaluation on the ARGs, and store the result in the
13326 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13327 # must be portable across $(()) and expr.
13328 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13329 eval 'as_fn_arith ()
13330 {
13331 as_val=$(( $* ))
13332 }'
13333 else
13334 as_fn_arith ()
13335 {
13336 as_val=`expr "$@" || test $? -eq 1`
13337 }
13338 fi # as_fn_arith
13339
13340
13341 if expr a : '\(a\)' >/dev/null 2>&1 &&
13342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13343 as_expr=expr
13344 else
13345 as_expr=false
13346 fi
13347
13348 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13349 as_basename=basename
13350 else
13351 as_basename=false
13352 fi
13353
13354 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13355 as_dirname=dirname
13356 else
13357 as_dirname=false
13358 fi
13359
13360 as_me=`$as_basename -- "$0" ||
13361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13362 X"$0" : 'X\(//\)$' \| \
13363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13364 $as_echo X/"$0" |
13365 sed '/^.*\/\([^/][^/]*\)\/*$/{
13366 s//\1/
13367 q
13368 }
13369 /^X\/\(\/\/\)$/{
13370 s//\1/
13371 q
13372 }
13373 /^X\/\(\/\).*/{
13374 s//\1/
13375 q
13376 }
13377 s/.*/./; q'`
13378
13379 # Avoid depending upon Character Ranges.
13380 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13383 as_cr_digits='0123456789'
13384 as_cr_alnum=$as_cr_Letters$as_cr_digits
13385
13386 ECHO_C= ECHO_N= ECHO_T=
13387 case `echo -n x` in #(((((
13388 -n*)
13389 case `echo 'xy\c'` in
13390 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13391 xy) ECHO_C='\c';;
13392 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13393 ECHO_T=' ';;
13394 esac;;
13395 *)
13396 ECHO_N='-n';;
13397 esac
13398
13399 rm -f conf$$ conf$$.exe conf$$.file
13400 if test -d conf$$.dir; then
13401 rm -f conf$$.dir/conf$$.file
13402 else
13403 rm -f conf$$.dir
13404 mkdir conf$$.dir 2>/dev/null
13405 fi
13406 if (echo >conf$$.file) 2>/dev/null; then
13407 if ln -s conf$$.file conf$$ 2>/dev/null; then
13408 as_ln_s='ln -s'
13409 # ... but there are two gotchas:
13410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13412 # In both cases, we have to default to `cp -pR'.
13413 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13414 as_ln_s='cp -pR'
13415 elif ln conf$$.file conf$$ 2>/dev/null; then
13416 as_ln_s=ln
13417 else
13418 as_ln_s='cp -pR'
13419 fi
13420 else
13421 as_ln_s='cp -pR'
13422 fi
13423 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13424 rmdir conf$$.dir 2>/dev/null
13425
13426
13427 # as_fn_mkdir_p
13428 # -------------
13429 # Create "$as_dir" as a directory, including parents if necessary.
13430 as_fn_mkdir_p ()
13431 {
13432
13433 case $as_dir in #(
13434 -*) as_dir=./$as_dir;;
13435 esac
13436 test -d "$as_dir" || eval $as_mkdir_p || {
13437 as_dirs=
13438 while :; do
13439 case $as_dir in #(
13440 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13441 *) as_qdir=$as_dir;;
13442 esac
13443 as_dirs="'$as_qdir' $as_dirs"
13444 as_dir=`$as_dirname -- "$as_dir" ||
13445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13446 X"$as_dir" : 'X\(//\)[^/]' \| \
13447 X"$as_dir" : 'X\(//\)$' \| \
13448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13449 $as_echo X"$as_dir" |
13450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13451 s//\1/
13452 q
13453 }
13454 /^X\(\/\/\)[^/].*/{
13455 s//\1/
13456 q
13457 }
13458 /^X\(\/\/\)$/{
13459 s//\1/
13460 q
13461 }
13462 /^X\(\/\).*/{
13463 s//\1/
13464 q
13465 }
13466 s/.*/./; q'`
13467 test -d "$as_dir" && break
13468 done
13469 test -z "$as_dirs" || eval "mkdir $as_dirs"
13470 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13471
13472
13473 } # as_fn_mkdir_p
13474 if mkdir -p . 2>/dev/null; then
13475 as_mkdir_p='mkdir -p "$as_dir"'
13476 else
13477 test -d ./-p && rmdir ./-p
13478 as_mkdir_p=false
13479 fi
13480
13481
13482 # as_fn_executable_p FILE
13483 # -----------------------
13484 # Test if FILE is an executable regular file.
13485 as_fn_executable_p ()
13486 {
13487 test -f "$1" && test -x "$1"
13488 } # as_fn_executable_p
13489 as_test_x='test -x'
13490 as_executable_p=as_fn_executable_p
13491
13492 # Sed expression to map a string onto a valid CPP name.
13493 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13494
13495 # Sed expression to map a string onto a valid variable name.
13496 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13497
13498
13499 exec 6>&1
13500 ## ----------------------------------- ##
13501 ## Main body of $CONFIG_STATUS script. ##
13502 ## ----------------------------------- ##
13503 _ASEOF
13504 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13505
13506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13507 # Save the log message, to keep $0 and so on meaningful, and to
13508 # report actual input values of CONFIG_FILES etc. instead of their
13509 # values after options handling.
13510 ac_log="
13511 This file was extended by libsha1 $as_me 1.21, which was
13512 generated by GNU Autoconf 2.69. Invocation command line was
13513
13514 CONFIG_FILES = $CONFIG_FILES
13515 CONFIG_HEADERS = $CONFIG_HEADERS
13516 CONFIG_LINKS = $CONFIG_LINKS
13517 CONFIG_COMMANDS = $CONFIG_COMMANDS
13518 $ $0 $@
13519
13520 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13521 "
13522
13523 _ACEOF
13524
13525 case $ac_config_files in *"
13526 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13527 esac
13528
13529 case $ac_config_headers in *"
13530 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13531 esac
13532
13533
13534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13535 # Files that config.status was made for.
13536 config_files="$ac_config_files"
13537 config_headers="$ac_config_headers"
13538 config_commands="$ac_config_commands"
13539
13540 _ACEOF
13541
13542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13543 ac_cs_usage="\
13544 \`$as_me' instantiates files and other configuration actions
13545 from templates according to the current configuration. Unless the files
13546 and actions are specified as TAGs, all are instantiated by default.
13547
13548 Usage: $0 [OPTION]... [TAG]...
13549
13550 -h, --help print this help, then exit
13551 -V, --version print version number and configuration settings, then exit
13552 --config print configuration, then exit
13553 -q, --quiet, --silent
13554 do not print progress messages
13555 -d, --debug don't remove temporary files
13556 --recheck update $as_me by reconfiguring in the same conditions
13557 --file=FILE[:TEMPLATE]
13558 instantiate the configuration file FILE
13559 --header=FILE[:TEMPLATE]
13560 instantiate the configuration header FILE
13561
13562 Configuration files:
13563 $config_files
13564
13565 Configuration headers:
13566 $config_headers
13567
13568 Configuration commands:
13569 $config_commands
13570
13571 Report bugs to <courier-users@lists.sourceforge.net>."
13572
13573 _ACEOF
13574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13575 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13576 ac_cs_version="\\
13577 libsha1 config.status 1.21
13578 configured by $0, generated by GNU Autoconf 2.69,
13579 with options \\"\$ac_cs_config\\"
13580
13581 Copyright (C) 2012 Free Software Foundation, Inc.
13582 This config.status script is free software; the Free Software Foundation
13583 gives unlimited permission to copy, distribute and modify it."
13584
13585 ac_pwd='$ac_pwd'
13586 srcdir='$srcdir'
13587 INSTALL='$INSTALL'
13588 MKDIR_P='$MKDIR_P'
13589 AWK='$AWK'
13590 test -n "\$AWK" || AWK=awk
13591 _ACEOF
13592
13593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13594 # The default lists apply if the user does not specify any file.
13595 ac_need_defaults=:
13596 while test $# != 0
13597 do
13598 case $1 in
13599 --*=?*)
13600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13601 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13602 ac_shift=:
13603 ;;
13604 --*=)
13605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13606 ac_optarg=
13607 ac_shift=:
13608 ;;
13609 *)
13610 ac_option=$1
13611 ac_optarg=$2
13612 ac_shift=shift
13613 ;;
13614 esac
13615
13616 case $ac_option in
13617 # Handling of the options.
13618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13619 ac_cs_recheck=: ;;
13620 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13621 $as_echo "$ac_cs_version"; exit ;;
13622 --config | --confi | --conf | --con | --co | --c )
13623 $as_echo "$ac_cs_config"; exit ;;
13624 --debug | --debu | --deb | --de | --d | -d )
13625 debug=: ;;
13626 --file | --fil | --fi | --f )
13627 $ac_shift
13628 case $ac_optarg in
13629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13630 '') as_fn_error $? "missing file argument" ;;
13631 esac
13632 as_fn_append CONFIG_FILES " '$ac_optarg'"
13633 ac_need_defaults=false;;
13634 --header | --heade | --head | --hea )
13635 $ac_shift
13636 case $ac_optarg in
13637 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13638 esac
13639 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13640 ac_need_defaults=false;;
13641 --he | --h)
13642 # Conflict between --help and --header
13643 as_fn_error $? "ambiguous option: \`$1'
13644 Try \`$0 --help' for more information.";;
13645 --help | --hel | -h )
13646 $as_echo "$ac_cs_usage"; exit ;;
13647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13648 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13649 ac_cs_silent=: ;;
13650
13651 # This is an error.
13652 -*) as_fn_error $? "unrecognized option: \`$1'
13653 Try \`$0 --help' for more information." ;;
13654
13655 *) as_fn_append ac_config_targets " $1"
13656 ac_need_defaults=false ;;
13657
13658 esac
13659 shift
13660 done
13661
13662 ac_configure_extra_args=
13663
13664 if $ac_cs_silent; then
13665 exec 6>/dev/null
13666 ac_configure_extra_args="$ac_configure_extra_args --silent"
13667 fi
13668
13669 _ACEOF
13670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13671 if \$ac_cs_recheck; then
13672 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13673 shift
13674 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13675 CONFIG_SHELL='$SHELL'
13676 export CONFIG_SHELL
13677 exec "\$@"
13678 fi
13679
13680 _ACEOF
13681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13682 exec 5>>config.log
13683 {
13684 echo
13685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13686 ## Running $as_me. ##
13687 _ASBOX
13688 $as_echo "$ac_log"
13689 } >&5
13690
13691 _ACEOF
13692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13693 #
13694 # INIT-COMMANDS
13695 #
13696 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13697
13698
13699 # The HP-UX ksh and POSIX shell print the target directory to stdout
13700 # if CDPATH is set.
13701 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13702
13703 sed_quote_subst='$sed_quote_subst'
13704 double_quote_subst='$double_quote_subst'
13705 delay_variable_subst='$delay_variable_subst'
13706 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13707 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13708 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13709 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13710 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13711 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13712 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13713 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13714 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13715 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13716 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13717 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13718 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13719 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13720 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13721 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13722 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13723 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13724 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13725 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13726 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13727 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13728 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13729 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13730 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13731 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13732 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13733 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13734 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13735 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13736 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13737 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13738 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13739 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13740 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13741 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13742 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13743 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13744 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13745 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13746 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13747 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13748 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13749 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13750 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13751 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13752 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13753 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13754 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13755 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13756 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13757 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13758 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13759 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13760 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13761 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13762 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13763 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13764 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"`'
13765 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13766 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13767 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13768 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13769 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13770 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13771 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13772 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13773 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13774 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13775 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13776 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13777 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13778 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13779 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13780 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13781 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13782 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13783 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13784 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13785 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13786 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13787 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13788 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13789 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13790 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13791 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13792 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13793 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13794 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13795 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13796 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13797 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13798 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13799 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13800 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13801 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13802 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13803 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13804 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13805 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13806 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13807 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13808 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13809 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13810 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13811 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13812 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13813 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13814 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13815 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13816 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13817 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13818 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13819 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13820 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13821 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13822 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13823 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13824 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13825 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13826 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13827 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13828 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13829 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13830 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13831 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13832 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13833 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13834 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13835 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13836 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13837 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13838 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13839 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13840 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13841
13842 LTCC='$LTCC'
13843 LTCFLAGS='$LTCFLAGS'
13844 compiler='$compiler_DEFAULT'
13845
13846 # A function that is used when there is no print builtin or printf.
13847 func_fallback_echo ()
13848 {
13849 eval 'cat <<_LTECHO_EOF
13850 \$1
13851 _LTECHO_EOF'
13852 }
13853
13854 # Quote evaled strings.
13855 for var in SHELL \
13856 ECHO \
13857 PATH_SEPARATOR \
13858 SED \
13859 GREP \
13860 EGREP \
13861 FGREP \
13862 LD \
13863 NM \
13864 LN_S \
13865 lt_SP2NL \
13866 lt_NL2SP \
13867 reload_flag \
13868 OBJDUMP \
13869 deplibs_check_method \
13870 file_magic_cmd \
13871 file_magic_glob \
13872 want_nocaseglob \
13873 DLLTOOL \
13874 sharedlib_from_linklib_cmd \
13875 AR \
13876 AR_FLAGS \
13877 archiver_list_spec \
13878 STRIP \
13879 RANLIB \
13880 CC \
13881 CFLAGS \
13882 compiler \
13883 lt_cv_sys_global_symbol_pipe \
13884 lt_cv_sys_global_symbol_to_cdecl \
13885 lt_cv_sys_global_symbol_to_import \
13886 lt_cv_sys_global_symbol_to_c_name_address \
13887 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13888 lt_cv_nm_interface \
13889 nm_file_list_spec \
13890 lt_cv_truncate_bin \
13891 lt_prog_compiler_no_builtin_flag \
13892 lt_prog_compiler_pic \
13893 lt_prog_compiler_wl \
13894 lt_prog_compiler_static \
13895 lt_cv_prog_compiler_c_o \
13896 need_locks \
13897 MANIFEST_TOOL \
13898 DSYMUTIL \
13899 NMEDIT \
13900 LIPO \
13901 OTOOL \
13902 OTOOL64 \
13903 shrext_cmds \
13904 export_dynamic_flag_spec \
13905 whole_archive_flag_spec \
13906 compiler_needs_object \
13907 with_gnu_ld \
13908 allow_undefined_flag \
13909 no_undefined_flag \
13910 hardcode_libdir_flag_spec \
13911 hardcode_libdir_separator \
13912 exclude_expsyms \
13913 include_expsyms \
13914 file_list_spec \
13915 variables_saved_for_relink \
13916 libname_spec \
13917 library_names_spec \
13918 soname_spec \
13919 install_override_mode \
13920 finish_eval \
13921 old_striplib \
13922 striplib; do
13923 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13924 *[\\\\\\\`\\"\\\$]*)
13925 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13926 ;;
13927 *)
13928 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13929 ;;
13930 esac
13931 done
13932
13933 # Double-quote double-evaled strings.
13934 for var in reload_cmds \
13935 old_postinstall_cmds \
13936 old_postuninstall_cmds \
13937 old_archive_cmds \
13938 extract_expsyms_cmds \
13939 old_archive_from_new_cmds \
13940 old_archive_from_expsyms_cmds \
13941 archive_cmds \
13942 archive_expsym_cmds \
13943 module_cmds \
13944 module_expsym_cmds \
13945 export_symbols_cmds \
13946 prelink_cmds \
13947 postlink_cmds \
13948 postinstall_cmds \
13949 postuninstall_cmds \
13950 finish_cmds \
13951 sys_lib_search_path_spec \
13952 configure_time_dlsearch_path \
13953 configure_time_lt_sys_library_path; do
13954 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13955 *[\\\\\\\`\\"\\\$]*)
13956 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13957 ;;
13958 *)
13959 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13960 ;;
13961 esac
13962 done
13963
13964 ac_aux_dir='$ac_aux_dir'
13965
13966 # See if we are running on zsh, and set the options that allow our
13967 # commands through without removal of \ escapes INIT.
13968 if test -n "\${ZSH_VERSION+set}"; then
13969 setopt NO_GLOB_SUBST
13970 fi
13971
13972
13973 PACKAGE='$PACKAGE'
13974 VERSION='$VERSION'
13975 RM='$RM'
13976 ofile='$ofile'
13977
13978
13979
13980
13981 _ACEOF
13982
13983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984
13985 # Handling of arguments.
13986 for ac_config_target in $ac_config_targets
13987 do
13988 case $ac_config_target in
13989 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13990 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13991 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13992 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13993
13994 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13995 esac
13996 done
13997
13998
13999 # If the user did not use the arguments to specify the items to instantiate,
14000 # then the envvar interface is used. Set only those that are not.
14001 # We use the long form for the default assignment because of an extremely
14002 # bizarre bug on SunOS 4.1.3.
14003 if $ac_need_defaults; then
14004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14007 fi
14008
14009 # Have a temporary directory for convenience. Make it in the build tree
14010 # simply because there is no reason against having it here, and in addition,
14011 # creating and moving files from /tmp can sometimes cause problems.
14012 # Hook for its removal unless debugging.
14013 # Note that there is a small window in which the directory will not be cleaned:
14014 # after its creation but before its name has been assigned to `$tmp'.
14015 $debug ||
14016 {
14017 tmp= ac_tmp=
14018 trap 'exit_status=$?
14019 : "${ac_tmp:=$tmp}"
14020 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14021 ' 0
14022 trap 'as_fn_exit 1' 1 2 13 15
14023 }
14024 # Create a (secure) tmp directory for tmp files.
14025
14026 {
14027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14028 test -d "$tmp"
14029 } ||
14030 {
14031 tmp=./conf$$-$RANDOM
14032 (umask 077 && mkdir "$tmp")
14033 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14034 ac_tmp=$tmp
14035
14036 # Set up the scripts for CONFIG_FILES section.
14037 # No need to generate them if there are no CONFIG_FILES.
14038 # This happens for instance with `./config.status config.h'.
14039 if test -n "$CONFIG_FILES"; then
14040
14041
14042 ac_cr=`echo X | tr X '\015'`
14043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14044 # But we know of no other shell where ac_cr would be empty at this
14045 # point, so we can use a bashism as a fallback.
14046 if test "x$ac_cr" = x; then
14047 eval ac_cr=\$\'\\r\'
14048 fi
14049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14051 ac_cs_awk_cr='\\r'
14052 else
14053 ac_cs_awk_cr=$ac_cr
14054 fi
14055
14056 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14057 _ACEOF
14058
14059
14060 {
14061 echo "cat >conf$$subs.awk <<_ACEOF" &&
14062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14063 echo "_ACEOF"
14064 } >conf$$subs.sh ||
14065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14067 ac_delim='%!_!# '
14068 for ac_last_try in false false false false false :; do
14069 . ./conf$$subs.sh ||
14070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14071
14072 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14073 if test $ac_delim_n = $ac_delim_num; then
14074 break
14075 elif $ac_last_try; then
14076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14077 else
14078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14079 fi
14080 done
14081 rm -f conf$$subs.sh
14082
14083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14084 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14085 _ACEOF
14086 sed -n '
14087 h
14088 s/^/S["/; s/!.*/"]=/
14089 p
14090 g
14091 s/^[^!]*!//
14092 :repl
14093 t repl
14094 s/'"$ac_delim"'$//
14095 t delim
14096 :nl
14097 h
14098 s/\(.\{148\}\)..*/\1/
14099 t more1
14100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14101 p
14102 n
14103 b repl
14104 :more1
14105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14106 p
14107 g
14108 s/.\{148\}//
14109 t nl
14110 :delim
14111 h
14112 s/\(.\{148\}\)..*/\1/
14113 t more2
14114 s/["\\]/\\&/g; s/^/"/; s/$/"/
14115 p
14116 b
14117 :more2
14118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14119 p
14120 g
14121 s/.\{148\}//
14122 t delim
14123 ' <conf$$subs.awk | sed '
14124 /^[^""]/{
14125 N
14126 s/\n//
14127 }
14128 ' >>$CONFIG_STATUS || ac_write_fail=1
14129 rm -f conf$$subs.awk
14130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14131 _ACAWK
14132 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14133 for (key in S) S_is_set[key] = 1
14134 FS = "\a"
14135
14136 }
14137 {
14138 line = $ 0
14139 nfields = split(line, field, "@")
14140 substed = 0
14141 len = length(field[1])
14142 for (i = 2; i < nfields; i++) {
14143 key = field[i]
14144 keylen = length(key)
14145 if (S_is_set[key]) {
14146 value = S[key]
14147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14148 len += length(value) + length(field[++i])
14149 substed = 1
14150 } else
14151 len += 1 + keylen
14152 }
14153
14154 print line
14155 }
14156
14157 _ACAWK
14158 _ACEOF
14159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14160 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14161 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14162 else
14163 cat
14164 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14165 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14166 _ACEOF
14167
14168 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14169 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14170 # trailing colons and then remove the whole line if VPATH becomes empty
14171 # (actually we leave an empty line to preserve line numbers).
14172 if test "x$srcdir" = x.; then
14173 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14174 h
14175 s///
14176 s/^/:/
14177 s/[ ]*$/:/
14178 s/:\$(srcdir):/:/g
14179 s/:\${srcdir}:/:/g
14180 s/:@srcdir@:/:/g
14181 s/^:*//
14182 s/:*$//
14183 x
14184 s/\(=[ ]*\).*/\1/
14185 G
14186 s/\n//
14187 s/^[^=]*=[ ]*$//
14188 }'
14189 fi
14190
14191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14192 fi # test -n "$CONFIG_FILES"
14193
14194 # Set up the scripts for CONFIG_HEADERS section.
14195 # No need to generate them if there are no CONFIG_HEADERS.
14196 # This happens for instance with `./config.status Makefile'.
14197 if test -n "$CONFIG_HEADERS"; then
14198 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14199 BEGIN {
14200 _ACEOF
14201
14202 # Transform confdefs.h into an awk script `defines.awk', embedded as
14203 # here-document in config.status, that substitutes the proper values into
14204 # config.h.in to produce config.h.
14205
14206 # Create a delimiter string that does not exist in confdefs.h, to ease
14207 # handling of long lines.
14208 ac_delim='%!_!# '
14209 for ac_last_try in false false :; do
14210 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14211 if test -z "$ac_tt"; then
14212 break
14213 elif $ac_last_try; then
14214 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14215 else
14216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14217 fi
14218 done
14219
14220 # For the awk script, D is an array of macro values keyed by name,
14221 # likewise P contains macro parameters if any. Preserve backslash
14222 # newline sequences.
14223
14224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14225 sed -n '
14226 s/.\{148\}/&'"$ac_delim"'/g
14227 t rset
14228 :rset
14229 s/^[ ]*#[ ]*define[ ][ ]*/ /
14230 t def
14231 d
14232 :def
14233 s/\\$//
14234 t bsnl
14235 s/["\\]/\\&/g
14236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14237 D["\1"]=" \3"/p
14238 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14239 d
14240 :bsnl
14241 s/["\\]/\\&/g
14242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14243 D["\1"]=" \3\\\\\\n"\\/p
14244 t cont
14245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14246 t cont
14247 d
14248 :cont
14249 n
14250 s/.\{148\}/&'"$ac_delim"'/g
14251 t clear
14252 :clear
14253 s/\\$//
14254 t bsnlc
14255 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14256 d
14257 :bsnlc
14258 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14259 b cont
14260 ' <confdefs.h | sed '
14261 s/'"$ac_delim"'/"\\\
14262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14263
14264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14265 for (key in D) D_is_set[key] = 1
14266 FS = "\a"
14267 }
14268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14269 line = \$ 0
14270 split(line, arg, " ")
14271 if (arg[1] == "#") {
14272 defundef = arg[2]
14273 mac1 = arg[3]
14274 } else {
14275 defundef = substr(arg[1], 2)
14276 mac1 = arg[2]
14277 }
14278 split(mac1, mac2, "(") #)
14279 macro = mac2[1]
14280 prefix = substr(line, 1, index(line, defundef) - 1)
14281 if (D_is_set[macro]) {
14282 # Preserve the white space surrounding the "#".
14283 print prefix "define", macro P[macro] D[macro]
14284 next
14285 } else {
14286 # Replace #undef with comments. This is necessary, for example,
14287 # in the case of _POSIX_SOURCE, which is predefined and required
14288 # on some systems where configure will not decide to define it.
14289 if (defundef == "undef") {
14290 print "/*", prefix defundef, macro, "*/"
14291 next
14292 }
14293 }
14294 }
14295 { print }
14296 _ACAWK
14297 _ACEOF
14298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14299 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14300 fi # test -n "$CONFIG_HEADERS"
14301
14302
14303 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14304 shift
14305 for ac_tag
14306 do
14307 case $ac_tag in
14308 :[FHLC]) ac_mode=$ac_tag; continue;;
14309 esac
14310 case $ac_mode$ac_tag in
14311 :[FHL]*:*);;
14312 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14313 :[FH]-) ac_tag=-:-;;
14314 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14315 esac
14316 ac_save_IFS=$IFS
14317 IFS=:
14318 set x $ac_tag
14319 IFS=$ac_save_IFS
14320 shift
14321 ac_file=$1
14322 shift
14323
14324 case $ac_mode in
14325 :L) ac_source=$1;;
14326 :[FH])
14327 ac_file_inputs=
14328 for ac_f
14329 do
14330 case $ac_f in
14331 -) ac_f="$ac_tmp/stdin";;
14332 *) # Look for the file first in the build tree, then in the source tree
14333 # (if the path is not absolute). The absolute path cannot be DOS-style,
14334 # because $ac_f cannot contain `:'.
14335 test -f "$ac_f" ||
14336 case $ac_f in
14337 [\\/$]*) false;;
14338 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14339 esac ||
14340 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14341 esac
14342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14343 as_fn_append ac_file_inputs " '$ac_f'"
14344 done
14345
14346 # Let's still pretend it is `configure' which instantiates (i.e., don't
14347 # use $as_me), people would be surprised to read:
14348 # /* config.h. Generated by config.status. */
14349 configure_input='Generated from '`
14350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14351 `' by configure.'
14352 if test x"$ac_file" != x-; then
14353 configure_input="$ac_file. $configure_input"
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14355 $as_echo "$as_me: creating $ac_file" >&6;}
14356 fi
14357 # Neutralize special characters interpreted by sed in replacement strings.
14358 case $configure_input in #(
14359 *\&* | *\|* | *\\* )
14360 ac_sed_conf_input=`$as_echo "$configure_input" |
14361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14362 *) ac_sed_conf_input=$configure_input;;
14363 esac
14364
14365 case $ac_tag in
14366 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14368 esac
14369 ;;
14370 esac
14371
14372 ac_dir=`$as_dirname -- "$ac_file" ||
14373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14374 X"$ac_file" : 'X\(//\)[^/]' \| \
14375 X"$ac_file" : 'X\(//\)$' \| \
14376 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14377 $as_echo X"$ac_file" |
14378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14379 s//\1/
14380 q
14381 }
14382 /^X\(\/\/\)[^/].*/{
14383 s//\1/
14384 q
14385 }
14386 /^X\(\/\/\)$/{
14387 s//\1/
14388 q
14389 }
14390 /^X\(\/\).*/{
14391 s//\1/
14392 q
14393 }
14394 s/.*/./; q'`
14395 as_dir="$ac_dir"; as_fn_mkdir_p
14396 ac_builddir=.
14397
14398 case "$ac_dir" in
14399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14400 *)
14401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14402 # A ".." for each directory in $ac_dir_suffix.
14403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14404 case $ac_top_builddir_sub in
14405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14407 esac ;;
14408 esac
14409 ac_abs_top_builddir=$ac_pwd
14410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14411 # for backward compatibility:
14412 ac_top_builddir=$ac_top_build_prefix
14413
14414 case $srcdir in
14415 .) # We are building in place.
14416 ac_srcdir=.
14417 ac_top_srcdir=$ac_top_builddir_sub
14418 ac_abs_top_srcdir=$ac_pwd ;;
14419 [\\/]* | ?:[\\/]* ) # Absolute name.
14420 ac_srcdir=$srcdir$ac_dir_suffix;
14421 ac_top_srcdir=$srcdir
14422 ac_abs_top_srcdir=$srcdir ;;
14423 *) # Relative name.
14424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14425 ac_top_srcdir=$ac_top_build_prefix$srcdir
14426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14427 esac
14428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14429
14430
14431 case $ac_mode in
14432 :F)
14433 #
14434 # CONFIG_FILE
14435 #
14436
14437 case $INSTALL in
14438 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14439 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14440 esac
14441 ac_MKDIR_P=$MKDIR_P
14442 case $MKDIR_P in
14443 [\\/$]* | ?:[\\/]* ) ;;
14444 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14445 esac
14446 _ACEOF
14447
14448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14449 # If the template does not know about datarootdir, expand it.
14450 # FIXME: This hack should be removed a few years after 2.60.
14451 ac_datarootdir_hack=; ac_datarootdir_seen=
14452 ac_sed_dataroot='
14453 /datarootdir/ {
14454 p
14455 q
14456 }
14457 /@datadir@/p
14458 /@docdir@/p
14459 /@infodir@/p
14460 /@localedir@/p
14461 /@mandir@/p'
14462 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14463 *datarootdir*) ac_datarootdir_seen=yes;;
14464 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14466 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14467 _ACEOF
14468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14469 ac_datarootdir_hack='
14470 s&@datadir@&$datadir&g
14471 s&@docdir@&$docdir&g
14472 s&@infodir@&$infodir&g
14473 s&@localedir@&$localedir&g
14474 s&@mandir@&$mandir&g
14475 s&\\\${datarootdir}&$datarootdir&g' ;;
14476 esac
14477 _ACEOF
14478
14479 # Neutralize VPATH when `$srcdir' = `.'.
14480 # Shell code in configure.ac might set extrasub.
14481 # FIXME: do we really want to maintain this feature?
14482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14483 ac_sed_extra="$ac_vpsub
14484 $extrasub
14485 _ACEOF
14486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14487 :t
14488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14489 s|@configure_input@|$ac_sed_conf_input|;t t
14490 s&@top_builddir@&$ac_top_builddir_sub&;t t
14491 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14492 s&@srcdir@&$ac_srcdir&;t t
14493 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14494 s&@top_srcdir@&$ac_top_srcdir&;t t
14495 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14496 s&@builddir@&$ac_builddir&;t t
14497 s&@abs_builddir@&$ac_abs_builddir&;t t
14498 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14499 s&@INSTALL@&$ac_INSTALL&;t t
14500 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14501 $ac_datarootdir_hack
14502 "
14503 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14504 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14505
14506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14507 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14509 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14511 which seems to be undefined. Please make sure it is defined" >&5
14512 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14513 which seems to be undefined. Please make sure it is defined" >&2;}
14514
14515 rm -f "$ac_tmp/stdin"
14516 case $ac_file in
14517 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14518 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14519 esac \
14520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14521 ;;
14522 :H)
14523 #
14524 # CONFIG_HEADER
14525 #
14526 if test x"$ac_file" != x-; then
14527 {
14528 $as_echo "/* $configure_input */" \
14529 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14530 } >"$ac_tmp/config.h" \
14531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14532 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14534 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14535 else
14536 rm -f "$ac_file"
14537 mv "$ac_tmp/config.h" "$ac_file" \
14538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14539 fi
14540 else
14541 $as_echo "/* $configure_input */" \
14542 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14543 || as_fn_error $? "could not create -" "$LINENO" 5
14544 fi
14545 # Compute "$ac_file"'s index in $config_headers.
14546 _am_arg="$ac_file"
14547 _am_stamp_count=1
14548 for _am_header in $config_headers :; do
14549 case $_am_header in
14550 $_am_arg | $_am_arg:* )
14551 break ;;
14552 * )
14553 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14554 esac
14555 done
14556 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14557 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14558 X"$_am_arg" : 'X\(//\)[^/]' \| \
14559 X"$_am_arg" : 'X\(//\)$' \| \
14560 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14561 $as_echo X"$_am_arg" |
14562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14563 s//\1/
14564 q
14565 }
14566 /^X\(\/\/\)[^/].*/{
14567 s//\1/
14568 q
14569 }
14570 /^X\(\/\/\)$/{
14571 s//\1/
14572 q
14573 }
14574 /^X\(\/\).*/{
14575 s//\1/
14576 q
14577 }
14578 s/.*/./; q'`/stamp-h$_am_stamp_count
14579 ;;
14580
14581 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14582 $as_echo "$as_me: executing $ac_file commands" >&6;}
14583 ;;
14584 esac
14585
14586
14587 case $ac_file$ac_mode in
14588 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14589 # Older Autoconf quotes --file arguments for eval, but not when files
14590 # are listed without --file. Let's play safe and only enable the eval
14591 # if we detect the quoting.
14592 case $CONFIG_FILES in
14593 *\'*) eval set x "$CONFIG_FILES" ;;
14594 *) set x $CONFIG_FILES ;;
14595 esac
14596 shift
14597 for mf
14598 do
14599 # Strip MF so we end up with the name of the file.
14600 mf=`echo "$mf" | sed -e 's/:.*$//'`
14601 # Check whether this is an Automake generated Makefile or not.
14602 # We used to match only the files named 'Makefile.in', but
14603 # some people rename them; so instead we look at the file content.
14604 # Grep'ing the first line is not enough: some people post-process
14605 # each Makefile.in and add a new line on top of each file to say so.
14606 # Grep'ing the whole file is not good either: AIX grep has a line
14607 # limit of 2048, but all sed's we know have understand at least 4000.
14608 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14609 dirpart=`$as_dirname -- "$mf" ||
14610 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14611 X"$mf" : 'X\(//\)[^/]' \| \
14612 X"$mf" : 'X\(//\)$' \| \
14613 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14614 $as_echo X"$mf" |
14615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14616 s//\1/
14617 q
14618 }
14619 /^X\(\/\/\)[^/].*/{
14620 s//\1/
14621 q
14622 }
14623 /^X\(\/\/\)$/{
14624 s//\1/
14625 q
14626 }
14627 /^X\(\/\).*/{
14628 s//\1/
14629 q
14630 }
14631 s/.*/./; q'`
14632 else
14633 continue
14634 fi
14635 # Extract the definition of DEPDIR, am__include, and am__quote
14636 # from the Makefile without running 'make'.
14637 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14638 test -z "$DEPDIR" && continue
14639 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14640 test -z "$am__include" && continue
14641 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14642 # Find all dependency output files, they are included files with
14643 # $(DEPDIR) in their names. We invoke sed twice because it is the
14644 # simplest approach to changing $(DEPDIR) to its actual value in the
14645 # expansion.
14646 for file in `sed -n "
14647 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14648 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14649 # Make sure the directory exists.
14650 test -f "$dirpart/$file" && continue
14651 fdir=`$as_dirname -- "$file" ||
14652 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14653 X"$file" : 'X\(//\)[^/]' \| \
14654 X"$file" : 'X\(//\)$' \| \
14655 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14656 $as_echo X"$file" |
14657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14658 s//\1/
14659 q
14660 }
14661 /^X\(\/\/\)[^/].*/{
14662 s//\1/
14663 q
14664 }
14665 /^X\(\/\/\)$/{
14666 s//\1/
14667 q
14668 }
14669 /^X\(\/\).*/{
14670 s//\1/
14671 q
14672 }
14673 s/.*/./; q'`
14674 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14675 # echo "creating $dirpart/$file"
14676 echo '# dummy' > "$dirpart/$file"
14677 done
14678 done
14679 }
14680 ;;
14681 "libtool":C)
14682
14683 # See if we are running on zsh, and set the options that allow our
14684 # commands through without removal of \ escapes.
14685 if test -n "${ZSH_VERSION+set}"; then
14686 setopt NO_GLOB_SUBST
14687 fi
14688
14689 cfgfile=${ofile}T
14690 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14691 $RM "$cfgfile"
14692
14693 cat <<_LT_EOF >> "$cfgfile"
14694 #! $SHELL
14695 # Generated automatically by $as_me ($PACKAGE) $VERSION
14696 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14697 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14698
14699 # Provide generalized library-building support services.
14700 # Written by Gordon Matzigkeit, 1996
14701
14702 # Copyright (C) 2014 Free Software Foundation, Inc.
14703 # This is free software; see the source for copying conditions. There is NO
14704 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14705
14706 # GNU Libtool is free software; you can redistribute it and/or modify
14707 # it under the terms of the GNU General Public License as published by
14708 # the Free Software Foundation; either version 2 of of the License, or
14709 # (at your option) any later version.
14710 #
14711 # As a special exception to the GNU General Public License, if you
14712 # distribute this file as part of a program or library that is built
14713 # using GNU Libtool, you may include this file under the same
14714 # distribution terms that you use for the rest of that program.
14715 #
14716 # GNU Libtool is distributed in the hope that it will be useful, but
14717 # WITHOUT ANY WARRANTY; without even the implied warranty of
14718 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14719 # GNU General Public License for more details.
14720 #
14721 # You should have received a copy of the GNU General Public License
14722 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14723
14724
14725 # The names of the tagged configurations supported by this script.
14726 available_tags=''
14727
14728 # Configured defaults for sys_lib_dlsearch_path munging.
14729 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14730
14731 # ### BEGIN LIBTOOL CONFIG
14732
14733 # Which release of libtool.m4 was used?
14734 macro_version=$macro_version
14735 macro_revision=$macro_revision
14736
14737 # Whether or not to build shared libraries.
14738 build_libtool_libs=$enable_shared
14739
14740 # Whether or not to build static libraries.
14741 build_old_libs=$enable_static
14742
14743 # What type of objects to build.
14744 pic_mode=$pic_mode
14745
14746 # Whether or not to optimize for fast installation.
14747 fast_install=$enable_fast_install
14748
14749 # Shared archive member basename,for filename based shared library versioning on AIX.
14750 shared_archive_member_spec=$shared_archive_member_spec
14751
14752 # Shell to use when invoking shell scripts.
14753 SHELL=$lt_SHELL
14754
14755 # An echo program that protects backslashes.
14756 ECHO=$lt_ECHO
14757
14758 # The PATH separator for the build system.
14759 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14760
14761 # The host system.
14762 host_alias=$host_alias
14763 host=$host
14764 host_os=$host_os
14765
14766 # The build system.
14767 build_alias=$build_alias
14768 build=$build
14769 build_os=$build_os
14770
14771 # A sed program that does not truncate output.
14772 SED=$lt_SED
14773
14774 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14775 Xsed="\$SED -e 1s/^X//"
14776
14777 # A grep program that handles long lines.
14778 GREP=$lt_GREP
14779
14780 # An ERE matcher.
14781 EGREP=$lt_EGREP
14782
14783 # A literal string matcher.
14784 FGREP=$lt_FGREP
14785
14786 # A BSD- or MS-compatible name lister.
14787 NM=$lt_NM
14788
14789 # Whether we need soft or hard links.
14790 LN_S=$lt_LN_S
14791
14792 # What is the maximum length of a command?
14793 max_cmd_len=$max_cmd_len
14794
14795 # Object file suffix (normally "o").
14796 objext=$ac_objext
14797
14798 # Executable file suffix (normally "").
14799 exeext=$exeext
14800
14801 # whether the shell understands "unset".
14802 lt_unset=$lt_unset
14803
14804 # turn spaces into newlines.
14805 SP2NL=$lt_lt_SP2NL
14806
14807 # turn newlines into spaces.
14808 NL2SP=$lt_lt_NL2SP
14809
14810 # convert \$build file names to \$host format.
14811 to_host_file_cmd=$lt_cv_to_host_file_cmd
14812
14813 # convert \$build files to toolchain format.
14814 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14815
14816 # An object symbol dumper.
14817 OBJDUMP=$lt_OBJDUMP
14818
14819 # Method to check whether dependent libraries are shared objects.
14820 deplibs_check_method=$lt_deplibs_check_method
14821
14822 # Command to use when deplibs_check_method = "file_magic".
14823 file_magic_cmd=$lt_file_magic_cmd
14824
14825 # How to find potential files when deplibs_check_method = "file_magic".
14826 file_magic_glob=$lt_file_magic_glob
14827
14828 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14829 want_nocaseglob=$lt_want_nocaseglob
14830
14831 # DLL creation program.
14832 DLLTOOL=$lt_DLLTOOL
14833
14834 # Command to associate shared and link libraries.
14835 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14836
14837 # The archiver.
14838 AR=$lt_AR
14839
14840 # Flags to create an archive.
14841 AR_FLAGS=$lt_AR_FLAGS
14842
14843 # How to feed a file listing to the archiver.
14844 archiver_list_spec=$lt_archiver_list_spec
14845
14846 # A symbol stripping program.
14847 STRIP=$lt_STRIP
14848
14849 # Commands used to install an old-style archive.
14850 RANLIB=$lt_RANLIB
14851 old_postinstall_cmds=$lt_old_postinstall_cmds
14852 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14853
14854 # Whether to use a lock for old archive extraction.
14855 lock_old_archive_extraction=$lock_old_archive_extraction
14856
14857 # A C compiler.
14858 LTCC=$lt_CC
14859
14860 # LTCC compiler flags.
14861 LTCFLAGS=$lt_CFLAGS
14862
14863 # Take the output of nm and produce a listing of raw symbols and C names.
14864 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14865
14866 # Transform the output of nm in a proper C declaration.
14867 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14868
14869 # Transform the output of nm into a list of symbols to manually relocate.
14870 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14871
14872 # Transform the output of nm in a C name address pair.
14873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14874
14875 # Transform the output of nm in a C name address pair when lib prefix is needed.
14876 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14877
14878 # The name lister interface.
14879 nm_interface=$lt_lt_cv_nm_interface
14880
14881 # Specify filename containing input files for \$NM.
14882 nm_file_list_spec=$lt_nm_file_list_spec
14883
14884 # The root where to search for dependent libraries,and where our libraries should be installed.
14885 lt_sysroot=$lt_sysroot
14886
14887 # Command to truncate a binary pipe.
14888 lt_truncate_bin=$lt_lt_cv_truncate_bin
14889
14890 # The name of the directory that contains temporary libtool files.
14891 objdir=$objdir
14892
14893 # Used to examine libraries when file_magic_cmd begins with "file".
14894 MAGIC_CMD=$MAGIC_CMD
14895
14896 # Must we lock files when doing compilation?
14897 need_locks=$lt_need_locks
14898
14899 # Manifest tool.
14900 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14901
14902 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14903 DSYMUTIL=$lt_DSYMUTIL
14904
14905 # Tool to change global to local symbols on Mac OS X.
14906 NMEDIT=$lt_NMEDIT
14907
14908 # Tool to manipulate fat objects and archives on Mac OS X.
14909 LIPO=$lt_LIPO
14910
14911 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14912 OTOOL=$lt_OTOOL
14913
14914 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14915 OTOOL64=$lt_OTOOL64
14916
14917 # Old archive suffix (normally "a").
14918 libext=$libext
14919
14920 # Shared library suffix (normally ".so").
14921 shrext_cmds=$lt_shrext_cmds
14922
14923 # The commands to extract the exported symbol list from a shared archive.
14924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14925
14926 # Variables whose values should be saved in libtool wrapper scripts and
14927 # restored at link time.
14928 variables_saved_for_relink=$lt_variables_saved_for_relink
14929
14930 # Do we need the "lib" prefix for modules?
14931 need_lib_prefix=$need_lib_prefix
14932
14933 # Do we need a version for libraries?
14934 need_version=$need_version
14935
14936 # Library versioning type.
14937 version_type=$version_type
14938
14939 # Shared library runtime path variable.
14940 runpath_var=$runpath_var
14941
14942 # Shared library path variable.
14943 shlibpath_var=$shlibpath_var
14944
14945 # Is shlibpath searched before the hard-coded library search path?
14946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14947
14948 # Format of library name prefix.
14949 libname_spec=$lt_libname_spec
14950
14951 # List of archive names. First name is the real one, the rest are links.
14952 # The last name is the one that the linker finds with -lNAME
14953 library_names_spec=$lt_library_names_spec
14954
14955 # The coded name of the library, if different from the real name.
14956 soname_spec=$lt_soname_spec
14957
14958 # Permission mode override for installation of shared libraries.
14959 install_override_mode=$lt_install_override_mode
14960
14961 # Command to use after installation of a shared archive.
14962 postinstall_cmds=$lt_postinstall_cmds
14963
14964 # Command to use after uninstallation of a shared archive.
14965 postuninstall_cmds=$lt_postuninstall_cmds
14966
14967 # Commands used to finish a libtool library installation in a directory.
14968 finish_cmds=$lt_finish_cmds
14969
14970 # As "finish_cmds", except a single script fragment to be evaled but
14971 # not shown.
14972 finish_eval=$lt_finish_eval
14973
14974 # Whether we should hardcode library paths into libraries.
14975 hardcode_into_libs=$hardcode_into_libs
14976
14977 # Compile-time system search path for libraries.
14978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14979
14980 # Detected run-time system search path for libraries.
14981 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14982
14983 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14984 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14985
14986 # Whether dlopen is supported.
14987 dlopen_support=$enable_dlopen
14988
14989 # Whether dlopen of programs is supported.
14990 dlopen_self=$enable_dlopen_self
14991
14992 # Whether dlopen of statically linked programs is supported.
14993 dlopen_self_static=$enable_dlopen_self_static
14994
14995 # Commands to strip libraries.
14996 old_striplib=$lt_old_striplib
14997 striplib=$lt_striplib
14998
14999
15000 # The linker used to build libraries.
15001 LD=$lt_LD
15002
15003 # How to create reloadable object files.
15004 reload_flag=$lt_reload_flag
15005 reload_cmds=$lt_reload_cmds
15006
15007 # Commands used to build an old-style archive.
15008 old_archive_cmds=$lt_old_archive_cmds
15009
15010 # A language specific compiler.
15011 CC=$lt_compiler
15012
15013 # Is the compiler the GNU compiler?
15014 with_gcc=$GCC
15015
15016 # Compiler flag to turn off builtin functions.
15017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15018
15019 # Additional compiler flags for building library objects.
15020 pic_flag=$lt_lt_prog_compiler_pic
15021
15022 # How to pass a linker flag through the compiler.
15023 wl=$lt_lt_prog_compiler_wl
15024
15025 # Compiler flag to prevent dynamic linking.
15026 link_static_flag=$lt_lt_prog_compiler_static
15027
15028 # Does compiler simultaneously support -c and -o options?
15029 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15030
15031 # Whether or not to add -lc for building shared libraries.
15032 build_libtool_need_lc=$archive_cmds_need_lc
15033
15034 # Whether or not to disallow shared libs when runtime libs are static.
15035 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15036
15037 # Compiler flag to allow reflexive dlopens.
15038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15039
15040 # Compiler flag to generate shared objects directly from archives.
15041 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15042
15043 # Whether the compiler copes with passing no objects directly.
15044 compiler_needs_object=$lt_compiler_needs_object
15045
15046 # Create an old-style archive from a shared archive.
15047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15048
15049 # Create a temporary old-style archive to link instead of a shared archive.
15050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15051
15052 # Commands used to build a shared archive.
15053 archive_cmds=$lt_archive_cmds
15054 archive_expsym_cmds=$lt_archive_expsym_cmds
15055
15056 # Commands used to build a loadable module if different from building
15057 # a shared archive.
15058 module_cmds=$lt_module_cmds
15059 module_expsym_cmds=$lt_module_expsym_cmds
15060
15061 # Whether we are building with GNU ld or not.
15062 with_gnu_ld=$lt_with_gnu_ld
15063
15064 # Flag that allows shared libraries with undefined symbols to be built.
15065 allow_undefined_flag=$lt_allow_undefined_flag
15066
15067 # Flag that enforces no undefined symbols.
15068 no_undefined_flag=$lt_no_undefined_flag
15069
15070 # Flag to hardcode \$libdir into a binary during linking.
15071 # This must work even if \$libdir does not exist
15072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15073
15074 # Whether we need a single "-rpath" flag with a separated argument.
15075 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15076
15077 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15078 # DIR into the resulting binary.
15079 hardcode_direct=$hardcode_direct
15080
15081 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15082 # DIR into the resulting binary and the resulting library dependency is
15083 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15084 # library is relocated.
15085 hardcode_direct_absolute=$hardcode_direct_absolute
15086
15087 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15088 # into the resulting binary.
15089 hardcode_minus_L=$hardcode_minus_L
15090
15091 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15092 # into the resulting binary.
15093 hardcode_shlibpath_var=$hardcode_shlibpath_var
15094
15095 # Set to "yes" if building a shared library automatically hardcodes DIR
15096 # into the library and all subsequent libraries and executables linked
15097 # against it.
15098 hardcode_automatic=$hardcode_automatic
15099
15100 # Set to yes if linker adds runtime paths of dependent libraries
15101 # to runtime path list.
15102 inherit_rpath=$inherit_rpath
15103
15104 # Whether libtool must link a program against all its dependency libraries.
15105 link_all_deplibs=$link_all_deplibs
15106
15107 # Set to "yes" if exported symbols are required.
15108 always_export_symbols=$always_export_symbols
15109
15110 # The commands to list exported symbols.
15111 export_symbols_cmds=$lt_export_symbols_cmds
15112
15113 # Symbols that should not be listed in the preloaded symbols.
15114 exclude_expsyms=$lt_exclude_expsyms
15115
15116 # Symbols that must always be exported.
15117 include_expsyms=$lt_include_expsyms
15118
15119 # Commands necessary for linking programs (against libraries) with templates.
15120 prelink_cmds=$lt_prelink_cmds
15121
15122 # Commands necessary for finishing linking programs.
15123 postlink_cmds=$lt_postlink_cmds
15124
15125 # Specify filename containing input files.
15126 file_list_spec=$lt_file_list_spec
15127
15128 # How to hardcode a shared library path into an executable.
15129 hardcode_action=$hardcode_action
15130
15131 # ### END LIBTOOL CONFIG
15132
15133 _LT_EOF
15134
15135 cat <<'_LT_EOF' >> "$cfgfile"
15136
15137 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15138
15139 # func_munge_path_list VARIABLE PATH
15140 # -----------------------------------
15141 # VARIABLE is name of variable containing _space_ separated list of
15142 # directories to be munged by the contents of PATH, which is string
15143 # having a format:
15144 # "DIR[:DIR]:"
15145 # string "DIR[ DIR]" will be prepended to VARIABLE
15146 # ":DIR[:DIR]"
15147 # string "DIR[ DIR]" will be appended to VARIABLE
15148 # "DIRP[:DIRP]::[DIRA:]DIRA"
15149 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15150 # "DIRA[ DIRA]" will be appended to VARIABLE
15151 # "DIR[:DIR]"
15152 # VARIABLE will be replaced by "DIR[ DIR]"
15153 func_munge_path_list ()
15154 {
15155 case x$2 in
15156 x)
15157 ;;
15158 *:)
15159 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15160 ;;
15161 x:*)
15162 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15163 ;;
15164 *::*)
15165 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15166 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15167 ;;
15168 *)
15169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15170 ;;
15171 esac
15172 }
15173
15174
15175 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15176 func_cc_basename ()
15177 {
15178 for cc_temp in $*""; do
15179 case $cc_temp in
15180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15182 \-*) ;;
15183 *) break;;
15184 esac
15185 done
15186 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15187 }
15188
15189
15190 # ### END FUNCTIONS SHARED WITH CONFIGURE
15191
15192 _LT_EOF
15193
15194 case $host_os in
15195 aix3*)
15196 cat <<\_LT_EOF >> "$cfgfile"
15197 # AIX sometimes has problems with the GCC collect2 program. For some
15198 # reason, if we set the COLLECT_NAMES environment variable, the problems
15199 # vanish in a puff of smoke.
15200 if test set != "${COLLECT_NAMES+set}"; then
15201 COLLECT_NAMES=
15202 export COLLECT_NAMES
15203 fi
15204 _LT_EOF
15205 ;;
15206 esac
15207
15208
15209 ltmain=$ac_aux_dir/ltmain.sh
15210
15211
15212 # We use sed instead of cat because bash on DJGPP gets confused if
15213 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15214 # text mode, it properly converts lines to CR/LF. This bash problem
15215 # is reportedly fixed, but why not run on old versions too?
15216 sed '$q' "$ltmain" >> "$cfgfile" \
15217 || (rm -f "$cfgfile"; exit 1)
15218
15219 mv -f "$cfgfile" "$ofile" ||
15220 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15221 chmod +x "$ofile"
15222
15223 ;;
15224
15225 esac
15226 done # for ac_tag
15227
15228
15229 as_fn_exit 0
15230 _ACEOF
15231 ac_clean_files=$ac_clean_files_save
15232
15233 test $ac_write_fail = 0 ||
15234 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15235
15236
15237 # configure is writing to config.log, and then calls config.status.
15238 # config.status does its own redirection, appending to config.log.
15239 # Unfortunately, on DOS this fails, as config.log is still kept open
15240 # by configure, so config.status won't be able to write to it; its
15241 # output is simply discarded. So we exec the FD to /dev/null,
15242 # effectively closing config.log, so it can be properly (re)opened and
15243 # appended to by config.status. When coming back to configure, we
15244 # need to make the FD available again.
15245 if test "$no_create" != yes; then
15246 ac_cs_success=:
15247 ac_config_status_args=
15248 test "$silent" = yes &&
15249 ac_config_status_args="$ac_config_status_args --quiet"
15250 exec 5>/dev/null
15251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15252 exec 5>>config.log
15253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15254 # would make configure fail if this is the last instruction.
15255 $ac_cs_success || as_fn_exit 1
15256 fi
15257 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15259 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15260 fi
15261