Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / sntp / configure
blob1bcdaf7abcc8c73a8c3e5332d4d245322626cf4f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
533 case X$ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 esac
540 echo=${ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $echo works!
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<EOF
561 exit 0
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
574 echo_test_string=`eval $cmd` &&
575 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
576 then
577 break
579 done
582 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
586 else
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
595 IFS="$lt_save_ifs"
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
600 echo="$dir/echo"
601 break
603 done
604 IFS="$lt_save_ifs"
606 if test "X$echo" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
612 echo='print -r'
613 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
619 export CONFIG_SHELL
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 else
622 # Try using printf.
623 echo='printf %s\n'
624 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 # Cool, printf works
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 export CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
636 export SHELL
637 echo="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 echo="$CONFIG_SHELL $0 --fallback-echo"
643 else
644 # maybe with a smaller string...
645 prev=:
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
649 then
650 break
652 prev="$cmd"
653 done
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 else
660 # Oops. We lost completely, so just stick with echo.
661 echo=echo
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 ECHO=$echo
672 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 test -n "$DJDIR" || exec 7<&0 </dev/null
680 exec 6>&1
682 # Name of the host.
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688 # Initializations.
690 ac_default_prefix=/usr/local
691 ac_clean_files=
692 ac_config_libobj_dir=.
693 LIBOBJS=
694 cross_compiling=no
695 subdirs=
696 MFLAGS=
697 MAKEFLAGS=
699 # Identity of this package.
700 PACKAGE_NAME=
701 PACKAGE_TARNAME=
702 PACKAGE_VERSION=
703 PACKAGE_STRING=
704 PACKAGE_BUGREPORT=
705 PACKAGE_URL=
707 ac_unique_file="main.c"
708 ac_unique_file="header.h"
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 # include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 # include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
745 ac_subst_vars='am__EXEEXT_FALSE
746 am__EXEEXT_TRUE
747 LTLIBOBJS
748 LIBOBJS
749 BINSUBDIR
750 HAVE_INLINE
751 LIBOPTS_CFLAGS
752 LIBOPTS_LDADD
753 NEED_LIBOPTS_FALSE
754 NEED_LIBOPTS_TRUE
755 INSTALL_LIBOPTS_FALSE
756 INSTALL_LIBOPTS_TRUE
757 LIBOPTS_DIR
758 LIBTOOL
760 RANLIB
762 ECHO
763 LN_S
764 EGREP
765 GREP
766 am__fastdepCC_FALSE
767 am__fastdepCC_TRUE
768 CCDEPMODE
769 AMDEPBACKSLASH
770 AMDEP_FALSE
771 AMDEP_TRUE
772 am__quote
773 am__include
774 DEPDIR
775 OBJEXT
776 EXEEXT
777 ac_ct_CC
778 CPPFLAGS
779 LDFLAGS
780 CFLAGS
782 host_os
783 host_vendor
784 host_cpu
785 host
786 build_os
787 build_vendor
788 build_cpu
789 build
790 am__untar
791 am__tar
792 AMTAR
793 am__leading_dot
794 SET_MAKE
796 mkdir_p
797 MKDIR_P
798 INSTALL_STRIP_PROGRAM
799 STRIP
800 install_sh
801 MAKEINFO
802 AUTOHEADER
803 AUTOMAKE
804 AUTOCONF
805 ACLOCAL
806 VERSION
807 PACKAGE
808 CYGPATH_W
809 am__isrc
810 INSTALL_DATA
811 INSTALL_SCRIPT
812 INSTALL_PROGRAM
813 target_alias
814 host_alias
815 build_alias
816 LIBS
817 ECHO_T
818 ECHO_N
819 ECHO_C
820 DEFS
821 mandir
822 localedir
823 libdir
824 psdir
825 pdfdir
826 dvidir
827 htmldir
828 infodir
829 docdir
830 oldincludedir
831 includedir
832 localstatedir
833 sharedstatedir
834 sysconfdir
835 datadir
836 datarootdir
837 libexecdir
838 sbindir
839 bindir
840 program_transform_name
841 prefix
842 exec_prefix
843 PACKAGE_URL
844 PACKAGE_BUGREPORT
845 PACKAGE_STRING
846 PACKAGE_VERSION
847 PACKAGE_TARNAME
848 PACKAGE_NAME
849 PATH_SEPARATOR
850 SHELL'
851 ac_subst_files=''
852 ac_user_opts='
853 enable_option_checking
854 enable_dependency_tracking
855 enable_shared
856 enable_static
857 enable_fast_install
858 with_gnu_ld
859 enable_libtool_lock
860 with_pic
861 with_tags
862 enable_local_libopts
863 enable_libopts_install
864 with_autoopts_config
865 with_regex_header
866 with_libregex
867 with_libregex_cflags
868 with_libregex_libs
869 enable_optional_args
870 with_binsubdir
872 ac_precious_vars='build_alias
873 host_alias
874 target_alias
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 CPP'
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 ac_unrecognized_opts=
887 ac_unrecognized_sep=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
890 cache_file=/dev/null
891 exec_prefix=NONE
892 no_create=
893 no_recursion=
894 prefix=NONE
895 program_prefix=NONE
896 program_suffix=NONE
897 program_transform_name=s,x,x,
898 silent=
899 site=
900 srcdir=
901 verbose=
902 x_includes=NONE
903 x_libraries=NONE
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE}'
922 infodir='${datarootdir}/info'
923 htmldir='${docdir}'
924 dvidir='${docdir}'
925 pdfdir='${docdir}'
926 psdir='${docdir}'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
931 ac_prev=
932 ac_dashdash=
933 for ac_option
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\$ac_option
938 ac_prev=
939 continue
942 case $ac_option in
943 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 *) ac_optarg=yes ;;
945 esac
947 # Accept the important Cygnus configure options, so we can diagnose typos.
949 case $ac_dashdash$ac_option in
951 ac_dashdash=yes ;;
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 bindir=$ac_optarg ;;
958 -build | --build | --buil | --bui | --bu)
959 ac_prev=build_alias ;;
960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961 build_alias=$ac_optarg ;;
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968 cache_file=$ac_optarg ;;
970 --config-cache | -C)
971 cache_file=config.cache ;;
973 -datadir | --datadir | --datadi | --datad)
974 ac_prev=datadir ;;
975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
976 datadir=$ac_optarg ;;
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
985 -disable-* | --disable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=no ;;
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1011 -enable-* | --enable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=\$ac_optarg ;;
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1215 -with-* | --with-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=\$ac_optarg ;;
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=no ;;
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1265 -*) as_fn_error "unrecognized option: \`$ac_option'
1266 Try \`$0 --help' for more information."
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 case $ac_envvar in #(
1273 '' | [0-9]* | *[!_$as_cr_alnum]* )
1274 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1275 esac
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1280 # FIXME: should be removed in autoconf 3.0.
1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 esac
1288 done
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 as_fn_error "missing argument to $ac_option"
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
1298 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 esac
1303 # Check all directory arguments for consistency.
1304 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
1317 case $ac_val in
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 esac
1321 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1322 done
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1327 build=$build_alias
1328 host=$host_alias
1329 target=$target_alias
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1336 If a cross compiler is detected then cross compile mode will be used." >&2
1337 elif test "x$build_alias" != "x$host_alias"; then
1338 cross_compiling=yes
1342 ac_tool_prefix=
1343 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345 test "$silent" = yes && exec 6>/dev/null
1348 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di=`ls -di .` &&
1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351 as_fn_error "working directory cannot be determined"
1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353 as_fn_error "pwd does not report name of working directory"
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$as_myself" ||
1361 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$as_myself" : 'X\(//\)[^/]' \| \
1363 X"$as_myself" : 'X\(//\)$' \| \
1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365 $as_echo X"$as_myself" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1374 /^X\(\/\/\)$/{
1375 s//\1/
1378 /^X\(\/\).*/{
1379 s//\1/
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1387 else
1388 ac_srcdir_defaulted=no
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 ac_abs_confdir=`(
1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1397 pwd)`
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 srcdir=.
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1405 case $srcdir in
1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 esac
1408 for ac_var in $ac_precious_vars; do
1409 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_${ac_var}_value=\$${ac_var}
1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 done
1416 # Report the --help message.
1418 if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1421 cat <<_ACEOF
1422 \`configure' configures this package to adapt to many kinds of systems.
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE. See below for descriptions of some of the useful variables.
1429 Defaults for the options are specified in brackets.
1431 Configuration:
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442 Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 [PREFIX]
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1453 For better control, use the options below.
1455 Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1475 _ACEOF
1477 cat <<\_ACEOF
1479 Program names:
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1490 if test -n "$ac_init_help"; then
1492 cat <<\_ACEOF
1494 Optional Features:
1495 --disable-option-checking ignore unrecognized --enable/--with options
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --disable-dependency-tracking speeds up one-time build
1499 --enable-dependency-tracking do not reject slow dependency extractors
1500 --enable-shared[=PKGS] build shared libraries [default=no]
1501 --enable-static[=PKGS] build static libraries [default=yes]
1502 --enable-fast-install[=PKGS]
1503 optimize for fast installation [default=yes]
1504 --disable-libtool-lock avoid locking (might break parallel builds)
1505 --enable-local-libopts Force using the supplied libopts tearoff code
1506 --disable-libopts-install
1507 Do not install libopts with client installation
1508 --disable-optional-args not wanting optional option args
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1514 --with-pic try to use only PIC/non-PIC objects [default=use
1515 both]
1516 --with-tags[=TAGS] include additional configurations [automatic]
1517 --with-autoopts-config specify the config-info script
1518 --with-regex-header a reg expr header is specified
1519 --with-libregex libregex installation prefix
1520 --with-libregex-cflags libregex compile flags
1521 --with-libregex-libs libregex link command arguments
1522 --with-binsubdir bin ={bin,sbin}
1524 Some influential environment variables:
1525 CC C compiler command
1526 CFLAGS C compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir>
1532 CPP C preprocessor
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1537 Report bugs to the package provider.
1538 _ACEOF
1539 ac_status=$?
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1590 else
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1594 done
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599 cat <<\_ACEOF
1600 configure
1601 generated by GNU Autoconf 2.65
1603 Copyright (C) 2009 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606 _ACEOF
1607 exit
1610 ## ------------------------ ##
1611 ## Autoconf initialization. ##
1612 ## ------------------------ ##
1614 # ac_fn_c_try_compile LINENO
1615 # --------------------------
1616 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_compile ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext
1621 if { { ac_try="$ac_compile"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_compile") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest.$ac_objext; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1645 ac_retval=1
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_compile
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_link ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest$ac_exeext
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 $as_test_x conftest$ac_exeext
1680 }; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1686 ac_retval=1
1688 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1689 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1690 # interfere with the next link command; also delete a directory that is
1691 # left behind by Apple's compiler. We do this before executing the actions.
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694 as_fn_set_status $ac_retval
1696 } # ac_fn_c_try_link
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_c_try_cpp ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } >/dev/null && {
1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=1
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 as_fn_set_status $ac_retval
1733 } # ac_fn_c_try_cpp
1735 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1738 # the include files in INCLUDES and setting the cache variable VAR
1739 # accordingly.
1740 ac_fn_c_check_header_mongrel ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1747 $as_echo_n "(cached) " >&6
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 else
1753 # Is the header compilable?
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1755 $as_echo_n "checking $2 usability... " >&6; }
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1759 #include <$2>
1760 _ACEOF
1761 if ac_fn_c_try_compile "$LINENO"; then :
1762 ac_header_compiler=yes
1763 else
1764 ac_header_compiler=no
1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1768 $as_echo "$ac_header_compiler" >&6; }
1770 # Is the header present?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1772 $as_echo_n "checking $2 presence... " >&6; }
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 #include <$2>
1776 _ACEOF
1777 if ac_fn_c_try_cpp "$LINENO"; then :
1778 ac_header_preproc=yes
1779 else
1780 ac_header_preproc=no
1782 rm -f conftest.err conftest.$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1784 $as_echo "$ac_header_preproc" >&6; }
1786 # So? What about this header?
1787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1788 yes:no: )
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1790 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 no:yes:* )
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1796 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1798 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1800 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1802 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806 esac
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 $as_echo_n "(cached) " >&6
1811 else
1812 eval "$3=\$ac_header_compiler"
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 } # ac_fn_c_check_header_mongrel
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1826 ac_fn_c_try_run ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_link"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>&5
1837 ac_status=$?
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840 { { case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_try") 2>&5
1847 ac_status=$?
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; }; }; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: program exited with status $ac_status" >&5
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=$ac_status
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860 as_fn_set_status $ac_retval
1862 } # ac_fn_c_try_run
1864 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists and can be compiled using the include files in
1867 # INCLUDES, setting the cache variable VAR accordingly.
1868 ac_fn_c_check_header_compile ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1874 $as_echo_n "(cached) " >&6
1875 else
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1879 #include <$2>
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882 eval "$3=yes"
1883 else
1884 eval "$3=no"
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 } # ac_fn_c_check_header_compile
1895 # ac_fn_c_check_func LINENO FUNC VAR
1896 # ----------------------------------
1897 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1898 ac_fn_c_check_func ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 $as_echo_n "(cached) " >&6
1905 else
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1910 #define $2 innocuous_$2
1912 /* System header to define __stub macros and hopefully few prototypes,
1913 which can conflict with char $2 (); below.
1914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1915 <limits.h> exists even on freestanding compilers. */
1917 #ifdef __STDC__
1918 # include <limits.h>
1919 #else
1920 # include <assert.h>
1921 #endif
1923 #undef $2
1925 /* Override any GCC internal prototype to avoid an error.
1926 Use char because int might match the return type of a GCC
1927 builtin and then its argument prototype would still apply. */
1928 #ifdef __cplusplus
1929 extern "C"
1930 #endif
1931 char $2 ();
1932 /* The GNU C library defines this for functions which it implements
1933 to always fail with ENOSYS. Some functions are actually named
1934 something starting with __ and the normal name is an alias. */
1935 #if defined __stub_$2 || defined __stub___$2
1936 choke me
1937 #endif
1940 main ()
1942 return $2 ();
1944 return 0;
1946 _ACEOF
1947 if ac_fn_c_try_link "$LINENO"; then :
1948 eval "$3=yes"
1949 else
1950 eval "$3=no"
1952 rm -f core conftest.err conftest.$ac_objext \
1953 conftest$ac_exeext conftest.$ac_ext
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 } # ac_fn_c_check_func
1962 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1963 # -------------------------------------------
1964 # Tests whether TYPE exists after having included INCLUDES, setting cache
1965 # variable VAR accordingly.
1966 ac_fn_c_check_type ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 eval "$3=no"
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1979 main ()
1981 if (sizeof ($2))
1982 return 0;
1984 return 0;
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1992 main ()
1994 if (sizeof (($2)))
1995 return 0;
1997 return 0;
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2002 else
2003 eval "$3=yes"
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 } # ac_fn_c_check_type
2016 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2017 # --------------------------------------------
2018 # Tries to find the compile-time value of EXPR in a program that includes
2019 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2020 # computed
2021 ac_fn_c_compute_int ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 if test "$cross_compiling" = yes; then
2025 # Depending upon the size, compute the lo and hi bounds.
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2032 static int test_array [1 - 2 * !(($2) >= 0)];
2033 test_array [0] = 0
2036 return 0;
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_lo=0 ac_mid=0
2041 while :; do
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2046 main ()
2048 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2049 test_array [0] = 0
2052 return 0;
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_hi=$ac_mid; break
2057 else
2058 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2059 if test $ac_lo -le $ac_mid; then
2060 ac_lo= ac_hi=
2061 break
2063 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 done
2067 else
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2072 main ()
2074 static int test_array [1 - 2 * !(($2) < 0)];
2075 test_array [0] = 0
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_hi=-1 ac_mid=-1
2083 while :; do
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2091 test_array [0] = 0
2094 return 0;
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_lo=$ac_mid; break
2099 else
2100 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2101 if test $ac_mid -le $ac_hi; then
2102 ac_lo= ac_hi=
2103 break
2105 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 done
2109 else
2110 ac_lo= ac_hi=
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 # Binary search between lo and hi bounds.
2116 while test "x$ac_lo" != "x$ac_hi"; do
2117 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2122 main ()
2124 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2125 test_array [0] = 0
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=$ac_mid
2133 else
2134 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 done
2138 case $ac_lo in #((
2139 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2140 '') ac_retval=1 ;;
2141 esac
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2146 static long int longval () { return $2; }
2147 static unsigned long int ulongval () { return $2; }
2148 #include <stdio.h>
2149 #include <stdlib.h>
2151 main ()
2154 FILE *f = fopen ("conftest.val", "w");
2155 if (! f)
2156 return 1;
2157 if (($2) < 0)
2159 long int i = longval ();
2160 if (i != ($2))
2161 return 1;
2162 fprintf (f, "%ld", i);
2164 else
2166 unsigned long int i = ulongval ();
2167 if (i != ($2))
2168 return 1;
2169 fprintf (f, "%lu", i);
2171 /* Do not output a trailing newline, as this causes \r\n confusion
2172 on some platforms. */
2173 return ferror (f) || fclose (f) != 0;
2176 return 0;
2178 _ACEOF
2179 if ac_fn_c_try_run "$LINENO"; then :
2180 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2181 else
2182 ac_retval=1
2184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2185 conftest.$ac_objext conftest.beam conftest.$ac_ext
2186 rm -f conftest.val
2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2190 as_fn_set_status $ac_retval
2192 } # ac_fn_c_compute_int
2193 cat >config.log <<_ACEOF
2194 This file contains any messages produced by compilers while
2195 running configure, to aid debugging if configure makes a mistake.
2197 It was created by $as_me, which was
2198 generated by GNU Autoconf 2.65. Invocation command line was
2200 $ $0 $@
2202 _ACEOF
2203 exec 5>>config.log
2205 cat <<_ASUNAME
2206 ## --------- ##
2207 ## Platform. ##
2208 ## --------- ##
2210 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2211 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2212 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2213 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2214 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2216 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2217 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2219 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2220 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2221 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2222 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2223 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2224 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2225 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2227 _ASUNAME
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 $as_echo "PATH: $as_dir"
2235 done
2236 IFS=$as_save_IFS
2238 } >&5
2240 cat >&5 <<_ACEOF
2243 ## ----------- ##
2244 ## Core tests. ##
2245 ## ----------- ##
2247 _ACEOF
2250 # Keep a trace of the command line.
2251 # Strip out --no-create and --no-recursion so they do not pile up.
2252 # Strip out --silent because we don't want to record it for future runs.
2253 # Also quote any args containing shell meta-characters.
2254 # Make two passes to allow for proper duplicate-argument suppression.
2255 ac_configure_args=
2256 ac_configure_args0=
2257 ac_configure_args1=
2258 ac_must_keep_next=false
2259 for ac_pass in 1 2
2261 for ac_arg
2263 case $ac_arg in
2264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2266 | -silent | --silent | --silen | --sile | --sil)
2267 continue ;;
2268 *\'*)
2269 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2270 esac
2271 case $ac_pass in
2272 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2274 as_fn_append ac_configure_args1 " '$ac_arg'"
2275 if test $ac_must_keep_next = true; then
2276 ac_must_keep_next=false # Got value, back to normal.
2277 else
2278 case $ac_arg in
2279 *=* | --config-cache | -C | -disable-* | --disable-* \
2280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2282 | -with-* | --with-* | -without-* | --without-* | --x)
2283 case "$ac_configure_args0 " in
2284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2285 esac
2287 -* ) ac_must_keep_next=true ;;
2288 esac
2290 as_fn_append ac_configure_args " '$ac_arg'"
2292 esac
2293 done
2294 done
2295 { ac_configure_args0=; unset ac_configure_args0;}
2296 { ac_configure_args1=; unset ac_configure_args1;}
2298 # When interrupted or exit'd, cleanup temporary files, and complete
2299 # config.log. We remove comments because anyway the quotes in there
2300 # would cause problems or look ugly.
2301 # WARNING: Use '\'' to represent an apostrophe within the trap.
2302 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2303 trap 'exit_status=$?
2304 # Save into config.log some information that might help in debugging.
2306 echo
2308 cat <<\_ASBOX
2309 ## ---------------- ##
2310 ## Cache variables. ##
2311 ## ---------------- ##
2312 _ASBOX
2313 echo
2314 # The following way of writing the cache mishandles newlines in values,
2316 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2317 eval ac_val=\$$ac_var
2318 case $ac_val in #(
2319 *${as_nl}*)
2320 case $ac_var in #(
2321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2322 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2323 esac
2324 case $ac_var in #(
2325 _ | IFS | as_nl) ;; #(
2326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2327 *) { eval $ac_var=; unset $ac_var;} ;;
2328 esac ;;
2329 esac
2330 done
2331 (set) 2>&1 |
2332 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2333 *${as_nl}ac_space=\ *)
2334 sed -n \
2335 "s/'\''/'\''\\\\'\'''\''/g;
2336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2337 ;; #(
2339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2341 esac |
2342 sort
2344 echo
2346 cat <<\_ASBOX
2347 ## ----------------- ##
2348 ## Output variables. ##
2349 ## ----------------- ##
2350 _ASBOX
2351 echo
2352 for ac_var in $ac_subst_vars
2354 eval ac_val=\$$ac_var
2355 case $ac_val in
2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2357 esac
2358 $as_echo "$ac_var='\''$ac_val'\''"
2359 done | sort
2360 echo
2362 if test -n "$ac_subst_files"; then
2363 cat <<\_ASBOX
2364 ## ------------------- ##
2365 ## File substitutions. ##
2366 ## ------------------- ##
2367 _ASBOX
2368 echo
2369 for ac_var in $ac_subst_files
2371 eval ac_val=\$$ac_var
2372 case $ac_val in
2373 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374 esac
2375 $as_echo "$ac_var='\''$ac_val'\''"
2376 done | sort
2377 echo
2380 if test -s confdefs.h; then
2381 cat <<\_ASBOX
2382 ## ----------- ##
2383 ## confdefs.h. ##
2384 ## ----------- ##
2385 _ASBOX
2386 echo
2387 cat confdefs.h
2388 echo
2390 test "$ac_signal" != 0 &&
2391 $as_echo "$as_me: caught signal $ac_signal"
2392 $as_echo "$as_me: exit $exit_status"
2393 } >&5
2394 rm -f core *.core core.conftest.* &&
2395 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2396 exit $exit_status
2398 for ac_signal in 1 2 13 15; do
2399 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2400 done
2401 ac_signal=0
2403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2404 rm -f -r conftest* confdefs.h
2406 $as_echo "/* confdefs.h */" > confdefs.h
2408 # Predefined preprocessor variables.
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_NAME "$PACKAGE_NAME"
2412 _ACEOF
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2416 _ACEOF
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2420 _ACEOF
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_STRING "$PACKAGE_STRING"
2424 _ACEOF
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2428 _ACEOF
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_URL "$PACKAGE_URL"
2432 _ACEOF
2435 # Let the site file select an alternate cache file if it wants to.
2436 # Prefer an explicitly selected file to automatically selected ones.
2437 ac_site_file1=NONE
2438 ac_site_file2=NONE
2439 if test -n "$CONFIG_SITE"; then
2440 ac_site_file1=$CONFIG_SITE
2441 elif test "x$prefix" != xNONE; then
2442 ac_site_file1=$prefix/share/config.site
2443 ac_site_file2=$prefix/etc/config.site
2444 else
2445 ac_site_file1=$ac_default_prefix/share/config.site
2446 ac_site_file2=$ac_default_prefix/etc/config.site
2448 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2450 test "x$ac_site_file" = xNONE && continue
2451 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2453 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2454 sed 's/^/| /' "$ac_site_file" >&5
2455 . "$ac_site_file"
2457 done
2459 if test -r "$cache_file"; then
2460 # Some versions of bash will fail to source /dev/null (special files
2461 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2462 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2464 $as_echo "$as_me: loading cache $cache_file" >&6;}
2465 case $cache_file in
2466 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2467 *) . "./$cache_file";;
2468 esac
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2472 $as_echo "$as_me: creating cache $cache_file" >&6;}
2473 >$cache_file
2476 # Check that the precious variables saved in the cache have kept the same
2477 # value.
2478 ac_cache_corrupted=false
2479 for ac_var in $ac_precious_vars; do
2480 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2481 eval ac_new_set=\$ac_env_${ac_var}_set
2482 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2483 eval ac_new_val=\$ac_env_${ac_var}_value
2484 case $ac_old_set,$ac_new_set in
2485 set,)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,set)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2491 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2492 ac_cache_corrupted=: ;;
2493 ,);;
2495 if test "x$ac_old_val" != "x$ac_new_val"; then
2496 # differences in whitespace do not lead to failure.
2497 ac_old_val_w=`echo x $ac_old_val`
2498 ac_new_val_w=`echo x $ac_new_val`
2499 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2501 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2502 ac_cache_corrupted=:
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2505 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2506 eval $ac_var=\$ac_old_val
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2509 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2511 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2512 fi;;
2513 esac
2514 # Pass precious variables to config.status.
2515 if test "$ac_new_set" = set; then
2516 case $ac_new_val in
2517 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2518 *) ac_arg=$ac_var=$ac_new_val ;;
2519 esac
2520 case " $ac_configure_args " in
2521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2522 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523 esac
2525 done
2526 if $ac_cache_corrupted; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2530 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2531 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2533 ## -------------------- ##
2534 ## Main body of script. ##
2535 ## -------------------- ##
2537 ac_ext=c
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 am__api_version='1.11'
2546 ac_aux_dir=
2547 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2548 for ac_t in install-sh install.sh shtool; do
2549 if test -f "$ac_dir/$ac_t"; then
2550 ac_aux_dir=$ac_dir
2551 ac_install_sh="$ac_aux_dir/$ac_t -c"
2552 break 2
2554 done
2555 done
2556 if test -z "$ac_aux_dir"; then
2557 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2560 # These three variables are undocumented and unsupported,
2561 # and are intended to be withdrawn in a future Autoconf release.
2562 # They can cause serious problems if a builder's source tree is in a directory
2563 # whose full name contains unusual characters.
2564 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2565 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2566 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2569 # Find a good install program. We prefer a C program (faster),
2570 # so one script is as good as another. But avoid the broken or
2571 # incompatible versions:
2572 # SysV /etc/install, /usr/sbin/install
2573 # SunOS /usr/etc/install
2574 # IRIX /sbin/install
2575 # AIX /bin/install
2576 # AmigaOS /C/install, which installs bootblocks on floppy discs
2577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2580 # OS/2's system install, which has a completely different semantic
2581 # ./install, which can be erroneously created by make from ./install.sh.
2582 # Reject install programs that cannot install multiple files.
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2584 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2585 if test -z "$INSTALL"; then
2586 if test "${ac_cv_path_install+set}" = set; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 # Account for people who put trailing slashes in PATH elements.
2595 case $as_dir/ in #((
2596 ./ | .// | /[cC]/* | \
2597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2599 /usr/ucb/* ) ;;
2601 # OSF1 and SCO ODT 3.0 have their own names for install.
2602 # Don't use installbsd from OSF since it installs stuff as root
2603 # by default.
2604 for ac_prog in ginstall scoinst install; do
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2607 if test $ac_prog = install &&
2608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # AIX install. It has an incompatible calling convention.
2611 elif test $ac_prog = install &&
2612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2613 # program-specific install script used by HP pwplus--don't use.
2615 else
2616 rm -rf conftest.one conftest.two conftest.dir
2617 echo one > conftest.one
2618 echo two > conftest.two
2619 mkdir conftest.dir
2620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2621 test -s conftest.one && test -s conftest.two &&
2622 test -s conftest.dir/conftest.one &&
2623 test -s conftest.dir/conftest.two
2624 then
2625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2626 break 3
2630 done
2631 done
2633 esac
2635 done
2636 IFS=$as_save_IFS
2638 rm -rf conftest.one conftest.two conftest.dir
2641 if test "${ac_cv_path_install+set}" = set; then
2642 INSTALL=$ac_cv_path_install
2643 else
2644 # As a last resort, use the slow shell script. Don't cache a
2645 # value for INSTALL within a source directory, because that will
2646 # break other packages using the cache if that directory is
2647 # removed, or if the value is a relative name.
2648 INSTALL=$ac_install_sh
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2652 $as_echo "$INSTALL" >&6; }
2654 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2655 # It thinks the first close brace ends the variable substitution.
2656 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2658 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2660 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2663 $as_echo_n "checking whether build environment is sane... " >&6; }
2664 # Just in case
2665 sleep 1
2666 echo timestamp > conftest.file
2667 # Reject unsafe characters in $srcdir or the absolute working directory
2668 # name. Accept space and tab only in the latter.
2669 am_lf='
2671 case `pwd` in
2672 *[\\\"\#\$\&\'\`$am_lf]*)
2673 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2674 esac
2675 case $srcdir in
2676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2677 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2678 esac
2680 # Do `set' in a subshell so we don't clobber the current shell's
2681 # arguments. Must try -L first in case configure is actually a
2682 # symlink; some systems play weird games with the mod time of symlinks
2683 # (eg FreeBSD returns the mod time of the symlink's containing
2684 # directory).
2685 if (
2686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2687 if test "$*" = "X"; then
2688 # -L didn't work.
2689 set X `ls -t "$srcdir/configure" conftest.file`
2691 rm -f conftest.file
2692 if test "$*" != "X $srcdir/configure conftest.file" \
2693 && test "$*" != "X conftest.file $srcdir/configure"; then
2695 # If neither matched, then we have a broken ls. This can happen
2696 # if, for instance, CONFIG_SHELL is bash and it inherits a
2697 # broken ls alias from the environment. This has actually
2698 # happened. Such a system could not be considered "sane".
2699 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2700 alias in your environment" "$LINENO" 5
2703 test "$2" = conftest.file
2705 then
2706 # Ok.
2708 else
2709 as_fn_error "newly created file is older than distributed files!
2710 Check your system clock" "$LINENO" 5
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2713 $as_echo "yes" >&6; }
2714 test "$program_prefix" != NONE &&
2715 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2716 # Use a double $ so make ignores it.
2717 test "$program_suffix" != NONE &&
2718 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2719 # Double any \ or $.
2720 # By default was `s,x,x', remove it if useless.
2721 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2722 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2724 # expand $ac_aux_dir to an absolute path
2725 am_aux_dir=`cd $ac_aux_dir && pwd`
2727 if test x"${MISSING+set}" != xset; then
2728 case $am_aux_dir in
2729 *\ * | *\ *)
2730 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2732 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2733 esac
2735 # Use eval to expand $SHELL
2736 if eval "$MISSING --run true"; then
2737 am_missing_run="$MISSING --run "
2738 else
2739 am_missing_run=
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2741 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2744 if test x"${install_sh}" != xset; then
2745 case $am_aux_dir in
2746 *\ * | *\ *)
2747 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2749 install_sh="\${SHELL} $am_aux_dir/install-sh"
2750 esac
2753 # Installed binaries are usually stripped using `strip' when the user
2754 # run `make install-strip'. However `strip' might not be the right
2755 # tool to use in cross-compilation environments, therefore Automake
2756 # will honor the `STRIP' environment variable to overrule this program.
2757 if test "$cross_compiling" != no; then
2758 if test -n "$ac_tool_prefix"; then
2759 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2760 set dummy ${ac_tool_prefix}strip; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if test "${ac_cv_prog_STRIP+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$STRIP"; then
2767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2780 done
2781 done
2782 IFS=$as_save_IFS
2786 STRIP=$ac_cv_prog_STRIP
2787 if test -n "$STRIP"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2789 $as_echo "$STRIP" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2797 if test -z "$ac_cv_prog_STRIP"; then
2798 ac_ct_STRIP=$STRIP
2799 # Extract the first word of "strip", so it can be a program name with args.
2800 set dummy strip; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$ac_ct_STRIP"; then
2807 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_ac_ct_STRIP="strip"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2820 done
2821 done
2822 IFS=$as_save_IFS
2826 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2827 if test -n "$ac_ct_STRIP"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2829 $as_echo "$ac_ct_STRIP" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2835 if test "x$ac_ct_STRIP" = x; then
2836 STRIP=":"
2837 else
2838 case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844 STRIP=$ac_ct_STRIP
2846 else
2847 STRIP="$ac_cv_prog_STRIP"
2851 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2854 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2855 if test -z "$MKDIR_P"; then
2856 if test "${ac_cv_path_mkdir+set}" = set; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_prog in mkdir gmkdir; do
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2867 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2868 'mkdir (GNU coreutils) '* | \
2869 'mkdir (coreutils) '* | \
2870 'mkdir (fileutils) '4.1*)
2871 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2872 break 3;;
2873 esac
2874 done
2875 done
2876 done
2877 IFS=$as_save_IFS
2881 test -d ./--version && rmdir ./--version
2882 if test "${ac_cv_path_mkdir+set}" = set; then
2883 MKDIR_P="$ac_cv_path_mkdir -p"
2884 else
2885 # As a last resort, use the slow shell script. Don't cache a
2886 # value for MKDIR_P within a source directory, because that will
2887 # break other packages using the cache if that directory is
2888 # removed, or if the value is a relative name.
2889 MKDIR_P="$ac_install_sh -d"
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2893 $as_echo "$MKDIR_P" >&6; }
2895 mkdir_p="$MKDIR_P"
2896 case $mkdir_p in
2897 [\\/$]* | ?:[\\/]*) ;;
2898 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2899 esac
2901 for ac_prog in gawk mawk nawk awk
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy $ac_prog; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_AWK+set}" = set; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$AWK"; then
2911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_AWK="$ac_prog"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2924 done
2925 done
2926 IFS=$as_save_IFS
2930 AWK=$ac_cv_prog_AWK
2931 if test -n "$AWK"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2933 $as_echo "$AWK" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2940 test -n "$AWK" && break
2941 done
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2944 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2945 set x ${MAKE-make}
2946 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2947 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 cat >conftest.make <<\_ACEOF
2951 SHELL = /bin/sh
2952 all:
2953 @echo '@@@%%%=$(MAKE)=@@@%%%'
2954 _ACEOF
2955 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2956 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2957 *@@@%%%=?*=@@@%%%*)
2958 eval ac_cv_prog_make_${ac_make}_set=yes;;
2960 eval ac_cv_prog_make_${ac_make}_set=no;;
2961 esac
2962 rm -f conftest.make
2964 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2966 $as_echo "yes" >&6; }
2967 SET_MAKE=
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 SET_MAKE="MAKE=${MAKE-make}"
2974 rm -rf .tst 2>/dev/null
2975 mkdir .tst 2>/dev/null
2976 if test -d .tst; then
2977 am__leading_dot=.
2978 else
2979 am__leading_dot=_
2981 rmdir .tst 2>/dev/null
2983 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2984 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2985 # is not polluted with repeated "-I."
2986 am__isrc=' -I$(srcdir)'
2987 # test to see if srcdir already configured
2988 if test -f $srcdir/config.status; then
2989 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2993 # test whether we have cygpath
2994 if test -z "$CYGPATH_W"; then
2995 if (cygpath --version) >/dev/null 2>/dev/null; then
2996 CYGPATH_W='cygpath -w'
2997 else
2998 CYGPATH_W=echo
3003 # Define the identity of the package.
3004 PACKAGE=msntp
3005 VERSION=1.6
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE "$PACKAGE"
3010 _ACEOF
3013 cat >>confdefs.h <<_ACEOF
3014 #define VERSION "$VERSION"
3015 _ACEOF
3017 # Some tools Automake needs.
3019 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3022 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3025 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3028 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3031 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3033 # We need awk for the "check" target. The system "awk" is bad on
3034 # some platforms.
3035 # Always define AMTAR for backward compatibility.
3037 AMTAR=${AMTAR-"${am_missing_run}tar"}
3039 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3046 # Make sure we can run config.sub.
3047 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3048 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3051 $as_echo_n "checking build system type... " >&6; }
3052 if test "${ac_cv_build+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 ac_build_alias=$build_alias
3056 test "x$ac_build_alias" = x &&
3057 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3058 test "x$ac_build_alias" = x &&
3059 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3060 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3061 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3065 $as_echo "$ac_cv_build" >&6; }
3066 case $ac_cv_build in
3067 *-*-*) ;;
3068 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3069 esac
3070 build=$ac_cv_build
3071 ac_save_IFS=$IFS; IFS='-'
3072 set x $ac_cv_build
3073 shift
3074 build_cpu=$1
3075 build_vendor=$2
3076 shift; shift
3077 # Remember, the first character of IFS is used to create $*,
3078 # except with old shells:
3079 build_os=$*
3080 IFS=$ac_save_IFS
3081 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3085 $as_echo_n "checking host system type... " >&6; }
3086 if test "${ac_cv_host+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test "x$host_alias" = x; then
3090 ac_cv_host=$ac_cv_build
3091 else
3092 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3093 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3098 $as_echo "$ac_cv_host" >&6; }
3099 case $ac_cv_host in
3100 *-*-*) ;;
3101 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3102 esac
3103 host=$ac_cv_host
3104 ac_save_IFS=$IFS; IFS='-'
3105 set x $ac_cv_host
3106 shift
3107 host_cpu=$1
3108 host_vendor=$2
3109 shift; shift
3110 # Remember, the first character of IFS is used to create $*,
3111 # except with old shells:
3112 host_os=$*
3113 IFS=$ac_save_IFS
3114 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3117 ac_config_headers="$ac_config_headers config.h"
3120 # Checks for programs.
3121 ac_ext=c
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if test "${ac_cv_prog_CC+set}" = set; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC="$CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3148 done
3149 done
3150 IFS=$as_save_IFS
3154 CC=$ac_cv_prog_CC
3155 if test -n "$CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3157 $as_echo "$CC" >&6; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3165 if test -z "$ac_cv_prog_CC"; then
3166 ac_ct_CC=$CC
3167 # Extract the first word of "gcc", so it can be a program name with args.
3168 set dummy gcc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$ac_ct_CC"; then
3175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 ac_cv_prog_ac_ct_CC="gcc"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3188 done
3189 done
3190 IFS=$as_save_IFS
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197 $as_echo "$ac_ct_CC" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3203 if test "x$ac_ct_CC" = x; then
3204 CC=""
3205 else
3206 case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CC=$ac_ct_CC
3214 else
3215 CC="$ac_cv_prog_CC"
3218 if test -z "$CC"; then
3219 if test -n "$ac_tool_prefix"; then
3220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3221 set dummy ${ac_tool_prefix}cc; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_CC+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_CC="${ac_tool_prefix}cc"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3241 done
3242 done
3243 IFS=$as_save_IFS
3247 CC=$ac_cv_prog_CC
3248 if test -n "$CC"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3250 $as_echo "$CC" >&6; }
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3259 if test -z "$CC"; then
3260 # Extract the first word of "cc", so it can be a program name with args.
3261 set dummy cc; ac_word=$2
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 $as_echo_n "checking for $ac_word... " >&6; }
3264 if test "${ac_cv_prog_CC+set}" = set; then :
3265 $as_echo_n "(cached) " >&6
3266 else
3267 if test -n "$CC"; then
3268 ac_cv_prog_CC="$CC" # Let the user override the test.
3269 else
3270 ac_prog_rejected=no
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3279 ac_prog_rejected=yes
3280 continue
3282 ac_cv_prog_CC="cc"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3286 done
3287 done
3288 IFS=$as_save_IFS
3290 if test $ac_prog_rejected = yes; then
3291 # We found a bogon in the path, so make sure we never use it.
3292 set dummy $ac_cv_prog_CC
3293 shift
3294 if test $# != 0; then
3295 # We chose a different compiler from the bogus one.
3296 # However, it has the same basename, so the bogon will be chosen
3297 # first if we set CC to just the basename; use the full file name.
3298 shift
3299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3304 CC=$ac_cv_prog_CC
3305 if test -n "$CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3315 if test -z "$CC"; then
3316 if test -n "$ac_tool_prefix"; then
3317 for ac_prog in cl.exe
3319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if test "${ac_cv_prog_CC+set}" = set; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 else
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3340 done
3341 done
3342 IFS=$as_save_IFS
3346 CC=$ac_cv_prog_CC
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3356 test -n "$CC" && break
3357 done
3359 if test -z "$CC"; then
3360 ac_ct_CC=$CC
3361 for ac_prog in cl.exe
3363 # Extract the first word of "$ac_prog", so it can be a program name with args.
3364 set dummy $ac_prog; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$ac_ct_CC"; then
3371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_ac_ct_CC="$ac_prog"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3384 done
3385 done
3386 IFS=$as_save_IFS
3390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3391 if test -n "$ac_ct_CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3393 $as_echo "$ac_ct_CC" >&6; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3400 test -n "$ac_ct_CC" && break
3401 done
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 CC=$ac_ct_CC
3419 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error "no acceptable C compiler found in \$PATH
3422 See \`config.log' for more details." "$LINENO" 5; }
3424 # Provide some information about the compiler.
3425 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3426 set X $ac_compile
3427 ac_compiler=$2
3428 for ac_option in --version -v -V -qversion; do
3429 { { ac_try="$ac_compiler $ac_option >&5"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3437 ac_status=$?
3438 if test -s conftest.err; then
3439 sed '10a\
3440 ... rest of stderr output deleted ...
3441 10q' conftest.err >conftest.er1
3442 cat conftest.er1 >&5
3444 rm -f conftest.er1 conftest.err
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }
3447 done
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3453 main ()
3457 return 0;
3459 _ACEOF
3460 ac_clean_files_save=$ac_clean_files
3461 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3462 # Try to create an executable without -o first, disregard a.out.
3463 # It will help us diagnose broken compilers, and finding out an intuition
3464 # of exeext.
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3466 $as_echo_n "checking whether the C compiler works... " >&6; }
3467 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3469 # The possible output files:
3470 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3472 ac_rmfiles=
3473 for ac_file in $ac_files
3475 case $ac_file in
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3478 esac
3479 done
3480 rm -f $ac_rmfiles
3482 if { { ac_try="$ac_link_default"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_link_default") 2>&5
3490 ac_status=$?
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }; then :
3493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3495 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3496 # so that the user can short-circuit this test for compilers unknown to
3497 # Autoconf.
3498 for ac_file in $ac_files ''
3500 test -f "$ac_file" || continue
3501 case $ac_file in
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3504 [ab].out )
3505 # We found the default executable, but exeext='' is most
3506 # certainly right.
3507 break;;
3508 *.* )
3509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3510 then :; else
3511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3513 # We set ac_cv_exeext here because the later test for it is not
3514 # safe: cross compilers may not add the suffix if given an `-o'
3515 # argument, so we may need to know it at that point already.
3516 # Even if this section looks crufty: it has the advantage of
3517 # actually working.
3518 break;;
3520 break;;
3521 esac
3522 done
3523 test "$ac_cv_exeext" = no && ac_cv_exeext=
3525 else
3526 ac_file=''
3528 if test -z "$ac_file"; then :
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3531 $as_echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 { as_fn_set_status 77
3537 as_fn_error "C compiler cannot create executables
3538 See \`config.log' for more details." "$LINENO" 5; }; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541 $as_echo "yes" >&6; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3544 $as_echo_n "checking for C compiler default output file name... " >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3546 $as_echo "$ac_file" >&6; }
3547 ac_exeext=$ac_cv_exeext
3549 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3550 ac_clean_files=$ac_clean_files_save
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3552 $as_echo_n "checking for suffix of executables... " >&6; }
3553 if { { ac_try="$ac_link"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560 (eval "$ac_link") 2>&5
3561 ac_status=$?
3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563 test $ac_status = 0; }; then :
3564 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3565 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3566 # work properly (i.e., refer to `conftest.exe'), while it won't with
3567 # `rm'.
3568 for ac_file in conftest.exe conftest conftest.*; do
3569 test -f "$ac_file" || continue
3570 case $ac_file in
3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3573 break;;
3574 * ) break;;
3575 esac
3576 done
3577 else
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error "cannot compute suffix of executables: cannot compile and link
3581 See \`config.log' for more details." "$LINENO" 5; }
3583 rm -f conftest conftest$ac_cv_exeext
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3585 $as_echo "$ac_cv_exeext" >&6; }
3587 rm -f conftest.$ac_ext
3588 EXEEXT=$ac_cv_exeext
3589 ac_exeext=$EXEEXT
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 #include <stdio.h>
3594 main ()
3596 FILE *f = fopen ("conftest.out", "w");
3597 return ferror (f) || fclose (f) != 0;
3600 return 0;
3602 _ACEOF
3603 ac_clean_files="$ac_clean_files conftest.out"
3604 # Check that the compiler produces executables we can run. If not, either
3605 # the compiler is broken, or we cross compile.
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3607 $as_echo_n "checking whether we are cross compiling... " >&6; }
3608 if test "$cross_compiling" != yes; then
3609 { { ac_try="$ac_link"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_link") 2>&5
3617 ac_status=$?
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }
3620 if { ac_try='./conftest$ac_cv_exeext'
3621 { { case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_try") 2>&5
3628 ac_status=$?
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }; }; then
3631 cross_compiling=no
3632 else
3633 if test "$cross_compiling" = maybe; then
3634 cross_compiling=yes
3635 else
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error "cannot run C compiled programs.
3639 If you meant to cross compile, use \`--host'.
3640 See \`config.log' for more details." "$LINENO" 5; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3645 $as_echo "$cross_compiling" >&6; }
3647 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3648 ac_clean_files=$ac_clean_files_save
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3650 $as_echo_n "checking for suffix of object files... " >&6; }
3651 if test "${ac_cv_objext+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3658 main ()
3662 return 0;
3664 _ACEOF
3665 rm -f conftest.o conftest.obj
3666 if { { ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_compile") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 for ac_file in conftest.o conftest.obj conftest.*; do
3678 test -f "$ac_file" || continue;
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3682 break;;
3683 esac
3684 done
3685 else
3686 $as_echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error "cannot compute suffix of object files: cannot compile
3692 See \`config.log' for more details." "$LINENO" 5; }
3694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3697 $as_echo "$ac_cv_objext" >&6; }
3698 OBJEXT=$ac_cv_objext
3699 ac_objext=$OBJEXT
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3701 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3702 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3709 main ()
3711 #ifndef __GNUC__
3712 choke me
3713 #endif
3716 return 0;
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720 ac_compiler_gnu=yes
3721 else
3722 ac_compiler_gnu=no
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3729 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3730 if test $ac_compiler_gnu = yes; then
3731 GCC=yes
3732 else
3733 GCC=
3735 ac_test_CFLAGS=${CFLAGS+set}
3736 ac_save_CFLAGS=$CFLAGS
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3738 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3739 if test "${ac_cv_prog_cc_g+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 ac_save_c_werror_flag=$ac_c_werror_flag
3743 ac_c_werror_flag=yes
3744 ac_cv_prog_cc_g=no
3745 CFLAGS="-g"
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3750 main ()
3754 return 0;
3756 _ACEOF
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758 ac_cv_prog_cc_g=yes
3759 else
3760 CFLAGS=""
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3765 main ()
3769 return 0;
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3774 else
3775 ac_c_werror_flag=$ac_save_c_werror_flag
3776 CFLAGS="-g"
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3781 main ()
3785 return 0;
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_cv_prog_cc_g=yes
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 ac_c_werror_flag=$ac_save_c_werror_flag
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3799 $as_echo "$ac_cv_prog_cc_g" >&6; }
3800 if test "$ac_test_CFLAGS" = set; then
3801 CFLAGS=$ac_save_CFLAGS
3802 elif test $ac_cv_prog_cc_g = yes; then
3803 if test "$GCC" = yes; then
3804 CFLAGS="-g -O2"
3805 else
3806 CFLAGS="-g"
3808 else
3809 if test "$GCC" = yes; then
3810 CFLAGS="-O2"
3811 else
3812 CFLAGS=
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3817 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 ac_cv_prog_cc_c89=no
3821 ac_save_CC=$CC
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824 #include <stdarg.h>
3825 #include <stdio.h>
3826 #include <sys/types.h>
3827 #include <sys/stat.h>
3828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3829 struct buf { int x; };
3830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3831 static char *e (p, i)
3832 char **p;
3833 int i;
3835 return p[i];
3837 static char *f (char * (*g) (char **, int), char **p, ...)
3839 char *s;
3840 va_list v;
3841 va_start (v,p);
3842 s = g (p, va_arg (v,int));
3843 va_end (v);
3844 return s;
3847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3848 function prototypes and stuff, but not '\xHH' hex character constants.
3849 These don't provoke an error unfortunately, instead are silently treated
3850 as 'x'. The following induces an error, until -std is added to get
3851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3852 array size at least. It's necessary to write '\x00'==0 to get something
3853 that's true only with -std. */
3854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3857 inside strings and character constants. */
3858 #define FOO(x) 'x'
3859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3861 int test (int i, double x);
3862 struct s1 {int (*f) (int a);};
3863 struct s2 {int (*f) (double a);};
3864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3865 int argc;
3866 char **argv;
3868 main ()
3870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3872 return 0;
3874 _ACEOF
3875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3878 CC="$ac_save_CC $ac_arg"
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880 ac_cv_prog_cc_c89=$ac_arg
3882 rm -f core conftest.err conftest.$ac_objext
3883 test "x$ac_cv_prog_cc_c89" != "xno" && break
3884 done
3885 rm -f conftest.$ac_ext
3886 CC=$ac_save_CC
3889 # AC_CACHE_VAL
3890 case "x$ac_cv_prog_cc_c89" in
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3893 $as_echo "none needed" >&6; } ;;
3894 xno)
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3896 $as_echo "unsupported" >&6; } ;;
3898 CC="$CC $ac_cv_prog_cc_c89"
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3901 esac
3902 if test "x$ac_cv_prog_cc_c89" != xno; then :
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911 DEPDIR="${am__leading_dot}deps"
3913 ac_config_commands="$ac_config_commands depfiles"
3916 am_make=${MAKE-make}
3917 cat > confinc << 'END'
3918 am__doit:
3919 @echo this is the am__doit target
3920 .PHONY: am__doit
3922 # If we don't find an include directive, just comment out the code.
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3924 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3925 am__include="#"
3926 am__quote=
3927 _am_result=none
3928 # First try GNU make style include.
3929 echo "include confinc" > confmf
3930 # Ignore all kinds of additional output from `make'.
3931 case `$am_make -s -f confmf 2> /dev/null` in #(
3932 *the\ am__doit\ target*)
3933 am__include=include
3934 am__quote=
3935 _am_result=GNU
3937 esac
3938 # Now try BSD make style include.
3939 if test "$am__include" = "#"; then
3940 echo '.include "confinc"' > confmf
3941 case `$am_make -s -f confmf 2> /dev/null` in #(
3942 *the\ am__doit\ target*)
3943 am__include=.include
3944 am__quote="\""
3945 _am_result=BSD
3947 esac
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3952 $as_echo "$_am_result" >&6; }
3953 rm -f confinc confmf
3955 # Check whether --enable-dependency-tracking was given.
3956 if test "${enable_dependency_tracking+set}" = set; then :
3957 enableval=$enable_dependency_tracking;
3960 if test "x$enable_dependency_tracking" != xno; then
3961 am_depcomp="$ac_aux_dir/depcomp"
3962 AMDEPBACKSLASH='\'
3964 if test "x$enable_dependency_tracking" != xno; then
3965 AMDEP_TRUE=
3966 AMDEP_FALSE='#'
3967 else
3968 AMDEP_TRUE='#'
3969 AMDEP_FALSE=
3974 depcc="$CC" am_compiler_list=
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3977 $as_echo_n "checking dependency style of $depcc... " >&6; }
3978 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3982 # We make a subdir and do the tests there. Otherwise we can end up
3983 # making bogus files that we don't know about and never remove. For
3984 # instance it was reported that on HP-UX the gcc test will end up
3985 # making a dummy file named `D' -- because `-MD' means `put the output
3986 # in D'.
3987 mkdir conftest.dir
3988 # Copy depcomp to subdir because otherwise we won't find it if we're
3989 # using a relative directory.
3990 cp "$am_depcomp" conftest.dir
3991 cd conftest.dir
3992 # We will build objects and dependencies in a subdirectory because
3993 # it helps to detect inapplicable dependency modes. For instance
3994 # both Tru64's cc and ICC support -MD to output dependencies as a
3995 # side effect of compilation, but ICC will put the dependencies in
3996 # the current directory while Tru64 will put them in the object
3997 # directory.
3998 mkdir sub
4000 am_cv_CC_dependencies_compiler_type=none
4001 if test "$am_compiler_list" = ""; then
4002 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4004 am__universal=false
4005 case " $depcc " in #(
4006 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4007 esac
4009 for depmode in $am_compiler_list; do
4010 # Setup a source with many dependencies, because some compilers
4011 # like to wrap large dependency lists on column 80 (with \), and
4012 # we should not choose a depcomp mode which is confused by this.
4014 # We need to recreate these files for each test, as the compiler may
4015 # overwrite some of them when testing with obscure command lines.
4016 # This happens at least with the AIX C compiler.
4017 : > sub/conftest.c
4018 for i in 1 2 3 4 5 6; do
4019 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4020 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4021 # Solaris 8's {/usr,}/bin/sh.
4022 touch sub/conftst$i.h
4023 done
4024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4027 # mode. It turns out that the SunPro C++ compiler does not properly
4028 # handle `-M -o', and we need to detect this. Also, some Intel
4029 # versions had trouble with output in subdirs
4030 am__obj=sub/conftest.${OBJEXT-o}
4031 am__minus_obj="-o $am__obj"
4032 case $depmode in
4033 gcc)
4034 # This depmode causes a compiler race in universal mode.
4035 test "$am__universal" = false || continue
4037 nosideeffect)
4038 # after this tag, mechanisms are not by side-effect, so they'll
4039 # only be used when explicitly requested
4040 if test "x$enable_dependency_tracking" = xyes; then
4041 continue
4042 else
4043 break
4046 msvisualcpp | msvcmsys)
4047 # This compiler won't grok `-c -o', but also, the minuso test has
4048 # not run yet. These depmodes are late enough in the game, and
4049 # so weak that their functioning should not be impacted.
4050 am__obj=conftest.${OBJEXT-o}
4051 am__minus_obj=
4053 none) break ;;
4054 esac
4055 if depmode=$depmode \
4056 source=sub/conftest.c object=$am__obj \
4057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4058 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4059 >/dev/null 2>conftest.err &&
4060 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4061 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4062 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4063 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4064 # icc doesn't choke on unknown options, it will just issue warnings
4065 # or remarks (even with -Werror). So we grep stderr for any message
4066 # that says an option was ignored or not supported.
4067 # When given -MP, icc 7.0 and 7.1 complain thusly:
4068 # icc: Command line warning: ignoring option '-M'; no argument required
4069 # The diagnosis changed in icc 8.0:
4070 # icc: Command line remark: option '-MP' not supported
4071 if (grep 'ignoring option' conftest.err ||
4072 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4073 am_cv_CC_dependencies_compiler_type=$depmode
4074 break
4077 done
4079 cd ..
4080 rm -rf conftest.dir
4081 else
4082 am_cv_CC_dependencies_compiler_type=none
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4087 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4088 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4091 test "x$enable_dependency_tracking" != xno \
4092 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4093 am__fastdepCC_TRUE=
4094 am__fastdepCC_FALSE='#'
4095 else
4096 am__fastdepCC_TRUE='#'
4097 am__fastdepCC_FALSE=
4102 # So far, the only shared library we might use is libopts.
4103 # It's a small library - we might as well use a static version of it.
4104 # Check whether --enable-shared was given.
4105 if test "${enable_shared+set}" = set; then :
4106 enableval=$enable_shared; p=${PACKAGE-default}
4107 case $enableval in
4108 yes) enable_shared=yes ;;
4109 no) enable_shared=no ;;
4111 enable_shared=no
4112 # Look at the argument we got. We use all the common list separators.
4113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4114 for pkg in $enableval; do
4115 IFS="$lt_save_ifs"
4116 if test "X$pkg" = "X$p"; then
4117 enable_shared=yes
4119 done
4120 IFS="$lt_save_ifs"
4122 esac
4123 else
4124 enable_shared=no
4133 # Check whether --enable-static was given.
4134 if test "${enable_static+set}" = set; then :
4135 enableval=$enable_static; p=${PACKAGE-default}
4136 case $enableval in
4137 yes) enable_static=yes ;;
4138 no) enable_static=no ;;
4140 enable_static=no
4141 # Look at the argument we got. We use all the common list separators.
4142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4143 for pkg in $enableval; do
4144 IFS="$lt_save_ifs"
4145 if test "X$pkg" = "X$p"; then
4146 enable_static=yes
4148 done
4149 IFS="$lt_save_ifs"
4151 esac
4152 else
4153 enable_static=yes
4157 # Check whether --enable-fast-install was given.
4158 if test "${enable_fast_install+set}" = set; then :
4159 enableval=$enable_fast_install; p=${PACKAGE-default}
4160 case $enableval in
4161 yes) enable_fast_install=yes ;;
4162 no) enable_fast_install=no ;;
4164 enable_fast_install=no
4165 # Look at the argument we got. We use all the common list separators.
4166 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4167 for pkg in $enableval; do
4168 IFS="$lt_save_ifs"
4169 if test "X$pkg" = "X$p"; then
4170 enable_fast_install=yes
4172 done
4173 IFS="$lt_save_ifs"
4175 esac
4176 else
4177 enable_fast_install=yes
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4182 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4183 if test "${lt_cv_path_SED+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 # Loop through the user's path and test for sed and gsed.
4187 # Then use that list of sed's as ones to test for truncation.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for lt_ac_prog in sed gsed; do
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4196 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4198 done
4199 done
4200 done
4201 lt_ac_max=0
4202 lt_ac_count=0
4203 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4204 # along with /bin/sed that truncates output.
4205 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4206 test ! -f $lt_ac_sed && continue
4207 cat /dev/null > conftest.in
4208 lt_ac_count=0
4209 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4210 # Check for GNU sed and select it if it is found.
4211 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4212 lt_cv_path_SED=$lt_ac_sed
4213 break
4215 while true; do
4216 cat conftest.in conftest.in >conftest.tmp
4217 mv conftest.tmp conftest.in
4218 cp conftest.in conftest.nl
4219 echo >>conftest.nl
4220 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4221 cmp -s conftest.out conftest.nl || break
4222 # 10000 chars as input seems more than enough
4223 test $lt_ac_count -gt 10 && break
4224 lt_ac_count=`expr $lt_ac_count + 1`
4225 if test $lt_ac_count -gt $lt_ac_max; then
4226 lt_ac_max=$lt_ac_count
4227 lt_cv_path_SED=$lt_ac_sed
4229 done
4230 done
4234 SED=$lt_cv_path_SED
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4236 $as_echo "$SED" >&6; }
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4239 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4240 if test "${ac_cv_path_GREP+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -z "$GREP"; then
4244 ac_path_GREP_found=false
4245 # Loop through the user's path and test for each of PROGNAME-LIST
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_prog in grep ggrep; do
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4254 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4255 # Check for GNU ac_path_GREP and select it if it is found.
4256 # Check for GNU $ac_path_GREP
4257 case `"$ac_path_GREP" --version 2>&1` in
4258 *GNU*)
4259 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4261 ac_count=0
4262 $as_echo_n 0123456789 >"conftest.in"
4263 while :
4265 cat "conftest.in" "conftest.in" >"conftest.tmp"
4266 mv "conftest.tmp" "conftest.in"
4267 cp "conftest.in" "conftest.nl"
4268 $as_echo 'GREP' >> "conftest.nl"
4269 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271 as_fn_arith $ac_count + 1 && ac_count=$as_val
4272 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4273 # Best one so far, save it but keep looking for a better one
4274 ac_cv_path_GREP="$ac_path_GREP"
4275 ac_path_GREP_max=$ac_count
4277 # 10*(2^10) chars as input seems more than enough
4278 test $ac_count -gt 10 && break
4279 done
4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281 esac
4283 $ac_path_GREP_found && break 3
4284 done
4285 done
4286 done
4287 IFS=$as_save_IFS
4288 if test -z "$ac_cv_path_GREP"; then
4289 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4291 else
4292 ac_cv_path_GREP=$GREP
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4297 $as_echo "$ac_cv_path_GREP" >&6; }
4298 GREP="$ac_cv_path_GREP"
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4302 $as_echo_n "checking for egrep... " >&6; }
4303 if test "${ac_cv_path_EGREP+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4307 then ac_cv_path_EGREP="$GREP -E"
4308 else
4309 if test -z "$EGREP"; then
4310 ac_path_EGREP_found=false
4311 # Loop through the user's path and test for each of PROGNAME-LIST
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_prog in egrep; do
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4320 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4321 # Check for GNU ac_path_EGREP and select it if it is found.
4322 # Check for GNU $ac_path_EGREP
4323 case `"$ac_path_EGREP" --version 2>&1` in
4324 *GNU*)
4325 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4327 ac_count=0
4328 $as_echo_n 0123456789 >"conftest.in"
4329 while :
4331 cat "conftest.in" "conftest.in" >"conftest.tmp"
4332 mv "conftest.tmp" "conftest.in"
4333 cp "conftest.in" "conftest.nl"
4334 $as_echo 'EGREP' >> "conftest.nl"
4335 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337 as_fn_arith $ac_count + 1 && ac_count=$as_val
4338 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4339 # Best one so far, save it but keep looking for a better one
4340 ac_cv_path_EGREP="$ac_path_EGREP"
4341 ac_path_EGREP_max=$ac_count
4343 # 10*(2^10) chars as input seems more than enough
4344 test $ac_count -gt 10 && break
4345 done
4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347 esac
4349 $ac_path_EGREP_found && break 3
4350 done
4351 done
4352 done
4353 IFS=$as_save_IFS
4354 if test -z "$ac_cv_path_EGREP"; then
4355 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4357 else
4358 ac_cv_path_EGREP=$EGREP
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4364 $as_echo "$ac_cv_path_EGREP" >&6; }
4365 EGREP="$ac_cv_path_EGREP"
4369 # Check whether --with-gnu-ld was given.
4370 if test "${with_gnu_ld+set}" = set; then :
4371 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4372 else
4373 with_gnu_ld=no
4376 ac_prog=ld
4377 if test "$GCC" = yes; then
4378 # Check if gcc -print-prog-name=ld gives a path.
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4380 $as_echo_n "checking for ld used by $CC... " >&6; }
4381 case $host in
4382 *-*-mingw*)
4383 # gcc leaves a trailing carriage return which upsets mingw
4384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4387 esac
4388 case $ac_prog in
4389 # Accept absolute paths.
4390 [\\/]* | ?:[\\/]*)
4391 re_direlt='/[^/][^/]*/\.\./'
4392 # Canonicalize the pathname of ld
4393 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4394 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4395 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4396 done
4397 test -z "$LD" && LD="$ac_prog"
4400 # If it fails, then pretend we aren't using GCC.
4401 ac_prog=ld
4404 # If it is relative, then search for the first ld in PATH.
4405 with_gnu_ld=unknown
4407 esac
4408 elif test "$with_gnu_ld" = yes; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4410 $as_echo_n "checking for GNU ld... " >&6; }
4411 else
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4413 $as_echo_n "checking for non-GNU ld... " >&6; }
4415 if test "${lt_cv_path_LD+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -z "$LD"; then
4419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4420 for ac_dir in $PATH; do
4421 IFS="$lt_save_ifs"
4422 test -z "$ac_dir" && ac_dir=.
4423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4424 lt_cv_path_LD="$ac_dir/$ac_prog"
4425 # Check to see if the program is GNU ld. I'd rather use --version,
4426 # but apparently some variants of GNU ld only accept -v.
4427 # Break only if it was the GNU/non-GNU ld that we prefer.
4428 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4429 *GNU* | *'with BFD'*)
4430 test "$with_gnu_ld" != no && break
4433 test "$with_gnu_ld" != yes && break
4435 esac
4437 done
4438 IFS="$lt_save_ifs"
4439 else
4440 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4444 LD="$lt_cv_path_LD"
4445 if test -n "$LD"; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4447 $as_echo "$LD" >&6; }
4448 else
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4452 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4454 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4455 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4459 case `$LD -v 2>&1 </dev/null` in
4460 *GNU* | *'with BFD'*)
4461 lt_cv_prog_gnu_ld=yes
4464 lt_cv_prog_gnu_ld=no
4466 esac
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4469 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4470 with_gnu_ld=$lt_cv_prog_gnu_ld
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4474 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4475 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 lt_cv_ld_reload_flag='-r'
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4481 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4482 reload_flag=$lt_cv_ld_reload_flag
4483 case $reload_flag in
4484 "" | " "*) ;;
4485 *) reload_flag=" $reload_flag" ;;
4486 esac
4487 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4488 case $host_os in
4489 darwin*)
4490 if test "$GCC" = yes; then
4491 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4492 else
4493 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4496 esac
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4499 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4500 if test "${lt_cv_path_NM+set}" = set; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -n "$NM"; then
4504 # Let the user override the test.
4505 lt_cv_path_NM="$NM"
4506 else
4507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4508 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4509 IFS="$lt_save_ifs"
4510 test -z "$ac_dir" && ac_dir=.
4511 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4512 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4513 # Check to see if the nm accepts a BSD-compat flag.
4514 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4515 # nm: unknown option "B" ignored
4516 # Tru64's nm complains that /dev/null is an invalid object file
4517 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4518 */dev/null* | *'Invalid file or object type'*)
4519 lt_cv_path_NM="$tmp_nm -B"
4520 break
4523 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4524 */dev/null*)
4525 lt_cv_path_NM="$tmp_nm -p"
4526 break
4529 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4530 continue # so that we can try to find one that supports BSD flags
4532 esac
4533 esac
4535 done
4536 IFS="$lt_save_ifs"
4537 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4541 $as_echo "$lt_cv_path_NM" >&6; }
4542 NM="$lt_cv_path_NM"
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4545 $as_echo_n "checking whether ln -s works... " >&6; }
4546 LN_S=$as_ln_s
4547 if test "$LN_S" = "ln -s"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4549 $as_echo "yes" >&6; }
4550 else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4552 $as_echo "no, using $LN_S" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4556 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4557 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 lt_cv_file_magic_cmd='$MAGIC_CMD'
4561 lt_cv_file_magic_test_file=
4562 lt_cv_deplibs_check_method='unknown'
4563 # Need to set the preceding variable on all platforms that support
4564 # interlibrary dependencies.
4565 # 'none' -- dependencies not supported.
4566 # `unknown' -- same as none, but documents that we really don't know.
4567 # 'pass_all' -- all dependencies passed with no checks.
4568 # 'test_compile' -- check by making test program.
4569 # 'file_magic [[regex]]' -- check by looking for files in library path
4570 # which responds to the $file_magic_cmd with a given extended regex.
4571 # If you have `file' or equivalent on your system and you're not sure
4572 # whether `pass_all' will *always* work, you probably want this one.
4574 case $host_os in
4575 aix4* | aix5*)
4576 lt_cv_deplibs_check_method=pass_all
4579 beos*)
4580 lt_cv_deplibs_check_method=pass_all
4583 bsdi[45]*)
4584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4585 lt_cv_file_magic_cmd='/usr/bin/file -L'
4586 lt_cv_file_magic_test_file=/shlib/libc.so
4589 cygwin*)
4590 # func_win32_libid is a shell function defined in ltmain.sh
4591 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4592 lt_cv_file_magic_cmd='func_win32_libid'
4595 mingw* | pw32*)
4596 # Base MSYS/MinGW do not provide the 'file' command needed by
4597 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4598 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4599 lt_cv_file_magic_cmd='$OBJDUMP -f'
4602 darwin* | rhapsody*)
4603 lt_cv_deplibs_check_method=pass_all
4606 freebsd* | kfreebsd*-gnu | dragonfly*)
4607 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4608 case $host_cpu in
4609 i*86 )
4610 # Not sure whether the presence of OpenBSD here was a mistake.
4611 # Let's accept both of them until this is cleared up.
4612 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4613 lt_cv_file_magic_cmd=/usr/bin/file
4614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4616 esac
4617 else
4618 lt_cv_deplibs_check_method=pass_all
4622 gnu*)
4623 lt_cv_deplibs_check_method=pass_all
4626 hpux10.20* | hpux11*)
4627 lt_cv_file_magic_cmd=/usr/bin/file
4628 case $host_cpu in
4629 ia64*)
4630 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4631 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4633 hppa*64*)
4634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4635 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4638 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4639 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4641 esac
4644 irix5* | irix6* | nonstopux*)
4645 case $LD in
4646 *-32|*"-32 ") libmagic=32-bit;;
4647 *-n32|*"-n32 ") libmagic=N32;;
4648 *-64|*"-64 ") libmagic=64-bit;;
4649 *) libmagic=never-match;;
4650 esac
4651 lt_cv_deplibs_check_method=pass_all
4654 # This must be Linux ELF.
4655 linux*)
4656 lt_cv_deplibs_check_method=pass_all
4659 netbsd*)
4660 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4662 else
4663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4667 newos6*)
4668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4669 lt_cv_file_magic_cmd=/usr/bin/file
4670 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4673 nto-qnx*)
4674 lt_cv_deplibs_check_method=unknown
4677 openbsd*)
4678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4680 else
4681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4685 osf3* | osf4* | osf5*)
4686 lt_cv_deplibs_check_method=pass_all
4689 sco3.2v5*)
4690 lt_cv_deplibs_check_method=pass_all
4693 solaris*)
4694 lt_cv_deplibs_check_method=pass_all
4697 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4698 case $host_vendor in
4699 motorola)
4700 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]'
4701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4703 ncr)
4704 lt_cv_deplibs_check_method=pass_all
4706 sequent)
4707 lt_cv_file_magic_cmd='/bin/file'
4708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4710 sni)
4711 lt_cv_file_magic_cmd='/bin/file'
4712 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4713 lt_cv_file_magic_test_file=/lib/libc.so
4715 siemens)
4716 lt_cv_deplibs_check_method=pass_all
4718 esac
4721 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4722 lt_cv_deplibs_check_method=pass_all
4724 esac
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4728 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4729 file_magic_cmd=$lt_cv_file_magic_cmd
4730 deplibs_check_method=$lt_cv_deplibs_check_method
4731 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4736 # If no C compiler was specified, use CC.
4737 LTCC=${LTCC-"$CC"}
4739 # Allow CC to be a program name with arguments.
4740 compiler=$CC
4743 # Check whether --enable-libtool-lock was given.
4744 if test "${enable_libtool_lock+set}" = set; then :
4745 enableval=$enable_libtool_lock;
4748 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4750 # Some flags need to be propagated to the compiler or linker for good
4751 # libtool support.
4752 case $host in
4753 ia64-*-hpux*)
4754 # Find out which ABI we are using.
4755 echo 'int i;' > conftest.$ac_ext
4756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4757 (eval $ac_compile) 2>&5
4758 ac_status=$?
4759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4760 test $ac_status = 0; }; then
4761 case `/usr/bin/file conftest.$ac_objext` in
4762 *ELF-32*)
4763 HPUX_IA64_MODE="32"
4765 *ELF-64*)
4766 HPUX_IA64_MODE="64"
4768 esac
4770 rm -rf conftest*
4772 *-*-irix6*)
4773 # Find out which ABI we are using.
4774 echo '#line 4774 "configure"' > conftest.$ac_ext
4775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4776 (eval $ac_compile) 2>&5
4777 ac_status=$?
4778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4779 test $ac_status = 0; }; then
4780 if test "$lt_cv_prog_gnu_ld" = yes; then
4781 case `/usr/bin/file conftest.$ac_objext` in
4782 *32-bit*)
4783 LD="${LD-ld} -melf32bsmip"
4785 *N32*)
4786 LD="${LD-ld} -melf32bmipn32"
4788 *64-bit*)
4789 LD="${LD-ld} -melf64bmip"
4791 esac
4792 else
4793 case `/usr/bin/file conftest.$ac_objext` in
4794 *32-bit*)
4795 LD="${LD-ld} -32"
4797 *N32*)
4798 LD="${LD-ld} -n32"
4800 *64-bit*)
4801 LD="${LD-ld} -64"
4803 esac
4806 rm -rf conftest*
4809 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4810 # Find out which ABI we are using.
4811 echo 'int i;' > conftest.$ac_ext
4812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4813 (eval $ac_compile) 2>&5
4814 ac_status=$?
4815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816 test $ac_status = 0; }; then
4817 case `/usr/bin/file conftest.o` in
4818 *32-bit*)
4819 case $host in
4820 x86_64-*linux*)
4821 LD="${LD-ld} -m elf_i386"
4823 ppc64-*linux*|powerpc64-*linux*)
4824 LD="${LD-ld} -m elf32ppclinux"
4826 s390x-*linux*)
4827 LD="${LD-ld} -m elf_s390"
4829 sparc64-*linux*)
4830 LD="${LD-ld} -m elf32_sparc"
4832 esac
4834 *64-bit*)
4835 case $host in
4836 x86_64-*linux*)
4837 LD="${LD-ld} -m elf_x86_64"
4839 ppc*-*linux*|powerpc*-*linux*)
4840 LD="${LD-ld} -m elf64ppc"
4842 s390*-*linux*)
4843 LD="${LD-ld} -m elf64_s390"
4845 sparc*-*linux*)
4846 LD="${LD-ld} -m elf64_sparc"
4848 esac
4850 esac
4852 rm -rf conftest*
4855 *-*-sco3.2v5*)
4856 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4857 SAVE_CFLAGS="$CFLAGS"
4858 CFLAGS="$CFLAGS -belf"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4860 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4861 if test "${lt_cv_cc_needs_belf+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 ac_ext=c
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4874 main ()
4878 return 0;
4880 _ACEOF
4881 if ac_fn_c_try_link "$LINENO"; then :
4882 lt_cv_cc_needs_belf=yes
4883 else
4884 lt_cv_cc_needs_belf=no
4886 rm -f core conftest.err conftest.$ac_objext \
4887 conftest$ac_exeext conftest.$ac_ext
4888 ac_ext=c
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4896 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4899 CFLAGS="$SAVE_CFLAGS"
4903 esac
4905 need_locks="$enable_libtool_lock"
4908 ac_ext=c
4909 ac_cpp='$CPP $CPPFLAGS'
4910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4914 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4915 # On Suns, sometimes $CPP names a directory.
4916 if test -n "$CPP" && test -d "$CPP"; then
4917 CPP=
4919 if test -z "$CPP"; then
4920 if test "${ac_cv_prog_CPP+set}" = set; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 # Double quotes because CPP needs to be expanded
4924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4926 ac_preproc_ok=false
4927 for ac_c_preproc_warn_flag in '' yes
4929 # Use a header file that comes with gcc, so configuring glibc
4930 # with a fresh cross-compiler works.
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 # <limits.h> exists even on freestanding compilers.
4933 # On the NeXT, cc -E runs the code through the compiler's parser,
4934 # not just through cpp. "Syntax error" is here to catch this case.
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4937 #ifdef __STDC__
4938 # include <limits.h>
4939 #else
4940 # include <assert.h>
4941 #endif
4942 Syntax error
4943 _ACEOF
4944 if ac_fn_c_try_cpp "$LINENO"; then :
4946 else
4947 # Broken: fails on valid input.
4948 continue
4950 rm -f conftest.err conftest.$ac_ext
4952 # OK, works on sane cases. Now check whether nonexistent headers
4953 # can be detected and how.
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 #include <ac_nonexistent.h>
4957 _ACEOF
4958 if ac_fn_c_try_cpp "$LINENO"; then :
4959 # Broken: success on invalid input.
4960 continue
4961 else
4962 # Passes both tests.
4963 ac_preproc_ok=:
4964 break
4966 rm -f conftest.err conftest.$ac_ext
4968 done
4969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4970 rm -f conftest.err conftest.$ac_ext
4971 if $ac_preproc_ok; then :
4972 break
4975 done
4976 ac_cv_prog_CPP=$CPP
4979 CPP=$ac_cv_prog_CPP
4980 else
4981 ac_cv_prog_CPP=$CPP
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4984 $as_echo "$CPP" >&6; }
4985 ac_preproc_ok=false
4986 for ac_c_preproc_warn_flag in '' yes
4988 # Use a header file that comes with gcc, so configuring glibc
4989 # with a fresh cross-compiler works.
4990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991 # <limits.h> exists even on freestanding compilers.
4992 # On the NeXT, cc -E runs the code through the compiler's parser,
4993 # not just through cpp. "Syntax error" is here to catch this case.
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 #ifdef __STDC__
4997 # include <limits.h>
4998 #else
4999 # include <assert.h>
5000 #endif
5001 Syntax error
5002 _ACEOF
5003 if ac_fn_c_try_cpp "$LINENO"; then :
5005 else
5006 # Broken: fails on valid input.
5007 continue
5009 rm -f conftest.err conftest.$ac_ext
5011 # OK, works on sane cases. Now check whether nonexistent headers
5012 # can be detected and how.
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015 #include <ac_nonexistent.h>
5016 _ACEOF
5017 if ac_fn_c_try_cpp "$LINENO"; then :
5018 # Broken: success on invalid input.
5019 continue
5020 else
5021 # Passes both tests.
5022 ac_preproc_ok=:
5023 break
5025 rm -f conftest.err conftest.$ac_ext
5027 done
5028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5029 rm -f conftest.err conftest.$ac_ext
5030 if $ac_preproc_ok; then :
5032 else
5033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5035 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5036 See \`config.log' for more details." "$LINENO" 5; }
5039 ac_ext=c
5040 ac_cpp='$CPP $CPPFLAGS'
5041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5047 $as_echo_n "checking for ANSI C header files... " >&6; }
5048 if test "${ac_cv_header_stdc+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 #include <stdlib.h>
5054 #include <stdarg.h>
5055 #include <string.h>
5056 #include <float.h>
5059 main ()
5063 return 0;
5065 _ACEOF
5066 if ac_fn_c_try_compile "$LINENO"; then :
5067 ac_cv_header_stdc=yes
5068 else
5069 ac_cv_header_stdc=no
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 if test $ac_cv_header_stdc = yes; then
5074 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <string.h>
5079 _ACEOF
5080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081 $EGREP "memchr" >/dev/null 2>&1; then :
5083 else
5084 ac_cv_header_stdc=no
5086 rm -f conftest*
5090 if test $ac_cv_header_stdc = yes; then
5091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <stdlib.h>
5096 _ACEOF
5097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5098 $EGREP "free" >/dev/null 2>&1; then :
5100 else
5101 ac_cv_header_stdc=no
5103 rm -f conftest*
5107 if test $ac_cv_header_stdc = yes; then
5108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5109 if test "$cross_compiling" = yes; then :
5111 else
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 #include <ctype.h>
5115 #include <stdlib.h>
5116 #if ((' ' & 0x0FF) == 0x020)
5117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5119 #else
5120 # define ISLOWER(c) \
5121 (('a' <= (c) && (c) <= 'i') \
5122 || ('j' <= (c) && (c) <= 'r') \
5123 || ('s' <= (c) && (c) <= 'z'))
5124 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5125 #endif
5127 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5129 main ()
5131 int i;
5132 for (i = 0; i < 256; i++)
5133 if (XOR (islower (i), ISLOWER (i))
5134 || toupper (i) != TOUPPER (i))
5135 return 2;
5136 return 0;
5138 _ACEOF
5139 if ac_fn_c_try_run "$LINENO"; then :
5141 else
5142 ac_cv_header_stdc=no
5144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5145 conftest.$ac_objext conftest.beam conftest.$ac_ext
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5151 $as_echo "$ac_cv_header_stdc" >&6; }
5152 if test $ac_cv_header_stdc = yes; then
5154 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5158 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5159 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5160 inttypes.h stdint.h unistd.h
5161 do :
5162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5163 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5165 eval as_val=\$$as_ac_Header
5166 if test "x$as_val" = x""yes; then :
5167 cat >>confdefs.h <<_ACEOF
5168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5169 _ACEOF
5173 done
5176 for ac_header in dlfcn.h
5177 do :
5178 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5179 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5180 cat >>confdefs.h <<_ACEOF
5181 #define HAVE_DLFCN_H 1
5182 _ACEOF
5186 done
5189 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5191 # find the maximum length of command line arguments
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5193 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5194 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5198 teststring="ABCD"
5200 case $build_os in
5201 msdosdjgpp*)
5202 # On DJGPP, this test can blow up pretty badly due to problems in libc
5203 # (any single argument exceeding 2000 bytes causes a buffer overrun
5204 # during glob expansion). Even if it were fixed, the result of this
5205 # check would be larger than it should be.
5206 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5209 gnu*)
5210 # Under GNU Hurd, this test is not required because there is
5211 # no limit to the length of command line arguments.
5212 # Libtool will interpret -1 as no limit whatsoever
5213 lt_cv_sys_max_cmd_len=-1;
5216 cygwin* | mingw*)
5217 # On Win9x/ME, this test blows up -- it succeeds, but takes
5218 # about 5 minutes as the teststring grows exponentially.
5219 # Worse, since 9x/ME are not pre-emptively multitasking,
5220 # you end up with a "frozen" computer, even though with patience
5221 # the test eventually succeeds (with a max line length of 256k).
5222 # Instead, let's just punt: use the minimum linelength reported by
5223 # all of the supported platforms: 8192 (on NT/2K/XP).
5224 lt_cv_sys_max_cmd_len=8192;
5227 amigaos*)
5228 # On AmigaOS with pdksh, this test takes hours, literally.
5229 # So we just punt and use a minimum line length of 8192.
5230 lt_cv_sys_max_cmd_len=8192;
5233 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5234 # This has been around since 386BSD, at least. Likely further.
5235 if test -x /sbin/sysctl; then
5236 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5237 elif test -x /usr/sbin/sysctl; then
5238 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5239 else
5240 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5242 # And add a safety zone
5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5246 osf*)
5247 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5248 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5249 # nice to cause kernel panics so lets avoid the loop below.
5250 # First set a reasonable default.
5251 lt_cv_sys_max_cmd_len=16384
5253 if test -x /sbin/sysconfig; then
5254 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5255 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5256 esac
5260 # If test is not a shell built-in, we'll probably end up computing a
5261 # maximum length that is only half of the actual maximum length, but
5262 # we can't tell.
5263 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5264 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5265 = "XX$teststring") >/dev/null 2>&1 &&
5266 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5267 lt_cv_sys_max_cmd_len=$new_result &&
5268 test $i != 17 # 1/2 MB should be enough
5270 i=`expr $i + 1`
5271 teststring=$teststring$teststring
5272 done
5273 teststring=
5274 # Add a significant safety factor because C++ compilers can tack on massive
5275 # amounts of additional arguments before passing them to the linker.
5276 # It appears as though 1/2 is a usable value.
5277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5279 esac
5283 if test -n $lt_cv_sys_max_cmd_len ; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5285 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5288 $as_echo "none" >&6; }
5294 # Check for command to grab the raw symbol name followed by C symbol from nm.
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5296 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5297 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5301 # These are sane defaults that work on at least a few old systems.
5302 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5304 # Character class describing NM global symbol codes.
5305 symcode='[BCDEGRST]'
5307 # Regexp to match symbols that can be accessed directly from C.
5308 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5310 # Transform an extracted symbol line into a proper C declaration
5311 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5313 # Transform an extracted symbol line into symbol name and symbol address
5314 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5316 # Define system-specific variables.
5317 case $host_os in
5318 aix*)
5319 symcode='[BCDT]'
5321 cygwin* | mingw* | pw32*)
5322 symcode='[ABCDGISTW]'
5324 hpux*) # Its linker distinguishes data from code symbols
5325 if test "$host_cpu" = ia64; then
5326 symcode='[ABCDEGRST]'
5328 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5329 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5331 linux*)
5332 if test "$host_cpu" = ia64; then
5333 symcode='[ABCDGIRSTW]'
5334 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5335 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5338 irix* | nonstopux*)
5339 symcode='[BCDEGRST]'
5341 osf*)
5342 symcode='[BCDEGQRST]'
5344 solaris* | sysv5*)
5345 symcode='[BDRT]'
5347 sysv4)
5348 symcode='[DFNSTU]'
5350 esac
5352 # Handle CRLF in mingw tool chain
5353 opt_cr=
5354 case $build_os in
5355 mingw*)
5356 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5358 esac
5360 # If we're using GNU nm, then use its standard symbol codes.
5361 case `$NM -V 2>&1` in
5362 *GNU* | *'with BFD'*)
5363 symcode='[ABCDGIRSTW]' ;;
5364 esac
5366 # Try without a prefix undercore, then with it.
5367 for ac_symprfx in "" "_"; do
5369 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5370 symxfrm="\\1 $ac_symprfx\\2 \\2"
5372 # Write the raw and C identifiers.
5373 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5375 # Check to see that the pipe works correctly.
5376 pipe_works=no
5378 rm -f conftest*
5379 cat > conftest.$ac_ext <<EOF
5380 #ifdef __cplusplus
5381 extern "C" {
5382 #endif
5383 char nm_test_var;
5384 void nm_test_func(){}
5385 #ifdef __cplusplus
5387 #endif
5388 int main(){nm_test_var='a';nm_test_func();return(0);}
5391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5392 (eval $ac_compile) 2>&5
5393 ac_status=$?
5394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5395 test $ac_status = 0; }; then
5396 # Now try to grab the symbols.
5397 nlist=conftest.nm
5398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5399 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5400 ac_status=$?
5401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5402 test $ac_status = 0; } && test -s "$nlist"; then
5403 # Try sorting and uniquifying the output.
5404 if sort "$nlist" | uniq > "$nlist"T; then
5405 mv -f "$nlist"T "$nlist"
5406 else
5407 rm -f "$nlist"T
5410 # Make sure that we snagged all the symbols we need.
5411 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5412 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5413 cat <<EOF > conftest.$ac_ext
5414 #ifdef __cplusplus
5415 extern "C" {
5416 #endif
5419 # Now generate the symbol file.
5420 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5422 cat <<EOF >> conftest.$ac_ext
5423 #if defined (__STDC__) && __STDC__
5424 # define lt_ptr_t void *
5425 #else
5426 # define lt_ptr_t char *
5427 # define const
5428 #endif
5430 /* The mapping between symbol names and symbols. */
5431 const struct {
5432 const char *name;
5433 lt_ptr_t address;
5435 lt_preloaded_symbols[] =
5438 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5439 cat <<\EOF >> conftest.$ac_ext
5440 {0, (lt_ptr_t) 0}
5443 #ifdef __cplusplus
5445 #endif
5447 # Now try linking the two files.
5448 mv conftest.$ac_objext conftstm.$ac_objext
5449 lt_save_LIBS="$LIBS"
5450 lt_save_CFLAGS="$CFLAGS"
5451 LIBS="conftstm.$ac_objext"
5452 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5454 (eval $ac_link) 2>&5
5455 ac_status=$?
5456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5457 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5458 pipe_works=yes
5460 LIBS="$lt_save_LIBS"
5461 CFLAGS="$lt_save_CFLAGS"
5462 else
5463 echo "cannot find nm_test_func in $nlist" >&5
5465 else
5466 echo "cannot find nm_test_var in $nlist" >&5
5468 else
5469 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5471 else
5472 echo "$progname: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5475 rm -f conftest* conftst*
5477 # Do not use the global_symbol_pipe unless it works.
5478 if test "$pipe_works" = yes; then
5479 break
5480 else
5481 lt_cv_sys_global_symbol_pipe=
5483 done
5487 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5488 lt_cv_sys_global_symbol_to_cdecl=
5490 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5492 $as_echo "failed" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5495 $as_echo "ok" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5499 $as_echo_n "checking for objdir... " >&6; }
5500 if test "${lt_cv_objdir+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 rm -f .libs 2>/dev/null
5504 mkdir .libs 2>/dev/null
5505 if test -d .libs; then
5506 lt_cv_objdir=.libs
5507 else
5508 # MS-DOS does not allow filenames that begin with a dot.
5509 lt_cv_objdir=_libs
5511 rmdir .libs 2>/dev/null
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5514 $as_echo "$lt_cv_objdir" >&6; }
5515 objdir=$lt_cv_objdir
5521 case $host_os in
5522 aix3*)
5523 # AIX sometimes has problems with the GCC collect2 program. For some
5524 # reason, if we set the COLLECT_NAMES environment variable, the problems
5525 # vanish in a puff of smoke.
5526 if test "X${COLLECT_NAMES+set}" != Xset; then
5527 COLLECT_NAMES=
5528 export COLLECT_NAMES
5531 esac
5533 # Sed substitution that helps us do robust quoting. It backslashifies
5534 # metacharacters that are still active within double-quoted strings.
5535 Xsed='sed -e 1s/^X//'
5536 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5538 # Same as above, but do not quote variable references.
5539 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5541 # Sed substitution to delay expansion of an escaped shell variable in a
5542 # double_quote_subst'ed string.
5543 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5545 # Sed substitution to avoid accidental globbing in evaled expressions
5546 no_glob_subst='s/\*/\\\*/g'
5548 # Constants:
5549 rm="rm -f"
5551 # Global variables:
5552 default_ofile=libtool
5553 can_build_shared=yes
5555 # All known linkers require a `.a' archive for static linking (except MSVC,
5556 # which needs '.lib').
5557 libext=a
5558 ltmain="$ac_aux_dir/ltmain.sh"
5559 ofile="$default_ofile"
5560 with_gnu_ld="$lt_cv_prog_gnu_ld"
5562 if test -n "$ac_tool_prefix"; then
5563 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5564 set dummy ${ac_tool_prefix}ar; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if test "${ac_cv_prog_AR+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 if test -n "$AR"; then
5571 ac_cv_prog_AR="$AR" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580 ac_cv_prog_AR="${ac_tool_prefix}ar"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5584 done
5585 done
5586 IFS=$as_save_IFS
5590 AR=$ac_cv_prog_AR
5591 if test -n "$AR"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5593 $as_echo "$AR" >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5601 if test -z "$ac_cv_prog_AR"; then
5602 ac_ct_AR=$AR
5603 # Extract the first word of "ar", so it can be a program name with args.
5604 set dummy ar; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$ac_ct_AR"; then
5611 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_prog_ac_ct_AR="ar"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5624 done
5625 done
5626 IFS=$as_save_IFS
5630 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5631 if test -n "$ac_ct_AR"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5633 $as_echo "$ac_ct_AR" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5639 if test "x$ac_ct_AR" = x; then
5640 AR="false"
5641 else
5642 case $cross_compiling:$ac_tool_warned in
5643 yes:)
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646 ac_tool_warned=yes ;;
5647 esac
5648 AR=$ac_ct_AR
5650 else
5651 AR="$ac_cv_prog_AR"
5654 if test -n "$ac_tool_prefix"; then
5655 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5656 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 if test -n "$RANLIB"; then
5663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5664 else
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 break 2
5676 done
5677 done
5678 IFS=$as_save_IFS
5682 RANLIB=$ac_cv_prog_RANLIB
5683 if test -n "$RANLIB"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5685 $as_echo "$RANLIB" >&6; }
5686 else
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5693 if test -z "$ac_cv_prog_RANLIB"; then
5694 ac_ct_RANLIB=$RANLIB
5695 # Extract the first word of "ranlib", so it can be a program name with args.
5696 set dummy ranlib; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$ac_ct_RANLIB"; then
5703 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5712 ac_cv_prog_ac_ct_RANLIB="ranlib"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5718 IFS=$as_save_IFS
5722 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5723 if test -n "$ac_ct_RANLIB"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5725 $as_echo "$ac_ct_RANLIB" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5731 if test "x$ac_ct_RANLIB" = x; then
5732 RANLIB=":"
5733 else
5734 case $cross_compiling:$ac_tool_warned in
5735 yes:)
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5738 ac_tool_warned=yes ;;
5739 esac
5740 RANLIB=$ac_ct_RANLIB
5742 else
5743 RANLIB="$ac_cv_prog_RANLIB"
5746 if test -n "$ac_tool_prefix"; then
5747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5748 set dummy ${ac_tool_prefix}strip; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if test "${ac_cv_prog_STRIP+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 if test -n "$STRIP"; then
5755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5768 done
5769 done
5770 IFS=$as_save_IFS
5774 STRIP=$ac_cv_prog_STRIP
5775 if test -n "$STRIP"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5777 $as_echo "$STRIP" >&6; }
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5785 if test -z "$ac_cv_prog_STRIP"; then
5786 ac_ct_STRIP=$STRIP
5787 # Extract the first word of "strip", so it can be a program name with args.
5788 set dummy strip; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if test -n "$ac_ct_STRIP"; then
5795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_ac_ct_STRIP="strip"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5808 done
5809 done
5810 IFS=$as_save_IFS
5814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5815 if test -n "$ac_ct_STRIP"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5817 $as_echo "$ac_ct_STRIP" >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5823 if test "x$ac_ct_STRIP" = x; then
5824 STRIP=":"
5825 else
5826 case $cross_compiling:$ac_tool_warned in
5827 yes:)
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5830 ac_tool_warned=yes ;;
5831 esac
5832 STRIP=$ac_ct_STRIP
5834 else
5835 STRIP="$ac_cv_prog_STRIP"
5839 old_CC="$CC"
5840 old_CFLAGS="$CFLAGS"
5842 # Set sane defaults for various variables
5843 test -z "$AR" && AR=ar
5844 test -z "$AR_FLAGS" && AR_FLAGS=cru
5845 test -z "$AS" && AS=as
5846 test -z "$CC" && CC=cc
5847 test -z "$LTCC" && LTCC=$CC
5848 test -z "$DLLTOOL" && DLLTOOL=dlltool
5849 test -z "$LD" && LD=ld
5850 test -z "$LN_S" && LN_S="ln -s"
5851 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5852 test -z "$NM" && NM=nm
5853 test -z "$SED" && SED=sed
5854 test -z "$OBJDUMP" && OBJDUMP=objdump
5855 test -z "$RANLIB" && RANLIB=:
5856 test -z "$STRIP" && STRIP=:
5857 test -z "$ac_objext" && ac_objext=o
5859 # Determine commands to create old-style static archives.
5860 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5861 old_postinstall_cmds='chmod 644 $oldlib'
5862 old_postuninstall_cmds=
5864 if test -n "$RANLIB"; then
5865 case $host_os in
5866 openbsd*)
5867 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5870 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5872 esac
5873 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5876 for cc_temp in $compiler""; do
5877 case $cc_temp in
5878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5880 \-*) ;;
5881 *) break;;
5882 esac
5883 done
5884 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5887 # Only perform the check for file, if the check method requires it
5888 case $deplibs_check_method in
5889 file_magic*)
5890 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
5892 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
5893 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 case $MAGIC_CMD in
5897 [\\/*] | ?:[\\/]*)
5898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5901 lt_save_MAGIC_CMD="$MAGIC_CMD"
5902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5904 for ac_dir in $ac_dummy; do
5905 IFS="$lt_save_ifs"
5906 test -z "$ac_dir" && ac_dir=.
5907 if test -f $ac_dir/${ac_tool_prefix}file; then
5908 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5909 if test -n "$file_magic_test_file"; then
5910 case $deplibs_check_method in
5911 "file_magic "*)
5912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5915 $EGREP "$file_magic_regex" > /dev/null; then
5917 else
5918 cat <<EOF 1>&2
5920 *** Warning: the command libtool uses to detect shared libraries,
5921 *** $file_magic_cmd, produces output that libtool cannot recognize.
5922 *** The result is that libtool may fail to recognize shared libraries
5923 *** as such. This will affect the creation of libtool libraries that
5924 *** depend on shared libraries, but programs linked with such libtool
5925 *** libraries will work regardless of this problem. Nevertheless, you
5926 *** may want to report the problem to your system manager and/or to
5927 *** bug-libtool@gnu.org
5930 fi ;;
5931 esac
5933 break
5935 done
5936 IFS="$lt_save_ifs"
5937 MAGIC_CMD="$lt_save_MAGIC_CMD"
5939 esac
5942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5943 if test -n "$MAGIC_CMD"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
5945 $as_echo "$MAGIC_CMD" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5951 if test -z "$lt_cv_path_MAGIC_CMD"; then
5952 if test -n "$ac_tool_prefix"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
5954 $as_echo_n "checking for file... " >&6; }
5955 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 case $MAGIC_CMD in
5959 [\\/*] | ?:[\\/]*)
5960 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5963 lt_save_MAGIC_CMD="$MAGIC_CMD"
5964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5965 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5966 for ac_dir in $ac_dummy; do
5967 IFS="$lt_save_ifs"
5968 test -z "$ac_dir" && ac_dir=.
5969 if test -f $ac_dir/file; then
5970 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5971 if test -n "$file_magic_test_file"; then
5972 case $deplibs_check_method in
5973 "file_magic "*)
5974 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5976 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5977 $EGREP "$file_magic_regex" > /dev/null; then
5979 else
5980 cat <<EOF 1>&2
5982 *** Warning: the command libtool uses to detect shared libraries,
5983 *** $file_magic_cmd, produces output that libtool cannot recognize.
5984 *** The result is that libtool may fail to recognize shared libraries
5985 *** as such. This will affect the creation of libtool libraries that
5986 *** depend on shared libraries, but programs linked with such libtool
5987 *** libraries will work regardless of this problem. Nevertheless, you
5988 *** may want to report the problem to your system manager and/or to
5989 *** bug-libtool@gnu.org
5992 fi ;;
5993 esac
5995 break
5997 done
5998 IFS="$lt_save_ifs"
5999 MAGIC_CMD="$lt_save_MAGIC_CMD"
6001 esac
6004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6005 if test -n "$MAGIC_CMD"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6007 $as_echo "$MAGIC_CMD" >&6; }
6008 else
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6013 else
6014 MAGIC_CMD=:
6020 esac
6022 enable_dlopen=no
6023 enable_win32_dll=no
6025 # Check whether --enable-libtool-lock was given.
6026 if test "${enable_libtool_lock+set}" = set; then :
6027 enableval=$enable_libtool_lock;
6030 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6033 # Check whether --with-pic was given.
6034 if test "${with_pic+set}" = set; then :
6035 withval=$with_pic; pic_mode="$withval"
6036 else
6037 pic_mode=default
6040 test -z "$pic_mode" && pic_mode=default
6042 # Use C for the default configuration in the libtool script
6043 tagname=
6044 lt_save_CC="$CC"
6045 ac_ext=c
6046 ac_cpp='$CPP $CPPFLAGS'
6047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6052 # Source file extension for C test sources.
6053 ac_ext=c
6055 # Object file extension for compiled C test sources.
6056 objext=o
6057 objext=$objext
6059 # Code to be used in simple compile tests
6060 lt_simple_compile_test_code="int some_variable = 0;\n"
6062 # Code to be used in simple link tests
6063 lt_simple_link_test_code='int main(){return(0);}\n'
6066 # If no C compiler was specified, use CC.
6067 LTCC=${LTCC-"$CC"}
6069 # Allow CC to be a program name with arguments.
6070 compiler=$CC
6073 # save warnings/boilerplate of simple test code
6074 ac_outfile=conftest.$ac_objext
6075 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6076 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6077 _lt_compiler_boilerplate=`cat conftest.err`
6078 $rm conftest*
6080 ac_outfile=conftest.$ac_objext
6081 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6082 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6083 _lt_linker_boilerplate=`cat conftest.err`
6084 $rm conftest*
6088 # Check for any special shared library compilation flags.
6090 lt_prog_cc_shlib=
6091 if test "$GCC" = no; then
6092 case $host_os in
6093 sco3.2v5*)
6094 lt_prog_cc_shlib='-belf'
6096 esac
6098 if test -n "$lt_prog_cc_shlib"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6100 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6101 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6102 else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6104 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6105 lt_cv_prog_cc_can_build_shared=no
6111 # Check to make sure the static flag actually works.
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6114 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6115 if test "${lt_prog_compiler_static_works+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 lt_prog_compiler_static_works=no
6119 save_LDFLAGS="$LDFLAGS"
6120 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6121 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6122 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6123 # The linker can only warn and ignore the option if not recognized
6124 # So say no if there are warnings
6125 if test -s conftest.err; then
6126 # Append any errors to the config.log.
6127 cat conftest.err 1>&5
6128 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6129 $SED '/^$/d' conftest.err >conftest.er2
6130 if diff conftest.exp conftest.er2 >/dev/null; then
6131 lt_prog_compiler_static_works=yes
6133 else
6134 lt_prog_compiler_static_works=yes
6137 $rm conftest*
6138 LDFLAGS="$save_LDFLAGS"
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6142 $as_echo "$lt_prog_compiler_static_works" >&6; }
6144 if test x"$lt_prog_compiler_static_works" = xyes; then
6146 else
6147 lt_prog_compiler_static=
6153 lt_prog_compiler_no_builtin_flag=
6155 if test "$GCC" = yes; then
6156 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6160 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6161 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 lt_cv_prog_compiler_rtti_exceptions=no
6165 ac_outfile=conftest.$ac_objext
6166 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6167 lt_compiler_flag="-fno-rtti -fno-exceptions"
6168 # Insert the option either (1) after the last *FLAGS variable, or
6169 # (2) before a word containing "conftest.", or (3) at the end.
6170 # Note that $ac_compile itself does not contain backslashes and begins
6171 # with a dollar sign (not a hyphen), so the echo should work correctly.
6172 # The option is referenced via a variable to avoid confusing sed.
6173 lt_compile=`echo "$ac_compile" | $SED \
6174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6176 -e 's:$: $lt_compiler_flag:'`
6177 (eval echo "\"\$as_me:6177: $lt_compile\"" >&5)
6178 (eval "$lt_compile" 2>conftest.err)
6179 ac_status=$?
6180 cat conftest.err >&5
6181 echo "$as_me:6181: \$? = $ac_status" >&5
6182 if (exit $ac_status) && test -s "$ac_outfile"; then
6183 # The compiler can only warn and ignore the option if not recognized
6184 # So say no if there are warnings other than the usual output.
6185 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6186 $SED '/^$/d' conftest.err >conftest.er2
6187 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6188 lt_cv_prog_compiler_rtti_exceptions=yes
6191 $rm conftest*
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6195 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6197 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6198 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6199 else
6205 lt_prog_compiler_wl=
6206 lt_prog_compiler_pic=
6207 lt_prog_compiler_static=
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6210 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6212 if test "$GCC" = yes; then
6213 lt_prog_compiler_wl='-Wl,'
6214 lt_prog_compiler_static='-static'
6216 case $host_os in
6217 aix*)
6218 # All AIX code is PIC.
6219 if test "$host_cpu" = ia64; then
6220 # AIX 5 now supports IA64 processor
6221 lt_prog_compiler_static='-Bstatic'
6225 amigaos*)
6226 # FIXME: we need at least 68020 code to build shared libraries, but
6227 # adding the `-m68020' flag to GCC prevents building anything better,
6228 # like `-m68040'.
6229 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6233 # PIC is the default for these OSes.
6236 mingw* | pw32* | os2*)
6237 # This hack is so that the source file can tell whether it is being
6238 # built for inclusion in a dll (and should export symbols for example).
6239 lt_prog_compiler_pic='-DDLL_EXPORT'
6242 darwin* | rhapsody*)
6243 # PIC is the default on this platform
6244 # Common symbols not allowed in MH_DYLIB files
6245 lt_prog_compiler_pic='-fno-common'
6248 msdosdjgpp*)
6249 # Just because we use GCC doesn't mean we suddenly get shared libraries
6250 # on systems that don't support them.
6251 lt_prog_compiler_can_build_shared=no
6252 enable_shared=no
6255 sysv4*MP*)
6256 if test -d /usr/nec; then
6257 lt_prog_compiler_pic=-Kconform_pic
6261 hpux*)
6262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6263 # not for PA HP-UX.
6264 case $host_cpu in
6265 hppa*64*|ia64*)
6266 # +Z the default
6269 lt_prog_compiler_pic='-fPIC'
6271 esac
6275 lt_prog_compiler_pic='-fPIC'
6277 esac
6278 else
6279 # PORTME Check for flag to pass linker flags through the system compiler.
6280 case $host_os in
6281 aix*)
6282 lt_prog_compiler_wl='-Wl,'
6283 if test "$host_cpu" = ia64; then
6284 # AIX 5 now supports IA64 processor
6285 lt_prog_compiler_static='-Bstatic'
6286 else
6287 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6290 darwin*)
6291 # PIC is the default on this platform
6292 # Common symbols not allowed in MH_DYLIB files
6293 case $cc_basename in
6294 xlc*)
6295 lt_prog_compiler_pic='-qnocommon'
6296 lt_prog_compiler_wl='-Wl,'
6298 esac
6301 mingw* | pw32* | os2*)
6302 # This hack is so that the source file can tell whether it is being
6303 # built for inclusion in a dll (and should export symbols for example).
6304 lt_prog_compiler_pic='-DDLL_EXPORT'
6307 hpux9* | hpux10* | hpux11*)
6308 lt_prog_compiler_wl='-Wl,'
6309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6310 # not for PA HP-UX.
6311 case $host_cpu in
6312 hppa*64*|ia64*)
6313 # +Z the default
6316 lt_prog_compiler_pic='+Z'
6318 esac
6319 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6320 lt_prog_compiler_static='${wl}-a ${wl}archive'
6323 irix5* | irix6* | nonstopux*)
6324 lt_prog_compiler_wl='-Wl,'
6325 # PIC (with -KPIC) is the default.
6326 lt_prog_compiler_static='-non_shared'
6329 newsos6)
6330 lt_prog_compiler_pic='-KPIC'
6331 lt_prog_compiler_static='-Bstatic'
6334 linux*)
6335 case $cc_basename in
6336 icc* | ecc*)
6337 lt_prog_compiler_wl='-Wl,'
6338 lt_prog_compiler_pic='-KPIC'
6339 lt_prog_compiler_static='-static'
6341 pgcc* | pgf77* | pgf90* | pgf95*)
6342 # Portland Group compilers (*not* the Pentium gcc compiler,
6343 # which looks to be a dead project)
6344 lt_prog_compiler_wl='-Wl,'
6345 lt_prog_compiler_pic='-fpic'
6346 lt_prog_compiler_static='-Bstatic'
6348 ccc*)
6349 lt_prog_compiler_wl='-Wl,'
6350 # All Alpha code is PIC.
6351 lt_prog_compiler_static='-non_shared'
6353 esac
6356 osf3* | osf4* | osf5*)
6357 lt_prog_compiler_wl='-Wl,'
6358 # All OSF/1 code is PIC.
6359 lt_prog_compiler_static='-non_shared'
6362 sco3.2v5*)
6363 lt_prog_compiler_pic='-Kpic'
6364 lt_prog_compiler_static='-dn'
6367 solaris*)
6368 lt_prog_compiler_pic='-KPIC'
6369 lt_prog_compiler_static='-Bstatic'
6370 case $cc_basename in
6371 f77* | f90* | f95*)
6372 lt_prog_compiler_wl='-Qoption ld ';;
6374 lt_prog_compiler_wl='-Wl,';;
6375 esac
6378 sunos4*)
6379 lt_prog_compiler_wl='-Qoption ld '
6380 lt_prog_compiler_pic='-PIC'
6381 lt_prog_compiler_static='-Bstatic'
6384 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6385 lt_prog_compiler_wl='-Wl,'
6386 lt_prog_compiler_pic='-KPIC'
6387 lt_prog_compiler_static='-Bstatic'
6390 sysv4*MP*)
6391 if test -d /usr/nec ;then
6392 lt_prog_compiler_pic='-Kconform_pic'
6393 lt_prog_compiler_static='-Bstatic'
6397 unicos*)
6398 lt_prog_compiler_wl='-Wl,'
6399 lt_prog_compiler_can_build_shared=no
6402 uts4*)
6403 lt_prog_compiler_pic='-pic'
6404 lt_prog_compiler_static='-Bstatic'
6408 lt_prog_compiler_can_build_shared=no
6410 esac
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6414 $as_echo "$lt_prog_compiler_pic" >&6; }
6417 # Check to make sure the PIC flag actually works.
6419 if test -n "$lt_prog_compiler_pic"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6422 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6423 if test "${lt_prog_compiler_pic_works+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 lt_prog_compiler_pic_works=no
6427 ac_outfile=conftest.$ac_objext
6428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6429 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6430 # Insert the option either (1) after the last *FLAGS variable, or
6431 # (2) before a word containing "conftest.", or (3) at the end.
6432 # Note that $ac_compile itself does not contain backslashes and begins
6433 # with a dollar sign (not a hyphen), so the echo should work correctly.
6434 # The option is referenced via a variable to avoid confusing sed.
6435 lt_compile=`echo "$ac_compile" | $SED \
6436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6438 -e 's:$: $lt_compiler_flag:'`
6439 (eval echo "\"\$as_me:6439: $lt_compile\"" >&5)
6440 (eval "$lt_compile" 2>conftest.err)
6441 ac_status=$?
6442 cat conftest.err >&5
6443 echo "$as_me:6443: \$? = $ac_status" >&5
6444 if (exit $ac_status) && test -s "$ac_outfile"; then
6445 # The compiler can only warn and ignore the option if not recognized
6446 # So say no if there are warnings other than the usual output.
6447 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6448 $SED '/^$/d' conftest.err >conftest.er2
6449 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6450 lt_prog_compiler_pic_works=yes
6453 $rm conftest*
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
6457 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6459 if test x"$lt_prog_compiler_pic_works" = xyes; then
6460 case $lt_prog_compiler_pic in
6461 "" | " "*) ;;
6462 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6463 esac
6464 else
6465 lt_prog_compiler_pic=
6466 lt_prog_compiler_can_build_shared=no
6470 case $host_os in
6471 # For platforms which do not support PIC, -DPIC is meaningless:
6472 *djgpp*)
6473 lt_prog_compiler_pic=
6476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6478 esac
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6481 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6482 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 lt_cv_prog_compiler_c_o=no
6486 $rm -r conftest 2>/dev/null
6487 mkdir conftest
6488 cd conftest
6489 mkdir out
6490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6492 lt_compiler_flag="-o out/conftest2.$ac_objext"
6493 # Insert the option either (1) after the last *FLAGS variable, or
6494 # (2) before a word containing "conftest.", or (3) at the end.
6495 # Note that $ac_compile itself does not contain backslashes and begins
6496 # with a dollar sign (not a hyphen), so the echo should work correctly.
6497 lt_compile=`echo "$ac_compile" | $SED \
6498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6500 -e 's:$: $lt_compiler_flag:'`
6501 (eval echo "\"\$as_me:6501: $lt_compile\"" >&5)
6502 (eval "$lt_compile" 2>out/conftest.err)
6503 ac_status=$?
6504 cat out/conftest.err >&5
6505 echo "$as_me:6505: \$? = $ac_status" >&5
6506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6507 then
6508 # The compiler can only warn and ignore the option if not recognized
6509 # So say no if there are warnings
6510 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6511 $SED '/^$/d' out/conftest.err >out/conftest.er2
6512 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6513 lt_cv_prog_compiler_c_o=yes
6516 chmod u+w . 2>&5
6517 $rm conftest*
6518 # SGI C++ compiler will create directory out/ii_files/ for
6519 # template instantiation
6520 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6521 $rm out/* && rmdir out
6522 cd ..
6523 rmdir conftest
6524 $rm conftest*
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
6528 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6531 hard_links="nottested"
6532 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6533 # do not overwrite the value of need_locks provided by the user
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
6535 $as_echo_n "checking if we can lock with hard links... " >&6; }
6536 hard_links=yes
6537 $rm conftest*
6538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6539 touch conftest.a
6540 ln conftest.a conftest.b 2>&5 || hard_links=no
6541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
6543 $as_echo "$hard_links" >&6; }
6544 if test "$hard_links" = no; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6546 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6547 need_locks=warn
6549 else
6550 need_locks=no
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6554 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6556 runpath_var=
6557 allow_undefined_flag=
6558 enable_shared_with_static_runtimes=no
6559 archive_cmds=
6560 archive_expsym_cmds=
6561 old_archive_From_new_cmds=
6562 old_archive_from_expsyms_cmds=
6563 export_dynamic_flag_spec=
6564 whole_archive_flag_spec=
6565 thread_safe_flag_spec=
6566 hardcode_libdir_flag_spec=
6567 hardcode_libdir_flag_spec_ld=
6568 hardcode_libdir_separator=
6569 hardcode_direct=no
6570 hardcode_minus_L=no
6571 hardcode_shlibpath_var=unsupported
6572 link_all_deplibs=unknown
6573 hardcode_automatic=no
6574 module_cmds=
6575 module_expsym_cmds=
6576 always_export_symbols=no
6577 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6578 # include_expsyms should be a list of space-separated symbols to be *always*
6579 # included in the symbol list
6580 include_expsyms=
6581 # exclude_expsyms can be an extended regexp of symbols to exclude
6582 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6583 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6584 # as well as any symbol that contains `d'.
6585 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6587 # platforms (ab)use it in PIC code, but their linkers get confused if
6588 # the symbol is explicitly referenced. Since portable code cannot
6589 # rely on this symbol name, it's probably fine to never include it in
6590 # preloaded symbol tables.
6591 extract_expsyms_cmds=
6592 # Just being paranoid about ensuring that cc_basename is set.
6593 for cc_temp in $compiler""; do
6594 case $cc_temp in
6595 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6596 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6597 \-*) ;;
6598 *) break;;
6599 esac
6600 done
6601 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6603 case $host_os in
6604 cygwin* | mingw* | pw32*)
6605 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6606 # When not using gcc, we currently assume that we are using
6607 # Microsoft Visual C++.
6608 if test "$GCC" != yes; then
6609 with_gnu_ld=no
6612 openbsd*)
6613 with_gnu_ld=no
6615 esac
6617 ld_shlibs=yes
6618 if test "$with_gnu_ld" = yes; then
6619 # If archive_cmds runs LD, not CC, wlarc should be empty
6620 wlarc='${wl}'
6622 # Set some defaults for GNU ld with shared library support. These
6623 # are reset later if shared libraries are not supported. Putting them
6624 # here allows them to be overridden if necessary.
6625 runpath_var=LD_RUN_PATH
6626 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6627 export_dynamic_flag_spec='${wl}--export-dynamic'
6628 # ancient GNU ld didn't support --whole-archive et. al.
6629 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6630 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6631 else
6632 whole_archive_flag_spec=
6634 supports_anon_versioning=no
6635 case `$LD -v 2>/dev/null` in
6636 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6637 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6638 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6639 *\ 2.11.*) ;; # other 2.11 versions
6640 *) supports_anon_versioning=yes ;;
6641 esac
6643 # See if GNU ld supports shared libraries.
6644 case $host_os in
6645 aix3* | aix4* | aix5*)
6646 # On AIX/PPC, the GNU linker is very broken
6647 if test "$host_cpu" != ia64; then
6648 ld_shlibs=no
6649 cat <<EOF 1>&2
6651 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6652 *** to be unable to reliably create shared libraries on AIX.
6653 *** Therefore, libtool is disabling shared libraries support. If you
6654 *** really care for shared libraries, you may want to modify your PATH
6655 *** so that a non-GNU linker is found, and then restart.
6661 amigaos*)
6662 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)'
6663 hardcode_libdir_flag_spec='-L$libdir'
6664 hardcode_minus_L=yes
6666 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6667 # that the semantics of dynamic libraries on AmigaOS, at least up
6668 # to version 4, is to share data among multiple programs linked
6669 # with the same dynamic library. Since this doesn't match the
6670 # behavior of shared libraries on other platforms, we can't use
6671 # them.
6672 ld_shlibs=no
6675 beos*)
6676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6677 allow_undefined_flag=unsupported
6678 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6679 # support --undefined. This deserves some investigation. FIXME
6680 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6681 else
6682 ld_shlibs=no
6686 cygwin* | mingw* | pw32*)
6687 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6688 # as there is no search path for DLLs.
6689 hardcode_libdir_flag_spec='-L$libdir'
6690 allow_undefined_flag=unsupported
6691 always_export_symbols=no
6692 enable_shared_with_static_runtimes=yes
6693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6695 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6697 # If the export-symbols file already is a .def file (1st line
6698 # is EXPORTS), use it as is; otherwise, prepend...
6699 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6700 cp $export_symbols $output_objdir/$soname.def;
6701 else
6702 echo EXPORTS > $output_objdir/$soname.def;
6703 cat $export_symbols >> $output_objdir/$soname.def;
6705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6706 else
6707 ld_shlibs=no
6711 linux*)
6712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6713 tmp_addflag=
6714 case $cc_basename,$host_cpu in
6715 pgcc*) # Portland Group C compiler
6716 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6717 tmp_addflag=' $pic_flag'
6719 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6720 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6721 tmp_addflag=' $pic_flag -Mnomain' ;;
6722 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6723 tmp_addflag=' -i_dynamic' ;;
6724 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6725 tmp_addflag=' -i_dynamic -nofor_main' ;;
6726 ifc* | ifort*) # Intel Fortran compiler
6727 tmp_addflag=' -nofor_main' ;;
6728 esac
6729 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6731 if test $supports_anon_versioning = yes; then
6732 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6734 $echo "local: *; };" >> $output_objdir/$libname.ver~
6735 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6737 else
6738 ld_shlibs=no
6742 netbsd*)
6743 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6744 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6745 wlarc=
6746 else
6747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6752 solaris* | sysv5*)
6753 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6754 ld_shlibs=no
6755 cat <<EOF 1>&2
6757 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6758 *** create shared libraries on Solaris systems. Therefore, libtool
6759 *** is disabling shared libraries support. We urge you to upgrade GNU
6760 *** binutils to release 2.9.1 or newer. Another option is to modify
6761 *** your PATH or compiler configuration so that the native linker is
6762 *** used, and then restart.
6765 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6768 else
6769 ld_shlibs=no
6773 sunos4*)
6774 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6775 wlarc=
6776 hardcode_direct=yes
6777 hardcode_shlibpath_var=no
6781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6784 else
6785 ld_shlibs=no
6788 esac
6790 if test "$ld_shlibs" = no; then
6791 runpath_var=
6792 hardcode_libdir_flag_spec=
6793 export_dynamic_flag_spec=
6794 whole_archive_flag_spec=
6796 else
6797 # PORTME fill in a description of your system's linker (not GNU ld)
6798 case $host_os in
6799 aix3*)
6800 allow_undefined_flag=unsupported
6801 always_export_symbols=yes
6802 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'
6803 # Note: this linker hardcodes the directories in LIBPATH if there
6804 # are no directories specified by -L.
6805 hardcode_minus_L=yes
6806 if test "$GCC" = yes && test -z "$link_static_flag"; then
6807 # Neither direct hardcoding nor static linking is supported with a
6808 # broken collect2.
6809 hardcode_direct=unsupported
6813 aix4* | aix5*)
6814 if test "$host_cpu" = ia64; then
6815 # On IA64, the linker does run time linking by default, so we don't
6816 # have to do anything special.
6817 aix_use_runtimelinking=no
6818 exp_sym_flag='-Bexport'
6819 no_entry_flag=""
6820 else
6821 # If we're using GNU nm, then we don't want the "-C" option.
6822 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6823 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6824 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6825 else
6826 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6828 aix_use_runtimelinking=no
6830 # Test if we are trying to use run time linking or normal
6831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6832 # need to do runtime linking.
6833 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6834 for ld_flag in $LDFLAGS; do
6835 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6836 aix_use_runtimelinking=yes
6837 break
6839 done
6840 esac
6842 exp_sym_flag='-bexport'
6843 no_entry_flag='-bnoentry'
6846 # When large executables or shared objects are built, AIX ld can
6847 # have problems creating the table of contents. If linking a library
6848 # or program results in "error TOC overflow" add -mminimal-toc to
6849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6852 archive_cmds=''
6853 hardcode_direct=yes
6854 hardcode_libdir_separator=':'
6855 link_all_deplibs=yes
6857 if test "$GCC" = yes; then
6858 case $host_os in aix4.[012]|aix4.[012].*)
6859 # We only want to do this on AIX 4.2 and lower, the check
6860 # below for broken collect2 doesn't work under 4.3+
6861 collect2name=`${CC} -print-prog-name=collect2`
6862 if test -f "$collect2name" && \
6863 strings "$collect2name" | grep resolve_lib_name >/dev/null
6864 then
6865 # We have reworked collect2
6866 hardcode_direct=yes
6867 else
6868 # We have old collect2
6869 hardcode_direct=unsupported
6870 # It fails to find uninstalled libraries when the uninstalled
6871 # path is not listed in the libpath. Setting hardcode_minus_L
6872 # to unsupported forces relinking
6873 hardcode_minus_L=yes
6874 hardcode_libdir_flag_spec='-L$libdir'
6875 hardcode_libdir_separator=
6877 esac
6878 shared_flag='-shared'
6879 if test "$aix_use_runtimelinking" = yes; then
6880 shared_flag="$shared_flag "'${wl}-G'
6882 else
6883 # not using gcc
6884 if test "$host_cpu" = ia64; then
6885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6886 # chokes on -Wl,-G. The following line is correct:
6887 shared_flag='-G'
6888 else
6889 if test "$aix_use_runtimelinking" = yes; then
6890 shared_flag='${wl}-G'
6891 else
6892 shared_flag='${wl}-bM:SRE'
6897 # It seems that -bexpall does not export symbols beginning with
6898 # underscore (_), so it is better to generate a list of symbols to export.
6899 always_export_symbols=yes
6900 if test "$aix_use_runtimelinking" = yes; then
6901 # Warning - without using the other runtime loading flags (-brtl),
6902 # -berok will link without error, but may produce a broken library.
6903 allow_undefined_flag='-berok'
6904 # Determine the default libpath from the value encoded in an empty executable.
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6909 main ()
6913 return 0;
6915 _ACEOF
6916 if ac_fn_c_try_link "$LINENO"; then :
6918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6920 # Check for a 64-bit object if we didn't find anything.
6921 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6922 }'`; fi
6924 rm -f core conftest.err conftest.$ac_objext \
6925 conftest$ac_exeext conftest.$ac_ext
6926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6928 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6929 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6930 else
6931 if test "$host_cpu" = ia64; then
6932 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6933 allow_undefined_flag="-z nodefs"
6934 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6935 else
6936 # Determine the default libpath from the value encoded in an empty executable.
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6941 main ()
6945 return 0;
6947 _ACEOF
6948 if ac_fn_c_try_link "$LINENO"; then :
6950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6952 # Check for a 64-bit object if we didn't find anything.
6953 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6954 }'`; fi
6956 rm -f core conftest.err conftest.$ac_objext \
6957 conftest$ac_exeext conftest.$ac_ext
6958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6960 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6961 # Warning - without using the other run time loading flags,
6962 # -berok will link without error, but may produce a broken library.
6963 no_undefined_flag=' ${wl}-bernotok'
6964 allow_undefined_flag=' ${wl}-berok'
6965 # -bexpall does not export symbols beginning with underscore (_)
6966 always_export_symbols=yes
6967 # Exported symbols can be pulled into shared objects from archives
6968 whole_archive_flag_spec=' '
6969 archive_cmds_need_lc=yes
6970 # This is similar to how AIX traditionally builds its shared libraries.
6971 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6976 amigaos*)
6977 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)'
6978 hardcode_libdir_flag_spec='-L$libdir'
6979 hardcode_minus_L=yes
6980 # see comment about different semantics on the GNU ld section
6981 ld_shlibs=no
6984 bsdi[45]*)
6985 export_dynamic_flag_spec=-rdynamic
6988 cygwin* | mingw* | pw32*)
6989 # When not using gcc, we currently assume that we are using
6990 # Microsoft Visual C++.
6991 # hardcode_libdir_flag_spec is actually meaningless, as there is
6992 # no search path for DLLs.
6993 hardcode_libdir_flag_spec=' '
6994 allow_undefined_flag=unsupported
6995 # Tell ltmain to make .lib files, not .a files.
6996 libext=lib
6997 # Tell ltmain to make .dll files, not .so files.
6998 shrext_cmds=".dll"
6999 # FIXME: Setting linknames here is a bad hack.
7000 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7001 # The linker will automatically build a .lib file if we build a DLL.
7002 old_archive_From_new_cmds='true'
7003 # FIXME: Should let the user specify the lib program.
7004 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7005 fix_srcfile_path='`cygpath -w "$srcfile"`'
7006 enable_shared_with_static_runtimes=yes
7009 darwin* | rhapsody*)
7010 case $host_os in
7011 rhapsody* | darwin1.[012])
7012 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7014 *) # Darwin 1.3 on
7015 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7016 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7017 else
7018 case ${MACOSX_DEPLOYMENT_TARGET} in
7019 10.[012])
7020 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7022 10.*)
7023 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7025 esac
7028 esac
7029 archive_cmds_need_lc=no
7030 hardcode_direct=no
7031 hardcode_automatic=yes
7032 hardcode_shlibpath_var=unsupported
7033 whole_archive_flag_spec=''
7034 link_all_deplibs=yes
7035 if test "$GCC" = yes ; then
7036 output_verbose_link_cmd='echo'
7037 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7038 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7039 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7040 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7041 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7042 else
7043 case $cc_basename in
7044 xlc*)
7045 output_verbose_link_cmd='echo'
7046 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7047 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7048 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7049 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7050 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7053 ld_shlibs=no
7055 esac
7059 dgux*)
7060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7061 hardcode_libdir_flag_spec='-L$libdir'
7062 hardcode_shlibpath_var=no
7065 freebsd1*)
7066 ld_shlibs=no
7069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7070 # support. Future versions do this automatically, but an explicit c++rt0.o
7071 # does not break anything, and helps significantly (at the cost of a little
7072 # extra space).
7073 freebsd2.2*)
7074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7075 hardcode_libdir_flag_spec='-R$libdir'
7076 hardcode_direct=yes
7077 hardcode_shlibpath_var=no
7080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7081 freebsd2*)
7082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7083 hardcode_direct=yes
7084 hardcode_minus_L=yes
7085 hardcode_shlibpath_var=no
7088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7089 freebsd* | kfreebsd*-gnu | dragonfly*)
7090 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7091 hardcode_libdir_flag_spec='-R$libdir'
7092 hardcode_direct=yes
7093 hardcode_shlibpath_var=no
7096 hpux9*)
7097 if test "$GCC" = yes; then
7098 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7099 else
7100 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7103 hardcode_libdir_separator=:
7104 hardcode_direct=yes
7106 # hardcode_minus_L: Not really in the search PATH,
7107 # but as the default location of the library.
7108 hardcode_minus_L=yes
7109 export_dynamic_flag_spec='${wl}-E'
7112 hpux10* | hpux11*)
7113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7114 case $host_cpu in
7115 hppa*64*|ia64*)
7116 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7121 esac
7122 else
7123 case $host_cpu in
7124 hppa*64*|ia64*)
7125 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7128 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7130 esac
7132 if test "$with_gnu_ld" = no; then
7133 case $host_cpu in
7134 hppa*64*)
7135 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7136 hardcode_libdir_flag_spec_ld='+b $libdir'
7137 hardcode_libdir_separator=:
7138 hardcode_direct=no
7139 hardcode_shlibpath_var=no
7141 ia64*)
7142 hardcode_libdir_flag_spec='-L$libdir'
7143 hardcode_direct=no
7144 hardcode_shlibpath_var=no
7146 # hardcode_minus_L: Not really in the search PATH,
7147 # but as the default location of the library.
7148 hardcode_minus_L=yes
7151 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7152 hardcode_libdir_separator=:
7153 hardcode_direct=yes
7154 export_dynamic_flag_spec='${wl}-E'
7156 # hardcode_minus_L: Not really in the search PATH,
7157 # but as the default location of the library.
7158 hardcode_minus_L=yes
7160 esac
7164 irix5* | irix6* | nonstopux*)
7165 if test "$GCC" = yes; then
7166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7167 else
7168 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7169 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7172 hardcode_libdir_separator=:
7173 link_all_deplibs=yes
7176 netbsd*)
7177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7179 else
7180 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7182 hardcode_libdir_flag_spec='-R$libdir'
7183 hardcode_direct=yes
7184 hardcode_shlibpath_var=no
7187 newsos6)
7188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7189 hardcode_direct=yes
7190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7191 hardcode_libdir_separator=:
7192 hardcode_shlibpath_var=no
7195 openbsd*)
7196 hardcode_direct=yes
7197 hardcode_shlibpath_var=no
7198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7200 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7202 export_dynamic_flag_spec='${wl}-E'
7203 else
7204 case $host_os in
7205 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7207 hardcode_libdir_flag_spec='-R$libdir'
7210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7213 esac
7217 os2*)
7218 hardcode_libdir_flag_spec='-L$libdir'
7219 hardcode_minus_L=yes
7220 allow_undefined_flag=unsupported
7221 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7222 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7225 osf3*)
7226 if test "$GCC" = yes; then
7227 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7228 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7229 else
7230 allow_undefined_flag=' -expect_unresolved \*'
7231 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7234 hardcode_libdir_separator=:
7237 osf4* | osf5*) # as osf3* with the addition of -msym flag
7238 if test "$GCC" = yes; then
7239 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7240 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7242 else
7243 allow_undefined_flag=' -expect_unresolved \*'
7244 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7245 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7246 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7248 # Both c and cxx compiler support -rpath directly
7249 hardcode_libdir_flag_spec='-rpath $libdir'
7251 hardcode_libdir_separator=:
7254 sco3.2v5*)
7255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7256 hardcode_shlibpath_var=no
7257 export_dynamic_flag_spec='${wl}-Bexport'
7258 runpath_var=LD_RUN_PATH
7259 hardcode_runpath_var=yes
7262 solaris*)
7263 no_undefined_flag=' -z text'
7264 if test "$GCC" = yes; then
7265 wlarc='${wl}'
7266 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7267 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7268 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7269 else
7270 wlarc=''
7271 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7272 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7273 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7275 hardcode_libdir_flag_spec='-R$libdir'
7276 hardcode_shlibpath_var=no
7277 case $host_os in
7278 solaris2.[0-5] | solaris2.[0-5].*) ;;
7280 # The compiler driver will combine linker options so we
7281 # cannot just pass the convience library names through
7282 # without $wl, iff we do not link with $LD.
7283 # Luckily, gcc supports the same syntax we need for Sun Studio.
7284 # Supported since Solaris 2.6 (maybe 2.5.1?)
7285 case $wlarc in
7287 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7289 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7290 esac ;;
7291 esac
7292 link_all_deplibs=yes
7295 sunos4*)
7296 if test "x$host_vendor" = xsequent; then
7297 # Use $CC to link under sequent, because it throws in some extra .o
7298 # files that make .init and .fini sections work.
7299 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7300 else
7301 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7303 hardcode_libdir_flag_spec='-L$libdir'
7304 hardcode_direct=yes
7305 hardcode_minus_L=yes
7306 hardcode_shlibpath_var=no
7309 sysv4)
7310 case $host_vendor in
7311 sni)
7312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7313 hardcode_direct=yes # is this really true???
7315 siemens)
7316 ## LD is ld it makes a PLAMLIB
7317 ## CC just makes a GrossModule.
7318 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7319 reload_cmds='$CC -r -o $output$reload_objs'
7320 hardcode_direct=no
7322 motorola)
7323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7324 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7326 esac
7327 runpath_var='LD_RUN_PATH'
7328 hardcode_shlibpath_var=no
7331 sysv4.3*)
7332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333 hardcode_shlibpath_var=no
7334 export_dynamic_flag_spec='-Bexport'
7337 sysv4*MP*)
7338 if test -d /usr/nec; then
7339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7340 hardcode_shlibpath_var=no
7341 runpath_var=LD_RUN_PATH
7342 hardcode_runpath_var=yes
7343 ld_shlibs=yes
7347 sysv4.2uw2*)
7348 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7349 hardcode_direct=yes
7350 hardcode_minus_L=no
7351 hardcode_shlibpath_var=no
7352 hardcode_runpath_var=yes
7353 runpath_var=LD_RUN_PATH
7356 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7357 no_undefined_flag='${wl}-z ${wl}text'
7358 if test "$GCC" = yes; then
7359 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7360 else
7361 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7363 runpath_var='LD_RUN_PATH'
7364 hardcode_shlibpath_var=no
7367 sysv5*)
7368 no_undefined_flag=' -z text'
7369 # $CC -shared without GNU ld will not create a library from C++
7370 # object files and a static libstdc++, better avoid it by now
7371 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7372 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7373 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7374 hardcode_libdir_flag_spec=
7375 hardcode_shlibpath_var=no
7376 runpath_var='LD_RUN_PATH'
7379 uts4*)
7380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7381 hardcode_libdir_flag_spec='-L$libdir'
7382 hardcode_shlibpath_var=no
7386 ld_shlibs=no
7388 esac
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7392 $as_echo "$ld_shlibs" >&6; }
7393 test "$ld_shlibs" = no && can_build_shared=no
7395 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7396 if test "$GCC" = yes; then
7397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7401 # Do we need to explicitly link libc?
7403 case "x$archive_cmds_need_lc" in
7404 x|xyes)
7405 # Assume -lc should be added
7406 archive_cmds_need_lc=yes
7408 if test "$enable_shared" = yes && test "$GCC" = yes; then
7409 case $archive_cmds in
7410 *'~'*)
7411 # FIXME: we may have to deal with multi-command sequences.
7413 '$CC '*)
7414 # Test whether the compiler implicitly links with -lc since on some
7415 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7416 # to ld, don't add -lc before -lgcc.
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7418 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7419 $rm conftest*
7420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7423 (eval $ac_compile) 2>&5
7424 ac_status=$?
7425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; } 2>conftest.err; then
7427 soname=conftest
7428 lib=conftest
7429 libobjs=conftest.$ac_objext
7430 deplibs=
7431 wl=$lt_prog_compiler_wl
7432 compiler_flags=-v
7433 linker_flags=-v
7434 verstring=
7435 output_objdir=.
7436 libname=conftest
7437 lt_save_allow_undefined_flag=$allow_undefined_flag
7438 allow_undefined_flag=
7439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7440 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7441 ac_status=$?
7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443 test $ac_status = 0; }
7444 then
7445 archive_cmds_need_lc=no
7446 else
7447 archive_cmds_need_lc=yes
7449 allow_undefined_flag=$lt_save_allow_undefined_flag
7450 else
7451 cat conftest.err 1>&5
7453 $rm conftest*
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
7455 $as_echo "$archive_cmds_need_lc" >&6; }
7457 esac
7460 esac
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
7463 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7464 library_names_spec=
7465 libname_spec='lib$name'
7466 soname_spec=
7467 shrext_cmds=".so"
7468 postinstall_cmds=
7469 postuninstall_cmds=
7470 finish_cmds=
7471 finish_eval=
7472 shlibpath_var=
7473 shlibpath_overrides_runpath=unknown
7474 version_type=none
7475 dynamic_linker="$host_os ld.so"
7476 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7477 if test "$GCC" = yes; then
7478 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7479 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7480 # if the path contains ";" then we assume it to be the separator
7481 # otherwise default to the standard path separator (i.e. ":") - it is
7482 # assumed that no part of a normal pathname contains ";" but that should
7483 # okay in the real world where ";" in dirpaths is itself problematic.
7484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7485 else
7486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7488 else
7489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7491 need_lib_prefix=unknown
7492 hardcode_into_libs=no
7494 # when you set need_version to no, make sure it does not cause -set_version
7495 # flags to be left without arguments
7496 need_version=unknown
7498 case $host_os in
7499 aix3*)
7500 version_type=linux
7501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7502 shlibpath_var=LIBPATH
7504 # AIX 3 has no versioning support, so we append a major version to the name.
7505 soname_spec='${libname}${release}${shared_ext}$major'
7508 aix4* | aix5*)
7509 version_type=linux
7510 need_lib_prefix=no
7511 need_version=no
7512 hardcode_into_libs=yes
7513 if test "$host_cpu" = ia64; then
7514 # AIX 5 supports IA64
7515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7516 shlibpath_var=LD_LIBRARY_PATH
7517 else
7518 # With GCC up to 2.95.x, collect2 would create an import file
7519 # for dependence libraries. The import file would start with
7520 # the line `#! .'. This would cause the generated library to
7521 # depend on `.', always an invalid library. This was fixed in
7522 # development snapshots of GCC prior to 3.0.
7523 case $host_os in
7524 aix4 | aix4.[01] | aix4.[01].*)
7525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7526 echo ' yes '
7527 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7529 else
7530 can_build_shared=no
7533 esac
7534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7535 # soname into executable. Probably we can add versioning support to
7536 # collect2, so additional links can be useful in future.
7537 if test "$aix_use_runtimelinking" = yes; then
7538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7539 # instead of lib<name>.a to let people know that these are not
7540 # typical AIX shared libraries.
7541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7542 else
7543 # We preserve .a as extension for shared libraries through AIX4.2
7544 # and later when we are not doing run time linking.
7545 library_names_spec='${libname}${release}.a $libname.a'
7546 soname_spec='${libname}${release}${shared_ext}$major'
7548 shlibpath_var=LIBPATH
7552 amigaos*)
7553 library_names_spec='$libname.ixlibrary $libname.a'
7554 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7555 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
7558 beos*)
7559 library_names_spec='${libname}${shared_ext}'
7560 dynamic_linker="$host_os ld.so"
7561 shlibpath_var=LIBRARY_PATH
7564 bsdi[45]*)
7565 version_type=linux
7566 need_version=no
7567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7568 soname_spec='${libname}${release}${shared_ext}$major'
7569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7570 shlibpath_var=LD_LIBRARY_PATH
7571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7573 # the default ld.so.conf also contains /usr/contrib/lib and
7574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7575 # libtool to hard-code these into programs
7578 cygwin* | mingw* | pw32*)
7579 version_type=windows
7580 shrext_cmds=".dll"
7581 need_version=no
7582 need_lib_prefix=no
7584 case $GCC,$host_os in
7585 yes,cygwin* | yes,mingw* | yes,pw32*)
7586 library_names_spec='$libname.dll.a'
7587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7588 postinstall_cmds='base_file=`basename \${file}`~
7589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7590 dldir=$destdir/`dirname \$dlpath`~
7591 test -d \$dldir || mkdir -p \$dldir~
7592 $install_prog $dir/$dlname \$dldir/$dlname~
7593 chmod a+x \$dldir/$dlname'
7594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7595 dlpath=$dir/\$dldll~
7596 $rm \$dlpath'
7597 shlibpath_overrides_runpath=yes
7599 case $host_os in
7600 cygwin*)
7601 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7605 mingw*)
7606 # MinGW DLLs use traditional 'lib' prefix
7607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7608 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7609 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7610 # It is most probably a Windows format PATH printed by
7611 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7612 # path with ; separators, and with drive letters. We can handle the
7613 # drive letters (cygwin fileutils understands them), so leave them,
7614 # especially as we might pass files found there to a mingw objdump,
7615 # which wouldn't understand a cygwinified path. Ahh.
7616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7617 else
7618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7621 pw32*)
7622 # pw32 DLLs use 'pw' prefix rather than 'lib'
7623 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7625 esac
7629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7631 esac
7632 dynamic_linker='Win32 ld.exe'
7633 # FIXME: first we should search . and the directory the executable is in
7634 shlibpath_var=PATH
7637 darwin* | rhapsody*)
7638 dynamic_linker="$host_os dyld"
7639 version_type=darwin
7640 need_lib_prefix=no
7641 need_version=no
7642 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7643 soname_spec='${libname}${release}${major}$shared_ext'
7644 shlibpath_overrides_runpath=yes
7645 shlibpath_var=DYLD_LIBRARY_PATH
7646 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7647 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7648 if test "$GCC" = yes; then
7649 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7650 else
7651 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7656 dgux*)
7657 version_type=linux
7658 need_lib_prefix=no
7659 need_version=no
7660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7661 soname_spec='${libname}${release}${shared_ext}$major'
7662 shlibpath_var=LD_LIBRARY_PATH
7665 freebsd1*)
7666 dynamic_linker=no
7669 kfreebsd*-gnu)
7670 version_type=linux
7671 need_lib_prefix=no
7672 need_version=no
7673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7674 soname_spec='${libname}${release}${shared_ext}$major'
7675 shlibpath_var=LD_LIBRARY_PATH
7676 shlibpath_overrides_runpath=no
7677 hardcode_into_libs=yes
7678 dynamic_linker='GNU ld.so'
7681 freebsd* | dragonfly*)
7682 # DragonFly does not have aout. When/if they implement a new
7683 # versioning mechanism, adjust this.
7684 if test -x /usr/bin/objformat; then
7685 objformat=`/usr/bin/objformat`
7686 else
7687 case $host_os in
7688 freebsd[123]*) objformat=aout ;;
7689 *) objformat=elf ;;
7690 esac
7692 version_type=freebsd-$objformat
7693 case $version_type in
7694 freebsd-elf*)
7695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7696 need_version=no
7697 need_lib_prefix=no
7699 freebsd-*)
7700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7701 need_version=yes
7703 esac
7704 shlibpath_var=LD_LIBRARY_PATH
7705 case $host_os in
7706 freebsd2*)
7707 shlibpath_overrides_runpath=yes
7709 freebsd3.[01]* | freebsdelf3.[01]*)
7710 shlibpath_overrides_runpath=yes
7711 hardcode_into_libs=yes
7713 *) # from 3.2 on
7714 shlibpath_overrides_runpath=no
7715 hardcode_into_libs=yes
7717 esac
7720 gnu*)
7721 version_type=linux
7722 need_lib_prefix=no
7723 need_version=no
7724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7725 soname_spec='${libname}${release}${shared_ext}$major'
7726 shlibpath_var=LD_LIBRARY_PATH
7727 hardcode_into_libs=yes
7730 hpux9* | hpux10* | hpux11*)
7731 # Give a soname corresponding to the major version so that dld.sl refuses to
7732 # link against other versions.
7733 version_type=sunos
7734 need_lib_prefix=no
7735 need_version=no
7736 case $host_cpu in
7737 ia64*)
7738 shrext_cmds='.so'
7739 hardcode_into_libs=yes
7740 dynamic_linker="$host_os dld.so"
7741 shlibpath_var=LD_LIBRARY_PATH
7742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7744 soname_spec='${libname}${release}${shared_ext}$major'
7745 if test "X$HPUX_IA64_MODE" = X32; then
7746 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7747 else
7748 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7752 hppa*64*)
7753 shrext_cmds='.sl'
7754 hardcode_into_libs=yes
7755 dynamic_linker="$host_os dld.sl"
7756 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7759 soname_spec='${libname}${release}${shared_ext}$major'
7760 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7764 shrext_cmds='.sl'
7765 dynamic_linker="$host_os dld.sl"
7766 shlibpath_var=SHLIB_PATH
7767 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7769 soname_spec='${libname}${release}${shared_ext}$major'
7771 esac
7772 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7773 postinstall_cmds='chmod 555 $lib'
7776 irix5* | irix6* | nonstopux*)
7777 case $host_os in
7778 nonstopux*) version_type=nonstopux ;;
7780 if test "$lt_cv_prog_gnu_ld" = yes; then
7781 version_type=linux
7782 else
7783 version_type=irix
7784 fi ;;
7785 esac
7786 need_lib_prefix=no
7787 need_version=no
7788 soname_spec='${libname}${release}${shared_ext}$major'
7789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7790 case $host_os in
7791 irix5* | nonstopux*)
7792 libsuff= shlibsuff=
7795 case $LD in # libtool.m4 will add one of these switches to LD
7796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7797 libsuff= shlibsuff= libmagic=32-bit;;
7798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7799 libsuff=32 shlibsuff=N32 libmagic=N32;;
7800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7802 *) libsuff= shlibsuff= libmagic=never-match;;
7803 esac
7805 esac
7806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7807 shlibpath_overrides_runpath=no
7808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7810 hardcode_into_libs=yes
7813 # No shared lib support for Linux oldld, aout, or coff.
7814 linux*oldld* | linux*aout* | linux*coff*)
7815 dynamic_linker=no
7818 # This must be Linux ELF.
7819 linux*)
7820 version_type=linux
7821 need_lib_prefix=no
7822 need_version=no
7823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7824 soname_spec='${libname}${release}${shared_ext}$major'
7825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7826 shlibpath_var=LD_LIBRARY_PATH
7827 shlibpath_overrides_runpath=no
7828 # This implies no fast_install, which is unacceptable.
7829 # Some rework will be needed to allow for fast_install
7830 # before this can be enabled.
7831 hardcode_into_libs=yes
7833 # Append ld.so.conf contents to the search path
7834 if test -f /etc/ld.so.conf; then
7835 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7836 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7839 # We used to test for /lib/ld.so.1 and disable shared libraries on
7840 # powerpc, because MkLinux only supported shared libraries with the
7841 # GNU dynamic linker. Since this was broken with cross compilers,
7842 # most powerpc-linux boxes support dynamic linking these days and
7843 # people can always --disable-shared, the test was removed, and we
7844 # assume the GNU/Linux dynamic linker is in use.
7845 dynamic_linker='GNU/Linux ld.so'
7848 knetbsd*-gnu)
7849 version_type=linux
7850 need_lib_prefix=no
7851 need_version=no
7852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7853 soname_spec='${libname}${release}${shared_ext}$major'
7854 shlibpath_var=LD_LIBRARY_PATH
7855 shlibpath_overrides_runpath=no
7856 hardcode_into_libs=yes
7857 dynamic_linker='GNU ld.so'
7860 netbsd*)
7861 version_type=sunos
7862 need_lib_prefix=no
7863 need_version=no
7864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7867 dynamic_linker='NetBSD (a.out) ld.so'
7868 else
7869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7870 soname_spec='${libname}${release}${shared_ext}$major'
7871 dynamic_linker='NetBSD ld.elf_so'
7873 shlibpath_var=LD_LIBRARY_PATH
7874 shlibpath_overrides_runpath=yes
7875 hardcode_into_libs=yes
7878 newsos6)
7879 version_type=linux
7880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881 shlibpath_var=LD_LIBRARY_PATH
7882 shlibpath_overrides_runpath=yes
7885 nto-qnx*)
7886 version_type=linux
7887 need_lib_prefix=no
7888 need_version=no
7889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7890 soname_spec='${libname}${release}${shared_ext}$major'
7891 shlibpath_var=LD_LIBRARY_PATH
7892 shlibpath_overrides_runpath=yes
7895 openbsd*)
7896 version_type=sunos
7897 need_lib_prefix=no
7898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7899 case $host_os in
7900 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7901 *) need_version=no ;;
7902 esac
7903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7905 shlibpath_var=LD_LIBRARY_PATH
7906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7907 case $host_os in
7908 openbsd2.[89] | openbsd2.[89].*)
7909 shlibpath_overrides_runpath=no
7912 shlibpath_overrides_runpath=yes
7914 esac
7915 else
7916 shlibpath_overrides_runpath=yes
7920 os2*)
7921 libname_spec='$name'
7922 shrext_cmds=".dll"
7923 need_lib_prefix=no
7924 library_names_spec='$libname${shared_ext} $libname.a'
7925 dynamic_linker='OS/2 ld.exe'
7926 shlibpath_var=LIBPATH
7929 osf3* | osf4* | osf5*)
7930 version_type=osf
7931 need_lib_prefix=no
7932 need_version=no
7933 soname_spec='${libname}${release}${shared_ext}$major'
7934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7935 shlibpath_var=LD_LIBRARY_PATH
7936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7937 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7940 sco3.2v5*)
7941 version_type=osf
7942 soname_spec='${libname}${release}${shared_ext}$major'
7943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7944 shlibpath_var=LD_LIBRARY_PATH
7947 solaris*)
7948 version_type=linux
7949 need_lib_prefix=no
7950 need_version=no
7951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7952 soname_spec='${libname}${release}${shared_ext}$major'
7953 shlibpath_var=LD_LIBRARY_PATH
7954 shlibpath_overrides_runpath=yes
7955 hardcode_into_libs=yes
7956 # ldd complains unless libraries are executable
7957 postinstall_cmds='chmod +x $lib'
7960 sunos4*)
7961 version_type=sunos
7962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7963 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7964 shlibpath_var=LD_LIBRARY_PATH
7965 shlibpath_overrides_runpath=yes
7966 if test "$with_gnu_ld" = yes; then
7967 need_lib_prefix=no
7969 need_version=yes
7972 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7973 version_type=linux
7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975 soname_spec='${libname}${release}${shared_ext}$major'
7976 shlibpath_var=LD_LIBRARY_PATH
7977 case $host_vendor in
7978 sni)
7979 shlibpath_overrides_runpath=no
7980 need_lib_prefix=no
7981 export_dynamic_flag_spec='${wl}-Blargedynsym'
7982 runpath_var=LD_RUN_PATH
7984 siemens)
7985 need_lib_prefix=no
7987 motorola)
7988 need_lib_prefix=no
7989 need_version=no
7990 shlibpath_overrides_runpath=no
7991 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7993 esac
7996 sysv4*MP*)
7997 if test -d /usr/nec ;then
7998 version_type=linux
7999 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8000 soname_spec='$libname${shared_ext}.$major'
8001 shlibpath_var=LD_LIBRARY_PATH
8005 uts4*)
8006 version_type=linux
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008 soname_spec='${libname}${release}${shared_ext}$major'
8009 shlibpath_var=LD_LIBRARY_PATH
8013 dynamic_linker=no
8015 esac
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8017 $as_echo "$dynamic_linker" >&6; }
8018 test "$dynamic_linker" = no && can_build_shared=no
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8021 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8022 hardcode_action=
8023 if test -n "$hardcode_libdir_flag_spec" || \
8024 test -n "$runpath_var" || \
8025 test "X$hardcode_automatic" = "Xyes" ; then
8027 # We can hardcode non-existant directories.
8028 if test "$hardcode_direct" != no &&
8029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8030 # have to relink, otherwise we might link with an installed library
8031 # when we should be linking with a yet-to-be-installed one
8032 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8033 test "$hardcode_minus_L" != no; then
8034 # Linking always hardcodes the temporary library directory.
8035 hardcode_action=relink
8036 else
8037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8038 hardcode_action=immediate
8040 else
8041 # We cannot hardcode anything, or else we can only hardcode existing
8042 # directories.
8043 hardcode_action=unsupported
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8046 $as_echo "$hardcode_action" >&6; }
8048 if test "$hardcode_action" = relink; then
8049 # Fast installation is not supported
8050 enable_fast_install=no
8051 elif test "$shlibpath_overrides_runpath" = yes ||
8052 test "$enable_shared" = no; then
8053 # Fast installation is not necessary
8054 enable_fast_install=needless
8057 striplib=
8058 old_striplib=
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8060 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8061 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8062 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8063 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8065 $as_echo "yes" >&6; }
8066 else
8067 # FIXME - insert some real tests, host_os isn't really good enough
8068 case $host_os in
8069 darwin*)
8070 if test -n "$STRIP" ; then
8071 striplib="$STRIP -x"
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8073 $as_echo "yes" >&6; }
8074 else
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8083 esac
8086 if test "x$enable_dlopen" != xyes; then
8087 enable_dlopen=unknown
8088 enable_dlopen_self=unknown
8089 enable_dlopen_self_static=unknown
8090 else
8091 lt_cv_dlopen=no
8092 lt_cv_dlopen_libs=
8094 case $host_os in
8095 beos*)
8096 lt_cv_dlopen="load_add_on"
8097 lt_cv_dlopen_libs=
8098 lt_cv_dlopen_self=yes
8101 mingw* | pw32*)
8102 lt_cv_dlopen="LoadLibrary"
8103 lt_cv_dlopen_libs=
8106 cygwin*)
8107 lt_cv_dlopen="dlopen"
8108 lt_cv_dlopen_libs=
8111 darwin*)
8112 # if libdl is installed we need to link against it
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8114 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8115 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 ac_check_lib_save_LIBS=$LIBS
8119 LIBS="-ldl $LIBS"
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8123 /* Override any GCC internal prototype to avoid an error.
8124 Use char because int might match the return type of a GCC
8125 builtin and then its argument prototype would still apply. */
8126 #ifdef __cplusplus
8127 extern "C"
8128 #endif
8129 char dlopen ();
8131 main ()
8133 return dlopen ();
8135 return 0;
8137 _ACEOF
8138 if ac_fn_c_try_link "$LINENO"; then :
8139 ac_cv_lib_dl_dlopen=yes
8140 else
8141 ac_cv_lib_dl_dlopen=no
8143 rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 LIBS=$ac_check_lib_save_LIBS
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8148 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8149 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8151 else
8153 lt_cv_dlopen="dyld"
8154 lt_cv_dlopen_libs=
8155 lt_cv_dlopen_self=yes
8162 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8163 if test "x$ac_cv_func_shl_load" = x""yes; then :
8164 lt_cv_dlopen="shl_load"
8165 else
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8167 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8168 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 ac_check_lib_save_LIBS=$LIBS
8172 LIBS="-ldld $LIBS"
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8176 /* Override any GCC internal prototype to avoid an error.
8177 Use char because int might match the return type of a GCC
8178 builtin and then its argument prototype would still apply. */
8179 #ifdef __cplusplus
8180 extern "C"
8181 #endif
8182 char shl_load ();
8184 main ()
8186 return shl_load ();
8188 return 0;
8190 _ACEOF
8191 if ac_fn_c_try_link "$LINENO"; then :
8192 ac_cv_lib_dld_shl_load=yes
8193 else
8194 ac_cv_lib_dld_shl_load=no
8196 rm -f core conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8198 LIBS=$ac_check_lib_save_LIBS
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8201 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8202 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
8203 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8204 else
8205 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8206 if test "x$ac_cv_func_dlopen" = x""yes; then :
8207 lt_cv_dlopen="dlopen"
8208 else
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8210 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 ac_check_lib_save_LIBS=$LIBS
8215 LIBS="-ldl $LIBS"
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8219 /* Override any GCC internal prototype to avoid an error.
8220 Use char because int might match the return type of a GCC
8221 builtin and then its argument prototype would still apply. */
8222 #ifdef __cplusplus
8223 extern "C"
8224 #endif
8225 char dlopen ();
8227 main ()
8229 return dlopen ();
8231 return 0;
8233 _ACEOF
8234 if ac_fn_c_try_link "$LINENO"; then :
8235 ac_cv_lib_dl_dlopen=yes
8236 else
8237 ac_cv_lib_dl_dlopen=no
8239 rm -f core conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241 LIBS=$ac_check_lib_save_LIBS
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8244 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8245 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8246 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8247 else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8249 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8250 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-lsvld $LIBS"
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8258 /* Override any GCC internal prototype to avoid an error.
8259 Use char because int might match the return type of a GCC
8260 builtin and then its argument prototype would still apply. */
8261 #ifdef __cplusplus
8262 extern "C"
8263 #endif
8264 char dlopen ();
8266 main ()
8268 return dlopen ();
8270 return 0;
8272 _ACEOF
8273 if ac_fn_c_try_link "$LINENO"; then :
8274 ac_cv_lib_svld_dlopen=yes
8275 else
8276 ac_cv_lib_svld_dlopen=no
8278 rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280 LIBS=$ac_check_lib_save_LIBS
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8283 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8284 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
8285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8288 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8289 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 ac_check_lib_save_LIBS=$LIBS
8293 LIBS="-ldld $LIBS"
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8297 /* Override any GCC internal prototype to avoid an error.
8298 Use char because int might match the return type of a GCC
8299 builtin and then its argument prototype would still apply. */
8300 #ifdef __cplusplus
8301 extern "C"
8302 #endif
8303 char dld_link ();
8305 main ()
8307 return dld_link ();
8309 return 0;
8311 _ACEOF
8312 if ac_fn_c_try_link "$LINENO"; then :
8313 ac_cv_lib_dld_dld_link=yes
8314 else
8315 ac_cv_lib_dld_dld_link=no
8317 rm -f core conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8319 LIBS=$ac_check_lib_save_LIBS
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8322 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8323 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
8324 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8343 esac
8345 if test "x$lt_cv_dlopen" != xno; then
8346 enable_dlopen=yes
8347 else
8348 enable_dlopen=no
8351 case $lt_cv_dlopen in
8352 dlopen)
8353 save_CPPFLAGS="$CPPFLAGS"
8354 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8356 save_LDFLAGS="$LDFLAGS"
8357 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8359 save_LIBS="$LIBS"
8360 LIBS="$lt_cv_dlopen_libs $LIBS"
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8363 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8364 if test "${lt_cv_dlopen_self+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 if test "$cross_compiling" = yes; then :
8368 lt_cv_dlopen_self=cross
8369 else
8370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8371 lt_status=$lt_dlunknown
8372 cat > conftest.$ac_ext <<EOF
8373 #line 8373 "configure"
8374 #include "confdefs.h"
8376 #if HAVE_DLFCN_H
8377 #include <dlfcn.h>
8378 #endif
8380 #include <stdio.h>
8382 #ifdef RTLD_GLOBAL
8383 # define LT_DLGLOBAL RTLD_GLOBAL
8384 #else
8385 # ifdef DL_GLOBAL
8386 # define LT_DLGLOBAL DL_GLOBAL
8387 # else
8388 # define LT_DLGLOBAL 0
8389 # endif
8390 #endif
8392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8393 find out it does not work in some platform. */
8394 #ifndef LT_DLLAZY_OR_NOW
8395 # ifdef RTLD_LAZY
8396 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8397 # else
8398 # ifdef DL_LAZY
8399 # define LT_DLLAZY_OR_NOW DL_LAZY
8400 # else
8401 # ifdef RTLD_NOW
8402 # define LT_DLLAZY_OR_NOW RTLD_NOW
8403 # else
8404 # ifdef DL_NOW
8405 # define LT_DLLAZY_OR_NOW DL_NOW
8406 # else
8407 # define LT_DLLAZY_OR_NOW 0
8408 # endif
8409 # endif
8410 # endif
8411 # endif
8412 #endif
8414 #ifdef __cplusplus
8415 extern "C" void exit (int);
8416 #endif
8418 void fnord() { int i=42;}
8419 int main ()
8421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8422 int status = $lt_dlunknown;
8424 if (self)
8426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8427 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8428 /* dlclose (self); */
8431 exit (status);
8434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8435 (eval $ac_link) 2>&5
8436 ac_status=$?
8437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8438 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8439 (./conftest; exit; ) >&5 2>/dev/null
8440 lt_status=$?
8441 case x$lt_status in
8442 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8443 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8444 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8445 esac
8446 else :
8447 # compilation failed
8448 lt_cv_dlopen_self=no
8451 rm -fr conftest*
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8456 $as_echo "$lt_cv_dlopen_self" >&6; }
8458 if test "x$lt_cv_dlopen_self" = xyes; then
8459 LDFLAGS="$LDFLAGS $link_static_flag"
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8461 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8462 if test "${lt_cv_dlopen_self_static+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 if test "$cross_compiling" = yes; then :
8466 lt_cv_dlopen_self_static=cross
8467 else
8468 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8469 lt_status=$lt_dlunknown
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8471 "configure"
8472 #include "confdefs.h"
8474 #if HAVE_DLFCN_H
8475 #include <dlfcn.h>
8476 #endif
8478 #include <stdio.h>
8480 #ifdef RTLD_GLOBAL
8481 # define LT_DLGLOBAL RTLD_GLOBAL
8482 #else
8483 # ifdef DL_GLOBAL
8484 # define LT_DLGLOBAL DL_GLOBAL
8485 # else
8486 # define LT_DLGLOBAL 0
8487 # endif
8488 #endif
8490 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8491 find out it does not work in some platform. */
8492 #ifndef LT_DLLAZY_OR_NOW
8493 # ifdef RTLD_LAZY
8494 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8495 # else
8496 # ifdef DL_LAZY
8497 # define LT_DLLAZY_OR_NOW DL_LAZY
8498 # else
8499 # ifdef RTLD_NOW
8500 # define LT_DLLAZY_OR_NOW RTLD_NOW
8501 # else
8502 # ifdef DL_NOW
8503 # define LT_DLLAZY_OR_NOW DL_NOW
8504 # else
8505 # define LT_DLLAZY_OR_NOW 0
8506 # endif
8507 # endif
8508 # endif
8509 # endif
8510 #endif
8512 #ifdef __cplusplus
8513 extern "C" void exit (int);
8514 #endif
8516 void fnord() { int i=42;}
8517 int main ()
8519 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8520 int status = $lt_dlunknown;
8522 if (self)
8524 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8525 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8526 /* dlclose (self); */
8529 exit (status);
8532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8533 (eval $ac_link) 2>&5
8534 ac_status=$?
8535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8536 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8537 (./conftest; exit; ) >&5 2>/dev/null
8538 lt_status=$?
8539 case x$lt_status in
8540 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8541 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8542 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8543 esac
8544 else :
8545 # compilation failed
8546 lt_cv_dlopen_self_static=no
8549 rm -fr conftest*
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8554 $as_echo "$lt_cv_dlopen_self_static" >&6; }
8557 CPPFLAGS="$save_CPPFLAGS"
8558 LDFLAGS="$save_LDFLAGS"
8559 LIBS="$save_LIBS"
8561 esac
8563 case $lt_cv_dlopen_self in
8564 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8565 *) enable_dlopen_self=unknown ;;
8566 esac
8568 case $lt_cv_dlopen_self_static in
8569 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8570 *) enable_dlopen_self_static=unknown ;;
8571 esac
8575 # Report which librarie types wil actually be built
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8577 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8579 $as_echo "$can_build_shared" >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8582 $as_echo_n "checking whether to build shared libraries... " >&6; }
8583 test "$can_build_shared" = "no" && enable_shared=no
8585 # On AIX, shared libraries and static libraries use the same namespace, and
8586 # are all built from PIC.
8587 case $host_os in
8588 aix3*)
8589 test "$enable_shared" = yes && enable_static=no
8590 if test -n "$RANLIB"; then
8591 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8592 postinstall_cmds='$RANLIB $lib'
8596 aix4* | aix5*)
8597 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8598 test "$enable_shared" = yes && enable_static=no
8601 esac
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8603 $as_echo "$enable_shared" >&6; }
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8606 $as_echo_n "checking whether to build static libraries... " >&6; }
8607 # Make sure either enable_shared or enable_static is yes.
8608 test "$enable_shared" = yes || enable_static=yes
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8610 $as_echo "$enable_static" >&6; }
8612 # The else clause should only fire when bootstrapping the
8613 # libtool distribution, otherwise you forgot to ship ltmain.sh
8614 # with your package, and you will get complaints that there are
8615 # no rules to generate ltmain.sh.
8616 if test -f "$ltmain"; then
8617 # See if we are running on zsh, and set the options which allow our commands through
8618 # without removal of \ escapes.
8619 if test -n "${ZSH_VERSION+set}" ; then
8620 setopt NO_GLOB_SUBST
8622 # Now quote all the things that may contain metacharacters while being
8623 # careful not to overquote the AC_SUBSTed values. We take copies of the
8624 # variables and quote the copies for generation of the libtool script.
8625 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8626 SED SHELL STRIP \
8627 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8628 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8629 deplibs_check_method reload_flag reload_cmds need_locks \
8630 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8631 lt_cv_sys_global_symbol_to_c_name_address \
8632 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8633 old_postinstall_cmds old_postuninstall_cmds \
8634 compiler \
8635 CC \
8636 LD \
8637 lt_prog_compiler_wl \
8638 lt_prog_compiler_pic \
8639 lt_prog_compiler_static \
8640 lt_prog_compiler_no_builtin_flag \
8641 export_dynamic_flag_spec \
8642 thread_safe_flag_spec \
8643 whole_archive_flag_spec \
8644 enable_shared_with_static_runtimes \
8645 old_archive_cmds \
8646 old_archive_from_new_cmds \
8647 predep_objects \
8648 postdep_objects \
8649 predeps \
8650 postdeps \
8651 compiler_lib_search_path \
8652 archive_cmds \
8653 archive_expsym_cmds \
8654 postinstall_cmds \
8655 postuninstall_cmds \
8656 old_archive_from_expsyms_cmds \
8657 allow_undefined_flag \
8658 no_undefined_flag \
8659 export_symbols_cmds \
8660 hardcode_libdir_flag_spec \
8661 hardcode_libdir_flag_spec_ld \
8662 hardcode_libdir_separator \
8663 hardcode_automatic \
8664 module_cmds \
8665 module_expsym_cmds \
8666 lt_cv_prog_compiler_c_o \
8667 exclude_expsyms \
8668 include_expsyms; do
8670 case $var in
8671 old_archive_cmds | \
8672 old_archive_from_new_cmds | \
8673 archive_cmds | \
8674 archive_expsym_cmds | \
8675 module_cmds | \
8676 module_expsym_cmds | \
8677 old_archive_from_expsyms_cmds | \
8678 export_symbols_cmds | \
8679 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8680 postinstall_cmds | postuninstall_cmds | \
8681 old_postinstall_cmds | old_postuninstall_cmds | \
8682 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8683 # Double-quote double-evaled strings.
8684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8689 esac
8690 done
8692 case $lt_echo in
8693 *'\$0 --fallback-echo"')
8694 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8696 esac
8698 cfgfile="${ofile}T"
8699 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8700 $rm -f "$cfgfile"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
8702 $as_echo "$as_me: creating $ofile" >&6;}
8704 cat <<__EOF__ >> "$cfgfile"
8705 #! $SHELL
8707 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8708 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8709 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8711 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8712 # Free Software Foundation, Inc.
8714 # This file is part of GNU Libtool:
8715 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8717 # This program is free software; you can redistribute it and/or modify
8718 # it under the terms of the GNU General Public License as published by
8719 # the Free Software Foundation; either version 2 of the License, or
8720 # (at your option) any later version.
8722 # This program is distributed in the hope that it will be useful, but
8723 # WITHOUT ANY WARRANTY; without even the implied warranty of
8724 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8725 # General Public License for more details.
8727 # You should have received a copy of the GNU General Public License
8728 # along with this program; if not, write to the Free Software
8729 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
8731 # As a special exception to the GNU General Public License, if you
8732 # distribute this file as part of a program that contains a
8733 # configuration script generated by Autoconf, you may include it under
8734 # the same distribution terms that you use for the rest of that program.
8736 # A sed program that does not truncate output.
8737 SED=$lt_SED
8739 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8740 Xsed="$SED -e 1s/^X//"
8742 # The HP-UX ksh and POSIX shell print the target directory to stdout
8743 # if CDPATH is set.
8744 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8746 # The names of the tagged configurations supported by this script.
8747 available_tags=
8749 # ### BEGIN LIBTOOL CONFIG
8751 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8753 # Shell to use when invoking shell scripts.
8754 SHELL=$lt_SHELL
8756 # Whether or not to build shared libraries.
8757 build_libtool_libs=$enable_shared
8759 # Whether or not to build static libraries.
8760 build_old_libs=$enable_static
8762 # Whether or not to add -lc for building shared libraries.
8763 build_libtool_need_lc=$archive_cmds_need_lc
8765 # Whether or not to disallow shared libs when runtime libs are static
8766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8768 # Whether or not to optimize for fast installation.
8769 fast_install=$enable_fast_install
8771 # The host system.
8772 host_alias=$host_alias
8773 host=$host
8774 host_os=$host_os
8776 # The build system.
8777 build_alias=$build_alias
8778 build=$build
8779 build_os=$build_os
8781 # An echo program that does not interpret backslashes.
8782 echo=$lt_echo
8784 # The archiver.
8785 AR=$lt_AR
8786 AR_FLAGS=$lt_AR_FLAGS
8788 # A C compiler.
8789 LTCC=$lt_LTCC
8791 # A language-specific compiler.
8792 CC=$lt_compiler
8794 # Is the compiler the GNU C compiler?
8795 with_gcc=$GCC
8797 # An ERE matcher.
8798 EGREP=$lt_EGREP
8800 # The linker used to build libraries.
8801 LD=$lt_LD
8803 # Whether we need hard or soft links.
8804 LN_S=$lt_LN_S
8806 # A BSD-compatible nm program.
8807 NM=$lt_NM
8809 # A symbol stripping program
8810 STRIP=$lt_STRIP
8812 # Used to examine libraries when file_magic_cmd begins "file"
8813 MAGIC_CMD=$MAGIC_CMD
8815 # Used on cygwin: DLL creation program.
8816 DLLTOOL="$DLLTOOL"
8818 # Used on cygwin: object dumper.
8819 OBJDUMP="$OBJDUMP"
8821 # Used on cygwin: assembler.
8822 AS="$AS"
8824 # The name of the directory that contains temporary libtool files.
8825 objdir=$objdir
8827 # How to create reloadable object files.
8828 reload_flag=$lt_reload_flag
8829 reload_cmds=$lt_reload_cmds
8831 # How to pass a linker flag through the compiler.
8832 wl=$lt_lt_prog_compiler_wl
8834 # Object file suffix (normally "o").
8835 objext="$ac_objext"
8837 # Old archive suffix (normally "a").
8838 libext="$libext"
8840 # Shared library suffix (normally ".so").
8841 shrext_cmds='$shrext_cmds'
8843 # Executable file suffix (normally "").
8844 exeext="$exeext"
8846 # Additional compiler flags for building library objects.
8847 pic_flag=$lt_lt_prog_compiler_pic
8848 pic_mode=$pic_mode
8850 # What is the maximum length of a command?
8851 max_cmd_len=$lt_cv_sys_max_cmd_len
8853 # Does compiler simultaneously support -c and -o options?
8854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8856 # Must we lock files when doing compilation?
8857 need_locks=$lt_need_locks
8859 # Do we need the lib prefix for modules?
8860 need_lib_prefix=$need_lib_prefix
8862 # Do we need a version for libraries?
8863 need_version=$need_version
8865 # Whether dlopen is supported.
8866 dlopen_support=$enable_dlopen
8868 # Whether dlopen of programs is supported.
8869 dlopen_self=$enable_dlopen_self
8871 # Whether dlopen of statically linked programs is supported.
8872 dlopen_self_static=$enable_dlopen_self_static
8874 # Compiler flag to prevent dynamic linking.
8875 link_static_flag=$lt_lt_prog_compiler_static
8877 # Compiler flag to turn off builtin functions.
8878 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8880 # Compiler flag to allow reflexive dlopens.
8881 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8883 # Compiler flag to generate shared objects directly from archives.
8884 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8886 # Compiler flag to generate thread-safe objects.
8887 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8889 # Library versioning type.
8890 version_type=$version_type
8892 # Format of library name prefix.
8893 libname_spec=$lt_libname_spec
8895 # List of archive names. First name is the real one, the rest are links.
8896 # The last name is the one that the linker finds with -lNAME.
8897 library_names_spec=$lt_library_names_spec
8899 # The coded name of the library, if different from the real name.
8900 soname_spec=$lt_soname_spec
8902 # Commands used to build and install an old-style archive.
8903 RANLIB=$lt_RANLIB
8904 old_archive_cmds=$lt_old_archive_cmds
8905 old_postinstall_cmds=$lt_old_postinstall_cmds
8906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8908 # Create an old-style archive from a shared archive.
8909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8911 # Create a temporary old-style archive to link instead of a shared archive.
8912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8914 # Commands used to build and install a shared archive.
8915 archive_cmds=$lt_archive_cmds
8916 archive_expsym_cmds=$lt_archive_expsym_cmds
8917 postinstall_cmds=$lt_postinstall_cmds
8918 postuninstall_cmds=$lt_postuninstall_cmds
8920 # Commands used to build a loadable module (assumed same as above if empty)
8921 module_cmds=$lt_module_cmds
8922 module_expsym_cmds=$lt_module_expsym_cmds
8924 # Commands to strip libraries.
8925 old_striplib=$lt_old_striplib
8926 striplib=$lt_striplib
8928 # Dependencies to place before the objects being linked to create a
8929 # shared library.
8930 predep_objects=$lt_predep_objects
8932 # Dependencies to place after the objects being linked to create a
8933 # shared library.
8934 postdep_objects=$lt_postdep_objects
8936 # Dependencies to place before the objects being linked to create a
8937 # shared library.
8938 predeps=$lt_predeps
8940 # Dependencies to place after the objects being linked to create a
8941 # shared library.
8942 postdeps=$lt_postdeps
8944 # The library search path used internally by the compiler when linking
8945 # a shared library.
8946 compiler_lib_search_path=$lt_compiler_lib_search_path
8948 # Method to check whether dependent libraries are shared objects.
8949 deplibs_check_method=$lt_deplibs_check_method
8951 # Command to use when deplibs_check_method == file_magic.
8952 file_magic_cmd=$lt_file_magic_cmd
8954 # Flag that allows shared libraries with undefined symbols to be built.
8955 allow_undefined_flag=$lt_allow_undefined_flag
8957 # Flag that forces no undefined symbols.
8958 no_undefined_flag=$lt_no_undefined_flag
8960 # Commands used to finish a libtool library installation in a directory.
8961 finish_cmds=$lt_finish_cmds
8963 # Same as above, but a single script fragment to be evaled but not shown.
8964 finish_eval=$lt_finish_eval
8966 # Take the output of nm and produce a listing of raw symbols and C names.
8967 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8969 # Transform the output of nm in a proper C declaration
8970 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8972 # Transform the output of nm in a C name address pair
8973 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8975 # This is the shared library runtime path variable.
8976 runpath_var=$runpath_var
8978 # This is the shared library path variable.
8979 shlibpath_var=$shlibpath_var
8981 # Is shlibpath searched before the hard-coded library search path?
8982 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8984 # How to hardcode a shared library path into an executable.
8985 hardcode_action=$hardcode_action
8987 # Whether we should hardcode library paths into libraries.
8988 hardcode_into_libs=$hardcode_into_libs
8990 # Flag to hardcode \$libdir into a binary during linking.
8991 # This must work even if \$libdir does not exist.
8992 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8994 # If ld is used when linking, flag to hardcode \$libdir into
8995 # a binary during linking. This must work even if \$libdir does
8996 # not exist.
8997 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8999 # Whether we need a single -rpath flag with a separated argument.
9000 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9002 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9003 # resulting binary.
9004 hardcode_direct=$hardcode_direct
9006 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9007 # resulting binary.
9008 hardcode_minus_L=$hardcode_minus_L
9010 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9011 # the resulting binary.
9012 hardcode_shlibpath_var=$hardcode_shlibpath_var
9014 # Set to yes if building a shared library automatically hardcodes DIR into the library
9015 # and all subsequent libraries and executables linked against it.
9016 hardcode_automatic=$hardcode_automatic
9018 # Variables whose values should be saved in libtool wrapper scripts and
9019 # restored at relink time.
9020 variables_saved_for_relink="$variables_saved_for_relink"
9022 # Whether libtool must link a program against all its dependency libraries.
9023 link_all_deplibs=$link_all_deplibs
9025 # Compile-time system search path for libraries
9026 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9028 # Run-time system search path for libraries
9029 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9031 # Fix the shell variable \$srcfile for the compiler.
9032 fix_srcfile_path="$fix_srcfile_path"
9034 # Set to yes if exported symbols are required.
9035 always_export_symbols=$always_export_symbols
9037 # The commands to list exported symbols.
9038 export_symbols_cmds=$lt_export_symbols_cmds
9040 # The commands to extract the exported symbol list from a shared archive.
9041 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9043 # Symbols that should not be listed in the preloaded symbols.
9044 exclude_expsyms=$lt_exclude_expsyms
9046 # Symbols that must always be exported.
9047 include_expsyms=$lt_include_expsyms
9049 # ### END LIBTOOL CONFIG
9051 __EOF__
9054 case $host_os in
9055 aix3*)
9056 cat <<\EOF >> "$cfgfile"
9058 # AIX sometimes has problems with the GCC collect2 program. For some
9059 # reason, if we set the COLLECT_NAMES environment variable, the problems
9060 # vanish in a puff of smoke.
9061 if test "X${COLLECT_NAMES+set}" != Xset; then
9062 COLLECT_NAMES=
9063 export COLLECT_NAMES
9067 esac
9069 # We use sed instead of cat because bash on DJGPP gets confused if
9070 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9071 # text mode, it properly converts lines to CR/LF. This bash problem
9072 # is reportedly fixed, but why not run on old versions too?
9073 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9075 mv -f "$cfgfile" "$ofile" || \
9076 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9077 chmod +x "$ofile"
9079 else
9080 # If there is no Makefile yet, we rely on a make rule to execute
9081 # `config.status --recheck' to rerun these tests and create the
9082 # libtool script then.
9083 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9084 if test -f "$ltmain_in"; then
9085 test -f Makefile && make "$ltmain"
9090 ac_ext=c
9091 ac_cpp='$CPP $CPPFLAGS'
9092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9096 CC="$lt_save_CC"
9099 # Check whether --with-tags was given.
9100 if test "${with_tags+set}" = set; then :
9101 withval=$with_tags; tagnames="$withval"
9105 if test -f "$ltmain" && test -n "$tagnames"; then
9106 if test ! -f "${ofile}"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9108 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9111 if test -z "$LTCC"; then
9112 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9113 if test -z "$LTCC"; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9115 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9116 else
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9118 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9122 # Extract list of available tagged configurations in $ofile.
9123 # Note that this assumes the entire list is on one line.
9124 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9126 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9127 for tagname in $tagnames; do
9128 IFS="$lt_save_ifs"
9129 # Check whether tagname contains only valid characters
9130 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9131 "") ;;
9132 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
9134 esac
9136 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9137 then
9138 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
9141 # Update the list of available tags.
9142 if test -n "$tagname"; then
9143 echo appending configuration tag \"$tagname\" to $ofile
9145 case $tagname in
9146 CXX)
9147 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9148 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9149 (test "X$CXX" != "Xg++"))) ; then
9151 else
9152 tagname=""
9156 F77)
9157 if test -n "$F77" && test "X$F77" != "Xno"; then
9159 else
9160 tagname=""
9164 GCJ)
9165 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
9168 # Source file extension for Java test sources.
9169 ac_ext=java
9171 # Object file extension for compiled Java test sources.
9172 objext=o
9173 objext_GCJ=$objext
9175 # Code to be used in simple compile tests
9176 lt_simple_compile_test_code="class foo {}\n"
9178 # Code to be used in simple link tests
9179 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
9181 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9183 # If no C compiler was specified, use CC.
9184 LTCC=${LTCC-"$CC"}
9186 # Allow CC to be a program name with arguments.
9187 compiler=$CC
9190 # save warnings/boilerplate of simple test code
9191 ac_outfile=conftest.$ac_objext
9192 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9193 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9194 _lt_compiler_boilerplate=`cat conftest.err`
9195 $rm conftest*
9197 ac_outfile=conftest.$ac_objext
9198 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9199 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9200 _lt_linker_boilerplate=`cat conftest.err`
9201 $rm conftest*
9204 # Allow CC to be a program name with arguments.
9205 lt_save_CC="$CC"
9206 CC=${GCJ-"gcj"}
9207 compiler=$CC
9208 compiler_GCJ=$CC
9209 for cc_temp in $compiler""; do
9210 case $cc_temp in
9211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9213 \-*) ;;
9214 *) break;;
9215 esac
9216 done
9217 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9220 # GCJ did not exist at the time GCC didn't implicitly link libc in.
9221 archive_cmds_need_lc_GCJ=no
9223 old_archive_cmds_GCJ=$old_archive_cmds
9226 lt_prog_compiler_no_builtin_flag_GCJ=
9228 if test "$GCC" = yes; then
9229 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9233 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9234 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 lt_cv_prog_compiler_rtti_exceptions=no
9238 ac_outfile=conftest.$ac_objext
9239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9240 lt_compiler_flag="-fno-rtti -fno-exceptions"
9241 # Insert the option either (1) after the last *FLAGS variable, or
9242 # (2) before a word containing "conftest.", or (3) at the end.
9243 # Note that $ac_compile itself does not contain backslashes and begins
9244 # with a dollar sign (not a hyphen), so the echo should work correctly.
9245 # The option is referenced via a variable to avoid confusing sed.
9246 lt_compile=`echo "$ac_compile" | $SED \
9247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9249 -e 's:$: $lt_compiler_flag:'`
9250 (eval echo "\"\$as_me:9250: $lt_compile\"" >&5)
9251 (eval "$lt_compile" 2>conftest.err)
9252 ac_status=$?
9253 cat conftest.err >&5
9254 echo "$as_me:9254: \$? = $ac_status" >&5
9255 if (exit $ac_status) && test -s "$ac_outfile"; then
9256 # The compiler can only warn and ignore the option if not recognized
9257 # So say no if there are warnings other than the usual output.
9258 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
9259 $SED '/^$/d' conftest.err >conftest.er2
9260 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
9261 lt_cv_prog_compiler_rtti_exceptions=yes
9264 $rm conftest*
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9268 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9270 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9271 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
9272 else
9278 lt_prog_compiler_wl_GCJ=
9279 lt_prog_compiler_pic_GCJ=
9280 lt_prog_compiler_static_GCJ=
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9283 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9285 if test "$GCC" = yes; then
9286 lt_prog_compiler_wl_GCJ='-Wl,'
9287 lt_prog_compiler_static_GCJ='-static'
9289 case $host_os in
9290 aix*)
9291 # All AIX code is PIC.
9292 if test "$host_cpu" = ia64; then
9293 # AIX 5 now supports IA64 processor
9294 lt_prog_compiler_static_GCJ='-Bstatic'
9298 amigaos*)
9299 # FIXME: we need at least 68020 code to build shared libraries, but
9300 # adding the `-m68020' flag to GCC prevents building anything better,
9301 # like `-m68040'.
9302 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
9305 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9306 # PIC is the default for these OSes.
9309 mingw* | pw32* | os2*)
9310 # This hack is so that the source file can tell whether it is being
9311 # built for inclusion in a dll (and should export symbols for example).
9312 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
9315 darwin* | rhapsody*)
9316 # PIC is the default on this platform
9317 # Common symbols not allowed in MH_DYLIB files
9318 lt_prog_compiler_pic_GCJ='-fno-common'
9321 msdosdjgpp*)
9322 # Just because we use GCC doesn't mean we suddenly get shared libraries
9323 # on systems that don't support them.
9324 lt_prog_compiler_can_build_shared_GCJ=no
9325 enable_shared=no
9328 sysv4*MP*)
9329 if test -d /usr/nec; then
9330 lt_prog_compiler_pic_GCJ=-Kconform_pic
9334 hpux*)
9335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9336 # not for PA HP-UX.
9337 case $host_cpu in
9338 hppa*64*|ia64*)
9339 # +Z the default
9342 lt_prog_compiler_pic_GCJ='-fPIC'
9344 esac
9348 lt_prog_compiler_pic_GCJ='-fPIC'
9350 esac
9351 else
9352 # PORTME Check for flag to pass linker flags through the system compiler.
9353 case $host_os in
9354 aix*)
9355 lt_prog_compiler_wl_GCJ='-Wl,'
9356 if test "$host_cpu" = ia64; then
9357 # AIX 5 now supports IA64 processor
9358 lt_prog_compiler_static_GCJ='-Bstatic'
9359 else
9360 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
9363 darwin*)
9364 # PIC is the default on this platform
9365 # Common symbols not allowed in MH_DYLIB files
9366 case $cc_basename in
9367 xlc*)
9368 lt_prog_compiler_pic_GCJ='-qnocommon'
9369 lt_prog_compiler_wl_GCJ='-Wl,'
9371 esac
9374 mingw* | pw32* | os2*)
9375 # This hack is so that the source file can tell whether it is being
9376 # built for inclusion in a dll (and should export symbols for example).
9377 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
9380 hpux9* | hpux10* | hpux11*)
9381 lt_prog_compiler_wl_GCJ='-Wl,'
9382 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9383 # not for PA HP-UX.
9384 case $host_cpu in
9385 hppa*64*|ia64*)
9386 # +Z the default
9389 lt_prog_compiler_pic_GCJ='+Z'
9391 esac
9392 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9393 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
9396 irix5* | irix6* | nonstopux*)
9397 lt_prog_compiler_wl_GCJ='-Wl,'
9398 # PIC (with -KPIC) is the default.
9399 lt_prog_compiler_static_GCJ='-non_shared'
9402 newsos6)
9403 lt_prog_compiler_pic_GCJ='-KPIC'
9404 lt_prog_compiler_static_GCJ='-Bstatic'
9407 linux*)
9408 case $cc_basename in
9409 icc* | ecc*)
9410 lt_prog_compiler_wl_GCJ='-Wl,'
9411 lt_prog_compiler_pic_GCJ='-KPIC'
9412 lt_prog_compiler_static_GCJ='-static'
9414 pgcc* | pgf77* | pgf90* | pgf95*)
9415 # Portland Group compilers (*not* the Pentium gcc compiler,
9416 # which looks to be a dead project)
9417 lt_prog_compiler_wl_GCJ='-Wl,'
9418 lt_prog_compiler_pic_GCJ='-fpic'
9419 lt_prog_compiler_static_GCJ='-Bstatic'
9421 ccc*)
9422 lt_prog_compiler_wl_GCJ='-Wl,'
9423 # All Alpha code is PIC.
9424 lt_prog_compiler_static_GCJ='-non_shared'
9426 esac
9429 osf3* | osf4* | osf5*)
9430 lt_prog_compiler_wl_GCJ='-Wl,'
9431 # All OSF/1 code is PIC.
9432 lt_prog_compiler_static_GCJ='-non_shared'
9435 sco3.2v5*)
9436 lt_prog_compiler_pic_GCJ='-Kpic'
9437 lt_prog_compiler_static_GCJ='-dn'
9440 solaris*)
9441 lt_prog_compiler_pic_GCJ='-KPIC'
9442 lt_prog_compiler_static_GCJ='-Bstatic'
9443 case $cc_basename in
9444 f77* | f90* | f95*)
9445 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
9447 lt_prog_compiler_wl_GCJ='-Wl,';;
9448 esac
9451 sunos4*)
9452 lt_prog_compiler_wl_GCJ='-Qoption ld '
9453 lt_prog_compiler_pic_GCJ='-PIC'
9454 lt_prog_compiler_static_GCJ='-Bstatic'
9457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9458 lt_prog_compiler_wl_GCJ='-Wl,'
9459 lt_prog_compiler_pic_GCJ='-KPIC'
9460 lt_prog_compiler_static_GCJ='-Bstatic'
9463 sysv4*MP*)
9464 if test -d /usr/nec ;then
9465 lt_prog_compiler_pic_GCJ='-Kconform_pic'
9466 lt_prog_compiler_static_GCJ='-Bstatic'
9470 unicos*)
9471 lt_prog_compiler_wl_GCJ='-Wl,'
9472 lt_prog_compiler_can_build_shared_GCJ=no
9475 uts4*)
9476 lt_prog_compiler_pic_GCJ='-pic'
9477 lt_prog_compiler_static_GCJ='-Bstatic'
9481 lt_prog_compiler_can_build_shared_GCJ=no
9483 esac
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
9487 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
9490 # Check to make sure the PIC flag actually works.
9492 if test -n "$lt_prog_compiler_pic_GCJ"; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
9495 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
9496 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
9497 $as_echo_n "(cached) " >&6
9498 else
9499 lt_prog_compiler_pic_works_GCJ=no
9500 ac_outfile=conftest.$ac_objext
9501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9502 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
9503 # Insert the option either (1) after the last *FLAGS variable, or
9504 # (2) before a word containing "conftest.", or (3) at the end.
9505 # Note that $ac_compile itself does not contain backslashes and begins
9506 # with a dollar sign (not a hyphen), so the echo should work correctly.
9507 # The option is referenced via a variable to avoid confusing sed.
9508 lt_compile=`echo "$ac_compile" | $SED \
9509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9511 -e 's:$: $lt_compiler_flag:'`
9512 (eval echo "\"\$as_me:9512: $lt_compile\"" >&5)
9513 (eval "$lt_compile" 2>conftest.err)
9514 ac_status=$?
9515 cat conftest.err >&5
9516 echo "$as_me:9516: \$? = $ac_status" >&5
9517 if (exit $ac_status) && test -s "$ac_outfile"; then
9518 # The compiler can only warn and ignore the option if not recognized
9519 # So say no if there are warnings other than the usual output.
9520 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
9521 $SED '/^$/d' conftest.err >conftest.er2
9522 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
9523 lt_prog_compiler_pic_works_GCJ=yes
9526 $rm conftest*
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
9530 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
9532 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
9533 case $lt_prog_compiler_pic_GCJ in
9534 "" | " "*) ;;
9535 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
9536 esac
9537 else
9538 lt_prog_compiler_pic_GCJ=
9539 lt_prog_compiler_can_build_shared_GCJ=no
9543 case $host_os in
9544 # For platforms which do not support PIC, -DPIC is meaningless:
9545 *djgpp*)
9546 lt_prog_compiler_pic_GCJ=
9549 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
9551 esac
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9554 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9555 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 lt_cv_prog_compiler_c_o_GCJ=no
9559 $rm -r conftest 2>/dev/null
9560 mkdir conftest
9561 cd conftest
9562 mkdir out
9563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9565 lt_compiler_flag="-o out/conftest2.$ac_objext"
9566 # Insert the option either (1) after the last *FLAGS variable, or
9567 # (2) before a word containing "conftest.", or (3) at the end.
9568 # Note that $ac_compile itself does not contain backslashes and begins
9569 # with a dollar sign (not a hyphen), so the echo should work correctly.
9570 lt_compile=`echo "$ac_compile" | $SED \
9571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9573 -e 's:$: $lt_compiler_flag:'`
9574 (eval echo "\"\$as_me:9574: $lt_compile\"" >&5)
9575 (eval "$lt_compile" 2>out/conftest.err)
9576 ac_status=$?
9577 cat out/conftest.err >&5
9578 echo "$as_me:9578: \$? = $ac_status" >&5
9579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9580 then
9581 # The compiler can only warn and ignore the option if not recognized
9582 # So say no if there are warnings
9583 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
9584 $SED '/^$/d' out/conftest.err >out/conftest.er2
9585 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9586 lt_cv_prog_compiler_c_o_GCJ=yes
9589 chmod u+w . 2>&5
9590 $rm conftest*
9591 # SGI C++ compiler will create directory out/ii_files/ for
9592 # template instantiation
9593 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9594 $rm out/* && rmdir out
9595 cd ..
9596 rmdir conftest
9597 $rm conftest*
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
9601 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
9604 hard_links="nottested"
9605 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
9606 # do not overwrite the value of need_locks provided by the user
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9608 $as_echo_n "checking if we can lock with hard links... " >&6; }
9609 hard_links=yes
9610 $rm conftest*
9611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9612 touch conftest.a
9613 ln conftest.a conftest.b 2>&5 || hard_links=no
9614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9616 $as_echo "$hard_links" >&6; }
9617 if test "$hard_links" = no; then
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9619 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9620 need_locks=warn
9622 else
9623 need_locks=no
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9627 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9629 runpath_var=
9630 allow_undefined_flag_GCJ=
9631 enable_shared_with_static_runtimes_GCJ=no
9632 archive_cmds_GCJ=
9633 archive_expsym_cmds_GCJ=
9634 old_archive_From_new_cmds_GCJ=
9635 old_archive_from_expsyms_cmds_GCJ=
9636 export_dynamic_flag_spec_GCJ=
9637 whole_archive_flag_spec_GCJ=
9638 thread_safe_flag_spec_GCJ=
9639 hardcode_libdir_flag_spec_GCJ=
9640 hardcode_libdir_flag_spec_ld_GCJ=
9641 hardcode_libdir_separator_GCJ=
9642 hardcode_direct_GCJ=no
9643 hardcode_minus_L_GCJ=no
9644 hardcode_shlibpath_var_GCJ=unsupported
9645 link_all_deplibs_GCJ=unknown
9646 hardcode_automatic_GCJ=no
9647 module_cmds_GCJ=
9648 module_expsym_cmds_GCJ=
9649 always_export_symbols_GCJ=no
9650 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9651 # include_expsyms should be a list of space-separated symbols to be *always*
9652 # included in the symbol list
9653 include_expsyms_GCJ=
9654 # exclude_expsyms can be an extended regexp of symbols to exclude
9655 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9656 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9657 # as well as any symbol that contains `d'.
9658 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
9659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9660 # platforms (ab)use it in PIC code, but their linkers get confused if
9661 # the symbol is explicitly referenced. Since portable code cannot
9662 # rely on this symbol name, it's probably fine to never include it in
9663 # preloaded symbol tables.
9664 extract_expsyms_cmds=
9665 # Just being paranoid about ensuring that cc_basename is set.
9666 for cc_temp in $compiler""; do
9667 case $cc_temp in
9668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9670 \-*) ;;
9671 *) break;;
9672 esac
9673 done
9674 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9676 case $host_os in
9677 cygwin* | mingw* | pw32*)
9678 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9679 # When not using gcc, we currently assume that we are using
9680 # Microsoft Visual C++.
9681 if test "$GCC" != yes; then
9682 with_gnu_ld=no
9685 openbsd*)
9686 with_gnu_ld=no
9688 esac
9690 ld_shlibs_GCJ=yes
9691 if test "$with_gnu_ld" = yes; then
9692 # If archive_cmds runs LD, not CC, wlarc should be empty
9693 wlarc='${wl}'
9695 # Set some defaults for GNU ld with shared library support. These
9696 # are reset later if shared libraries are not supported. Putting them
9697 # here allows them to be overridden if necessary.
9698 runpath_var=LD_RUN_PATH
9699 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
9700 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
9701 # ancient GNU ld didn't support --whole-archive et. al.
9702 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9703 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9704 else
9705 whole_archive_flag_spec_GCJ=
9707 supports_anon_versioning=no
9708 case `$LD -v 2>/dev/null` in
9709 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9712 *\ 2.11.*) ;; # other 2.11 versions
9713 *) supports_anon_versioning=yes ;;
9714 esac
9716 # See if GNU ld supports shared libraries.
9717 case $host_os in
9718 aix3* | aix4* | aix5*)
9719 # On AIX/PPC, the GNU linker is very broken
9720 if test "$host_cpu" != ia64; then
9721 ld_shlibs_GCJ=no
9722 cat <<EOF 1>&2
9724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9725 *** to be unable to reliably create shared libraries on AIX.
9726 *** Therefore, libtool is disabling shared libraries support. If you
9727 *** really care for shared libraries, you may want to modify your PATH
9728 *** so that a non-GNU linker is found, and then restart.
9734 amigaos*)
9735 archive_cmds_GCJ='$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)'
9736 hardcode_libdir_flag_spec_GCJ='-L$libdir'
9737 hardcode_minus_L_GCJ=yes
9739 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9740 # that the semantics of dynamic libraries on AmigaOS, at least up
9741 # to version 4, is to share data among multiple programs linked
9742 # with the same dynamic library. Since this doesn't match the
9743 # behavior of shared libraries on other platforms, we can't use
9744 # them.
9745 ld_shlibs_GCJ=no
9748 beos*)
9749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9750 allow_undefined_flag_GCJ=unsupported
9751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9752 # support --undefined. This deserves some investigation. FIXME
9753 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9754 else
9755 ld_shlibs_GCJ=no
9759 cygwin* | mingw* | pw32*)
9760 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
9761 # as there is no search path for DLLs.
9762 hardcode_libdir_flag_spec_GCJ='-L$libdir'
9763 allow_undefined_flag_GCJ=unsupported
9764 always_export_symbols_GCJ=no
9765 enable_shared_with_static_runtimes_GCJ=yes
9766 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9768 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9769 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9770 # If the export-symbols file already is a .def file (1st line
9771 # is EXPORTS), use it as is; otherwise, prepend...
9772 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9773 cp $export_symbols $output_objdir/$soname.def;
9774 else
9775 echo EXPORTS > $output_objdir/$soname.def;
9776 cat $export_symbols >> $output_objdir/$soname.def;
9778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9779 else
9780 ld_shlibs_GCJ=no
9784 linux*)
9785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9786 tmp_addflag=
9787 case $cc_basename,$host_cpu in
9788 pgcc*) # Portland Group C compiler
9789 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9790 tmp_addflag=' $pic_flag'
9792 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9793 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9794 tmp_addflag=' $pic_flag -Mnomain' ;;
9795 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9796 tmp_addflag=' -i_dynamic' ;;
9797 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9798 tmp_addflag=' -i_dynamic -nofor_main' ;;
9799 ifc* | ifort*) # Intel Fortran compiler
9800 tmp_addflag=' -nofor_main' ;;
9801 esac
9802 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9804 if test $supports_anon_versioning = yes; then
9805 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
9806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9807 $echo "local: *; };" >> $output_objdir/$libname.ver~
9808 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9810 else
9811 ld_shlibs_GCJ=no
9815 netbsd*)
9816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9817 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9818 wlarc=
9819 else
9820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9821 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9825 solaris* | sysv5*)
9826 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9827 ld_shlibs_GCJ=no
9828 cat <<EOF 1>&2
9830 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9831 *** create shared libraries on Solaris systems. Therefore, libtool
9832 *** is disabling shared libraries support. We urge you to upgrade GNU
9833 *** binutils to release 2.9.1 or newer. Another option is to modify
9834 *** your PATH or compiler configuration so that the native linker is
9835 *** used, and then restart.
9838 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9839 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9840 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9841 else
9842 ld_shlibs_GCJ=no
9846 sunos4*)
9847 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9848 wlarc=
9849 hardcode_direct_GCJ=yes
9850 hardcode_shlibpath_var_GCJ=no
9854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9855 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9856 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9857 else
9858 ld_shlibs_GCJ=no
9861 esac
9863 if test "$ld_shlibs_GCJ" = no; then
9864 runpath_var=
9865 hardcode_libdir_flag_spec_GCJ=
9866 export_dynamic_flag_spec_GCJ=
9867 whole_archive_flag_spec_GCJ=
9869 else
9870 # PORTME fill in a description of your system's linker (not GNU ld)
9871 case $host_os in
9872 aix3*)
9873 allow_undefined_flag_GCJ=unsupported
9874 always_export_symbols_GCJ=yes
9875 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9876 # Note: this linker hardcodes the directories in LIBPATH if there
9877 # are no directories specified by -L.
9878 hardcode_minus_L_GCJ=yes
9879 if test "$GCC" = yes && test -z "$link_static_flag"; then
9880 # Neither direct hardcoding nor static linking is supported with a
9881 # broken collect2.
9882 hardcode_direct_GCJ=unsupported
9886 aix4* | aix5*)
9887 if test "$host_cpu" = ia64; then
9888 # On IA64, the linker does run time linking by default, so we don't
9889 # have to do anything special.
9890 aix_use_runtimelinking=no
9891 exp_sym_flag='-Bexport'
9892 no_entry_flag=""
9893 else
9894 # If we're using GNU nm, then we don't want the "-C" option.
9895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9896 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9897 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9898 else
9899 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9901 aix_use_runtimelinking=no
9903 # Test if we are trying to use run time linking or normal
9904 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9905 # need to do runtime linking.
9906 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9907 for ld_flag in $LDFLAGS; do
9908 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9909 aix_use_runtimelinking=yes
9910 break
9912 done
9913 esac
9915 exp_sym_flag='-bexport'
9916 no_entry_flag='-bnoentry'
9919 # When large executables or shared objects are built, AIX ld can
9920 # have problems creating the table of contents. If linking a library
9921 # or program results in "error TOC overflow" add -mminimal-toc to
9922 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9923 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9925 archive_cmds_GCJ=''
9926 hardcode_direct_GCJ=yes
9927 hardcode_libdir_separator_GCJ=':'
9928 link_all_deplibs_GCJ=yes
9930 if test "$GCC" = yes; then
9931 case $host_os in aix4.[012]|aix4.[012].*)
9932 # We only want to do this on AIX 4.2 and lower, the check
9933 # below for broken collect2 doesn't work under 4.3+
9934 collect2name=`${CC} -print-prog-name=collect2`
9935 if test -f "$collect2name" && \
9936 strings "$collect2name" | grep resolve_lib_name >/dev/null
9937 then
9938 # We have reworked collect2
9939 hardcode_direct_GCJ=yes
9940 else
9941 # We have old collect2
9942 hardcode_direct_GCJ=unsupported
9943 # It fails to find uninstalled libraries when the uninstalled
9944 # path is not listed in the libpath. Setting hardcode_minus_L
9945 # to unsupported forces relinking
9946 hardcode_minus_L_GCJ=yes
9947 hardcode_libdir_flag_spec_GCJ='-L$libdir'
9948 hardcode_libdir_separator_GCJ=
9950 esac
9951 shared_flag='-shared'
9952 if test "$aix_use_runtimelinking" = yes; then
9953 shared_flag="$shared_flag "'${wl}-G'
9955 else
9956 # not using gcc
9957 if test "$host_cpu" = ia64; then
9958 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9959 # chokes on -Wl,-G. The following line is correct:
9960 shared_flag='-G'
9961 else
9962 if test "$aix_use_runtimelinking" = yes; then
9963 shared_flag='${wl}-G'
9964 else
9965 shared_flag='${wl}-bM:SRE'
9970 # It seems that -bexpall does not export symbols beginning with
9971 # underscore (_), so it is better to generate a list of symbols to export.
9972 always_export_symbols_GCJ=yes
9973 if test "$aix_use_runtimelinking" = yes; then
9974 # Warning - without using the other runtime loading flags (-brtl),
9975 # -berok will link without error, but may produce a broken library.
9976 allow_undefined_flag_GCJ='-berok'
9977 # Determine the default libpath from the value encoded in an empty executable.
9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9982 main ()
9986 return 0;
9988 _ACEOF
9989 if ac_fn_c_try_link "$LINENO"; then :
9991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9993 # Check for a 64-bit object if we didn't find anything.
9994 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9995 }'`; fi
9997 rm -f core conftest.err conftest.$ac_objext \
9998 conftest$ac_exeext conftest.$ac_ext
9999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10001 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
10002 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10003 else
10004 if test "$host_cpu" = ia64; then
10005 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
10006 allow_undefined_flag_GCJ="-z nodefs"
10007 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10008 else
10009 # Determine the default libpath from the value encoded in an empty executable.
10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011 /* end confdefs.h. */
10014 main ()
10018 return 0;
10020 _ACEOF
10021 if ac_fn_c_try_link "$LINENO"; then :
10023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10025 # Check for a 64-bit object if we didn't find anything.
10026 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10027 }'`; fi
10029 rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10033 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
10034 # Warning - without using the other run time loading flags,
10035 # -berok will link without error, but may produce a broken library.
10036 no_undefined_flag_GCJ=' ${wl}-bernotok'
10037 allow_undefined_flag_GCJ=' ${wl}-berok'
10038 # -bexpall does not export symbols beginning with underscore (_)
10039 always_export_symbols_GCJ=yes
10040 # Exported symbols can be pulled into shared objects from archives
10041 whole_archive_flag_spec_GCJ=' '
10042 archive_cmds_need_lc_GCJ=yes
10043 # This is similar to how AIX traditionally builds its shared libraries.
10044 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10049 amigaos*)
10050 archive_cmds_GCJ='$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)'
10051 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10052 hardcode_minus_L_GCJ=yes
10053 # see comment about different semantics on the GNU ld section
10054 ld_shlibs_GCJ=no
10057 bsdi[45]*)
10058 export_dynamic_flag_spec_GCJ=-rdynamic
10061 cygwin* | mingw* | pw32*)
10062 # When not using gcc, we currently assume that we are using
10063 # Microsoft Visual C++.
10064 # hardcode_libdir_flag_spec is actually meaningless, as there is
10065 # no search path for DLLs.
10066 hardcode_libdir_flag_spec_GCJ=' '
10067 allow_undefined_flag_GCJ=unsupported
10068 # Tell ltmain to make .lib files, not .a files.
10069 libext=lib
10070 # Tell ltmain to make .dll files, not .so files.
10071 shrext_cmds=".dll"
10072 # FIXME: Setting linknames here is a bad hack.
10073 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10074 # The linker will automatically build a .lib file if we build a DLL.
10075 old_archive_From_new_cmds_GCJ='true'
10076 # FIXME: Should let the user specify the lib program.
10077 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
10078 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
10079 enable_shared_with_static_runtimes_GCJ=yes
10082 darwin* | rhapsody*)
10083 case $host_os in
10084 rhapsody* | darwin1.[012])
10085 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
10087 *) # Darwin 1.3 on
10088 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10089 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10090 else
10091 case ${MACOSX_DEPLOYMENT_TARGET} in
10092 10.[012])
10093 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10095 10.*)
10096 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
10098 esac
10101 esac
10102 archive_cmds_need_lc_GCJ=no
10103 hardcode_direct_GCJ=no
10104 hardcode_automatic_GCJ=yes
10105 hardcode_shlibpath_var_GCJ=unsupported
10106 whole_archive_flag_spec_GCJ=''
10107 link_all_deplibs_GCJ=yes
10108 if test "$GCC" = yes ; then
10109 output_verbose_link_cmd='echo'
10110 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10111 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10112 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10113 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10114 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10115 else
10116 case $cc_basename in
10117 xlc*)
10118 output_verbose_link_cmd='echo'
10119 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10120 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10121 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10122 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10123 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10126 ld_shlibs_GCJ=no
10128 esac
10132 dgux*)
10133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10135 hardcode_shlibpath_var_GCJ=no
10138 freebsd1*)
10139 ld_shlibs_GCJ=no
10142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10143 # support. Future versions do this automatically, but an explicit c++rt0.o
10144 # does not break anything, and helps significantly (at the cost of a little
10145 # extra space).
10146 freebsd2.2*)
10147 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10148 hardcode_libdir_flag_spec_GCJ='-R$libdir'
10149 hardcode_direct_GCJ=yes
10150 hardcode_shlibpath_var_GCJ=no
10153 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10154 freebsd2*)
10155 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10156 hardcode_direct_GCJ=yes
10157 hardcode_minus_L_GCJ=yes
10158 hardcode_shlibpath_var_GCJ=no
10161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10162 freebsd* | kfreebsd*-gnu | dragonfly*)
10163 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10164 hardcode_libdir_flag_spec_GCJ='-R$libdir'
10165 hardcode_direct_GCJ=yes
10166 hardcode_shlibpath_var_GCJ=no
10169 hpux9*)
10170 if test "$GCC" = yes; then
10171 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10172 else
10173 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10175 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
10176 hardcode_libdir_separator_GCJ=:
10177 hardcode_direct_GCJ=yes
10179 # hardcode_minus_L: Not really in the search PATH,
10180 # but as the default location of the library.
10181 hardcode_minus_L_GCJ=yes
10182 export_dynamic_flag_spec_GCJ='${wl}-E'
10185 hpux10* | hpux11*)
10186 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10187 case $host_cpu in
10188 hppa*64*|ia64*)
10189 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10194 esac
10195 else
10196 case $host_cpu in
10197 hppa*64*|ia64*)
10198 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10201 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10203 esac
10205 if test "$with_gnu_ld" = no; then
10206 case $host_cpu in
10207 hppa*64*)
10208 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
10209 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
10210 hardcode_libdir_separator_GCJ=:
10211 hardcode_direct_GCJ=no
10212 hardcode_shlibpath_var_GCJ=no
10214 ia64*)
10215 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10216 hardcode_direct_GCJ=no
10217 hardcode_shlibpath_var_GCJ=no
10219 # hardcode_minus_L: Not really in the search PATH,
10220 # but as the default location of the library.
10221 hardcode_minus_L_GCJ=yes
10224 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
10225 hardcode_libdir_separator_GCJ=:
10226 hardcode_direct_GCJ=yes
10227 export_dynamic_flag_spec_GCJ='${wl}-E'
10229 # hardcode_minus_L: Not really in the search PATH,
10230 # but as the default location of the library.
10231 hardcode_minus_L_GCJ=yes
10233 esac
10237 irix5* | irix6* | nonstopux*)
10238 if test "$GCC" = yes; then
10239 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10240 else
10241 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10242 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
10244 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10245 hardcode_libdir_separator_GCJ=:
10246 link_all_deplibs_GCJ=yes
10249 netbsd*)
10250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10251 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10252 else
10253 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10255 hardcode_libdir_flag_spec_GCJ='-R$libdir'
10256 hardcode_direct_GCJ=yes
10257 hardcode_shlibpath_var_GCJ=no
10260 newsos6)
10261 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10262 hardcode_direct_GCJ=yes
10263 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10264 hardcode_libdir_separator_GCJ=:
10265 hardcode_shlibpath_var_GCJ=no
10268 openbsd*)
10269 hardcode_direct_GCJ=yes
10270 hardcode_shlibpath_var_GCJ=no
10271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10272 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10273 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10274 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
10275 export_dynamic_flag_spec_GCJ='${wl}-E'
10276 else
10277 case $host_os in
10278 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10279 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10280 hardcode_libdir_flag_spec_GCJ='-R$libdir'
10283 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10284 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
10286 esac
10290 os2*)
10291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10292 hardcode_minus_L_GCJ=yes
10293 allow_undefined_flag_GCJ=unsupported
10294 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10295 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10298 osf3*)
10299 if test "$GCC" = yes; then
10300 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
10301 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10302 else
10303 allow_undefined_flag_GCJ=' -expect_unresolved \*'
10304 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10306 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10307 hardcode_libdir_separator_GCJ=:
10310 osf4* | osf5*) # as osf3* with the addition of -msym flag
10311 if test "$GCC" = yes; then
10312 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
10313 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10314 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10315 else
10316 allow_undefined_flag_GCJ=' -expect_unresolved \*'
10317 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10318 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10319 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10321 # Both c and cxx compiler support -rpath directly
10322 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
10324 hardcode_libdir_separator_GCJ=:
10327 sco3.2v5*)
10328 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10329 hardcode_shlibpath_var_GCJ=no
10330 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
10331 runpath_var=LD_RUN_PATH
10332 hardcode_runpath_var=yes
10335 solaris*)
10336 no_undefined_flag_GCJ=' -z text'
10337 if test "$GCC" = yes; then
10338 wlarc='${wl}'
10339 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10341 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10342 else
10343 wlarc=''
10344 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10345 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10346 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10348 hardcode_libdir_flag_spec_GCJ='-R$libdir'
10349 hardcode_shlibpath_var_GCJ=no
10350 case $host_os in
10351 solaris2.[0-5] | solaris2.[0-5].*) ;;
10353 # The compiler driver will combine linker options so we
10354 # cannot just pass the convience library names through
10355 # without $wl, iff we do not link with $LD.
10356 # Luckily, gcc supports the same syntax we need for Sun Studio.
10357 # Supported since Solaris 2.6 (maybe 2.5.1?)
10358 case $wlarc in
10360 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
10362 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10363 esac ;;
10364 esac
10365 link_all_deplibs_GCJ=yes
10368 sunos4*)
10369 if test "x$host_vendor" = xsequent; then
10370 # Use $CC to link under sequent, because it throws in some extra .o
10371 # files that make .init and .fini sections work.
10372 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10373 else
10374 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10376 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10377 hardcode_direct_GCJ=yes
10378 hardcode_minus_L_GCJ=yes
10379 hardcode_shlibpath_var_GCJ=no
10382 sysv4)
10383 case $host_vendor in
10384 sni)
10385 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10386 hardcode_direct_GCJ=yes # is this really true???
10388 siemens)
10389 ## LD is ld it makes a PLAMLIB
10390 ## CC just makes a GrossModule.
10391 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10392 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
10393 hardcode_direct_GCJ=no
10395 motorola)
10396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10397 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
10399 esac
10400 runpath_var='LD_RUN_PATH'
10401 hardcode_shlibpath_var_GCJ=no
10404 sysv4.3*)
10405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_shlibpath_var_GCJ=no
10407 export_dynamic_flag_spec_GCJ='-Bexport'
10410 sysv4*MP*)
10411 if test -d /usr/nec; then
10412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10413 hardcode_shlibpath_var_GCJ=no
10414 runpath_var=LD_RUN_PATH
10415 hardcode_runpath_var=yes
10416 ld_shlibs_GCJ=yes
10420 sysv4.2uw2*)
10421 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10422 hardcode_direct_GCJ=yes
10423 hardcode_minus_L_GCJ=no
10424 hardcode_shlibpath_var_GCJ=no
10425 hardcode_runpath_var=yes
10426 runpath_var=LD_RUN_PATH
10429 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10430 no_undefined_flag_GCJ='${wl}-z ${wl}text'
10431 if test "$GCC" = yes; then
10432 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 else
10434 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10436 runpath_var='LD_RUN_PATH'
10437 hardcode_shlibpath_var_GCJ=no
10440 sysv5*)
10441 no_undefined_flag_GCJ=' -z text'
10442 # $CC -shared without GNU ld will not create a library from C++
10443 # object files and a static libstdc++, better avoid it by now
10444 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10445 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10447 hardcode_libdir_flag_spec_GCJ=
10448 hardcode_shlibpath_var_GCJ=no
10449 runpath_var='LD_RUN_PATH'
10452 uts4*)
10453 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10454 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10455 hardcode_shlibpath_var_GCJ=no
10459 ld_shlibs_GCJ=no
10461 esac
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
10465 $as_echo "$ld_shlibs_GCJ" >&6; }
10466 test "$ld_shlibs_GCJ" = no && can_build_shared=no
10468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10469 if test "$GCC" = yes; then
10470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10474 # Do we need to explicitly link libc?
10476 case "x$archive_cmds_need_lc_GCJ" in
10477 x|xyes)
10478 # Assume -lc should be added
10479 archive_cmds_need_lc_GCJ=yes
10481 if test "$enable_shared" = yes && test "$GCC" = yes; then
10482 case $archive_cmds_GCJ in
10483 *'~'*)
10484 # FIXME: we may have to deal with multi-command sequences.
10486 '$CC '*)
10487 # Test whether the compiler implicitly links with -lc since on some
10488 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10489 # to ld, don't add -lc before -lgcc.
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10491 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10492 $rm conftest*
10493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10496 (eval $ac_compile) 2>&5
10497 ac_status=$?
10498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10499 test $ac_status = 0; } 2>conftest.err; then
10500 soname=conftest
10501 lib=conftest
10502 libobjs=conftest.$ac_objext
10503 deplibs=
10504 wl=$lt_prog_compiler_wl_GCJ
10505 compiler_flags=-v
10506 linker_flags=-v
10507 verstring=
10508 output_objdir=.
10509 libname=conftest
10510 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
10511 allow_undefined_flag_GCJ=
10512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10513 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10514 ac_status=$?
10515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10516 test $ac_status = 0; }
10517 then
10518 archive_cmds_need_lc_GCJ=no
10519 else
10520 archive_cmds_need_lc_GCJ=yes
10522 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
10523 else
10524 cat conftest.err 1>&5
10526 $rm conftest*
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
10528 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
10530 esac
10533 esac
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10536 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10537 library_names_spec=
10538 libname_spec='lib$name'
10539 soname_spec=
10540 shrext_cmds=".so"
10541 postinstall_cmds=
10542 postuninstall_cmds=
10543 finish_cmds=
10544 finish_eval=
10545 shlibpath_var=
10546 shlibpath_overrides_runpath=unknown
10547 version_type=none
10548 dynamic_linker="$host_os ld.so"
10549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10550 if test "$GCC" = yes; then
10551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10552 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10553 # if the path contains ";" then we assume it to be the separator
10554 # otherwise default to the standard path separator (i.e. ":") - it is
10555 # assumed that no part of a normal pathname contains ";" but that should
10556 # okay in the real world where ";" in dirpaths is itself problematic.
10557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10558 else
10559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10561 else
10562 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10564 need_lib_prefix=unknown
10565 hardcode_into_libs=no
10567 # when you set need_version to no, make sure it does not cause -set_version
10568 # flags to be left without arguments
10569 need_version=unknown
10571 case $host_os in
10572 aix3*)
10573 version_type=linux
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10575 shlibpath_var=LIBPATH
10577 # AIX 3 has no versioning support, so we append a major version to the name.
10578 soname_spec='${libname}${release}${shared_ext}$major'
10581 aix4* | aix5*)
10582 version_type=linux
10583 need_lib_prefix=no
10584 need_version=no
10585 hardcode_into_libs=yes
10586 if test "$host_cpu" = ia64; then
10587 # AIX 5 supports IA64
10588 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 else
10591 # With GCC up to 2.95.x, collect2 would create an import file
10592 # for dependence libraries. The import file would start with
10593 # the line `#! .'. This would cause the generated library to
10594 # depend on `.', always an invalid library. This was fixed in
10595 # development snapshots of GCC prior to 3.0.
10596 case $host_os in
10597 aix4 | aix4.[01] | aix4.[01].*)
10598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10599 echo ' yes '
10600 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10602 else
10603 can_build_shared=no
10606 esac
10607 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10608 # soname into executable. Probably we can add versioning support to
10609 # collect2, so additional links can be useful in future.
10610 if test "$aix_use_runtimelinking" = yes; then
10611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10612 # instead of lib<name>.a to let people know that these are not
10613 # typical AIX shared libraries.
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 else
10616 # We preserve .a as extension for shared libraries through AIX4.2
10617 # and later when we are not doing run time linking.
10618 library_names_spec='${libname}${release}.a $libname.a'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10621 shlibpath_var=LIBPATH
10625 amigaos*)
10626 library_names_spec='$libname.ixlibrary $libname.a'
10627 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10628 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10631 beos*)
10632 library_names_spec='${libname}${shared_ext}'
10633 dynamic_linker="$host_os ld.so"
10634 shlibpath_var=LIBRARY_PATH
10637 bsdi[45]*)
10638 version_type=linux
10639 need_version=no
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10646 # the default ld.so.conf also contains /usr/contrib/lib and
10647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10648 # libtool to hard-code these into programs
10651 cygwin* | mingw* | pw32*)
10652 version_type=windows
10653 shrext_cmds=".dll"
10654 need_version=no
10655 need_lib_prefix=no
10657 case $GCC,$host_os in
10658 yes,cygwin* | yes,mingw* | yes,pw32*)
10659 library_names_spec='$libname.dll.a'
10660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10661 postinstall_cmds='base_file=`basename \${file}`~
10662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10663 dldir=$destdir/`dirname \$dlpath`~
10664 test -d \$dldir || mkdir -p \$dldir~
10665 $install_prog $dir/$dlname \$dldir/$dlname~
10666 chmod a+x \$dldir/$dlname'
10667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10668 dlpath=$dir/\$dldll~
10669 $rm \$dlpath'
10670 shlibpath_overrides_runpath=yes
10672 case $host_os in
10673 cygwin*)
10674 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10678 mingw*)
10679 # MinGW DLLs use traditional 'lib' prefix
10680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10682 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10683 # It is most probably a Windows format PATH printed by
10684 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10685 # path with ; separators, and with drive letters. We can handle the
10686 # drive letters (cygwin fileutils understands them), so leave them,
10687 # especially as we might pass files found there to a mingw objdump,
10688 # which wouldn't understand a cygwinified path. Ahh.
10689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10690 else
10691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10694 pw32*)
10695 # pw32 DLLs use 'pw' prefix rather than 'lib'
10696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10698 esac
10702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10704 esac
10705 dynamic_linker='Win32 ld.exe'
10706 # FIXME: first we should search . and the directory the executable is in
10707 shlibpath_var=PATH
10710 darwin* | rhapsody*)
10711 dynamic_linker="$host_os dyld"
10712 version_type=darwin
10713 need_lib_prefix=no
10714 need_version=no
10715 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10716 soname_spec='${libname}${release}${major}$shared_ext'
10717 shlibpath_overrides_runpath=yes
10718 shlibpath_var=DYLD_LIBRARY_PATH
10719 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10720 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10721 if test "$GCC" = yes; then
10722 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10723 else
10724 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10729 dgux*)
10730 version_type=linux
10731 need_lib_prefix=no
10732 need_version=no
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 shlibpath_var=LD_LIBRARY_PATH
10738 freebsd1*)
10739 dynamic_linker=no
10742 kfreebsd*-gnu)
10743 version_type=linux
10744 need_lib_prefix=no
10745 need_version=no
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 shlibpath_var=LD_LIBRARY_PATH
10749 shlibpath_overrides_runpath=no
10750 hardcode_into_libs=yes
10751 dynamic_linker='GNU ld.so'
10754 freebsd* | dragonfly*)
10755 # DragonFly does not have aout. When/if they implement a new
10756 # versioning mechanism, adjust this.
10757 if test -x /usr/bin/objformat; then
10758 objformat=`/usr/bin/objformat`
10759 else
10760 case $host_os in
10761 freebsd[123]*) objformat=aout ;;
10762 *) objformat=elf ;;
10763 esac
10765 version_type=freebsd-$objformat
10766 case $version_type in
10767 freebsd-elf*)
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10769 need_version=no
10770 need_lib_prefix=no
10772 freebsd-*)
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10774 need_version=yes
10776 esac
10777 shlibpath_var=LD_LIBRARY_PATH
10778 case $host_os in
10779 freebsd2*)
10780 shlibpath_overrides_runpath=yes
10782 freebsd3.[01]* | freebsdelf3.[01]*)
10783 shlibpath_overrides_runpath=yes
10784 hardcode_into_libs=yes
10786 *) # from 3.2 on
10787 shlibpath_overrides_runpath=no
10788 hardcode_into_libs=yes
10790 esac
10793 gnu*)
10794 version_type=linux
10795 need_lib_prefix=no
10796 need_version=no
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 hardcode_into_libs=yes
10803 hpux9* | hpux10* | hpux11*)
10804 # Give a soname corresponding to the major version so that dld.sl refuses to
10805 # link against other versions.
10806 version_type=sunos
10807 need_lib_prefix=no
10808 need_version=no
10809 case $host_cpu in
10810 ia64*)
10811 shrext_cmds='.so'
10812 hardcode_into_libs=yes
10813 dynamic_linker="$host_os dld.so"
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 soname_spec='${libname}${release}${shared_ext}$major'
10818 if test "X$HPUX_IA64_MODE" = X32; then
10819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10820 else
10821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10825 hppa*64*)
10826 shrext_cmds='.sl'
10827 hardcode_into_libs=yes
10828 dynamic_linker="$host_os dld.sl"
10829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832 soname_spec='${libname}${release}${shared_ext}$major'
10833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10837 shrext_cmds='.sl'
10838 dynamic_linker="$host_os dld.sl"
10839 shlibpath_var=SHLIB_PATH
10840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842 soname_spec='${libname}${release}${shared_ext}$major'
10844 esac
10845 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10846 postinstall_cmds='chmod 555 $lib'
10849 irix5* | irix6* | nonstopux*)
10850 case $host_os in
10851 nonstopux*) version_type=nonstopux ;;
10853 if test "$lt_cv_prog_gnu_ld" = yes; then
10854 version_type=linux
10855 else
10856 version_type=irix
10857 fi ;;
10858 esac
10859 need_lib_prefix=no
10860 need_version=no
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10863 case $host_os in
10864 irix5* | nonstopux*)
10865 libsuff= shlibsuff=
10868 case $LD in # libtool.m4 will add one of these switches to LD
10869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10870 libsuff= shlibsuff= libmagic=32-bit;;
10871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10872 libsuff=32 shlibsuff=N32 libmagic=N32;;
10873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10874 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10875 *) libsuff= shlibsuff= libmagic=never-match;;
10876 esac
10878 esac
10879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10880 shlibpath_overrides_runpath=no
10881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10883 hardcode_into_libs=yes
10886 # No shared lib support for Linux oldld, aout, or coff.
10887 linux*oldld* | linux*aout* | linux*coff*)
10888 dynamic_linker=no
10891 # This must be Linux ELF.
10892 linux*)
10893 version_type=linux
10894 need_lib_prefix=no
10895 need_version=no
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=no
10901 # This implies no fast_install, which is unacceptable.
10902 # Some rework will be needed to allow for fast_install
10903 # before this can be enabled.
10904 hardcode_into_libs=yes
10906 # Append ld.so.conf contents to the search path
10907 if test -f /etc/ld.so.conf; then
10908 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10909 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10912 # We used to test for /lib/ld.so.1 and disable shared libraries on
10913 # powerpc, because MkLinux only supported shared libraries with the
10914 # GNU dynamic linker. Since this was broken with cross compilers,
10915 # most powerpc-linux boxes support dynamic linking these days and
10916 # people can always --disable-shared, the test was removed, and we
10917 # assume the GNU/Linux dynamic linker is in use.
10918 dynamic_linker='GNU/Linux ld.so'
10921 knetbsd*-gnu)
10922 version_type=linux
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath=no
10929 hardcode_into_libs=yes
10930 dynamic_linker='GNU ld.so'
10933 netbsd*)
10934 version_type=sunos
10935 need_lib_prefix=no
10936 need_version=no
10937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10940 dynamic_linker='NetBSD (a.out) ld.so'
10941 else
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 dynamic_linker='NetBSD ld.elf_so'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 shlibpath_overrides_runpath=yes
10948 hardcode_into_libs=yes
10951 newsos6)
10952 version_type=linux
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath=yes
10958 nto-qnx*)
10959 version_type=linux
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes
10968 openbsd*)
10969 version_type=sunos
10970 need_lib_prefix=no
10971 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10972 case $host_os in
10973 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10974 *) need_version=no ;;
10975 esac
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10980 case $host_os in
10981 openbsd2.[89] | openbsd2.[89].*)
10982 shlibpath_overrides_runpath=no
10985 shlibpath_overrides_runpath=yes
10987 esac
10988 else
10989 shlibpath_overrides_runpath=yes
10993 os2*)
10994 libname_spec='$name'
10995 shrext_cmds=".dll"
10996 need_lib_prefix=no
10997 library_names_spec='$libname${shared_ext} $libname.a'
10998 dynamic_linker='OS/2 ld.exe'
10999 shlibpath_var=LIBPATH
11002 osf3* | osf4* | osf5*)
11003 version_type=osf
11004 need_lib_prefix=no
11005 need_version=no
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11013 sco3.2v5*)
11014 version_type=osf
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 shlibpath_var=LD_LIBRARY_PATH
11020 solaris*)
11021 version_type=linux
11022 need_lib_prefix=no
11023 need_version=no
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=yes
11028 hardcode_into_libs=yes
11029 # ldd complains unless libraries are executable
11030 postinstall_cmds='chmod +x $lib'
11033 sunos4*)
11034 version_type=sunos
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=yes
11039 if test "$with_gnu_ld" = yes; then
11040 need_lib_prefix=no
11042 need_version=yes
11045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11046 version_type=linux
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 case $host_vendor in
11051 sni)
11052 shlibpath_overrides_runpath=no
11053 need_lib_prefix=no
11054 export_dynamic_flag_spec='${wl}-Blargedynsym'
11055 runpath_var=LD_RUN_PATH
11057 siemens)
11058 need_lib_prefix=no
11060 motorola)
11061 need_lib_prefix=no
11062 need_version=no
11063 shlibpath_overrides_runpath=no
11064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11066 esac
11069 sysv4*MP*)
11070 if test -d /usr/nec ;then
11071 version_type=linux
11072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11073 soname_spec='$libname${shared_ext}.$major'
11074 shlibpath_var=LD_LIBRARY_PATH
11078 uts4*)
11079 version_type=linux
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081 soname_spec='${libname}${release}${shared_ext}$major'
11082 shlibpath_var=LD_LIBRARY_PATH
11086 dynamic_linker=no
11088 esac
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11090 $as_echo "$dynamic_linker" >&6; }
11091 test "$dynamic_linker" = no && can_build_shared=no
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11094 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11095 hardcode_action_GCJ=
11096 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
11097 test -n "$runpath_var_GCJ" || \
11098 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
11100 # We can hardcode non-existant directories.
11101 if test "$hardcode_direct_GCJ" != no &&
11102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11103 # have to relink, otherwise we might link with an installed library
11104 # when we should be linking with a yet-to-be-installed one
11105 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
11106 test "$hardcode_minus_L_GCJ" != no; then
11107 # Linking always hardcodes the temporary library directory.
11108 hardcode_action_GCJ=relink
11109 else
11110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11111 hardcode_action_GCJ=immediate
11113 else
11114 # We cannot hardcode anything, or else we can only hardcode existing
11115 # directories.
11116 hardcode_action_GCJ=unsupported
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
11119 $as_echo "$hardcode_action_GCJ" >&6; }
11121 if test "$hardcode_action_GCJ" = relink; then
11122 # Fast installation is not supported
11123 enable_fast_install=no
11124 elif test "$shlibpath_overrides_runpath" = yes ||
11125 test "$enable_shared" = no; then
11126 # Fast installation is not necessary
11127 enable_fast_install=needless
11130 striplib=
11131 old_striplib=
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11133 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11134 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11135 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11136 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11138 $as_echo "yes" >&6; }
11139 else
11140 # FIXME - insert some real tests, host_os isn't really good enough
11141 case $host_os in
11142 darwin*)
11143 if test -n "$STRIP" ; then
11144 striplib="$STRIP -x"
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11146 $as_echo "yes" >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11156 esac
11159 if test "x$enable_dlopen" != xyes; then
11160 enable_dlopen=unknown
11161 enable_dlopen_self=unknown
11162 enable_dlopen_self_static=unknown
11163 else
11164 lt_cv_dlopen=no
11165 lt_cv_dlopen_libs=
11167 case $host_os in
11168 beos*)
11169 lt_cv_dlopen="load_add_on"
11170 lt_cv_dlopen_libs=
11171 lt_cv_dlopen_self=yes
11174 mingw* | pw32*)
11175 lt_cv_dlopen="LoadLibrary"
11176 lt_cv_dlopen_libs=
11179 cygwin*)
11180 lt_cv_dlopen="dlopen"
11181 lt_cv_dlopen_libs=
11184 darwin*)
11185 # if libdl is installed we need to link against it
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11187 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 ac_check_lib_save_LIBS=$LIBS
11192 LIBS="-ldl $LIBS"
11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11196 /* Override any GCC internal prototype to avoid an error.
11197 Use char because int might match the return type of a GCC
11198 builtin and then its argument prototype would still apply. */
11199 #ifdef __cplusplus
11200 extern "C"
11201 #endif
11202 char dlopen ();
11204 main ()
11206 return dlopen ();
11208 return 0;
11210 _ACEOF
11211 if ac_fn_c_try_link "$LINENO"; then :
11212 ac_cv_lib_dl_dlopen=yes
11213 else
11214 ac_cv_lib_dl_dlopen=no
11216 rm -f core conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11218 LIBS=$ac_check_lib_save_LIBS
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11221 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11222 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11224 else
11226 lt_cv_dlopen="dyld"
11227 lt_cv_dlopen_libs=
11228 lt_cv_dlopen_self=yes
11235 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11236 if test "x$ac_cv_func_shl_load" = x""yes; then :
11237 lt_cv_dlopen="shl_load"
11238 else
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11240 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11241 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 ac_check_lib_save_LIBS=$LIBS
11245 LIBS="-ldld $LIBS"
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char shl_load ();
11257 main ()
11259 return shl_load ();
11261 return 0;
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"; then :
11265 ac_cv_lib_dld_shl_load=yes
11266 else
11267 ac_cv_lib_dld_shl_load=no
11269 rm -f core conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11271 LIBS=$ac_check_lib_save_LIBS
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11274 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11275 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11276 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11277 else
11278 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11279 if test "x$ac_cv_func_dlopen" = x""yes; then :
11280 lt_cv_dlopen="dlopen"
11281 else
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11284 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 ac_check_lib_save_LIBS=$LIBS
11288 LIBS="-ldl $LIBS"
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11292 /* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
11295 #ifdef __cplusplus
11296 extern "C"
11297 #endif
11298 char dlopen ();
11300 main ()
11302 return dlopen ();
11304 return 0;
11306 _ACEOF
11307 if ac_fn_c_try_link "$LINENO"; then :
11308 ac_cv_lib_dl_dlopen=yes
11309 else
11310 ac_cv_lib_dl_dlopen=no
11312 rm -f core conftest.err conftest.$ac_objext \
11313 conftest$ac_exeext conftest.$ac_ext
11314 LIBS=$ac_check_lib_save_LIBS
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11318 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11322 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11323 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11325 else
11326 ac_check_lib_save_LIBS=$LIBS
11327 LIBS="-lsvld $LIBS"
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11331 /* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
11334 #ifdef __cplusplus
11335 extern "C"
11336 #endif
11337 char dlopen ();
11339 main ()
11341 return dlopen ();
11343 return 0;
11345 _ACEOF
11346 if ac_fn_c_try_link "$LINENO"; then :
11347 ac_cv_lib_svld_dlopen=yes
11348 else
11349 ac_cv_lib_svld_dlopen=no
11351 rm -f core conftest.err conftest.$ac_objext \
11352 conftest$ac_exeext conftest.$ac_ext
11353 LIBS=$ac_check_lib_save_LIBS
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11356 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11357 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11359 else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11361 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11362 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 ac_check_lib_save_LIBS=$LIBS
11366 LIBS="-ldld $LIBS"
11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11370 /* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
11373 #ifdef __cplusplus
11374 extern "C"
11375 #endif
11376 char dld_link ();
11378 main ()
11380 return dld_link ();
11382 return 0;
11384 _ACEOF
11385 if ac_fn_c_try_link "$LINENO"; then :
11386 ac_cv_lib_dld_dld_link=yes
11387 else
11388 ac_cv_lib_dld_dld_link=no
11390 rm -f core conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext conftest.$ac_ext
11392 LIBS=$ac_check_lib_save_LIBS
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11395 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11396 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11397 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11416 esac
11418 if test "x$lt_cv_dlopen" != xno; then
11419 enable_dlopen=yes
11420 else
11421 enable_dlopen=no
11424 case $lt_cv_dlopen in
11425 dlopen)
11426 save_CPPFLAGS="$CPPFLAGS"
11427 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11429 save_LDFLAGS="$LDFLAGS"
11430 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11432 save_LIBS="$LIBS"
11433 LIBS="$lt_cv_dlopen_libs $LIBS"
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11436 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11437 if test "${lt_cv_dlopen_self+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 if test "$cross_compiling" = yes; then :
11441 lt_cv_dlopen_self=cross
11442 else
11443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11444 lt_status=$lt_dlunknown
11445 cat > conftest.$ac_ext <<EOF
11446 #line 11446 "configure"
11447 #include "confdefs.h"
11449 #if HAVE_DLFCN_H
11450 #include <dlfcn.h>
11451 #endif
11453 #include <stdio.h>
11455 #ifdef RTLD_GLOBAL
11456 # define LT_DLGLOBAL RTLD_GLOBAL
11457 #else
11458 # ifdef DL_GLOBAL
11459 # define LT_DLGLOBAL DL_GLOBAL
11460 # else
11461 # define LT_DLGLOBAL 0
11462 # endif
11463 #endif
11465 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11466 find out it does not work in some platform. */
11467 #ifndef LT_DLLAZY_OR_NOW
11468 # ifdef RTLD_LAZY
11469 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11470 # else
11471 # ifdef DL_LAZY
11472 # define LT_DLLAZY_OR_NOW DL_LAZY
11473 # else
11474 # ifdef RTLD_NOW
11475 # define LT_DLLAZY_OR_NOW RTLD_NOW
11476 # else
11477 # ifdef DL_NOW
11478 # define LT_DLLAZY_OR_NOW DL_NOW
11479 # else
11480 # define LT_DLLAZY_OR_NOW 0
11481 # endif
11482 # endif
11483 # endif
11484 # endif
11485 #endif
11487 #ifdef __cplusplus
11488 extern "C" void exit (int);
11489 #endif
11491 void fnord() { int i=42;}
11492 int main ()
11494 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11495 int status = $lt_dlunknown;
11497 if (self)
11499 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11500 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11501 /* dlclose (self); */
11504 exit (status);
11507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11508 (eval $ac_link) 2>&5
11509 ac_status=$?
11510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11511 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11512 (./conftest; exit; ) >&5 2>/dev/null
11513 lt_status=$?
11514 case x$lt_status in
11515 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11516 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11517 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11518 esac
11519 else :
11520 # compilation failed
11521 lt_cv_dlopen_self=no
11524 rm -fr conftest*
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11529 $as_echo "$lt_cv_dlopen_self" >&6; }
11531 if test "x$lt_cv_dlopen_self" = xyes; then
11532 LDFLAGS="$LDFLAGS $link_static_flag"
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11534 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11535 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 if test "$cross_compiling" = yes; then :
11539 lt_cv_dlopen_self_static=cross
11540 else
11541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11542 lt_status=$lt_dlunknown
11543 cat > conftest.$ac_ext <<EOF
11544 #line 11544 "configure"
11545 #include "confdefs.h"
11547 #if HAVE_DLFCN_H
11548 #include <dlfcn.h>
11549 #endif
11551 #include <stdio.h>
11553 #ifdef RTLD_GLOBAL
11554 # define LT_DLGLOBAL RTLD_GLOBAL
11555 #else
11556 # ifdef DL_GLOBAL
11557 # define LT_DLGLOBAL DL_GLOBAL
11558 # else
11559 # define LT_DLGLOBAL 0
11560 # endif
11561 #endif
11563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11564 find out it does not work in some platform. */
11565 #ifndef LT_DLLAZY_OR_NOW
11566 # ifdef RTLD_LAZY
11567 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11568 # else
11569 # ifdef DL_LAZY
11570 # define LT_DLLAZY_OR_NOW DL_LAZY
11571 # else
11572 # ifdef RTLD_NOW
11573 # define LT_DLLAZY_OR_NOW RTLD_NOW
11574 # else
11575 # ifdef DL_NOW
11576 # define LT_DLLAZY_OR_NOW DL_NOW
11577 # else
11578 # define LT_DLLAZY_OR_NOW 0
11579 # endif
11580 # endif
11581 # endif
11582 # endif
11583 #endif
11585 #ifdef __cplusplus
11586 extern "C" void exit (int);
11587 #endif
11589 void fnord() { int i=42;}
11590 int main ()
11592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11593 int status = $lt_dlunknown;
11595 if (self)
11597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11598 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11599 /* dlclose (self); */
11602 exit (status);
11605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11606 (eval $ac_link) 2>&5
11607 ac_status=$?
11608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11609 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11610 (./conftest; exit; ) >&5 2>/dev/null
11611 lt_status=$?
11612 case x$lt_status in
11613 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11614 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11615 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11616 esac
11617 else :
11618 # compilation failed
11619 lt_cv_dlopen_self_static=no
11622 rm -fr conftest*
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11627 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11630 CPPFLAGS="$save_CPPFLAGS"
11631 LDFLAGS="$save_LDFLAGS"
11632 LIBS="$save_LIBS"
11634 esac
11636 case $lt_cv_dlopen_self in
11637 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11638 *) enable_dlopen_self=unknown ;;
11639 esac
11641 case $lt_cv_dlopen_self_static in
11642 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11643 *) enable_dlopen_self_static=unknown ;;
11644 esac
11648 # The else clause should only fire when bootstrapping the
11649 # libtool distribution, otherwise you forgot to ship ltmain.sh
11650 # with your package, and you will get complaints that there are
11651 # no rules to generate ltmain.sh.
11652 if test -f "$ltmain"; then
11653 # See if we are running on zsh, and set the options which allow our commands through
11654 # without removal of \ escapes.
11655 if test -n "${ZSH_VERSION+set}" ; then
11656 setopt NO_GLOB_SUBST
11658 # Now quote all the things that may contain metacharacters while being
11659 # careful not to overquote the AC_SUBSTed values. We take copies of the
11660 # variables and quote the copies for generation of the libtool script.
11661 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11662 SED SHELL STRIP \
11663 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11664 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11665 deplibs_check_method reload_flag reload_cmds need_locks \
11666 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11667 lt_cv_sys_global_symbol_to_c_name_address \
11668 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11669 old_postinstall_cmds old_postuninstall_cmds \
11670 compiler_GCJ \
11671 CC_GCJ \
11672 LD_GCJ \
11673 lt_prog_compiler_wl_GCJ \
11674 lt_prog_compiler_pic_GCJ \
11675 lt_prog_compiler_static_GCJ \
11676 lt_prog_compiler_no_builtin_flag_GCJ \
11677 export_dynamic_flag_spec_GCJ \
11678 thread_safe_flag_spec_GCJ \
11679 whole_archive_flag_spec_GCJ \
11680 enable_shared_with_static_runtimes_GCJ \
11681 old_archive_cmds_GCJ \
11682 old_archive_from_new_cmds_GCJ \
11683 predep_objects_GCJ \
11684 postdep_objects_GCJ \
11685 predeps_GCJ \
11686 postdeps_GCJ \
11687 compiler_lib_search_path_GCJ \
11688 archive_cmds_GCJ \
11689 archive_expsym_cmds_GCJ \
11690 postinstall_cmds_GCJ \
11691 postuninstall_cmds_GCJ \
11692 old_archive_from_expsyms_cmds_GCJ \
11693 allow_undefined_flag_GCJ \
11694 no_undefined_flag_GCJ \
11695 export_symbols_cmds_GCJ \
11696 hardcode_libdir_flag_spec_GCJ \
11697 hardcode_libdir_flag_spec_ld_GCJ \
11698 hardcode_libdir_separator_GCJ \
11699 hardcode_automatic_GCJ \
11700 module_cmds_GCJ \
11701 module_expsym_cmds_GCJ \
11702 lt_cv_prog_compiler_c_o_GCJ \
11703 exclude_expsyms_GCJ \
11704 include_expsyms_GCJ; do
11706 case $var in
11707 old_archive_cmds_GCJ | \
11708 old_archive_from_new_cmds_GCJ | \
11709 archive_cmds_GCJ | \
11710 archive_expsym_cmds_GCJ | \
11711 module_cmds_GCJ | \
11712 module_expsym_cmds_GCJ | \
11713 old_archive_from_expsyms_cmds_GCJ | \
11714 export_symbols_cmds_GCJ | \
11715 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11716 postinstall_cmds | postuninstall_cmds | \
11717 old_postinstall_cmds | old_postuninstall_cmds | \
11718 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11719 # Double-quote double-evaled strings.
11720 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11723 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11725 esac
11726 done
11728 case $lt_echo in
11729 *'\$0 --fallback-echo"')
11730 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11732 esac
11734 cfgfile="$ofile"
11736 cat <<__EOF__ >> "$cfgfile"
11737 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11739 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11741 # Shell to use when invoking shell scripts.
11742 SHELL=$lt_SHELL
11744 # Whether or not to build shared libraries.
11745 build_libtool_libs=$enable_shared
11747 # Whether or not to build static libraries.
11748 build_old_libs=$enable_static
11750 # Whether or not to add -lc for building shared libraries.
11751 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
11753 # Whether or not to disallow shared libs when runtime libs are static
11754 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
11756 # Whether or not to optimize for fast installation.
11757 fast_install=$enable_fast_install
11759 # The host system.
11760 host_alias=$host_alias
11761 host=$host
11762 host_os=$host_os
11764 # The build system.
11765 build_alias=$build_alias
11766 build=$build
11767 build_os=$build_os
11769 # An echo program that does not interpret backslashes.
11770 echo=$lt_echo
11772 # The archiver.
11773 AR=$lt_AR
11774 AR_FLAGS=$lt_AR_FLAGS
11776 # A C compiler.
11777 LTCC=$lt_LTCC
11779 # A language-specific compiler.
11780 CC=$lt_compiler_GCJ
11782 # Is the compiler the GNU C compiler?
11783 with_gcc=$GCC_GCJ
11785 # An ERE matcher.
11786 EGREP=$lt_EGREP
11788 # The linker used to build libraries.
11789 LD=$lt_LD_GCJ
11791 # Whether we need hard or soft links.
11792 LN_S=$lt_LN_S
11794 # A BSD-compatible nm program.
11795 NM=$lt_NM
11797 # A symbol stripping program
11798 STRIP=$lt_STRIP
11800 # Used to examine libraries when file_magic_cmd begins "file"
11801 MAGIC_CMD=$MAGIC_CMD
11803 # Used on cygwin: DLL creation program.
11804 DLLTOOL="$DLLTOOL"
11806 # Used on cygwin: object dumper.
11807 OBJDUMP="$OBJDUMP"
11809 # Used on cygwin: assembler.
11810 AS="$AS"
11812 # The name of the directory that contains temporary libtool files.
11813 objdir=$objdir
11815 # How to create reloadable object files.
11816 reload_flag=$lt_reload_flag
11817 reload_cmds=$lt_reload_cmds
11819 # How to pass a linker flag through the compiler.
11820 wl=$lt_lt_prog_compiler_wl_GCJ
11822 # Object file suffix (normally "o").
11823 objext="$ac_objext"
11825 # Old archive suffix (normally "a").
11826 libext="$libext"
11828 # Shared library suffix (normally ".so").
11829 shrext_cmds='$shrext_cmds'
11831 # Executable file suffix (normally "").
11832 exeext="$exeext"
11834 # Additional compiler flags for building library objects.
11835 pic_flag=$lt_lt_prog_compiler_pic_GCJ
11836 pic_mode=$pic_mode
11838 # What is the maximum length of a command?
11839 max_cmd_len=$lt_cv_sys_max_cmd_len
11841 # Does compiler simultaneously support -c and -o options?
11842 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
11844 # Must we lock files when doing compilation?
11845 need_locks=$lt_need_locks
11847 # Do we need the lib prefix for modules?
11848 need_lib_prefix=$need_lib_prefix
11850 # Do we need a version for libraries?
11851 need_version=$need_version
11853 # Whether dlopen is supported.
11854 dlopen_support=$enable_dlopen
11856 # Whether dlopen of programs is supported.
11857 dlopen_self=$enable_dlopen_self
11859 # Whether dlopen of statically linked programs is supported.
11860 dlopen_self_static=$enable_dlopen_self_static
11862 # Compiler flag to prevent dynamic linking.
11863 link_static_flag=$lt_lt_prog_compiler_static_GCJ
11865 # Compiler flag to turn off builtin functions.
11866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
11868 # Compiler flag to allow reflexive dlopens.
11869 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
11871 # Compiler flag to generate shared objects directly from archives.
11872 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
11874 # Compiler flag to generate thread-safe objects.
11875 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
11877 # Library versioning type.
11878 version_type=$version_type
11880 # Format of library name prefix.
11881 libname_spec=$lt_libname_spec
11883 # List of archive names. First name is the real one, the rest are links.
11884 # The last name is the one that the linker finds with -lNAME.
11885 library_names_spec=$lt_library_names_spec
11887 # The coded name of the library, if different from the real name.
11888 soname_spec=$lt_soname_spec
11890 # Commands used to build and install an old-style archive.
11891 RANLIB=$lt_RANLIB
11892 old_archive_cmds=$lt_old_archive_cmds_GCJ
11893 old_postinstall_cmds=$lt_old_postinstall_cmds
11894 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11896 # Create an old-style archive from a shared archive.
11897 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
11899 # Create a temporary old-style archive to link instead of a shared archive.
11900 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
11902 # Commands used to build and install a shared archive.
11903 archive_cmds=$lt_archive_cmds_GCJ
11904 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
11905 postinstall_cmds=$lt_postinstall_cmds
11906 postuninstall_cmds=$lt_postuninstall_cmds
11908 # Commands used to build a loadable module (assumed same as above if empty)
11909 module_cmds=$lt_module_cmds_GCJ
11910 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
11912 # Commands to strip libraries.
11913 old_striplib=$lt_old_striplib
11914 striplib=$lt_striplib
11916 # Dependencies to place before the objects being linked to create a
11917 # shared library.
11918 predep_objects=$lt_predep_objects_GCJ
11920 # Dependencies to place after the objects being linked to create a
11921 # shared library.
11922 postdep_objects=$lt_postdep_objects_GCJ
11924 # Dependencies to place before the objects being linked to create a
11925 # shared library.
11926 predeps=$lt_predeps_GCJ
11928 # Dependencies to place after the objects being linked to create a
11929 # shared library.
11930 postdeps=$lt_postdeps_GCJ
11932 # The library search path used internally by the compiler when linking
11933 # a shared library.
11934 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
11936 # Method to check whether dependent libraries are shared objects.
11937 deplibs_check_method=$lt_deplibs_check_method
11939 # Command to use when deplibs_check_method == file_magic.
11940 file_magic_cmd=$lt_file_magic_cmd
11942 # Flag that allows shared libraries with undefined symbols to be built.
11943 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
11945 # Flag that forces no undefined symbols.
11946 no_undefined_flag=$lt_no_undefined_flag_GCJ
11948 # Commands used to finish a libtool library installation in a directory.
11949 finish_cmds=$lt_finish_cmds
11951 # Same as above, but a single script fragment to be evaled but not shown.
11952 finish_eval=$lt_finish_eval
11954 # Take the output of nm and produce a listing of raw symbols and C names.
11955 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11957 # Transform the output of nm in a proper C declaration
11958 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11960 # Transform the output of nm in a C name address pair
11961 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11963 # This is the shared library runtime path variable.
11964 runpath_var=$runpath_var
11966 # This is the shared library path variable.
11967 shlibpath_var=$shlibpath_var
11969 # Is shlibpath searched before the hard-coded library search path?
11970 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11972 # How to hardcode a shared library path into an executable.
11973 hardcode_action=$hardcode_action_GCJ
11975 # Whether we should hardcode library paths into libraries.
11976 hardcode_into_libs=$hardcode_into_libs
11978 # Flag to hardcode \$libdir into a binary during linking.
11979 # This must work even if \$libdir does not exist.
11980 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
11982 # If ld is used when linking, flag to hardcode \$libdir into
11983 # a binary during linking. This must work even if \$libdir does
11984 # not exist.
11985 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
11987 # Whether we need a single -rpath flag with a separated argument.
11988 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
11990 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11991 # resulting binary.
11992 hardcode_direct=$hardcode_direct_GCJ
11994 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11995 # resulting binary.
11996 hardcode_minus_L=$hardcode_minus_L_GCJ
11998 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11999 # the resulting binary.
12000 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
12002 # Set to yes if building a shared library automatically hardcodes DIR into the library
12003 # and all subsequent libraries and executables linked against it.
12004 hardcode_automatic=$hardcode_automatic_GCJ
12006 # Variables whose values should be saved in libtool wrapper scripts and
12007 # restored at relink time.
12008 variables_saved_for_relink="$variables_saved_for_relink"
12010 # Whether libtool must link a program against all its dependency libraries.
12011 link_all_deplibs=$link_all_deplibs_GCJ
12013 # Compile-time system search path for libraries
12014 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12016 # Run-time system search path for libraries
12017 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12019 # Fix the shell variable \$srcfile for the compiler.
12020 fix_srcfile_path="$fix_srcfile_path_GCJ"
12022 # Set to yes if exported symbols are required.
12023 always_export_symbols=$always_export_symbols_GCJ
12025 # The commands to list exported symbols.
12026 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
12028 # The commands to extract the exported symbol list from a shared archive.
12029 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12031 # Symbols that should not be listed in the preloaded symbols.
12032 exclude_expsyms=$lt_exclude_expsyms_GCJ
12034 # Symbols that must always be exported.
12035 include_expsyms=$lt_include_expsyms_GCJ
12037 # ### END LIBTOOL TAG CONFIG: $tagname
12039 __EOF__
12042 else
12043 # If there is no Makefile yet, we rely on a make rule to execute
12044 # `config.status --recheck' to rerun these tests and create the
12045 # libtool script then.
12046 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12047 if test -f "$ltmain_in"; then
12048 test -f Makefile && make "$ltmain"
12053 ac_ext=c
12054 ac_cpp='$CPP $CPPFLAGS'
12055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12059 CC="$lt_save_CC"
12061 else
12062 tagname=""
12069 # Source file extension for RC test sources.
12070 ac_ext=rc
12072 # Object file extension for compiled RC test sources.
12073 objext=o
12074 objext_RC=$objext
12076 # Code to be used in simple compile tests
12077 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
12079 # Code to be used in simple link tests
12080 lt_simple_link_test_code="$lt_simple_compile_test_code"
12082 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12084 # If no C compiler was specified, use CC.
12085 LTCC=${LTCC-"$CC"}
12087 # Allow CC to be a program name with arguments.
12088 compiler=$CC
12091 # save warnings/boilerplate of simple test code
12092 ac_outfile=conftest.$ac_objext
12093 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12095 _lt_compiler_boilerplate=`cat conftest.err`
12096 $rm conftest*
12098 ac_outfile=conftest.$ac_objext
12099 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12101 _lt_linker_boilerplate=`cat conftest.err`
12102 $rm conftest*
12105 # Allow CC to be a program name with arguments.
12106 lt_save_CC="$CC"
12107 CC=${RC-"windres"}
12108 compiler=$CC
12109 compiler_RC=$CC
12110 for cc_temp in $compiler""; do
12111 case $cc_temp in
12112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12114 \-*) ;;
12115 *) break;;
12116 esac
12117 done
12118 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12120 lt_cv_prog_compiler_c_o_RC=yes
12122 # The else clause should only fire when bootstrapping the
12123 # libtool distribution, otherwise you forgot to ship ltmain.sh
12124 # with your package, and you will get complaints that there are
12125 # no rules to generate ltmain.sh.
12126 if test -f "$ltmain"; then
12127 # See if we are running on zsh, and set the options which allow our commands through
12128 # without removal of \ escapes.
12129 if test -n "${ZSH_VERSION+set}" ; then
12130 setopt NO_GLOB_SUBST
12132 # Now quote all the things that may contain metacharacters while being
12133 # careful not to overquote the AC_SUBSTed values. We take copies of the
12134 # variables and quote the copies for generation of the libtool script.
12135 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12136 SED SHELL STRIP \
12137 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12138 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12139 deplibs_check_method reload_flag reload_cmds need_locks \
12140 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12141 lt_cv_sys_global_symbol_to_c_name_address \
12142 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12143 old_postinstall_cmds old_postuninstall_cmds \
12144 compiler_RC \
12145 CC_RC \
12146 LD_RC \
12147 lt_prog_compiler_wl_RC \
12148 lt_prog_compiler_pic_RC \
12149 lt_prog_compiler_static_RC \
12150 lt_prog_compiler_no_builtin_flag_RC \
12151 export_dynamic_flag_spec_RC \
12152 thread_safe_flag_spec_RC \
12153 whole_archive_flag_spec_RC \
12154 enable_shared_with_static_runtimes_RC \
12155 old_archive_cmds_RC \
12156 old_archive_from_new_cmds_RC \
12157 predep_objects_RC \
12158 postdep_objects_RC \
12159 predeps_RC \
12160 postdeps_RC \
12161 compiler_lib_search_path_RC \
12162 archive_cmds_RC \
12163 archive_expsym_cmds_RC \
12164 postinstall_cmds_RC \
12165 postuninstall_cmds_RC \
12166 old_archive_from_expsyms_cmds_RC \
12167 allow_undefined_flag_RC \
12168 no_undefined_flag_RC \
12169 export_symbols_cmds_RC \
12170 hardcode_libdir_flag_spec_RC \
12171 hardcode_libdir_flag_spec_ld_RC \
12172 hardcode_libdir_separator_RC \
12173 hardcode_automatic_RC \
12174 module_cmds_RC \
12175 module_expsym_cmds_RC \
12176 lt_cv_prog_compiler_c_o_RC \
12177 exclude_expsyms_RC \
12178 include_expsyms_RC; do
12180 case $var in
12181 old_archive_cmds_RC | \
12182 old_archive_from_new_cmds_RC | \
12183 archive_cmds_RC | \
12184 archive_expsym_cmds_RC | \
12185 module_cmds_RC | \
12186 module_expsym_cmds_RC | \
12187 old_archive_from_expsyms_cmds_RC | \
12188 export_symbols_cmds_RC | \
12189 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12190 postinstall_cmds | postuninstall_cmds | \
12191 old_postinstall_cmds | old_postuninstall_cmds | \
12192 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12193 # Double-quote double-evaled strings.
12194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12199 esac
12200 done
12202 case $lt_echo in
12203 *'\$0 --fallback-echo"')
12204 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12206 esac
12208 cfgfile="$ofile"
12210 cat <<__EOF__ >> "$cfgfile"
12211 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12215 # Shell to use when invoking shell scripts.
12216 SHELL=$lt_SHELL
12218 # Whether or not to build shared libraries.
12219 build_libtool_libs=$enable_shared
12221 # Whether or not to build static libraries.
12222 build_old_libs=$enable_static
12224 # Whether or not to add -lc for building shared libraries.
12225 build_libtool_need_lc=$archive_cmds_need_lc_RC
12227 # Whether or not to disallow shared libs when runtime libs are static
12228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12230 # Whether or not to optimize for fast installation.
12231 fast_install=$enable_fast_install
12233 # The host system.
12234 host_alias=$host_alias
12235 host=$host
12236 host_os=$host_os
12238 # The build system.
12239 build_alias=$build_alias
12240 build=$build
12241 build_os=$build_os
12243 # An echo program that does not interpret backslashes.
12244 echo=$lt_echo
12246 # The archiver.
12247 AR=$lt_AR
12248 AR_FLAGS=$lt_AR_FLAGS
12250 # A C compiler.
12251 LTCC=$lt_LTCC
12253 # A language-specific compiler.
12254 CC=$lt_compiler_RC
12256 # Is the compiler the GNU C compiler?
12257 with_gcc=$GCC_RC
12259 # An ERE matcher.
12260 EGREP=$lt_EGREP
12262 # The linker used to build libraries.
12263 LD=$lt_LD_RC
12265 # Whether we need hard or soft links.
12266 LN_S=$lt_LN_S
12268 # A BSD-compatible nm program.
12269 NM=$lt_NM
12271 # A symbol stripping program
12272 STRIP=$lt_STRIP
12274 # Used to examine libraries when file_magic_cmd begins "file"
12275 MAGIC_CMD=$MAGIC_CMD
12277 # Used on cygwin: DLL creation program.
12278 DLLTOOL="$DLLTOOL"
12280 # Used on cygwin: object dumper.
12281 OBJDUMP="$OBJDUMP"
12283 # Used on cygwin: assembler.
12284 AS="$AS"
12286 # The name of the directory that contains temporary libtool files.
12287 objdir=$objdir
12289 # How to create reloadable object files.
12290 reload_flag=$lt_reload_flag
12291 reload_cmds=$lt_reload_cmds
12293 # How to pass a linker flag through the compiler.
12294 wl=$lt_lt_prog_compiler_wl_RC
12296 # Object file suffix (normally "o").
12297 objext="$ac_objext"
12299 # Old archive suffix (normally "a").
12300 libext="$libext"
12302 # Shared library suffix (normally ".so").
12303 shrext_cmds='$shrext_cmds'
12305 # Executable file suffix (normally "").
12306 exeext="$exeext"
12308 # Additional compiler flags for building library objects.
12309 pic_flag=$lt_lt_prog_compiler_pic_RC
12310 pic_mode=$pic_mode
12312 # What is the maximum length of a command?
12313 max_cmd_len=$lt_cv_sys_max_cmd_len
12315 # Does compiler simultaneously support -c and -o options?
12316 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12318 # Must we lock files when doing compilation?
12319 need_locks=$lt_need_locks
12321 # Do we need the lib prefix for modules?
12322 need_lib_prefix=$need_lib_prefix
12324 # Do we need a version for libraries?
12325 need_version=$need_version
12327 # Whether dlopen is supported.
12328 dlopen_support=$enable_dlopen
12330 # Whether dlopen of programs is supported.
12331 dlopen_self=$enable_dlopen_self
12333 # Whether dlopen of statically linked programs is supported.
12334 dlopen_self_static=$enable_dlopen_self_static
12336 # Compiler flag to prevent dynamic linking.
12337 link_static_flag=$lt_lt_prog_compiler_static_RC
12339 # Compiler flag to turn off builtin functions.
12340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12342 # Compiler flag to allow reflexive dlopens.
12343 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12345 # Compiler flag to generate shared objects directly from archives.
12346 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12348 # Compiler flag to generate thread-safe objects.
12349 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12351 # Library versioning type.
12352 version_type=$version_type
12354 # Format of library name prefix.
12355 libname_spec=$lt_libname_spec
12357 # List of archive names. First name is the real one, the rest are links.
12358 # The last name is the one that the linker finds with -lNAME.
12359 library_names_spec=$lt_library_names_spec
12361 # The coded name of the library, if different from the real name.
12362 soname_spec=$lt_soname_spec
12364 # Commands used to build and install an old-style archive.
12365 RANLIB=$lt_RANLIB
12366 old_archive_cmds=$lt_old_archive_cmds_RC
12367 old_postinstall_cmds=$lt_old_postinstall_cmds
12368 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12370 # Create an old-style archive from a shared archive.
12371 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12373 # Create a temporary old-style archive to link instead of a shared archive.
12374 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12376 # Commands used to build and install a shared archive.
12377 archive_cmds=$lt_archive_cmds_RC
12378 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12379 postinstall_cmds=$lt_postinstall_cmds
12380 postuninstall_cmds=$lt_postuninstall_cmds
12382 # Commands used to build a loadable module (assumed same as above if empty)
12383 module_cmds=$lt_module_cmds_RC
12384 module_expsym_cmds=$lt_module_expsym_cmds_RC
12386 # Commands to strip libraries.
12387 old_striplib=$lt_old_striplib
12388 striplib=$lt_striplib
12390 # Dependencies to place before the objects being linked to create a
12391 # shared library.
12392 predep_objects=$lt_predep_objects_RC
12394 # Dependencies to place after the objects being linked to create a
12395 # shared library.
12396 postdep_objects=$lt_postdep_objects_RC
12398 # Dependencies to place before the objects being linked to create a
12399 # shared library.
12400 predeps=$lt_predeps_RC
12402 # Dependencies to place after the objects being linked to create a
12403 # shared library.
12404 postdeps=$lt_postdeps_RC
12406 # The library search path used internally by the compiler when linking
12407 # a shared library.
12408 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12410 # Method to check whether dependent libraries are shared objects.
12411 deplibs_check_method=$lt_deplibs_check_method
12413 # Command to use when deplibs_check_method == file_magic.
12414 file_magic_cmd=$lt_file_magic_cmd
12416 # Flag that allows shared libraries with undefined symbols to be built.
12417 allow_undefined_flag=$lt_allow_undefined_flag_RC
12419 # Flag that forces no undefined symbols.
12420 no_undefined_flag=$lt_no_undefined_flag_RC
12422 # Commands used to finish a libtool library installation in a directory.
12423 finish_cmds=$lt_finish_cmds
12425 # Same as above, but a single script fragment to be evaled but not shown.
12426 finish_eval=$lt_finish_eval
12428 # Take the output of nm and produce a listing of raw symbols and C names.
12429 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12431 # Transform the output of nm in a proper C declaration
12432 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12434 # Transform the output of nm in a C name address pair
12435 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12437 # This is the shared library runtime path variable.
12438 runpath_var=$runpath_var
12440 # This is the shared library path variable.
12441 shlibpath_var=$shlibpath_var
12443 # Is shlibpath searched before the hard-coded library search path?
12444 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12446 # How to hardcode a shared library path into an executable.
12447 hardcode_action=$hardcode_action_RC
12449 # Whether we should hardcode library paths into libraries.
12450 hardcode_into_libs=$hardcode_into_libs
12452 # Flag to hardcode \$libdir into a binary during linking.
12453 # This must work even if \$libdir does not exist.
12454 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12456 # If ld is used when linking, flag to hardcode \$libdir into
12457 # a binary during linking. This must work even if \$libdir does
12458 # not exist.
12459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12461 # Whether we need a single -rpath flag with a separated argument.
12462 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12464 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12465 # resulting binary.
12466 hardcode_direct=$hardcode_direct_RC
12468 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12469 # resulting binary.
12470 hardcode_minus_L=$hardcode_minus_L_RC
12472 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12473 # the resulting binary.
12474 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12476 # Set to yes if building a shared library automatically hardcodes DIR into the library
12477 # and all subsequent libraries and executables linked against it.
12478 hardcode_automatic=$hardcode_automatic_RC
12480 # Variables whose values should be saved in libtool wrapper scripts and
12481 # restored at relink time.
12482 variables_saved_for_relink="$variables_saved_for_relink"
12484 # Whether libtool must link a program against all its dependency libraries.
12485 link_all_deplibs=$link_all_deplibs_RC
12487 # Compile-time system search path for libraries
12488 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12490 # Run-time system search path for libraries
12491 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12493 # Fix the shell variable \$srcfile for the compiler.
12494 fix_srcfile_path="$fix_srcfile_path_RC"
12496 # Set to yes if exported symbols are required.
12497 always_export_symbols=$always_export_symbols_RC
12499 # The commands to list exported symbols.
12500 export_symbols_cmds=$lt_export_symbols_cmds_RC
12502 # The commands to extract the exported symbol list from a shared archive.
12503 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12505 # Symbols that should not be listed in the preloaded symbols.
12506 exclude_expsyms=$lt_exclude_expsyms_RC
12508 # Symbols that must always be exported.
12509 include_expsyms=$lt_include_expsyms_RC
12511 # ### END LIBTOOL TAG CONFIG: $tagname
12513 __EOF__
12516 else
12517 # If there is no Makefile yet, we rely on a make rule to execute
12518 # `config.status --recheck' to rerun these tests and create the
12519 # libtool script then.
12520 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12521 if test -f "$ltmain_in"; then
12522 test -f Makefile && make "$ltmain"
12527 ac_ext=c
12528 ac_cpp='$CPP $CPPFLAGS'
12529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12533 CC="$lt_save_CC"
12538 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
12540 esac
12542 # Append the new tag name to the list of available tags.
12543 if test -n "$tagname" ; then
12544 available_tags="$available_tags $tagname"
12547 done
12548 IFS="$lt_save_ifs"
12550 # Now substitute the updated list of available tags.
12551 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12552 mv "${ofile}T" "$ofile"
12553 chmod +x "$ofile"
12554 else
12555 rm -f "${ofile}T"
12556 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
12562 # This can be used to rebuild libtool when needed
12563 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12565 # Always use our own libtool.
12566 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12568 # Prevent multiple expansion
12579 # NTP has (so far) been relying on leading-edge autogen.
12580 # Therefore, by default:
12581 # - use the version we ship with
12582 # - do not install it
12583 # - build a static copy (AC_DISABLE_SHARED - done earlier)
12584 case "${enable_local_libopts+set}" in
12585 set) ;;
12586 *) enable_local_libopts=yes ;;
12587 esac
12588 case "${enable_libopts_install+set}" in
12589 set) ;;
12590 *) enable_libopts_install=no ;;
12591 esac
12593 NEED_LIBOPTS_DIR=''
12595 LIBOPTS_DIR=libopts
12597 # Check whether --enable-local-libopts was given.
12598 if test "${enable_local_libopts+set}" = set; then :
12599 enableval=$enable_local_libopts;
12600 if test x$enableval = xyes ; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
12602 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
12603 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
12604 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
12605 NEED_LIBOPTS_DIR=true
12610 # Check whether --enable-libopts-install was given.
12611 if test "${enable_libopts_install+set}" = set; then :
12612 enableval=$enable_libopts_install;
12615 if test "X${enable_libopts_install}" != Xno; then
12616 INSTALL_LIBOPTS_TRUE=
12617 INSTALL_LIBOPTS_FALSE='#'
12618 else
12619 INSTALL_LIBOPTS_TRUE='#'
12620 INSTALL_LIBOPTS_FALSE=
12624 if test -z "${NEED_LIBOPTS_DIR}" ; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
12626 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
12628 # Check whether --with-autoopts-config was given.
12629 if test "${with_autoopts_config+set}" = set; then :
12630 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
12631 else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
12633 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
12634 if test "${lo_cv_with_autoopts_config+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 if autoopts-config --help 2>/dev/null 1>&2
12638 then lo_cv_with_autoopts_config=autoopts-config
12639 elif libopts-config --help 2>/dev/null 1>&2
12640 then lo_cv_with_autoopts_config=libopts-config
12641 else lo_cv_with_autoopts_config=no ; fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
12644 $as_echo "$lo_cv_with_autoopts_config" >&6; }
12647 # end of AC_ARG_WITH
12649 if test "${lo_cv_test_autoopts+set}" = set; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12653 if test -z "${lo_cv_with_autoopts_config}" \
12654 -o X"${lo_cv_with_autoopts_config}" = Xno
12655 then
12656 if autoopts-config --help 2>/dev/null 1>&2
12657 then lo_cv_with_autoopts_config=autoopts-config
12658 elif libopts-config --help 2>/dev/null 1>&2
12659 then lo_cv_with_autoopts_config=libopts-config
12660 else lo_cv_with_autoopts_config=false ; fi
12662 lo_cv_test_autoopts=`
12663 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
12664 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
12665 then lo_cv_test_autoopts=no ; fi
12668 # end of CACHE_VAL
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
12670 $as_echo "${lo_cv_test_autoopts}" >&6; }
12672 if test "X${lo_cv_test_autoopts}" != Xno
12673 then
12674 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
12675 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
12676 else
12677 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
12678 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
12679 NEED_LIBOPTS_DIR=true
12681 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
12683 if test -n "${NEED_LIBOPTS_DIR}"; then
12684 NEED_LIBOPTS_TRUE=
12685 NEED_LIBOPTS_FALSE='#'
12686 else
12687 NEED_LIBOPTS_TRUE='#'
12688 NEED_LIBOPTS_FALSE=
12693 LIBOPTS_DIR=libopts
12695 ac_config_files="$ac_config_files libopts/Makefile"
12699 if test -n "${NEED_LIBOPTS_DIR}" ; then
12702 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
12703 # =================
12704 # AC_HEADER_STDC
12705 # =================
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12707 $as_echo_n "checking for ANSI C header files... " >&6; }
12708 if test "${ac_cv_header_stdc+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12713 #include <stdlib.h>
12714 #include <stdarg.h>
12715 #include <string.h>
12716 #include <float.h>
12719 main ()
12723 return 0;
12725 _ACEOF
12726 if ac_fn_c_try_compile "$LINENO"; then :
12727 ac_cv_header_stdc=yes
12728 else
12729 ac_cv_header_stdc=no
12731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733 if test $ac_cv_header_stdc = yes; then
12734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737 #include <string.h>
12739 _ACEOF
12740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12741 $EGREP "memchr" >/dev/null 2>&1; then :
12743 else
12744 ac_cv_header_stdc=no
12746 rm -f conftest*
12750 if test $ac_cv_header_stdc = yes; then
12751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12754 #include <stdlib.h>
12756 _ACEOF
12757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12758 $EGREP "free" >/dev/null 2>&1; then :
12760 else
12761 ac_cv_header_stdc=no
12763 rm -f conftest*
12767 if test $ac_cv_header_stdc = yes; then
12768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12769 if test "$cross_compiling" = yes; then :
12771 else
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12774 #include <ctype.h>
12775 #include <stdlib.h>
12776 #if ((' ' & 0x0FF) == 0x020)
12777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12779 #else
12780 # define ISLOWER(c) \
12781 (('a' <= (c) && (c) <= 'i') \
12782 || ('j' <= (c) && (c) <= 'r') \
12783 || ('s' <= (c) && (c) <= 'z'))
12784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12785 #endif
12787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12789 main ()
12791 int i;
12792 for (i = 0; i < 256; i++)
12793 if (XOR (islower (i), ISLOWER (i))
12794 || toupper (i) != TOUPPER (i))
12795 return 2;
12796 return 0;
12798 _ACEOF
12799 if ac_fn_c_try_run "$LINENO"; then :
12801 else
12802 ac_cv_header_stdc=no
12804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12805 conftest.$ac_objext conftest.beam conftest.$ac_ext
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12811 $as_echo "$ac_cv_header_stdc" >&6; }
12812 if test $ac_cv_header_stdc = yes; then
12814 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12818 # =================
12819 # AC_HEADER_DIRENT
12820 # =================
12821 ac_header_dirent=no
12822 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12823 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12825 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12827 $as_echo_n "(cached) " >&6
12828 else
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831 #include <sys/types.h>
12832 #include <$ac_hdr>
12835 main ()
12837 if ((DIR *) 0)
12838 return 0;
12840 return 0;
12842 _ACEOF
12843 if ac_fn_c_try_compile "$LINENO"; then :
12844 eval "$as_ac_Header=yes"
12845 else
12846 eval "$as_ac_Header=no"
12848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 eval ac_res=\$$as_ac_Header
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12852 $as_echo "$ac_res" >&6; }
12853 eval as_val=\$$as_ac_Header
12854 if test "x$as_val" = x""yes; then :
12855 cat >>confdefs.h <<_ACEOF
12856 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12857 _ACEOF
12859 ac_header_dirent=$ac_hdr; break
12862 done
12863 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12864 if test $ac_header_dirent = dirent.h; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12866 $as_echo_n "checking for library containing opendir... " >&6; }
12867 if test "${ac_cv_search_opendir+set}" = set; then :
12868 $as_echo_n "(cached) " >&6
12869 else
12870 ac_func_search_save_LIBS=$LIBS
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12874 /* Override any GCC internal prototype to avoid an error.
12875 Use char because int might match the return type of a GCC
12876 builtin and then its argument prototype would still apply. */
12877 #ifdef __cplusplus
12878 extern "C"
12879 #endif
12880 char opendir ();
12882 main ()
12884 return opendir ();
12886 return 0;
12888 _ACEOF
12889 for ac_lib in '' dir; do
12890 if test -z "$ac_lib"; then
12891 ac_res="none required"
12892 else
12893 ac_res=-l$ac_lib
12894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12896 if ac_fn_c_try_link "$LINENO"; then :
12897 ac_cv_search_opendir=$ac_res
12899 rm -f core conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext
12901 if test "${ac_cv_search_opendir+set}" = set; then :
12902 break
12904 done
12905 if test "${ac_cv_search_opendir+set}" = set; then :
12907 else
12908 ac_cv_search_opendir=no
12910 rm conftest.$ac_ext
12911 LIBS=$ac_func_search_save_LIBS
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12914 $as_echo "$ac_cv_search_opendir" >&6; }
12915 ac_res=$ac_cv_search_opendir
12916 if test "$ac_res" != no; then :
12917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12923 $as_echo_n "checking for library containing opendir... " >&6; }
12924 if test "${ac_cv_search_opendir+set}" = set; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 ac_func_search_save_LIBS=$LIBS
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12931 /* Override any GCC internal prototype to avoid an error.
12932 Use char because int might match the return type of a GCC
12933 builtin and then its argument prototype would still apply. */
12934 #ifdef __cplusplus
12935 extern "C"
12936 #endif
12937 char opendir ();
12939 main ()
12941 return opendir ();
12943 return 0;
12945 _ACEOF
12946 for ac_lib in '' x; do
12947 if test -z "$ac_lib"; then
12948 ac_res="none required"
12949 else
12950 ac_res=-l$ac_lib
12951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12953 if ac_fn_c_try_link "$LINENO"; then :
12954 ac_cv_search_opendir=$ac_res
12956 rm -f core conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext
12958 if test "${ac_cv_search_opendir+set}" = set; then :
12959 break
12961 done
12962 if test "${ac_cv_search_opendir+set}" = set; then :
12964 else
12965 ac_cv_search_opendir=no
12967 rm conftest.$ac_ext
12968 LIBS=$ac_func_search_save_LIBS
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12971 $as_echo "$ac_cv_search_opendir" >&6; }
12972 ac_res=$ac_cv_search_opendir
12973 if test "$ac_res" != no; then :
12974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12981 # =================
12982 # AC_CHECK_HEADERS
12983 # =================
12984 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
12985 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
12986 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
12987 utime.h sysexits.h
12988 do :
12989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12990 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12991 eval as_val=\$$as_ac_Header
12992 if test "x$as_val" = x""yes; then :
12993 cat >>confdefs.h <<_ACEOF
12994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12995 _ACEOF
12999 done
13002 # --------------------------------------------
13003 # Verify certain entries from AC_CHECK_HEADERS
13004 # --------------------------------------------
13005 for f in sys_types sys_mman sys_param sys_stat sys_wait \
13006 string errno stdlib memory setjmp
13007 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
13008 test "${as_ac_var}" = set || \
13009 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
13010 done
13012 # ================================================
13013 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
13014 # if varargs.h is present define HAVE_VARARGS_H.
13015 # ================================================
13016 for ac_header in stdarg.h varargs.h
13017 do :
13018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13019 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13020 eval as_val=\$$as_ac_Header
13021 if test "x$as_val" = x""yes; then :
13022 cat >>confdefs.h <<_ACEOF
13023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13024 _ACEOF
13025 break
13028 done
13030 if test `eval echo '${'$as_ac_Header'}'` != yes; then
13031 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
13034 # ================================================
13035 # Similarly for the string.h and strings.h headers
13036 # ================================================
13037 for ac_header in string.h strings.h
13038 do :
13039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13040 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13041 eval as_val=\$$as_ac_Header
13042 if test "x$as_val" = x""yes; then :
13043 cat >>confdefs.h <<_ACEOF
13044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13045 _ACEOF
13046 break
13049 done
13051 if test `eval echo '${'$as_ac_Header'}'` != yes; then
13052 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
13055 # =====================
13056 # ...and limits headers
13057 # =====================
13058 for ac_header in limits.h sys/limits.h values.h
13059 do :
13060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13061 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13062 eval as_val=\$$as_ac_Header
13063 if test "x$as_val" = x""yes; then :
13064 cat >>confdefs.h <<_ACEOF
13065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13066 _ACEOF
13067 break
13070 done
13072 if test `eval echo '${'$as_ac_Header'}'` != yes; then
13073 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
13076 # ========================
13077 # ...and int types headers
13078 # ========================
13079 for ac_header in stdint.h inttypes.h
13080 do :
13081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13082 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13083 eval as_val=\$$as_ac_Header
13084 if test "x$as_val" = x""yes; then :
13085 cat >>confdefs.h <<_ACEOF
13086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13087 _ACEOF
13088 break
13091 done
13093 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13094 if test "x$ac_cv_type_int8_t" = x""yes; then :
13096 cat >>confdefs.h <<_ACEOF
13097 #define HAVE_INT8_T 1
13098 _ACEOF
13102 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13103 if test "x$ac_cv_type_uint8_t" = x""yes; then :
13105 cat >>confdefs.h <<_ACEOF
13106 #define HAVE_UINT8_T 1
13107 _ACEOF
13111 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13112 if test "x$ac_cv_type_int16_t" = x""yes; then :
13114 cat >>confdefs.h <<_ACEOF
13115 #define HAVE_INT16_T 1
13116 _ACEOF
13120 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13121 if test "x$ac_cv_type_uint16_t" = x""yes; then :
13123 cat >>confdefs.h <<_ACEOF
13124 #define HAVE_UINT16_T 1
13125 _ACEOF
13129 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13130 if test "x$ac_cv_type_int32_t" = x""yes; then :
13132 cat >>confdefs.h <<_ACEOF
13133 #define HAVE_INT32_T 1
13134 _ACEOF
13138 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13139 if test "x$ac_cv_type_uint32_t" = x""yes; then :
13141 cat >>confdefs.h <<_ACEOF
13142 #define HAVE_UINT32_T 1
13143 _ACEOF
13147 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13148 if test "x$ac_cv_type_intptr_t" = x""yes; then :
13150 cat >>confdefs.h <<_ACEOF
13151 #define HAVE_INTPTR_T 1
13152 _ACEOF
13156 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
13157 if test "x$ac_cv_type_uint_t" = x""yes; then :
13159 cat >>confdefs.h <<_ACEOF
13160 #define HAVE_UINT_T 1
13161 _ACEOF
13167 # ====================
13168 # uintptr type & sizes
13169 # ====================
13170 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13171 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
13173 cat >>confdefs.h <<_ACEOF
13174 #define HAVE_UINTPTR_T 1
13175 _ACEOF
13178 else
13180 $as_echo "#define uintptr_t unsigned long" >>confdefs.h
13184 # The cast to long int works around a bug in the HP C Compiler
13185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13187 # This bug is HP SR number 8606223364.
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
13189 $as_echo_n "checking size of char*... " >&6; }
13190 if test "${ac_cv_sizeof_charp+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
13195 else
13196 if test "$ac_cv_type_charp" = yes; then
13197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13199 { as_fn_set_status 77
13200 as_fn_error "cannot compute sizeof (char*)
13201 See \`config.log' for more details." "$LINENO" 5; }; }
13202 else
13203 ac_cv_sizeof_charp=0
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
13209 $as_echo "$ac_cv_sizeof_charp" >&6; }
13213 cat >>confdefs.h <<_ACEOF
13214 #define SIZEOF_CHARP $ac_cv_sizeof_charp
13215 _ACEOF
13218 # The cast to long int works around a bug in the HP C Compiler
13219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13221 # This bug is HP SR number 8606223364.
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13223 $as_echo_n "checking size of int... " >&6; }
13224 if test "${ac_cv_sizeof_int+set}" = set; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13229 else
13230 if test "$ac_cv_type_int" = yes; then
13231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13233 { as_fn_set_status 77
13234 as_fn_error "cannot compute sizeof (int)
13235 See \`config.log' for more details." "$LINENO" 5; }; }
13236 else
13237 ac_cv_sizeof_int=0
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13243 $as_echo "$ac_cv_sizeof_int" >&6; }
13247 cat >>confdefs.h <<_ACEOF
13248 #define SIZEOF_INT $ac_cv_sizeof_int
13249 _ACEOF
13252 # The cast to long int works around a bug in the HP C Compiler
13253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13255 # This bug is HP SR number 8606223364.
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13257 $as_echo_n "checking size of long... " >&6; }
13258 if test "${ac_cv_sizeof_long+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13263 else
13264 if test "$ac_cv_type_long" = yes; then
13265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13267 { as_fn_set_status 77
13268 as_fn_error "cannot compute sizeof (long)
13269 See \`config.log' for more details." "$LINENO" 5; }; }
13270 else
13271 ac_cv_sizeof_long=0
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13277 $as_echo "$ac_cv_sizeof_long" >&6; }
13281 cat >>confdefs.h <<_ACEOF
13282 #define SIZEOF_LONG $ac_cv_sizeof_long
13283 _ACEOF
13286 # The cast to long int works around a bug in the HP C Compiler
13287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13289 # This bug is HP SR number 8606223364.
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13291 $as_echo_n "checking size of short... " >&6; }
13292 if test "${ac_cv_sizeof_short+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13297 else
13298 if test "$ac_cv_type_short" = yes; then
13299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13301 { as_fn_set_status 77
13302 as_fn_error "cannot compute sizeof (short)
13303 See \`config.log' for more details." "$LINENO" 5; }; }
13304 else
13305 ac_cv_sizeof_short=0
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13311 $as_echo "$ac_cv_sizeof_short" >&6; }
13315 cat >>confdefs.h <<_ACEOF
13316 #define SIZEOF_SHORT $ac_cv_sizeof_short
13317 _ACEOF
13321 # ----------------------------------------------------------------------
13322 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
13323 # ----------------------------------------------------------------------
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
13325 $as_echo_n "checking for pathfind in -lgen... " >&6; }
13326 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329 ac_check_lib_save_LIBS=$LIBS
13330 LIBS="-lgen $LIBS"
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13334 /* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13337 #ifdef __cplusplus
13338 extern "C"
13339 #endif
13340 char pathfind ();
13342 main ()
13344 return pathfind ();
13346 return 0;
13348 _ACEOF
13349 if ac_fn_c_try_link "$LINENO"; then :
13350 ac_cv_lib_gen_pathfind=yes
13351 else
13352 ac_cv_lib_gen_pathfind=no
13354 rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13356 LIBS=$ac_check_lib_save_LIBS
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
13359 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
13360 if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
13361 cat >>confdefs.h <<_ACEOF
13362 #define HAVE_LIBGEN 1
13363 _ACEOF
13365 LIBS="-lgen $LIBS"
13369 for ac_func in vprintf
13370 do :
13371 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
13372 if test "x$ac_cv_func_vprintf" = x""yes; then :
13373 cat >>confdefs.h <<_ACEOF
13374 #define HAVE_VPRINTF 1
13375 _ACEOF
13377 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13378 if test "x$ac_cv_func__doprnt" = x""yes; then :
13380 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
13385 done
13388 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
13389 do :
13390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13391 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13392 eval as_val=\$$as_ac_var
13393 if test "x$as_val" = x""yes; then :
13394 cat >>confdefs.h <<_ACEOF
13395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13396 _ACEOF
13399 done
13401 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
13403 # Check to see if a reg expr header is specified.
13406 # Check whether --with-regex-header was given.
13407 if test "${with_regex_header+set}" = set; then :
13408 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
13409 else
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
13411 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
13412 if test "${libopts_cv_with_regex_header+set}" = set; then :
13413 $as_echo_n "(cached) " >&6
13414 else
13415 libopts_cv_with_regex_header=no
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
13418 $as_echo "$libopts_cv_with_regex_header" >&6; }
13421 # end of AC_ARG_WITH
13423 if test "X${libopts_cv_with_regex_header}" != Xno
13424 then
13425 cat >>confdefs.h <<_ACEOF
13426 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
13427 _ACEOF
13429 else
13431 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
13437 # Check to see if a working libregex can be found.
13440 # Check whether --with-libregex was given.
13441 if test "${with_libregex+set}" = set; then :
13442 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
13443 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
13445 $as_echo_n "checking whether with-libregex was specified... " >&6; }
13446 if test "${libopts_cv_with_libregex_root+set}" = set; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 libopts_cv_with_libregex_root=no
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
13452 $as_echo "$libopts_cv_with_libregex_root" >&6; }
13455 # end of AC_ARG_WITH libregex
13457 if test "${with_libguile+set}" = set && \
13458 test "${withval}" = no
13459 then ## disabled by request
13460 libopts_cv_with_libregex_root=no
13461 libopts_cv_with_libregex_cflags=no
13462 libopts_cv_with_libregex_libs=no
13463 else
13466 # Check whether --with-libregex-cflags was given.
13467 if test "${with_libregex_cflags+set}" = set; then :
13468 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
13469 else
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
13471 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
13472 if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475 libopts_cv_with_libregex_cflags=no
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
13478 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
13481 # end of AC_ARG_WITH libregex-cflags
13484 # Check whether --with-libregex-libs was given.
13485 if test "${with_libregex_libs+set}" = set; then :
13486 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
13487 else
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
13489 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
13490 if test "${libopts_cv_with_libregex_libs+set}" = set; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 libopts_cv_with_libregex_libs=no
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
13496 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
13499 # end of AC_ARG_WITH libregex-libs
13501 case "X${libopts_cv_with_libregex_cflags}" in
13502 Xyes|Xno|X )
13503 case "X${libopts_cv_with_libregex_root}" in
13504 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
13505 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
13506 esac
13507 esac
13508 case "X${libopts_cv_with_libregex_libs}" in
13509 Xyes|Xno|X )
13510 case "X${libopts_cv_with_libregex_root}" in
13511 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
13512 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
13513 esac
13514 esac
13515 libopts_save_CPPFLAGS="${CPPFLAGS}"
13516 libopts_save_LIBS="${LIBS}"
13517 fi ## disabled by request
13519 case "X${libopts_cv_with_libregex_cflags}" in
13520 Xyes|Xno|X )
13521 libopts_cv_with_libregex_cflags="" ;;
13522 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
13523 esac
13524 case "X${libopts_cv_with_libregex_libs}" in
13525 Xyes|Xno|X )
13526 libopts_cv_with_libregex_libs="" ;;
13528 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
13529 esac
13530 LIBREGEX_CFLAGS=""
13531 LIBREGEX_LIBS=""
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
13533 $as_echo_n "checking whether libregex functions properly... " >&6; }
13534 if test "${libopts_cv_with_libregex+set}" = set; then :
13535 $as_echo_n "(cached) " >&6
13536 else
13538 if test "$cross_compiling" = yes; then :
13539 libopts_cv_with_libregex=no
13540 else
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543 #include <stdio.h>
13544 #include <stdlib.h>
13545 #include <sys/types.h>
13546 #include REGEX_HEADER
13547 static regex_t re;
13548 void comp_re( char const* pzPat ) {
13549 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
13550 if (res == 0) return;
13551 exit( res ); }
13552 int main() {
13553 regmatch_t m[2];
13554 comp_re( "^.*\$" );
13555 comp_re( "()|no.*" );
13556 comp_re( "." );
13557 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
13558 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
13559 fputs( "error: regex -->.<-- did not match\n", stderr );
13560 return 1;
13562 return 0; }
13563 _ACEOF
13564 if ac_fn_c_try_run "$LINENO"; then :
13565 libopts_cv_with_libregex=yes
13566 else
13567 libopts_cv_with_libregex=no
13569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13570 conftest.$ac_objext conftest.beam conftest.$ac_ext
13572 # end of AC_TRY_RUN
13575 # end of AC_CACHE_VAL for libopts_cv_with_libregex
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
13577 $as_echo "${libopts_cv_with_libregex}" >&6; }
13579 if test "X${libopts_cv_with_libregex}" != Xno
13580 then
13582 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
13584 else
13585 CPPFLAGS="${libopts_save_CPPFLAGS}"
13586 LIBS="${libopts_save_LIBS}"
13591 # Check to see if pathfind(3) works.
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
13594 $as_echo_n "checking whether pathfind(3) works... " >&6; }
13595 if test "${libopts_cv_run_pathfind+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13599 if test "$cross_compiling" = yes; then :
13600 libopts_cv_run_pathfind=no
13602 else
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13605 #include <string.h>
13606 #include <stdlib.h>
13607 int main (int argc, char** argv) {
13608 char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
13609 return (pz == 0) ? 1 : 0;
13611 _ACEOF
13612 if ac_fn_c_try_run "$LINENO"; then :
13613 libopts_cv_run_pathfind=yes
13614 else
13615 libopts_cv_run_pathfind=no
13617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13618 conftest.$ac_objext conftest.beam conftest.$ac_ext
13620 # end of TRY_RUN
13623 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
13625 $as_echo "${libopts_cv_run_pathfind}" >&6; }
13627 if test "X${libopts_cv_run_pathfind}" != Xno
13628 then
13630 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
13636 # Check to see if /dev/zero is readable device.
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
13639 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
13640 if test "${libopts_cv_test_dev_zero+set}" = set; then :
13641 $as_echo_n "(cached) " >&6
13642 else
13644 libopts_cv_test_dev_zero=`exec 2> /dev/null
13645 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
13646 test -z "${dzero}" && exit 1
13647 echo ${dzero}`
13648 if test $? -ne 0
13649 then libopts_cv_test_dev_zero=no
13650 elif test -z "$libopts_cv_test_dev_zero"
13651 then libopts_cv_test_dev_zero=no
13655 # end of CACHE_VAL of libopts_cv_test_dev_zero
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
13657 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
13659 if test "X${libopts_cv_test_dev_zero}" != Xno
13660 then
13662 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
13668 # Check to see if we have a functional realpath(3C).
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
13671 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
13672 if test "${libopts_cv_run_realpath+set}" = set; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13676 if test "$cross_compiling" = yes; then :
13677 libopts_cv_run_realpath=no
13679 else
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 #include <limits.h>
13683 #include <stdlib.h>
13684 int main (int argc, char** argv) {
13685 #ifndef PATH_MAX
13686 choke me!!
13687 #else
13688 char zPath[PATH_MAX+1];
13689 #endif
13690 char *pz = realpath(argv[0], zPath);
13691 return (pz == zPath) ? 0 : 1;
13693 _ACEOF
13694 if ac_fn_c_try_run "$LINENO"; then :
13695 libopts_cv_run_realpath=yes
13696 else
13697 libopts_cv_run_realpath=no
13699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13700 conftest.$ac_objext conftest.beam conftest.$ac_ext
13702 # end of TRY_RUN
13705 # end of AC_CACHE_VAL for libopts_cv_run_realpath
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
13707 $as_echo "${libopts_cv_run_realpath}" >&6; }
13709 if test "X${libopts_cv_run_realpath}" != Xno
13710 then
13712 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
13718 # Check to see if strftime() works.
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
13721 $as_echo_n "checking whether strftime() works... " >&6; }
13722 if test "${libopts_cv_run_strftime+set}" = set; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13726 if test "$cross_compiling" = yes; then :
13727 libopts_cv_run_strftime=no
13729 else
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13732 #include <time.h>
13733 #include <string.h>
13734 char t_buf[ 64 ];
13735 int main() {
13736 static char const z[] = "Thursday Aug 28 240";
13737 struct tm tm;
13738 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
13739 tm.tm_min = 44; /* minutes after the hour [0, 59] */
13740 tm.tm_hour = 12; /* hour since midnight [0, 23] */
13741 tm.tm_mday = 28; /* day of the month [1, 31] */
13742 tm.tm_mon = 7; /* months since January [0, 11] */
13743 tm.tm_year = 86; /* years since 1900 */
13744 tm.tm_wday = 4; /* days since Sunday [0, 6] */
13745 tm.tm_yday = 239; /* days since January 1 [0, 365] */
13746 tm.tm_isdst = 1; /* flag for daylight savings time */
13747 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
13748 return (strcmp( t_buf, z ) != 0); }
13749 _ACEOF
13750 if ac_fn_c_try_run "$LINENO"; then :
13751 libopts_cv_run_strftime=yes
13752 else
13753 libopts_cv_run_strftime=no
13755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13756 conftest.$ac_objext conftest.beam conftest.$ac_ext
13758 # end of TRY_RUN
13761 # end of AC_CACHE_VAL for libopts_cv_run_strftime
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
13763 $as_echo "${libopts_cv_run_strftime}" >&6; }
13765 if test "X${libopts_cv_run_strftime}" != Xno
13766 then
13768 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13774 # Check to see if fopen accepts "b" mode.
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
13777 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
13778 if test "${libopts_cv_run_fopen_binary+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13782 if test "$cross_compiling" = yes; then :
13783 libopts_cv_run_fopen_binary=no
13785 else
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 #include <stdio.h>
13789 int main (int argc, char** argv) {
13790 FILE* fp = fopen("conftest.$ac_ext", "rb");
13791 return (fp == NULL) ? 1 : fclose(fp); }
13792 _ACEOF
13793 if ac_fn_c_try_run "$LINENO"; then :
13794 libopts_cv_run_fopen_binary=yes
13795 else
13796 libopts_cv_run_fopen_binary=no
13798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13799 conftest.$ac_objext conftest.beam conftest.$ac_ext
13801 # end of TRY_RUN
13804 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
13806 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
13808 if test "X${libopts_cv_run_fopen_binary}" != Xno
13809 then
13811 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
13813 else
13815 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
13821 # Check to see if fopen accepts "t" mode.
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
13824 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
13825 if test "${libopts_cv_run_fopen_text+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13829 if test "$cross_compiling" = yes; then :
13830 libopts_cv_run_fopen_text=no
13832 else
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13835 #include <stdio.h>
13836 int main (int argc, char** argv) {
13837 FILE* fp = fopen("conftest.$ac_ext", "rt");
13838 return (fp == NULL) ? 1 : fclose(fp); }
13839 _ACEOF
13840 if ac_fn_c_try_run "$LINENO"; then :
13841 libopts_cv_run_fopen_text=yes
13842 else
13843 libopts_cv_run_fopen_text=no
13845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13846 conftest.$ac_objext conftest.beam conftest.$ac_ext
13848 # end of TRY_RUN
13851 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
13853 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
13855 if test "X${libopts_cv_run_fopen_text}" != Xno
13856 then
13858 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
13860 else
13862 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
13868 # Check to see if not wanting optional option args.
13870 # Check whether --enable-optional-args was given.
13871 if test "${enable_optional_args+set}" = set; then :
13872 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
13873 else
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
13875 $as_echo_n "checking whether not wanting optional option args... " >&6; }
13876 if test "${libopts_cv_enable_optional_args+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 libopts_cv_enable_optional_args=yes
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
13882 $as_echo "$libopts_cv_enable_optional_args" >&6; }
13885 # end of AC_ARG_ENABLE
13887 if test "X${libopts_cv_enable_optional_args}" = Xno
13888 then
13890 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
13897 else
13899 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
13900 # =================
13901 # AC_HEADER_STDC
13902 # =================
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13904 $as_echo_n "checking for ANSI C header files... " >&6; }
13905 if test "${ac_cv_header_stdc+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13907 else
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910 #include <stdlib.h>
13911 #include <stdarg.h>
13912 #include <string.h>
13913 #include <float.h>
13916 main ()
13920 return 0;
13922 _ACEOF
13923 if ac_fn_c_try_compile "$LINENO"; then :
13924 ac_cv_header_stdc=yes
13925 else
13926 ac_cv_header_stdc=no
13928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13930 if test $ac_cv_header_stdc = yes; then
13931 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13934 #include <string.h>
13936 _ACEOF
13937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13938 $EGREP "memchr" >/dev/null 2>&1; then :
13940 else
13941 ac_cv_header_stdc=no
13943 rm -f conftest*
13947 if test $ac_cv_header_stdc = yes; then
13948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13951 #include <stdlib.h>
13953 _ACEOF
13954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13955 $EGREP "free" >/dev/null 2>&1; then :
13957 else
13958 ac_cv_header_stdc=no
13960 rm -f conftest*
13964 if test $ac_cv_header_stdc = yes; then
13965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13966 if test "$cross_compiling" = yes; then :
13968 else
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971 #include <ctype.h>
13972 #include <stdlib.h>
13973 #if ((' ' & 0x0FF) == 0x020)
13974 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13975 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13976 #else
13977 # define ISLOWER(c) \
13978 (('a' <= (c) && (c) <= 'i') \
13979 || ('j' <= (c) && (c) <= 'r') \
13980 || ('s' <= (c) && (c) <= 'z'))
13981 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13982 #endif
13984 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13986 main ()
13988 int i;
13989 for (i = 0; i < 256; i++)
13990 if (XOR (islower (i), ISLOWER (i))
13991 || toupper (i) != TOUPPER (i))
13992 return 2;
13993 return 0;
13995 _ACEOF
13996 if ac_fn_c_try_run "$LINENO"; then :
13998 else
13999 ac_cv_header_stdc=no
14001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14002 conftest.$ac_objext conftest.beam conftest.$ac_ext
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14008 $as_echo "$ac_cv_header_stdc" >&6; }
14009 if test $ac_cv_header_stdc = yes; then
14011 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14015 # =================
14016 # AC_HEADER_DIRENT
14017 # =================
14018 ac_header_dirent=no
14019 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14020 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14022 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
14024 $as_echo_n "(cached) " >&6
14025 else
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14028 #include <sys/types.h>
14029 #include <$ac_hdr>
14032 main ()
14034 if ((DIR *) 0)
14035 return 0;
14037 return 0;
14039 _ACEOF
14040 if ac_fn_c_try_compile "$LINENO"; then :
14041 eval "$as_ac_Header=yes"
14042 else
14043 eval "$as_ac_Header=no"
14045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14047 eval ac_res=\$$as_ac_Header
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14049 $as_echo "$ac_res" >&6; }
14050 eval as_val=\$$as_ac_Header
14051 if test "x$as_val" = x""yes; then :
14052 cat >>confdefs.h <<_ACEOF
14053 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14054 _ACEOF
14056 ac_header_dirent=$ac_hdr; break
14059 done
14060 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14061 if test $ac_header_dirent = dirent.h; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14063 $as_echo_n "checking for library containing opendir... " >&6; }
14064 if test "${ac_cv_search_opendir+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 ac_func_search_save_LIBS=$LIBS
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14071 /* Override any GCC internal prototype to avoid an error.
14072 Use char because int might match the return type of a GCC
14073 builtin and then its argument prototype would still apply. */
14074 #ifdef __cplusplus
14075 extern "C"
14076 #endif
14077 char opendir ();
14079 main ()
14081 return opendir ();
14083 return 0;
14085 _ACEOF
14086 for ac_lib in '' dir; do
14087 if test -z "$ac_lib"; then
14088 ac_res="none required"
14089 else
14090 ac_res=-l$ac_lib
14091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14093 if ac_fn_c_try_link "$LINENO"; then :
14094 ac_cv_search_opendir=$ac_res
14096 rm -f core conftest.err conftest.$ac_objext \
14097 conftest$ac_exeext
14098 if test "${ac_cv_search_opendir+set}" = set; then :
14099 break
14101 done
14102 if test "${ac_cv_search_opendir+set}" = set; then :
14104 else
14105 ac_cv_search_opendir=no
14107 rm conftest.$ac_ext
14108 LIBS=$ac_func_search_save_LIBS
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14111 $as_echo "$ac_cv_search_opendir" >&6; }
14112 ac_res=$ac_cv_search_opendir
14113 if test "$ac_res" != no; then :
14114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14118 else
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14120 $as_echo_n "checking for library containing opendir... " >&6; }
14121 if test "${ac_cv_search_opendir+set}" = set; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124 ac_func_search_save_LIBS=$LIBS
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14128 /* Override any GCC internal prototype to avoid an error.
14129 Use char because int might match the return type of a GCC
14130 builtin and then its argument prototype would still apply. */
14131 #ifdef __cplusplus
14132 extern "C"
14133 #endif
14134 char opendir ();
14136 main ()
14138 return opendir ();
14140 return 0;
14142 _ACEOF
14143 for ac_lib in '' x; do
14144 if test -z "$ac_lib"; then
14145 ac_res="none required"
14146 else
14147 ac_res=-l$ac_lib
14148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14150 if ac_fn_c_try_link "$LINENO"; then :
14151 ac_cv_search_opendir=$ac_res
14153 rm -f core conftest.err conftest.$ac_objext \
14154 conftest$ac_exeext
14155 if test "${ac_cv_search_opendir+set}" = set; then :
14156 break
14158 done
14159 if test "${ac_cv_search_opendir+set}" = set; then :
14161 else
14162 ac_cv_search_opendir=no
14164 rm conftest.$ac_ext
14165 LIBS=$ac_func_search_save_LIBS
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14168 $as_echo "$ac_cv_search_opendir" >&6; }
14169 ac_res=$ac_cv_search_opendir
14170 if test "$ac_res" != no; then :
14171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14178 # =================
14179 # AC_CHECK_HEADERS
14180 # =================
14181 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
14182 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
14183 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
14184 utime.h sysexits.h
14185 do :
14186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14187 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14188 eval as_val=\$$as_ac_Header
14189 if test "x$as_val" = x""yes; then :
14190 cat >>confdefs.h <<_ACEOF
14191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14192 _ACEOF
14196 done
14199 # --------------------------------------------
14200 # Verify certain entries from AC_CHECK_HEADERS
14201 # --------------------------------------------
14202 for f in sys_types sys_mman sys_param sys_stat sys_wait \
14203 string errno stdlib memory setjmp
14204 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
14205 test "${as_ac_var}" = set || \
14206 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
14207 done
14209 # ================================================
14210 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
14211 # if varargs.h is present define HAVE_VARARGS_H.
14212 # ================================================
14213 for ac_header in stdarg.h varargs.h
14214 do :
14215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14216 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14217 eval as_val=\$$as_ac_Header
14218 if test "x$as_val" = x""yes; then :
14219 cat >>confdefs.h <<_ACEOF
14220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14221 _ACEOF
14222 break
14225 done
14227 if test `eval echo '${'$as_ac_Header'}'` != yes; then
14228 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
14231 # ================================================
14232 # Similarly for the string.h and strings.h headers
14233 # ================================================
14234 for ac_header in string.h strings.h
14235 do :
14236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14237 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14238 eval as_val=\$$as_ac_Header
14239 if test "x$as_val" = x""yes; then :
14240 cat >>confdefs.h <<_ACEOF
14241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14242 _ACEOF
14243 break
14246 done
14248 if test `eval echo '${'$as_ac_Header'}'` != yes; then
14249 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
14252 # =====================
14253 # ...and limits headers
14254 # =====================
14255 for ac_header in limits.h sys/limits.h values.h
14256 do :
14257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14259 eval as_val=\$$as_ac_Header
14260 if test "x$as_val" = x""yes; then :
14261 cat >>confdefs.h <<_ACEOF
14262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14263 _ACEOF
14264 break
14267 done
14269 if test `eval echo '${'$as_ac_Header'}'` != yes; then
14270 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
14273 # ========================
14274 # ...and int types headers
14275 # ========================
14276 for ac_header in stdint.h inttypes.h
14277 do :
14278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14279 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14280 eval as_val=\$$as_ac_Header
14281 if test "x$as_val" = x""yes; then :
14282 cat >>confdefs.h <<_ACEOF
14283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14284 _ACEOF
14285 break
14288 done
14290 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14291 if test "x$ac_cv_type_int8_t" = x""yes; then :
14293 cat >>confdefs.h <<_ACEOF
14294 #define HAVE_INT8_T 1
14295 _ACEOF
14299 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14300 if test "x$ac_cv_type_uint8_t" = x""yes; then :
14302 cat >>confdefs.h <<_ACEOF
14303 #define HAVE_UINT8_T 1
14304 _ACEOF
14308 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14309 if test "x$ac_cv_type_int16_t" = x""yes; then :
14311 cat >>confdefs.h <<_ACEOF
14312 #define HAVE_INT16_T 1
14313 _ACEOF
14317 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14318 if test "x$ac_cv_type_uint16_t" = x""yes; then :
14320 cat >>confdefs.h <<_ACEOF
14321 #define HAVE_UINT16_T 1
14322 _ACEOF
14326 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14327 if test "x$ac_cv_type_int32_t" = x""yes; then :
14329 cat >>confdefs.h <<_ACEOF
14330 #define HAVE_INT32_T 1
14331 _ACEOF
14335 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14336 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14338 cat >>confdefs.h <<_ACEOF
14339 #define HAVE_UINT32_T 1
14340 _ACEOF
14344 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14345 if test "x$ac_cv_type_intptr_t" = x""yes; then :
14347 cat >>confdefs.h <<_ACEOF
14348 #define HAVE_INTPTR_T 1
14349 _ACEOF
14353 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
14354 if test "x$ac_cv_type_uint_t" = x""yes; then :
14356 cat >>confdefs.h <<_ACEOF
14357 #define HAVE_UINT_T 1
14358 _ACEOF
14364 # ====================
14365 # uintptr type & sizes
14366 # ====================
14367 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14368 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14370 cat >>confdefs.h <<_ACEOF
14371 #define HAVE_UINTPTR_T 1
14372 _ACEOF
14375 else
14377 $as_echo "#define uintptr_t unsigned long" >>confdefs.h
14381 # The cast to long int works around a bug in the HP C Compiler
14382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14384 # This bug is HP SR number 8606223364.
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
14386 $as_echo_n "checking size of char*... " >&6; }
14387 if test "${ac_cv_sizeof_charp+set}" = set; then :
14388 $as_echo_n "(cached) " >&6
14389 else
14390 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
14392 else
14393 if test "$ac_cv_type_charp" = yes; then
14394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14396 { as_fn_set_status 77
14397 as_fn_error "cannot compute sizeof (char*)
14398 See \`config.log' for more details." "$LINENO" 5; }; }
14399 else
14400 ac_cv_sizeof_charp=0
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
14406 $as_echo "$ac_cv_sizeof_charp" >&6; }
14410 cat >>confdefs.h <<_ACEOF
14411 #define SIZEOF_CHARP $ac_cv_sizeof_charp
14412 _ACEOF
14415 # The cast to long int works around a bug in the HP C Compiler
14416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14418 # This bug is HP SR number 8606223364.
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14420 $as_echo_n "checking size of int... " >&6; }
14421 if test "${ac_cv_sizeof_int+set}" = set; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14426 else
14427 if test "$ac_cv_type_int" = yes; then
14428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14430 { as_fn_set_status 77
14431 as_fn_error "cannot compute sizeof (int)
14432 See \`config.log' for more details." "$LINENO" 5; }; }
14433 else
14434 ac_cv_sizeof_int=0
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14440 $as_echo "$ac_cv_sizeof_int" >&6; }
14444 cat >>confdefs.h <<_ACEOF
14445 #define SIZEOF_INT $ac_cv_sizeof_int
14446 _ACEOF
14449 # The cast to long int works around a bug in the HP C Compiler
14450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14452 # This bug is HP SR number 8606223364.
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14454 $as_echo_n "checking size of long... " >&6; }
14455 if test "${ac_cv_sizeof_long+set}" = set; then :
14456 $as_echo_n "(cached) " >&6
14457 else
14458 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14460 else
14461 if test "$ac_cv_type_long" = yes; then
14462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14464 { as_fn_set_status 77
14465 as_fn_error "cannot compute sizeof (long)
14466 See \`config.log' for more details." "$LINENO" 5; }; }
14467 else
14468 ac_cv_sizeof_long=0
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14474 $as_echo "$ac_cv_sizeof_long" >&6; }
14478 cat >>confdefs.h <<_ACEOF
14479 #define SIZEOF_LONG $ac_cv_sizeof_long
14480 _ACEOF
14483 # The cast to long int works around a bug in the HP C Compiler
14484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14486 # This bug is HP SR number 8606223364.
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14488 $as_echo_n "checking size of short... " >&6; }
14489 if test "${ac_cv_sizeof_short+set}" = set; then :
14490 $as_echo_n "(cached) " >&6
14491 else
14492 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14494 else
14495 if test "$ac_cv_type_short" = yes; then
14496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14498 { as_fn_set_status 77
14499 as_fn_error "cannot compute sizeof (short)
14500 See \`config.log' for more details." "$LINENO" 5; }; }
14501 else
14502 ac_cv_sizeof_short=0
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14508 $as_echo "$ac_cv_sizeof_short" >&6; }
14512 cat >>confdefs.h <<_ACEOF
14513 #define SIZEOF_SHORT $ac_cv_sizeof_short
14514 _ACEOF
14518 # ----------------------------------------------------------------------
14519 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
14520 # ----------------------------------------------------------------------
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
14522 $as_echo_n "checking for pathfind in -lgen... " >&6; }
14523 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
14524 $as_echo_n "(cached) " >&6
14525 else
14526 ac_check_lib_save_LIBS=$LIBS
14527 LIBS="-lgen $LIBS"
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14531 /* Override any GCC internal prototype to avoid an error.
14532 Use char because int might match the return type of a GCC
14533 builtin and then its argument prototype would still apply. */
14534 #ifdef __cplusplus
14535 extern "C"
14536 #endif
14537 char pathfind ();
14539 main ()
14541 return pathfind ();
14543 return 0;
14545 _ACEOF
14546 if ac_fn_c_try_link "$LINENO"; then :
14547 ac_cv_lib_gen_pathfind=yes
14548 else
14549 ac_cv_lib_gen_pathfind=no
14551 rm -f core conftest.err conftest.$ac_objext \
14552 conftest$ac_exeext conftest.$ac_ext
14553 LIBS=$ac_check_lib_save_LIBS
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
14556 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
14557 if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
14558 cat >>confdefs.h <<_ACEOF
14559 #define HAVE_LIBGEN 1
14560 _ACEOF
14562 LIBS="-lgen $LIBS"
14566 for ac_func in vprintf
14567 do :
14568 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14569 if test "x$ac_cv_func_vprintf" = x""yes; then :
14570 cat >>confdefs.h <<_ACEOF
14571 #define HAVE_VPRINTF 1
14572 _ACEOF
14574 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14575 if test "x$ac_cv_func__doprnt" = x""yes; then :
14577 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14582 done
14585 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
14586 do :
14587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14588 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14589 eval as_val=\$$as_ac_var
14590 if test "x$as_val" = x""yes; then :
14591 cat >>confdefs.h <<_ACEOF
14592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14593 _ACEOF
14596 done
14598 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
14601 # end of AC_DEFUN of LIBOPTS_CHECK
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
14605 $as_echo_n "checking if $CC can handle #warning... " >&6; }
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14610 main ()
14612 #warning foo
14614 return 0;
14616 _ACEOF
14617 if ac_fn_c_try_compile "$LINENO"; then :
14618 ac_cv_cpp_warning=yes
14619 else
14620 ac_cv_cpp_warning=no
14622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5
14624 $as_echo "$ac_cv_cpp_warning" >&6; }
14626 case "$ac_cv_cpp_warning" in
14629 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&5
14632 $as_echo "Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&6; }
14634 esac
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14637 $as_echo_n "checking for inline... " >&6; }
14638 if test "${ac_cv_c_inline+set}" = set; then :
14639 $as_echo_n "(cached) " >&6
14640 else
14641 ac_cv_c_inline=no
14642 for ac_kw in inline __inline__ __inline; do
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14645 #ifndef __cplusplus
14646 typedef int foo_t;
14647 static $ac_kw foo_t static_foo () {return 0; }
14648 $ac_kw foo_t foo () {return 0; }
14649 #endif
14651 _ACEOF
14652 if ac_fn_c_try_compile "$LINENO"; then :
14653 ac_cv_c_inline=$ac_kw
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 test "$ac_cv_c_inline" != no && break
14657 done
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14661 $as_echo "$ac_cv_c_inline" >&6; }
14663 case $ac_cv_c_inline in
14664 inline | yes) ;;
14666 case $ac_cv_c_inline in
14667 no) ac_val=;;
14668 *) ac_val=$ac_cv_c_inline;;
14669 esac
14670 cat >>confdefs.h <<_ACEOF
14671 #ifndef __cplusplus
14672 #define inline $ac_val
14673 #endif
14674 _ACEOF
14676 esac
14679 case "$ac_cv_c_inline" in
14684 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
14687 esac
14690 # Checks for libraries.
14692 # Checks for header files.
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14694 $as_echo_n "checking for ANSI C header files... " >&6; }
14695 if test "${ac_cv_header_stdc+set}" = set; then :
14696 $as_echo_n "(cached) " >&6
14697 else
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14700 #include <stdlib.h>
14701 #include <stdarg.h>
14702 #include <string.h>
14703 #include <float.h>
14706 main ()
14710 return 0;
14712 _ACEOF
14713 if ac_fn_c_try_compile "$LINENO"; then :
14714 ac_cv_header_stdc=yes
14715 else
14716 ac_cv_header_stdc=no
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720 if test $ac_cv_header_stdc = yes; then
14721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723 /* end confdefs.h. */
14724 #include <string.h>
14726 _ACEOF
14727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14728 $EGREP "memchr" >/dev/null 2>&1; then :
14730 else
14731 ac_cv_header_stdc=no
14733 rm -f conftest*
14737 if test $ac_cv_header_stdc = yes; then
14738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741 #include <stdlib.h>
14743 _ACEOF
14744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14745 $EGREP "free" >/dev/null 2>&1; then :
14747 else
14748 ac_cv_header_stdc=no
14750 rm -f conftest*
14754 if test $ac_cv_header_stdc = yes; then
14755 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14756 if test "$cross_compiling" = yes; then :
14758 else
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 #include <ctype.h>
14762 #include <stdlib.h>
14763 #if ((' ' & 0x0FF) == 0x020)
14764 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14765 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14766 #else
14767 # define ISLOWER(c) \
14768 (('a' <= (c) && (c) <= 'i') \
14769 || ('j' <= (c) && (c) <= 'r') \
14770 || ('s' <= (c) && (c) <= 'z'))
14771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14772 #endif
14774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14776 main ()
14778 int i;
14779 for (i = 0; i < 256; i++)
14780 if (XOR (islower (i), ISLOWER (i))
14781 || toupper (i) != TOUPPER (i))
14782 return 2;
14783 return 0;
14785 _ACEOF
14786 if ac_fn_c_try_run "$LINENO"; then :
14788 else
14789 ac_cv_header_stdc=no
14791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14792 conftest.$ac_objext conftest.beam conftest.$ac_ext
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14798 $as_echo "$ac_cv_header_stdc" >&6; }
14799 if test $ac_cv_header_stdc = yes; then
14801 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14805 for ac_header in arpa/inet.h fcntl.h float.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h
14806 do :
14807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14808 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14809 eval as_val=\$$as_ac_Header
14810 if test "x$as_val" = x""yes; then :
14811 cat >>confdefs.h <<_ACEOF
14812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14813 _ACEOF
14817 done
14820 # Checks for typedefs, structures, and compiler characteristics.
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14822 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14823 if test "${ac_cv_c_const+set}" = set; then :
14824 $as_echo_n "(cached) " >&6
14825 else
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14830 main ()
14832 /* FIXME: Include the comments suggested by Paul. */
14833 #ifndef __cplusplus
14834 /* Ultrix mips cc rejects this. */
14835 typedef int charset[2];
14836 const charset cs;
14837 /* SunOS 4.1.1 cc rejects this. */
14838 char const *const *pcpcc;
14839 char **ppc;
14840 /* NEC SVR4.0.2 mips cc rejects this. */
14841 struct point {int x, y;};
14842 static struct point const zero = {0,0};
14843 /* AIX XL C 1.02.0.0 rejects this.
14844 It does not let you subtract one const X* pointer from another in
14845 an arm of an if-expression whose if-part is not a constant
14846 expression */
14847 const char *g = "string";
14848 pcpcc = &g + (g ? g-g : 0);
14849 /* HPUX 7.0 cc rejects these. */
14850 ++pcpcc;
14851 ppc = (char**) pcpcc;
14852 pcpcc = (char const *const *) ppc;
14853 { /* SCO 3.2v4 cc rejects this. */
14854 char *t;
14855 char const *s = 0 ? (char *) 0 : (char const *) 0;
14857 *t++ = 0;
14858 if (s) return 0;
14860 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14861 int x[] = {25, 17};
14862 const int *foo = &x[0];
14863 ++foo;
14865 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14866 typedef const int *iptr;
14867 iptr p = 0;
14868 ++p;
14870 { /* AIX XL C 1.02.0.0 rejects this saying
14871 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14872 struct s { int j; const int *ap[3]; };
14873 struct s *b; b->j = 5;
14875 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14876 const int foo = 10;
14877 if (!foo) return 0;
14879 return !cs[0] && !zero.x;
14880 #endif
14883 return 0;
14885 _ACEOF
14886 if ac_fn_c_try_compile "$LINENO"; then :
14887 ac_cv_c_const=yes
14888 else
14889 ac_cv_c_const=no
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14894 $as_echo "$ac_cv_c_const" >&6; }
14895 if test $ac_cv_c_const = no; then
14897 $as_echo "#define const /**/" >>confdefs.h
14901 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14902 if test "x$ac_cv_type_size_t" = x""yes; then :
14904 else
14906 cat >>confdefs.h <<_ACEOF
14907 #define size_t unsigned int
14908 _ACEOF
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14913 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14914 if test "${ac_cv_header_time+set}" = set; then :
14915 $as_echo_n "(cached) " >&6
14916 else
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14919 #include <sys/types.h>
14920 #include <sys/time.h>
14921 #include <time.h>
14924 main ()
14926 if ((struct tm *) 0)
14927 return 0;
14929 return 0;
14931 _ACEOF
14932 if ac_fn_c_try_compile "$LINENO"; then :
14933 ac_cv_header_time=yes
14934 else
14935 ac_cv_header_time=no
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14940 $as_echo "$ac_cv_header_time" >&6; }
14941 if test $ac_cv_header_time = yes; then
14943 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14948 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14949 if test "${ac_cv_struct_tm+set}" = set; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14954 #include <sys/types.h>
14955 #include <time.h>
14958 main ()
14960 struct tm tm;
14961 int *p = &tm.tm_sec;
14962 return !p;
14964 return 0;
14966 _ACEOF
14967 if ac_fn_c_try_compile "$LINENO"; then :
14968 ac_cv_struct_tm=time.h
14969 else
14970 ac_cv_struct_tm=sys/time.h
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14975 $as_echo "$ac_cv_struct_tm" >&6; }
14976 if test $ac_cv_struct_tm = sys/time.h; then
14978 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
14984 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
14985 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then :
14986 $as_echo_n "(cached) " >&6
14987 else
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h. */
14992 #include <sys/types.h>
14993 #include <sys/socket.h>
14996 main ()
14998 struct sockaddr_storage s; s.ss_family = 1;
15000 return 0;
15002 _ACEOF
15003 if ac_fn_c_try_compile "$LINENO"; then :
15004 ac_cv_have_ss_family_in_struct_ss="yes"
15005 else
15006 ac_cv_have_ss_family_in_struct_ss="no"
15008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
15012 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
15013 case "$ac_cv_have_ss_family_in_struct_ss" in
15014 yes)
15016 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
15019 esac
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
15022 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
15023 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15030 #include <sys/types.h>
15031 #include <sys/socket.h>
15034 main ()
15036 struct sockaddr_storage s; s.__ss_family = 1;
15038 return 0;
15040 _ACEOF
15041 if ac_fn_c_try_compile "$LINENO"; then :
15042 ac_cv_have___ss_family_in_struct_ss="yes"
15043 else
15044 ac_cv_have___ss_family_in_struct_ss="no"
15047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
15051 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
15052 case "$ac_cv_have___ss_family_in_struct_ss" in
15053 yes)
15055 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
15058 esac
15060 case "$ac_cv_have_ss_family_in_struct_ss$ac_cv_have___ss_family_in_struct_ss" in
15061 noyes)
15063 cat >>confdefs.h <<_ACEOF
15064 #define ss_family __ss_family
15065 _ACEOF
15068 cat >>confdefs.h <<_ACEOF
15069 #define ss_len __ss_len
15070 _ACEOF
15073 esac
15075 # Checks for library functions.
15076 #AC_FUNC_MEMCMP dnl HMS: we don't have a memcmp.c to use here, so why bother?
15077 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
15078 $as_echo_n "(cached) " >&6
15079 else
15080 ac_cv_func_setvbuf_reversed=no
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15085 $as_echo_n "checking return type of signal handlers... " >&6; }
15086 if test "${ac_cv_type_signal+set}" = set; then :
15087 $as_echo_n "(cached) " >&6
15088 else
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15091 #include <sys/types.h>
15092 #include <signal.h>
15095 main ()
15097 return *(signal (0, 0)) (0) == 1;
15099 return 0;
15101 _ACEOF
15102 if ac_fn_c_try_compile "$LINENO"; then :
15103 ac_cv_type_signal=int
15104 else
15105 ac_cv_type_signal=void
15107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15110 $as_echo "$ac_cv_type_signal" >&6; }
15112 cat >>confdefs.h <<_ACEOF
15113 #define RETSIGTYPE $ac_cv_type_signal
15114 _ACEOF
15117 for ac_func in alarm
15118 do :
15119 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
15120 if test "x$ac_cv_func_alarm" = x""yes; then :
15121 cat >>confdefs.h <<_ACEOF
15122 #define HAVE_ALARM 1
15123 _ACEOF
15126 done
15128 ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
15129 if test "x$ac_cv_func_gethostent" = x""yes; then :
15131 else
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
15133 $as_echo_n "checking for library containing gethostent... " >&6; }
15134 if test "${ac_cv_search_gethostent+set}" = set; then :
15135 $as_echo_n "(cached) " >&6
15136 else
15137 ac_func_search_save_LIBS=$LIBS
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15141 /* Override any GCC internal prototype to avoid an error.
15142 Use char because int might match the return type of a GCC
15143 builtin and then its argument prototype would still apply. */
15144 #ifdef __cplusplus
15145 extern "C"
15146 #endif
15147 char gethostent ();
15149 main ()
15151 return gethostent ();
15153 return 0;
15155 _ACEOF
15156 for ac_lib in '' nsl; do
15157 if test -z "$ac_lib"; then
15158 ac_res="none required"
15159 else
15160 ac_res=-l$ac_lib
15161 LIBS="-l$ac_lib -lsocket $ac_func_search_save_LIBS"
15163 if ac_fn_c_try_link "$LINENO"; then :
15164 ac_cv_search_gethostent=$ac_res
15166 rm -f core conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext
15168 if test "${ac_cv_search_gethostent+set}" = set; then :
15169 break
15171 done
15172 if test "${ac_cv_search_gethostent+set}" = set; then :
15174 else
15175 ac_cv_search_gethostent=no
15177 rm conftest.$ac_ext
15178 LIBS=$ac_func_search_save_LIBS
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
15181 $as_echo "$ac_cv_search_gethostent" >&6; }
15182 ac_res=$ac_cv_search_gethostent
15183 if test "$ac_res" != no; then :
15184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15190 for ac_func in gettimeofday inet_ntoa memset
15191 do :
15192 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15193 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15194 eval as_val=\$$as_ac_var
15195 if test "x$as_val" = x""yes; then :
15196 cat >>confdefs.h <<_ACEOF
15197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15198 _ACEOF
15201 done
15203 for ac_func in socket
15204 do :
15205 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15206 if test "x$ac_cv_func_socket" = x""yes; then :
15207 cat >>confdefs.h <<_ACEOF
15208 #define HAVE_SOCKET 1
15209 _ACEOF
15211 else
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15213 $as_echo_n "checking for library containing socket... " >&6; }
15214 if test "${ac_cv_search_socket+set}" = set; then :
15215 $as_echo_n "(cached) " >&6
15216 else
15217 ac_func_search_save_LIBS=$LIBS
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15221 /* Override any GCC internal prototype to avoid an error.
15222 Use char because int might match the return type of a GCC
15223 builtin and then its argument prototype would still apply. */
15224 #ifdef __cplusplus
15225 extern "C"
15226 #endif
15227 char socket ();
15229 main ()
15231 return socket ();
15233 return 0;
15235 _ACEOF
15236 for ac_lib in '' socket; do
15237 if test -z "$ac_lib"; then
15238 ac_res="none required"
15239 else
15240 ac_res=-l$ac_lib
15241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15243 if ac_fn_c_try_link "$LINENO"; then :
15244 ac_cv_search_socket=$ac_res
15246 rm -f core conftest.err conftest.$ac_objext \
15247 conftest$ac_exeext
15248 if test "${ac_cv_search_socket+set}" = set; then :
15249 break
15251 done
15252 if test "${ac_cv_search_socket+set}" = set; then :
15254 else
15255 ac_cv_search_socket=no
15257 rm conftest.$ac_ext
15258 LIBS=$ac_func_search_save_LIBS
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15261 $as_echo "$ac_cv_search_socket" >&6; }
15262 ac_res=$ac_cv_search_socket
15263 if test "$ac_res" != no; then :
15264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15269 done
15271 for ac_func in sqrt
15272 do :
15273 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
15274 if test "x$ac_cv_func_sqrt" = x""yes; then :
15275 cat >>confdefs.h <<_ACEOF
15276 #define HAVE_SQRT 1
15277 _ACEOF
15279 else
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
15281 $as_echo_n "checking for library containing sqrt... " >&6; }
15282 if test "${ac_cv_search_sqrt+set}" = set; then :
15283 $as_echo_n "(cached) " >&6
15284 else
15285 ac_func_search_save_LIBS=$LIBS
15286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h. */
15289 /* Override any GCC internal prototype to avoid an error.
15290 Use char because int might match the return type of a GCC
15291 builtin and then its argument prototype would still apply. */
15292 #ifdef __cplusplus
15293 extern "C"
15294 #endif
15295 char sqrt ();
15297 main ()
15299 return sqrt ();
15301 return 0;
15303 _ACEOF
15304 for ac_lib in '' m; do
15305 if test -z "$ac_lib"; then
15306 ac_res="none required"
15307 else
15308 ac_res=-l$ac_lib
15309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15311 if ac_fn_c_try_link "$LINENO"; then :
15312 ac_cv_search_sqrt=$ac_res
15314 rm -f core conftest.err conftest.$ac_objext \
15315 conftest$ac_exeext
15316 if test "${ac_cv_search_sqrt+set}" = set; then :
15317 break
15319 done
15320 if test "${ac_cv_search_sqrt+set}" = set; then :
15322 else
15323 ac_cv_search_sqrt=no
15325 rm conftest.$ac_ext
15326 LIBS=$ac_func_search_save_LIBS
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
15329 $as_echo "$ac_cv_search_sqrt" >&6; }
15330 ac_res=$ac_cv_search_sqrt
15331 if test "$ac_res" != no; then :
15332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15337 done
15339 for ac_func in strrchr
15340 do :
15341 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15342 if test "x$ac_cv_func_strrchr" = x""yes; then :
15343 cat >>confdefs.h <<_ACEOF
15344 #define HAVE_STRRCHR 1
15345 _ACEOF
15348 done
15351 case "$host" in
15352 *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20
15353 case "$GCC" in
15354 yes)
15356 *) CFLAGS="$CFLAGS -Wp,-H18816"
15358 esac
15360 *-*-linux*)
15361 CFLAGS="$CFLAGS -DADJTIME_MISSING"
15363 *-*-sunos*)
15364 CFLAGS="$CFLAGS -DNONBLOCK_BROKEN"
15366 esac
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
15369 $as_echo_n "checking for bin subdirectory... " >&6; }
15371 # Check whether --with-binsubdir was given.
15372 if test "${with_binsubdir+set}" = set; then :
15373 withval=$with_binsubdir; use_binsubdir="$withval"
15374 else
15375 use_binsubdir="bin"
15379 case "$use_binsubdir" in
15380 bin)
15382 sbin)
15385 as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
15387 esac
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
15389 $as_echo "$use_binsubdir" >&6; }
15390 BINSUBDIR=$use_binsubdir
15393 ac_config_files="$ac_config_files Makefile"
15395 cat >confcache <<\_ACEOF
15396 # This file is a shell script that caches the results of configure
15397 # tests run on this system so they can be shared between configure
15398 # scripts and configure runs, see configure's option --config-cache.
15399 # It is not useful on other systems. If it contains results you don't
15400 # want to keep, you may remove or edit it.
15402 # config.status only pays attention to the cache file if you give it
15403 # the --recheck option to rerun configure.
15405 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15406 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15407 # following values.
15409 _ACEOF
15411 # The following way of writing the cache mishandles newlines in values,
15412 # but we know of no workaround that is simple, portable, and efficient.
15413 # So, we kill variables containing newlines.
15414 # Ultrix sh set writes to stderr and can't be redirected directly,
15415 # and sets the high bit in the cache file unless we assign to the vars.
15417 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15418 eval ac_val=\$$ac_var
15419 case $ac_val in #(
15420 *${as_nl}*)
15421 case $ac_var in #(
15422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15424 esac
15425 case $ac_var in #(
15426 _ | IFS | as_nl) ;; #(
15427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15428 *) { eval $ac_var=; unset $ac_var;} ;;
15429 esac ;;
15430 esac
15431 done
15433 (set) 2>&1 |
15434 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15435 *${as_nl}ac_space=\ *)
15436 # `set' does not quote correctly, so add quotes: double-quote
15437 # substitution turns \\\\ into \\, and sed turns \\ into \.
15438 sed -n \
15439 "s/'/'\\\\''/g;
15440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15441 ;; #(
15443 # `set' quotes correctly as required by POSIX, so do not add quotes.
15444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15446 esac |
15447 sort
15449 sed '
15450 /^ac_cv_env_/b end
15451 t clear
15452 :clear
15453 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15454 t end
15455 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15456 :end' >>confcache
15457 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15458 if test -w "$cache_file"; then
15459 test "x$cache_file" != "x/dev/null" &&
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15461 $as_echo "$as_me: updating cache $cache_file" >&6;}
15462 cat confcache >$cache_file
15463 else
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15465 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15468 rm -f confcache
15470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15471 # Let make expand exec_prefix.
15472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15474 DEFS=-DHAVE_CONFIG_H
15476 ac_libobjs=
15477 ac_ltlibobjs=
15478 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15479 # 1. Remove the extension, and $U if already installed.
15480 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15481 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15482 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15483 # will be set to the directory where LIBOBJS objects are built.
15484 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15485 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15486 done
15487 LIBOBJS=$ac_libobjs
15489 LTLIBOBJS=$ac_ltlibobjs
15492 if test -n "$EXEEXT"; then
15493 am__EXEEXT_TRUE=
15494 am__EXEEXT_FALSE='#'
15495 else
15496 am__EXEEXT_TRUE='#'
15497 am__EXEEXT_FALSE=
15500 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15501 as_fn_error "conditional \"AMDEP\" was never defined.
15502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15504 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15505 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15508 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
15509 as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined.
15510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15512 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
15513 as_fn_error "conditional \"NEED_LIBOPTS\" was never defined.
15514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15517 : ${CONFIG_STATUS=./config.status}
15518 ac_write_fail=0
15519 ac_clean_files_save=$ac_clean_files
15520 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15522 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15523 as_write_fail=0
15524 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15525 #! $SHELL
15526 # Generated by $as_me.
15527 # Run this file to recreate the current configuration.
15528 # Compiler output produced by configure, useful for debugging
15529 # configure, is in config.log if it exists.
15531 debug=false
15532 ac_cs_recheck=false
15533 ac_cs_silent=false
15535 SHELL=\${CONFIG_SHELL-$SHELL}
15536 export SHELL
15537 _ASEOF
15538 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15539 ## -------------------- ##
15540 ## M4sh Initialization. ##
15541 ## -------------------- ##
15543 # Be more Bourne compatible
15544 DUALCASE=1; export DUALCASE # for MKS sh
15545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15546 emulate sh
15547 NULLCMD=:
15548 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15549 # is contrary to our usage. Disable this feature.
15550 alias -g '${1+"$@"}'='"$@"'
15551 setopt NO_GLOB_SUBST
15552 else
15553 case `(set -o) 2>/dev/null` in #(
15554 *posix*) :
15555 set -o posix ;; #(
15556 *) :
15558 esac
15562 as_nl='
15564 export as_nl
15565 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15566 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15567 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15568 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15569 # Prefer a ksh shell builtin over an external printf program on Solaris,
15570 # but without wasting forks for bash or zsh.
15571 if test -z "$BASH_VERSION$ZSH_VERSION" \
15572 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15573 as_echo='print -r --'
15574 as_echo_n='print -rn --'
15575 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15576 as_echo='printf %s\n'
15577 as_echo_n='printf %s'
15578 else
15579 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15580 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15581 as_echo_n='/usr/ucb/echo -n'
15582 else
15583 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15584 as_echo_n_body='eval
15585 arg=$1;
15586 case $arg in #(
15587 *"$as_nl"*)
15588 expr "X$arg" : "X\\(.*\\)$as_nl";
15589 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15590 esac;
15591 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15593 export as_echo_n_body
15594 as_echo_n='sh -c $as_echo_n_body as_echo'
15596 export as_echo_body
15597 as_echo='sh -c $as_echo_body as_echo'
15600 # The user is always right.
15601 if test "${PATH_SEPARATOR+set}" != set; then
15602 PATH_SEPARATOR=:
15603 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15604 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15605 PATH_SEPARATOR=';'
15610 # IFS
15611 # We need space, tab and new line, in precisely that order. Quoting is
15612 # there to prevent editors from complaining about space-tab.
15613 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15614 # splitting by setting IFS to empty value.)
15615 IFS=" "" $as_nl"
15617 # Find who we are. Look in the path if we contain no directory separator.
15618 case $0 in #((
15619 *[\\/]* ) as_myself=$0 ;;
15620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15621 for as_dir in $PATH
15623 IFS=$as_save_IFS
15624 test -z "$as_dir" && as_dir=.
15625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15626 done
15627 IFS=$as_save_IFS
15630 esac
15631 # We did not find ourselves, most probably we were run as `sh COMMAND'
15632 # in which case we are not to be found in the path.
15633 if test "x$as_myself" = x; then
15634 as_myself=$0
15636 if test ! -f "$as_myself"; then
15637 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15638 exit 1
15641 # Unset variables that we do not need and which cause bugs (e.g. in
15642 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15643 # suppresses any "Segmentation fault" message there. '((' could
15644 # trigger a bug in pdksh 5.2.14.
15645 for as_var in BASH_ENV ENV MAIL MAILPATH
15646 do eval test x\${$as_var+set} = xset \
15647 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15648 done
15649 PS1='$ '
15650 PS2='> '
15651 PS4='+ '
15653 # NLS nuisances.
15654 LC_ALL=C
15655 export LC_ALL
15656 LANGUAGE=C
15657 export LANGUAGE
15659 # CDPATH.
15660 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15663 # as_fn_error ERROR [LINENO LOG_FD]
15664 # ---------------------------------
15665 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15666 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15667 # script with status $?, using 1 if that was 0.
15668 as_fn_error ()
15670 as_status=$?; test $as_status -eq 0 && as_status=1
15671 if test "$3"; then
15672 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15673 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15675 $as_echo "$as_me: error: $1" >&2
15676 as_fn_exit $as_status
15677 } # as_fn_error
15680 # as_fn_set_status STATUS
15681 # -----------------------
15682 # Set $? to STATUS, without forking.
15683 as_fn_set_status ()
15685 return $1
15686 } # as_fn_set_status
15688 # as_fn_exit STATUS
15689 # -----------------
15690 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15691 as_fn_exit ()
15693 set +e
15694 as_fn_set_status $1
15695 exit $1
15696 } # as_fn_exit
15698 # as_fn_unset VAR
15699 # ---------------
15700 # Portably unset VAR.
15701 as_fn_unset ()
15703 { eval $1=; unset $1;}
15705 as_unset=as_fn_unset
15706 # as_fn_append VAR VALUE
15707 # ----------------------
15708 # Append the text in VALUE to the end of the definition contained in VAR. Take
15709 # advantage of any shell optimizations that allow amortized linear growth over
15710 # repeated appends, instead of the typical quadratic growth present in naive
15711 # implementations.
15712 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15713 eval 'as_fn_append ()
15715 eval $1+=\$2
15717 else
15718 as_fn_append ()
15720 eval $1=\$$1\$2
15722 fi # as_fn_append
15724 # as_fn_arith ARG...
15725 # ------------------
15726 # Perform arithmetic evaluation on the ARGs, and store the result in the
15727 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15728 # must be portable across $(()) and expr.
15729 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15730 eval 'as_fn_arith ()
15732 as_val=$(( $* ))
15734 else
15735 as_fn_arith ()
15737 as_val=`expr "$@" || test $? -eq 1`
15739 fi # as_fn_arith
15742 if expr a : '\(a\)' >/dev/null 2>&1 &&
15743 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15744 as_expr=expr
15745 else
15746 as_expr=false
15749 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15750 as_basename=basename
15751 else
15752 as_basename=false
15755 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15756 as_dirname=dirname
15757 else
15758 as_dirname=false
15761 as_me=`$as_basename -- "$0" ||
15762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15763 X"$0" : 'X\(//\)$' \| \
15764 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15765 $as_echo X/"$0" |
15766 sed '/^.*\/\([^/][^/]*\)\/*$/{
15767 s//\1/
15770 /^X\/\(\/\/\)$/{
15771 s//\1/
15774 /^X\/\(\/\).*/{
15775 s//\1/
15778 s/.*/./; q'`
15780 # Avoid depending upon Character Ranges.
15781 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15782 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15783 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15784 as_cr_digits='0123456789'
15785 as_cr_alnum=$as_cr_Letters$as_cr_digits
15787 ECHO_C= ECHO_N= ECHO_T=
15788 case `echo -n x` in #(((((
15789 -n*)
15790 case `echo 'xy\c'` in
15791 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15792 xy) ECHO_C='\c';;
15793 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15794 ECHO_T=' ';;
15795 esac;;
15797 ECHO_N='-n';;
15798 esac
15800 rm -f conf$$ conf$$.exe conf$$.file
15801 if test -d conf$$.dir; then
15802 rm -f conf$$.dir/conf$$.file
15803 else
15804 rm -f conf$$.dir
15805 mkdir conf$$.dir 2>/dev/null
15807 if (echo >conf$$.file) 2>/dev/null; then
15808 if ln -s conf$$.file conf$$ 2>/dev/null; then
15809 as_ln_s='ln -s'
15810 # ... but there are two gotchas:
15811 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15812 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15813 # In both cases, we have to default to `cp -p'.
15814 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15815 as_ln_s='cp -p'
15816 elif ln conf$$.file conf$$ 2>/dev/null; then
15817 as_ln_s=ln
15818 else
15819 as_ln_s='cp -p'
15821 else
15822 as_ln_s='cp -p'
15824 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15825 rmdir conf$$.dir 2>/dev/null
15828 # as_fn_mkdir_p
15829 # -------------
15830 # Create "$as_dir" as a directory, including parents if necessary.
15831 as_fn_mkdir_p ()
15834 case $as_dir in #(
15835 -*) as_dir=./$as_dir;;
15836 esac
15837 test -d "$as_dir" || eval $as_mkdir_p || {
15838 as_dirs=
15839 while :; do
15840 case $as_dir in #(
15841 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15842 *) as_qdir=$as_dir;;
15843 esac
15844 as_dirs="'$as_qdir' $as_dirs"
15845 as_dir=`$as_dirname -- "$as_dir" ||
15846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15847 X"$as_dir" : 'X\(//\)[^/]' \| \
15848 X"$as_dir" : 'X\(//\)$' \| \
15849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15850 $as_echo X"$as_dir" |
15851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15852 s//\1/
15855 /^X\(\/\/\)[^/].*/{
15856 s//\1/
15859 /^X\(\/\/\)$/{
15860 s//\1/
15863 /^X\(\/\).*/{
15864 s//\1/
15867 s/.*/./; q'`
15868 test -d "$as_dir" && break
15869 done
15870 test -z "$as_dirs" || eval "mkdir $as_dirs"
15871 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15874 } # as_fn_mkdir_p
15875 if mkdir -p . 2>/dev/null; then
15876 as_mkdir_p='mkdir -p "$as_dir"'
15877 else
15878 test -d ./-p && rmdir ./-p
15879 as_mkdir_p=false
15882 if test -x / >/dev/null 2>&1; then
15883 as_test_x='test -x'
15884 else
15885 if ls -dL / >/dev/null 2>&1; then
15886 as_ls_L_option=L
15887 else
15888 as_ls_L_option=
15890 as_test_x='
15891 eval sh -c '\''
15892 if test -d "$1"; then
15893 test -d "$1/.";
15894 else
15895 case $1 in #(
15896 -*)set "./$1";;
15897 esac;
15898 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15899 ???[sx]*):;;*)false;;esac;fi
15900 '\'' sh
15903 as_executable_p=$as_test_x
15905 # Sed expression to map a string onto a valid CPP name.
15906 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15908 # Sed expression to map a string onto a valid variable name.
15909 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15912 exec 6>&1
15913 ## ----------------------------------- ##
15914 ## Main body of $CONFIG_STATUS script. ##
15915 ## ----------------------------------- ##
15916 _ASEOF
15917 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15920 # Save the log message, to keep $0 and so on meaningful, and to
15921 # report actual input values of CONFIG_FILES etc. instead of their
15922 # values after options handling.
15923 ac_log="
15924 This file was extended by $as_me, which was
15925 generated by GNU Autoconf 2.65. Invocation command line was
15927 CONFIG_FILES = $CONFIG_FILES
15928 CONFIG_HEADERS = $CONFIG_HEADERS
15929 CONFIG_LINKS = $CONFIG_LINKS
15930 CONFIG_COMMANDS = $CONFIG_COMMANDS
15931 $ $0 $@
15933 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15936 _ACEOF
15938 case $ac_config_files in *"
15939 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15940 esac
15942 case $ac_config_headers in *"
15943 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15944 esac
15947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15948 # Files that config.status was made for.
15949 config_files="$ac_config_files"
15950 config_headers="$ac_config_headers"
15951 config_commands="$ac_config_commands"
15953 _ACEOF
15955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15956 ac_cs_usage="\
15957 \`$as_me' instantiates files and other configuration actions
15958 from templates according to the current configuration. Unless the files
15959 and actions are specified as TAGs, all are instantiated by default.
15961 Usage: $0 [OPTION]... [TAG]...
15963 -h, --help print this help, then exit
15964 -V, --version print version number and configuration settings, then exit
15965 --config print configuration, then exit
15966 -q, --quiet, --silent
15967 do not print progress messages
15968 -d, --debug don't remove temporary files
15969 --recheck update $as_me by reconfiguring in the same conditions
15970 --file=FILE[:TEMPLATE]
15971 instantiate the configuration file FILE
15972 --header=FILE[:TEMPLATE]
15973 instantiate the configuration header FILE
15975 Configuration files:
15976 $config_files
15978 Configuration headers:
15979 $config_headers
15981 Configuration commands:
15982 $config_commands
15984 Report bugs to the package provider."
15986 _ACEOF
15987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15988 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15989 ac_cs_version="\\
15990 config.status
15991 configured by $0, generated by GNU Autoconf 2.65,
15992 with options \\"\$ac_cs_config\\"
15994 Copyright (C) 2009 Free Software Foundation, Inc.
15995 This config.status script is free software; the Free Software Foundation
15996 gives unlimited permission to copy, distribute and modify it."
15998 ac_pwd='$ac_pwd'
15999 srcdir='$srcdir'
16000 INSTALL='$INSTALL'
16001 MKDIR_P='$MKDIR_P'
16002 AWK='$AWK'
16003 test -n "\$AWK" || AWK=awk
16004 _ACEOF
16006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16007 # The default lists apply if the user does not specify any file.
16008 ac_need_defaults=:
16009 while test $# != 0
16011 case $1 in
16012 --*=*)
16013 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16015 ac_shift=:
16018 ac_option=$1
16019 ac_optarg=$2
16020 ac_shift=shift
16022 esac
16024 case $ac_option in
16025 # Handling of the options.
16026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16027 ac_cs_recheck=: ;;
16028 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16029 $as_echo "$ac_cs_version"; exit ;;
16030 --config | --confi | --conf | --con | --co | --c )
16031 $as_echo "$ac_cs_config"; exit ;;
16032 --debug | --debu | --deb | --de | --d | -d )
16033 debug=: ;;
16034 --file | --fil | --fi | --f )
16035 $ac_shift
16036 case $ac_optarg in
16037 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16038 esac
16039 as_fn_append CONFIG_FILES " '$ac_optarg'"
16040 ac_need_defaults=false;;
16041 --header | --heade | --head | --hea )
16042 $ac_shift
16043 case $ac_optarg in
16044 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16045 esac
16046 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16047 ac_need_defaults=false;;
16048 --he | --h)
16049 # Conflict between --help and --header
16050 as_fn_error "ambiguous option: \`$1'
16051 Try \`$0 --help' for more information.";;
16052 --help | --hel | -h )
16053 $as_echo "$ac_cs_usage"; exit ;;
16054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16055 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16056 ac_cs_silent=: ;;
16058 # This is an error.
16059 -*) as_fn_error "unrecognized option: \`$1'
16060 Try \`$0 --help' for more information." ;;
16062 *) as_fn_append ac_config_targets " $1"
16063 ac_need_defaults=false ;;
16065 esac
16066 shift
16067 done
16069 ac_configure_extra_args=
16071 if $ac_cs_silent; then
16072 exec 6>/dev/null
16073 ac_configure_extra_args="$ac_configure_extra_args --silent"
16076 _ACEOF
16077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16078 if \$ac_cs_recheck; then
16079 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16080 shift
16081 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16082 CONFIG_SHELL='$SHELL'
16083 export CONFIG_SHELL
16084 exec "\$@"
16087 _ACEOF
16088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16089 exec 5>>config.log
16091 echo
16092 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16093 ## Running $as_me. ##
16094 _ASBOX
16095 $as_echo "$ac_log"
16096 } >&5
16098 _ACEOF
16099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16101 # INIT-COMMANDS
16103 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16105 _ACEOF
16107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16109 # Handling of arguments.
16110 for ac_config_target in $ac_config_targets
16112 case $ac_config_target in
16113 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16114 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16115 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
16116 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16118 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16119 esac
16120 done
16123 # If the user did not use the arguments to specify the items to instantiate,
16124 # then the envvar interface is used. Set only those that are not.
16125 # We use the long form for the default assignment because of an extremely
16126 # bizarre bug on SunOS 4.1.3.
16127 if $ac_need_defaults; then
16128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16130 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16133 # Have a temporary directory for convenience. Make it in the build tree
16134 # simply because there is no reason against having it here, and in addition,
16135 # creating and moving files from /tmp can sometimes cause problems.
16136 # Hook for its removal unless debugging.
16137 # Note that there is a small window in which the directory will not be cleaned:
16138 # after its creation but before its name has been assigned to `$tmp'.
16139 $debug ||
16141 tmp=
16142 trap 'exit_status=$?
16143 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16145 trap 'as_fn_exit 1' 1 2 13 15
16147 # Create a (secure) tmp directory for tmp files.
16150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16151 test -n "$tmp" && test -d "$tmp"
16152 } ||
16154 tmp=./conf$$-$RANDOM
16155 (umask 077 && mkdir "$tmp")
16156 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16158 # Set up the scripts for CONFIG_FILES section.
16159 # No need to generate them if there are no CONFIG_FILES.
16160 # This happens for instance with `./config.status config.h'.
16161 if test -n "$CONFIG_FILES"; then
16164 ac_cr=`echo X | tr X '\015'`
16165 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16166 # But we know of no other shell where ac_cr would be empty at this
16167 # point, so we can use a bashism as a fallback.
16168 if test "x$ac_cr" = x; then
16169 eval ac_cr=\$\'\\r\'
16171 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16172 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16173 ac_cs_awk_cr='\r'
16174 else
16175 ac_cs_awk_cr=$ac_cr
16178 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16179 _ACEOF
16183 echo "cat >conf$$subs.awk <<_ACEOF" &&
16184 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16185 echo "_ACEOF"
16186 } >conf$$subs.sh ||
16187 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16188 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16189 ac_delim='%!_!# '
16190 for ac_last_try in false false false false false :; do
16191 . ./conf$$subs.sh ||
16192 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16194 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16195 if test $ac_delim_n = $ac_delim_num; then
16196 break
16197 elif $ac_last_try; then
16198 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16199 else
16200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16202 done
16203 rm -f conf$$subs.sh
16205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16206 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16207 _ACEOF
16208 sed -n '
16210 s/^/S["/; s/!.*/"]=/
16213 s/^[^!]*!//
16214 :repl
16215 t repl
16216 s/'"$ac_delim"'$//
16217 t delim
16220 s/\(.\{148\}\)..*/\1/
16221 t more1
16222 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16225 b repl
16226 :more1
16227 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16230 s/.\{148\}//
16231 t nl
16232 :delim
16234 s/\(.\{148\}\)..*/\1/
16235 t more2
16236 s/["\\]/\\&/g; s/^/"/; s/$/"/
16239 :more2
16240 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16243 s/.\{148\}//
16244 t delim
16245 ' <conf$$subs.awk | sed '
16246 /^[^""]/{
16248 s/\n//
16250 ' >>$CONFIG_STATUS || ac_write_fail=1
16251 rm -f conf$$subs.awk
16252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16253 _ACAWK
16254 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16255 for (key in S) S_is_set[key] = 1
16256 FS = "\a"
16260 line = $ 0
16261 nfields = split(line, field, "@")
16262 substed = 0
16263 len = length(field[1])
16264 for (i = 2; i < nfields; i++) {
16265 key = field[i]
16266 keylen = length(key)
16267 if (S_is_set[key]) {
16268 value = S[key]
16269 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16270 len += length(value) + length(field[++i])
16271 substed = 1
16272 } else
16273 len += 1 + keylen
16276 print line
16279 _ACAWK
16280 _ACEOF
16281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16282 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16283 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16284 else
16286 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16287 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16288 _ACEOF
16290 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16291 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16292 # trailing colons and then remove the whole line if VPATH becomes empty
16293 # (actually we leave an empty line to preserve line numbers).
16294 if test "x$srcdir" = x.; then
16295 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16296 s/:*\$(srcdir):*/:/
16297 s/:*\${srcdir}:*/:/
16298 s/:*@srcdir@:*/:/
16299 s/^\([^=]*=[ ]*\):*/\1/
16300 s/:*$//
16301 s/^[^=]*=[ ]*$//
16305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16306 fi # test -n "$CONFIG_FILES"
16308 # Set up the scripts for CONFIG_HEADERS section.
16309 # No need to generate them if there are no CONFIG_HEADERS.
16310 # This happens for instance with `./config.status Makefile'.
16311 if test -n "$CONFIG_HEADERS"; then
16312 cat >"$tmp/defines.awk" <<\_ACAWK ||
16313 BEGIN {
16314 _ACEOF
16316 # Transform confdefs.h into an awk script `defines.awk', embedded as
16317 # here-document in config.status, that substitutes the proper values into
16318 # config.h.in to produce config.h.
16320 # Create a delimiter string that does not exist in confdefs.h, to ease
16321 # handling of long lines.
16322 ac_delim='%!_!# '
16323 for ac_last_try in false false :; do
16324 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16325 if test -z "$ac_t"; then
16326 break
16327 elif $ac_last_try; then
16328 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16329 else
16330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16332 done
16334 # For the awk script, D is an array of macro values keyed by name,
16335 # likewise P contains macro parameters if any. Preserve backslash
16336 # newline sequences.
16338 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16339 sed -n '
16340 s/.\{148\}/&'"$ac_delim"'/g
16341 t rset
16342 :rset
16343 s/^[ ]*#[ ]*define[ ][ ]*/ /
16344 t def
16346 :def
16347 s/\\$//
16348 t bsnl
16349 s/["\\]/\\&/g
16350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16351 D["\1"]=" \3"/p
16352 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16354 :bsnl
16355 s/["\\]/\\&/g
16356 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16357 D["\1"]=" \3\\\\\\n"\\/p
16358 t cont
16359 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16360 t cont
16362 :cont
16364 s/.\{148\}/&'"$ac_delim"'/g
16365 t clear
16366 :clear
16367 s/\\$//
16368 t bsnlc
16369 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16371 :bsnlc
16372 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16373 b cont
16374 ' <confdefs.h | sed '
16375 s/'"$ac_delim"'/"\\\
16376 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16379 for (key in D) D_is_set[key] = 1
16380 FS = "\a"
16382 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16383 line = \$ 0
16384 split(line, arg, " ")
16385 if (arg[1] == "#") {
16386 defundef = arg[2]
16387 mac1 = arg[3]
16388 } else {
16389 defundef = substr(arg[1], 2)
16390 mac1 = arg[2]
16392 split(mac1, mac2, "(") #)
16393 macro = mac2[1]
16394 prefix = substr(line, 1, index(line, defundef) - 1)
16395 if (D_is_set[macro]) {
16396 # Preserve the white space surrounding the "#".
16397 print prefix "define", macro P[macro] D[macro]
16398 next
16399 } else {
16400 # Replace #undef with comments. This is necessary, for example,
16401 # in the case of _POSIX_SOURCE, which is predefined and required
16402 # on some systems where configure will not decide to define it.
16403 if (defundef == "undef") {
16404 print "/*", prefix defundef, macro, "*/"
16405 next
16409 { print }
16410 _ACAWK
16411 _ACEOF
16412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16413 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16414 fi # test -n "$CONFIG_HEADERS"
16417 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16418 shift
16419 for ac_tag
16421 case $ac_tag in
16422 :[FHLC]) ac_mode=$ac_tag; continue;;
16423 esac
16424 case $ac_mode$ac_tag in
16425 :[FHL]*:*);;
16426 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16427 :[FH]-) ac_tag=-:-;;
16428 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16429 esac
16430 ac_save_IFS=$IFS
16431 IFS=:
16432 set x $ac_tag
16433 IFS=$ac_save_IFS
16434 shift
16435 ac_file=$1
16436 shift
16438 case $ac_mode in
16439 :L) ac_source=$1;;
16440 :[FH])
16441 ac_file_inputs=
16442 for ac_f
16444 case $ac_f in
16445 -) ac_f="$tmp/stdin";;
16446 *) # Look for the file first in the build tree, then in the source tree
16447 # (if the path is not absolute). The absolute path cannot be DOS-style,
16448 # because $ac_f cannot contain `:'.
16449 test -f "$ac_f" ||
16450 case $ac_f in
16451 [\\/$]*) false;;
16452 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16453 esac ||
16454 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16455 esac
16456 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16457 as_fn_append ac_file_inputs " '$ac_f'"
16458 done
16460 # Let's still pretend it is `configure' which instantiates (i.e., don't
16461 # use $as_me), people would be surprised to read:
16462 # /* config.h. Generated by config.status. */
16463 configure_input='Generated from '`
16464 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16465 `' by configure.'
16466 if test x"$ac_file" != x-; then
16467 configure_input="$ac_file. $configure_input"
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16469 $as_echo "$as_me: creating $ac_file" >&6;}
16471 # Neutralize special characters interpreted by sed in replacement strings.
16472 case $configure_input in #(
16473 *\&* | *\|* | *\\* )
16474 ac_sed_conf_input=`$as_echo "$configure_input" |
16475 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16476 *) ac_sed_conf_input=$configure_input;;
16477 esac
16479 case $ac_tag in
16480 *:-:* | *:-) cat >"$tmp/stdin" \
16481 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16482 esac
16484 esac
16486 ac_dir=`$as_dirname -- "$ac_file" ||
16487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16488 X"$ac_file" : 'X\(//\)[^/]' \| \
16489 X"$ac_file" : 'X\(//\)$' \| \
16490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16491 $as_echo X"$ac_file" |
16492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16493 s//\1/
16496 /^X\(\/\/\)[^/].*/{
16497 s//\1/
16500 /^X\(\/\/\)$/{
16501 s//\1/
16504 /^X\(\/\).*/{
16505 s//\1/
16508 s/.*/./; q'`
16509 as_dir="$ac_dir"; as_fn_mkdir_p
16510 ac_builddir=.
16512 case "$ac_dir" in
16513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16516 # A ".." for each directory in $ac_dir_suffix.
16517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16518 case $ac_top_builddir_sub in
16519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16521 esac ;;
16522 esac
16523 ac_abs_top_builddir=$ac_pwd
16524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16525 # for backward compatibility:
16526 ac_top_builddir=$ac_top_build_prefix
16528 case $srcdir in
16529 .) # We are building in place.
16530 ac_srcdir=.
16531 ac_top_srcdir=$ac_top_builddir_sub
16532 ac_abs_top_srcdir=$ac_pwd ;;
16533 [\\/]* | ?:[\\/]* ) # Absolute name.
16534 ac_srcdir=$srcdir$ac_dir_suffix;
16535 ac_top_srcdir=$srcdir
16536 ac_abs_top_srcdir=$srcdir ;;
16537 *) # Relative name.
16538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16539 ac_top_srcdir=$ac_top_build_prefix$srcdir
16540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16541 esac
16542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16545 case $ac_mode in
16548 # CONFIG_FILE
16551 case $INSTALL in
16552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16553 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16554 esac
16555 ac_MKDIR_P=$MKDIR_P
16556 case $MKDIR_P in
16557 [\\/$]* | ?:[\\/]* ) ;;
16558 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16559 esac
16560 _ACEOF
16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16563 # If the template does not know about datarootdir, expand it.
16564 # FIXME: This hack should be removed a few years after 2.60.
16565 ac_datarootdir_hack=; ac_datarootdir_seen=
16566 ac_sed_dataroot='
16567 /datarootdir/ {
16571 /@datadir@/p
16572 /@docdir@/p
16573 /@infodir@/p
16574 /@localedir@/p
16575 /@mandir@/p'
16576 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16577 *datarootdir*) ac_datarootdir_seen=yes;;
16578 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16580 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16581 _ACEOF
16582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16583 ac_datarootdir_hack='
16584 s&@datadir@&$datadir&g
16585 s&@docdir@&$docdir&g
16586 s&@infodir@&$infodir&g
16587 s&@localedir@&$localedir&g
16588 s&@mandir@&$mandir&g
16589 s&\\\${datarootdir}&$datarootdir&g' ;;
16590 esac
16591 _ACEOF
16593 # Neutralize VPATH when `$srcdir' = `.'.
16594 # Shell code in configure.ac might set extrasub.
16595 # FIXME: do we really want to maintain this feature?
16596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16597 ac_sed_extra="$ac_vpsub
16598 $extrasub
16599 _ACEOF
16600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16603 s|@configure_input@|$ac_sed_conf_input|;t t
16604 s&@top_builddir@&$ac_top_builddir_sub&;t t
16605 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16606 s&@srcdir@&$ac_srcdir&;t t
16607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16608 s&@top_srcdir@&$ac_top_srcdir&;t t
16609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16610 s&@builddir@&$ac_builddir&;t t
16611 s&@abs_builddir@&$ac_abs_builddir&;t t
16612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16613 s&@INSTALL@&$ac_INSTALL&;t t
16614 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16615 $ac_datarootdir_hack
16617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16618 || as_fn_error "could not create $ac_file" "$LINENO" 5
16620 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16621 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16624 which seems to be undefined. Please make sure it is defined." >&5
16625 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16626 which seems to be undefined. Please make sure it is defined." >&2;}
16628 rm -f "$tmp/stdin"
16629 case $ac_file in
16630 -) cat "$tmp/out" && rm -f "$tmp/out";;
16631 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16632 esac \
16633 || as_fn_error "could not create $ac_file" "$LINENO" 5
16637 # CONFIG_HEADER
16639 if test x"$ac_file" != x-; then
16641 $as_echo "/* $configure_input */" \
16642 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16643 } >"$tmp/config.h" \
16644 || as_fn_error "could not create $ac_file" "$LINENO" 5
16645 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16647 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16648 else
16649 rm -f "$ac_file"
16650 mv "$tmp/config.h" "$ac_file" \
16651 || as_fn_error "could not create $ac_file" "$LINENO" 5
16653 else
16654 $as_echo "/* $configure_input */" \
16655 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16656 || as_fn_error "could not create -" "$LINENO" 5
16658 # Compute "$ac_file"'s index in $config_headers.
16659 _am_arg="$ac_file"
16660 _am_stamp_count=1
16661 for _am_header in $config_headers :; do
16662 case $_am_header in
16663 $_am_arg | $_am_arg:* )
16664 break ;;
16666 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16667 esac
16668 done
16669 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16670 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16671 X"$_am_arg" : 'X\(//\)[^/]' \| \
16672 X"$_am_arg" : 'X\(//\)$' \| \
16673 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16674 $as_echo X"$_am_arg" |
16675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16676 s//\1/
16679 /^X\(\/\/\)[^/].*/{
16680 s//\1/
16683 /^X\(\/\/\)$/{
16684 s//\1/
16687 /^X\(\/\).*/{
16688 s//\1/
16691 s/.*/./; q'`/stamp-h$_am_stamp_count
16694 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16695 $as_echo "$as_me: executing $ac_file commands" >&6;}
16697 esac
16700 case $ac_file$ac_mode in
16701 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16702 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16703 # are listed without --file. Let's play safe and only enable the eval
16704 # if we detect the quoting.
16705 case $CONFIG_FILES in
16706 *\'*) eval set x "$CONFIG_FILES" ;;
16707 *) set x $CONFIG_FILES ;;
16708 esac
16709 shift
16710 for mf
16712 # Strip MF so we end up with the name of the file.
16713 mf=`echo "$mf" | sed -e 's/:.*$//'`
16714 # Check whether this is an Automake generated Makefile or not.
16715 # We used to match only the files named `Makefile.in', but
16716 # some people rename them; so instead we look at the file content.
16717 # Grep'ing the first line is not enough: some people post-process
16718 # each Makefile.in and add a new line on top of each file to say so.
16719 # Grep'ing the whole file is not good either: AIX grep has a line
16720 # limit of 2048, but all sed's we know have understand at least 4000.
16721 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16722 dirpart=`$as_dirname -- "$mf" ||
16723 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16724 X"$mf" : 'X\(//\)[^/]' \| \
16725 X"$mf" : 'X\(//\)$' \| \
16726 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16727 $as_echo X"$mf" |
16728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16729 s//\1/
16732 /^X\(\/\/\)[^/].*/{
16733 s//\1/
16736 /^X\(\/\/\)$/{
16737 s//\1/
16740 /^X\(\/\).*/{
16741 s//\1/
16744 s/.*/./; q'`
16745 else
16746 continue
16748 # Extract the definition of DEPDIR, am__include, and am__quote
16749 # from the Makefile without running `make'.
16750 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16751 test -z "$DEPDIR" && continue
16752 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16753 test -z "am__include" && continue
16754 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16755 # When using ansi2knr, U may be empty or an underscore; expand it
16756 U=`sed -n 's/^U = //p' < "$mf"`
16757 # Find all dependency output files, they are included files with
16758 # $(DEPDIR) in their names. We invoke sed twice because it is the
16759 # simplest approach to changing $(DEPDIR) to its actual value in the
16760 # expansion.
16761 for file in `sed -n "
16762 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16763 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16764 # Make sure the directory exists.
16765 test -f "$dirpart/$file" && continue
16766 fdir=`$as_dirname -- "$file" ||
16767 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16768 X"$file" : 'X\(//\)[^/]' \| \
16769 X"$file" : 'X\(//\)$' \| \
16770 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16771 $as_echo X"$file" |
16772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16773 s//\1/
16776 /^X\(\/\/\)[^/].*/{
16777 s//\1/
16780 /^X\(\/\/\)$/{
16781 s//\1/
16784 /^X\(\/\).*/{
16785 s//\1/
16788 s/.*/./; q'`
16789 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16790 # echo "creating $dirpart/$file"
16791 echo '# dummy' > "$dirpart/$file"
16792 done
16793 done
16797 esac
16798 done # for ac_tag
16801 as_fn_exit 0
16802 _ACEOF
16803 ac_clean_files=$ac_clean_files_save
16805 test $ac_write_fail = 0 ||
16806 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16809 # configure is writing to config.log, and then calls config.status.
16810 # config.status does its own redirection, appending to config.log.
16811 # Unfortunately, on DOS this fails, as config.log is still kept open
16812 # by configure, so config.status won't be able to write to it; its
16813 # output is simply discarded. So we exec the FD to /dev/null,
16814 # effectively closing config.log, so it can be properly (re)opened and
16815 # appended to by config.status. When coming back to configure, we
16816 # need to make the FD available again.
16817 if test "$no_create" != yes; then
16818 ac_cs_success=:
16819 ac_config_status_args=
16820 test "$silent" = yes &&
16821 ac_config_status_args="$ac_config_status_args --quiet"
16822 exec 5>/dev/null
16823 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16824 exec 5>>config.log
16825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16826 # would make configure fail if this is the last instruction.
16827 $ac_cs_success || as_fn_exit $?
16829 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16831 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}