Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for ncap 1.9.2.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
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
102
103 ;;
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
109 fi
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
113 fi
114
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='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
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 *) :
149 ;;
150 esac
151 fi
152 "
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; }
158
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 :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
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
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
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
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
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
200 fi
201 fi
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
211
212
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+"$@"}
222 fi
223
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 [email protected] and [email protected]
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
235 $0: have one."
236 fi
237 exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255 { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264 return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335 else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352 else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
436 N
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
462 *)
463 ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
486 fi
487 else
488 as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
533
534 case X$lt_ECHO in
535 X*--fallback-echo)
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 ;;
539 esac
540
541 ECHO=${lt_ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
544 shift
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
547 :
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
550 :
551 else
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
554 fi
555
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
558 shift
559 cat <<_LT_EOF
560 $*
561 _LT_EOF
562 exit 0
563 fi
564
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576 then
577 break
578 fi
579 done
580 fi
581
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
585 :
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'
590 #
591 # So, first we look for a working echo in the user's PATH.
592
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
602 fi
603 done
604 IFS="$lt_save_ifs"
605
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
628 :
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=:
646
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
651 fi
652 prev="$cmd"
653 done
654
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
662 fi
663 fi
664 fi
665 fi
666 fi
667 fi
668
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 lt_ECHO=$ECHO
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674 fi
675
676
677
678
679 exec 7<&0 </dev/null 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='ncap'
700 PACKAGE_TARNAME='ncap'
701 PACKAGE_VERSION='1.9.2'
702 PACKAGE_STRING='ncap 1.9.2'
703 PACKAGE_BUGREPORT='[email protected]'
704 PACKAGE_URL=''
705
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 # include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 # include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
741
742 ac_subst_vars='am__EXEEXT_FALSE
743 am__EXEEXT_TRUE
744 LTLIBOBJS
745 libbind_libs
746 libbind_ldflags
747 libbind_cflags
748 libpcap_libs
749 libpcap_ldflags
750 libpcap_cflags
751 PTHREAD_CFLAGS
752 PTHREAD_LIBS
753 PTHREAD_CC
754 acx_pthread_config
755 EXTRA_CFLAGS
756 LIBOBJS
757 ALLOCA
758 CPP
759 OTOOL64
760 OTOOL
761 LIPO
762 NMEDIT
763 DSYMUTIL
764 lt_ECHO
765 RANLIB
766 AR
767 OBJDUMP
768 LN_S
769 NM
770 ac_ct_DUMPBIN
771 DUMPBIN
772 LD
773 FGREP
774 EGREP
775 GREP
776 SED
777 LIBTOOL
778 am__fastdepCC_FALSE
779 am__fastdepCC_TRUE
780 CCDEPMODE
781 AMDEPBACKSLASH
782 AMDEP_FALSE
783 AMDEP_TRUE
784 am__quote
785 am__include
786 DEPDIR
787 OBJEXT
788 EXEEXT
789 ac_ct_CC
790 CPPFLAGS
791 LDFLAGS
792 CFLAGS
793 CC
794 AM_BACKSLASH
795 AM_DEFAULT_VERBOSITY
796 am__untar
797 am__tar
798 AMTAR
799 am__leading_dot
800 SET_MAKE
801 AWK
802 mkdir_p
803 MKDIR_P
804 INSTALL_STRIP_PROGRAM
805 STRIP
806 install_sh
807 MAKEINFO
808 AUTOHEADER
809 AUTOMAKE
810 AUTOCONF
811 ACLOCAL
812 VERSION
813 PACKAGE
814 CYGPATH_W
815 am__isrc
816 INSTALL_DATA
817 INSTALL_SCRIPT
818 INSTALL_PROGRAM
819 target_os
820 target_vendor
821 target_cpu
822 target
823 host_os
824 host_vendor
825 host_cpu
826 host
827 build_os
828 build_vendor
829 build_cpu
830 build
831 target_alias
832 host_alias
833 build_alias
834 LIBS
835 ECHO_T
836 ECHO_N
837 ECHO_C
838 DEFS
839 mandir
840 localedir
841 libdir
842 psdir
843 pdfdir
844 dvidir
845 htmldir
846 infodir
847 docdir
848 oldincludedir
849 includedir
850 localstatedir
851 sharedstatedir
852 sysconfdir
853 datadir
854 datarootdir
855 libexecdir
856 sbindir
857 bindir
858 program_transform_name
859 prefix
860 exec_prefix
861 PACKAGE_URL
862 PACKAGE_BUGREPORT
863 PACKAGE_STRING
864 PACKAGE_VERSION
865 PACKAGE_TARNAME
866 PACKAGE_NAME
867 PATH_SEPARATOR
868 SHELL'
869 ac_subst_files=''
870 ac_user_opts='
871 enable_option_checking
872 enable_silent_rules
873 enable_dependency_tracking
874 enable_shared
875 enable_static
876 with_pic
877 enable_fast_install
878 with_gnu_ld
879 enable_libtool_lock
880 with_libpcap
881 with_libbind
882 '
883 ac_precious_vars='build_alias
884 host_alias
885 target_alias
886 CC
887 CFLAGS
888 LDFLAGS
889 LIBS
890 CPPFLAGS
891 CPP'
892
893
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 ac_unrecognized_opts=
898 ac_unrecognized_sep=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
915
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
951 fi
952
953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
968
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
983
984 -datadir | --datadir | --datadi | --datad)
985 ac_prev=datadir ;;
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
987 datadir=$ac_optarg ;;
988
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
996 -disable-* | --disable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=no ;;
1011
1012 -docdir | --docdir | --docdi | --doc | --do)
1013 ac_prev=docdir ;;
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015 docdir=$ac_optarg ;;
1016
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 ac_prev=dvidir ;;
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020 dvidir=$ac_optarg ;;
1021
1022 -enable-* | --enable-*)
1023 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026 as_fn_error "invalid feature name: $ac_useropt"
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1030 *"
1031 "enable_$ac_useropt"
1032 "*) ;;
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1035 esac
1036 eval enable_$ac_useropt=\$ac_optarg ;;
1037
1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040 | --exec | --exe | --ex)
1041 ac_prev=exec_prefix ;;
1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044 | --exec=* | --exe=* | --ex=*)
1045 exec_prefix=$ac_optarg ;;
1046
1047 -gas | --gas | --ga | --g)
1048 # Obsolete; use --with-gas.
1049 with_gas=yes ;;
1050
1051 -help | --help | --hel | --he | -h)
1052 ac_init_help=long ;;
1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054 ac_init_help=recursive ;;
1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056 ac_init_help=short ;;
1057
1058 -host | --host | --hos | --ho)
1059 ac_prev=host_alias ;;
1060 -host=* | --host=* | --hos=* | --ho=*)
1061 host_alias=$ac_optarg ;;
1062
1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064 ac_prev=htmldir ;;
1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066 | --ht=*)
1067 htmldir=$ac_optarg ;;
1068
1069 -includedir | --includedir | --includedi | --included | --include \
1070 | --includ | --inclu | --incl | --inc)
1071 ac_prev=includedir ;;
1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073 | --includ=* | --inclu=* | --incl=* | --inc=*)
1074 includedir=$ac_optarg ;;
1075
1076 -infodir | --infodir | --infodi | --infod | --info | --inf)
1077 ac_prev=infodir ;;
1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079 infodir=$ac_optarg ;;
1080
1081 -libdir | --libdir | --libdi | --libd)
1082 ac_prev=libdir ;;
1083 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084 libdir=$ac_optarg ;;
1085
1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087 | --libexe | --libex | --libe)
1088 ac_prev=libexecdir ;;
1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090 | --libexe=* | --libex=* | --libe=*)
1091 libexecdir=$ac_optarg ;;
1092
1093 -localedir | --localedir | --localedi | --localed | --locale)
1094 ac_prev=localedir ;;
1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096 localedir=$ac_optarg ;;
1097
1098 -localstatedir | --localstatedir | --localstatedi | --localstated \
1099 | --localstate | --localstat | --localsta | --localst | --locals)
1100 ac_prev=localstatedir ;;
1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103 localstatedir=$ac_optarg ;;
1104
1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106 ac_prev=mandir ;;
1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108 mandir=$ac_optarg ;;
1109
1110 -nfp | --nfp | --nf)
1111 # Obsolete; use --without-fp.
1112 with_fp=no ;;
1113
1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115 | --no-cr | --no-c | -n)
1116 no_create=yes ;;
1117
1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120 no_recursion=yes ;;
1121
1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124 | --oldin | --oldi | --old | --ol | --o)
1125 ac_prev=oldincludedir ;;
1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129 oldincludedir=$ac_optarg ;;
1130
1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132 ac_prev=prefix ;;
1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134 prefix=$ac_optarg ;;
1135
1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137 | --program-pre | --program-pr | --program-p)
1138 ac_prev=program_prefix ;;
1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141 program_prefix=$ac_optarg ;;
1142
1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144 | --program-suf | --program-su | --program-s)
1145 ac_prev=program_suffix ;;
1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148 program_suffix=$ac_optarg ;;
1149
1150 -program-transform-name | --program-transform-name \
1151 | --program-transform-nam | --program-transform-na \
1152 | --program-transform-n | --program-transform- \
1153 | --program-transform | --program-transfor \
1154 | --program-transfo | --program-transf \
1155 | --program-trans | --program-tran \
1156 | --progr-tra | --program-tr | --program-t)
1157 ac_prev=program_transform_name ;;
1158 -program-transform-name=* | --program-transform-name=* \
1159 | --program-transform-nam=* | --program-transform-na=* \
1160 | --program-transform-n=* | --program-transform-=* \
1161 | --program-transform=* | --program-transfor=* \
1162 | --program-transfo=* | --program-transf=* \
1163 | --program-trans=* | --program-tran=* \
1164 | --progr-tra=* | --program-tr=* | --program-t=*)
1165 program_transform_name=$ac_optarg ;;
1166
1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168 ac_prev=pdfdir ;;
1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170 pdfdir=$ac_optarg ;;
1171
1172 -psdir | --psdir | --psdi | --psd | --ps)
1173 ac_prev=psdir ;;
1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175 psdir=$ac_optarg ;;
1176
1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178 | -silent | --silent | --silen | --sile | --sil)
1179 silent=yes ;;
1180
1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182 ac_prev=sbindir ;;
1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184 | --sbi=* | --sb=*)
1185 sbindir=$ac_optarg ;;
1186
1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189 | --sharedst | --shareds | --shared | --share | --shar \
1190 | --sha | --sh)
1191 ac_prev=sharedstatedir ;;
1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195 | --sha=* | --sh=*)
1196 sharedstatedir=$ac_optarg ;;
1197
1198 -site | --site | --sit)
1199 ac_prev=site ;;
1200 -site=* | --site=* | --sit=*)
1201 site=$ac_optarg ;;
1202
1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204 ac_prev=srcdir ;;
1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206 srcdir=$ac_optarg ;;
1207
1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209 | --syscon | --sysco | --sysc | --sys | --sy)
1210 ac_prev=sysconfdir ;;
1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213 sysconfdir=$ac_optarg ;;
1214
1215 -target | --target | --targe | --targ | --tar | --ta | --t)
1216 ac_prev=target_alias ;;
1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218 target_alias=$ac_optarg ;;
1219
1220 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221 verbose=yes ;;
1222
1223 -version | --version | --versio | --versi | --vers | -V)
1224 ac_init_version=: ;;
1225
1226 -with-* | --with-*)
1227 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error "invalid package name: $ac_useropt"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1234 *"
1235 "with_$ac_useropt"
1236 "*) ;;
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1239 esac
1240 eval with_$ac_useropt=\$ac_optarg ;;
1241
1242 -without-* | --without-*)
1243 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error "invalid package name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251 "with_$ac_useropt"
1252 "*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=no ;;
1257
1258 --x)
1259 # Obsolete; use --with-x.
1260 with_x=yes ;;
1261
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267 x_includes=$ac_optarg ;;
1268
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274 x_libraries=$ac_optarg ;;
1275
1276 -*) as_fn_error "unrecognized option: \`$ac_option'
1277 Try \`$0 --help' for more information."
1278 ;;
1279
1280 *=*)
1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282 # Reject names that are not valid shell variable names.
1283 case $ac_envvar in #(
1284 '' | [0-9]* | *[!_$as_cr_alnum]* )
1285 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1286 esac
1287 eval $ac_envvar=\$ac_optarg
1288 export $ac_envvar ;;
1289
1290 *)
1291 # FIXME: should be removed in autoconf 3.0.
1292 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296 ;;
1297
1298 esac
1299 done
1300
1301 if test -n "$ac_prev"; then
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303 as_fn_error "missing argument to $ac_option"
1304 fi
1305
1306 if test -n "$ac_unrecognized_opts"; then
1307 case $enable_option_checking in
1308 no) ;;
1309 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1310 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311 esac
1312 fi
1313
1314 # Check all directory arguments for consistency.
1315 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318 libdir localedir mandir
1319 do
1320 eval ac_val=\$$ac_var
1321 # Remove trailing slashes.
1322 case $ac_val in
1323 */ )
1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325 eval $ac_var=\$ac_val;;
1326 esac
1327 # Be sure to have absolute directory names.
1328 case $ac_val in
1329 [\\/$]* | ?:[\\/]* ) continue;;
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331 esac
1332 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1333 done
1334
1335 # There might be people who depend on the old broken behavior: `$host'
1336 # used to hold the argument of --host etc.
1337 # FIXME: To remove some day.
1338 build=$build_alias
1339 host=$host_alias
1340 target=$target_alias
1341
1342 # FIXME: To remove some day.
1343 if test "x$host_alias" != x; then
1344 if test "x$build_alias" = x; then
1345 cross_compiling=maybe
1346 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1347 If a cross compiler is detected then cross compile mode will be used." >&2
1348 elif test "x$build_alias" != "x$host_alias"; then
1349 cross_compiling=yes
1350 fi
1351 fi
1352
1353 ac_tool_prefix=
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356 test "$silent" = yes && exec 6>/dev/null
1357
1358
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362 as_fn_error "working directory cannot be determined"
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 as_fn_error "pwd does not report name of working directory"
1365
1366
1367 # Find the source files, if location was not specified.
1368 if test -z "$srcdir"; then
1369 ac_srcdir_defaulted=yes
1370 # Try the directory containing this script, then the parent directory.
1371 ac_confdir=`$as_dirname -- "$as_myself" ||
1372 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$as_myself" : 'X\(//\)[^/]' \| \
1374 X"$as_myself" : 'X\(//\)$' \| \
1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376 $as_echo X"$as_myself" |
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\/\)[^/].*/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\).*/{
1390 s//\1/
1391 q
1392 }
1393 s/.*/./; q'`
1394 srcdir=$ac_confdir
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 srcdir=..
1397 fi
1398 else
1399 ac_srcdir_defaulted=no
1400 fi
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1403 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1404 fi
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 ac_abs_confdir=`(
1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1408 pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 srcdir=.
1412 fi
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 done
1425
1426 #
1427 # Report the --help message.
1428 #
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1432 cat <<_ACEOF
1433 \`configure' configures ncap 1.9.2 to adapt to many kinds of systems.
1434
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1439
1440 Defaults for the options are specified in brackets.
1441
1442 Configuration:
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457 [PREFIX]
1458
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1463
1464 For better control, use the options below.
1465
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/ncap]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1486 _ACEOF
1487
1488 cat <<\_ACEOF
1489
1490 Program names:
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1494
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 --target=TARGET configure for building compilers for TARGET [HOST]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive ) echo "Configuration of ncap 1.9.2:";;
1505 esac
1506 cat <<\_ACEOF
1507
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-silent-rules less verbose build output (undo: `make V=1')
1513 --disable-silent-rules verbose build output (undo: `make V=0')
1514 --disable-dependency-tracking speeds up one-time build
1515 --enable-dependency-tracking do not reject slow dependency extractors
1516 --enable-shared[=PKGS] build shared libraries [default=yes]
1517 --enable-static[=PKGS] build static libraries [default=yes]
1518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-libtool-lock avoid locking (might break parallel builds)
1521
1522 Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-pic try to use only PIC/non-PIC objects [default=use
1526 both]
1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 --with-libpcap=DIR libpcap installation path
1529 --with-libbind=DIR libbind installation path
1530
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 CPP C preprocessor
1540
1541 Use these variables to override the choices made by `configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1543
1544 Report bugs to <[email protected]>.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
1555 ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606 cat <<\_ACEOF
1607 ncap configure 1.9.2
1608 generated by GNU Autoconf 2.64
1609
1610 Copyright (C) 2009 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614 exit
1615 fi
1616
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1620
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653 fi
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 return $ac_retval
1656
1657 } # ac_fn_c_try_compile
1658
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_link ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 $as_test_x conftest$ac_exeext
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694 fi
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 return $ac_retval
1702
1703 } # ac_fn_c_try_link
1704
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 $4
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 eval "$3=yes"
1724 else
1725 eval "$3=no"
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 fi
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733
1734 } # ac_fn_c_check_header_compile
1735
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_cpp ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } >/dev/null && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767 fi
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1770
1771 } # ac_fn_c_try_cpp
1772
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1777 ac_fn_c_try_run ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=$ac_status
1808 fi
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 return $ac_retval
1812
1813 } # ac_fn_c_try_run
1814
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1831
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1836
1837 #ifdef __STDC__
1838 # include <limits.h>
1839 #else
1840 # include <assert.h>
1841 #endif
1842
1843 #undef $2
1844
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1848 #ifdef __cplusplus
1849 extern "C"
1850 #endif
1851 char $2 ();
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1856 choke me
1857 #endif
1858
1859 int
1860 main ()
1861 {
1862 return $2 ();
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_link "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext \
1873 conftest$ac_exeext conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880 } # ac_fn_c_check_func
1881
1882 # ac_fn_c_find_intX_t LINENO BITS VAR
1883 # -----------------------------------
1884 # Finds a signed integer type with width BITS, setting cache variable VAR
1885 # accordingly.
1886 ac_fn_c_find_intX_t ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1890 $as_echo_n "checking for int$2_t... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 eval "$3=no"
1895 for ac_type in int$2_t 'int' 'long int' \
1896 'long long int' 'short int' 'signed char'; do
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $ac_includes_default
1900 int
1901 main ()
1902 {
1903 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
1904 test_array [0] = 0
1905
1906 ;
1907 return 0;
1908 }
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $ac_includes_default
1914 int
1915 main ()
1916 {
1917 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
1918 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
1919 test_array [0] = 0
1920
1921 ;
1922 return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926
1927 else
1928 case $ac_type in #(
1929 int$2_t) :
1930 eval "$3=yes" ;; #(
1931 *) :
1932 eval "$3=\$ac_type" ;;
1933 esac
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 eval as_val=\$$3
1939 if test "x$as_val" = x""no; then :
1940
1941 else
1942 break
1943 fi
1944 done
1945 fi
1946 eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950
1951 } # ac_fn_c_find_intX_t
1952
1953 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1954 # -------------------------------------------
1955 # Tests whether TYPE exists after having included INCLUDES, setting cache
1956 # variable VAR accordingly.
1957 ac_fn_c_check_type ()
1958 {
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 eval "$3=no"
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 $4
1969 int
1970 main ()
1971 {
1972 if (sizeof ($2))
1973 return 0;
1974 ;
1975 return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 $4
1982 int
1983 main ()
1984 {
1985 if (sizeof (($2)))
1986 return 0;
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992
1993 else
1994 eval "$3=yes"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004
2005 } # ac_fn_c_check_type
2006
2007 # ac_fn_c_find_uintX_t LINENO BITS VAR
2008 # ------------------------------------
2009 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2010 # accordingly.
2011 ac_fn_c_find_uintX_t ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2015 $as_echo_n "checking for uint$2_t... " >&6; }
2016 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=no"
2020 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2021 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $ac_includes_default
2025 int
2026 main ()
2027 {
2028 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2029 test_array [0] = 0
2030
2031 ;
2032 return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 case $ac_type in #(
2037 uint$2_t) :
2038 eval "$3=yes" ;; #(
2039 *) :
2040 eval "$3=\$ac_type" ;;
2041 esac
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 eval as_val=\$$3
2045 if test "x$as_val" = x""no; then :
2046
2047 else
2048 break
2049 fi
2050 done
2051 fi
2052 eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056
2057 } # ac_fn_c_find_uintX_t
2058
2059 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2060 # -------------------------------------------------------
2061 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2062 # the include files in INCLUDES and setting the cache variable VAR
2063 # accordingly.
2064 ac_fn_c_check_header_mongrel ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071 $as_echo_n "(cached) " >&6
2072 fi
2073 eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 else
2077 # Is the header compilable?
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2079 $as_echo_n "checking $2 usability... " >&6; }
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2082 $4
2083 #include <$2>
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_header_compiler=yes
2087 else
2088 ac_header_compiler=no
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2092 $as_echo "$ac_header_compiler" >&6; }
2093
2094 # Is the header present?
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2096 $as_echo_n "checking $2 presence... " >&6; }
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 #include <$2>
2100 _ACEOF
2101 if ac_fn_c_try_cpp "$LINENO"; then :
2102 ac_header_preproc=yes
2103 else
2104 ac_header_preproc=no
2105 fi
2106 rm -f conftest.err conftest.$ac_ext
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2108 $as_echo "$ac_header_preproc" >&6; }
2109
2110 # So? What about this header?
2111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2112 yes:no: )
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2114 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2116 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2117 ;;
2118 no:yes:* )
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2120 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2122 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2124 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2126 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2128 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2129 ( cat <<\_ASBOX
2130 ## ------------------------------- ##
2131 ## Report this to [email protected] ##
2132 ## ------------------------------- ##
2133 _ASBOX
2134 ) | sed "s/^/$as_me: WARNING: /" >&2
2135 ;;
2136 esac
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2140 $as_echo_n "(cached) " >&6
2141 else
2142 eval "$3=\$ac_header_compiler"
2143 fi
2144 eval ac_res=\$$3
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 fi
2148 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149
2150 } # ac_fn_c_check_header_mongrel
2151
2152 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2153 # ----------------------------------------------------
2154 # Tries to find if the field MEMBER exists in type AGGR, after including
2155 # INCLUDES, setting cache variable VAR accordingly.
2156 ac_fn_c_check_member ()
2157 {
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2160 $as_echo_n "checking for $2.$3... " >&6; }
2161 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 $5
2167 int
2168 main ()
2169 {
2170 static $2 ac_aggr;
2171 if (ac_aggr.$3)
2172 return 0;
2173 ;
2174 return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 eval "$4=yes"
2179 else
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2182 $5
2183 int
2184 main ()
2185 {
2186 static $2 ac_aggr;
2187 if (sizeof ac_aggr.$3)
2188 return 0;
2189 ;
2190 return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 eval "$4=yes"
2195 else
2196 eval "$4=no"
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 fi
2202 eval ac_res=\$$4
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2206
2207 } # ac_fn_c_check_member
2208 cat >config.log <<_ACEOF
2209 This file contains any messages produced by compilers while
2210 running configure, to aid debugging if configure makes a mistake.
2211
2212 It was created by ncap $as_me 1.9.2, which was
2213 generated by GNU Autoconf 2.64. Invocation command line was
2214
2215 $ $0 $@
2216
2217 _ACEOF
2218 exec 5>>config.log
2219 {
2220 cat <<_ASUNAME
2221 ## --------- ##
2222 ## Platform. ##
2223 ## --------- ##
2224
2225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2230
2231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2232 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2233
2234 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2235 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2237 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2238 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2239 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2240 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2241
2242 _ASUNAME
2243
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 $as_echo "PATH: $as_dir"
2250 done
2251 IFS=$as_save_IFS
2252
2253 } >&5
2254
2255 cat >&5 <<_ACEOF
2256
2257
2258 ## ----------- ##
2259 ## Core tests. ##
2260 ## ----------- ##
2261
2262 _ACEOF
2263
2264
2265 # Keep a trace of the command line.
2266 # Strip out --no-create and --no-recursion so they do not pile up.
2267 # Strip out --silent because we don't want to record it for future runs.
2268 # Also quote any args containing shell meta-characters.
2269 # Make two passes to allow for proper duplicate-argument suppression.
2270 ac_configure_args=
2271 ac_configure_args0=
2272 ac_configure_args1=
2273 ac_must_keep_next=false
2274 for ac_pass in 1 2
2275 do
2276 for ac_arg
2277 do
2278 case $ac_arg in
2279 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2281 | -silent | --silent | --silen | --sile | --sil)
2282 continue ;;
2283 *\'*)
2284 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2285 esac
2286 case $ac_pass in
2287 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2288 2)
2289 as_fn_append ac_configure_args1 " '$ac_arg'"
2290 if test $ac_must_keep_next = true; then
2291 ac_must_keep_next=false # Got value, back to normal.
2292 else
2293 case $ac_arg in
2294 *=* | --config-cache | -C | -disable-* | --disable-* \
2295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2297 | -with-* | --with-* | -without-* | --without-* | --x)
2298 case "$ac_configure_args0 " in
2299 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2300 esac
2301 ;;
2302 -* ) ac_must_keep_next=true ;;
2303 esac
2304 fi
2305 as_fn_append ac_configure_args " '$ac_arg'"
2306 ;;
2307 esac
2308 done
2309 done
2310 { ac_configure_args0=; unset ac_configure_args0;}
2311 { ac_configure_args1=; unset ac_configure_args1;}
2312
2313 # When interrupted or exit'd, cleanup temporary files, and complete
2314 # config.log. We remove comments because anyway the quotes in there
2315 # would cause problems or look ugly.
2316 # WARNING: Use '\'' to represent an apostrophe within the trap.
2317 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2318 trap 'exit_status=$?
2319 # Save into config.log some information that might help in debugging.
2320 {
2321 echo
2322
2323 cat <<\_ASBOX
2324 ## ---------------- ##
2325 ## Cache variables. ##
2326 ## ---------------- ##
2327 _ASBOX
2328 echo
2329 # The following way of writing the cache mishandles newlines in values,
2330 (
2331 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2332 eval ac_val=\$$ac_var
2333 case $ac_val in #(
2334 *${as_nl}*)
2335 case $ac_var in #(
2336 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2337 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2338 esac
2339 case $ac_var in #(
2340 _ | IFS | as_nl) ;; #(
2341 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2342 *) { eval $ac_var=; unset $ac_var;} ;;
2343 esac ;;
2344 esac
2345 done
2346 (set) 2>&1 |
2347 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2348 *${as_nl}ac_space=\ *)
2349 sed -n \
2350 "s/'\''/'\''\\\\'\'''\''/g;
2351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2352 ;; #(
2353 *)
2354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2355 ;;
2356 esac |
2357 sort
2358 )
2359 echo
2360
2361 cat <<\_ASBOX
2362 ## ----------------- ##
2363 ## Output variables. ##
2364 ## ----------------- ##
2365 _ASBOX
2366 echo
2367 for ac_var in $ac_subst_vars
2368 do
2369 eval ac_val=\$$ac_var
2370 case $ac_val in
2371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2372 esac
2373 $as_echo "$ac_var='\''$ac_val'\''"
2374 done | sort
2375 echo
2376
2377 if test -n "$ac_subst_files"; then
2378 cat <<\_ASBOX
2379 ## ------------------- ##
2380 ## File substitutions. ##
2381 ## ------------------- ##
2382 _ASBOX
2383 echo
2384 for ac_var in $ac_subst_files
2385 do
2386 eval ac_val=\$$ac_var
2387 case $ac_val in
2388 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2389 esac
2390 $as_echo "$ac_var='\''$ac_val'\''"
2391 done | sort
2392 echo
2393 fi
2394
2395 if test -s confdefs.h; then
2396 cat <<\_ASBOX
2397 ## ----------- ##
2398 ## confdefs.h. ##
2399 ## ----------- ##
2400 _ASBOX
2401 echo
2402 cat confdefs.h
2403 echo
2404 fi
2405 test "$ac_signal" != 0 &&
2406 $as_echo "$as_me: caught signal $ac_signal"
2407 $as_echo "$as_me: exit $exit_status"
2408 } >&5
2409 rm -f core *.core core.conftest.* &&
2410 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2411 exit $exit_status
2412 ' 0
2413 for ac_signal in 1 2 13 15; do
2414 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2415 done
2416 ac_signal=0
2417
2418 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2419 rm -f -r conftest* confdefs.h
2420
2421 $as_echo "/* confdefs.h */" > confdefs.h
2422
2423 # Predefined preprocessor variables.
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_NAME "$PACKAGE_NAME"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2435 _ACEOF
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_STRING "$PACKAGE_STRING"
2439 _ACEOF
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2443 _ACEOF
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_URL "$PACKAGE_URL"
2447 _ACEOF
2448
2449
2450 # Let the site file select an alternate cache file if it wants to.
2451 # Prefer an explicitly selected file to automatically selected ones.
2452 ac_site_file1=NONE
2453 ac_site_file2=NONE
2454 if test -n "$CONFIG_SITE"; then
2455 ac_site_file1=$CONFIG_SITE
2456 elif test "x$prefix" != xNONE; then
2457 ac_site_file1=$prefix/share/config.site
2458 ac_site_file2=$prefix/etc/config.site
2459 else
2460 ac_site_file1=$ac_default_prefix/share/config.site
2461 ac_site_file2=$ac_default_prefix/etc/config.site
2462 fi
2463 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2464 do
2465 test "x$ac_site_file" = xNONE && continue
2466 if test -r "$ac_site_file"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2468 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2469 sed 's/^/| /' "$ac_site_file" >&5
2470 . "$ac_site_file"
2471 fi
2472 done
2473
2474 if test -r "$cache_file"; then
2475 # Some versions of bash will fail to source /dev/null (special
2476 # files actually), so we avoid doing that.
2477 if test -f "$cache_file"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2479 $as_echo "$as_me: loading cache $cache_file" >&6;}
2480 case $cache_file in
2481 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2482 *) . "./$cache_file";;
2483 esac
2484 fi
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2487 $as_echo "$as_me: creating cache $cache_file" >&6;}
2488 >$cache_file
2489 fi
2490
2491 # Check that the precious variables saved in the cache have kept the same
2492 # value.
2493 ac_cache_corrupted=false
2494 for ac_var in $ac_precious_vars; do
2495 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2496 eval ac_new_set=\$ac_env_${ac_var}_set
2497 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2498 eval ac_new_val=\$ac_env_${ac_var}_value
2499 case $ac_old_set,$ac_new_set in
2500 set,)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2503 ac_cache_corrupted=: ;;
2504 ,set)
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2506 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2507 ac_cache_corrupted=: ;;
2508 ,);;
2509 *)
2510 if test "x$ac_old_val" != "x$ac_new_val"; then
2511 # differences in whitespace do not lead to failure.
2512 ac_old_val_w=`echo x $ac_old_val`
2513 ac_new_val_w=`echo x $ac_new_val`
2514 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2516 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2517 ac_cache_corrupted=:
2518 else
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2520 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2521 eval $ac_var=\$ac_old_val
2522 fi
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2524 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2526 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2527 fi;;
2528 esac
2529 # Pass precious variables to config.status.
2530 if test "$ac_new_set" = set; then
2531 case $ac_new_val in
2532 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2533 *) ac_arg=$ac_var=$ac_new_val ;;
2534 esac
2535 case " $ac_configure_args " in
2536 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2537 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2538 esac
2539 fi
2540 done
2541 if $ac_cache_corrupted; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2545 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2546 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2547 fi
2548 ## -------------------- ##
2549 ## Main body of script. ##
2550 ## -------------------- ##
2551
2552 ac_ext=c
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557
2558
2559 ac_aux_dir=
2560 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2561 for ac_t in install-sh install.sh shtool; do
2562 if test -f "$ac_dir/$ac_t"; then
2563 ac_aux_dir=$ac_dir
2564 ac_install_sh="$ac_aux_dir/$ac_t -c"
2565 break 2
2566 fi
2567 done
2568 done
2569 if test -z "$ac_aux_dir"; then
2570 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2571 fi
2572
2573 # These three variables are undocumented and unsupported,
2574 # and are intended to be withdrawn in a future Autoconf release.
2575 # They can cause serious problems if a builder's source tree is in a directory
2576 # whose full name contains unusual characters.
2577 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2578 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2579 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2580
2581
2582 # Make sure we can run config.sub.
2583 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2584 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2587 $as_echo_n "checking build system type... " >&6; }
2588 if test "${ac_cv_build+set}" = set; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 ac_build_alias=$build_alias
2592 test "x$ac_build_alias" = x &&
2593 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2594 test "x$ac_build_alias" = x &&
2595 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2596 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2597 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2598
2599 fi
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2601 $as_echo "$ac_cv_build" >&6; }
2602 case $ac_cv_build in
2603 *-*-*) ;;
2604 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2605 esac
2606 build=$ac_cv_build
2607 ac_save_IFS=$IFS; IFS='-'
2608 set x $ac_cv_build
2609 shift
2610 build_cpu=$1
2611 build_vendor=$2
2612 shift; shift
2613 # Remember, the first character of IFS is used to create $*,
2614 # except with old shells:
2615 build_os=$*
2616 IFS=$ac_save_IFS
2617 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2618
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2621 $as_echo_n "checking host system type... " >&6; }
2622 if test "${ac_cv_host+set}" = set; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 if test "x$host_alias" = x; then
2626 ac_cv_host=$ac_cv_build
2627 else
2628 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2629 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2630 fi
2631
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2634 $as_echo "$ac_cv_host" >&6; }
2635 case $ac_cv_host in
2636 *-*-*) ;;
2637 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2638 esac
2639 host=$ac_cv_host
2640 ac_save_IFS=$IFS; IFS='-'
2641 set x $ac_cv_host
2642 shift
2643 host_cpu=$1
2644 host_vendor=$2
2645 shift; shift
2646 # Remember, the first character of IFS is used to create $*,
2647 # except with old shells:
2648 host_os=$*
2649 IFS=$ac_save_IFS
2650 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2651
2652
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2654 $as_echo_n "checking target system type... " >&6; }
2655 if test "${ac_cv_target+set}" = set; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test "x$target_alias" = x; then
2659 ac_cv_target=$ac_cv_host
2660 else
2661 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2662 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2663 fi
2664
2665 fi
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2667 $as_echo "$ac_cv_target" >&6; }
2668 case $ac_cv_target in
2669 *-*-*) ;;
2670 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2671 esac
2672 target=$ac_cv_target
2673 ac_save_IFS=$IFS; IFS='-'
2674 set x $ac_cv_target
2675 shift
2676 target_cpu=$1
2677 target_vendor=$2
2678 shift; shift
2679 # Remember, the first character of IFS is used to create $*,
2680 # except with old shells:
2681 target_os=$*
2682 IFS=$ac_save_IFS
2683 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2684
2685
2686 # The aliases save the names the user supplied, while $host etc.
2687 # will get canonicalized.
2688 test -n "$target_alias" &&
2689 test "$program_prefix$program_suffix$program_transform_name" = \
2690 NONENONEs,x,x, &&
2691 program_prefix=${target_alias}-
2692 am__api_version='1.11'
2693
2694 # Find a good install program. We prefer a C program (faster),
2695 # so one script is as good as another. But avoid the broken or
2696 # incompatible versions:
2697 # SysV /etc/install, /usr/sbin/install
2698 # SunOS /usr/etc/install
2699 # IRIX /sbin/install
2700 # AIX /bin/install
2701 # AmigaOS /C/install, which installs bootblocks on floppy discs
2702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2705 # OS/2's system install, which has a completely different semantic
2706 # ./install, which can be erroneously created by make from ./install.sh.
2707 # Reject install programs that cannot install multiple files.
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2709 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2710 if test -z "$INSTALL"; then
2711 if test "${ac_cv_path_install+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 # Account for people who put trailing slashes in PATH elements.
2720 case $as_dir/ in #((
2721 ./ | .// | /[cC]/* | \
2722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2723 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2724 /usr/ucb/* ) ;;
2725 *)
2726 # OSF1 and SCO ODT 3.0 have their own names for install.
2727 # Don't use installbsd from OSF since it installs stuff as root
2728 # by default.
2729 for ac_prog in ginstall scoinst install; do
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2732 if test $ac_prog = install &&
2733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734 # AIX install. It has an incompatible calling convention.
2735 :
2736 elif test $ac_prog = install &&
2737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738 # program-specific install script used by HP pwplus--don't use.
2739 :
2740 else
2741 rm -rf conftest.one conftest.two conftest.dir
2742 echo one > conftest.one
2743 echo two > conftest.two
2744 mkdir conftest.dir
2745 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2746 test -s conftest.one && test -s conftest.two &&
2747 test -s conftest.dir/conftest.one &&
2748 test -s conftest.dir/conftest.two
2749 then
2750 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2751 break 3
2752 fi
2753 fi
2754 fi
2755 done
2756 done
2757 ;;
2758 esac
2759
2760 done
2761 IFS=$as_save_IFS
2762
2763 rm -rf conftest.one conftest.two conftest.dir
2764
2765 fi
2766 if test "${ac_cv_path_install+set}" = set; then
2767 INSTALL=$ac_cv_path_install
2768 else
2769 # As a last resort, use the slow shell script. Don't cache a
2770 # value for INSTALL within a source directory, because that will
2771 # break other packages using the cache if that directory is
2772 # removed, or if the value is a relative name.
2773 INSTALL=$ac_install_sh
2774 fi
2775 fi
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2777 $as_echo "$INSTALL" >&6; }
2778
2779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2780 # It thinks the first close brace ends the variable substitution.
2781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2782
2783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2784
2785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2786
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2788 $as_echo_n "checking whether build environment is sane... " >&6; }
2789 # Just in case
2790 sleep 1
2791 echo timestamp > conftest.file
2792 # Reject unsafe characters in $srcdir or the absolute working directory
2793 # name. Accept space and tab only in the latter.
2794 am_lf='
2795 '
2796 case `pwd` in
2797 *[\\\"\#\$\&\'\`$am_lf]*)
2798 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2799 esac
2800 case $srcdir in
2801 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2802 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2803 esac
2804
2805 # Do `set' in a subshell so we don't clobber the current shell's
2806 # arguments. Must try -L first in case configure is actually a
2807 # symlink; some systems play weird games with the mod time of symlinks
2808 # (eg FreeBSD returns the mod time of the symlink's containing
2809 # directory).
2810 if (
2811 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2812 if test "$*" = "X"; then
2813 # -L didn't work.
2814 set X `ls -t "$srcdir/configure" conftest.file`
2815 fi
2816 rm -f conftest.file
2817 if test "$*" != "X $srcdir/configure conftest.file" \
2818 && test "$*" != "X conftest.file $srcdir/configure"; then
2819
2820 # If neither matched, then we have a broken ls. This can happen
2821 # if, for instance, CONFIG_SHELL is bash and it inherits a
2822 # broken ls alias from the environment. This has actually
2823 # happened. Such a system could not be considered "sane".
2824 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2825 alias in your environment" "$LINENO" 5
2826 fi
2827
2828 test "$2" = conftest.file
2829 )
2830 then
2831 # Ok.
2832 :
2833 else
2834 as_fn_error "newly created file is older than distributed files!
2835 Check your system clock" "$LINENO" 5
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838 $as_echo "yes" >&6; }
2839 test "$program_prefix" != NONE &&
2840 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2841 # Use a double $ so make ignores it.
2842 test "$program_suffix" != NONE &&
2843 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2844 # Double any \ or $.
2845 # By default was `s,x,x', remove it if useless.
2846 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2847 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2848
2849 # expand $ac_aux_dir to an absolute path
2850 am_aux_dir=`cd $ac_aux_dir && pwd`
2851
2852 if test x"${MISSING+set}" != xset; then
2853 case $am_aux_dir in
2854 *\ * | *\ *)
2855 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2856 *)
2857 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2858 esac
2859 fi
2860 # Use eval to expand $SHELL
2861 if eval "$MISSING --run true"; then
2862 am_missing_run="$MISSING --run "
2863 else
2864 am_missing_run=
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2866 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2867 fi
2868
2869 if test x"${install_sh}" != xset; then
2870 case $am_aux_dir in
2871 *\ * | *\ *)
2872 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2873 *)
2874 install_sh="\${SHELL} $am_aux_dir/install-sh"
2875 esac
2876 fi
2877
2878 # Installed binaries are usually stripped using `strip' when the user
2879 # run `make install-strip'. However `strip' might not be the right
2880 # tool to use in cross-compilation environments, therefore Automake
2881 # will honor the `STRIP' environment variable to overrule this program.
2882 if test "$cross_compiling" != no; then
2883 if test -n "$ac_tool_prefix"; then
2884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}strip; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_STRIP+set}" = set; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$STRIP"; then
2892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 STRIP=$ac_cv_prog_STRIP
2912 if test -n "$STRIP"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2914 $as_echo "$STRIP" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2918 fi
2919
2920
2921 fi
2922 if test -z "$ac_cv_prog_STRIP"; then
2923 ac_ct_STRIP=$STRIP
2924 # Extract the first word of "strip", so it can be a program name with args.
2925 set dummy strip; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$ac_ct_STRIP"; then
2932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_ac_ct_STRIP="strip"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2952 if test -n "$ac_ct_STRIP"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2954 $as_echo "$ac_ct_STRIP" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960 if test "x$ac_ct_STRIP" = x; then
2961 STRIP=":"
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969 STRIP=$ac_ct_STRIP
2970 fi
2971 else
2972 STRIP="$ac_cv_prog_STRIP"
2973 fi
2974
2975 fi
2976 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2977
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2979 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2980 if test -z "$MKDIR_P"; then
2981 if test "${ac_cv_path_mkdir+set}" = set; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2986 do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_prog in mkdir gmkdir; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2992 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2993 'mkdir (GNU coreutils) '* | \
2994 'mkdir (coreutils) '* | \
2995 'mkdir (fileutils) '4.1*)
2996 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2997 break 3;;
2998 esac
2999 done
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005
3006 if test "${ac_cv_path_mkdir+set}" = set; then
3007 MKDIR_P="$ac_cv_path_mkdir -p"
3008 else
3009 # As a last resort, use the slow shell script. Don't cache a
3010 # value for MKDIR_P within a source directory, because that will
3011 # break other packages using the cache if that directory is
3012 # removed, or if the value is a relative name.
3013 test -d ./--version && rmdir ./--version
3014 MKDIR_P="$ac_install_sh -d"
3015 fi
3016 fi
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3018 $as_echo "$MKDIR_P" >&6; }
3019
3020 mkdir_p="$MKDIR_P"
3021 case $mkdir_p in
3022 [\\/$]* | ?:[\\/]*) ;;
3023 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3024 esac
3025
3026 for ac_prog in gawk mawk nawk awk
3027 do
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_AWK+set}" = set; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$AWK"; then
3036 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_AWK="$ac_prog"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 AWK=$ac_cv_prog_AWK
3056 if test -n "$AWK"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3058 $as_echo "$AWK" >&6; }
3059 else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065 test -n "$AWK" && break
3066 done
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3069 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3070 set x ${MAKE-make}
3071 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3072 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3073 $as_echo_n "(cached) " >&6
3074 else
3075 cat >conftest.make <<\_ACEOF
3076 SHELL = /bin/sh
3077 all:
3078 @echo '@@@%%%=$(MAKE)=@@@%%%'
3079 _ACEOF
3080 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3081 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3082 *@@@%%%=?*=@@@%%%*)
3083 eval ac_cv_prog_make_${ac_make}_set=yes;;
3084 *)
3085 eval ac_cv_prog_make_${ac_make}_set=no;;
3086 esac
3087 rm -f conftest.make
3088 fi
3089 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3091 $as_echo "yes" >&6; }
3092 SET_MAKE=
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096 SET_MAKE="MAKE=${MAKE-make}"
3097 fi
3098
3099 rm -rf .tst 2>/dev/null
3100 mkdir .tst 2>/dev/null
3101 if test -d .tst; then
3102 am__leading_dot=.
3103 else
3104 am__leading_dot=_
3105 fi
3106 rmdir .tst 2>/dev/null
3107
3108 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3109 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3110 # is not polluted with repeated "-I."
3111 am__isrc=' -I$(srcdir)'
3112 # test to see if srcdir already configured
3113 if test -f $srcdir/config.status; then
3114 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3115 fi
3116 fi
3117
3118 # test whether we have cygpath
3119 if test -z "$CYGPATH_W"; then
3120 if (cygpath --version) >/dev/null 2>/dev/null; then
3121 CYGPATH_W='cygpath -w'
3122 else
3123 CYGPATH_W=echo
3124 fi
3125 fi
3126
3127
3128 # Define the identity of the package.
3129 PACKAGE='ncap'
3130 VERSION='1.9.2'
3131
3132
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE "$PACKAGE"
3135 _ACEOF
3136
3137
3138 cat >>confdefs.h <<_ACEOF
3139 #define VERSION "$VERSION"
3140 _ACEOF
3141
3142 # Some tools Automake needs.
3143
3144 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3145
3146
3147 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3148
3149
3150 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3151
3152
3153 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3154
3155
3156 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3157
3158 # We need awk for the "check" target. The system "awk" is bad on
3159 # some platforms.
3160 # Always define AMTAR for backward compatibility.
3161
3162 AMTAR=${AMTAR-"${am_missing_run}tar"}
3163
3164 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3165
3166
3167
3168
3169
3170 # Check whether --enable-silent-rules was given.
3171 if test "${enable_silent_rules+set}" = set; then :
3172 enableval=$enable_silent_rules;
3173 fi
3174
3175 case $enable_silent_rules in
3176 yes) AM_DEFAULT_VERBOSITY=0;;
3177 no) AM_DEFAULT_VERBOSITY=1;;
3178 *) AM_DEFAULT_VERBOSITY=0;;
3179 esac
3180 AM_BACKSLASH='\'
3181
3182
3183 ac_ext=c
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 if test -n "$ac_tool_prefix"; then
3189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_CC+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 if test -n "$CC"; then
3197 ac_cv_prog_CC="$CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 CC=$ac_cv_prog_CC
3217 if test -n "$CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3219 $as_echo "$CC" >&6; }
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225
3226 fi
3227 if test -z "$ac_cv_prog_CC"; then
3228 ac_ct_CC=$CC
3229 # Extract the first word of "gcc", so it can be a program name with args.
3230 set dummy gcc; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 if test -n "$ac_ct_CC"; then
3237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3246 ac_cv_prog_ac_ct_CC="gcc"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3257 if test -n "$ac_ct_CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3259 $as_echo "$ac_ct_CC" >&6; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265 if test "x$ac_ct_CC" = x; then
3266 CC=""
3267 else
3268 case $cross_compiling:$ac_tool_warned in
3269 yes:)
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3272 ac_tool_warned=yes ;;
3273 esac
3274 CC=$ac_ct_CC
3275 fi
3276 else
3277 CC="$ac_cv_prog_CC"
3278 fi
3279
3280 if test -z "$CC"; then
3281 if test -n "$ac_tool_prefix"; then
3282 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3283 set dummy ${ac_tool_prefix}cc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if test "${ac_cv_prog_CC+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 ac_cv_prog_CC="${ac_tool_prefix}cc"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 fi
3308 fi
3309 CC=$ac_cv_prog_CC
3310 if test -n "$CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312 $as_echo "$CC" >&6; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3316 fi
3317
3318
3319 fi
3320 fi
3321 if test -z "$CC"; then
3322 # Extract the first word of "cc", so it can be a program name with args.
3323 set dummy cc; ac_word=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if test "${ac_cv_prog_CC+set}" = set; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 if test -n "$CC"; then
3330 ac_cv_prog_CC="$CC" # Let the user override the test.
3331 else
3332 ac_prog_rejected=no
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3341 ac_prog_rejected=yes
3342 continue
3343 fi
3344 ac_cv_prog_CC="cc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3347 fi
3348 done
3349 done
3350 IFS=$as_save_IFS
3351
3352 if test $ac_prog_rejected = yes; then
3353 # We found a bogon in the path, so make sure we never use it.
3354 set dummy $ac_cv_prog_CC
3355 shift
3356 if test $# != 0; then
3357 # We chose a different compiler from the bogus one.
3358 # However, it has the same basename, so the bogon will be chosen
3359 # first if we set CC to just the basename; use the full file name.
3360 shift
3361 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3362 fi
3363 fi
3364 fi
3365 fi
3366 CC=$ac_cv_prog_CC
3367 if test -n "$CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3369 $as_echo "$CC" >&6; }
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 fi
3374
3375
3376 fi
3377 if test -z "$CC"; then
3378 if test -n "$ac_tool_prefix"; then
3379 for ac_prog in cl.exe
3380 do
3381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if test "${ac_cv_prog_CC+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3393 do
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3401 fi
3402 done
3403 done
3404 IFS=$as_save_IFS
3405
3406 fi
3407 fi
3408 CC=$ac_cv_prog_CC
3409 if test -n "$CC"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3411 $as_echo "$CC" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3415 fi
3416
3417
3418 test -n "$CC" && break
3419 done
3420 fi
3421 if test -z "$CC"; then
3422 ac_ct_CC=$CC
3423 for ac_prog in cl.exe
3424 do
3425 # Extract the first word of "$ac_prog", so it can be a program name with args.
3426 set dummy $ac_prog; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 if test -n "$ac_ct_CC"; then
3433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442 ac_cv_prog_ac_ct_CC="$ac_prog"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446 done
3447 done
3448 IFS=$as_save_IFS
3449
3450 fi
3451 fi
3452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3453 if test -n "$ac_ct_CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3455 $as_echo "$ac_ct_CC" >&6; }
3456 else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 fi
3460
3461
3462 test -n "$ac_ct_CC" && break
3463 done
3464
3465 if test "x$ac_ct_CC" = x; then
3466 CC=""
3467 else
3468 case $cross_compiling:$ac_tool_warned in
3469 yes:)
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3472 ac_tool_warned=yes ;;
3473 esac
3474 CC=$ac_ct_CC
3475 fi
3476 fi
3477
3478 fi
3479
3480
3481 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error "no acceptable C compiler found in \$PATH
3484 See \`config.log' for more details." "$LINENO" 5; }
3485
3486 # Provide some information about the compiler.
3487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3488 set X $ac_compile
3489 ac_compiler=$2
3490 for ac_option in --version -v -V -qversion; do
3491 { { ac_try="$ac_compiler $ac_option >&5"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3499 ac_status=$?
3500 if test -s conftest.err; then
3501 sed '10a\
3502 ... rest of stderr output deleted ...
3503 10q' conftest.err >conftest.er1
3504 cat conftest.er1 >&5
3505 rm -f conftest.er1 conftest.err
3506 fi
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }
3509 done
3510
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3513 #include <stdio.h>
3514 int
3515 main ()
3516 {
3517 FILE *f = fopen ("conftest.out", "w");
3518 return ferror (f) || fclose (f) != 0;
3519
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 ac_clean_files_save=$ac_clean_files
3525 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3526 # Try to create an executable without -o first, disregard a.out.
3527 # It will help us diagnose broken compilers, and finding out an intuition
3528 # of exeext.
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3530 $as_echo_n "checking for C compiler default output file name... " >&6; }
3531 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3532
3533 # The possible output files:
3534 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3535
3536 ac_rmfiles=
3537 for ac_file in $ac_files
3538 do
3539 case $ac_file in
3540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3541 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3542 esac
3543 done
3544 rm -f $ac_rmfiles
3545
3546 if { { ac_try="$ac_link_default"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553 (eval "$ac_link_default") 2>&5
3554 ac_status=$?
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }; then :
3557 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3558 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3559 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3560 # so that the user can short-circuit this test for compilers unknown to
3561 # Autoconf.
3562 for ac_file in $ac_files ''
3563 do
3564 test -f "$ac_file" || continue
3565 case $ac_file in
3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3567 ;;
3568 [ab].out )
3569 # We found the default executable, but exeext='' is most
3570 # certainly right.
3571 break;;
3572 *.* )
3573 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3574 then :; else
3575 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3576 fi
3577 # We set ac_cv_exeext here because the later test for it is not
3578 # safe: cross compilers may not add the suffix if given an `-o'
3579 # argument, so we may need to know it at that point already.
3580 # Even if this section looks crufty: it has the advantage of
3581 # actually working.
3582 break;;
3583 * )
3584 break;;
3585 esac
3586 done
3587 test "$ac_cv_exeext" = no && ac_cv_exeext=
3588
3589 else
3590 ac_file=''
3591 fi
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3593 $as_echo "$ac_file" >&6; }
3594 if test -z "$ac_file"; then :
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 { as_fn_set_status 77
3601 as_fn_error "C compiler cannot create executables
3602 See \`config.log' for more details." "$LINENO" 5; }; }
3603 fi
3604 ac_exeext=$ac_cv_exeext
3605
3606 # Check that the compiler produces executables we can run. If not, either
3607 # the compiler is broken, or we cross compile.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3609 $as_echo_n "checking whether the C compiler works... " >&6; }
3610 # If not cross compiling, check that we can run a simple program.
3611 if test "$cross_compiling" != yes; then
3612 if { ac_try='./$ac_file'
3613 { { case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_try") 2>&5
3620 ac_status=$?
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; }; then
3623 cross_compiling=no
3624 else
3625 if test "$cross_compiling" = maybe; then
3626 cross_compiling=yes
3627 else
3628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630 as_fn_error "cannot run C compiled programs.
3631 If you meant to cross compile, use \`--host'.
3632 See \`config.log' for more details." "$LINENO" 5; }
3633 fi
3634 fi
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637 $as_echo "yes" >&6; }
3638
3639 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3640 ac_clean_files=$ac_clean_files_save
3641 # Check that the compiler produces executables we can run. If not, either
3642 # the compiler is broken, or we cross compile.
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3644 $as_echo_n "checking whether we are cross compiling... " >&6; }
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3646 $as_echo "$cross_compiling" >&6; }
3647
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3649 $as_echo_n "checking for suffix of executables... " >&6; }
3650 if { { ac_try="$ac_link"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_link") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }; then :
3661 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3662 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3663 # work properly (i.e., refer to `conftest.exe'), while it won't with
3664 # `rm'.
3665 for ac_file in conftest.exe conftest conftest.*; do
3666 test -f "$ac_file" || continue
3667 case $ac_file in
3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3669 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3670 break;;
3671 * ) break;;
3672 esac
3673 done
3674 else
3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677 as_fn_error "cannot compute suffix of executables: cannot compile and link
3678 See \`config.log' for more details." "$LINENO" 5; }
3679 fi
3680 rm -f conftest$ac_cv_exeext
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3682 $as_echo "$ac_cv_exeext" >&6; }
3683
3684 rm -f conftest.$ac_ext
3685 EXEEXT=$ac_cv_exeext
3686 ac_exeext=$EXEEXT
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3688 $as_echo_n "checking for suffix of object files... " >&6; }
3689 if test "${ac_cv_objext+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694
3695 int
3696 main ()
3697 {
3698
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 rm -f conftest.o conftest.obj
3704 if { { ac_try="$ac_compile"
3705 case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710 $as_echo "$ac_try_echo"; } >&5
3711 (eval "$ac_compile") 2>&5
3712 ac_status=$?
3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test $ac_status = 0; }; then :
3715 for ac_file in conftest.o conftest.obj conftest.*; do
3716 test -f "$ac_file" || continue;
3717 case $ac_file in
3718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3719 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3720 break;;
3721 esac
3722 done
3723 else
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error "cannot compute suffix of object files: cannot compile
3730 See \`config.log' for more details." "$LINENO" 5; }
3731 fi
3732 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3733 fi
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3735 $as_echo "$ac_cv_objext" >&6; }
3736 OBJEXT=$ac_cv_objext
3737 ac_objext=$OBJEXT
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3740 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745
3746 int
3747 main ()
3748 {
3749 #ifndef __GNUC__
3750 choke me
3751 #endif
3752
3753 ;
3754 return 0;
3755 }
3756 _ACEOF
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758 ac_compiler_gnu=yes
3759 else
3760 ac_compiler_gnu=no
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3764
3765 fi
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3767 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3768 if test $ac_compiler_gnu = yes; then
3769 GCC=yes
3770 else
3771 GCC=
3772 fi
3773 ac_test_CFLAGS=${CFLAGS+set}
3774 ac_save_CFLAGS=$CFLAGS
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3776 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3777 if test "${ac_cv_prog_cc_g+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 ac_save_c_werror_flag=$ac_c_werror_flag
3781 ac_c_werror_flag=yes
3782 ac_cv_prog_cc_g=no
3783 CFLAGS="-g"
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3786
3787 int
3788 main ()
3789 {
3790
3791 ;
3792 return 0;
3793 }
3794 _ACEOF
3795 if ac_fn_c_try_compile "$LINENO"; then :
3796 ac_cv_prog_cc_g=yes
3797 else
3798 CFLAGS=""
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801
3802 int
3803 main ()
3804 {
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811
3812 else
3813 ac_c_werror_flag=$ac_save_c_werror_flag
3814 CFLAGS="-g"
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817
3818 int
3819 main ()
3820 {
3821
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_cv_prog_cc_g=yes
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 fi
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 fi
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 ac_c_werror_flag=$ac_save_c_werror_flag
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3837 $as_echo "$ac_cv_prog_cc_g" >&6; }
3838 if test "$ac_test_CFLAGS" = set; then
3839 CFLAGS=$ac_save_CFLAGS
3840 elif test $ac_cv_prog_cc_g = yes; then
3841 if test "$GCC" = yes; then
3842 CFLAGS="-g -O2"
3843 else
3844 CFLAGS="-g"
3845 fi
3846 else
3847 if test "$GCC" = yes; then
3848 CFLAGS="-O2"
3849 else
3850 CFLAGS=
3851 fi
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3854 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3855 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 ac_cv_prog_cc_c89=no
3859 ac_save_CC=$CC
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #include <stdarg.h>
3863 #include <stdio.h>
3864 #include <sys/types.h>
3865 #include <sys/stat.h>
3866 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3867 struct buf { int x; };
3868 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3869 static char *e (p, i)
3870 char **p;
3871 int i;
3872 {
3873 return p[i];
3874 }
3875 static char *f (char * (*g) (char **, int), char **p, ...)
3876 {
3877 char *s;
3878 va_list v;
3879 va_start (v,p);
3880 s = g (p, va_arg (v,int));
3881 va_end (v);
3882 return s;
3883 }
3884
3885 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3886 function prototypes and stuff, but not '\xHH' hex character constants.
3887 These don't provoke an error unfortunately, instead are silently treated
3888 as 'x'. The following induces an error, until -std is added to get
3889 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3890 array size at least. It's necessary to write '\x00'==0 to get something
3891 that's true only with -std. */
3892 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3893
3894 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3895 inside strings and character constants. */
3896 #define FOO(x) 'x'
3897 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3898
3899 int test (int i, double x);
3900 struct s1 {int (*f) (int a);};
3901 struct s2 {int (*f) (double a);};
3902 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3903 int argc;
3904 char **argv;
3905 int
3906 main ()
3907 {
3908 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3914 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3915 do
3916 CC="$ac_save_CC $ac_arg"
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918 ac_cv_prog_cc_c89=$ac_arg
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext
3921 test "x$ac_cv_prog_cc_c89" != "xno" && break
3922 done
3923 rm -f conftest.$ac_ext
3924 CC=$ac_save_CC
3925
3926 fi
3927 # AC_CACHE_VAL
3928 case "x$ac_cv_prog_cc_c89" in
3929 x)
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3931 $as_echo "none needed" >&6; } ;;
3932 xno)
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3934 $as_echo "unsupported" >&6; } ;;
3935 *)
3936 CC="$CC $ac_cv_prog_cc_c89"
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3938 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3939 esac
3940 if test "x$ac_cv_prog_cc_c89" != xno; then :
3941
3942 fi
3943
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 DEPDIR="${am__leading_dot}deps"
3950
3951 ac_config_commands="$ac_config_commands depfiles"
3952
3953
3954 am_make=${MAKE-make}
3955 cat > confinc << 'END'
3956 am__doit:
3957 @echo this is the am__doit target
3958 .PHONY: am__doit
3959 END
3960 # If we don't find an include directive, just comment out the code.
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3962 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3963 am__include="#"
3964 am__quote=
3965 _am_result=none
3966 # First try GNU make style include.
3967 echo "include confinc" > confmf
3968 # Ignore all kinds of additional output from `make'.
3969 case `$am_make -s -f confmf 2> /dev/null` in #(
3970 *the\ am__doit\ target*)
3971 am__include=include
3972 am__quote=
3973 _am_result=GNU
3974 ;;
3975 esac
3976 # Now try BSD make style include.
3977 if test "$am__include" = "#"; then
3978 echo '.include "confinc"' > confmf
3979 case `$am_make -s -f confmf 2> /dev/null` in #(
3980 *the\ am__doit\ target*)
3981 am__include=.include
3982 am__quote="\""
3983 _am_result=BSD
3984 ;;
3985 esac
3986 fi
3987
3988
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3990 $as_echo "$_am_result" >&6; }
3991 rm -f confinc confmf
3992
3993 # Check whether --enable-dependency-tracking was given.
3994 if test "${enable_dependency_tracking+set}" = set; then :
3995 enableval=$enable_dependency_tracking;
3996 fi
3997
3998 if test "x$enable_dependency_tracking" != xno; then
3999 am_depcomp="$ac_aux_dir/depcomp"
4000 AMDEPBACKSLASH='\'
4001 fi
4002 if test "x$enable_dependency_tracking" != xno; then
4003 AMDEP_TRUE=
4004 AMDEP_FALSE='#'
4005 else
4006 AMDEP_TRUE='#'
4007 AMDEP_FALSE=
4008 fi
4009
4010
4011
4012 depcc="$CC" am_compiler_list=
4013
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4015 $as_echo_n "checking dependency style of $depcc... " >&6; }
4016 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4020 # We make a subdir and do the tests there. Otherwise we can end up
4021 # making bogus files that we don't know about and never remove. For
4022 # instance it was reported that on HP-UX the gcc test will end up
4023 # making a dummy file named `D' -- because `-MD' means `put the output
4024 # in D'.
4025 mkdir conftest.dir
4026 # Copy depcomp to subdir because otherwise we won't find it if we're
4027 # using a relative directory.
4028 cp "$am_depcomp" conftest.dir
4029 cd conftest.dir
4030 # We will build objects and dependencies in a subdirectory because
4031 # it helps to detect inapplicable dependency modes. For instance
4032 # both Tru64's cc and ICC support -MD to output dependencies as a
4033 # side effect of compilation, but ICC will put the dependencies in
4034 # the current directory while Tru64 will put them in the object
4035 # directory.
4036 mkdir sub
4037
4038 am_cv_CC_dependencies_compiler_type=none
4039 if test "$am_compiler_list" = ""; then
4040 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4041 fi
4042 am__universal=false
4043 case " $depcc " in #(
4044 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4045 esac
4046
4047 for depmode in $am_compiler_list; do
4048 # Setup a source with many dependencies, because some compilers
4049 # like to wrap large dependency lists on column 80 (with \), and
4050 # we should not choose a depcomp mode which is confused by this.
4051 #
4052 # We need to recreate these files for each test, as the compiler may
4053 # overwrite some of them when testing with obscure command lines.
4054 # This happens at least with the AIX C compiler.
4055 : > sub/conftest.c
4056 for i in 1 2 3 4 5 6; do
4057 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4058 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4059 # Solaris 8's {/usr,}/bin/sh.
4060 touch sub/conftst$i.h
4061 done
4062 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4063
4064 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4065 # mode. It turns out that the SunPro C++ compiler does not properly
4066 # handle `-M -o', and we need to detect this. Also, some Intel
4067 # versions had trouble with output in subdirs
4068 am__obj=sub/conftest.${OBJEXT-o}
4069 am__minus_obj="-o $am__obj"
4070 case $depmode in
4071 gcc)
4072 # This depmode causes a compiler race in universal mode.
4073 test "$am__universal" = false || continue
4074 ;;
4075 nosideeffect)
4076 # after this tag, mechanisms are not by side-effect, so they'll
4077 # only be used when explicitly requested
4078 if test "x$enable_dependency_tracking" = xyes; then
4079 continue
4080 else
4081 break
4082 fi
4083 ;;
4084 msvisualcpp | msvcmsys)
4085 # This compiler won't grok `-c -o', but also, the minuso test has
4086 # not run yet. These depmodes are late enough in the game, and
4087 # so weak that their functioning should not be impacted.
4088 am__obj=conftest.${OBJEXT-o}
4089 am__minus_obj=
4090 ;;
4091 none) break ;;
4092 esac
4093 if depmode=$depmode \
4094 source=sub/conftest.c object=$am__obj \
4095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4097 >/dev/null 2>conftest.err &&
4098 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4100 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4102 # icc doesn't choke on unknown options, it will just issue warnings
4103 # or remarks (even with -Werror). So we grep stderr for any message
4104 # that says an option was ignored or not supported.
4105 # When given -MP, icc 7.0 and 7.1 complain thusly:
4106 # icc: Command line warning: ignoring option '-M'; no argument required
4107 # The diagnosis changed in icc 8.0:
4108 # icc: Command line remark: option '-MP' not supported
4109 if (grep 'ignoring option' conftest.err ||
4110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4111 am_cv_CC_dependencies_compiler_type=$depmode
4112 break
4113 fi
4114 fi
4115 done
4116
4117 cd ..
4118 rm -rf conftest.dir
4119 else
4120 am_cv_CC_dependencies_compiler_type=none
4121 fi
4122
4123 fi
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4125 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4126 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4127
4128 if
4129 test "x$enable_dependency_tracking" != xno \
4130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4131 am__fastdepCC_TRUE=
4132 am__fastdepCC_FALSE='#'
4133 else
4134 am__fastdepCC_TRUE='#'
4135 am__fastdepCC_FALSE=
4136 fi
4137
4138
4139 case `pwd` in
4140 *\ * | *\ *)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4142 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4143 esac
4144
4145
4146
4147 macro_version='2.2.6'
4148 macro_revision='1.3012'
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162 ltmain="$ac_aux_dir/ltmain.sh"
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4165 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4166 if test "${ac_cv_path_SED+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4170 for ac_i in 1 2 3 4 5 6 7; do
4171 ac_script="$ac_script$as_nl$ac_script"
4172 done
4173 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4174 { ac_script=; unset ac_script;}
4175 if test -z "$SED"; then
4176 ac_path_SED_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in sed gsed; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4186 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4187 # Check for GNU ac_path_SED and select it if it is found.
4188 # Check for GNU $ac_path_SED
4189 case `"$ac_path_SED" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4192 *)
4193 ac_count=0
4194 $as_echo_n 0123456789 >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 $as_echo '' >> "conftest.nl"
4201 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 as_fn_arith $ac_count + 1 && ac_count=$as_val
4204 if test $ac_count -gt ${ac_path_SED_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_SED="$ac_path_SED"
4207 ac_path_SED_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215 $ac_path_SED_found && break 3
4216 done
4217 done
4218 done
4219 IFS=$as_save_IFS
4220 if test -z "$ac_cv_path_SED"; then
4221 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4222 fi
4223 else
4224 ac_cv_path_SED=$SED
4225 fi
4226
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4229 $as_echo "$ac_cv_path_SED" >&6; }
4230 SED="$ac_cv_path_SED"
4231 rm -f conftest.sed
4232
4233 test -z "$SED" && SED=sed
4234 Xsed="$SED -e 1s/^X//"
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4247 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4248 if test "${ac_cv_path_GREP+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if test -z "$GREP"; then
4252 ac_path_GREP_found=false
4253 # Loop through the user's path and test for each of PROGNAME-LIST
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_prog in grep ggrep; do
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4262 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4263 # Check for GNU ac_path_GREP and select it if it is found.
4264 # Check for GNU $ac_path_GREP
4265 case `"$ac_path_GREP" --version 2>&1` in
4266 *GNU*)
4267 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4268 *)
4269 ac_count=0
4270 $as_echo_n 0123456789 >"conftest.in"
4271 while :
4272 do
4273 cat "conftest.in" "conftest.in" >"conftest.tmp"
4274 mv "conftest.tmp" "conftest.in"
4275 cp "conftest.in" "conftest.nl"
4276 $as_echo 'GREP' >> "conftest.nl"
4277 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4279 as_fn_arith $ac_count + 1 && ac_count=$as_val
4280 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4281 # Best one so far, save it but keep looking for a better one
4282 ac_cv_path_GREP="$ac_path_GREP"
4283 ac_path_GREP_max=$ac_count
4284 fi
4285 # 10*(2^10) chars as input seems more than enough
4286 test $ac_count -gt 10 && break
4287 done
4288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289 esac
4290
4291 $ac_path_GREP_found && break 3
4292 done
4293 done
4294 done
4295 IFS=$as_save_IFS
4296 if test -z "$ac_cv_path_GREP"; then
4297 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4298 fi
4299 else
4300 ac_cv_path_GREP=$GREP
4301 fi
4302
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4305 $as_echo "$ac_cv_path_GREP" >&6; }
4306 GREP="$ac_cv_path_GREP"
4307
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4310 $as_echo_n "checking for egrep... " >&6; }
4311 if test "${ac_cv_path_EGREP+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4315 then ac_cv_path_EGREP="$GREP -E"
4316 else
4317 if test -z "$EGREP"; then
4318 ac_path_EGREP_found=false
4319 # Loop through the user's path and test for each of PROGNAME-LIST
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_prog in egrep; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4328 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4329 # Check for GNU ac_path_EGREP and select it if it is found.
4330 # Check for GNU $ac_path_EGREP
4331 case `"$ac_path_EGREP" --version 2>&1` in
4332 *GNU*)
4333 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4334 *)
4335 ac_count=0
4336 $as_echo_n 0123456789 >"conftest.in"
4337 while :
4338 do
4339 cat "conftest.in" "conftest.in" >"conftest.tmp"
4340 mv "conftest.tmp" "conftest.in"
4341 cp "conftest.in" "conftest.nl"
4342 $as_echo 'EGREP' >> "conftest.nl"
4343 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345 as_fn_arith $ac_count + 1 && ac_count=$as_val
4346 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4347 # Best one so far, save it but keep looking for a better one
4348 ac_cv_path_EGREP="$ac_path_EGREP"
4349 ac_path_EGREP_max=$ac_count
4350 fi
4351 # 10*(2^10) chars as input seems more than enough
4352 test $ac_count -gt 10 && break
4353 done
4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 esac
4356
4357 $ac_path_EGREP_found && break 3
4358 done
4359 done
4360 done
4361 IFS=$as_save_IFS
4362 if test -z "$ac_cv_path_EGREP"; then
4363 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364 fi
4365 else
4366 ac_cv_path_EGREP=$EGREP
4367 fi
4368
4369 fi
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4372 $as_echo "$ac_cv_path_EGREP" >&6; }
4373 EGREP="$ac_cv_path_EGREP"
4374
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4377 $as_echo_n "checking for fgrep... " >&6; }
4378 if test "${ac_cv_path_FGREP+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4382 then ac_cv_path_FGREP="$GREP -F"
4383 else
4384 if test -z "$FGREP"; then
4385 ac_path_FGREP_found=false
4386 # Loop through the user's path and test for each of PROGNAME-LIST
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_prog in fgrep; do
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4395 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4396 # Check for GNU ac_path_FGREP and select it if it is found.
4397 # Check for GNU $ac_path_FGREP
4398 case `"$ac_path_FGREP" --version 2>&1` in
4399 *GNU*)
4400 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4401 *)
4402 ac_count=0
4403 $as_echo_n 0123456789 >"conftest.in"
4404 while :
4405 do
4406 cat "conftest.in" "conftest.in" >"conftest.tmp"
4407 mv "conftest.tmp" "conftest.in"
4408 cp "conftest.in" "conftest.nl"
4409 $as_echo 'FGREP' >> "conftest.nl"
4410 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412 as_fn_arith $ac_count + 1 && ac_count=$as_val
4413 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4414 # Best one so far, save it but keep looking for a better one
4415 ac_cv_path_FGREP="$ac_path_FGREP"
4416 ac_path_FGREP_max=$ac_count
4417 fi
4418 # 10*(2^10) chars as input seems more than enough
4419 test $ac_count -gt 10 && break
4420 done
4421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422 esac
4423
4424 $ac_path_FGREP_found && break 3
4425 done
4426 done
4427 done
4428 IFS=$as_save_IFS
4429 if test -z "$ac_cv_path_FGREP"; then
4430 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431 fi
4432 else
4433 ac_cv_path_FGREP=$FGREP
4434 fi
4435
4436 fi
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4439 $as_echo "$ac_cv_path_FGREP" >&6; }
4440 FGREP="$ac_cv_path_FGREP"
4441
4442
4443 test -z "$GREP" && GREP=grep
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463 # Check whether --with-gnu-ld was given.
4464 if test "${with_gnu_ld+set}" = set; then :
4465 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4466 else
4467 with_gnu_ld=no
4468 fi
4469
4470 ac_prog=ld
4471 if test "$GCC" = yes; then
4472 # Check if gcc -print-prog-name=ld gives a path.
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4474 $as_echo_n "checking for ld used by $CC... " >&6; }
4475 case $host in
4476 *-*-mingw*)
4477 # gcc leaves a trailing carriage return which upsets mingw
4478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4479 *)
4480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4481 esac
4482 case $ac_prog in
4483 # Accept absolute paths.
4484 [\\/]* | ?:[\\/]*)
4485 re_direlt='/[^/][^/]*/\.\./'
4486 # Canonicalize the pathname of ld
4487 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4488 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4489 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4490 done
4491 test -z "$LD" && LD="$ac_prog"
4492 ;;
4493 "")
4494 # If it fails, then pretend we aren't using GCC.
4495 ac_prog=ld
4496 ;;
4497 *)
4498 # If it is relative, then search for the first ld in PATH.
4499 with_gnu_ld=unknown
4500 ;;
4501 esac
4502 elif test "$with_gnu_ld" = yes; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4504 $as_echo_n "checking for GNU ld... " >&6; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4507 $as_echo_n "checking for non-GNU ld... " >&6; }
4508 fi
4509 if test "${lt_cv_path_LD+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test -z "$LD"; then
4513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4514 for ac_dir in $PATH; do
4515 IFS="$lt_save_ifs"
4516 test -z "$ac_dir" && ac_dir=.
4517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4518 lt_cv_path_LD="$ac_dir/$ac_prog"
4519 # Check to see if the program is GNU ld. I'd rather use --version,
4520 # but apparently some variants of GNU ld only accept -v.
4521 # Break only if it was the GNU/non-GNU ld that we prefer.
4522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4523 *GNU* | *'with BFD'*)
4524 test "$with_gnu_ld" != no && break
4525 ;;
4526 *)
4527 test "$with_gnu_ld" != yes && break
4528 ;;
4529 esac
4530 fi
4531 done
4532 IFS="$lt_save_ifs"
4533 else
4534 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4535 fi
4536 fi
4537
4538 LD="$lt_cv_path_LD"
4539 if test -n "$LD"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4541 $as_echo "$LD" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4548 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4549 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4553 case `$LD -v 2>&1 </dev/null` in
4554 *GNU* | *'with BFD'*)
4555 lt_cv_prog_gnu_ld=yes
4556 ;;
4557 *)
4558 lt_cv_prog_gnu_ld=no
4559 ;;
4560 esac
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4563 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4564 with_gnu_ld=$lt_cv_prog_gnu_ld
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4575 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4576 if test "${lt_cv_path_NM+set}" = set; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -n "$NM"; then
4580 # Let the user override the test.
4581 lt_cv_path_NM="$NM"
4582 else
4583 lt_nm_to_check="${ac_tool_prefix}nm"
4584 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4585 lt_nm_to_check="$lt_nm_to_check nm"
4586 fi
4587 for lt_tmp_nm in $lt_nm_to_check; do
4588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4589 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4590 IFS="$lt_save_ifs"
4591 test -z "$ac_dir" && ac_dir=.
4592 tmp_nm="$ac_dir/$lt_tmp_nm"
4593 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4594 # Check to see if the nm accepts a BSD-compat flag.
4595 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4596 # nm: unknown option "B" ignored
4597 # Tru64's nm complains that /dev/null is an invalid object file
4598 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4599 */dev/null* | *'Invalid file or object type'*)
4600 lt_cv_path_NM="$tmp_nm -B"
4601 break
4602 ;;
4603 *)
4604 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4605 */dev/null*)
4606 lt_cv_path_NM="$tmp_nm -p"
4607 break
4608 ;;
4609 *)
4610 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4611 continue # so that we can try to find one that supports BSD flags
4612 ;;
4613 esac
4614 ;;
4615 esac
4616 fi
4617 done
4618 IFS="$lt_save_ifs"
4619 done
4620 : ${lt_cv_path_NM=no}
4621 fi
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4624 $as_echo "$lt_cv_path_NM" >&6; }
4625 if test "$lt_cv_path_NM" != "no"; then
4626 NM="$lt_cv_path_NM"
4627 else
4628 # Didn't find any BSD compatible name lister, look for dumpbin.
4629 if test -n "$ac_tool_prefix"; then
4630 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4631 do
4632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$DUMPBIN"; then
4640 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 fi
4658 fi
4659 DUMPBIN=$ac_cv_prog_DUMPBIN
4660 if test -n "$DUMPBIN"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4662 $as_echo "$DUMPBIN" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667
4668
4669 test -n "$DUMPBIN" && break
4670 done
4671 fi
4672 if test -z "$DUMPBIN"; then
4673 ac_ct_DUMPBIN=$DUMPBIN
4674 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4675 do
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677 set dummy $ac_prog; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$ac_ct_DUMPBIN"; then
4684 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4704 if test -n "$ac_ct_DUMPBIN"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4706 $as_echo "$ac_ct_DUMPBIN" >&6; }
4707 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4711
4712
4713 test -n "$ac_ct_DUMPBIN" && break
4714 done
4715
4716 if test "x$ac_ct_DUMPBIN" = x; then
4717 DUMPBIN=":"
4718 else
4719 case $cross_compiling:$ac_tool_warned in
4720 yes:)
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723 ac_tool_warned=yes ;;
4724 esac
4725 DUMPBIN=$ac_ct_DUMPBIN
4726 fi
4727 fi
4728
4729
4730 if test "$DUMPBIN" != ":"; then
4731 NM="$DUMPBIN"
4732 fi
4733 fi
4734 test -z "$NM" && NM=nm
4735
4736
4737
4738
4739
4740
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4742 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4743 if test "${lt_cv_nm_interface+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 lt_cv_nm_interface="BSD nm"
4747 echo "int some_variable = 0;" > conftest.$ac_ext
4748 (eval echo "\"\$as_me:4748: $ac_compile\"" >&5)
4749 (eval "$ac_compile" 2>conftest.err)
4750 cat conftest.err >&5
4751 (eval echo "\"\$as_me:4751: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4752 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4753 cat conftest.err >&5
4754 (eval echo "\"\$as_me:4754: output\"" >&5)
4755 cat conftest.out >&5
4756 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4757 lt_cv_nm_interface="MS dumpbin"
4758 fi
4759 rm -f conftest*
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4762 $as_echo "$lt_cv_nm_interface" >&6; }
4763
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4765 $as_echo_n "checking whether ln -s works... " >&6; }
4766 LN_S=$as_ln_s
4767 if test "$LN_S" = "ln -s"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4769 $as_echo "yes" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4772 $as_echo "no, using $LN_S" >&6; }
4773 fi
4774
4775 # find the maximum length of command line arguments
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4777 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4778 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 i=0
4782 teststring="ABCD"
4783
4784 case $build_os in
4785 msdosdjgpp*)
4786 # On DJGPP, this test can blow up pretty badly due to problems in libc
4787 # (any single argument exceeding 2000 bytes causes a buffer overrun
4788 # during glob expansion). Even if it were fixed, the result of this
4789 # check would be larger than it should be.
4790 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4791 ;;
4792
4793 gnu*)
4794 # Under GNU Hurd, this test is not required because there is
4795 # no limit to the length of command line arguments.
4796 # Libtool will interpret -1 as no limit whatsoever
4797 lt_cv_sys_max_cmd_len=-1;
4798 ;;
4799
4800 cygwin* | mingw* | cegcc*)
4801 # On Win9x/ME, this test blows up -- it succeeds, but takes
4802 # about 5 minutes as the teststring grows exponentially.
4803 # Worse, since 9x/ME are not pre-emptively multitasking,
4804 # you end up with a "frozen" computer, even though with patience
4805 # the test eventually succeeds (with a max line length of 256k).
4806 # Instead, let's just punt: use the minimum linelength reported by
4807 # all of the supported platforms: 8192 (on NT/2K/XP).
4808 lt_cv_sys_max_cmd_len=8192;
4809 ;;
4810
4811 amigaos*)
4812 # On AmigaOS with pdksh, this test takes hours, literally.
4813 # So we just punt and use a minimum line length of 8192.
4814 lt_cv_sys_max_cmd_len=8192;
4815 ;;
4816
4817 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4818 # This has been around since 386BSD, at least. Likely further.
4819 if test -x /sbin/sysctl; then
4820 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4821 elif test -x /usr/sbin/sysctl; then
4822 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4823 else
4824 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4825 fi
4826 # And add a safety zone
4827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4829 ;;
4830
4831 interix*)
4832 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4833 lt_cv_sys_max_cmd_len=196608
4834 ;;
4835
4836 osf*)
4837 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4838 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4839 # nice to cause kernel panics so lets avoid the loop below.
4840 # First set a reasonable default.
4841 lt_cv_sys_max_cmd_len=16384
4842 #
4843 if test -x /sbin/sysconfig; then
4844 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4845 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4846 esac
4847 fi
4848 ;;
4849 sco3.2v5*)
4850 lt_cv_sys_max_cmd_len=102400
4851 ;;
4852 sysv5* | sco5v6* | sysv4.2uw2*)
4853 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4854 if test -n "$kargmax"; then
4855 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4856 else
4857 lt_cv_sys_max_cmd_len=32768
4858 fi
4859 ;;
4860 *)
4861 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4862 if test -n "$lt_cv_sys_max_cmd_len"; then
4863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4865 else
4866 # Make teststring a little bigger before we do anything with it.
4867 # a 1K string should be a reasonable start.
4868 for i in 1 2 3 4 5 6 7 8 ; do
4869 teststring=$teststring$teststring
4870 done
4871 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4872 # If test is not a shell built-in, we'll probably end up computing a
4873 # maximum length that is only half of the actual maximum length, but
4874 # we can't tell.
4875 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4876 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4877 test $i != 17 # 1/2 MB should be enough
4878 do
4879 i=`expr $i + 1`
4880 teststring=$teststring$teststring
4881 done
4882 # Only check the string length outside the loop.
4883 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4884 teststring=
4885 # Add a significant safety factor because C++ compilers can tack on
4886 # massive amounts of additional arguments before passing them to the
4887 # linker. It appears as though 1/2 is a usable value.
4888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4889 fi
4890 ;;
4891 esac
4892
4893 fi
4894
4895 if test -n $lt_cv_sys_max_cmd_len ; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4897 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4900 $as_echo "none" >&6; }
4901 fi
4902 max_cmd_len=$lt_cv_sys_max_cmd_len
4903
4904
4905
4906
4907
4908
4909 : ${CP="cp -f"}
4910 : ${MV="mv -f"}
4911 : ${RM="rm -f"}
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4914 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4915 # Try some XSI features
4916 xsi_shell=no
4917 ( _lt_dummy="a/b/c"
4918 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4919 = c,a/b,, \
4920 && eval 'test $(( 1 + 1 )) -eq 2 \
4921 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4922 && xsi_shell=yes
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4924 $as_echo "$xsi_shell" >&6; }
4925
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4928 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4929 lt_shell_append=no
4930 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4931 >/dev/null 2>&1 \
4932 && lt_shell_append=yes
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4934 $as_echo "$lt_shell_append" >&6; }
4935
4936
4937 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4938 lt_unset=unset
4939 else
4940 lt_unset=false
4941 fi
4942
4943
4944
4945
4946
4947 # test EBCDIC or ASCII
4948 case `echo X|tr X '\101'` in
4949 A) # ASCII based system
4950 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4951 lt_SP2NL='tr \040 \012'
4952 lt_NL2SP='tr \015\012 \040\040'
4953 ;;
4954 *) # EBCDIC based system
4955 lt_SP2NL='tr \100 \n'
4956 lt_NL2SP='tr \r\n \100\100'
4957 ;;
4958 esac
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4969 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4970 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 lt_cv_ld_reload_flag='-r'
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4976 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4977 reload_flag=$lt_cv_ld_reload_flag
4978 case $reload_flag in
4979 "" | " "*) ;;
4980 *) reload_flag=" $reload_flag" ;;
4981 esac
4982 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4983 case $host_os in
4984 darwin*)
4985 if test "$GCC" = yes; then
4986 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4987 else
4988 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4989 fi
4990 ;;
4991 esac
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5003 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$OBJDUMP"; then
5010 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 OBJDUMP=$ac_cv_prog_OBJDUMP
5030 if test -n "$OBJDUMP"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5032 $as_echo "$OBJDUMP" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038
5039 fi
5040 if test -z "$ac_cv_prog_OBJDUMP"; then
5041 ac_ct_OBJDUMP=$OBJDUMP
5042 # Extract the first word of "objdump", so it can be a program name with args.
5043 set dummy objdump; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$ac_ct_OBJDUMP"; then
5050 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063 done
5064 done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5070 if test -n "$ac_ct_OBJDUMP"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5072 $as_echo "$ac_ct_OBJDUMP" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078 if test "x$ac_ct_OBJDUMP" = x; then
5079 OBJDUMP="false"
5080 else
5081 case $cross_compiling:$ac_tool_warned in
5082 yes:)
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085 ac_tool_warned=yes ;;
5086 esac
5087 OBJDUMP=$ac_ct_OBJDUMP
5088 fi
5089 else
5090 OBJDUMP="$ac_cv_prog_OBJDUMP"
5091 fi
5092
5093 test -z "$OBJDUMP" && OBJDUMP=objdump
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5104 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5105 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 lt_cv_file_magic_cmd='$MAGIC_CMD'
5109 lt_cv_file_magic_test_file=
5110 lt_cv_deplibs_check_method='unknown'
5111 # Need to set the preceding variable on all platforms that support
5112 # interlibrary dependencies.
5113 # 'none' -- dependencies not supported.
5114 # `unknown' -- same as none, but documents that we really don't know.
5115 # 'pass_all' -- all dependencies passed with no checks.
5116 # 'test_compile' -- check by making test program.
5117 # 'file_magic [[regex]]' -- check by looking for files in library path
5118 # which responds to the $file_magic_cmd with a given extended regex.
5119 # If you have `file' or equivalent on your system and you're not sure
5120 # whether `pass_all' will *always* work, you probably want this one.
5121
5122 case $host_os in
5123 aix[4-9]*)
5124 lt_cv_deplibs_check_method=pass_all
5125 ;;
5126
5127 beos*)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5130
5131 bsdi[45]*)
5132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5133 lt_cv_file_magic_cmd='/usr/bin/file -L'
5134 lt_cv_file_magic_test_file=/shlib/libc.so
5135 ;;
5136
5137 cygwin*)
5138 # func_win32_libid is a shell function defined in ltmain.sh
5139 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5140 lt_cv_file_magic_cmd='func_win32_libid'
5141 ;;
5142
5143 mingw* | pw32*)
5144 # Base MSYS/MinGW do not provide the 'file' command needed by
5145 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5146 # unless we find 'file', for example because we are cross-compiling.
5147 if ( file / ) >/dev/null 2>&1; then
5148 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5149 lt_cv_file_magic_cmd='func_win32_libid'
5150 else
5151 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5152 lt_cv_file_magic_cmd='$OBJDUMP -f'
5153 fi
5154 ;;
5155
5156 cegcc)
5157 # use the weaker test based on 'objdump'. See mingw*.
5158 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5159 lt_cv_file_magic_cmd='$OBJDUMP -f'
5160 ;;
5161
5162 darwin* | rhapsody*)
5163 lt_cv_deplibs_check_method=pass_all
5164 ;;
5165
5166 freebsd* | dragonfly*)
5167 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5168 case $host_cpu in
5169 i*86 )
5170 # Not sure whether the presence of OpenBSD here was a mistake.
5171 # Let's accept both of them until this is cleared up.
5172 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5173 lt_cv_file_magic_cmd=/usr/bin/file
5174 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5175 ;;
5176 esac
5177 else
5178 lt_cv_deplibs_check_method=pass_all
5179 fi
5180 ;;
5181
5182 gnu*)
5183 lt_cv_deplibs_check_method=pass_all
5184 ;;
5185
5186 hpux10.20* | hpux11*)
5187 lt_cv_file_magic_cmd=/usr/bin/file
5188 case $host_cpu in
5189 ia64*)
5190 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5191 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5192 ;;
5193 hppa*64*)
5194 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]'
5195 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5196 ;;
5197 *)
5198 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5199 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5200 ;;
5201 esac
5202 ;;
5203
5204 interix[3-9]*)
5205 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5207 ;;
5208
5209 irix5* | irix6* | nonstopux*)
5210 case $LD in
5211 *-32|*"-32 ") libmagic=32-bit;;
5212 *-n32|*"-n32 ") libmagic=N32;;
5213 *-64|*"-64 ") libmagic=64-bit;;
5214 *) libmagic=never-match;;
5215 esac
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
5218
5219 # This must be Linux ELF.
5220 linux* | k*bsd*-gnu)
5221 lt_cv_deplibs_check_method=pass_all
5222 ;;
5223
5224 netbsd* | netbsdelf*-gnu)
5225 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5227 else
5228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5229 fi
5230 ;;
5231
5232 newos6*)
5233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5234 lt_cv_file_magic_cmd=/usr/bin/file
5235 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5236 ;;
5237
5238 *nto* | *qnx*)
5239 lt_cv_deplibs_check_method=pass_all
5240 ;;
5241
5242 openbsd*)
5243 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5245 else
5246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5247 fi
5248 ;;
5249
5250 osf3* | osf4* | osf5*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253
5254 rdos*)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257
5258 solaris*)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261
5262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
5265
5266 sysv4 | sysv4.3*)
5267 case $host_vendor in
5268 motorola)
5269 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]'
5270 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5271 ;;
5272 ncr)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275 sequent)
5276 lt_cv_file_magic_cmd='/bin/file'
5277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5278 ;;
5279 sni)
5280 lt_cv_file_magic_cmd='/bin/file'
5281 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5282 lt_cv_file_magic_test_file=/lib/libc.so
5283 ;;
5284 siemens)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287 pc)
5288 lt_cv_deplibs_check_method=pass_all
5289 ;;
5290 esac
5291 ;;
5292
5293 tpf*)
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5296 esac
5297
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5300 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5301 file_magic_cmd=$lt_cv_file_magic_cmd
5302 deplibs_check_method=$lt_cv_deplibs_check_method
5303 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316 if test -n "$ac_tool_prefix"; then
5317 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5318 set dummy ${ac_tool_prefix}ar; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if test "${ac_cv_prog_AR+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 if test -n "$AR"; then
5325 ac_cv_prog_AR="$AR" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_prog_AR="${ac_tool_prefix}ar"
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5337 fi
5338 done
5339 done
5340 IFS=$as_save_IFS
5341
5342 fi
5343 fi
5344 AR=$ac_cv_prog_AR
5345 if test -n "$AR"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5347 $as_echo "$AR" >&6; }
5348 else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 fi
5352
5353
5354 fi
5355 if test -z "$ac_cv_prog_AR"; then
5356 ac_ct_AR=$AR
5357 # Extract the first word of "ar", so it can be a program name with args.
5358 set dummy ar; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -n "$ac_ct_AR"; then
5365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_prog_ac_ct_AR="ar"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5377 fi
5378 done
5379 done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5385 if test -n "$ac_ct_AR"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5387 $as_echo "$ac_ct_AR" >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393 if test "x$ac_ct_AR" = x; then
5394 AR="false"
5395 else
5396 case $cross_compiling:$ac_tool_warned in
5397 yes:)
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5400 ac_tool_warned=yes ;;
5401 esac
5402 AR=$ac_ct_AR
5403 fi
5404 else
5405 AR="$ac_cv_prog_AR"
5406 fi
5407
5408 test -z "$AR" && AR=ar
5409 test -z "$AR_FLAGS" && AR_FLAGS=cru
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421 if test -n "$ac_tool_prefix"; then
5422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5423 set dummy ${ac_tool_prefix}strip; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if test "${ac_cv_prog_STRIP+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 if test -n "$STRIP"; then
5430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443 done
5444 done
5445 IFS=$as_save_IFS
5446
5447 fi
5448 fi
5449 STRIP=$ac_cv_prog_STRIP
5450 if test -n "$STRIP"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5452 $as_echo "$STRIP" >&6; }
5453 else
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456 fi
5457
5458
5459 fi
5460 if test -z "$ac_cv_prog_STRIP"; then
5461 ac_ct_STRIP=$STRIP
5462 # Extract the first word of "strip", so it can be a program name with args.
5463 set dummy strip; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -n "$ac_ct_STRIP"; then
5470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479 ac_cv_prog_ac_ct_STRIP="strip"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483 done
5484 done
5485 IFS=$as_save_IFS
5486
5487 fi
5488 fi
5489 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5490 if test -n "$ac_ct_STRIP"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5492 $as_echo "$ac_ct_STRIP" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497
5498 if test "x$ac_ct_STRIP" = x; then
5499 STRIP=":"
5500 else
5501 case $cross_compiling:$ac_tool_warned in
5502 yes:)
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505 ac_tool_warned=yes ;;
5506 esac
5507 STRIP=$ac_ct_STRIP
5508 fi
5509 else
5510 STRIP="$ac_cv_prog_STRIP"
5511 fi
5512
5513 test -z "$STRIP" && STRIP=:
5514
5515
5516
5517
5518
5519
5520 if test -n "$ac_tool_prefix"; then
5521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5522 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -n "$RANLIB"; then
5529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5541 fi
5542 done
5543 done
5544 IFS=$as_save_IFS
5545
5546 fi
5547 fi
5548 RANLIB=$ac_cv_prog_RANLIB
5549 if test -n "$RANLIB"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5551 $as_echo "$RANLIB" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557
5558 fi
5559 if test -z "$ac_cv_prog_RANLIB"; then
5560 ac_ct_RANLIB=$RANLIB
5561 # Extract the first word of "ranlib", so it can be a program name with args.
5562 set dummy ranlib; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$ac_ct_RANLIB"; then
5569 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_ac_ct_RANLIB="ranlib"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5581 fi
5582 done
5583 done
5584 IFS=$as_save_IFS
5585
5586 fi
5587 fi
5588 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5589 if test -n "$ac_ct_RANLIB"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5591 $as_echo "$ac_ct_RANLIB" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597 if test "x$ac_ct_RANLIB" = x; then
5598 RANLIB=":"
5599 else
5600 case $cross_compiling:$ac_tool_warned in
5601 yes:)
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5604 ac_tool_warned=yes ;;
5605 esac
5606 RANLIB=$ac_ct_RANLIB
5607 fi
5608 else
5609 RANLIB="$ac_cv_prog_RANLIB"
5610 fi
5611
5612 test -z "$RANLIB" && RANLIB=:
5613
5614
5615
5616
5617
5618
5619 # Determine commands to create old-style static archives.
5620 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5621 old_postinstall_cmds='chmod 644 $oldlib'
5622 old_postuninstall_cmds=
5623
5624 if test -n "$RANLIB"; then
5625 case $host_os in
5626 openbsd*)
5627 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5628 ;;
5629 *)
5630 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5631 ;;
5632 esac
5633 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5634 fi
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669 # If no C compiler was specified, use CC.
5670 LTCC=${LTCC-"$CC"}
5671
5672 # If no C compiler flags were specified, use CFLAGS.
5673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5674
5675 # Allow CC to be a program name with arguments.
5676 compiler=$CC
5677
5678
5679 # Check for command to grab the raw symbol name followed by C symbol from nm.
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5681 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5682 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685
5686 # These are sane defaults that work on at least a few old systems.
5687 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5688
5689 # Character class describing NM global symbol codes.
5690 symcode='[BCDEGRST]'
5691
5692 # Regexp to match symbols that can be accessed directly from C.
5693 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5694
5695 # Define system-specific variables.
5696 case $host_os in
5697 aix*)
5698 symcode='[BCDT]'
5699 ;;
5700 cygwin* | mingw* | pw32* | cegcc*)
5701 symcode='[ABCDGISTW]'
5702 ;;
5703 hpux*)
5704 if test "$host_cpu" = ia64; then
5705 symcode='[ABCDEGRST]'
5706 fi
5707 ;;
5708 irix* | nonstopux*)
5709 symcode='[BCDEGRST]'
5710 ;;
5711 osf*)
5712 symcode='[BCDEGQRST]'
5713 ;;
5714 solaris*)
5715 symcode='[BDRT]'
5716 ;;
5717 sco3.2v5*)
5718 symcode='[DT]'
5719 ;;
5720 sysv4.2uw2*)
5721 symcode='[DT]'
5722 ;;
5723 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5724 symcode='[ABDT]'
5725 ;;
5726 sysv4)
5727 symcode='[DFNSTU]'
5728 ;;
5729 esac
5730
5731 # If we're using GNU nm, then use its standard symbol codes.
5732 case `$NM -V 2>&1` in
5733 *GNU* | *'with BFD'*)
5734 symcode='[ABCDGIRSTW]' ;;
5735 esac
5736
5737 # Transform an extracted symbol line into a proper C declaration.
5738 # Some systems (esp. on ia64) link data and code symbols differently,
5739 # so use this general approach.
5740 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5741
5742 # Transform an extracted symbol line into symbol name and symbol address
5743 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5744 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5745
5746 # Handle CRLF in mingw tool chain
5747 opt_cr=
5748 case $build_os in
5749 mingw*)
5750 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5751 ;;
5752 esac
5753
5754 # Try without a prefix underscore, then with it.
5755 for ac_symprfx in "" "_"; do
5756
5757 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5758 symxfrm="\\1 $ac_symprfx\\2 \\2"
5759
5760 # Write the raw and C identifiers.
5761 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5762 # Fake it for dumpbin and say T for any non-static function
5763 # and D for any global variable.
5764 # Also find C++ and __fastcall symbols from MSVC++,
5765 # which start with @ or ?.
5766 lt_cv_sys_global_symbol_pipe="$AWK '"\
5767 " {last_section=section; section=\$ 3};"\
5768 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5769 " \$ 0!~/External *\|/{next};"\
5770 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5771 " {if(hide[section]) next};"\
5772 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5773 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5774 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5775 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5776 " ' prfx=^$ac_symprfx"
5777 else
5778 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5779 fi
5780
5781 # Check to see that the pipe works correctly.
5782 pipe_works=no
5783
5784 rm -f conftest*
5785 cat > conftest.$ac_ext <<_LT_EOF
5786 #ifdef __cplusplus
5787 extern "C" {
5788 #endif
5789 char nm_test_var;
5790 void nm_test_func(void);
5791 void nm_test_func(void){}
5792 #ifdef __cplusplus
5793 }
5794 #endif
5795 int main(){nm_test_var='a';nm_test_func();return(0);}
5796 _LT_EOF
5797
5798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5799 (eval $ac_compile) 2>&5
5800 ac_status=$?
5801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5802 test $ac_status = 0; }; then
5803 # Now try to grab the symbols.
5804 nlist=conftest.nm
5805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5806 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5807 ac_status=$?
5808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5809 test $ac_status = 0; } && test -s "$nlist"; then
5810 # Try sorting and uniquifying the output.
5811 if sort "$nlist" | uniq > "$nlist"T; then
5812 mv -f "$nlist"T "$nlist"
5813 else
5814 rm -f "$nlist"T
5815 fi
5816
5817 # Make sure that we snagged all the symbols we need.
5818 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5819 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5820 cat <<_LT_EOF > conftest.$ac_ext
5821 #ifdef __cplusplus
5822 extern "C" {
5823 #endif
5824
5825 _LT_EOF
5826 # Now generate the symbol file.
5827 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5828
5829 cat <<_LT_EOF >> conftest.$ac_ext
5830
5831 /* The mapping between symbol names and symbols. */
5832 const struct {
5833 const char *name;
5834 void *address;
5835 }
5836 lt__PROGRAM__LTX_preloaded_symbols[] =
5837 {
5838 { "@PROGRAM@", (void *) 0 },
5839 _LT_EOF
5840 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5841 cat <<\_LT_EOF >> conftest.$ac_ext
5842 {0, (void *) 0}
5843 };
5844
5845 /* This works around a problem in FreeBSD linker */
5846 #ifdef FREEBSD_WORKAROUND
5847 static const void *lt_preloaded_setup() {
5848 return lt__PROGRAM__LTX_preloaded_symbols;
5849 }
5850 #endif
5851
5852 #ifdef __cplusplus
5853 }
5854 #endif
5855 _LT_EOF
5856 # Now try linking the two files.
5857 mv conftest.$ac_objext conftstm.$ac_objext
5858 lt_save_LIBS="$LIBS"
5859 lt_save_CFLAGS="$CFLAGS"
5860 LIBS="conftstm.$ac_objext"
5861 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5863 (eval $ac_link) 2>&5
5864 ac_status=$?
5865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5867 pipe_works=yes
5868 fi
5869 LIBS="$lt_save_LIBS"
5870 CFLAGS="$lt_save_CFLAGS"
5871 else
5872 echo "cannot find nm_test_func in $nlist" >&5
5873 fi
5874 else
5875 echo "cannot find nm_test_var in $nlist" >&5
5876 fi
5877 else
5878 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5879 fi
5880 else
5881 echo "$progname: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5883 fi
5884 rm -rf conftest* conftst*
5885
5886 # Do not use the global_symbol_pipe unless it works.
5887 if test "$pipe_works" = yes; then
5888 break
5889 else
5890 lt_cv_sys_global_symbol_pipe=
5891 fi
5892 done
5893
5894 fi
5895
5896 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5897 lt_cv_sys_global_symbol_to_cdecl=
5898 fi
5899 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5901 $as_echo "failed" >&6; }
5902 else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5904 $as_echo "ok" >&6; }
5905 fi
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929 # Check whether --enable-libtool-lock was given.
5930 if test "${enable_libtool_lock+set}" = set; then :
5931 enableval=$enable_libtool_lock;
5932 fi
5933
5934 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5935
5936 # Some flags need to be propagated to the compiler or linker for good
5937 # libtool support.
5938 case $host in
5939 ia64-*-hpux*)
5940 # Find out which ABI we are using.
5941 echo 'int i;' > conftest.$ac_ext
5942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5943 (eval $ac_compile) 2>&5
5944 ac_status=$?
5945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946 test $ac_status = 0; }; then
5947 case `/usr/bin/file conftest.$ac_objext` in
5948 *ELF-32*)
5949 HPUX_IA64_MODE="32"
5950 ;;
5951 *ELF-64*)
5952 HPUX_IA64_MODE="64"
5953 ;;
5954 esac
5955 fi
5956 rm -rf conftest*
5957 ;;
5958 *-*-irix6*)
5959 # Find out which ABI we are using.
5960 echo '#line 5960 "configure"' > conftest.$ac_ext
5961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5962 (eval $ac_compile) 2>&5
5963 ac_status=$?
5964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5965 test $ac_status = 0; }; then
5966 if test "$lt_cv_prog_gnu_ld" = yes; then
5967 case `/usr/bin/file conftest.$ac_objext` in
5968 *32-bit*)
5969 LD="${LD-ld} -melf32bsmip"
5970 ;;
5971 *N32*)
5972 LD="${LD-ld} -melf32bmipn32"
5973 ;;
5974 *64-bit*)
5975 LD="${LD-ld} -melf64bmip"
5976 ;;
5977 esac
5978 else
5979 case `/usr/bin/file conftest.$ac_objext` in
5980 *32-bit*)
5981 LD="${LD-ld} -32"
5982 ;;
5983 *N32*)
5984 LD="${LD-ld} -n32"
5985 ;;
5986 *64-bit*)
5987 LD="${LD-ld} -64"
5988 ;;
5989 esac
5990 fi
5991 fi
5992 rm -rf conftest*
5993 ;;
5994
5995 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5996 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5997 # Find out which ABI we are using.
5998 echo 'int i;' > conftest.$ac_ext
5999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6000 (eval $ac_compile) 2>&5
6001 ac_status=$?
6002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003 test $ac_status = 0; }; then
6004 case `/usr/bin/file conftest.o` in
6005 *32-bit*)
6006 case $host in
6007 x86_64-*kfreebsd*-gnu)
6008 LD="${LD-ld} -m elf_i386_fbsd"
6009 ;;
6010 x86_64-*linux*)
6011 LD="${LD-ld} -m elf_i386"
6012 ;;
6013 ppc64-*linux*|powerpc64-*linux*)
6014 LD="${LD-ld} -m elf32ppclinux"
6015 ;;
6016 s390x-*linux*)
6017 LD="${LD-ld} -m elf_s390"
6018 ;;
6019 sparc64-*linux*)
6020 LD="${LD-ld} -m elf32_sparc"
6021 ;;
6022 esac
6023 ;;
6024 *64-bit*)
6025 case $host in
6026 x86_64-*kfreebsd*-gnu)
6027 LD="${LD-ld} -m elf_x86_64_fbsd"
6028 ;;
6029 x86_64-*linux*)
6030 LD="${LD-ld} -m elf_x86_64"
6031 ;;
6032 ppc*-*linux*|powerpc*-*linux*)
6033 LD="${LD-ld} -m elf64ppc"
6034 ;;
6035 s390*-*linux*|s390*-*tpf*)
6036 LD="${LD-ld} -m elf64_s390"
6037 ;;
6038 sparc*-*linux*)
6039 LD="${LD-ld} -m elf64_sparc"
6040 ;;
6041 esac
6042 ;;
6043 esac
6044 fi
6045 rm -rf conftest*
6046 ;;
6047
6048 *-*-sco3.2v5*)
6049 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6050 SAVE_CFLAGS="$CFLAGS"
6051 CFLAGS="$CFLAGS -belf"
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6053 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6054 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 ac_ext=c
6058 ac_cpp='$CPP $CPPFLAGS'
6059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6062
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065
6066 int
6067 main ()
6068 {
6069
6070 ;
6071 return 0;
6072 }
6073 _ACEOF
6074 if ac_fn_c_try_link "$LINENO"; then :
6075 lt_cv_cc_needs_belf=yes
6076 else
6077 lt_cv_cc_needs_belf=no
6078 fi
6079 rm -f core conftest.err conftest.$ac_objext \
6080 conftest$ac_exeext conftest.$ac_ext
6081 ac_ext=c
6082 ac_cpp='$CPP $CPPFLAGS'
6083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6089 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6090 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6091 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6092 CFLAGS="$SAVE_CFLAGS"
6093 fi
6094 ;;
6095 sparc*-*solaris*)
6096 # Find out which ABI we are using.
6097 echo 'int i;' > conftest.$ac_ext
6098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6099 (eval $ac_compile) 2>&5
6100 ac_status=$?
6101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102 test $ac_status = 0; }; then
6103 case `/usr/bin/file conftest.o` in
6104 *64-bit*)
6105 case $lt_cv_prog_gnu_ld in
6106 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6107 *)
6108 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6109 LD="${LD-ld} -64"
6110 fi
6111 ;;
6112 esac
6113 ;;
6114 esac
6115 fi
6116 rm -rf conftest*
6117 ;;
6118 esac
6119
6120 need_locks="$enable_libtool_lock"
6121
6122
6123 case $host_os in
6124 rhapsody* | darwin*)
6125 if test -n "$ac_tool_prefix"; then
6126 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6127 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129 $as_echo_n "checking for $ac_word... " >&6; }
6130 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6131 $as_echo_n "(cached) " >&6
6132 else
6133 if test -n "$DSYMUTIL"; then
6134 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6143 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147 done
6148 done
6149 IFS=$as_save_IFS
6150
6151 fi
6152 fi
6153 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6154 if test -n "$DSYMUTIL"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6156 $as_echo "$DSYMUTIL" >&6; }
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159 $as_echo "no" >&6; }
6160 fi
6161
6162
6163 fi
6164 if test -z "$ac_cv_prog_DSYMUTIL"; then
6165 ac_ct_DSYMUTIL=$DSYMUTIL
6166 # Extract the first word of "dsymutil", so it can be a program name with args.
6167 set dummy dsymutil; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 if test -n "$ac_ct_DSYMUTIL"; then
6174 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187 done
6188 done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6194 if test -n "$ac_ct_DSYMUTIL"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6196 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6197 else
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202 if test "x$ac_ct_DSYMUTIL" = x; then
6203 DSYMUTIL=":"
6204 else
6205 case $cross_compiling:$ac_tool_warned in
6206 yes:)
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209 ac_tool_warned=yes ;;
6210 esac
6211 DSYMUTIL=$ac_ct_DSYMUTIL
6212 fi
6213 else
6214 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6215 fi
6216
6217 if test -n "$ac_tool_prefix"; then
6218 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6219 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221 $as_echo_n "checking for $ac_word... " >&6; }
6222 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 if test -n "$NMEDIT"; then
6226 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6227 else
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6235 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 break 2
6238 fi
6239 done
6240 done
6241 IFS=$as_save_IFS
6242
6243 fi
6244 fi
6245 NMEDIT=$ac_cv_prog_NMEDIT
6246 if test -n "$NMEDIT"; then
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6248 $as_echo "$NMEDIT" >&6; }
6249 else
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251 $as_echo "no" >&6; }
6252 fi
6253
6254
6255 fi
6256 if test -z "$ac_cv_prog_NMEDIT"; then
6257 ac_ct_NMEDIT=$NMEDIT
6258 # Extract the first word of "nmedit", so it can be a program name with args.
6259 set dummy nmedit; ac_word=$2
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261 $as_echo_n "checking for $ac_word... " >&6; }
6262 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 if test -n "$ac_ct_NMEDIT"; then
6266 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6278 fi
6279 done
6280 done
6281 IFS=$as_save_IFS
6282
6283 fi
6284 fi
6285 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6286 if test -n "$ac_ct_NMEDIT"; then
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6288 $as_echo "$ac_ct_NMEDIT" >&6; }
6289 else
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 $as_echo "no" >&6; }
6292 fi
6293
6294 if test "x$ac_ct_NMEDIT" = x; then
6295 NMEDIT=":"
6296 else
6297 case $cross_compiling:$ac_tool_warned in
6298 yes:)
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301 ac_tool_warned=yes ;;
6302 esac
6303 NMEDIT=$ac_ct_NMEDIT
6304 fi
6305 else
6306 NMEDIT="$ac_cv_prog_NMEDIT"
6307 fi
6308
6309 if test -n "$ac_tool_prefix"; then
6310 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6311 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if test "${ac_cv_prog_LIPO+set}" = set; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 if test -n "$LIPO"; then
6318 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335 fi
6336 fi
6337 LIPO=$ac_cv_prog_LIPO
6338 if test -n "$LIPO"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6340 $as_echo "$LIPO" >&6; }
6341 else
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6344 fi
6345
6346
6347 fi
6348 if test -z "$ac_cv_prog_LIPO"; then
6349 ac_ct_LIPO=$LIPO
6350 # Extract the first word of "lipo", so it can be a program name with args.
6351 set dummy lipo; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 if test -n "$ac_ct_LIPO"; then
6358 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_prog_ac_ct_LIPO="lipo"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6370 fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6378 if test -n "$ac_ct_LIPO"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6380 $as_echo "$ac_ct_LIPO" >&6; }
6381 else
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386 if test "x$ac_ct_LIPO" = x; then
6387 LIPO=":"
6388 else
6389 case $cross_compiling:$ac_tool_warned in
6390 yes:)
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395 LIPO=$ac_ct_LIPO
6396 fi
6397 else
6398 LIPO="$ac_cv_prog_LIPO"
6399 fi
6400
6401 if test -n "$ac_tool_prefix"; then
6402 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6403 set dummy ${ac_tool_prefix}otool; ac_word=$2
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 if test -n "$OTOOL"; then
6410 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423 done
6424 done
6425 IFS=$as_save_IFS
6426
6427 fi
6428 fi
6429 OTOOL=$ac_cv_prog_OTOOL
6430 if test -n "$OTOOL"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6432 $as_echo "$OTOOL" >&6; }
6433 else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6436 fi
6437
6438
6439 fi
6440 if test -z "$ac_cv_prog_OTOOL"; then
6441 ac_ct_OTOOL=$OTOOL
6442 # Extract the first word of "otool", so it can be a program name with args.
6443 set dummy otool; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if test -n "$ac_ct_OTOOL"; then
6450 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_prog_ac_ct_OTOOL="otool"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463 done
6464 done
6465 IFS=$as_save_IFS
6466
6467 fi
6468 fi
6469 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6470 if test -n "$ac_ct_OTOOL"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6472 $as_echo "$ac_ct_OTOOL" >&6; }
6473 else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6476 fi
6477
6478 if test "x$ac_ct_OTOOL" = x; then
6479 OTOOL=":"
6480 else
6481 case $cross_compiling:$ac_tool_warned in
6482 yes:)
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485 ac_tool_warned=yes ;;
6486 esac
6487 OTOOL=$ac_ct_OTOOL
6488 fi
6489 else
6490 OTOOL="$ac_cv_prog_OTOOL"
6491 fi
6492
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 if test -n "$OTOOL64"; then
6502 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 OTOOL64=$ac_cv_prog_OTOOL64
6522 if test -n "$OTOOL64"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6524 $as_echo "$OTOOL64" >&6; }
6525 else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530
6531 fi
6532 if test -z "$ac_cv_prog_OTOOL64"; then
6533 ac_ct_OTOOL64=$OTOOL64
6534 # Extract the first word of "otool64", so it can be a program name with args.
6535 set dummy otool64; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$ac_ct_OTOOL64"; then
6542 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_ac_ct_OTOOL64="otool64"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6562 if test -n "$ac_ct_OTOOL64"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6564 $as_echo "$ac_ct_OTOOL64" >&6; }
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570 if test "x$ac_ct_OTOOL64" = x; then
6571 OTOOL64=":"
6572 else
6573 case $cross_compiling:$ac_tool_warned in
6574 yes:)
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577 ac_tool_warned=yes ;;
6578 esac
6579 OTOOL64=$ac_ct_OTOOL64
6580 fi
6581 else
6582 OTOOL64="$ac_cv_prog_OTOOL64"
6583 fi
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6612 $as_echo_n "checking for -single_module linker flag... " >&6; }
6613 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 lt_cv_apple_cc_single_mod=no
6617 if test -z "${LT_MULTI_MODULE}"; then
6618 # By default we will add the -single_module flag. You can override
6619 # by either setting the environment variable LT_MULTI_MODULE
6620 # non-empty at configure time, or by adding -multi_module to the
6621 # link flags.
6622 rm -rf libconftest.dylib*
6623 echo "int foo(void){return 1;}" > conftest.c
6624 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6625 -dynamiclib -Wl,-single_module conftest.c" >&5
6626 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6627 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6628 _lt_result=$?
6629 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6630 lt_cv_apple_cc_single_mod=yes
6631 else
6632 cat conftest.err >&5
6633 fi
6634 rm -rf libconftest.dylib*
6635 rm -f conftest.*
6636 fi
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6639 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6641 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6642 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 lt_cv_ld_exported_symbols_list=no
6646 save_LDFLAGS=$LDFLAGS
6647 echo "_main" > conftest.sym
6648 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6651
6652 int
6653 main ()
6654 {
6655
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 if ac_fn_c_try_link "$LINENO"; then :
6661 lt_cv_ld_exported_symbols_list=yes
6662 else
6663 lt_cv_ld_exported_symbols_list=no
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext conftest.$ac_ext
6667 LDFLAGS="$save_LDFLAGS"
6668
6669 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6671 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6672 case $host_os in
6673 rhapsody* | darwin1.[012])
6674 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6675 darwin1.*)
6676 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6677 darwin*) # darwin 5.x on
6678 # if running on 10.5 or later, the deployment target defaults
6679 # to the OS version, if on x86, and 10.4, the deployment
6680 # target defaults to 10.4. Don't you love it?
6681 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6682 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6683 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6684 10.[012]*)
6685 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6686 10.*)
6687 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6688 esac
6689 ;;
6690 esac
6691 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6692 _lt_dar_single_mod='$single_module'
6693 fi
6694 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6695 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6696 else
6697 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6698 fi
6699 if test "$DSYMUTIL" != ":"; then
6700 _lt_dsymutil='~$DSYMUTIL $lib || :'
6701 else
6702 _lt_dsymutil=
6703 fi
6704 ;;
6705 esac
6706
6707 ac_ext=c
6708 ac_cpp='$CPP $CPPFLAGS'
6709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6713 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6714 # On Suns, sometimes $CPP names a directory.
6715 if test -n "$CPP" && test -d "$CPP"; then
6716 CPP=
6717 fi
6718 if test -z "$CPP"; then
6719 if test "${ac_cv_prog_CPP+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 # Double quotes because CPP needs to be expanded
6723 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6724 do
6725 ac_preproc_ok=false
6726 for ac_c_preproc_warn_flag in '' yes
6727 do
6728 # Use a header file that comes with gcc, so configuring glibc
6729 # with a fresh cross-compiler works.
6730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6731 # <limits.h> exists even on freestanding compilers.
6732 # On the NeXT, cc -E runs the code through the compiler's parser,
6733 # not just through cpp. "Syntax error" is here to catch this case.
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 #ifdef __STDC__
6737 # include <limits.h>
6738 #else
6739 # include <assert.h>
6740 #endif
6741 Syntax error
6742 _ACEOF
6743 if ac_fn_c_try_cpp "$LINENO"; then :
6744
6745 else
6746 # Broken: fails on valid input.
6747 continue
6748 fi
6749 rm -f conftest.err conftest.$ac_ext
6750
6751 # OK, works on sane cases. Now check whether nonexistent headers
6752 # can be detected and how.
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 #include <ac_nonexistent.h>
6756 _ACEOF
6757 if ac_fn_c_try_cpp "$LINENO"; then :
6758 # Broken: success on invalid input.
6759 continue
6760 else
6761 # Passes both tests.
6762 ac_preproc_ok=:
6763 break
6764 fi
6765 rm -f conftest.err conftest.$ac_ext
6766
6767 done
6768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6769 rm -f conftest.err conftest.$ac_ext
6770 if $ac_preproc_ok; then :
6771 break
6772 fi
6773
6774 done
6775 ac_cv_prog_CPP=$CPP
6776
6777 fi
6778 CPP=$ac_cv_prog_CPP
6779 else
6780 ac_cv_prog_CPP=$CPP
6781 fi
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6783 $as_echo "$CPP" >&6; }
6784 ac_preproc_ok=false
6785 for ac_c_preproc_warn_flag in '' yes
6786 do
6787 # Use a header file that comes with gcc, so configuring glibc
6788 # with a fresh cross-compiler works.
6789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6790 # <limits.h> exists even on freestanding compilers.
6791 # On the NeXT, cc -E runs the code through the compiler's parser,
6792 # not just through cpp. "Syntax error" is here to catch this case.
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 #ifdef __STDC__
6796 # include <limits.h>
6797 #else
6798 # include <assert.h>
6799 #endif
6800 Syntax error
6801 _ACEOF
6802 if ac_fn_c_try_cpp "$LINENO"; then :
6803
6804 else
6805 # Broken: fails on valid input.
6806 continue
6807 fi
6808 rm -f conftest.err conftest.$ac_ext
6809
6810 # OK, works on sane cases. Now check whether nonexistent headers
6811 # can be detected and how.
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 #include <ac_nonexistent.h>
6815 _ACEOF
6816 if ac_fn_c_try_cpp "$LINENO"; then :
6817 # Broken: success on invalid input.
6818 continue
6819 else
6820 # Passes both tests.
6821 ac_preproc_ok=:
6822 break
6823 fi
6824 rm -f conftest.err conftest.$ac_ext
6825
6826 done
6827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6828 rm -f conftest.err conftest.$ac_ext
6829 if $ac_preproc_ok; then :
6830
6831 else
6832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6834 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6835 See \`config.log' for more details." "$LINENO" 5; }
6836 fi
6837
6838 ac_ext=c
6839 ac_cpp='$CPP $CPPFLAGS'
6840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6843
6844
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6846 $as_echo_n "checking for ANSI C header files... " >&6; }
6847 if test "${ac_cv_header_stdc+set}" = set; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <stdlib.h>
6853 #include <stdarg.h>
6854 #include <string.h>
6855 #include <float.h>
6856
6857 int
6858 main ()
6859 {
6860
6861 ;
6862 return 0;
6863 }
6864 _ACEOF
6865 if ac_fn_c_try_compile "$LINENO"; then :
6866 ac_cv_header_stdc=yes
6867 else
6868 ac_cv_header_stdc=no
6869 fi
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871
6872 if test $ac_cv_header_stdc = yes; then
6873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 #include <string.h>
6877
6878 _ACEOF
6879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6880 $EGREP "memchr" >/dev/null 2>&1; then :
6881
6882 else
6883 ac_cv_header_stdc=no
6884 fi
6885 rm -f conftest*
6886
6887 fi
6888
6889 if test $ac_cv_header_stdc = yes; then
6890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6893 #include <stdlib.h>
6894
6895 _ACEOF
6896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897 $EGREP "free" >/dev/null 2>&1; then :
6898
6899 else
6900 ac_cv_header_stdc=no
6901 fi
6902 rm -f conftest*
6903
6904 fi
6905
6906 if test $ac_cv_header_stdc = yes; then
6907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6908 if test "$cross_compiling" = yes; then :
6909 :
6910 else
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 #include <ctype.h>
6914 #include <stdlib.h>
6915 #if ((' ' & 0x0FF) == 0x020)
6916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6918 #else
6919 # define ISLOWER(c) \
6920 (('a' <= (c) && (c) <= 'i') \
6921 || ('j' <= (c) && (c) <= 'r') \
6922 || ('s' <= (c) && (c) <= 'z'))
6923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6924 #endif
6925
6926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6927 int
6928 main ()
6929 {
6930 int i;
6931 for (i = 0; i < 256; i++)
6932 if (XOR (islower (i), ISLOWER (i))
6933 || toupper (i) != TOUPPER (i))
6934 return 2;
6935 return 0;
6936 }
6937 _ACEOF
6938 if ac_fn_c_try_run "$LINENO"; then :
6939
6940 else
6941 ac_cv_header_stdc=no
6942 fi
6943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6944 conftest.$ac_objext conftest.beam conftest.$ac_ext
6945 fi
6946
6947 fi
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6950 $as_echo "$ac_cv_header_stdc" >&6; }
6951 if test $ac_cv_header_stdc = yes; then
6952
6953 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6954
6955 fi
6956
6957 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6959 inttypes.h stdint.h unistd.h
6960 do :
6961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6963 "
6964 eval as_val=\$$as_ac_Header
6965 if test "x$as_val" = x""yes; then :
6966 cat >>confdefs.h <<_ACEOF
6967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6968 _ACEOF
6969
6970 fi
6971
6972 done
6973
6974
6975 for ac_header in dlfcn.h
6976 do :
6977 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6978 "
6979 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6980 cat >>confdefs.h <<_ACEOF
6981 #define HAVE_DLFCN_H 1
6982 _ACEOF
6983
6984 fi
6985
6986 done
6987
6988
6989
6990 # Set options
6991
6992
6993
6994 enable_dlopen=no
6995
6996
6997 enable_win32_dll=no
6998
6999
7000 # Check whether --enable-shared was given.
7001 if test "${enable_shared+set}" = set; then :
7002 enableval=$enable_shared; p=${PACKAGE-default}
7003 case $enableval in
7004 yes) enable_shared=yes ;;
7005 no) enable_shared=no ;;
7006 *)
7007 enable_shared=no
7008 # Look at the argument we got. We use all the common list separators.
7009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7010 for pkg in $enableval; do
7011 IFS="$lt_save_ifs"
7012 if test "X$pkg" = "X$p"; then
7013 enable_shared=yes
7014 fi
7015 done
7016 IFS="$lt_save_ifs"
7017 ;;
7018 esac
7019 else
7020 enable_shared=yes
7021 fi
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031 # Check whether --enable-static was given.
7032 if test "${enable_static+set}" = set; then :
7033 enableval=$enable_static; p=${PACKAGE-default}
7034 case $enableval in
7035 yes) enable_static=yes ;;
7036 no) enable_static=no ;;
7037 *)
7038 enable_static=no
7039 # Look at the argument we got. We use all the common list separators.
7040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7041 for pkg in $enableval; do
7042 IFS="$lt_save_ifs"
7043 if test "X$pkg" = "X$p"; then
7044 enable_static=yes
7045 fi
7046 done
7047 IFS="$lt_save_ifs"
7048 ;;
7049 esac
7050 else
7051 enable_static=yes
7052 fi
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063 # Check whether --with-pic was given.
7064 if test "${with_pic+set}" = set; then :
7065 withval=$with_pic; pic_mode="$withval"
7066 else
7067 pic_mode=default
7068 fi
7069
7070
7071 test -z "$pic_mode" && pic_mode=default
7072
7073
7074
7075
7076
7077
7078
7079 # Check whether --enable-fast-install was given.
7080 if test "${enable_fast_install+set}" = set; then :
7081 enableval=$enable_fast_install; p=${PACKAGE-default}
7082 case $enableval in
7083 yes) enable_fast_install=yes ;;
7084 no) enable_fast_install=no ;;
7085 *)
7086 enable_fast_install=no
7087 # Look at the argument we got. We use all the common list separators.
7088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7089 for pkg in $enableval; do
7090 IFS="$lt_save_ifs"
7091 if test "X$pkg" = "X$p"; then
7092 enable_fast_install=yes
7093 fi
7094 done
7095 IFS="$lt_save_ifs"
7096 ;;
7097 esac
7098 else
7099 enable_fast_install=yes
7100 fi
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112 # This can be used to rebuild libtool when needed
7113 LIBTOOL_DEPS="$ltmain"
7114
7115 # Always use our own libtool.
7116 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142 test -z "$LN_S" && LN_S="ln -s"
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157 if test -n "${ZSH_VERSION+set}" ; then
7158 setopt NO_GLOB_SUBST
7159 fi
7160
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7162 $as_echo_n "checking for objdir... " >&6; }
7163 if test "${lt_cv_objdir+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 rm -f .libs 2>/dev/null
7167 mkdir .libs 2>/dev/null
7168 if test -d .libs; then
7169 lt_cv_objdir=.libs
7170 else
7171 # MS-DOS does not allow filenames that begin with a dot.
7172 lt_cv_objdir=_libs
7173 fi
7174 rmdir .libs 2>/dev/null
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7177 $as_echo "$lt_cv_objdir" >&6; }
7178 objdir=$lt_cv_objdir
7179
7180
7181
7182
7183
7184 cat >>confdefs.h <<_ACEOF
7185 #define LT_OBJDIR "$lt_cv_objdir/"
7186 _ACEOF
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 case $host_os in
7205 aix3*)
7206 # AIX sometimes has problems with the GCC collect2 program. For some
7207 # reason, if we set the COLLECT_NAMES environment variable, the problems
7208 # vanish in a puff of smoke.
7209 if test "X${COLLECT_NAMES+set}" != Xset; then
7210 COLLECT_NAMES=
7211 export COLLECT_NAMES
7212 fi
7213 ;;
7214 esac
7215
7216 # Sed substitution that helps us do robust quoting. It backslashifies
7217 # metacharacters that are still active within double-quoted strings.
7218 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7219
7220 # Same as above, but do not quote variable references.
7221 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7222
7223 # Sed substitution to delay expansion of an escaped shell variable in a
7224 # double_quote_subst'ed string.
7225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7226
7227 # Sed substitution to delay expansion of an escaped single quote.
7228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7229
7230 # Sed substitution to avoid accidental globbing in evaled expressions
7231 no_glob_subst='s/\*/\\\*/g'
7232
7233 # Global variables:
7234 ofile=libtool
7235 can_build_shared=yes
7236
7237 # All known linkers require a `.a' archive for static linking (except MSVC,
7238 # which needs '.lib').
7239 libext=a
7240
7241 with_gnu_ld="$lt_cv_prog_gnu_ld"
7242
7243 old_CC="$CC"
7244 old_CFLAGS="$CFLAGS"
7245
7246 # Set sane defaults for various variables
7247 test -z "$CC" && CC=cc
7248 test -z "$LTCC" && LTCC=$CC
7249 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7250 test -z "$LD" && LD=ld
7251 test -z "$ac_objext" && ac_objext=o
7252
7253 for cc_temp in $compiler""; do
7254 case $cc_temp in
7255 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7256 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7257 \-*) ;;
7258 *) break;;
7259 esac
7260 done
7261 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7262
7263
7264 # Only perform the check for file, if the check method requires it
7265 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7266 case $deplibs_check_method in
7267 file_magic*)
7268 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7270 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7271 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 case $MAGIC_CMD in
7275 [\\/*] | ?:[\\/]*)
7276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7277 ;;
7278 *)
7279 lt_save_MAGIC_CMD="$MAGIC_CMD"
7280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7281 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7282 for ac_dir in $ac_dummy; do
7283 IFS="$lt_save_ifs"
7284 test -z "$ac_dir" && ac_dir=.
7285 if test -f $ac_dir/${ac_tool_prefix}file; then
7286 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7287 if test -n "$file_magic_test_file"; then
7288 case $deplibs_check_method in
7289 "file_magic "*)
7290 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7292 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7293 $EGREP "$file_magic_regex" > /dev/null; then
7294 :
7295 else
7296 cat <<_LT_EOF 1>&2
7297
7298 *** Warning: the command libtool uses to detect shared libraries,
7299 *** $file_magic_cmd, produces output that libtool cannot recognize.
7300 *** The result is that libtool may fail to recognize shared libraries
7301 *** as such. This will affect the creation of libtool libraries that
7302 *** depend on shared libraries, but programs linked with such libtool
7303 *** libraries will work regardless of this problem. Nevertheless, you
7304 *** may want to report the problem to your system manager and/or to
7305 *** [email protected]
7306
7307 _LT_EOF
7308 fi ;;
7309 esac
7310 fi
7311 break
7312 fi
7313 done
7314 IFS="$lt_save_ifs"
7315 MAGIC_CMD="$lt_save_MAGIC_CMD"
7316 ;;
7317 esac
7318 fi
7319
7320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7321 if test -n "$MAGIC_CMD"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7323 $as_echo "$MAGIC_CMD" >&6; }
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 fi
7328
7329
7330
7331
7332
7333 if test -z "$lt_cv_path_MAGIC_CMD"; then
7334 if test -n "$ac_tool_prefix"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7336 $as_echo_n "checking for file... " >&6; }
7337 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 case $MAGIC_CMD in
7341 [\\/*] | ?:[\\/]*)
7342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7343 ;;
7344 *)
7345 lt_save_MAGIC_CMD="$MAGIC_CMD"
7346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7347 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7348 for ac_dir in $ac_dummy; do
7349 IFS="$lt_save_ifs"
7350 test -z "$ac_dir" && ac_dir=.
7351 if test -f $ac_dir/file; then
7352 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7353 if test -n "$file_magic_test_file"; then
7354 case $deplibs_check_method in
7355 "file_magic "*)
7356 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7358 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7359 $EGREP "$file_magic_regex" > /dev/null; then
7360 :
7361 else
7362 cat <<_LT_EOF 1>&2
7363
7364 *** Warning: the command libtool uses to detect shared libraries,
7365 *** $file_magic_cmd, produces output that libtool cannot recognize.
7366 *** The result is that libtool may fail to recognize shared libraries
7367 *** as such. This will affect the creation of libtool libraries that
7368 *** depend on shared libraries, but programs linked with such libtool
7369 *** libraries will work regardless of this problem. Nevertheless, you
7370 *** may want to report the problem to your system manager and/or to
7371 *** [email protected]
7372
7373 _LT_EOF
7374 fi ;;
7375 esac
7376 fi
7377 break
7378 fi
7379 done
7380 IFS="$lt_save_ifs"
7381 MAGIC_CMD="$lt_save_MAGIC_CMD"
7382 ;;
7383 esac
7384 fi
7385
7386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7387 if test -n "$MAGIC_CMD"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7389 $as_echo "$MAGIC_CMD" >&6; }
7390 else
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 fi
7394
7395
7396 else
7397 MAGIC_CMD=:
7398 fi
7399 fi
7400
7401 fi
7402 ;;
7403 esac
7404
7405 # Use C for the default configuration in the libtool script
7406
7407 lt_save_CC="$CC"
7408 ac_ext=c
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413
7414
7415 # Source file extension for C test sources.
7416 ac_ext=c
7417
7418 # Object file extension for compiled C test sources.
7419 objext=o
7420 objext=$objext
7421
7422 # Code to be used in simple compile tests
7423 lt_simple_compile_test_code="int some_variable = 0;"
7424
7425 # Code to be used in simple link tests
7426 lt_simple_link_test_code='int main(){return(0);}'
7427
7428
7429
7430
7431
7432
7433
7434 # If no C compiler was specified, use CC.
7435 LTCC=${LTCC-"$CC"}
7436
7437 # If no C compiler flags were specified, use CFLAGS.
7438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7439
7440 # Allow CC to be a program name with arguments.
7441 compiler=$CC
7442
7443 # Save the default compiler, since it gets overwritten when the other
7444 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7445 compiler_DEFAULT=$CC
7446
7447 # save warnings/boilerplate of simple test code
7448 ac_outfile=conftest.$ac_objext
7449 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7450 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7451 _lt_compiler_boilerplate=`cat conftest.err`
7452 $RM conftest*
7453
7454 ac_outfile=conftest.$ac_objext
7455 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7456 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7457 _lt_linker_boilerplate=`cat conftest.err`
7458 $RM -r conftest*
7459
7460
7461 if test -n "$compiler"; then
7462
7463 lt_prog_compiler_no_builtin_flag=
7464
7465 if test "$GCC" = yes; then
7466 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7467
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7469 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7470 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 lt_cv_prog_compiler_rtti_exceptions=no
7474 ac_outfile=conftest.$ac_objext
7475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7476 lt_compiler_flag="-fno-rtti -fno-exceptions"
7477 # Insert the option either (1) after the last *FLAGS variable, or
7478 # (2) before a word containing "conftest.", or (3) at the end.
7479 # Note that $ac_compile itself does not contain backslashes and begins
7480 # with a dollar sign (not a hyphen), so the echo should work correctly.
7481 # The option is referenced via a variable to avoid confusing sed.
7482 lt_compile=`echo "$ac_compile" | $SED \
7483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7485 -e 's:$: $lt_compiler_flag:'`
7486 (eval echo "\"\$as_me:7486: $lt_compile\"" >&5)
7487 (eval "$lt_compile" 2>conftest.err)
7488 ac_status=$?
7489 cat conftest.err >&5
7490 echo "$as_me:7490: \$? = $ac_status" >&5
7491 if (exit $ac_status) && test -s "$ac_outfile"; then
7492 # The compiler can only warn and ignore the option if not recognized
7493 # So say no if there are warnings other than the usual output.
7494 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7497 lt_cv_prog_compiler_rtti_exceptions=yes
7498 fi
7499 fi
7500 $RM conftest*
7501
7502 fi
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7504 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7505
7506 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7507 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7508 else
7509 :
7510 fi
7511
7512 fi
7513
7514
7515
7516
7517
7518
7519 lt_prog_compiler_wl=
7520 lt_prog_compiler_pic=
7521 lt_prog_compiler_static=
7522
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7524 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7525
7526 if test "$GCC" = yes; then
7527 lt_prog_compiler_wl='-Wl,'
7528 lt_prog_compiler_static='-static'
7529
7530 case $host_os in
7531 aix*)
7532 # All AIX code is PIC.
7533 if test "$host_cpu" = ia64; then
7534 # AIX 5 now supports IA64 processor
7535 lt_prog_compiler_static='-Bstatic'
7536 fi
7537 ;;
7538
7539 amigaos*)
7540 case $host_cpu in
7541 powerpc)
7542 # see comment about AmigaOS4 .so support
7543 lt_prog_compiler_pic='-fPIC'
7544 ;;
7545 m68k)
7546 # FIXME: we need at least 68020 code to build shared libraries, but
7547 # adding the `-m68020' flag to GCC prevents building anything better,
7548 # like `-m68040'.
7549 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7550 ;;
7551 esac
7552 ;;
7553
7554 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7555 # PIC is the default for these OSes.
7556 ;;
7557
7558 mingw* | cygwin* | pw32* | os2* | cegcc*)
7559 # This hack is so that the source file can tell whether it is being
7560 # built for inclusion in a dll (and should export symbols for example).
7561 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7562 # (--disable-auto-import) libraries
7563 lt_prog_compiler_pic='-DDLL_EXPORT'
7564 ;;
7565
7566 darwin* | rhapsody*)
7567 # PIC is the default on this platform
7568 # Common symbols not allowed in MH_DYLIB files
7569 lt_prog_compiler_pic='-fno-common'
7570 ;;
7571
7572 hpux*)
7573 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7574 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7575 # sets the default TLS model and affects inlining.
7576 case $host_cpu in
7577 hppa*64*)
7578 # +Z the default
7579 ;;
7580 *)
7581 lt_prog_compiler_pic='-fPIC'
7582 ;;
7583 esac
7584 ;;
7585
7586 interix[3-9]*)
7587 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7588 # Instead, we relocate shared libraries at runtime.
7589 ;;
7590
7591 msdosdjgpp*)
7592 # Just because we use GCC doesn't mean we suddenly get shared libraries
7593 # on systems that don't support them.
7594 lt_prog_compiler_can_build_shared=no
7595 enable_shared=no
7596 ;;
7597
7598 *nto* | *qnx*)
7599 # QNX uses GNU C++, but need to define -shared option too, otherwise
7600 # it will coredump.
7601 lt_prog_compiler_pic='-fPIC -shared'
7602 ;;
7603
7604 sysv4*MP*)
7605 if test -d /usr/nec; then
7606 lt_prog_compiler_pic=-Kconform_pic
7607 fi
7608 ;;
7609
7610 *)
7611 lt_prog_compiler_pic='-fPIC'
7612 ;;
7613 esac
7614 else
7615 # PORTME Check for flag to pass linker flags through the system compiler.
7616 case $host_os in
7617 aix*)
7618 lt_prog_compiler_wl='-Wl,'
7619 if test "$host_cpu" = ia64; then
7620 # AIX 5 now supports IA64 processor
7621 lt_prog_compiler_static='-Bstatic'
7622 else
7623 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7624 fi
7625 ;;
7626
7627 mingw* | cygwin* | pw32* | os2* | cegcc*)
7628 # This hack is so that the source file can tell whether it is being
7629 # built for inclusion in a dll (and should export symbols for example).
7630 lt_prog_compiler_pic='-DDLL_EXPORT'
7631 ;;
7632
7633 hpux9* | hpux10* | hpux11*)
7634 lt_prog_compiler_wl='-Wl,'
7635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7636 # not for PA HP-UX.
7637 case $host_cpu in
7638 hppa*64*|ia64*)
7639 # +Z the default
7640 ;;
7641 *)
7642 lt_prog_compiler_pic='+Z'
7643 ;;
7644 esac
7645 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7646 lt_prog_compiler_static='${wl}-a ${wl}archive'
7647 ;;
7648
7649 irix5* | irix6* | nonstopux*)
7650 lt_prog_compiler_wl='-Wl,'
7651 # PIC (with -KPIC) is the default.
7652 lt_prog_compiler_static='-non_shared'
7653 ;;
7654
7655 linux* | k*bsd*-gnu)
7656 case $cc_basename in
7657 # old Intel for x86_64 which still supported -KPIC.
7658 ecc*)
7659 lt_prog_compiler_wl='-Wl,'
7660 lt_prog_compiler_pic='-KPIC'
7661 lt_prog_compiler_static='-static'
7662 ;;
7663 # icc used to be incompatible with GCC.
7664 # ICC 10 doesn't accept -KPIC any more.
7665 icc* | ifort*)
7666 lt_prog_compiler_wl='-Wl,'
7667 lt_prog_compiler_pic='-fPIC'
7668 lt_prog_compiler_static='-static'
7669 ;;
7670 # Lahey Fortran 8.1.
7671 lf95*)
7672 lt_prog_compiler_wl='-Wl,'
7673 lt_prog_compiler_pic='--shared'
7674 lt_prog_compiler_static='--static'
7675 ;;
7676 pgcc* | pgf77* | pgf90* | pgf95*)
7677 # Portland Group compilers (*not* the Pentium gcc compiler,
7678 # which looks to be a dead project)
7679 lt_prog_compiler_wl='-Wl,'
7680 lt_prog_compiler_pic='-fpic'
7681 lt_prog_compiler_static='-Bstatic'
7682 ;;
7683 ccc*)
7684 lt_prog_compiler_wl='-Wl,'
7685 # All Alpha code is PIC.
7686 lt_prog_compiler_static='-non_shared'
7687 ;;
7688 xl*)
7689 # IBM XL C 8.0/Fortran 10.1 on PPC
7690 lt_prog_compiler_wl='-Wl,'
7691 lt_prog_compiler_pic='-qpic'
7692 lt_prog_compiler_static='-qstaticlink'
7693 ;;
7694 *)
7695 case `$CC -V 2>&1 | sed 5q` in
7696 *Sun\ C*)
7697 # Sun C 5.9
7698 lt_prog_compiler_pic='-KPIC'
7699 lt_prog_compiler_static='-Bstatic'
7700 lt_prog_compiler_wl='-Wl,'
7701 ;;
7702 *Sun\ F*)
7703 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7704 lt_prog_compiler_pic='-KPIC'
7705 lt_prog_compiler_static='-Bstatic'
7706 lt_prog_compiler_wl=''
7707 ;;
7708 esac
7709 ;;
7710 esac
7711 ;;
7712
7713 newsos6)
7714 lt_prog_compiler_pic='-KPIC'
7715 lt_prog_compiler_static='-Bstatic'
7716 ;;
7717
7718 *nto* | *qnx*)
7719 # QNX uses GNU C++, but need to define -shared option too, otherwise
7720 # it will coredump.
7721 lt_prog_compiler_pic='-fPIC -shared'
7722 ;;
7723
7724 osf3* | osf4* | osf5*)
7725 lt_prog_compiler_wl='-Wl,'
7726 # All OSF/1 code is PIC.
7727 lt_prog_compiler_static='-non_shared'
7728 ;;
7729
7730 rdos*)
7731 lt_prog_compiler_static='-non_shared'
7732 ;;
7733
7734 solaris*)
7735 lt_prog_compiler_pic='-KPIC'
7736 lt_prog_compiler_static='-Bstatic'
7737 case $cc_basename in
7738 f77* | f90* | f95*)
7739 lt_prog_compiler_wl='-Qoption ld ';;
7740 *)
7741 lt_prog_compiler_wl='-Wl,';;
7742 esac
7743 ;;
7744
7745 sunos4*)
7746 lt_prog_compiler_wl='-Qoption ld '
7747 lt_prog_compiler_pic='-PIC'
7748 lt_prog_compiler_static='-Bstatic'
7749 ;;
7750
7751 sysv4 | sysv4.2uw2* | sysv4.3*)
7752 lt_prog_compiler_wl='-Wl,'
7753 lt_prog_compiler_pic='-KPIC'
7754 lt_prog_compiler_static='-Bstatic'
7755 ;;
7756
7757 sysv4*MP*)
7758 if test -d /usr/nec ;then
7759 lt_prog_compiler_pic='-Kconform_pic'
7760 lt_prog_compiler_static='-Bstatic'
7761 fi
7762 ;;
7763
7764 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7765 lt_prog_compiler_wl='-Wl,'
7766 lt_prog_compiler_pic='-KPIC'
7767 lt_prog_compiler_static='-Bstatic'
7768 ;;
7769
7770 unicos*)
7771 lt_prog_compiler_wl='-Wl,'
7772 lt_prog_compiler_can_build_shared=no
7773 ;;
7774
7775 uts4*)
7776 lt_prog_compiler_pic='-pic'
7777 lt_prog_compiler_static='-Bstatic'
7778 ;;
7779
7780 *)
7781 lt_prog_compiler_can_build_shared=no
7782 ;;
7783 esac
7784 fi
7785
7786 case $host_os in
7787 # For platforms which do not support PIC, -DPIC is meaningless:
7788 *djgpp*)
7789 lt_prog_compiler_pic=
7790 ;;
7791 *)
7792 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7793 ;;
7794 esac
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7796 $as_echo "$lt_prog_compiler_pic" >&6; }
7797
7798
7799
7800
7801
7802
7803 #
7804 # Check to make sure the PIC flag actually works.
7805 #
7806 if test -n "$lt_prog_compiler_pic"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7808 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7809 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 lt_cv_prog_compiler_pic_works=no
7813 ac_outfile=conftest.$ac_objext
7814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7815 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7816 # Insert the option either (1) after the last *FLAGS variable, or
7817 # (2) before a word containing "conftest.", or (3) at the end.
7818 # Note that $ac_compile itself does not contain backslashes and begins
7819 # with a dollar sign (not a hyphen), so the echo should work correctly.
7820 # The option is referenced via a variable to avoid confusing sed.
7821 lt_compile=`echo "$ac_compile" | $SED \
7822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7824 -e 's:$: $lt_compiler_flag:'`
7825 (eval echo "\"\$as_me:7825: $lt_compile\"" >&5)
7826 (eval "$lt_compile" 2>conftest.err)
7827 ac_status=$?
7828 cat conftest.err >&5
7829 echo "$as_me:7829: \$? = $ac_status" >&5
7830 if (exit $ac_status) && test -s "$ac_outfile"; then
7831 # The compiler can only warn and ignore the option if not recognized
7832 # So say no if there are warnings other than the usual output.
7833 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7836 lt_cv_prog_compiler_pic_works=yes
7837 fi
7838 fi
7839 $RM conftest*
7840
7841 fi
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7843 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7844
7845 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7846 case $lt_prog_compiler_pic in
7847 "" | " "*) ;;
7848 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7849 esac
7850 else
7851 lt_prog_compiler_pic=
7852 lt_prog_compiler_can_build_shared=no
7853 fi
7854
7855 fi
7856
7857
7858
7859
7860
7861
7862 #
7863 # Check to make sure the static flag actually works.
7864 #
7865 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7867 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7868 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 lt_cv_prog_compiler_static_works=no
7872 save_LDFLAGS="$LDFLAGS"
7873 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7874 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7875 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7876 # The linker can only warn and ignore the option if not recognized
7877 # So say no if there are warnings
7878 if test -s conftest.err; then
7879 # Append any errors to the config.log.
7880 cat conftest.err 1>&5
7881 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7883 if diff conftest.exp conftest.er2 >/dev/null; then
7884 lt_cv_prog_compiler_static_works=yes
7885 fi
7886 else
7887 lt_cv_prog_compiler_static_works=yes
7888 fi
7889 fi
7890 $RM -r conftest*
7891 LDFLAGS="$save_LDFLAGS"
7892
7893 fi
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7895 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7896
7897 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7898 :
7899 else
7900 lt_prog_compiler_static=
7901 fi
7902
7903
7904
7905
7906
7907
7908
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7910 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7911 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 lt_cv_prog_compiler_c_o=no
7915 $RM -r conftest 2>/dev/null
7916 mkdir conftest
7917 cd conftest
7918 mkdir out
7919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7920
7921 lt_compiler_flag="-o out/conftest2.$ac_objext"
7922 # Insert the option either (1) after the last *FLAGS variable, or
7923 # (2) before a word containing "conftest.", or (3) at the end.
7924 # Note that $ac_compile itself does not contain backslashes and begins
7925 # with a dollar sign (not a hyphen), so the echo should work correctly.
7926 lt_compile=`echo "$ac_compile" | $SED \
7927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7929 -e 's:$: $lt_compiler_flag:'`
7930 (eval echo "\"\$as_me:7930: $lt_compile\"" >&5)
7931 (eval "$lt_compile" 2>out/conftest.err)
7932 ac_status=$?
7933 cat out/conftest.err >&5
7934 echo "$as_me:7934: \$? = $ac_status" >&5
7935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7936 then
7937 # The compiler can only warn and ignore the option if not recognized
7938 # So say no if there are warnings
7939 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7942 lt_cv_prog_compiler_c_o=yes
7943 fi
7944 fi
7945 chmod u+w . 2>&5
7946 $RM conftest*
7947 # SGI C++ compiler will create directory out/ii_files/ for
7948 # template instantiation
7949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7950 $RM out/* && rmdir out
7951 cd ..
7952 $RM -r conftest
7953 $RM conftest*
7954
7955 fi
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7957 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7958
7959
7960
7961
7962
7963
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7965 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7966 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 lt_cv_prog_compiler_c_o=no
7970 $RM -r conftest 2>/dev/null
7971 mkdir conftest
7972 cd conftest
7973 mkdir out
7974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7975
7976 lt_compiler_flag="-o out/conftest2.$ac_objext"
7977 # Insert the option either (1) after the last *FLAGS variable, or
7978 # (2) before a word containing "conftest.", or (3) at the end.
7979 # Note that $ac_compile itself does not contain backslashes and begins
7980 # with a dollar sign (not a hyphen), so the echo should work correctly.
7981 lt_compile=`echo "$ac_compile" | $SED \
7982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7984 -e 's:$: $lt_compiler_flag:'`
7985 (eval echo "\"\$as_me:7985: $lt_compile\"" >&5)
7986 (eval "$lt_compile" 2>out/conftest.err)
7987 ac_status=$?
7988 cat out/conftest.err >&5
7989 echo "$as_me:7989: \$? = $ac_status" >&5
7990 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7991 then
7992 # The compiler can only warn and ignore the option if not recognized
7993 # So say no if there are warnings
7994 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7995 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7996 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7997 lt_cv_prog_compiler_c_o=yes
7998 fi
7999 fi
8000 chmod u+w . 2>&5
8001 $RM conftest*
8002 # SGI C++ compiler will create directory out/ii_files/ for
8003 # template instantiation
8004 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8005 $RM out/* && rmdir out
8006 cd ..
8007 $RM -r conftest
8008 $RM conftest*
8009
8010 fi
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8012 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8013
8014
8015
8016
8017 hard_links="nottested"
8018 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8019 # do not overwrite the value of need_locks provided by the user
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8021 $as_echo_n "checking if we can lock with hard links... " >&6; }
8022 hard_links=yes
8023 $RM conftest*
8024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8025 touch conftest.a
8026 ln conftest.a conftest.b 2>&5 || hard_links=no
8027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8029 $as_echo "$hard_links" >&6; }
8030 if test "$hard_links" = no; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8032 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8033 need_locks=warn
8034 fi
8035 else
8036 need_locks=no
8037 fi
8038
8039
8040
8041
8042
8043
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8045 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8046
8047 runpath_var=
8048 allow_undefined_flag=
8049 always_export_symbols=no
8050 archive_cmds=
8051 archive_expsym_cmds=
8052 compiler_needs_object=no
8053 enable_shared_with_static_runtimes=no
8054 export_dynamic_flag_spec=
8055 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8056 hardcode_automatic=no
8057 hardcode_direct=no
8058 hardcode_direct_absolute=no
8059 hardcode_libdir_flag_spec=
8060 hardcode_libdir_flag_spec_ld=
8061 hardcode_libdir_separator=
8062 hardcode_minus_L=no
8063 hardcode_shlibpath_var=unsupported
8064 inherit_rpath=no
8065 link_all_deplibs=unknown
8066 module_cmds=
8067 module_expsym_cmds=
8068 old_archive_from_new_cmds=
8069 old_archive_from_expsyms_cmds=
8070 thread_safe_flag_spec=
8071 whole_archive_flag_spec=
8072 # include_expsyms should be a list of space-separated symbols to be *always*
8073 # included in the symbol list
8074 include_expsyms=
8075 # exclude_expsyms can be an extended regexp of symbols to exclude
8076 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8077 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8078 # as well as any symbol that contains `d'.
8079 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8080 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8081 # platforms (ab)use it in PIC code, but their linkers get confused if
8082 # the symbol is explicitly referenced. Since portable code cannot
8083 # rely on this symbol name, it's probably fine to never include it in
8084 # preloaded symbol tables.
8085 # Exclude shared library initialization/finalization symbols.
8086 extract_expsyms_cmds=
8087
8088 case $host_os in
8089 cygwin* | mingw* | pw32* | cegcc*)
8090 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8091 # When not using gcc, we currently assume that we are using
8092 # Microsoft Visual C++.
8093 if test "$GCC" != yes; then
8094 with_gnu_ld=no
8095 fi
8096 ;;
8097 interix*)
8098 # we just hope/assume this is gcc and not c89 (= MSVC++)
8099 with_gnu_ld=yes
8100 ;;
8101 openbsd*)
8102 with_gnu_ld=no
8103 ;;
8104 linux* | k*bsd*-gnu)
8105 link_all_deplibs=no
8106 ;;
8107 esac
8108
8109 ld_shlibs=yes
8110 if test "$with_gnu_ld" = yes; then
8111 # If archive_cmds runs LD, not CC, wlarc should be empty
8112 wlarc='${wl}'
8113
8114 # Set some defaults for GNU ld with shared library support. These
8115 # are reset later if shared libraries are not supported. Putting them
8116 # here allows them to be overridden if necessary.
8117 runpath_var=LD_RUN_PATH
8118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8119 export_dynamic_flag_spec='${wl}--export-dynamic'
8120 # ancient GNU ld didn't support --whole-archive et. al.
8121 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8122 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8123 else
8124 whole_archive_flag_spec=
8125 fi
8126 supports_anon_versioning=no
8127 case `$LD -v 2>&1` in
8128 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8129 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8130 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8131 *\ 2.11.*) ;; # other 2.11 versions
8132 *) supports_anon_versioning=yes ;;
8133 esac
8134
8135 # See if GNU ld supports shared libraries.
8136 case $host_os in
8137 aix[3-9]*)
8138 # On AIX/PPC, the GNU linker is very broken
8139 if test "$host_cpu" != ia64; then
8140 ld_shlibs=no
8141 cat <<_LT_EOF 1>&2
8142
8143 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8144 *** to be unable to reliably create shared libraries on AIX.
8145 *** Therefore, libtool is disabling shared libraries support. If you
8146 *** really care for shared libraries, you may want to modify your PATH
8147 *** so that a non-GNU linker is found, and then restart.
8148
8149 _LT_EOF
8150 fi
8151 ;;
8152
8153 amigaos*)
8154 case $host_cpu in
8155 powerpc)
8156 # see comment about AmigaOS4 .so support
8157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8158 archive_expsym_cmds=''
8159 ;;
8160 m68k)
8161 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)'
8162 hardcode_libdir_flag_spec='-L$libdir'
8163 hardcode_minus_L=yes
8164 ;;
8165 esac
8166 ;;
8167
8168 beos*)
8169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8170 allow_undefined_flag=unsupported
8171 # Joseph Beckenbach <[email protected]> says some releases of gcc
8172 # support --undefined. This deserves some investigation. FIXME
8173 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174 else
8175 ld_shlibs=no
8176 fi
8177 ;;
8178
8179 cygwin* | mingw* | pw32* | cegcc*)
8180 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8181 # as there is no search path for DLLs.
8182 hardcode_libdir_flag_spec='-L$libdir'
8183 allow_undefined_flag=unsupported
8184 always_export_symbols=no
8185 enable_shared_with_static_runtimes=yes
8186 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8187
8188 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8190 # If the export-symbols file already is a .def file (1st line
8191 # is EXPORTS), use it as is; otherwise, prepend...
8192 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8193 cp $export_symbols $output_objdir/$soname.def;
8194 else
8195 echo EXPORTS > $output_objdir/$soname.def;
8196 cat $export_symbols >> $output_objdir/$soname.def;
8197 fi~
8198 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8199 else
8200 ld_shlibs=no
8201 fi
8202 ;;
8203
8204 interix[3-9]*)
8205 hardcode_direct=no
8206 hardcode_shlibpath_var=no
8207 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8208 export_dynamic_flag_spec='${wl}-E'
8209 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8210 # Instead, shared libraries are loaded at an image base (0x10000000 by
8211 # default) and relocated if they conflict, which is a slow very memory
8212 # consuming and fragmenting process. To avoid this, we pick a random,
8213 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8214 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8215 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8216 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8217 ;;
8218
8219 gnu* | linux* | tpf* | k*bsd*-gnu)
8220 tmp_diet=no
8221 if test "$host_os" = linux-dietlibc; then
8222 case $cc_basename in
8223 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8224 esac
8225 fi
8226 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8227 && test "$tmp_diet" = no
8228 then
8229 tmp_addflag=
8230 tmp_sharedflag='-shared'
8231 case $cc_basename,$host_cpu in
8232 pgcc*) # Portland Group C compiler
8233 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'
8234 tmp_addflag=' $pic_flag'
8235 ;;
8236 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8237 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'
8238 tmp_addflag=' $pic_flag -Mnomain' ;;
8239 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8240 tmp_addflag=' -i_dynamic' ;;
8241 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8242 tmp_addflag=' -i_dynamic -nofor_main' ;;
8243 ifc* | ifort*) # Intel Fortran compiler
8244 tmp_addflag=' -nofor_main' ;;
8245 lf95*) # Lahey Fortran 8.1
8246 whole_archive_flag_spec=
8247 tmp_sharedflag='--shared' ;;
8248 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8249 tmp_sharedflag='-qmkshrobj'
8250 tmp_addflag= ;;
8251 esac
8252 case `$CC -V 2>&1 | sed 5q` in
8253 *Sun\ C*) # Sun C 5.9
8254 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8255 compiler_needs_object=yes
8256 tmp_sharedflag='-G' ;;
8257 *Sun\ F*) # Sun Fortran 8.3
8258 tmp_sharedflag='-G' ;;
8259 esac
8260 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261
8262 if test "x$supports_anon_versioning" = xyes; then
8263 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8264 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8265 echo "local: *; };" >> $output_objdir/$libname.ver~
8266 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8267 fi
8268
8269 case $cc_basename in
8270 xlf*)
8271 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8272 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8273 hardcode_libdir_flag_spec=
8274 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8275 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8276 if test "x$supports_anon_versioning" = xyes; then
8277 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8278 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8279 echo "local: *; };" >> $output_objdir/$libname.ver~
8280 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8281 fi
8282 ;;
8283 esac
8284 else
8285 ld_shlibs=no
8286 fi
8287 ;;
8288
8289 netbsd* | netbsdelf*-gnu)
8290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8291 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8292 wlarc=
8293 else
8294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8296 fi
8297 ;;
8298
8299 solaris*)
8300 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8301 ld_shlibs=no
8302 cat <<_LT_EOF 1>&2
8303
8304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8305 *** create shared libraries on Solaris systems. Therefore, libtool
8306 *** is disabling shared libraries support. We urge you to upgrade GNU
8307 *** binutils to release 2.9.1 or newer. Another option is to modify
8308 *** your PATH or compiler configuration so that the native linker is
8309 *** used, and then restart.
8310
8311 _LT_EOF
8312 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8315 else
8316 ld_shlibs=no
8317 fi
8318 ;;
8319
8320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8321 case `$LD -v 2>&1` in
8322 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8323 ld_shlibs=no
8324 cat <<_LT_EOF 1>&2
8325
8326 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8327 *** reliably create shared libraries on SCO systems. Therefore, libtool
8328 *** is disabling shared libraries support. We urge you to upgrade GNU
8329 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8330 *** your PATH or compiler configuration so that the native linker is
8331 *** used, and then restart.
8332
8333 _LT_EOF
8334 ;;
8335 *)
8336 # For security reasons, it is highly recommended that you always
8337 # use absolute paths for naming shared libraries, and exclude the
8338 # DT_RUNPATH tag from executables and libraries. But doing so
8339 # requires that you compile everything twice, which is a pain.
8340 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8344 else
8345 ld_shlibs=no
8346 fi
8347 ;;
8348 esac
8349 ;;
8350
8351 sunos4*)
8352 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8353 wlarc=
8354 hardcode_direct=yes
8355 hardcode_shlibpath_var=no
8356 ;;
8357
8358 *)
8359 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8361 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8362 else
8363 ld_shlibs=no
8364 fi
8365 ;;
8366 esac
8367
8368 if test "$ld_shlibs" = no; then
8369 runpath_var=
8370 hardcode_libdir_flag_spec=
8371 export_dynamic_flag_spec=
8372 whole_archive_flag_spec=
8373 fi
8374 else
8375 # PORTME fill in a description of your system's linker (not GNU ld)
8376 case $host_os in
8377 aix3*)
8378 allow_undefined_flag=unsupported
8379 always_export_symbols=yes
8380 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'
8381 # Note: this linker hardcodes the directories in LIBPATH if there
8382 # are no directories specified by -L.
8383 hardcode_minus_L=yes
8384 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8385 # Neither direct hardcoding nor static linking is supported with a
8386 # broken collect2.
8387 hardcode_direct=unsupported
8388 fi
8389 ;;
8390
8391 aix[4-9]*)
8392 if test "$host_cpu" = ia64; then
8393 # On IA64, the linker does run time linking by default, so we don't
8394 # have to do anything special.
8395 aix_use_runtimelinking=no
8396 exp_sym_flag='-Bexport'
8397 no_entry_flag=""
8398 else
8399 # If we're using GNU nm, then we don't want the "-C" option.
8400 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8401 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8402 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'
8403 else
8404 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'
8405 fi
8406 aix_use_runtimelinking=no
8407
8408 # Test if we are trying to use run time linking or normal
8409 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8410 # need to do runtime linking.
8411 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8412 for ld_flag in $LDFLAGS; do
8413 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8414 aix_use_runtimelinking=yes
8415 break
8416 fi
8417 done
8418 ;;
8419 esac
8420
8421 exp_sym_flag='-bexport'
8422 no_entry_flag='-bnoentry'
8423 fi
8424
8425 # When large executables or shared objects are built, AIX ld can
8426 # have problems creating the table of contents. If linking a library
8427 # or program results in "error TOC overflow" add -mminimal-toc to
8428 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8430
8431 archive_cmds=''
8432 hardcode_direct=yes
8433 hardcode_direct_absolute=yes
8434 hardcode_libdir_separator=':'
8435 link_all_deplibs=yes
8436 file_list_spec='${wl}-f,'
8437
8438 if test "$GCC" = yes; then
8439 case $host_os in aix4.[012]|aix4.[012].*)
8440 # We only want to do this on AIX 4.2 and lower, the check
8441 # below for broken collect2 doesn't work under 4.3+
8442 collect2name=`${CC} -print-prog-name=collect2`
8443 if test -f "$collect2name" &&
8444 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8445 then
8446 # We have reworked collect2
8447 :
8448 else
8449 # We have old collect2
8450 hardcode_direct=unsupported
8451 # It fails to find uninstalled libraries when the uninstalled
8452 # path is not listed in the libpath. Setting hardcode_minus_L
8453 # to unsupported forces relinking
8454 hardcode_minus_L=yes
8455 hardcode_libdir_flag_spec='-L$libdir'
8456 hardcode_libdir_separator=
8457 fi
8458 ;;
8459 esac
8460 shared_flag='-shared'
8461 if test "$aix_use_runtimelinking" = yes; then
8462 shared_flag="$shared_flag "'${wl}-G'
8463 fi
8464 link_all_deplibs=no
8465 else
8466 # not using gcc
8467 if test "$host_cpu" = ia64; then
8468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8469 # chokes on -Wl,-G. The following line is correct:
8470 shared_flag='-G'
8471 else
8472 if test "$aix_use_runtimelinking" = yes; then
8473 shared_flag='${wl}-G'
8474 else
8475 shared_flag='${wl}-bM:SRE'
8476 fi
8477 fi
8478 fi
8479
8480 export_dynamic_flag_spec='${wl}-bexpall'
8481 # It seems that -bexpall does not export symbols beginning with
8482 # underscore (_), so it is better to generate a list of symbols to export.
8483 always_export_symbols=yes
8484 if test "$aix_use_runtimelinking" = yes; then
8485 # Warning - without using the other runtime loading flags (-brtl),
8486 # -berok will link without error, but may produce a broken library.
8487 allow_undefined_flag='-berok'
8488 # Determine the default libpath from the value encoded in an
8489 # empty executable.
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492
8493 int
8494 main ()
8495 {
8496
8497 ;
8498 return 0;
8499 }
8500 _ACEOF
8501 if ac_fn_c_try_link "$LINENO"; then :
8502
8503 lt_aix_libpath_sed='
8504 /Import File Strings/,/^$/ {
8505 /^0/ {
8506 s/^0 *\(.*\)$/\1/
8507 p
8508 }
8509 }'
8510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511 # Check for a 64-bit object if we didn't find anything.
8512 if test -z "$aix_libpath"; then
8513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8514 fi
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8519
8520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8521 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8522 else
8523 if test "$host_cpu" = ia64; then
8524 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8525 allow_undefined_flag="-z nodefs"
8526 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8527 else
8528 # Determine the default libpath from the value encoded in an
8529 # empty executable.
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532
8533 int
8534 main ()
8535 {
8536
8537 ;
8538 return 0;
8539 }
8540 _ACEOF
8541 if ac_fn_c_try_link "$LINENO"; then :
8542
8543 lt_aix_libpath_sed='
8544 /Import File Strings/,/^$/ {
8545 /^0/ {
8546 s/^0 *\(.*\)$/\1/
8547 p
8548 }
8549 }'
8550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8551 # Check for a 64-bit object if we didn't find anything.
8552 if test -z "$aix_libpath"; then
8553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8554 fi
8555 fi
8556 rm -f core conftest.err conftest.$ac_objext \
8557 conftest$ac_exeext conftest.$ac_ext
8558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8559
8560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8561 # Warning - without using the other run time loading flags,
8562 # -berok will link without error, but may produce a broken library.
8563 no_undefined_flag=' ${wl}-bernotok'
8564 allow_undefined_flag=' ${wl}-berok'
8565 # Exported symbols can be pulled into shared objects from archives
8566 whole_archive_flag_spec='$convenience'
8567 archive_cmds_need_lc=yes
8568 # This is similar to how AIX traditionally builds its shared libraries.
8569 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8570 fi
8571 fi
8572 ;;
8573
8574 amigaos*)
8575 case $host_cpu in
8576 powerpc)
8577 # see comment about AmigaOS4 .so support
8578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579 archive_expsym_cmds=''
8580 ;;
8581 m68k)
8582 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)'
8583 hardcode_libdir_flag_spec='-L$libdir'
8584 hardcode_minus_L=yes
8585 ;;
8586 esac
8587 ;;
8588
8589 bsdi[45]*)
8590 export_dynamic_flag_spec=-rdynamic
8591 ;;
8592
8593 cygwin* | mingw* | pw32* | cegcc*)
8594 # When not using gcc, we currently assume that we are using
8595 # Microsoft Visual C++.
8596 # hardcode_libdir_flag_spec is actually meaningless, as there is
8597 # no search path for DLLs.
8598 hardcode_libdir_flag_spec=' '
8599 allow_undefined_flag=unsupported
8600 # Tell ltmain to make .lib files, not .a files.
8601 libext=lib
8602 # Tell ltmain to make .dll files, not .so files.
8603 shrext_cmds=".dll"
8604 # FIXME: Setting linknames here is a bad hack.
8605 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8606 # The linker will automatically build a .lib file if we build a DLL.
8607 old_archive_from_new_cmds='true'
8608 # FIXME: Should let the user specify the lib program.
8609 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8610 fix_srcfile_path='`cygpath -w "$srcfile"`'
8611 enable_shared_with_static_runtimes=yes
8612 ;;
8613
8614 darwin* | rhapsody*)
8615
8616
8617 archive_cmds_need_lc=no
8618 hardcode_direct=no
8619 hardcode_automatic=yes
8620 hardcode_shlibpath_var=unsupported
8621 whole_archive_flag_spec=''
8622 link_all_deplibs=yes
8623 allow_undefined_flag="$_lt_dar_allow_undefined"
8624 case $cc_basename in
8625 ifort*) _lt_dar_can_shared=yes ;;
8626 *) _lt_dar_can_shared=$GCC ;;
8627 esac
8628 if test "$_lt_dar_can_shared" = "yes"; then
8629 output_verbose_link_cmd=echo
8630 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8631 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8632 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8633 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8634
8635 else
8636 ld_shlibs=no
8637 fi
8638
8639 ;;
8640
8641 dgux*)
8642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643 hardcode_libdir_flag_spec='-L$libdir'
8644 hardcode_shlibpath_var=no
8645 ;;
8646
8647 freebsd1*)
8648 ld_shlibs=no
8649 ;;
8650
8651 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8652 # support. Future versions do this automatically, but an explicit c++rt0.o
8653 # does not break anything, and helps significantly (at the cost of a little
8654 # extra space).
8655 freebsd2.2*)
8656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8657 hardcode_libdir_flag_spec='-R$libdir'
8658 hardcode_direct=yes
8659 hardcode_shlibpath_var=no
8660 ;;
8661
8662 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8663 freebsd2*)
8664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8665 hardcode_direct=yes
8666 hardcode_minus_L=yes
8667 hardcode_shlibpath_var=no
8668 ;;
8669
8670 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8671 freebsd* | dragonfly*)
8672 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8673 hardcode_libdir_flag_spec='-R$libdir'
8674 hardcode_direct=yes
8675 hardcode_shlibpath_var=no
8676 ;;
8677
8678 hpux9*)
8679 if test "$GCC" = yes; then
8680 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'
8681 else
8682 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'
8683 fi
8684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8685 hardcode_libdir_separator=:
8686 hardcode_direct=yes
8687
8688 # hardcode_minus_L: Not really in the search PATH,
8689 # but as the default location of the library.
8690 hardcode_minus_L=yes
8691 export_dynamic_flag_spec='${wl}-E'
8692 ;;
8693
8694 hpux10*)
8695 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8697 else
8698 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8699 fi
8700 if test "$with_gnu_ld" = no; then
8701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702 hardcode_libdir_flag_spec_ld='+b $libdir'
8703 hardcode_libdir_separator=:
8704 hardcode_direct=yes
8705 hardcode_direct_absolute=yes
8706 export_dynamic_flag_spec='${wl}-E'
8707 # hardcode_minus_L: Not really in the search PATH,
8708 # but as the default location of the library.
8709 hardcode_minus_L=yes
8710 fi
8711 ;;
8712
8713 hpux11*)
8714 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8715 case $host_cpu in
8716 hppa*64*)
8717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718 ;;
8719 ia64*)
8720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8721 ;;
8722 *)
8723 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8724 ;;
8725 esac
8726 else
8727 case $host_cpu in
8728 hppa*64*)
8729 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730 ;;
8731 ia64*)
8732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8733 ;;
8734 *)
8735 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8736 ;;
8737 esac
8738 fi
8739 if test "$with_gnu_ld" = no; then
8740 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8741 hardcode_libdir_separator=:
8742
8743 case $host_cpu in
8744 hppa*64*|ia64*)
8745 hardcode_direct=no
8746 hardcode_shlibpath_var=no
8747 ;;
8748 *)
8749 hardcode_direct=yes
8750 hardcode_direct_absolute=yes
8751 export_dynamic_flag_spec='${wl}-E'
8752
8753 # hardcode_minus_L: Not really in the search PATH,
8754 # but as the default location of the library.
8755 hardcode_minus_L=yes
8756 ;;
8757 esac
8758 fi
8759 ;;
8760
8761 irix5* | irix6* | nonstopux*)
8762 if test "$GCC" = yes; then
8763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8764 # Try to use the -exported_symbol ld option, if it does not
8765 # work, assume that -exports_file does not work either and
8766 # implicitly export all symbols.
8767 save_LDFLAGS="$LDFLAGS"
8768 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 int foo(void) {}
8772 _ACEOF
8773 if ac_fn_c_try_link "$LINENO"; then :
8774 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8775
8776 fi
8777 rm -f core conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8779 LDFLAGS="$save_LDFLAGS"
8780 else
8781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8783 fi
8784 archive_cmds_need_lc='no'
8785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786 hardcode_libdir_separator=:
8787 inherit_rpath=yes
8788 link_all_deplibs=yes
8789 ;;
8790
8791 netbsd* | netbsdelf*-gnu)
8792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8794 else
8795 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8796 fi
8797 hardcode_libdir_flag_spec='-R$libdir'
8798 hardcode_direct=yes
8799 hardcode_shlibpath_var=no
8800 ;;
8801
8802 newsos6)
8803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8804 hardcode_direct=yes
8805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8806 hardcode_libdir_separator=:
8807 hardcode_shlibpath_var=no
8808 ;;
8809
8810 *nto* | *qnx*)
8811 ;;
8812
8813 openbsd*)
8814 if test -f /usr/libexec/ld.so; then
8815 hardcode_direct=yes
8816 hardcode_shlibpath_var=no
8817 hardcode_direct_absolute=yes
8818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8820 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8822 export_dynamic_flag_spec='${wl}-E'
8823 else
8824 case $host_os in
8825 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8827 hardcode_libdir_flag_spec='-R$libdir'
8828 ;;
8829 *)
8830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832 ;;
8833 esac
8834 fi
8835 else
8836 ld_shlibs=no
8837 fi
8838 ;;
8839
8840 os2*)
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 hardcode_minus_L=yes
8843 allow_undefined_flag=unsupported
8844 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'
8845 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8846 ;;
8847
8848 osf3*)
8849 if test "$GCC" = yes; then
8850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8851 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8852 else
8853 allow_undefined_flag=' -expect_unresolved \*'
8854 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8855 fi
8856 archive_cmds_need_lc='no'
8857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8858 hardcode_libdir_separator=:
8859 ;;
8860
8861 osf4* | osf5*) # as osf3* with the addition of -msym flag
8862 if test "$GCC" = yes; then
8863 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8864 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866 else
8867 allow_undefined_flag=' -expect_unresolved \*'
8868 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8869 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8870 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8871
8872 # Both c and cxx compiler support -rpath directly
8873 hardcode_libdir_flag_spec='-rpath $libdir'
8874 fi
8875 archive_cmds_need_lc='no'
8876 hardcode_libdir_separator=:
8877 ;;
8878
8879 solaris*)
8880 no_undefined_flag=' -z defs'
8881 if test "$GCC" = yes; then
8882 wlarc='${wl}'
8883 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8884 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8885 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8886 else
8887 case `$CC -V 2>&1` in
8888 *"Compilers 5.0"*)
8889 wlarc=''
8890 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8893 ;;
8894 *)
8895 wlarc='${wl}'
8896 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8898 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8899 ;;
8900 esac
8901 fi
8902 hardcode_libdir_flag_spec='-R$libdir'
8903 hardcode_shlibpath_var=no
8904 case $host_os in
8905 solaris2.[0-5] | solaris2.[0-5].*) ;;
8906 *)
8907 # The compiler driver will combine and reorder linker options,
8908 # but understands `-z linker_flag'. GCC discards it without `$wl',
8909 # but is careful enough not to reorder.
8910 # Supported since Solaris 2.6 (maybe 2.5.1?)
8911 if test "$GCC" = yes; then
8912 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8913 else
8914 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8915 fi
8916 ;;
8917 esac
8918 link_all_deplibs=yes
8919 ;;
8920
8921 sunos4*)
8922 if test "x$host_vendor" = xsequent; then
8923 # Use $CC to link under sequent, because it throws in some extra .o
8924 # files that make .init and .fini sections work.
8925 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8926 else
8927 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8928 fi
8929 hardcode_libdir_flag_spec='-L$libdir'
8930 hardcode_direct=yes
8931 hardcode_minus_L=yes
8932 hardcode_shlibpath_var=no
8933 ;;
8934
8935 sysv4)
8936 case $host_vendor in
8937 sni)
8938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8939 hardcode_direct=yes # is this really true???
8940 ;;
8941 siemens)
8942 ## LD is ld it makes a PLAMLIB
8943 ## CC just makes a GrossModule.
8944 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8945 reload_cmds='$CC -r -o $output$reload_objs'
8946 hardcode_direct=no
8947 ;;
8948 motorola)
8949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8951 ;;
8952 esac
8953 runpath_var='LD_RUN_PATH'
8954 hardcode_shlibpath_var=no
8955 ;;
8956
8957 sysv4.3*)
8958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8959 hardcode_shlibpath_var=no
8960 export_dynamic_flag_spec='-Bexport'
8961 ;;
8962
8963 sysv4*MP*)
8964 if test -d /usr/nec; then
8965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8966 hardcode_shlibpath_var=no
8967 runpath_var=LD_RUN_PATH
8968 hardcode_runpath_var=yes
8969 ld_shlibs=yes
8970 fi
8971 ;;
8972
8973 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8974 no_undefined_flag='${wl}-z,text'
8975 archive_cmds_need_lc=no
8976 hardcode_shlibpath_var=no
8977 runpath_var='LD_RUN_PATH'
8978
8979 if test "$GCC" = yes; then
8980 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8981 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8982 else
8983 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8984 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8985 fi
8986 ;;
8987
8988 sysv5* | sco3.2v5* | sco5v6*)
8989 # Note: We can NOT use -z defs as we might desire, because we do not
8990 # link with -lc, and that would cause any symbols used from libc to
8991 # always be unresolved, which means just about no library would
8992 # ever link correctly. If we're not using GNU ld we use -z text
8993 # though, which does catch some bad symbols but isn't as heavy-handed
8994 # as -z defs.
8995 no_undefined_flag='${wl}-z,text'
8996 allow_undefined_flag='${wl}-z,nodefs'
8997 archive_cmds_need_lc=no
8998 hardcode_shlibpath_var=no
8999 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9000 hardcode_libdir_separator=':'
9001 link_all_deplibs=yes
9002 export_dynamic_flag_spec='${wl}-Bexport'
9003 runpath_var='LD_RUN_PATH'
9004
9005 if test "$GCC" = yes; then
9006 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9007 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9008 else
9009 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9010 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9011 fi
9012 ;;
9013
9014 uts4*)
9015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016 hardcode_libdir_flag_spec='-L$libdir'
9017 hardcode_shlibpath_var=no
9018 ;;
9019
9020 *)
9021 ld_shlibs=no
9022 ;;
9023 esac
9024
9025 if test x$host_vendor = xsni; then
9026 case $host in
9027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9028 export_dynamic_flag_spec='${wl}-Blargedynsym'
9029 ;;
9030 esac
9031 fi
9032 fi
9033
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9035 $as_echo "$ld_shlibs" >&6; }
9036 test "$ld_shlibs" = no && can_build_shared=no
9037
9038 with_gnu_ld=$with_gnu_ld
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054 #
9055 # Do we need to explicitly link libc?
9056 #
9057 case "x$archive_cmds_need_lc" in
9058 x|xyes)
9059 # Assume -lc should be added
9060 archive_cmds_need_lc=yes
9061
9062 if test "$enable_shared" = yes && test "$GCC" = yes; then
9063 case $archive_cmds in
9064 *'~'*)
9065 # FIXME: we may have to deal with multi-command sequences.
9066 ;;
9067 '$CC '*)
9068 # Test whether the compiler implicitly links with -lc since on some
9069 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9070 # to ld, don't add -lc before -lgcc.
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9072 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9073 $RM conftest*
9074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9075
9076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9077 (eval $ac_compile) 2>&5
9078 ac_status=$?
9079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9080 test $ac_status = 0; } 2>conftest.err; then
9081 soname=conftest
9082 lib=conftest
9083 libobjs=conftest.$ac_objext
9084 deplibs=
9085 wl=$lt_prog_compiler_wl
9086 pic_flag=$lt_prog_compiler_pic
9087 compiler_flags=-v
9088 linker_flags=-v
9089 verstring=
9090 output_objdir=.
9091 libname=conftest
9092 lt_save_allow_undefined_flag=$allow_undefined_flag
9093 allow_undefined_flag=
9094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9095 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9096 ac_status=$?
9097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9098 test $ac_status = 0; }
9099 then
9100 archive_cmds_need_lc=no
9101 else
9102 archive_cmds_need_lc=yes
9103 fi
9104 allow_undefined_flag=$lt_save_allow_undefined_flag
9105 else
9106 cat conftest.err 1>&5
9107 fi
9108 $RM conftest*
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9110 $as_echo "$archive_cmds_need_lc" >&6; }
9111 ;;
9112 esac
9113 fi
9114 ;;
9115 esac
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9274 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9275
9276 if test "$GCC" = yes; then
9277 case $host_os in
9278 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9279 *) lt_awk_arg="/^libraries:/" ;;
9280 esac
9281 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9282 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9283 # if the path contains ";" then we assume it to be the separator
9284 # otherwise default to the standard path separator (i.e. ":") - it is
9285 # assumed that no part of a normal pathname contains ";" but that should
9286 # okay in the real world where ";" in dirpaths is itself problematic.
9287 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9288 else
9289 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9290 fi
9291 # Ok, now we have the path, separated by spaces, we can step through it
9292 # and add multilib dir if necessary.
9293 lt_tmp_lt_search_path_spec=
9294 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9295 for lt_sys_path in $lt_search_path_spec; do
9296 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9298 else
9299 test -d "$lt_sys_path" && \
9300 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9301 fi
9302 done
9303 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9304 BEGIN {RS=" "; FS="/|\n";} {
9305 lt_foo="";
9306 lt_count=0;
9307 for (lt_i = NF; lt_i > 0; lt_i--) {
9308 if ($lt_i != "" && $lt_i != ".") {
9309 if ($lt_i == "..") {
9310 lt_count++;
9311 } else {
9312 if (lt_count == 0) {
9313 lt_foo="/" $lt_i lt_foo;
9314 } else {
9315 lt_count--;
9316 }
9317 }
9318 }
9319 }
9320 if (lt_foo != "") { lt_freq[lt_foo]++; }
9321 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9322 }'`
9323 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9324 else
9325 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9326 fi
9327 library_names_spec=
9328 libname_spec='lib$name'
9329 soname_spec=
9330 shrext_cmds=".so"
9331 postinstall_cmds=
9332 postuninstall_cmds=
9333 finish_cmds=
9334 finish_eval=
9335 shlibpath_var=
9336 shlibpath_overrides_runpath=unknown
9337 version_type=none
9338 dynamic_linker="$host_os ld.so"
9339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9340 need_lib_prefix=unknown
9341 hardcode_into_libs=no
9342
9343 # when you set need_version to no, make sure it does not cause -set_version
9344 # flags to be left without arguments
9345 need_version=unknown
9346
9347 case $host_os in
9348 aix3*)
9349 version_type=linux
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9351 shlibpath_var=LIBPATH
9352
9353 # AIX 3 has no versioning support, so we append a major version to the name.
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 ;;
9356
9357 aix[4-9]*)
9358 version_type=linux
9359 need_lib_prefix=no
9360 need_version=no
9361 hardcode_into_libs=yes
9362 if test "$host_cpu" = ia64; then
9363 # AIX 5 supports IA64
9364 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 else
9367 # With GCC up to 2.95.x, collect2 would create an import file
9368 # for dependence libraries. The import file would start with
9369 # the line `#! .'. This would cause the generated library to
9370 # depend on `.', always an invalid library. This was fixed in
9371 # development snapshots of GCC prior to 3.0.
9372 case $host_os in
9373 aix4 | aix4.[01] | aix4.[01].*)
9374 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9375 echo ' yes '
9376 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9377 :
9378 else
9379 can_build_shared=no
9380 fi
9381 ;;
9382 esac
9383 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9384 # soname into executable. Probably we can add versioning support to
9385 # collect2, so additional links can be useful in future.
9386 if test "$aix_use_runtimelinking" = yes; then
9387 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9388 # instead of lib<name>.a to let people know that these are not
9389 # typical AIX shared libraries.
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391 else
9392 # We preserve .a as extension for shared libraries through AIX4.2
9393 # and later when we are not doing run time linking.
9394 library_names_spec='${libname}${release}.a $libname.a'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 fi
9397 shlibpath_var=LIBPATH
9398 fi
9399 ;;
9400
9401 amigaos*)
9402 case $host_cpu in
9403 powerpc)
9404 # Since July 2007 AmigaOS4 officially supports .so libraries.
9405 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407 ;;
9408 m68k)
9409 library_names_spec='$libname.ixlibrary $libname.a'
9410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9411 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'
9412 ;;
9413 esac
9414 ;;
9415
9416 beos*)
9417 library_names_spec='${libname}${shared_ext}'
9418 dynamic_linker="$host_os ld.so"
9419 shlibpath_var=LIBRARY_PATH
9420 ;;
9421
9422 bsdi[45]*)
9423 version_type=linux
9424 need_version=no
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9428 shlibpath_var=LD_LIBRARY_PATH
9429 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9430 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9431 # the default ld.so.conf also contains /usr/contrib/lib and
9432 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9433 # libtool to hard-code these into programs
9434 ;;
9435
9436 cygwin* | mingw* | pw32* | cegcc*)
9437 version_type=windows
9438 shrext_cmds=".dll"
9439 need_version=no
9440 need_lib_prefix=no
9441
9442 case $GCC,$host_os in
9443 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9444 library_names_spec='$libname.dll.a'
9445 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9446 postinstall_cmds='base_file=`basename \${file}`~
9447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9448 dldir=$destdir/`dirname \$dlpath`~
9449 test -d \$dldir || mkdir -p \$dldir~
9450 $install_prog $dir/$dlname \$dldir/$dlname~
9451 chmod a+x \$dldir/$dlname~
9452 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9453 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9454 fi'
9455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9456 dlpath=$dir/\$dldll~
9457 $RM \$dlpath'
9458 shlibpath_overrides_runpath=yes
9459
9460 case $host_os in
9461 cygwin*)
9462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9463 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9464 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9465 ;;
9466 mingw* | cegcc*)
9467 # MinGW DLLs use traditional 'lib' prefix
9468 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9469 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9470 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9471 # It is most probably a Windows format PATH printed by
9472 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9473 # path with ; separators, and with drive letters. We can handle the
9474 # drive letters (cygwin fileutils understands them), so leave them,
9475 # especially as we might pass files found there to a mingw objdump,
9476 # which wouldn't understand a cygwinified path. Ahh.
9477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9478 else
9479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9480 fi
9481 ;;
9482 pw32*)
9483 # pw32 DLLs use 'pw' prefix rather than 'lib'
9484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9485 ;;
9486 esac
9487 ;;
9488
9489 *)
9490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9491 ;;
9492 esac
9493 dynamic_linker='Win32 ld.exe'
9494 # FIXME: first we should search . and the directory the executable is in
9495 shlibpath_var=PATH
9496 ;;
9497
9498 darwin* | rhapsody*)
9499 dynamic_linker="$host_os dyld"
9500 version_type=darwin
9501 need_lib_prefix=no
9502 need_version=no
9503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9504 soname_spec='${libname}${release}${major}$shared_ext'
9505 shlibpath_overrides_runpath=yes
9506 shlibpath_var=DYLD_LIBRARY_PATH
9507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9508
9509 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9511 ;;
9512
9513 dgux*)
9514 version_type=linux
9515 need_lib_prefix=no
9516 need_version=no
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9518 soname_spec='${libname}${release}${shared_ext}$major'
9519 shlibpath_var=LD_LIBRARY_PATH
9520 ;;
9521
9522 freebsd1*)
9523 dynamic_linker=no
9524 ;;
9525
9526 freebsd* | dragonfly*)
9527 # DragonFly does not have aout. When/if they implement a new
9528 # versioning mechanism, adjust this.
9529 if test -x /usr/bin/objformat; then
9530 objformat=`/usr/bin/objformat`
9531 else
9532 case $host_os in
9533 freebsd[123]*) objformat=aout ;;
9534 *) objformat=elf ;;
9535 esac
9536 fi
9537 version_type=freebsd-$objformat
9538 case $version_type in
9539 freebsd-elf*)
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9541 need_version=no
9542 need_lib_prefix=no
9543 ;;
9544 freebsd-*)
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9546 need_version=yes
9547 ;;
9548 esac
9549 shlibpath_var=LD_LIBRARY_PATH
9550 case $host_os in
9551 freebsd2*)
9552 shlibpath_overrides_runpath=yes
9553 ;;
9554 freebsd3.[01]* | freebsdelf3.[01]*)
9555 shlibpath_overrides_runpath=yes
9556 hardcode_into_libs=yes
9557 ;;
9558 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9559 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9560 shlibpath_overrides_runpath=no
9561 hardcode_into_libs=yes
9562 ;;
9563 *) # from 4.6 on, and DragonFly
9564 shlibpath_overrides_runpath=yes
9565 hardcode_into_libs=yes
9566 ;;
9567 esac
9568 ;;
9569
9570 gnu*)
9571 version_type=linux
9572 need_lib_prefix=no
9573 need_version=no
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9575 soname_spec='${libname}${release}${shared_ext}$major'
9576 shlibpath_var=LD_LIBRARY_PATH
9577 hardcode_into_libs=yes
9578 ;;
9579
9580 hpux9* | hpux10* | hpux11*)
9581 # Give a soname corresponding to the major version so that dld.sl refuses to
9582 # link against other versions.
9583 version_type=sunos
9584 need_lib_prefix=no
9585 need_version=no
9586 case $host_cpu in
9587 ia64*)
9588 shrext_cmds='.so'
9589 hardcode_into_libs=yes
9590 dynamic_linker="$host_os dld.so"
9591 shlibpath_var=LD_LIBRARY_PATH
9592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594 soname_spec='${libname}${release}${shared_ext}$major'
9595 if test "X$HPUX_IA64_MODE" = X32; then
9596 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9597 else
9598 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9599 fi
9600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9601 ;;
9602 hppa*64*)
9603 shrext_cmds='.sl'
9604 hardcode_into_libs=yes
9605 dynamic_linker="$host_os dld.sl"
9606 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609 soname_spec='${libname}${release}${shared_ext}$major'
9610 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9612 ;;
9613 *)
9614 shrext_cmds='.sl'
9615 dynamic_linker="$host_os dld.sl"
9616 shlibpath_var=SHLIB_PATH
9617 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619 soname_spec='${libname}${release}${shared_ext}$major'
9620 ;;
9621 esac
9622 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9623 postinstall_cmds='chmod 555 $lib'
9624 ;;
9625
9626 interix[3-9]*)
9627 version_type=linux
9628 need_lib_prefix=no
9629 need_version=no
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9631 soname_spec='${libname}${release}${shared_ext}$major'
9632 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 shlibpath_overrides_runpath=no
9635 hardcode_into_libs=yes
9636 ;;
9637
9638 irix5* | irix6* | nonstopux*)
9639 case $host_os in
9640 nonstopux*) version_type=nonstopux ;;
9641 *)
9642 if test "$lt_cv_prog_gnu_ld" = yes; then
9643 version_type=linux
9644 else
9645 version_type=irix
9646 fi ;;
9647 esac
9648 need_lib_prefix=no
9649 need_version=no
9650 soname_spec='${libname}${release}${shared_ext}$major'
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9652 case $host_os in
9653 irix5* | nonstopux*)
9654 libsuff= shlibsuff=
9655 ;;
9656 *)
9657 case $LD in # libtool.m4 will add one of these switches to LD
9658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9659 libsuff= shlibsuff= libmagic=32-bit;;
9660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9661 libsuff=32 shlibsuff=N32 libmagic=N32;;
9662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9664 *) libsuff= shlibsuff= libmagic=never-match;;
9665 esac
9666 ;;
9667 esac
9668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9669 shlibpath_overrides_runpath=no
9670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9672 hardcode_into_libs=yes
9673 ;;
9674
9675 # No shared lib support for Linux oldld, aout, or coff.
9676 linux*oldld* | linux*aout* | linux*coff*)
9677 dynamic_linker=no
9678 ;;
9679
9680 # This must be Linux ELF.
9681 linux* | k*bsd*-gnu)
9682 version_type=linux
9683 need_lib_prefix=no
9684 need_version=no
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 shlibpath_overrides_runpath=no
9690 # Some binutils ld are patched to set DT_RUNPATH
9691 save_LDFLAGS=$LDFLAGS
9692 save_libdir=$libdir
9693 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9694 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9697
9698 int
9699 main ()
9700 {
9701
9702 ;
9703 return 0;
9704 }
9705 _ACEOF
9706 if ac_fn_c_try_link "$LINENO"; then :
9707 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9708 shlibpath_overrides_runpath=yes
9709 fi
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext \
9712 conftest$ac_exeext conftest.$ac_ext
9713 LDFLAGS=$save_LDFLAGS
9714 libdir=$save_libdir
9715
9716 # This implies no fast_install, which is unacceptable.
9717 # Some rework will be needed to allow for fast_install
9718 # before this can be enabled.
9719 hardcode_into_libs=yes
9720
9721 # Append ld.so.conf contents to the search path
9722 if test -f /etc/ld.so.conf; then
9723 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9724 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9725 fi
9726
9727 # We used to test for /lib/ld.so.1 and disable shared libraries on
9728 # powerpc, because MkLinux only supported shared libraries with the
9729 # GNU dynamic linker. Since this was broken with cross compilers,
9730 # most powerpc-linux boxes support dynamic linking these days and
9731 # people can always --disable-shared, the test was removed, and we
9732 # assume the GNU/Linux dynamic linker is in use.
9733 dynamic_linker='GNU/Linux ld.so'
9734 ;;
9735
9736 netbsdelf*-gnu)
9737 version_type=linux
9738 need_lib_prefix=no
9739 need_version=no
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 shlibpath_overrides_runpath=no
9744 hardcode_into_libs=yes
9745 dynamic_linker='NetBSD ld.elf_so'
9746 ;;
9747
9748 netbsd*)
9749 version_type=sunos
9750 need_lib_prefix=no
9751 need_version=no
9752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9755 dynamic_linker='NetBSD (a.out) ld.so'
9756 else
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 dynamic_linker='NetBSD ld.elf_so'
9760 fi
9761 shlibpath_var=LD_LIBRARY_PATH
9762 shlibpath_overrides_runpath=yes
9763 hardcode_into_libs=yes
9764 ;;
9765
9766 newsos6)
9767 version_type=linux
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769 shlibpath_var=LD_LIBRARY_PATH
9770 shlibpath_overrides_runpath=yes
9771 ;;
9772
9773 *nto* | *qnx*)
9774 version_type=qnx
9775 need_lib_prefix=no
9776 need_version=no
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778 soname_spec='${libname}${release}${shared_ext}$major'
9779 shlibpath_var=LD_LIBRARY_PATH
9780 shlibpath_overrides_runpath=no
9781 hardcode_into_libs=yes
9782 dynamic_linker='ldqnx.so'
9783 ;;
9784
9785 openbsd*)
9786 version_type=sunos
9787 sys_lib_dlsearch_path_spec="/usr/lib"
9788 need_lib_prefix=no
9789 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9790 case $host_os in
9791 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9792 *) need_version=no ;;
9793 esac
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9798 case $host_os in
9799 openbsd2.[89] | openbsd2.[89].*)
9800 shlibpath_overrides_runpath=no
9801 ;;
9802 *)
9803 shlibpath_overrides_runpath=yes
9804 ;;
9805 esac
9806 else
9807 shlibpath_overrides_runpath=yes
9808 fi
9809 ;;
9810
9811 os2*)
9812 libname_spec='$name'
9813 shrext_cmds=".dll"
9814 need_lib_prefix=no
9815 library_names_spec='$libname${shared_ext} $libname.a'
9816 dynamic_linker='OS/2 ld.exe'
9817 shlibpath_var=LIBPATH
9818 ;;
9819
9820 osf3* | osf4* | osf5*)
9821 version_type=osf
9822 need_lib_prefix=no
9823 need_version=no
9824 soname_spec='${libname}${release}${shared_ext}$major'
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 shlibpath_var=LD_LIBRARY_PATH
9827 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9828 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9829 ;;
9830
9831 rdos*)
9832 dynamic_linker=no
9833 ;;
9834
9835 solaris*)
9836 version_type=linux
9837 need_lib_prefix=no
9838 need_version=no
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 soname_spec='${libname}${release}${shared_ext}$major'
9841 shlibpath_var=LD_LIBRARY_PATH
9842 shlibpath_overrides_runpath=yes
9843 hardcode_into_libs=yes
9844 # ldd complains unless libraries are executable
9845 postinstall_cmds='chmod +x $lib'
9846 ;;
9847
9848 sunos4*)
9849 version_type=sunos
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9851 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 shlibpath_overrides_runpath=yes
9854 if test "$with_gnu_ld" = yes; then
9855 need_lib_prefix=no
9856 fi
9857 need_version=yes
9858 ;;
9859
9860 sysv4 | sysv4.3*)
9861 version_type=linux
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 shlibpath_var=LD_LIBRARY_PATH
9865 case $host_vendor in
9866 sni)
9867 shlibpath_overrides_runpath=no
9868 need_lib_prefix=no
9869 runpath_var=LD_RUN_PATH
9870 ;;
9871 siemens)
9872 need_lib_prefix=no
9873 ;;
9874 motorola)
9875 need_lib_prefix=no
9876 need_version=no
9877 shlibpath_overrides_runpath=no
9878 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9879 ;;
9880 esac
9881 ;;
9882
9883 sysv4*MP*)
9884 if test -d /usr/nec ;then
9885 version_type=linux
9886 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9887 soname_spec='$libname${shared_ext}.$major'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 fi
9890 ;;
9891
9892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9893 version_type=freebsd-elf
9894 need_lib_prefix=no
9895 need_version=no
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 shlibpath_overrides_runpath=yes
9900 hardcode_into_libs=yes
9901 if test "$with_gnu_ld" = yes; then
9902 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9903 else
9904 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9905 case $host_os in
9906 sco3.2v5*)
9907 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9908 ;;
9909 esac
9910 fi
9911 sys_lib_dlsearch_path_spec='/usr/lib'
9912 ;;
9913
9914 tpf*)
9915 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9916 version_type=linux
9917 need_lib_prefix=no
9918 need_version=no
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920 shlibpath_var=LD_LIBRARY_PATH
9921 shlibpath_overrides_runpath=no
9922 hardcode_into_libs=yes
9923 ;;
9924
9925 uts4*)
9926 version_type=linux
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 ;;
9931
9932 *)
9933 dynamic_linker=no
9934 ;;
9935 esac
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9937 $as_echo "$dynamic_linker" >&6; }
9938 test "$dynamic_linker" = no && can_build_shared=no
9939
9940 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9941 if test "$GCC" = yes; then
9942 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9943 fi
9944
9945 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9946 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9947 fi
9948 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9949 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9950 fi
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10039 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10040 hardcode_action=
10041 if test -n "$hardcode_libdir_flag_spec" ||
10042 test -n "$runpath_var" ||
10043 test "X$hardcode_automatic" = "Xyes" ; then
10044
10045 # We can hardcode non-existent directories.
10046 if test "$hardcode_direct" != no &&
10047 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10048 # have to relink, otherwise we might link with an installed library
10049 # when we should be linking with a yet-to-be-installed one
10050 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10051 test "$hardcode_minus_L" != no; then
10052 # Linking always hardcodes the temporary library directory.
10053 hardcode_action=relink
10054 else
10055 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10056 hardcode_action=immediate
10057 fi
10058 else
10059 # We cannot hardcode anything, or else we can only hardcode existing
10060 # directories.
10061 hardcode_action=unsupported
10062 fi
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10064 $as_echo "$hardcode_action" >&6; }
10065
10066 if test "$hardcode_action" = relink ||
10067 test "$inherit_rpath" = yes; then
10068 # Fast installation is not supported
10069 enable_fast_install=no
10070 elif test "$shlibpath_overrides_runpath" = yes ||
10071 test "$enable_shared" = no; then
10072 # Fast installation is not necessary
10073 enable_fast_install=needless
10074 fi
10075
10076
10077
10078
10079
10080
10081 if test "x$enable_dlopen" != xyes; then
10082 enable_dlopen=unknown
10083 enable_dlopen_self=unknown
10084 enable_dlopen_self_static=unknown
10085 else
10086 lt_cv_dlopen=no
10087 lt_cv_dlopen_libs=
10088
10089 case $host_os in
10090 beos*)
10091 lt_cv_dlopen="load_add_on"
10092 lt_cv_dlopen_libs=
10093 lt_cv_dlopen_self=yes
10094 ;;
10095
10096 mingw* | pw32* | cegcc*)
10097 lt_cv_dlopen="LoadLibrary"
10098 lt_cv_dlopen_libs=
10099 ;;
10100
10101 cygwin*)
10102 lt_cv_dlopen="dlopen"
10103 lt_cv_dlopen_libs=
10104 ;;
10105
10106 darwin*)
10107 # if libdl is installed we need to link against it
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10109 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10110 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 ac_check_lib_save_LIBS=$LIBS
10114 LIBS="-ldl $LIBS"
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10117
10118 /* Override any GCC internal prototype to avoid an error.
10119 Use char because int might match the return type of a GCC
10120 builtin and then its argument prototype would still apply. */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 char dlopen ();
10125 int
10126 main ()
10127 {
10128 return dlopen ();
10129 ;
10130 return 0;
10131 }
10132 _ACEOF
10133 if ac_fn_c_try_link "$LINENO"; then :
10134 ac_cv_lib_dl_dlopen=yes
10135 else
10136 ac_cv_lib_dl_dlopen=no
10137 fi
10138 rm -f core conftest.err conftest.$ac_objext \
10139 conftest$ac_exeext conftest.$ac_ext
10140 LIBS=$ac_check_lib_save_LIBS
10141 fi
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10143 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10144 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10145 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10146 else
10147
10148 lt_cv_dlopen="dyld"
10149 lt_cv_dlopen_libs=
10150 lt_cv_dlopen_self=yes
10151
10152 fi
10153
10154 ;;
10155
10156 *)
10157 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10158 if test "x$ac_cv_func_shl_load" = x""yes; then :
10159 lt_cv_dlopen="shl_load"
10160 else
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10162 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10163 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10164 $as_echo_n "(cached) " >&6
10165 else
10166 ac_check_lib_save_LIBS=$LIBS
10167 LIBS="-ldld $LIBS"
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170
10171 /* Override any GCC internal prototype to avoid an error.
10172 Use char because int might match the return type of a GCC
10173 builtin and then its argument prototype would still apply. */
10174 #ifdef __cplusplus
10175 extern "C"
10176 #endif
10177 char shl_load ();
10178 int
10179 main ()
10180 {
10181 return shl_load ();
10182 ;
10183 return 0;
10184 }
10185 _ACEOF
10186 if ac_fn_c_try_link "$LINENO"; then :
10187 ac_cv_lib_dld_shl_load=yes
10188 else
10189 ac_cv_lib_dld_shl_load=no
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_lib_save_LIBS
10194 fi
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10196 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10197 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10198 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10199 else
10200 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10201 if test "x$ac_cv_func_dlopen" = x""yes; then :
10202 lt_cv_dlopen="dlopen"
10203 else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10205 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
10208 else
10209 ac_check_lib_save_LIBS=$LIBS
10210 LIBS="-ldl $LIBS"
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h. */
10213
10214 /* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 char dlopen ();
10221 int
10222 main ()
10223 {
10224 return dlopen ();
10225 ;
10226 return 0;
10227 }
10228 _ACEOF
10229 if ac_fn_c_try_link "$LINENO"; then :
10230 ac_cv_lib_dl_dlopen=yes
10231 else
10232 ac_cv_lib_dl_dlopen=no
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10236 LIBS=$ac_check_lib_save_LIBS
10237 fi
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10239 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10240 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10241 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10242 else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10244 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10245 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 ac_check_lib_save_LIBS=$LIBS
10249 LIBS="-lsvld $LIBS"
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252
10253 /* Override any GCC internal prototype to avoid an error.
10254 Use char because int might match the return type of a GCC
10255 builtin and then its argument prototype would still apply. */
10256 #ifdef __cplusplus
10257 extern "C"
10258 #endif
10259 char dlopen ();
10260 int
10261 main ()
10262 {
10263 return dlopen ();
10264 ;
10265 return 0;
10266 }
10267 _ACEOF
10268 if ac_fn_c_try_link "$LINENO"; then :
10269 ac_cv_lib_svld_dlopen=yes
10270 else
10271 ac_cv_lib_svld_dlopen=no
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10275 LIBS=$ac_check_lib_save_LIBS
10276 fi
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10278 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10279 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10280 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10281 else
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10283 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10284 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287 ac_check_lib_save_LIBS=$LIBS
10288 LIBS="-ldld $LIBS"
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291
10292 /* Override any GCC internal prototype to avoid an error.
10293 Use char because int might match the return type of a GCC
10294 builtin and then its argument prototype would still apply. */
10295 #ifdef __cplusplus
10296 extern "C"
10297 #endif
10298 char dld_link ();
10299 int
10300 main ()
10301 {
10302 return dld_link ();
10303 ;
10304 return 0;
10305 }
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"; then :
10308 ac_cv_lib_dld_dld_link=yes
10309 else
10310 ac_cv_lib_dld_dld_link=no
10311 fi
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314 LIBS=$ac_check_lib_save_LIBS
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10317 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10318 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10319 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10320 fi
10321
10322
10323 fi
10324
10325
10326 fi
10327
10328
10329 fi
10330
10331
10332 fi
10333
10334
10335 fi
10336
10337 ;;
10338 esac
10339
10340 if test "x$lt_cv_dlopen" != xno; then
10341 enable_dlopen=yes
10342 else
10343 enable_dlopen=no
10344 fi
10345
10346 case $lt_cv_dlopen in
10347 dlopen)
10348 save_CPPFLAGS="$CPPFLAGS"
10349 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10350
10351 save_LDFLAGS="$LDFLAGS"
10352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10353
10354 save_LIBS="$LIBS"
10355 LIBS="$lt_cv_dlopen_libs $LIBS"
10356
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10358 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10359 if test "${lt_cv_dlopen_self+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 if test "$cross_compiling" = yes; then :
10363 lt_cv_dlopen_self=cross
10364 else
10365 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10366 lt_status=$lt_dlunknown
10367 cat > conftest.$ac_ext <<_LT_EOF
10368 #line 10368 "configure"
10369 #include "confdefs.h"
10370
10371 #if HAVE_DLFCN_H
10372 #include <dlfcn.h>
10373 #endif
10374
10375 #include <stdio.h>
10376
10377 #ifdef RTLD_GLOBAL
10378 # define LT_DLGLOBAL RTLD_GLOBAL
10379 #else
10380 # ifdef DL_GLOBAL
10381 # define LT_DLGLOBAL DL_GLOBAL
10382 # else
10383 # define LT_DLGLOBAL 0
10384 # endif
10385 #endif
10386
10387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10388 find out it does not work in some platform. */
10389 #ifndef LT_DLLAZY_OR_NOW
10390 # ifdef RTLD_LAZY
10391 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10392 # else
10393 # ifdef DL_LAZY
10394 # define LT_DLLAZY_OR_NOW DL_LAZY
10395 # else
10396 # ifdef RTLD_NOW
10397 # define LT_DLLAZY_OR_NOW RTLD_NOW
10398 # else
10399 # ifdef DL_NOW
10400 # define LT_DLLAZY_OR_NOW DL_NOW
10401 # else
10402 # define LT_DLLAZY_OR_NOW 0
10403 # endif
10404 # endif
10405 # endif
10406 # endif
10407 #endif
10408
10409 void fnord() { int i=42;}
10410 int main ()
10411 {
10412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10413 int status = $lt_dlunknown;
10414
10415 if (self)
10416 {
10417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10418 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10419 /* dlclose (self); */
10420 }
10421 else
10422 puts (dlerror ());
10423
10424 return status;
10425 }
10426 _LT_EOF
10427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10428 (eval $ac_link) 2>&5
10429 ac_status=$?
10430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10431 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10432 (./conftest; exit; ) >&5 2>/dev/null
10433 lt_status=$?
10434 case x$lt_status in
10435 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10436 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10437 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10438 esac
10439 else :
10440 # compilation failed
10441 lt_cv_dlopen_self=no
10442 fi
10443 fi
10444 rm -fr conftest*
10445
10446
10447 fi
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10449 $as_echo "$lt_cv_dlopen_self" >&6; }
10450
10451 if test "x$lt_cv_dlopen_self" = xyes; then
10452 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10454 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10455 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 if test "$cross_compiling" = yes; then :
10459 lt_cv_dlopen_self_static=cross
10460 else
10461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10462 lt_status=$lt_dlunknown
10463 cat > conftest.$ac_ext <<_LT_EOF
10464 #line 10464 "configure"
10465 #include "confdefs.h"
10466
10467 #if HAVE_DLFCN_H
10468 #include <dlfcn.h>
10469 #endif
10470
10471 #include <stdio.h>
10472
10473 #ifdef RTLD_GLOBAL
10474 # define LT_DLGLOBAL RTLD_GLOBAL
10475 #else
10476 # ifdef DL_GLOBAL
10477 # define LT_DLGLOBAL DL_GLOBAL
10478 # else
10479 # define LT_DLGLOBAL 0
10480 # endif
10481 #endif
10482
10483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10484 find out it does not work in some platform. */
10485 #ifndef LT_DLLAZY_OR_NOW
10486 # ifdef RTLD_LAZY
10487 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10488 # else
10489 # ifdef DL_LAZY
10490 # define LT_DLLAZY_OR_NOW DL_LAZY
10491 # else
10492 # ifdef RTLD_NOW
10493 # define LT_DLLAZY_OR_NOW RTLD_NOW
10494 # else
10495 # ifdef DL_NOW
10496 # define LT_DLLAZY_OR_NOW DL_NOW
10497 # else
10498 # define LT_DLLAZY_OR_NOW 0
10499 # endif
10500 # endif
10501 # endif
10502 # endif
10503 #endif
10504
10505 void fnord() { int i=42;}
10506 int main ()
10507 {
10508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10509 int status = $lt_dlunknown;
10510
10511 if (self)
10512 {
10513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10514 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10515 /* dlclose (self); */
10516 }
10517 else
10518 puts (dlerror ());
10519
10520 return status;
10521 }
10522 _LT_EOF
10523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10524 (eval $ac_link) 2>&5
10525 ac_status=$?
10526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10527 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10528 (./conftest; exit; ) >&5 2>/dev/null
10529 lt_status=$?
10530 case x$lt_status in
10531 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10532 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10533 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10534 esac
10535 else :
10536 # compilation failed
10537 lt_cv_dlopen_self_static=no
10538 fi
10539 fi
10540 rm -fr conftest*
10541
10542
10543 fi
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10545 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10546 fi
10547
10548 CPPFLAGS="$save_CPPFLAGS"
10549 LDFLAGS="$save_LDFLAGS"
10550 LIBS="$save_LIBS"
10551 ;;
10552 esac
10553
10554 case $lt_cv_dlopen_self in
10555 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10556 *) enable_dlopen_self=unknown ;;
10557 esac
10558
10559 case $lt_cv_dlopen_self_static in
10560 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10561 *) enable_dlopen_self_static=unknown ;;
10562 esac
10563 fi
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581 striplib=
10582 old_striplib=
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10584 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10585 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10586 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10587 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10589 $as_echo "yes" >&6; }
10590 else
10591 # FIXME - insert some real tests, host_os isn't really good enough
10592 case $host_os in
10593 darwin*)
10594 if test -n "$STRIP" ; then
10595 striplib="$STRIP -x"
10596 old_striplib="$STRIP -S"
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10598 $as_echo "yes" >&6; }
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; }
10602 fi
10603 ;;
10604 *)
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; }
10607 ;;
10608 esac
10609 fi
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622 # Report which library types will actually be built
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10624 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10626 $as_echo "$can_build_shared" >&6; }
10627
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10629 $as_echo_n "checking whether to build shared libraries... " >&6; }
10630 test "$can_build_shared" = "no" && enable_shared=no
10631
10632 # On AIX, shared libraries and static libraries use the same namespace, and
10633 # are all built from PIC.
10634 case $host_os in
10635 aix3*)
10636 test "$enable_shared" = yes && enable_static=no
10637 if test -n "$RANLIB"; then
10638 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10639 postinstall_cmds='$RANLIB $lib'
10640 fi
10641 ;;
10642
10643 aix[4-9]*)
10644 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10645 test "$enable_shared" = yes && enable_static=no
10646 fi
10647 ;;
10648 esac
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10650 $as_echo "$enable_shared" >&6; }
10651
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10653 $as_echo_n "checking whether to build static libraries... " >&6; }
10654 # Make sure either enable_shared or enable_static is yes.
10655 test "$enable_shared" = yes || enable_static=yes
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10657 $as_echo "$enable_static" >&6; }
10658
10659
10660
10661
10662 fi
10663 ac_ext=c
10664 ac_cpp='$CPP $CPPFLAGS'
10665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10668
10669 CC="$lt_save_CC"
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683 ac_config_commands="$ac_config_commands libtool"
10684
10685
10686
10687
10688 # Only expand once:
10689
10690
10691
10692
10693 ac_config_files="$ac_config_files Makefile"
10694
10695 ac_config_headers="$ac_config_headers config.h"
10696
10697
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10699 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10700 if test "${ac_cv_struct_tm+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 #include <sys/types.h>
10706 #include <time.h>
10707
10708 int
10709 main ()
10710 {
10711 struct tm tm;
10712 int *p = &tm.tm_sec;
10713 return !p;
10714 ;
10715 return 0;
10716 }
10717 _ACEOF
10718 if ac_fn_c_try_compile "$LINENO"; then :
10719 ac_cv_struct_tm=time.h
10720 else
10721 ac_cv_struct_tm=sys/time.h
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724 fi
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10726 $as_echo "$ac_cv_struct_tm" >&6; }
10727 if test $ac_cv_struct_tm = sys/time.h; then
10728
10729 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10730
10731 fi
10732
10733 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
10734 case $ac_cv_c_int16_t in #(
10735 no|yes) ;; #(
10736 *)
10737
10738 cat >>confdefs.h <<_ACEOF
10739 #define int16_t $ac_cv_c_int16_t
10740 _ACEOF
10741 ;;
10742 esac
10743
10744 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
10745 case $ac_cv_c_int32_t in #(
10746 no|yes) ;; #(
10747 *)
10748
10749 cat >>confdefs.h <<_ACEOF
10750 #define int32_t $ac_cv_c_int32_t
10751 _ACEOF
10752 ;;
10753 esac
10754
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10756 $as_echo_n "checking return type of signal handlers... " >&6; }
10757 if test "${ac_cv_type_signal+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762 #include <sys/types.h>
10763 #include <signal.h>
10764
10765 int
10766 main ()
10767 {
10768 return *(signal (0, 0)) (0) == 1;
10769 ;
10770 return 0;
10771 }
10772 _ACEOF
10773 if ac_fn_c_try_compile "$LINENO"; then :
10774 ac_cv_type_signal=int
10775 else
10776 ac_cv_type_signal=void
10777 fi
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10779 fi
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10781 $as_echo "$ac_cv_type_signal" >&6; }
10782
10783 cat >>confdefs.h <<_ACEOF
10784 #define RETSIGTYPE $ac_cv_type_signal
10785 _ACEOF
10786
10787
10788 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10789 if test "x$ac_cv_type_size_t" = x""yes; then :
10790
10791 else
10792
10793 cat >>confdefs.h <<_ACEOF
10794 #define size_t unsigned int
10795 _ACEOF
10796
10797 fi
10798
10799 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10800 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10801
10802 else
10803
10804 cat >>confdefs.h <<_ACEOF
10805 #define ssize_t int
10806 _ACEOF
10807
10808 fi
10809
10810 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
10811 case $ac_cv_c_uint8_t in #(
10812 no|yes) ;; #(
10813 *)
10814
10815 $as_echo "#define _UINT8_T 1" >>confdefs.h
10816
10817
10818 cat >>confdefs.h <<_ACEOF
10819 #define uint8_t $ac_cv_c_uint8_t
10820 _ACEOF
10821 ;;
10822 esac
10823
10824 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
10825 case $ac_cv_c_uint16_t in #(
10826 no|yes) ;; #(
10827 *)
10828
10829
10830 cat >>confdefs.h <<_ACEOF
10831 #define uint16_t $ac_cv_c_uint16_t
10832 _ACEOF
10833 ;;
10834 esac
10835
10836 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
10837 case $ac_cv_c_uint32_t in #(
10838 no|yes) ;; #(
10839 *)
10840
10841 $as_echo "#define _UINT32_T 1" >>confdefs.h
10842
10843
10844 cat >>confdefs.h <<_ACEOF
10845 #define uint32_t $ac_cv_c_uint32_t
10846 _ACEOF
10847 ;;
10848 esac
10849
10850 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10851 case $ac_cv_c_uint64_t in #(
10852 no|yes) ;; #(
10853 *)
10854
10855 $as_echo "#define _UINT64_T 1" >>confdefs.h
10856
10857
10858 cat >>confdefs.h <<_ACEOF
10859 #define uint64_t $ac_cv_c_uint64_t
10860 _ACEOF
10861 ;;
10862 esac
10863
10864
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10866 $as_echo_n "checking for library containing socket... " >&6; }
10867 if test "${ac_cv_search_socket+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 ac_func_search_save_LIBS=$LIBS
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10873
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char socket ();
10881 int
10882 main ()
10883 {
10884 return socket ();
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 for ac_lib in '' socket; do
10890 if test -z "$ac_lib"; then
10891 ac_res="none required"
10892 else
10893 ac_res=-l$ac_lib
10894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10895 fi
10896 if ac_fn_c_try_link "$LINENO"; then :
10897 ac_cv_search_socket=$ac_res
10898 fi
10899 rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext
10901 if test "${ac_cv_search_socket+set}" = set; then :
10902 break
10903 fi
10904 done
10905 if test "${ac_cv_search_socket+set}" = set; then :
10906
10907 else
10908 ac_cv_search_socket=no
10909 fi
10910 rm conftest.$ac_ext
10911 LIBS=$ac_func_search_save_LIBS
10912 fi
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10914 $as_echo "$ac_cv_search_socket" >&6; }
10915 ac_res=$ac_cv_search_socket
10916 if test "$ac_res" != no; then :
10917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10918
10919 fi
10920
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10922 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10923 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 ac_func_search_save_LIBS=$LIBS
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10929
10930 /* Override any GCC internal prototype to avoid an error.
10931 Use char because int might match the return type of a GCC
10932 builtin and then its argument prototype would still apply. */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 char gethostbyname ();
10937 int
10938 main ()
10939 {
10940 return gethostbyname ();
10941 ;
10942 return 0;
10943 }
10944 _ACEOF
10945 for ac_lib in '' nsl; do
10946 if test -z "$ac_lib"; then
10947 ac_res="none required"
10948 else
10949 ac_res=-l$ac_lib
10950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10951 fi
10952 if ac_fn_c_try_link "$LINENO"; then :
10953 ac_cv_search_gethostbyname=$ac_res
10954 fi
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext
10957 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10958 break
10959 fi
10960 done
10961 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10962
10963 else
10964 ac_cv_search_gethostbyname=no
10965 fi
10966 rm conftest.$ac_ext
10967 LIBS=$ac_func_search_save_LIBS
10968 fi
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10970 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10971 ac_res=$ac_cv_search_gethostbyname
10972 if test "$ac_res" != no; then :
10973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10974
10975 fi
10976
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10978 $as_echo_n "checking for library containing clock_gettime... " >&6; }
10979 if test "${ac_cv_search_clock_gettime+set}" = set; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 ac_func_search_save_LIBS=$LIBS
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10985
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char clock_gettime ();
10993 int
10994 main ()
10995 {
10996 return clock_gettime ();
10997 ;
10998 return 0;
10999 }
11000 _ACEOF
11001 for ac_lib in '' rt; do
11002 if test -z "$ac_lib"; then
11003 ac_res="none required"
11004 else
11005 ac_res=-l$ac_lib
11006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11007 fi
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_search_clock_gettime=$ac_res
11010 fi
11011 rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext
11013 if test "${ac_cv_search_clock_gettime+set}" = set; then :
11014 break
11015 fi
11016 done
11017 if test "${ac_cv_search_clock_gettime+set}" = set; then :
11018
11019 else
11020 ac_cv_search_clock_gettime=no
11021 fi
11022 rm conftest.$ac_ext
11023 LIBS=$ac_func_search_save_LIBS
11024 fi
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11026 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11027 ac_res=$ac_cv_search_clock_gettime
11028 if test "$ac_res" != no; then :
11029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11030
11031 fi
11032
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11034 $as_echo_n "checking for library containing dlopen... " >&6; }
11035 if test "${ac_cv_search_dlopen+set}" = set; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 ac_func_search_save_LIBS=$LIBS
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041
11042 /* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11045 #ifdef __cplusplus
11046 extern "C"
11047 #endif
11048 char dlopen ();
11049 int
11050 main ()
11051 {
11052 return dlopen ();
11053 ;
11054 return 0;
11055 }
11056 _ACEOF
11057 for ac_lib in '' dl; do
11058 if test -z "$ac_lib"; then
11059 ac_res="none required"
11060 else
11061 ac_res=-l$ac_lib
11062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11063 fi
11064 if ac_fn_c_try_link "$LINENO"; then :
11065 ac_cv_search_dlopen=$ac_res
11066 fi
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext
11069 if test "${ac_cv_search_dlopen+set}" = set; then :
11070 break
11071 fi
11072 done
11073 if test "${ac_cv_search_dlopen+set}" = set; then :
11074
11075 else
11076 ac_cv_search_dlopen=no
11077 fi
11078 rm conftest.$ac_ext
11079 LIBS=$ac_func_search_save_LIBS
11080 fi
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11082 $as_echo "$ac_cv_search_dlopen" >&6; }
11083 ac_res=$ac_cv_search_dlopen
11084 if test "$ac_res" != no; then :
11085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11086
11087 fi
11088
11089
11090 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11091 # for constant arguments. Useless!
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11093 $as_echo_n "checking for working alloca.h... " >&6; }
11094 if test "${ac_cv_working_alloca_h+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11099 #include <alloca.h>
11100 int
11101 main ()
11102 {
11103 char *p = (char *) alloca (2 * sizeof (int));
11104 if (p) return 0;
11105 ;
11106 return 0;
11107 }
11108 _ACEOF
11109 if ac_fn_c_try_link "$LINENO"; then :
11110 ac_cv_working_alloca_h=yes
11111 else
11112 ac_cv_working_alloca_h=no
11113 fi
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11118 $as_echo "$ac_cv_working_alloca_h" >&6; }
11119 if test $ac_cv_working_alloca_h = yes; then
11120
11121 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11122
11123 fi
11124
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11126 $as_echo_n "checking for alloca... " >&6; }
11127 if test "${ac_cv_func_alloca_works+set}" = set; then :
11128 $as_echo_n "(cached) " >&6
11129 else
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11132 #ifdef __GNUC__
11133 # define alloca __builtin_alloca
11134 #else
11135 # ifdef _MSC_VER
11136 # include <malloc.h>
11137 # define alloca _alloca
11138 # else
11139 # ifdef HAVE_ALLOCA_H
11140 # include <alloca.h>
11141 # else
11142 # ifdef _AIX
11143 #pragma alloca
11144 # else
11145 # ifndef alloca /* predefined by HP cc +Olibcalls */
11146 char *alloca ();
11147 # endif
11148 # endif
11149 # endif
11150 # endif
11151 #endif
11152
11153 int
11154 main ()
11155 {
11156 char *p = (char *) alloca (1);
11157 if (p) return 0;
11158 ;
11159 return 0;
11160 }
11161 _ACEOF
11162 if ac_fn_c_try_link "$LINENO"; then :
11163 ac_cv_func_alloca_works=yes
11164 else
11165 ac_cv_func_alloca_works=no
11166 fi
11167 rm -f core conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext conftest.$ac_ext
11169 fi
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11171 $as_echo "$ac_cv_func_alloca_works" >&6; }
11172
11173 if test $ac_cv_func_alloca_works = yes; then
11174
11175 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11176
11177 else
11178 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11179 # that cause trouble. Some versions do not even contain alloca or
11180 # contain a buggy version. If you still want to use their alloca,
11181 # use ar to extract alloca.o from them instead of compiling alloca.c.
11182
11183 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11184
11185 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11186
11187
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11189 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11190 if test "${ac_cv_os_cray+set}" = set; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11195 #if defined CRAY && ! defined CRAY2
11196 webecray
11197 #else
11198 wenotbecray
11199 #endif
11200
11201 _ACEOF
11202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11203 $EGREP "webecray" >/dev/null 2>&1; then :
11204 ac_cv_os_cray=yes
11205 else
11206 ac_cv_os_cray=no
11207 fi
11208 rm -f conftest*
11209
11210 fi
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11212 $as_echo "$ac_cv_os_cray" >&6; }
11213 if test $ac_cv_os_cray = yes; then
11214 for ac_func in _getb67 GETB67 getb67; do
11215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11216 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11217 eval as_val=\$$as_ac_var
11218 if test "x$as_val" = x""yes; then :
11219
11220 cat >>confdefs.h <<_ACEOF
11221 #define CRAY_STACKSEG_END $ac_func
11222 _ACEOF
11223
11224 break
11225 fi
11226
11227 done
11228 fi
11229
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11231 $as_echo_n "checking stack direction for C alloca... " >&6; }
11232 if test "${ac_cv_c_stack_direction+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 if test "$cross_compiling" = yes; then :
11236 ac_cv_c_stack_direction=0
11237 else
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240 $ac_includes_default
11241 int
11242 find_stack_direction ()
11243 {
11244 static char *addr = 0;
11245 auto char dummy;
11246 if (addr == 0)
11247 {
11248 addr = &dummy;
11249 return find_stack_direction ();
11250 }
11251 else
11252 return (&dummy > addr) ? 1 : -1;
11253 }
11254
11255 int
11256 main ()
11257 {
11258 return find_stack_direction () < 0;
11259 }
11260 _ACEOF
11261 if ac_fn_c_try_run "$LINENO"; then :
11262 ac_cv_c_stack_direction=1
11263 else
11264 ac_cv_c_stack_direction=-1
11265 fi
11266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11267 conftest.$ac_objext conftest.beam conftest.$ac_ext
11268 fi
11269
11270 fi
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11272 $as_echo "$ac_cv_c_stack_direction" >&6; }
11273 cat >>confdefs.h <<_ACEOF
11274 #define STACK_DIRECTION $ac_cv_c_stack_direction
11275 _ACEOF
11276
11277
11278 fi
11279
11280 for ac_header in stdlib.h
11281 do :
11282 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11283 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11284 cat >>confdefs.h <<_ACEOF
11285 #define HAVE_STDLIB_H 1
11286 _ACEOF
11287
11288 fi
11289
11290 done
11291
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11293 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11294 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 if test "$cross_compiling" = yes; then :
11298 ac_cv_func_malloc_0_nonnull=no
11299 else
11300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11302 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11303 # include <stdlib.h>
11304 #else
11305 char *malloc ();
11306 #endif
11307
11308 int
11309 main ()
11310 {
11311 return ! malloc (0);
11312 ;
11313 return 0;
11314 }
11315 _ACEOF
11316 if ac_fn_c_try_run "$LINENO"; then :
11317 ac_cv_func_malloc_0_nonnull=yes
11318 else
11319 ac_cv_func_malloc_0_nonnull=no
11320 fi
11321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11322 conftest.$ac_objext conftest.beam conftest.$ac_ext
11323 fi
11324
11325 fi
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11327 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11328 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11329
11330 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11331
11332 else
11333 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11334
11335 case " $LIBOBJS " in
11336 *" malloc.$ac_objext "* ) ;;
11337 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11338 ;;
11339 esac
11340
11341
11342 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11343
11344 fi
11345
11346
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11348 $as_echo_n "checking for working memcmp... " >&6; }
11349 if test "${ac_cv_func_memcmp_working+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 if test "$cross_compiling" = yes; then :
11353 ac_cv_func_memcmp_working=no
11354 else
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 $ac_includes_default
11358 int
11359 main ()
11360 {
11361
11362 /* Some versions of memcmp are not 8-bit clean. */
11363 char c0 = '\100', c1 = '\200', c2 = '\201';
11364 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11365 return 1;
11366
11367 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11368 or more and with at least one buffer not starting on a 4-byte boundary.
11369 William Lewis provided this test program. */
11370 {
11371 char foo[21];
11372 char bar[21];
11373 int i;
11374 for (i = 0; i < 4; i++)
11375 {
11376 char *a = foo + i;
11377 char *b = bar + i;
11378 strcpy (a, "--------01111111");
11379 strcpy (b, "--------10000000");
11380 if (memcmp (a, b, 16) >= 0)
11381 return 1;
11382 }
11383 return 0;
11384 }
11385
11386 ;
11387 return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_c_try_run "$LINENO"; then :
11391 ac_cv_func_memcmp_working=yes
11392 else
11393 ac_cv_func_memcmp_working=no
11394 fi
11395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11396 conftest.$ac_objext conftest.beam conftest.$ac_ext
11397 fi
11398
11399 fi
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11401 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11402 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11403 *" memcmp.$ac_objext "* ) ;;
11404 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11405 ;;
11406 esac
11407
11408
11409 for ac_header in stdlib.h
11410 do :
11411 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11412 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11413 cat >>confdefs.h <<_ACEOF
11414 #define HAVE_STDLIB_H 1
11415 _ACEOF
11416
11417 fi
11418
11419 done
11420
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11422 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11423 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 if test "$cross_compiling" = yes; then :
11427 ac_cv_func_realloc_0_nonnull=no
11428 else
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11431 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11432 # include <stdlib.h>
11433 #else
11434 char *realloc ();
11435 #endif
11436
11437 int
11438 main ()
11439 {
11440 return ! realloc (0, 0);
11441 ;
11442 return 0;
11443 }
11444 _ACEOF
11445 if ac_fn_c_try_run "$LINENO"; then :
11446 ac_cv_func_realloc_0_nonnull=yes
11447 else
11448 ac_cv_func_realloc_0_nonnull=no
11449 fi
11450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11451 conftest.$ac_objext conftest.beam conftest.$ac_ext
11452 fi
11453
11454 fi
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11456 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11457 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11458
11459 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11460
11461 else
11462 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11463
11464 case " $LIBOBJS " in
11465 *" realloc.$ac_objext "* ) ;;
11466 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11467 ;;
11468 esac
11469
11470
11471 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11472
11473 fi
11474
11475
11476 for ac_header in sys/select.h sys/socket.h
11477 do :
11478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11479 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11480 eval as_val=\$$as_ac_Header
11481 if test "x$as_val" = x""yes; then :
11482 cat >>confdefs.h <<_ACEOF
11483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11484 _ACEOF
11485
11486 fi
11487
11488 done
11489
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11491 $as_echo_n "checking types of arguments for select... " >&6; }
11492 if test "${ac_cv_func_select_args+set}" = set; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11496 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11497 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500 $ac_includes_default
11501 #ifdef HAVE_SYS_SELECT_H
11502 # include <sys/select.h>
11503 #endif
11504 #ifdef HAVE_SYS_SOCKET_H
11505 # include <sys/socket.h>
11506 #endif
11507
11508 int
11509 main ()
11510 {
11511 extern int select ($ac_arg1,
11512 $ac_arg234, $ac_arg234, $ac_arg234,
11513 $ac_arg5);
11514 ;
11515 return 0;
11516 }
11517 _ACEOF
11518 if ac_fn_c_try_compile "$LINENO"; then :
11519 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522 done
11523 done
11524 done
11525 # Provide a safe default value.
11526 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11527
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11530 $as_echo "$ac_cv_func_select_args" >&6; }
11531 ac_save_IFS=$IFS; IFS=','
11532 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11533 IFS=$ac_save_IFS
11534 shift
11535
11536 cat >>confdefs.h <<_ACEOF
11537 #define SELECT_TYPE_ARG1 $1
11538 _ACEOF
11539
11540
11541 cat >>confdefs.h <<_ACEOF
11542 #define SELECT_TYPE_ARG234 ($2)
11543 _ACEOF
11544
11545
11546 cat >>confdefs.h <<_ACEOF
11547 #define SELECT_TYPE_ARG5 ($3)
11548 _ACEOF
11549
11550 rm -f conftest*
11551
11552 for ac_func in strftime
11553 do :
11554 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11555 if test "x$ac_cv_func_strftime" = x""yes; then :
11556 cat >>confdefs.h <<_ACEOF
11557 #define HAVE_STRFTIME 1
11558 _ACEOF
11559
11560 else
11561 # strftime is in -lintl on SCO UNIX.
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11563 $as_echo_n "checking for strftime in -lintl... " >&6; }
11564 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 ac_check_lib_save_LIBS=$LIBS
11568 LIBS="-lintl $LIBS"
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11571
11572 /* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 char strftime ();
11579 int
11580 main ()
11581 {
11582 return strftime ();
11583 ;
11584 return 0;
11585 }
11586 _ACEOF
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 ac_cv_lib_intl_strftime=yes
11589 else
11590 ac_cv_lib_intl_strftime=no
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11595 fi
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11597 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11598 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11599 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11600
11601 LIBS="-lintl $LIBS"
11602 fi
11603
11604 fi
11605 done
11606
11607 for ac_func in alarm clock_gettime gettimeofday isascii memset regcomp select socket strcasecmp strchr strdup strerror strrchr strtoul
11608 do :
11609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11611 eval as_val=\$$as_ac_var
11612 if test "x$as_val" = x""yes; then :
11613 cat >>confdefs.h <<_ACEOF
11614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11615 _ACEOF
11616
11617 fi
11618 done
11619
11620
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11622 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11623 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628
11629 #include <stdbool.h>
11630 #ifndef bool
11631 "error: bool is not defined"
11632 #endif
11633 #ifndef false
11634 "error: false is not defined"
11635 #endif
11636 #if false
11637 "error: false is not 0"
11638 #endif
11639 #ifndef true
11640 "error: true is not defined"
11641 #endif
11642 #if true != 1
11643 "error: true is not 1"
11644 #endif
11645 #ifndef __bool_true_false_are_defined
11646 "error: __bool_true_false_are_defined is not defined"
11647 #endif
11648
11649 struct s { _Bool s: 1; _Bool t; } s;
11650
11651 char a[true == 1 ? 1 : -1];
11652 char b[false == 0 ? 1 : -1];
11653 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11654 char d[(bool) 0.5 == true ? 1 : -1];
11655 bool e = &s;
11656 char f[(_Bool) 0.0 == false ? 1 : -1];
11657 char g[true];
11658 char h[sizeof (_Bool)];
11659 char i[sizeof s.t];
11660 enum { j = false, k = true, l = false * true, m = true * 256 };
11661 /* The following fails for
11662 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11663 _Bool n[m];
11664 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11665 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11666 # if defined __xlc__ || defined __GNUC__
11667 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11668 reported by James Lemley on 2005-10-05; see
11669 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11670 This test is not quite right, since xlc is allowed to
11671 reject this program, as the initializer for xlcbug is
11672 not one of the forms that C requires support for.
11673 However, doing the test right would require a runtime
11674 test, and that would make cross-compilation harder.
11675 Let us hope that IBM fixes the xlc bug, and also adds
11676 support for this kind of constant expression. In the
11677 meantime, this test will reject xlc, which is OK, since
11678 our stdbool.h substitute should suffice. We also test
11679 this with GCC, where it should work, to detect more
11680 quickly whether someone messes up the test in the
11681 future. */
11682 char digs[] = "0123456789";
11683 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11684 # endif
11685 /* Catch a bug in an HP-UX C compiler. See
11686 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11687 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11688 */
11689 _Bool q = true;
11690 _Bool *pq = &q;
11691
11692 int
11693 main ()
11694 {
11695
11696 *pq |= q;
11697 *pq |= ! q;
11698 /* Refer to every declared value, to avoid compiler optimizations. */
11699 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11700 + !m + !n + !o + !p + !q + !pq);
11701
11702 ;
11703 return 0;
11704 }
11705 _ACEOF
11706 if ac_fn_c_try_compile "$LINENO"; then :
11707 ac_cv_header_stdbool_h=yes
11708 else
11709 ac_cv_header_stdbool_h=no
11710 fi
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11714 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11715 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11716 if test "x$ac_cv_type__Bool" = x""yes; then :
11717
11718 cat >>confdefs.h <<_ACEOF
11719 #define HAVE__BOOL 1
11720 _ACEOF
11721
11722
11723 fi
11724
11725 if test $ac_cv_header_stdbool_h = yes; then
11726
11727 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
11728
11729 fi
11730
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11732 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11733 if test "${ac_cv_header_time+set}" = set; then :
11734 $as_echo_n "(cached) " >&6
11735 else
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11738 #include <sys/types.h>
11739 #include <sys/time.h>
11740 #include <time.h>
11741
11742 int
11743 main ()
11744 {
11745 if ((struct tm *) 0)
11746 return 0;
11747 ;
11748 return 0;
11749 }
11750 _ACEOF
11751 if ac_fn_c_try_compile "$LINENO"; then :
11752 ac_cv_header_time=yes
11753 else
11754 ac_cv_header_time=no
11755 fi
11756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757 fi
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11759 $as_echo "$ac_cv_header_time" >&6; }
11760 if test $ac_cv_header_time = yes; then
11761
11762 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11763
11764 fi
11765
11766
11767 for ac_header in arpa/inet.h fcntl.h netinet/in_systm.h netinet/in.h stddef.h sys/ioctl.h sys/param.h sys/types.h sys/socket.h sys/time.h
11768 do :
11769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11770 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11771 eval as_val=\$$as_ac_Header
11772 if test "x$as_val" = x""yes; then :
11773 cat >>confdefs.h <<_ACEOF
11774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11775 _ACEOF
11776
11777 fi
11778
11779 done
11780
11781
11782 for ac_header in net/if.h
11783 do :
11784 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
11785 #ifdef HAVE_SYS_PARAM_H
11786 # include <sys/param.h>
11787 #endif
11788
11789 #ifdef HAVE_SYS_TYPES_H
11790 # include <sys/types.h>
11791 #endif
11792
11793 #ifdef HAVE_SYS_SOCKET_H
11794 # include <sys/socket.h>
11795 #endif
11796
11797
11798 "
11799 if test "x$ac_cv_header_net_if_h" = x""yes; then :
11800 cat >>confdefs.h <<_ACEOF
11801 #define HAVE_NET_IF_H 1
11802 _ACEOF
11803
11804 fi
11805
11806 done
11807
11808
11809 for ac_header in net/ethernet.h net/ethertypes.h net/if_ether.h netinet/if_ether.h netinet/ip.h netinet/ip6.h netinet/tcp.h netinet/udp.h
11810 do :
11811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11812 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
11813 #ifdef HAVE_SYS_PARAM_H
11814 # include <sys/param.h>
11815 #endif
11816
11817 #ifdef HAVE_SYS_TYPES_H
11818 # include <sys/types.h>
11819 #endif
11820
11821 #ifdef HAVE_SYS_SOCKET_H
11822 # include <sys/socket.h>
11823 #endif
11824
11825 #ifdef HAVE_NETINET_IN_SYSTM_H
11826 # include <netinet/in_systm.h>
11827 #endif
11828
11829 #ifdef HAVE_NETINET_IN_H
11830 # include <netinet/in.h>
11831 #endif
11832
11833 #ifdef HAVE_NET_IF_H
11834 # include <net/if.h>
11835 #endif
11836
11837
11838 "
11839 eval as_val=\$$as_ac_Header
11840 if test "x$as_val" = x""yes; then :
11841 cat >>confdefs.h <<_ACEOF
11842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11843 _ACEOF
11844
11845 fi
11846
11847 done
11848
11849
11850 ac_fn_c_check_type "$LINENO" "struct ether_header" "ac_cv_type_struct_ether_header" "
11851 #ifdef HAVE_SYS_PARAM_H
11852 # include <sys/param.h>
11853 #endif
11854
11855 #ifdef HAVE_SYS_TYPES_H
11856 # include <sys/types.h>
11857 #endif
11858
11859 #ifdef HAVE_SYS_SOCKET_H
11860 # include <sys/socket.h>
11861 #endif
11862
11863 #ifdef HAVE_NETINET_IN_SYSTM_H
11864 # include <netinet/in_systm.h>
11865 #endif
11866
11867 #ifdef HAVE_NETINET_IN_H
11868 # include <netinet/in.h>
11869 #endif
11870
11871 #ifdef HAVE_NETINET_IP_H
11872 # include <netinet/ip.h>
11873 #endif
11874
11875 #ifdef HAVE_NETINET_IP6_H
11876 # include <netinet/ip6.h>
11877 #endif
11878
11879 #ifdef HAVE_NETINET_UDP_H
11880 # include <netinet/udp.h>
11881 #endif
11882
11883 #ifdef HAVE_NETINET_TCP_H
11884 # include <netinet/tcp.h>
11885 #endif
11886
11887 #ifdef HAVE_NET_IF_H
11888 # include <net/if.h>
11889 #endif
11890
11891 #ifdef HAVE_NET_ETHERNET_H
11892 # include <net/ethernet.h>
11893 #endif
11894
11895 #ifdef HAVE_NET_ETHERTYPES_H
11896 # include <net/ethertypes.h>
11897 #endif
11898
11899 #ifdef HAVE_NET_IF_ETHER_H
11900 # include <net/if_ether.h>
11901 #endif
11902
11903 #ifdef HAVE_NETINET_IF_ETHER_H
11904 # include <netinet/if_ether.h>
11905 #endif
11906
11907
11908 "
11909 if test "x$ac_cv_type_struct_ether_header" = x""yes; then :
11910
11911 cat >>confdefs.h <<_ACEOF
11912 #define HAVE_STRUCT_ETHER_HEADER 1
11913 _ACEOF
11914
11915
11916 else
11917 as_fn_error "struct definition missing." "$LINENO" 5
11918 fi
11919 ac_fn_c_check_type "$LINENO" "struct ip" "ac_cv_type_struct_ip" "
11920 #ifdef HAVE_SYS_PARAM_H
11921 # include <sys/param.h>
11922 #endif
11923
11924 #ifdef HAVE_SYS_TYPES_H
11925 # include <sys/types.h>
11926 #endif
11927
11928 #ifdef HAVE_SYS_SOCKET_H
11929 # include <sys/socket.h>
11930 #endif
11931
11932 #ifdef HAVE_NETINET_IN_SYSTM_H
11933 # include <netinet/in_systm.h>
11934 #endif
11935
11936 #ifdef HAVE_NETINET_IN_H
11937 # include <netinet/in.h>
11938 #endif
11939
11940 #ifdef HAVE_NETINET_IP_H
11941 # include <netinet/ip.h>
11942 #endif
11943
11944 #ifdef HAVE_NETINET_IP6_H
11945 # include <netinet/ip6.h>
11946 #endif
11947
11948 #ifdef HAVE_NETINET_UDP_H
11949 # include <netinet/udp.h>
11950 #endif
11951
11952 #ifdef HAVE_NETINET_TCP_H
11953 # include <netinet/tcp.h>
11954 #endif
11955
11956 #ifdef HAVE_NET_IF_H
11957 # include <net/if.h>
11958 #endif
11959
11960 #ifdef HAVE_NET_ETHERNET_H
11961 # include <net/ethernet.h>
11962 #endif
11963
11964 #ifdef HAVE_NET_ETHERTYPES_H
11965 # include <net/ethertypes.h>
11966 #endif
11967
11968 #ifdef HAVE_NET_IF_ETHER_H
11969 # include <net/if_ether.h>
11970 #endif
11971
11972 #ifdef HAVE_NETINET_IF_ETHER_H
11973 # include <netinet/if_ether.h>
11974 #endif
11975
11976
11977 "
11978 if test "x$ac_cv_type_struct_ip" = x""yes; then :
11979
11980 cat >>confdefs.h <<_ACEOF
11981 #define HAVE_STRUCT_IP 1
11982 _ACEOF
11983
11984
11985 else
11986 as_fn_error "struct definition missing." "$LINENO" 5
11987 fi
11988 ac_fn_c_check_type "$LINENO" "struct ip6_hdr" "ac_cv_type_struct_ip6_hdr" "
11989 #ifdef HAVE_SYS_PARAM_H
11990 # include <sys/param.h>
11991 #endif
11992
11993 #ifdef HAVE_SYS_TYPES_H
11994 # include <sys/types.h>
11995 #endif
11996
11997 #ifdef HAVE_SYS_SOCKET_H
11998 # include <sys/socket.h>
11999 #endif
12000
12001 #ifdef HAVE_NETINET_IN_SYSTM_H
12002 # include <netinet/in_systm.h>
12003 #endif
12004
12005 #ifdef HAVE_NETINET_IN_H
12006 # include <netinet/in.h>
12007 #endif
12008
12009 #ifdef HAVE_NETINET_IP_H
12010 # include <netinet/ip.h>
12011 #endif
12012
12013 #ifdef HAVE_NETINET_IP6_H
12014 # include <netinet/ip6.h>
12015 #endif
12016
12017 #ifdef HAVE_NETINET_UDP_H
12018 # include <netinet/udp.h>
12019 #endif
12020
12021 #ifdef HAVE_NETINET_TCP_H
12022 # include <netinet/tcp.h>
12023 #endif
12024
12025 #ifdef HAVE_NET_IF_H
12026 # include <net/if.h>
12027 #endif
12028
12029 #ifdef HAVE_NET_ETHERNET_H
12030 # include <net/ethernet.h>
12031 #endif
12032
12033 #ifdef HAVE_NET_ETHERTYPES_H
12034 # include <net/ethertypes.h>
12035 #endif
12036
12037 #ifdef HAVE_NET_IF_ETHER_H
12038 # include <net/if_ether.h>
12039 #endif
12040
12041 #ifdef HAVE_NETINET_IF_ETHER_H
12042 # include <netinet/if_ether.h>
12043 #endif
12044
12045
12046 "
12047 if test "x$ac_cv_type_struct_ip6_hdr" = x""yes; then :
12048
12049 cat >>confdefs.h <<_ACEOF
12050 #define HAVE_STRUCT_IP6_HDR 1
12051 _ACEOF
12052
12053
12054 else
12055 as_fn_error "struct definition missing." "$LINENO" 5
12056 fi
12057 ac_fn_c_check_type "$LINENO" "struct tcphdr" "ac_cv_type_struct_tcphdr" "
12058 #ifdef HAVE_SYS_PARAM_H
12059 # include <sys/param.h>
12060 #endif
12061
12062 #ifdef HAVE_SYS_TYPES_H
12063 # include <sys/types.h>
12064 #endif
12065
12066 #ifdef HAVE_SYS_SOCKET_H
12067 # include <sys/socket.h>
12068 #endif
12069
12070 #ifdef HAVE_NETINET_IN_SYSTM_H
12071 # include <netinet/in_systm.h>
12072 #endif
12073
12074 #ifdef HAVE_NETINET_IN_H
12075 # include <netinet/in.h>
12076 #endif
12077
12078 #ifdef HAVE_NETINET_IP_H
12079 # include <netinet/ip.h>
12080 #endif
12081
12082 #ifdef HAVE_NETINET_IP6_H
12083 # include <netinet/ip6.h>
12084 #endif
12085
12086 #ifdef HAVE_NETINET_UDP_H
12087 # include <netinet/udp.h>
12088 #endif
12089
12090 #ifdef HAVE_NETINET_TCP_H
12091 # include <netinet/tcp.h>
12092 #endif
12093
12094 #ifdef HAVE_NET_IF_H
12095 # include <net/if.h>
12096 #endif
12097
12098 #ifdef HAVE_NET_ETHERNET_H
12099 # include <net/ethernet.h>
12100 #endif
12101
12102 #ifdef HAVE_NET_ETHERTYPES_H
12103 # include <net/ethertypes.h>
12104 #endif
12105
12106 #ifdef HAVE_NET_IF_ETHER_H
12107 # include <net/if_ether.h>
12108 #endif
12109
12110 #ifdef HAVE_NETINET_IF_ETHER_H
12111 # include <netinet/if_ether.h>
12112 #endif
12113
12114
12115 "
12116 if test "x$ac_cv_type_struct_tcphdr" = x""yes; then :
12117
12118 cat >>confdefs.h <<_ACEOF
12119 #define HAVE_STRUCT_TCPHDR 1
12120 _ACEOF
12121
12122
12123 else
12124 as_fn_error "struct definition missing." "$LINENO" 5
12125 fi
12126 ac_fn_c_check_type "$LINENO" "struct udphdr" "ac_cv_type_struct_udphdr" "
12127 #ifdef HAVE_SYS_PARAM_H
12128 # include <sys/param.h>
12129 #endif
12130
12131 #ifdef HAVE_SYS_TYPES_H
12132 # include <sys/types.h>
12133 #endif
12134
12135 #ifdef HAVE_SYS_SOCKET_H
12136 # include <sys/socket.h>
12137 #endif
12138
12139 #ifdef HAVE_NETINET_IN_SYSTM_H
12140 # include <netinet/in_systm.h>
12141 #endif
12142
12143 #ifdef HAVE_NETINET_IN_H
12144 # include <netinet/in.h>
12145 #endif
12146
12147 #ifdef HAVE_NETINET_IP_H
12148 # include <netinet/ip.h>
12149 #endif
12150
12151 #ifdef HAVE_NETINET_IP6_H
12152 # include <netinet/ip6.h>
12153 #endif
12154
12155 #ifdef HAVE_NETINET_UDP_H
12156 # include <netinet/udp.h>
12157 #endif
12158
12159 #ifdef HAVE_NETINET_TCP_H
12160 # include <netinet/tcp.h>
12161 #endif
12162
12163 #ifdef HAVE_NET_IF_H
12164 # include <net/if.h>
12165 #endif
12166
12167 #ifdef HAVE_NET_ETHERNET_H
12168 # include <net/ethernet.h>
12169 #endif
12170
12171 #ifdef HAVE_NET_ETHERTYPES_H
12172 # include <net/ethertypes.h>
12173 #endif
12174
12175 #ifdef HAVE_NET_IF_ETHER_H
12176 # include <net/if_ether.h>
12177 #endif
12178
12179 #ifdef HAVE_NETINET_IF_ETHER_H
12180 # include <netinet/if_ether.h>
12181 #endif
12182
12183
12184 "
12185 if test "x$ac_cv_type_struct_udphdr" = x""yes; then :
12186
12187 cat >>confdefs.h <<_ACEOF
12188 #define HAVE_STRUCT_UDPHDR 1
12189 _ACEOF
12190
12191
12192 else
12193 as_fn_error "struct definition missing." "$LINENO" 5
12194 fi
12195
12196
12197 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
12198 #ifdef HAVE_SYS_TYPES_H
12199 # include <sys/types.h>
12200 #endif
12201
12202 #ifdef HAVE_SYS_SOCKET_H
12203 # include <sys/socket.h>
12204 #endif
12205
12206
12207 "
12208 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
12209
12210 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
12211
12212 fi
12213
12214
12215
12216 ###
12217 ### get this out of the way
12218 ###
12219 LDFLAGS="$LDFLAGS -L/usr/local/lib"
12220
12221
12222 ###
12223 ### C compiler checks
12224 ###
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12226 $as_echo_n "checking for inline... " >&6; }
12227 if test "${ac_cv_c_inline+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 ac_cv_c_inline=no
12231 for ac_kw in inline __inline__ __inline; do
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234 #ifndef __cplusplus
12235 typedef int foo_t;
12236 static $ac_kw foo_t static_foo () {return 0; }
12237 $ac_kw foo_t foo () {return 0; }
12238 #endif
12239
12240 _ACEOF
12241 if ac_fn_c_try_compile "$LINENO"; then :
12242 ac_cv_c_inline=$ac_kw
12243 fi
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 test "$ac_cv_c_inline" != no && break
12246 done
12247
12248 fi
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12250 $as_echo "$ac_cv_c_inline" >&6; }
12251
12252 case $ac_cv_c_inline in
12253 inline | yes) ;;
12254 *)
12255 case $ac_cv_c_inline in
12256 no) ac_val=;;
12257 *) ac_val=$ac_cv_c_inline;;
12258 esac
12259 cat >>confdefs.h <<_ACEOF
12260 #ifndef __cplusplus
12261 #define inline $ac_val
12262 #endif
12263 _ACEOF
12264 ;;
12265 esac
12266
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12268 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12269 if test "${ac_cv_c_const+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12271 else
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12274
12275 int
12276 main ()
12277 {
12278 /* FIXME: Include the comments suggested by Paul. */
12279 #ifndef __cplusplus
12280 /* Ultrix mips cc rejects this. */
12281 typedef int charset[2];
12282 const charset cs;
12283 /* SunOS 4.1.1 cc rejects this. */
12284 char const *const *pcpcc;
12285 char **ppc;
12286 /* NEC SVR4.0.2 mips cc rejects this. */
12287 struct point {int x, y;};
12288 static struct point const zero = {0,0};
12289 /* AIX XL C 1.02.0.0 rejects this.
12290 It does not let you subtract one const X* pointer from another in
12291 an arm of an if-expression whose if-part is not a constant
12292 expression */
12293 const char *g = "string";
12294 pcpcc = &g + (g ? g-g : 0);
12295 /* HPUX 7.0 cc rejects these. */
12296 ++pcpcc;
12297 ppc = (char**) pcpcc;
12298 pcpcc = (char const *const *) ppc;
12299 { /* SCO 3.2v4 cc rejects this. */
12300 char *t;
12301 char const *s = 0 ? (char *) 0 : (char const *) 0;
12302
12303 *t++ = 0;
12304 if (s) return 0;
12305 }
12306 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12307 int x[] = {25, 17};
12308 const int *foo = &x[0];
12309 ++foo;
12310 }
12311 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12312 typedef const int *iptr;
12313 iptr p = 0;
12314 ++p;
12315 }
12316 { /* AIX XL C 1.02.0.0 rejects this saying
12317 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12318 struct s { int j; const int *ap[3]; };
12319 struct s *b; b->j = 5;
12320 }
12321 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12322 const int foo = 10;
12323 if (!foo) return 0;
12324 }
12325 return !cs[0] && !zero.x;
12326 #endif
12327
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 if ac_fn_c_try_compile "$LINENO"; then :
12333 ac_cv_c_const=yes
12334 else
12335 ac_cv_c_const=no
12336 fi
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12340 $as_echo "$ac_cv_c_const" >&6; }
12341 if test $ac_cv_c_const = no; then
12342
12343 $as_echo "#define const /**/" >>confdefs.h
12344
12345 fi
12346
12347
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
12349 $as_echo_n "checking for flexible array members... " >&6; }
12350 if test "${ac_cv_c_flexmember+set}" = set; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12355 #include <stdlib.h>
12356 #include <stdio.h>
12357 #include <stddef.h>
12358 struct s { int n; double d[]; };
12359 int
12360 main ()
12361 {
12362 int m = getchar ();
12363 struct s *p = malloc (offsetof (struct s, d)
12364 + m * sizeof (double));
12365 p->d[0] = 0.0;
12366 return p->d != (double *) NULL;
12367 ;
12368 return 0;
12369 }
12370 _ACEOF
12371 if ac_fn_c_try_compile "$LINENO"; then :
12372 ac_cv_c_flexmember=yes
12373 else
12374 ac_cv_c_flexmember=no
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
12379 $as_echo "$ac_cv_c_flexmember" >&6; }
12380 if test $ac_cv_c_flexmember = yes; then
12381
12382 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
12383
12384 else
12385 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
12386
12387 fi
12388
12389
12390
12391
12392 if test "x$GCC" = xyes; then
12393 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall -Werror -Wunused -Wshadow -Wcast-qual"
12394 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wpointer-arith -Wwrite-strings -Wnested-externs"
12395 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wmissing-noreturn -Wmissing-prototypes -Wbad-function-cast"
12396 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wbad-function-cast -Wformat-nonliteral"
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wextra" >&5
12398 $as_echo_n "checking if $CC supports -Wextra... " >&6; }
12399 myac_save_CFLAGS=$CFLAGS
12400 CFLAGS="$myac_save_CFLAGS -Wextra"
12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12403
12404 int
12405 main ()
12406 {
12407
12408 ;
12409 return 0;
12410 }
12411 _ACEOF
12412 if ac_fn_c_try_compile "$LINENO"; then :
12413 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wextra"
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12415 $as_echo "yes" >&6; }
12416 else
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12419 fi
12420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12421 CFLAGS="$myac_save_CFLAGS"
12422
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wswitch-enum" >&5
12424 $as_echo_n "checking if $CC supports -Wswitch-enum... " >&6; }
12425 myac_save_CFLAGS=$CFLAGS
12426 CFLAGS="$myac_save_CFLAGS -Wswitch-enum"
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12429
12430 int
12431 main ()
12432 {
12433
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_compile "$LINENO"; then :
12439 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wswitch-enum"
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441 $as_echo "yes" >&6; }
12442 else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12445 fi
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 CFLAGS="$myac_save_CFLAGS"
12448
12449 case $host in
12450 *-*-darwin*)
12451 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused"
12452 ;;
12453 esac
12454 fi
12455
12456
12457
12458 ###
12459 ### check for pthreads
12460 ###
12461 # ===========================================================================
12462 # http://autoconf-archive.cryp.to/acx_pthread.html
12463 # ===========================================================================
12464 #
12465 # SYNOPSIS
12466 #
12467 # ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
12468 #
12469 # DESCRIPTION
12470 #
12471 # This macro figures out how to build C programs using POSIX threads. It
12472 # sets the PTHREAD_LIBS output variable to the threads library and linker
12473 # flags, and the PTHREAD_CFLAGS output variable to any special C compiler
12474 # flags that are needed. (The user can also force certain compiler
12475 # flags/libs to be tested by setting these environment variables.)
12476 #
12477 # Also sets PTHREAD_CC to any special C compiler that is needed for
12478 # multi-threaded programs (defaults to the value of CC otherwise). (This
12479 # is necessary on AIX to use the special cc_r compiler alias.)
12480 #
12481 # NOTE: You are assumed to not only compile your program with these flags,
12482 # but also link it with them as well. e.g. you should link with
12483 # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
12484 #
12485 # If you are only building threads programs, you may wish to use these
12486 # variables in your default LIBS, CFLAGS, and CC:
12487 #
12488 # LIBS="$PTHREAD_LIBS $LIBS"
12489 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12490 # CC="$PTHREAD_CC"
12491 #
12492 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
12493 # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
12494 # (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
12495 #
12496 # ACTION-IF-FOUND is a list of shell commands to run if a threads library
12497 # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
12498 # is not found. If ACTION-IF-FOUND is not specified, the default action
12499 # will define HAVE_PTHREAD.
12500 #
12501 # Please let the authors know if this macro fails on any platform, or if
12502 # you have any other suggestions or comments. This macro was based on work
12503 # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
12504 # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
12505 # Alejandro Forero Cuervo to the autoconf macro repository. We are also
12506 # grateful for the helpful feedback of numerous users.
12507 #
12508 # LAST MODIFICATION
12509 #
12510 # 2008-04-12
12511 #
12512 # COPYLEFT
12513 #
12514 # Copyright (c) 2008 Steven G. Johnson <[email protected]>
12515 #
12516 # This program is free software: you can redistribute it and/or modify it
12517 # under the terms of the GNU General Public License as published by the
12518 # Free Software Foundation, either version 3 of the License, or (at your
12519 # option) any later version.
12520 #
12521 # This program is distributed in the hope that it will be useful, but
12522 # WITHOUT ANY WARRANTY; without even the implied warranty of
12523 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
12524 # Public License for more details.
12525 #
12526 # You should have received a copy of the GNU General Public License along
12527 # with this program. If not, see <http://www.gnu.org/licenses/>.
12528 #
12529 # As a special exception, the respective Autoconf Macro's copyright owner
12530 # gives unlimited permission to copy, distribute and modify the configure
12531 # scripts that are the output of Autoconf when processing the Macro. You
12532 # need not follow the terms of the GNU General Public License when using
12533 # or distributing such scripts, even though portions of the text of the
12534 # Macro appear in them. The GNU General Public License (GPL) does govern
12535 # all other use of the material that constitutes the Autoconf Macro.
12536 #
12537 # This special exception to the GPL applies to versions of the Autoconf
12538 # Macro released by the Autoconf Macro Archive. When you make and
12539 # distribute a modified version of the Autoconf Macro, you may extend this
12540 # special exception to the GPL to apply to your modified version as well.
12541
12542
12543
12544
12545
12546 ac_ext=c
12547 ac_cpp='$CPP $CPPFLAGS'
12548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12551
12552 acx_pthread_ok=no
12553
12554 # We used to check for pthread.h first, but this fails if pthread.h
12555 # requires special compiler flags (e.g. on True64 or Sequent).
12556 # It gets checked for in the link test anyway.
12557
12558 # First of all, check if the user has set any of the PTHREAD_LIBS,
12559 # etcetera environment variables, and if threads linking works using
12560 # them:
12561 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
12562 save_CFLAGS="$CFLAGS"
12563 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12564 save_LIBS="$LIBS"
12565 LIBS="$PTHREAD_LIBS $LIBS"
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
12567 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570
12571 /* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12574 #ifdef __cplusplus
12575 extern "C"
12576 #endif
12577 char pthread_join ();
12578 int
12579 main ()
12580 {
12581 return pthread_join ();
12582 ;
12583 return 0;
12584 }
12585 _ACEOF
12586 if ac_fn_c_try_link "$LINENO"; then :
12587 acx_pthread_ok=yes
12588 fi
12589 rm -f core conftest.err conftest.$ac_objext \
12590 conftest$ac_exeext conftest.$ac_ext
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12592 $as_echo "$acx_pthread_ok" >&6; }
12593 if test x"$acx_pthread_ok" = xno; then
12594 PTHREAD_LIBS=""
12595 PTHREAD_CFLAGS=""
12596 fi
12597 LIBS="$save_LIBS"
12598 CFLAGS="$save_CFLAGS"
12599 fi
12600
12601 # We must check for the threads library under a number of different
12602 # names; the ordering is very important because some systems
12603 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
12604 # libraries is broken (non-POSIX).
12605
12606 # Create a list of thread flags to try. Items starting with a "-" are
12607 # C compiler flags, and other items are library names, except for "none"
12608 # which indicates that we try without any flags at all, and "pthread-config"
12609 # which is a program returning the flags for the Pth emulation library.
12610
12611 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
12612
12613 # The ordering *is* (sometimes) important. Some notes on the
12614 # individual items follow:
12615
12616 # pthreads: AIX (must check this before -lpthread)
12617 # none: in case threads are in libc; should be tried before -Kthread and
12618 # other compiler flags to prevent continual compiler warnings
12619 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
12620 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
12621 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
12622 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
12623 # -pthreads: Solaris/gcc
12624 # -mthreads: Mingw32/gcc, Lynx/gcc
12625 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
12626 # doesn't hurt to check since this sometimes defines pthreads too;
12627 # also defines -D_REENTRANT)
12628 # ... -mt is also the pthreads flag for HP/aCC
12629 # pthread: Linux, etcetera
12630 # --thread-safe: KAI C++
12631 # pthread-config: use pthread-config program (for GNU Pth library)
12632
12633 case "${host_cpu}-${host_os}" in
12634 *solaris*)
12635
12636 # On Solaris (at least, for some versions), libc contains stubbed
12637 # (non-functional) versions of the pthreads routines, so link-based
12638 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
12639 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
12640 # a function called by this macro, so we could check for that, but
12641 # who knows whether they'll stub that too in a future libc.) So,
12642 # we'll just look for -pthreads and -lpthread first:
12643
12644 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
12645 ;;
12646 esac
12647
12648 if test x"$acx_pthread_ok" = xno; then
12649 for flag in $acx_pthread_flags; do
12650
12651 case $flag in
12652 none)
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
12654 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
12655 ;;
12656
12657 -*)
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
12659 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
12660 PTHREAD_CFLAGS="$flag"
12661 ;;
12662
12663 pthread-config)
12664 # Extract the first word of "pthread-config", so it can be a program name with args.
12665 set dummy pthread-config; ac_word=$2
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667 $as_echo_n "checking for $ac_word... " >&6; }
12668 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12671 if test -n "$acx_pthread_config"; then
12672 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
12673 else
12674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 for as_dir in $PATH
12676 do
12677 IFS=$as_save_IFS
12678 test -z "$as_dir" && as_dir=.
12679 for ac_exec_ext in '' $ac_executable_extensions; do
12680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12681 ac_cv_prog_acx_pthread_config="yes"
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683 break 2
12684 fi
12685 done
12686 done
12687 IFS=$as_save_IFS
12688
12689 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
12690 fi
12691 fi
12692 acx_pthread_config=$ac_cv_prog_acx_pthread_config
12693 if test -n "$acx_pthread_config"; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
12695 $as_echo "$acx_pthread_config" >&6; }
12696 else
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12699 fi
12700
12701
12702 if test x"$acx_pthread_config" = xno; then continue; fi
12703 PTHREAD_CFLAGS="`pthread-config --cflags`"
12704 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
12705 ;;
12706
12707 *)
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
12709 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
12710 PTHREAD_LIBS="-l$flag"
12711 ;;
12712 esac
12713
12714 save_LIBS="$LIBS"
12715 save_CFLAGS="$CFLAGS"
12716 LIBS="$PTHREAD_LIBS $LIBS"
12717 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12718
12719 # Check for various functions. We must include pthread.h,
12720 # since some functions may be macros. (On the Sequent, we
12721 # need a special flag -Kthread to make this header compile.)
12722 # We check for pthread_join because it is in -lpthread on IRIX
12723 # while pthread_create is in libc. We check for pthread_attr_init
12724 # due to DEC craziness with -lpthreads. We check for
12725 # pthread_cleanup_push because it is one of the few pthread
12726 # functions on Solaris that doesn't have a non-functional libc stub.
12727 # We try pthread_create on general principles.
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12730 #include <pthread.h>
12731 int
12732 main ()
12733 {
12734 pthread_t th; pthread_join(th, 0);
12735 pthread_attr_init(0); pthread_cleanup_push(0, 0);
12736 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
12737 ;
12738 return 0;
12739 }
12740 _ACEOF
12741 if ac_fn_c_try_link "$LINENO"; then :
12742 acx_pthread_ok=yes
12743 fi
12744 rm -f core conftest.err conftest.$ac_objext \
12745 conftest$ac_exeext conftest.$ac_ext
12746
12747 LIBS="$save_LIBS"
12748 CFLAGS="$save_CFLAGS"
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12751 $as_echo "$acx_pthread_ok" >&6; }
12752 if test "x$acx_pthread_ok" = xyes; then
12753 break;
12754 fi
12755
12756 PTHREAD_LIBS=""
12757 PTHREAD_CFLAGS=""
12758 done
12759 fi
12760
12761 # Various other checks:
12762 if test "x$acx_pthread_ok" = xyes; then
12763 save_LIBS="$LIBS"
12764 LIBS="$PTHREAD_LIBS $LIBS"
12765 save_CFLAGS="$CFLAGS"
12766 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12767
12768 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
12770 $as_echo_n "checking for joinable pthread attribute... " >&6; }
12771 attr_name=unknown
12772 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12775 #include <pthread.h>
12776 int
12777 main ()
12778 {
12779 int attr=$attr; return attr;
12780 ;
12781 return 0;
12782 }
12783 _ACEOF
12784 if ac_fn_c_try_link "$LINENO"; then :
12785 attr_name=$attr; break
12786 fi
12787 rm -f core conftest.err conftest.$ac_objext \
12788 conftest$ac_exeext conftest.$ac_ext
12789 done
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
12791 $as_echo "$attr_name" >&6; }
12792 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
12793
12794 cat >>confdefs.h <<_ACEOF
12795 #define PTHREAD_CREATE_JOINABLE $attr_name
12796 _ACEOF
12797
12798 fi
12799
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
12801 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
12802 flag=no
12803 case "${host_cpu}-${host_os}" in
12804 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
12805 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
12806 esac
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
12808 $as_echo "${flag}" >&6; }
12809 if test "x$flag" != xno; then
12810 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
12811 fi
12812
12813 LIBS="$save_LIBS"
12814 CFLAGS="$save_CFLAGS"
12815
12816 # More AIX lossage: must compile with xlc_r or cc_r
12817 if test x"$GCC" != xyes; then
12818 for ac_prog in xlc_r cc_r
12819 do
12820 # Extract the first word of "$ac_prog", so it can be a program name with args.
12821 set dummy $ac_prog; ac_word=$2
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823 $as_echo_n "checking for $ac_word... " >&6; }
12824 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 if test -n "$PTHREAD_CC"; then
12828 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
12829 else
12830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831 for as_dir in $PATH
12832 do
12833 IFS=$as_save_IFS
12834 test -z "$as_dir" && as_dir=.
12835 for ac_exec_ext in '' $ac_executable_extensions; do
12836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12837 ac_cv_prog_PTHREAD_CC="$ac_prog"
12838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12839 break 2
12840 fi
12841 done
12842 done
12843 IFS=$as_save_IFS
12844
12845 fi
12846 fi
12847 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
12848 if test -n "$PTHREAD_CC"; then
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
12850 $as_echo "$PTHREAD_CC" >&6; }
12851 else
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12854 fi
12855
12856
12857 test -n "$PTHREAD_CC" && break
12858 done
12859 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
12860
12861 else
12862 PTHREAD_CC=$CC
12863 fi
12864 else
12865 PTHREAD_CC="$CC"
12866 fi
12867
12868
12869
12870
12871
12872 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
12873 if test x"$acx_pthread_ok" = xyes; then
12874
12875 LIBS="$PTHREAD_LIBS $LIBS"
12876 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12877 CC="$PTHREAD_CC"
12878
12879 :
12880 else
12881 acx_pthread_ok=no
12882
12883 fi
12884 ac_ext=c
12885 ac_cpp='$CPP $CPPFLAGS'
12886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12889
12890
12891
12892 ###
12893 ### libpcap
12894 ###
12895 ###
12896 ### libpcap
12897 ###
12898
12899 # Check whether --with-libpcap was given.
12900 if test "${with_libpcap+set}" = set; then :
12901 withval=$with_libpcap;
12902 else
12903 withval="yes"
12904 fi
12905
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap headers" >&5
12907 $as_echo_n "checking for libpcap headers... " >&6; }
12908 if test x_$withval = x_yes; then
12909 withval="/usr /usr/local"
12910 fi
12911
12912 libpcap_cflags=""
12913 libpcap_ldflags=""
12914 libpcap_libs="-lpcap"
12915
12916 libpcap_dir=""
12917 for dir in $withval; do
12918 if test -f "$dir/include/pcap.h"; then
12919 found_libpcap_dir="yes"
12920 libpcap_dir="$dir"
12921 if test x_$dir != x_/usr; then
12922 libpcap_cflags="-I$dir/include"
12923 fi
12924 break;
12925 fi
12926 done
12927
12928 if test x_$found_libpcap_dir = x_yes; then
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&5
12930 $as_echo "$dir" >&6; }
12931 else
12932 as_fn_error "cannot find libpcap.h in $withval" "$LINENO" 5
12933 fi
12934
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap library" >&5
12936 $as_echo_n "checking for libpcap library... " >&6; }
12937
12938 if test x_$libpcap_dir != x_/usr; then
12939 libpcap_ldflags="-L$libpcap_dir/lib"
12940 fi
12941
12942 save_cflags="$CFLAGS"
12943 save_ldflags="$LDFLAGS"
12944 save_libs="$LIBS"
12945 CFLAGS="$CFLAGS $libpcap_cflags"
12946 LDFLAGS="$LDFLAGS $libpcap_ldflags"
12947 LIBS="$LIBS $libpcap_libs"
12948
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951
12952 #include <pcap.h>
12953
12954 int
12955 main ()
12956 {
12957
12958 pcap_open_offline(0, 0);
12959
12960 ;
12961 return 0;
12962 }
12963 _ACEOF
12964 if ac_fn_c_try_link "$LINENO"; then :
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12966 $as_echo "yes" >&6; }
12967
12968 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
12969
12970
12971 else
12972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12974 as_fn_error "cannot find libpcap library
12975 See \`config.log' for more details." "$LINENO" 5; }
12976 libpcap_cflags=""
12977 libpcap_ldflags=""
12978 libpcap_libs=""
12979
12980 fi
12981 rm -f core conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983
12984 CFLAGS="$save_cflags"
12985 LDFLAGS="$save_ldflags"
12986 LIBS="$save_libs"
12987
12988
12989
12990
12991
12992
12993 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
12994 if test "x$ac_cv_header_net_bpf_h" = x""yes; then :
12995 ac_fn_c_check_type "$LINENO" "struct bpf_timeval" "ac_cv_type_struct_bpf_timeval" "
12996 #include <sys/types.h>
12997 #include <net/bpf.h>
12998
12999
13000 "
13001 if test "x$ac_cv_type_struct_bpf_timeval" = x""yes; then :
13002
13003 $as_echo "#define HAVE_BPF_TIMEVAL 1" >>confdefs.h
13004
13005 fi
13006
13007
13008 fi
13009
13010
13011
13012 ###
13013 ### libbind
13014 ###
13015 ###
13016 ### libbind
13017 ###
13018
13019 # Check whether --with-libbind was given.
13020 if test "${with_libbind+set}" = set; then :
13021 withval=$with_libbind;
13022 else
13023 withval="yes"
13024 fi
13025
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbind headers" >&5
13027 $as_echo_n "checking for libbind headers... " >&6; }
13028 if test x_$withval = x_yes; then
13029 withval="/usr /usr/local"
13030 fi
13031
13032 libbind_cflags=""
13033 libbind_ldflags=""
13034 libbind_libs="-lbind"
13035
13036 libbind_dir=""
13037 for dir in $withval; do
13038 if test -f "$dir/include/bind/arpa/nameser.h"; then
13039 found_libbind_dir="yes"
13040 libbind_dir="$dir"
13041 libbind_cflags="-I$dir/include/bind"
13042 break
13043 fi
13044 done
13045
13046 if test x_$found_libbind_dir = x_yes; then
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&5
13048 $as_echo "$dir" >&6; }
13049 else
13050 as_fn_error "not found" "$LINENO" 5
13051 fi
13052
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbind library" >&5
13054 $as_echo_n "checking for libbind library... " >&6; }
13055
13056 if test x_$libbind_dir != x_/usr; then
13057 libbind_ldflags="-L$libbind_dir/lib"
13058 fi
13059
13060 save_cflags="$CFLAGS"
13061 save_ldflags="$LDFLAGS"
13062 save_libs="$LIBS"
13063
13064 CFLAGS="$CFLAGS $libbind_cflags"
13065 LDFLAGS="$LDFLAGS $libbind_ldflags"
13066 LIBS="$LIBS $libbind_libs"
13067
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13070
13071 #include <sys/types.h>
13072 #include <netinet/in.h>
13073 #include <arpa/nameser.h>
13074
13075 int
13076 main ()
13077 {
13078
13079 ns_initparse(0,0,0);
13080 ns_name_uncompress(0,0,0,0,0);
13081
13082 ;
13083 return 0;
13084 }
13085 _ACEOF
13086 if ac_fn_c_try_link "$LINENO"; then :
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13088 $as_echo "yes" >&6; }
13089
13090 $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
13091
13092
13093 $as_echo "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
13094
13095
13096 else
13097 as_fn_error "not found" "$LINENO" 5
13098 libbind_cflags=""
13099 libbind_ldflags=""
13100 libbind_libs=""
13101
13102 fi
13103 rm -f core conftest.err conftest.$ac_objext \
13104 conftest$ac_exeext conftest.$ac_ext
13105
13106 CFLAGS="$save_cflags"
13107 LDFLAGS="$save_ldflags"
13108 LIBS="$save_libs"
13109
13110
13111
13112
13113
13114
13115 cat >confcache <<\_ACEOF
13116 # This file is a shell script that caches the results of configure
13117 # tests run on this system so they can be shared between configure
13118 # scripts and configure runs, see configure's option --config-cache.
13119 # It is not useful on other systems. If it contains results you don't
13120 # want to keep, you may remove or edit it.
13121 #
13122 # config.status only pays attention to the cache file if you give it
13123 # the --recheck option to rerun configure.
13124 #
13125 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13126 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13127 # following values.
13128
13129 _ACEOF
13130
13131 # The following way of writing the cache mishandles newlines in values,
13132 # but we know of no workaround that is simple, portable, and efficient.
13133 # So, we kill variables containing newlines.
13134 # Ultrix sh set writes to stderr and can't be redirected directly,
13135 # and sets the high bit in the cache file unless we assign to the vars.
13136 (
13137 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13138 eval ac_val=\$$ac_var
13139 case $ac_val in #(
13140 *${as_nl}*)
13141 case $ac_var in #(
13142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13144 esac
13145 case $ac_var in #(
13146 _ | IFS | as_nl) ;; #(
13147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13148 *) { eval $ac_var=; unset $ac_var;} ;;
13149 esac ;;
13150 esac
13151 done
13152
13153 (set) 2>&1 |
13154 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13155 *${as_nl}ac_space=\ *)
13156 # `set' does not quote correctly, so add quotes: double-quote
13157 # substitution turns \\\\ into \\, and sed turns \\ into \.
13158 sed -n \
13159 "s/'/'\\\\''/g;
13160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13161 ;; #(
13162 *)
13163 # `set' quotes correctly as required by POSIX, so do not add quotes.
13164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13165 ;;
13166 esac |
13167 sort
13168 ) |
13169 sed '
13170 /^ac_cv_env_/b end
13171 t clear
13172 :clear
13173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13174 t end
13175 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13176 :end' >>confcache
13177 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13178 if test -w "$cache_file"; then
13179 test "x$cache_file" != "x/dev/null" &&
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13181 $as_echo "$as_me: updating cache $cache_file" >&6;}
13182 cat confcache >$cache_file
13183 else
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13185 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13186 fi
13187 fi
13188 rm -f confcache
13189
13190 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13191 # Let make expand exec_prefix.
13192 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13193
13194 DEFS=-DHAVE_CONFIG_H
13195
13196 ac_libobjs=
13197 ac_ltlibobjs=
13198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13199 # 1. Remove the extension, and $U if already installed.
13200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13201 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13203 # will be set to the directory where LIBOBJS objects are built.
13204 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13205 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13206 done
13207 LIBOBJS=$ac_libobjs
13208
13209 LTLIBOBJS=$ac_ltlibobjs
13210
13211
13212 if test -n "$EXEEXT"; then
13213 am__EXEEXT_TRUE=
13214 am__EXEEXT_FALSE='#'
13215 else
13216 am__EXEEXT_TRUE='#'
13217 am__EXEEXT_FALSE=
13218 fi
13219
13220 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13221 as_fn_error "conditional \"AMDEP\" was never defined.
13222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13223 fi
13224 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13225 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13227 fi
13228
13229 : ${CONFIG_STATUS=./config.status}
13230 ac_write_fail=0
13231 ac_clean_files_save=$ac_clean_files
13232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13234 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13235 as_write_fail=0
13236 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13237 #! $SHELL
13238 # Generated by $as_me.
13239 # Run this file to recreate the current configuration.
13240 # Compiler output produced by configure, useful for debugging
13241 # configure, is in config.log if it exists.
13242
13243 debug=false
13244 ac_cs_recheck=false
13245 ac_cs_silent=false
13246
13247 SHELL=\${CONFIG_SHELL-$SHELL}
13248 export SHELL
13249 _ASEOF
13250 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13251 ## -------------------- ##
13252 ## M4sh Initialization. ##
13253 ## -------------------- ##
13254
13255 # Be more Bourne compatible
13256 DUALCASE=1; export DUALCASE # for MKS sh
13257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13258 emulate sh
13259 NULLCMD=:
13260 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13261 # is contrary to our usage. Disable this feature.
13262 alias -g '${1+"$@"}'='"$@"'
13263 setopt NO_GLOB_SUBST
13264 else
13265 case `(set -o) 2>/dev/null` in #(
13266 *posix*) :
13267 set -o posix ;; #(
13268 *) :
13269 ;;
13270 esac
13271 fi
13272
13273
13274 as_nl='
13275 '
13276 export as_nl
13277 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13278 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13281 # Prefer a ksh shell builtin over an external printf program on Solaris,
13282 # but without wasting forks for bash or zsh.
13283 if test -z "$BASH_VERSION$ZSH_VERSION" \
13284 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13285 as_echo='print -r --'
13286 as_echo_n='print -rn --'
13287 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13288 as_echo='printf %s\n'
13289 as_echo_n='printf %s'
13290 else
13291 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13292 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13293 as_echo_n='/usr/ucb/echo -n'
13294 else
13295 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13296 as_echo_n_body='eval
13297 arg=$1;
13298 case $arg in #(
13299 *"$as_nl"*)
13300 expr "X$arg" : "X\\(.*\\)$as_nl";
13301 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13302 esac;
13303 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13304 '
13305 export as_echo_n_body
13306 as_echo_n='sh -c $as_echo_n_body as_echo'
13307 fi
13308 export as_echo_body
13309 as_echo='sh -c $as_echo_body as_echo'
13310 fi
13311
13312 # The user is always right.
13313 if test "${PATH_SEPARATOR+set}" != set; then
13314 PATH_SEPARATOR=:
13315 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13316 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13317 PATH_SEPARATOR=';'
13318 }
13319 fi
13320
13321
13322 # IFS
13323 # We need space, tab and new line, in precisely that order. Quoting is
13324 # there to prevent editors from complaining about space-tab.
13325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13326 # splitting by setting IFS to empty value.)
13327 IFS=" "" $as_nl"
13328
13329 # Find who we are. Look in the path if we contain no directory separator.
13330 case $0 in #((
13331 *[\\/]* ) as_myself=$0 ;;
13332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH
13334 do
13335 IFS=$as_save_IFS
13336 test -z "$as_dir" && as_dir=.
13337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13338 done
13339 IFS=$as_save_IFS
13340
13341 ;;
13342 esac
13343 # We did not find ourselves, most probably we were run as `sh COMMAND'
13344 # in which case we are not to be found in the path.
13345 if test "x$as_myself" = x; then
13346 as_myself=$0
13347 fi
13348 if test ! -f "$as_myself"; then
13349 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13350 exit 1
13351 fi
13352
13353 # Unset variables that we do not need and which cause bugs (e.g. in
13354 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13355 # suppresses any "Segmentation fault" message there. '((' could
13356 # trigger a bug in pdksh 5.2.14.
13357 for as_var in BASH_ENV ENV MAIL MAILPATH
13358 do eval test x\${$as_var+set} = xset \
13359 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13360 done
13361 PS1='$ '
13362 PS2='> '
13363 PS4='+ '
13364
13365 # NLS nuisances.
13366 LC_ALL=C
13367 export LC_ALL
13368 LANGUAGE=C
13369 export LANGUAGE
13370
13371 # CDPATH.
13372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13373
13374
13375 # as_fn_error ERROR [LINENO LOG_FD]
13376 # ---------------------------------
13377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13379 # script with status $?, using 1 if that was 0.
13380 as_fn_error ()
13381 {
13382 as_status=$?; test $as_status -eq 0 && as_status=1
13383 if test "$3"; then
13384 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13386 fi
13387 $as_echo "$as_me: error: $1" >&2
13388 as_fn_exit $as_status
13389 } # as_fn_error
13390
13391
13392 # as_fn_set_status STATUS
13393 # -----------------------
13394 # Set $? to STATUS, without forking.
13395 as_fn_set_status ()
13396 {
13397 return $1
13398 } # as_fn_set_status
13399
13400 # as_fn_exit STATUS
13401 # -----------------
13402 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13403 as_fn_exit ()
13404 {
13405 set +e
13406 as_fn_set_status $1
13407 exit $1
13408 } # as_fn_exit
13409
13410 # as_fn_unset VAR
13411 # ---------------
13412 # Portably unset VAR.
13413 as_fn_unset ()
13414 {
13415 { eval $1=; unset $1;}
13416 }
13417 as_unset=as_fn_unset
13418 # as_fn_append VAR VALUE
13419 # ----------------------
13420 # Append the text in VALUE to the end of the definition contained in VAR. Take
13421 # advantage of any shell optimizations that allow amortized linear growth over
13422 # repeated appends, instead of the typical quadratic growth present in naive
13423 # implementations.
13424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13425 eval 'as_fn_append ()
13426 {
13427 eval $1+=\$2
13428 }'
13429 else
13430 as_fn_append ()
13431 {
13432 eval $1=\$$1\$2
13433 }
13434 fi # as_fn_append
13435
13436 # as_fn_arith ARG...
13437 # ------------------
13438 # Perform arithmetic evaluation on the ARGs, and store the result in the
13439 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13440 # must be portable across $(()) and expr.
13441 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13442 eval 'as_fn_arith ()
13443 {
13444 as_val=$(( $* ))
13445 }'
13446 else
13447 as_fn_arith ()
13448 {
13449 as_val=`expr "$@" || test $? -eq 1`
13450 }
13451 fi # as_fn_arith
13452
13453
13454 if expr a : '\(a\)' >/dev/null 2>&1 &&
13455 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13456 as_expr=expr
13457 else
13458 as_expr=false
13459 fi
13460
13461 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13462 as_basename=basename
13463 else
13464 as_basename=false
13465 fi
13466
13467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13468 as_dirname=dirname
13469 else
13470 as_dirname=false
13471 fi
13472
13473 as_me=`$as_basename -- "$0" ||
13474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13475 X"$0" : 'X\(//\)$' \| \
13476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13477 $as_echo X/"$0" |
13478 sed '/^.*\/\([^/][^/]*\)\/*$/{
13479 s//\1/
13480 q
13481 }
13482 /^X\/\(\/\/\)$/{
13483 s//\1/
13484 q
13485 }
13486 /^X\/\(\/\).*/{
13487 s//\1/
13488 q
13489 }
13490 s/.*/./; q'`
13491
13492 # Avoid depending upon Character Ranges.
13493 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13494 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13495 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13496 as_cr_digits='0123456789'
13497 as_cr_alnum=$as_cr_Letters$as_cr_digits
13498
13499 ECHO_C= ECHO_N= ECHO_T=
13500 case `echo -n x` in #(((((
13501 -n*)
13502 case `echo 'xy\c'` in
13503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13504 xy) ECHO_C='\c';;
13505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13506 ECHO_T=' ';;
13507 esac;;
13508 *)
13509 ECHO_N='-n';;
13510 esac
13511
13512 rm -f conf$$ conf$$.exe conf$$.file
13513 if test -d conf$$.dir; then
13514 rm -f conf$$.dir/conf$$.file
13515 else
13516 rm -f conf$$.dir
13517 mkdir conf$$.dir 2>/dev/null
13518 fi
13519 if (echo >conf$$.file) 2>/dev/null; then
13520 if ln -s conf$$.file conf$$ 2>/dev/null; then
13521 as_ln_s='ln -s'
13522 # ... but there are two gotchas:
13523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13525 # In both cases, we have to default to `cp -p'.
13526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13527 as_ln_s='cp -p'
13528 elif ln conf$$.file conf$$ 2>/dev/null; then
13529 as_ln_s=ln
13530 else
13531 as_ln_s='cp -p'
13532 fi
13533 else
13534 as_ln_s='cp -p'
13535 fi
13536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13537 rmdir conf$$.dir 2>/dev/null
13538
13539
13540 # as_fn_mkdir_p
13541 # -------------
13542 # Create "$as_dir" as a directory, including parents if necessary.
13543 as_fn_mkdir_p ()
13544 {
13545
13546 case $as_dir in #(
13547 -*) as_dir=./$as_dir;;
13548 esac
13549 test -d "$as_dir" || eval $as_mkdir_p || {
13550 as_dirs=
13551 while :; do
13552 case $as_dir in #(
13553 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13554 *) as_qdir=$as_dir;;
13555 esac
13556 as_dirs="'$as_qdir' $as_dirs"
13557 as_dir=`$as_dirname -- "$as_dir" ||
13558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13559 X"$as_dir" : 'X\(//\)[^/]' \| \
13560 X"$as_dir" : 'X\(//\)$' \| \
13561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13562 $as_echo X"$as_dir" |
13563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13564 s//\1/
13565 q
13566 }
13567 /^X\(\/\/\)[^/].*/{
13568 s//\1/
13569 q
13570 }
13571 /^X\(\/\/\)$/{
13572 s//\1/
13573 q
13574 }
13575 /^X\(\/\).*/{
13576 s//\1/
13577 q
13578 }
13579 s/.*/./; q'`
13580 test -d "$as_dir" && break
13581 done
13582 test -z "$as_dirs" || eval "mkdir $as_dirs"
13583 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13584
13585
13586 } # as_fn_mkdir_p
13587 if mkdir -p . 2>/dev/null; then
13588 as_mkdir_p='mkdir -p "$as_dir"'
13589 else
13590 test -d ./-p && rmdir ./-p
13591 as_mkdir_p=false
13592 fi
13593
13594 if test -x / >/dev/null 2>&1; then
13595 as_test_x='test -x'
13596 else
13597 if ls -dL / >/dev/null 2>&1; then
13598 as_ls_L_option=L
13599 else
13600 as_ls_L_option=
13601 fi
13602 as_test_x='
13603 eval sh -c '\''
13604 if test -d "$1"; then
13605 test -d "$1/.";
13606 else
13607 case $1 in #(
13608 -*)set "./$1";;
13609 esac;
13610 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13611 ???[sx]*):;;*)false;;esac;fi
13612 '\'' sh
13613 '
13614 fi
13615 as_executable_p=$as_test_x
13616
13617 # Sed expression to map a string onto a valid CPP name.
13618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13619
13620 # Sed expression to map a string onto a valid variable name.
13621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13622
13623
13624 exec 6>&1
13625 ## ----------------------------------- ##
13626 ## Main body of $CONFIG_STATUS script. ##
13627 ## ----------------------------------- ##
13628 _ASEOF
13629 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13630
13631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13632 # Save the log message, to keep $0 and so on meaningful, and to
13633 # report actual input values of CONFIG_FILES etc. instead of their
13634 # values after options handling.
13635 ac_log="
13636 This file was extended by ncap $as_me 1.9.2, which was
13637 generated by GNU Autoconf 2.64. Invocation command line was
13638
13639 CONFIG_FILES = $CONFIG_FILES
13640 CONFIG_HEADERS = $CONFIG_HEADERS
13641 CONFIG_LINKS = $CONFIG_LINKS
13642 CONFIG_COMMANDS = $CONFIG_COMMANDS
13643 $ $0 $@
13644
13645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13646 "
13647
13648 _ACEOF
13649
13650 case $ac_config_files in *"
13651 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13652 esac
13653
13654 case $ac_config_headers in *"
13655 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13656 esac
13657
13658
13659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13660 # Files that config.status was made for.
13661 config_files="$ac_config_files"
13662 config_headers="$ac_config_headers"
13663 config_commands="$ac_config_commands"
13664
13665 _ACEOF
13666
13667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13668 ac_cs_usage="\
13669 \`$as_me' instantiates files and other configuration actions
13670 from templates according to the current configuration. Unless the files
13671 and actions are specified as TAGs, all are instantiated by default.
13672
13673 Usage: $0 [OPTION]... [TAG]...
13674
13675 -h, --help print this help, then exit
13676 -V, --version print version number and configuration settings, then exit
13677 -q, --quiet, --silent
13678 do not print progress messages
13679 -d, --debug don't remove temporary files
13680 --recheck update $as_me by reconfiguring in the same conditions
13681 --file=FILE[:TEMPLATE]
13682 instantiate the configuration file FILE
13683 --header=FILE[:TEMPLATE]
13684 instantiate the configuration header FILE
13685
13686 Configuration files:
13687 $config_files
13688
13689 Configuration headers:
13690 $config_headers
13691
13692 Configuration commands:
13693 $config_commands
13694
13695 Report bugs to <[email protected]>."
13696
13697 _ACEOF
13698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13699 ac_cs_version="\\
13700 ncap config.status 1.9.2
13701 configured by $0, generated by GNU Autoconf 2.64,
13702 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13703
13704 Copyright (C) 2009 Free Software Foundation, Inc.
13705 This config.status script is free software; the Free Software Foundation
13706 gives unlimited permission to copy, distribute and modify it."
13707
13708 ac_pwd='$ac_pwd'
13709 srcdir='$srcdir'
13710 INSTALL='$INSTALL'
13711 MKDIR_P='$MKDIR_P'
13712 AWK='$AWK'
13713 test -n "\$AWK" || AWK=awk
13714 _ACEOF
13715
13716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13717 # The default lists apply if the user does not specify any file.
13718 ac_need_defaults=:
13719 while test $# != 0
13720 do
13721 case $1 in
13722 --*=*)
13723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13725 ac_shift=:
13726 ;;
13727 *)
13728 ac_option=$1
13729 ac_optarg=$2
13730 ac_shift=shift
13731 ;;
13732 esac
13733
13734 case $ac_option in
13735 # Handling of the options.
13736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13737 ac_cs_recheck=: ;;
13738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13739 $as_echo "$ac_cs_version"; exit ;;
13740 --debug | --debu | --deb | --de | --d | -d )
13741 debug=: ;;
13742 --file | --fil | --fi | --f )
13743 $ac_shift
13744 case $ac_optarg in
13745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13746 esac
13747 as_fn_append CONFIG_FILES " '$ac_optarg'"
13748 ac_need_defaults=false;;
13749 --header | --heade | --head | --hea )
13750 $ac_shift
13751 case $ac_optarg in
13752 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13753 esac
13754 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13755 ac_need_defaults=false;;
13756 --he | --h)
13757 # Conflict between --help and --header
13758 as_fn_error "ambiguous option: \`$1'
13759 Try \`$0 --help' for more information.";;
13760 --help | --hel | -h )
13761 $as_echo "$ac_cs_usage"; exit ;;
13762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13764 ac_cs_silent=: ;;
13765
13766 # This is an error.
13767 -*) as_fn_error "unrecognized option: \`$1'
13768 Try \`$0 --help' for more information." ;;
13769
13770 *) as_fn_append ac_config_targets " $1"
13771 ac_need_defaults=false ;;
13772
13773 esac
13774 shift
13775 done
13776
13777 ac_configure_extra_args=
13778
13779 if $ac_cs_silent; then
13780 exec 6>/dev/null
13781 ac_configure_extra_args="$ac_configure_extra_args --silent"
13782 fi
13783
13784 _ACEOF
13785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13786 if \$ac_cs_recheck; then
13787 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13788 shift
13789 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13790 CONFIG_SHELL='$SHELL'
13791 export CONFIG_SHELL
13792 exec "\$@"
13793 fi
13794
13795 _ACEOF
13796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13797 exec 5>>config.log
13798 {
13799 echo
13800 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13801 ## Running $as_me. ##
13802 _ASBOX
13803 $as_echo "$ac_log"
13804 } >&5
13805
13806 _ACEOF
13807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13808 #
13809 # INIT-COMMANDS
13810 #
13811 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13812
13813
13814 # The HP-UX ksh and POSIX shell print the target directory to stdout
13815 # if CDPATH is set.
13816 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13817
13818 sed_quote_subst='$sed_quote_subst'
13819 double_quote_subst='$double_quote_subst'
13820 delay_variable_subst='$delay_variable_subst'
13821 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13822 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13823 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13824 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13825 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13826 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13827 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13828 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13829 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13830 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13831 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13832 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13833 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13834 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13835 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13836 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13837 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13838 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13839 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13840 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13841 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13842 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13843 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13844 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13845 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13846 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13847 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13848 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13849 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13850 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13851 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13852 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13853 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13854 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13855 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13856 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13857 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13858 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13859 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13860 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13861 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13862 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13863 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13864 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13865 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13866 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13867 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13868 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13869 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13870 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13871 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13872 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13873 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13874 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13875 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13876 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13877 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13878 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13879 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13880 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13881 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13882 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13883 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13884 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13885 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13886 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13887 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13888 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13889 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13890 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13891 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13892 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13893 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13894 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13895 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13896 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13897 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13898 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13899 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13900 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13901 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13902 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13903 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13904 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13905 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13906 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13907 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13908 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13909 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13910 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13911 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13912 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13913 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13914 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13915 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13916 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13917 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13918 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13919 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13920 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13921 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13922 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13923 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13924 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13925 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13926 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13927 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13928 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13929 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13930 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13931 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13932 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13933 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13934 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13935 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13936 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13937 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13938 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13939
13940 LTCC='$LTCC'
13941 LTCFLAGS='$LTCFLAGS'
13942 compiler='$compiler_DEFAULT'
13943
13944 # Quote evaled strings.
13945 for var in SED \
13946 GREP \
13947 EGREP \
13948 FGREP \
13949 LD \
13950 NM \
13951 LN_S \
13952 lt_SP2NL \
13953 lt_NL2SP \
13954 reload_flag \
13955 OBJDUMP \
13956 deplibs_check_method \
13957 file_magic_cmd \
13958 AR \
13959 AR_FLAGS \
13960 STRIP \
13961 RANLIB \
13962 CC \
13963 CFLAGS \
13964 compiler \
13965 lt_cv_sys_global_symbol_pipe \
13966 lt_cv_sys_global_symbol_to_cdecl \
13967 lt_cv_sys_global_symbol_to_c_name_address \
13968 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13969 SHELL \
13970 ECHO \
13971 lt_prog_compiler_no_builtin_flag \
13972 lt_prog_compiler_wl \
13973 lt_prog_compiler_pic \
13974 lt_prog_compiler_static \
13975 lt_cv_prog_compiler_c_o \
13976 need_locks \
13977 DSYMUTIL \
13978 NMEDIT \
13979 LIPO \
13980 OTOOL \
13981 OTOOL64 \
13982 shrext_cmds \
13983 export_dynamic_flag_spec \
13984 whole_archive_flag_spec \
13985 compiler_needs_object \
13986 with_gnu_ld \
13987 allow_undefined_flag \
13988 no_undefined_flag \
13989 hardcode_libdir_flag_spec \
13990 hardcode_libdir_flag_spec_ld \
13991 hardcode_libdir_separator \
13992 fix_srcfile_path \
13993 exclude_expsyms \
13994 include_expsyms \
13995 file_list_spec \
13996 variables_saved_for_relink \
13997 libname_spec \
13998 library_names_spec \
13999 soname_spec \
14000 finish_eval \
14001 old_striplib \
14002 striplib; do
14003 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14004 *[\\\\\\\`\\"\\\$]*)
14005 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14006 ;;
14007 *)
14008 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14009 ;;
14010 esac
14011 done
14012
14013 # Double-quote double-evaled strings.
14014 for var in reload_cmds \
14015 old_postinstall_cmds \
14016 old_postuninstall_cmds \
14017 old_archive_cmds \
14018 extract_expsyms_cmds \
14019 old_archive_from_new_cmds \
14020 old_archive_from_expsyms_cmds \
14021 archive_cmds \
14022 archive_expsym_cmds \
14023 module_cmds \
14024 module_expsym_cmds \
14025 export_symbols_cmds \
14026 prelink_cmds \
14027 postinstall_cmds \
14028 postuninstall_cmds \
14029 finish_cmds \
14030 sys_lib_search_path_spec \
14031 sys_lib_dlsearch_path_spec; do
14032 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14033 *[\\\\\\\`\\"\\\$]*)
14034 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14035 ;;
14036 *)
14037 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14038 ;;
14039 esac
14040 done
14041
14042 # Fix-up fallback echo if it was mangled by the above quoting rules.
14043 case \$lt_ECHO in
14044 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14045 ;;
14046 esac
14047
14048 ac_aux_dir='$ac_aux_dir'
14049 xsi_shell='$xsi_shell'
14050 lt_shell_append='$lt_shell_append'
14051
14052 # See if we are running on zsh, and set the options which allow our
14053 # commands through without removal of \ escapes INIT.
14054 if test -n "\${ZSH_VERSION+set}" ; then
14055 setopt NO_GLOB_SUBST
14056 fi
14057
14058
14059 PACKAGE='$PACKAGE'
14060 VERSION='$VERSION'
14061 TIMESTAMP='$TIMESTAMP'
14062 RM='$RM'
14063 ofile='$ofile'
14064
14065
14066
14067
14068 _ACEOF
14069
14070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14071
14072 # Handling of arguments.
14073 for ac_config_target in $ac_config_targets
14074 do
14075 case $ac_config_target in
14076 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14077 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14078 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14079 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14080
14081 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14082 esac
14083 done
14084
14085
14086 # If the user did not use the arguments to specify the items to instantiate,
14087 # then the envvar interface is used. Set only those that are not.
14088 # We use the long form for the default assignment because of an extremely
14089 # bizarre bug on SunOS 4.1.3.
14090 if $ac_need_defaults; then
14091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14093 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14094 fi
14095
14096 # Have a temporary directory for convenience. Make it in the build tree
14097 # simply because there is no reason against having it here, and in addition,
14098 # creating and moving files from /tmp can sometimes cause problems.
14099 # Hook for its removal unless debugging.
14100 # Note that there is a small window in which the directory will not be cleaned:
14101 # after its creation but before its name has been assigned to `$tmp'.
14102 $debug ||
14103 {
14104 tmp=
14105 trap 'exit_status=$?
14106 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14107 ' 0
14108 trap 'as_fn_exit 1' 1 2 13 15
14109 }
14110 # Create a (secure) tmp directory for tmp files.
14111
14112 {
14113 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14114 test -n "$tmp" && test -d "$tmp"
14115 } ||
14116 {
14117 tmp=./conf$$-$RANDOM
14118 (umask 077 && mkdir "$tmp")
14119 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14120
14121 # Set up the scripts for CONFIG_FILES section.
14122 # No need to generate them if there are no CONFIG_FILES.
14123 # This happens for instance with `./config.status config.h'.
14124 if test -n "$CONFIG_FILES"; then
14125
14126
14127 ac_cr=`echo X | tr X '\015'`
14128 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14129 # But we know of no other shell where ac_cr would be empty at this
14130 # point, so we can use a bashism as a fallback.
14131 if test "x$ac_cr" = x; then
14132 eval ac_cr=\$\'\\r\'
14133 fi
14134 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14135 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14136 ac_cs_awk_cr='\r'
14137 else
14138 ac_cs_awk_cr=$ac_cr
14139 fi
14140
14141 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14142 _ACEOF
14143
14144
14145 {
14146 echo "cat >conf$$subs.awk <<_ACEOF" &&
14147 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14148 echo "_ACEOF"
14149 } >conf$$subs.sh ||
14150 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14151 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14152 ac_delim='%!_!# '
14153 for ac_last_try in false false false false false :; do
14154 . ./conf$$subs.sh ||
14155 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14156
14157 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14158 if test $ac_delim_n = $ac_delim_num; then
14159 break
14160 elif $ac_last_try; then
14161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14162 else
14163 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14164 fi
14165 done
14166 rm -f conf$$subs.sh
14167
14168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14169 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14170 _ACEOF
14171 sed -n '
14172 h
14173 s/^/S["/; s/!.*/"]=/
14174 p
14175 g
14176 s/^[^!]*!//
14177 :repl
14178 t repl
14179 s/'"$ac_delim"'$//
14180 t delim
14181 :nl
14182 h
14183 s/\(.\{148\}\).*/\1/
14184 t more1
14185 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14186 p
14187 n
14188 b repl
14189 :more1
14190 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14191 p
14192 g
14193 s/.\{148\}//
14194 t nl
14195 :delim
14196 h
14197 s/\(.\{148\}\).*/\1/
14198 t more2
14199 s/["\\]/\\&/g; s/^/"/; s/$/"/
14200 p
14201 b
14202 :more2
14203 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14204 p
14205 g
14206 s/.\{148\}//
14207 t delim
14208 ' <conf$$subs.awk | sed '
14209 /^[^""]/{
14210 N
14211 s/\n//
14212 }
14213 ' >>$CONFIG_STATUS || ac_write_fail=1
14214 rm -f conf$$subs.awk
14215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14216 _ACAWK
14217 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14218 for (key in S) S_is_set[key] = 1
14219 FS = ""
14220
14221 }
14222 {
14223 line = $ 0
14224 nfields = split(line, field, "@")
14225 substed = 0
14226 len = length(field[1])
14227 for (i = 2; i < nfields; i++) {
14228 key = field[i]
14229 keylen = length(key)
14230 if (S_is_set[key]) {
14231 value = S[key]
14232 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14233 len += length(value) + length(field[++i])
14234 substed = 1
14235 } else
14236 len += 1 + keylen
14237 }
14238
14239 print line
14240 }
14241
14242 _ACAWK
14243 _ACEOF
14244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14245 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14246 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14247 else
14248 cat
14249 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14250 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14251 _ACEOF
14252
14253 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14254 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14255 # trailing colons and then remove the whole line if VPATH becomes empty
14256 # (actually we leave an empty line to preserve line numbers).
14257 if test "x$srcdir" = x.; then
14258 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14259 s/:*\$(srcdir):*/:/
14260 s/:*\${srcdir}:*/:/
14261 s/:*@srcdir@:*/:/
14262 s/^\([^=]*=[ ]*\):*/\1/
14263 s/:*$//
14264 s/^[^=]*=[ ]*$//
14265 }'
14266 fi
14267
14268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14269 fi # test -n "$CONFIG_FILES"
14270
14271 # Set up the scripts for CONFIG_HEADERS section.
14272 # No need to generate them if there are no CONFIG_HEADERS.
14273 # This happens for instance with `./config.status Makefile'.
14274 if test -n "$CONFIG_HEADERS"; then
14275 cat >"$tmp/defines.awk" <<\_ACAWK ||
14276 BEGIN {
14277 _ACEOF
14278
14279 # Transform confdefs.h into an awk script `defines.awk', embedded as
14280 # here-document in config.status, that substitutes the proper values into
14281 # config.h.in to produce config.h.
14282
14283 # Create a delimiter string that does not exist in confdefs.h, to ease
14284 # handling of long lines.
14285 ac_delim='%!_!# '
14286 for ac_last_try in false false :; do
14287 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14288 if test -z "$ac_t"; then
14289 break
14290 elif $ac_last_try; then
14291 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14292 else
14293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14294 fi
14295 done
14296
14297 # For the awk script, D is an array of macro values keyed by name,
14298 # likewise P contains macro parameters if any. Preserve backslash
14299 # newline sequences.
14300
14301 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14302 sed -n '
14303 s/.\{148\}/&'"$ac_delim"'/g
14304 t rset
14305 :rset
14306 s/^[ ]*#[ ]*define[ ][ ]*/ /
14307 t def
14308 d
14309 :def
14310 s/\\$//
14311 t bsnl
14312 s/["\\]/\\&/g
14313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14314 D["\1"]=" \3"/p
14315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14316 d
14317 :bsnl
14318 s/["\\]/\\&/g
14319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14320 D["\1"]=" \3\\\\\\n"\\/p
14321 t cont
14322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14323 t cont
14324 d
14325 :cont
14326 n
14327 s/.\{148\}/&'"$ac_delim"'/g
14328 t clear
14329 :clear
14330 s/\\$//
14331 t bsnlc
14332 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14333 d
14334 :bsnlc
14335 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14336 b cont
14337 ' <confdefs.h | sed '
14338 s/'"$ac_delim"'/"\\\
14339 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14340
14341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14342 for (key in D) D_is_set[key] = 1
14343 FS = ""
14344 }
14345 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14346 line = \$ 0
14347 split(line, arg, " ")
14348 if (arg[1] == "#") {
14349 defundef = arg[2]
14350 mac1 = arg[3]
14351 } else {
14352 defundef = substr(arg[1], 2)
14353 mac1 = arg[2]
14354 }
14355 split(mac1, mac2, "(") #)
14356 macro = mac2[1]
14357 prefix = substr(line, 1, index(line, defundef) - 1)
14358 if (D_is_set[macro]) {
14359 # Preserve the white space surrounding the "#".
14360 print prefix "define", macro P[macro] D[macro]
14361 next
14362 } else {
14363 # Replace #undef with comments. This is necessary, for example,
14364 # in the case of _POSIX_SOURCE, which is predefined and required
14365 # on some systems where configure will not decide to define it.
14366 if (defundef == "undef") {
14367 print "/*", prefix defundef, macro, "*/"
14368 next
14369 }
14370 }
14371 }
14372 { print }
14373 _ACAWK
14374 _ACEOF
14375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14376 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14377 fi # test -n "$CONFIG_HEADERS"
14378
14379
14380 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14381 shift
14382 for ac_tag
14383 do
14384 case $ac_tag in
14385 :[FHLC]) ac_mode=$ac_tag; continue;;
14386 esac
14387 case $ac_mode$ac_tag in
14388 :[FHL]*:*);;
14389 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14390 :[FH]-) ac_tag=-:-;;
14391 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14392 esac
14393 ac_save_IFS=$IFS
14394 IFS=:
14395 set x $ac_tag
14396 IFS=$ac_save_IFS
14397 shift
14398 ac_file=$1
14399 shift
14400
14401 case $ac_mode in
14402 :L) ac_source=$1;;
14403 :[FH])
14404 ac_file_inputs=
14405 for ac_f
14406 do
14407 case $ac_f in
14408 -) ac_f="$tmp/stdin";;
14409 *) # Look for the file first in the build tree, then in the source tree
14410 # (if the path is not absolute). The absolute path cannot be DOS-style,
14411 # because $ac_f cannot contain `:'.
14412 test -f "$ac_f" ||
14413 case $ac_f in
14414 [\\/$]*) false;;
14415 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14416 esac ||
14417 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14418 esac
14419 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14420 as_fn_append ac_file_inputs " '$ac_f'"
14421 done
14422
14423 # Let's still pretend it is `configure' which instantiates (i.e., don't
14424 # use $as_me), people would be surprised to read:
14425 # /* config.h. Generated by config.status. */
14426 configure_input='Generated from '`
14427 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14428 `' by configure.'
14429 if test x"$ac_file" != x-; then
14430 configure_input="$ac_file. $configure_input"
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14432 $as_echo "$as_me: creating $ac_file" >&6;}
14433 fi
14434 # Neutralize special characters interpreted by sed in replacement strings.
14435 case $configure_input in #(
14436 *\&* | *\|* | *\\* )
14437 ac_sed_conf_input=`$as_echo "$configure_input" |
14438 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14439 *) ac_sed_conf_input=$configure_input;;
14440 esac
14441
14442 case $ac_tag in
14443 *:-:* | *:-) cat >"$tmp/stdin" \
14444 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14445 esac
14446 ;;
14447 esac
14448
14449 ac_dir=`$as_dirname -- "$ac_file" ||
14450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14451 X"$ac_file" : 'X\(//\)[^/]' \| \
14452 X"$ac_file" : 'X\(//\)$' \| \
14453 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14454 $as_echo X"$ac_file" |
14455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14456 s//\1/
14457 q
14458 }
14459 /^X\(\/\/\)[^/].*/{
14460 s//\1/
14461 q
14462 }
14463 /^X\(\/\/\)$/{
14464 s//\1/
14465 q
14466 }
14467 /^X\(\/\).*/{
14468 s//\1/
14469 q
14470 }
14471 s/.*/./; q'`
14472 as_dir="$ac_dir"; as_fn_mkdir_p
14473 ac_builddir=.
14474
14475 case "$ac_dir" in
14476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14477 *)
14478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14479 # A ".." for each directory in $ac_dir_suffix.
14480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14481 case $ac_top_builddir_sub in
14482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14484 esac ;;
14485 esac
14486 ac_abs_top_builddir=$ac_pwd
14487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14488 # for backward compatibility:
14489 ac_top_builddir=$ac_top_build_prefix
14490
14491 case $srcdir in
14492 .) # We are building in place.
14493 ac_srcdir=.
14494 ac_top_srcdir=$ac_top_builddir_sub
14495 ac_abs_top_srcdir=$ac_pwd ;;
14496 [\\/]* | ?:[\\/]* ) # Absolute name.
14497 ac_srcdir=$srcdir$ac_dir_suffix;
14498 ac_top_srcdir=$srcdir
14499 ac_abs_top_srcdir=$srcdir ;;
14500 *) # Relative name.
14501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14502 ac_top_srcdir=$ac_top_build_prefix$srcdir
14503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14504 esac
14505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14506
14507
14508 case $ac_mode in
14509 :F)
14510 #
14511 # CONFIG_FILE
14512 #
14513
14514 case $INSTALL in
14515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14516 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14517 esac
14518 ac_MKDIR_P=$MKDIR_P
14519 case $MKDIR_P in
14520 [\\/$]* | ?:[\\/]* ) ;;
14521 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14522 esac
14523 _ACEOF
14524
14525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14526 # If the template does not know about datarootdir, expand it.
14527 # FIXME: This hack should be removed a few years after 2.60.
14528 ac_datarootdir_hack=; ac_datarootdir_seen=
14529 ac_sed_dataroot='
14530 /datarootdir/ {
14531 p
14532 q
14533 }
14534 /@datadir@/p
14535 /@docdir@/p
14536 /@infodir@/p
14537 /@localedir@/p
14538 /@mandir@/p'
14539 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14540 *datarootdir*) ac_datarootdir_seen=yes;;
14541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14543 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14544 _ACEOF
14545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14546 ac_datarootdir_hack='
14547 s&@datadir@&$datadir&g
14548 s&@docdir@&$docdir&g
14549 s&@infodir@&$infodir&g
14550 s&@localedir@&$localedir&g
14551 s&@mandir@&$mandir&g
14552 s&\\\${datarootdir}&$datarootdir&g' ;;
14553 esac
14554 _ACEOF
14555
14556 # Neutralize VPATH when `$srcdir' = `.'.
14557 # Shell code in configure.ac might set extrasub.
14558 # FIXME: do we really want to maintain this feature?
14559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14560 ac_sed_extra="$ac_vpsub
14561 $extrasub
14562 _ACEOF
14563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14564 :t
14565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14566 s|@configure_input@|$ac_sed_conf_input|;t t
14567 s&@top_builddir@&$ac_top_builddir_sub&;t t
14568 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14569 s&@srcdir@&$ac_srcdir&;t t
14570 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14571 s&@top_srcdir@&$ac_top_srcdir&;t t
14572 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14573 s&@builddir@&$ac_builddir&;t t
14574 s&@abs_builddir@&$ac_abs_builddir&;t t
14575 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14576 s&@INSTALL@&$ac_INSTALL&;t t
14577 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14578 $ac_datarootdir_hack
14579 "
14580 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14581 || as_fn_error "could not create $ac_file" "$LINENO" 5
14582
14583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14584 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14587 which seems to be undefined. Please make sure it is defined." >&5
14588 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14589 which seems to be undefined. Please make sure it is defined." >&2;}
14590
14591 rm -f "$tmp/stdin"
14592 case $ac_file in
14593 -) cat "$tmp/out" && rm -f "$tmp/out";;
14594 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14595 esac \
14596 || as_fn_error "could not create $ac_file" "$LINENO" 5
14597 ;;
14598 :H)
14599 #
14600 # CONFIG_HEADER
14601 #
14602 if test x"$ac_file" != x-; then
14603 {
14604 $as_echo "/* $configure_input */" \
14605 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14606 } >"$tmp/config.h" \
14607 || as_fn_error "could not create $ac_file" "$LINENO" 5
14608 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14610 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14611 else
14612 rm -f "$ac_file"
14613 mv "$tmp/config.h" "$ac_file" \
14614 || as_fn_error "could not create $ac_file" "$LINENO" 5
14615 fi
14616 else
14617 $as_echo "/* $configure_input */" \
14618 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14619 || as_fn_error "could not create -" "$LINENO" 5
14620 fi
14621 # Compute "$ac_file"'s index in $config_headers.
14622 _am_arg="$ac_file"
14623 _am_stamp_count=1
14624 for _am_header in $config_headers :; do
14625 case $_am_header in
14626 $_am_arg | $_am_arg:* )
14627 break ;;
14628 * )
14629 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14630 esac
14631 done
14632 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14633 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14634 X"$_am_arg" : 'X\(//\)[^/]' \| \
14635 X"$_am_arg" : 'X\(//\)$' \| \
14636 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14637 $as_echo X"$_am_arg" |
14638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14639 s//\1/
14640 q
14641 }
14642 /^X\(\/\/\)[^/].*/{
14643 s//\1/
14644 q
14645 }
14646 /^X\(\/\/\)$/{
14647 s//\1/
14648 q
14649 }
14650 /^X\(\/\).*/{
14651 s//\1/
14652 q
14653 }
14654 s/.*/./; q'`/stamp-h$_am_stamp_count
14655 ;;
14656
14657 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14658 $as_echo "$as_me: executing $ac_file commands" >&6;}
14659 ;;
14660 esac
14661
14662
14663 case $ac_file$ac_mode in
14664 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14665 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14666 # are listed without --file. Let's play safe and only enable the eval
14667 # if we detect the quoting.
14668 case $CONFIG_FILES in
14669 *\'*) eval set x "$CONFIG_FILES" ;;
14670 *) set x $CONFIG_FILES ;;
14671 esac
14672 shift
14673 for mf
14674 do
14675 # Strip MF so we end up with the name of the file.
14676 mf=`echo "$mf" | sed -e 's/:.*$//'`
14677 # Check whether this is an Automake generated Makefile or not.
14678 # We used to match only the files named `Makefile.in', but
14679 # some people rename them; so instead we look at the file content.
14680 # Grep'ing the first line is not enough: some people post-process
14681 # each Makefile.in and add a new line on top of each file to say so.
14682 # Grep'ing the whole file is not good either: AIX grep has a line
14683 # limit of 2048, but all sed's we know have understand at least 4000.
14684 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14685 dirpart=`$as_dirname -- "$mf" ||
14686 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14687 X"$mf" : 'X\(//\)[^/]' \| \
14688 X"$mf" : 'X\(//\)$' \| \
14689 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14690 $as_echo X"$mf" |
14691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14692 s//\1/
14693 q
14694 }
14695 /^X\(\/\/\)[^/].*/{
14696 s//\1/
14697 q
14698 }
14699 /^X\(\/\/\)$/{
14700 s//\1/
14701 q
14702 }
14703 /^X\(\/\).*/{
14704 s//\1/
14705 q
14706 }
14707 s/.*/./; q'`
14708 else
14709 continue
14710 fi
14711 # Extract the definition of DEPDIR, am__include, and am__quote
14712 # from the Makefile without running `make'.
14713 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14714 test -z "$DEPDIR" && continue
14715 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14716 test -z "am__include" && continue
14717 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14718 # When using ansi2knr, U may be empty or an underscore; expand it
14719 U=`sed -n 's/^U = //p' < "$mf"`
14720 # Find all dependency output files, they are included files with
14721 # $(DEPDIR) in their names. We invoke sed twice because it is the
14722 # simplest approach to changing $(DEPDIR) to its actual value in the
14723 # expansion.
14724 for file in `sed -n "
14725 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14726 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14727 # Make sure the directory exists.
14728 test -f "$dirpart/$file" && continue
14729 fdir=`$as_dirname -- "$file" ||
14730 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14731 X"$file" : 'X\(//\)[^/]' \| \
14732 X"$file" : 'X\(//\)$' \| \
14733 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14734 $as_echo X"$file" |
14735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14736 s//\1/
14737 q
14738 }
14739 /^X\(\/\/\)[^/].*/{
14740 s//\1/
14741 q
14742 }
14743 /^X\(\/\/\)$/{
14744 s//\1/
14745 q
14746 }
14747 /^X\(\/\).*/{
14748 s//\1/
14749 q
14750 }
14751 s/.*/./; q'`
14752 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14753 # echo "creating $dirpart/$file"
14754 echo '# dummy' > "$dirpart/$file"
14755 done
14756 done
14757 }
14758 ;;
14759 "libtool":C)
14760
14761 # See if we are running on zsh, and set the options which allow our
14762 # commands through without removal of \ escapes.
14763 if test -n "${ZSH_VERSION+set}" ; then
14764 setopt NO_GLOB_SUBST
14765 fi
14766
14767 cfgfile="${ofile}T"
14768 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14769 $RM "$cfgfile"
14770
14771 cat <<_LT_EOF >> "$cfgfile"
14772 #! $SHELL
14773
14774 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14775 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14776 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14777 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14778 #
14779 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14780 # 2006, 2007, 2008 Free Software Foundation, Inc.
14781 # Written by Gordon Matzigkeit, 1996
14782 #
14783 # This file is part of GNU Libtool.
14784 #
14785 # GNU Libtool is free software; you can redistribute it and/or
14786 # modify it under the terms of the GNU General Public License as
14787 # published by the Free Software Foundation; either version 2 of
14788 # the License, or (at your option) any later version.
14789 #
14790 # As a special exception to the GNU General Public License,
14791 # if you distribute this file as part of a program or library that
14792 # is built using GNU Libtool, you may include this file under the
14793 # same distribution terms that you use for the rest of that program.
14794 #
14795 # GNU Libtool is distributed in the hope that it will be useful,
14796 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14797 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14798 # GNU General Public License for more details.
14799 #
14800 # You should have received a copy of the GNU General Public License
14801 # along with GNU Libtool; see the file COPYING. If not, a copy
14802 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14803 # obtained by writing to the Free Software Foundation, Inc.,
14804 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14805
14806
14807 # The names of the tagged configurations supported by this script.
14808 available_tags=""
14809
14810 # ### BEGIN LIBTOOL CONFIG
14811
14812 # Which release of libtool.m4 was used?
14813 macro_version=$macro_version
14814 macro_revision=$macro_revision
14815
14816 # Whether or not to build shared libraries.
14817 build_libtool_libs=$enable_shared
14818
14819 # Whether or not to build static libraries.
14820 build_old_libs=$enable_static
14821
14822 # What type of objects to build.
14823 pic_mode=$pic_mode
14824
14825 # Whether or not to optimize for fast installation.
14826 fast_install=$enable_fast_install
14827
14828 # The host system.
14829 host_alias=$host_alias
14830 host=$host
14831 host_os=$host_os
14832
14833 # The build system.
14834 build_alias=$build_alias
14835 build=$build
14836 build_os=$build_os
14837
14838 # A sed program that does not truncate output.
14839 SED=$lt_SED
14840
14841 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14842 Xsed="\$SED -e 1s/^X//"
14843
14844 # A grep program that handles long lines.
14845 GREP=$lt_GREP
14846
14847 # An ERE matcher.
14848 EGREP=$lt_EGREP
14849
14850 # A literal string matcher.
14851 FGREP=$lt_FGREP
14852
14853 # A BSD- or MS-compatible name lister.
14854 NM=$lt_NM
14855
14856 # Whether we need soft or hard links.
14857 LN_S=$lt_LN_S
14858
14859 # What is the maximum length of a command?
14860 max_cmd_len=$max_cmd_len
14861
14862 # Object file suffix (normally "o").
14863 objext=$ac_objext
14864
14865 # Executable file suffix (normally "").
14866 exeext=$exeext
14867
14868 # whether the shell understands "unset".
14869 lt_unset=$lt_unset
14870
14871 # turn spaces into newlines.
14872 SP2NL=$lt_lt_SP2NL
14873
14874 # turn newlines into spaces.
14875 NL2SP=$lt_lt_NL2SP
14876
14877 # How to create reloadable object files.
14878 reload_flag=$lt_reload_flag
14879 reload_cmds=$lt_reload_cmds
14880
14881 # An object symbol dumper.
14882 OBJDUMP=$lt_OBJDUMP
14883
14884 # Method to check whether dependent libraries are shared objects.
14885 deplibs_check_method=$lt_deplibs_check_method
14886
14887 # Command to use when deplibs_check_method == "file_magic".
14888 file_magic_cmd=$lt_file_magic_cmd
14889
14890 # The archiver.
14891 AR=$lt_AR
14892 AR_FLAGS=$lt_AR_FLAGS
14893
14894 # A symbol stripping program.
14895 STRIP=$lt_STRIP
14896
14897 # Commands used to install an old-style archive.
14898 RANLIB=$lt_RANLIB
14899 old_postinstall_cmds=$lt_old_postinstall_cmds
14900 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14901
14902 # A C compiler.
14903 LTCC=$lt_CC
14904
14905 # LTCC compiler flags.
14906 LTCFLAGS=$lt_CFLAGS
14907
14908 # Take the output of nm and produce a listing of raw symbols and C names.
14909 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14910
14911 # Transform the output of nm in a proper C declaration.
14912 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14913
14914 # Transform the output of nm in a C name address pair.
14915 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14916
14917 # Transform the output of nm in a C name address pair when lib prefix is needed.
14918 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14919
14920 # The name of the directory that contains temporary libtool files.
14921 objdir=$objdir
14922
14923 # Shell to use when invoking shell scripts.
14924 SHELL=$lt_SHELL
14925
14926 # An echo program that does not interpret backslashes.
14927 ECHO=$lt_ECHO
14928
14929 # Used to examine libraries when file_magic_cmd begins with "file".
14930 MAGIC_CMD=$MAGIC_CMD
14931
14932 # Must we lock files when doing compilation?
14933 need_locks=$lt_need_locks
14934
14935 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14936 DSYMUTIL=$lt_DSYMUTIL
14937
14938 # Tool to change global to local symbols on Mac OS X.
14939 NMEDIT=$lt_NMEDIT
14940
14941 # Tool to manipulate fat objects and archives on Mac OS X.
14942 LIPO=$lt_LIPO
14943
14944 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14945 OTOOL=$lt_OTOOL
14946
14947 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14948 OTOOL64=$lt_OTOOL64
14949
14950 # Old archive suffix (normally "a").
14951 libext=$libext
14952
14953 # Shared library suffix (normally ".so").
14954 shrext_cmds=$lt_shrext_cmds
14955
14956 # The commands to extract the exported symbol list from a shared archive.
14957 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14958
14959 # Variables whose values should be saved in libtool wrapper scripts and
14960 # restored at link time.
14961 variables_saved_for_relink=$lt_variables_saved_for_relink
14962
14963 # Do we need the "lib" prefix for modules?
14964 need_lib_prefix=$need_lib_prefix
14965
14966 # Do we need a version for libraries?
14967 need_version=$need_version
14968
14969 # Library versioning type.
14970 version_type=$version_type
14971
14972 # Shared library runtime path variable.
14973 runpath_var=$runpath_var
14974
14975 # Shared library path variable.
14976 shlibpath_var=$shlibpath_var
14977
14978 # Is shlibpath searched before the hard-coded library search path?
14979 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14980
14981 # Format of library name prefix.
14982 libname_spec=$lt_libname_spec
14983
14984 # List of archive names. First name is the real one, the rest are links.
14985 # The last name is the one that the linker finds with -lNAME
14986 library_names_spec=$lt_library_names_spec
14987
14988 # The coded name of the library, if different from the real name.
14989 soname_spec=$lt_soname_spec
14990
14991 # Command to use after installation of a shared archive.
14992 postinstall_cmds=$lt_postinstall_cmds
14993
14994 # Command to use after uninstallation of a shared archive.
14995 postuninstall_cmds=$lt_postuninstall_cmds
14996
14997 # Commands used to finish a libtool library installation in a directory.
14998 finish_cmds=$lt_finish_cmds
14999
15000 # As "finish_cmds", except a single script fragment to be evaled but
15001 # not shown.
15002 finish_eval=$lt_finish_eval
15003
15004 # Whether we should hardcode library paths into libraries.
15005 hardcode_into_libs=$hardcode_into_libs
15006
15007 # Compile-time system search path for libraries.
15008 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15009
15010 # Run-time system search path for libraries.
15011 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15012
15013 # Whether dlopen is supported.
15014 dlopen_support=$enable_dlopen
15015
15016 # Whether dlopen of programs is supported.
15017 dlopen_self=$enable_dlopen_self
15018
15019 # Whether dlopen of statically linked programs is supported.
15020 dlopen_self_static=$enable_dlopen_self_static
15021
15022 # Commands to strip libraries.
15023 old_striplib=$lt_old_striplib
15024 striplib=$lt_striplib
15025
15026
15027 # The linker used to build libraries.
15028 LD=$lt_LD
15029
15030 # Commands used to build an old-style archive.
15031 old_archive_cmds=$lt_old_archive_cmds
15032
15033 # A language specific compiler.
15034 CC=$lt_compiler
15035
15036 # Is the compiler the GNU compiler?
15037 with_gcc=$GCC
15038
15039 # Compiler flag to turn off builtin functions.
15040 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15041
15042 # How to pass a linker flag through the compiler.
15043 wl=$lt_lt_prog_compiler_wl
15044
15045 # Additional compiler flags for building library objects.
15046 pic_flag=$lt_lt_prog_compiler_pic
15047
15048 # Compiler flag to prevent dynamic linking.
15049 link_static_flag=$lt_lt_prog_compiler_static
15050
15051 # Does compiler simultaneously support -c and -o options?
15052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15053
15054 # Whether or not to add -lc for building shared libraries.
15055 build_libtool_need_lc=$archive_cmds_need_lc
15056
15057 # Whether or not to disallow shared libs when runtime libs are static.
15058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15059
15060 # Compiler flag to allow reflexive dlopens.
15061 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15062
15063 # Compiler flag to generate shared objects directly from archives.
15064 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15065
15066 # Whether the compiler copes with passing no objects directly.
15067 compiler_needs_object=$lt_compiler_needs_object
15068
15069 # Create an old-style archive from a shared archive.
15070 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15071
15072 # Create a temporary old-style archive to link instead of a shared archive.
15073 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15074
15075 # Commands used to build a shared archive.
15076 archive_cmds=$lt_archive_cmds
15077 archive_expsym_cmds=$lt_archive_expsym_cmds
15078
15079 # Commands used to build a loadable module if different from building
15080 # a shared archive.
15081 module_cmds=$lt_module_cmds
15082 module_expsym_cmds=$lt_module_expsym_cmds
15083
15084 # Whether we are building with GNU ld or not.
15085 with_gnu_ld=$lt_with_gnu_ld
15086
15087 # Flag that allows shared libraries with undefined symbols to be built.
15088 allow_undefined_flag=$lt_allow_undefined_flag
15089
15090 # Flag that enforces no undefined symbols.
15091 no_undefined_flag=$lt_no_undefined_flag
15092
15093 # Flag to hardcode \$libdir into a binary during linking.
15094 # This must work even if \$libdir does not exist
15095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15096
15097 # If ld is used when linking, flag to hardcode \$libdir into a binary
15098 # during linking. This must work even if \$libdir does not exist.
15099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15100
15101 # Whether we need a single "-rpath" flag with a separated argument.
15102 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15103
15104 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15105 # DIR into the resulting binary.
15106 hardcode_direct=$hardcode_direct
15107
15108 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15109 # DIR into the resulting binary and the resulting library dependency is
15110 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15111 # library is relocated.
15112 hardcode_direct_absolute=$hardcode_direct_absolute
15113
15114 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15115 # into the resulting binary.
15116 hardcode_minus_L=$hardcode_minus_L
15117
15118 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15119 # into the resulting binary.
15120 hardcode_shlibpath_var=$hardcode_shlibpath_var
15121
15122 # Set to "yes" if building a shared library automatically hardcodes DIR
15123 # into the library and all subsequent libraries and executables linked
15124 # against it.
15125 hardcode_automatic=$hardcode_automatic
15126
15127 # Set to yes if linker adds runtime paths of dependent libraries
15128 # to runtime path list.
15129 inherit_rpath=$inherit_rpath
15130
15131 # Whether libtool must link a program against all its dependency libraries.
15132 link_all_deplibs=$link_all_deplibs
15133
15134 # Fix the shell variable \$srcfile for the compiler.
15135 fix_srcfile_path=$lt_fix_srcfile_path
15136
15137 # Set to "yes" if exported symbols are required.
15138 always_export_symbols=$always_export_symbols
15139
15140 # The commands to list exported symbols.
15141 export_symbols_cmds=$lt_export_symbols_cmds
15142
15143 # Symbols that should not be listed in the preloaded symbols.
15144 exclude_expsyms=$lt_exclude_expsyms
15145
15146 # Symbols that must always be exported.
15147 include_expsyms=$lt_include_expsyms
15148
15149 # Commands necessary for linking programs (against libraries) with templates.
15150 prelink_cmds=$lt_prelink_cmds
15151
15152 # Specify filename containing input files.
15153 file_list_spec=$lt_file_list_spec
15154
15155 # How to hardcode a shared library path into an executable.
15156 hardcode_action=$hardcode_action
15157
15158 # ### END LIBTOOL CONFIG
15159
15160 _LT_EOF
15161
15162 case $host_os in
15163 aix3*)
15164 cat <<\_LT_EOF >> "$cfgfile"
15165 # AIX sometimes has problems with the GCC collect2 program. For some
15166 # reason, if we set the COLLECT_NAMES environment variable, the problems
15167 # vanish in a puff of smoke.
15168 if test "X${COLLECT_NAMES+set}" != Xset; then
15169 COLLECT_NAMES=
15170 export COLLECT_NAMES
15171 fi
15172 _LT_EOF
15173 ;;
15174 esac
15175
15176
15177 ltmain="$ac_aux_dir/ltmain.sh"
15178
15179
15180 # We use sed instead of cat because bash on DJGPP gets confused if
15181 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15182 # text mode, it properly converts lines to CR/LF. This bash problem
15183 # is reportedly fixed, but why not run on old versions too?
15184 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15185 || (rm -f "$cfgfile"; exit 1)
15186
15187 case $xsi_shell in
15188 yes)
15189 cat << \_LT_EOF >> "$cfgfile"
15190
15191 # func_dirname file append nondir_replacement
15192 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15193 # otherwise set result to NONDIR_REPLACEMENT.
15194 func_dirname ()
15195 {
15196 case ${1} in
15197 */*) func_dirname_result="${1%/*}${2}" ;;
15198 * ) func_dirname_result="${3}" ;;
15199 esac
15200 }
15201
15202 # func_basename file
15203 func_basename ()
15204 {
15205 func_basename_result="${1##*/}"
15206 }
15207
15208 # func_dirname_and_basename file append nondir_replacement
15209 # perform func_basename and func_dirname in a single function
15210 # call:
15211 # dirname: Compute the dirname of FILE. If nonempty,
15212 # add APPEND to the result, otherwise set result
15213 # to NONDIR_REPLACEMENT.
15214 # value returned in "$func_dirname_result"
15215 # basename: Compute filename of FILE.
15216 # value retuned in "$func_basename_result"
15217 # Implementation must be kept synchronized with func_dirname
15218 # and func_basename. For efficiency, we do not delegate to
15219 # those functions but instead duplicate the functionality here.
15220 func_dirname_and_basename ()
15221 {
15222 case ${1} in
15223 */*) func_dirname_result="${1%/*}${2}" ;;
15224 * ) func_dirname_result="${3}" ;;
15225 esac
15226 func_basename_result="${1##*/}"
15227 }
15228
15229 # func_stripname prefix suffix name
15230 # strip PREFIX and SUFFIX off of NAME.
15231 # PREFIX and SUFFIX must not contain globbing or regex special
15232 # characters, hashes, percent signs, but SUFFIX may contain a leading
15233 # dot (in which case that matches only a dot).
15234 func_stripname ()
15235 {
15236 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15237 # positional parameters, so assign one to ordinary parameter first.
15238 func_stripname_result=${3}
15239 func_stripname_result=${func_stripname_result#"${1}"}
15240 func_stripname_result=${func_stripname_result%"${2}"}
15241 }
15242
15243 # func_opt_split
15244 func_opt_split ()
15245 {
15246 func_opt_split_opt=${1%%=*}
15247 func_opt_split_arg=${1#*=}
15248 }
15249
15250 # func_lo2o object
15251 func_lo2o ()
15252 {
15253 case ${1} in
15254 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15255 *) func_lo2o_result=${1} ;;
15256 esac
15257 }
15258
15259 # func_xform libobj-or-source
15260 func_xform ()
15261 {
15262 func_xform_result=${1%.*}.lo
15263 }
15264
15265 # func_arith arithmetic-term...
15266 func_arith ()
15267 {
15268 func_arith_result=$(( $* ))
15269 }
15270
15271 # func_len string
15272 # STRING may not start with a hyphen.
15273 func_len ()
15274 {
15275 func_len_result=${#1}
15276 }
15277
15278 _LT_EOF
15279 ;;
15280 *) # Bourne compatible functions.
15281 cat << \_LT_EOF >> "$cfgfile"
15282
15283 # func_dirname file append nondir_replacement
15284 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15285 # otherwise set result to NONDIR_REPLACEMENT.
15286 func_dirname ()
15287 {
15288 # Extract subdirectory from the argument.
15289 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15290 if test "X$func_dirname_result" = "X${1}"; then
15291 func_dirname_result="${3}"
15292 else
15293 func_dirname_result="$func_dirname_result${2}"
15294 fi
15295 }
15296
15297 # func_basename file
15298 func_basename ()
15299 {
15300 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15301 }
15302
15303
15304 # func_stripname prefix suffix name
15305 # strip PREFIX and SUFFIX off of NAME.
15306 # PREFIX and SUFFIX must not contain globbing or regex special
15307 # characters, hashes, percent signs, but SUFFIX may contain a leading
15308 # dot (in which case that matches only a dot).
15309 # func_strip_suffix prefix name
15310 func_stripname ()
15311 {
15312 case ${2} in
15313 .*) func_stripname_result=`$ECHO "X${3}" \
15314 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15315 *) func_stripname_result=`$ECHO "X${3}" \
15316 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15317 esac
15318 }
15319
15320 # sed scripts:
15321 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15322 my_sed_long_arg='1s/^-[^=]*=//'
15323
15324 # func_opt_split
15325 func_opt_split ()
15326 {
15327 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15328 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15329 }
15330
15331 # func_lo2o object
15332 func_lo2o ()
15333 {
15334 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15335 }
15336
15337 # func_xform libobj-or-source
15338 func_xform ()
15339 {
15340 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15341 }
15342
15343 # func_arith arithmetic-term...
15344 func_arith ()
15345 {
15346 func_arith_result=`expr "$@"`
15347 }
15348
15349 # func_len string
15350 # STRING may not start with a hyphen.
15351 func_len ()
15352 {
15353 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15354 }
15355
15356 _LT_EOF
15357 esac
15358
15359 case $lt_shell_append in
15360 yes)
15361 cat << \_LT_EOF >> "$cfgfile"
15362
15363 # func_append var value
15364 # Append VALUE to the end of shell variable VAR.
15365 func_append ()
15366 {
15367 eval "$1+=\$2"
15368 }
15369 _LT_EOF
15370 ;;
15371 *)
15372 cat << \_LT_EOF >> "$cfgfile"
15373
15374 # func_append var value
15375 # Append VALUE to the end of shell variable VAR.
15376 func_append ()
15377 {
15378 eval "$1=\$$1\$2"
15379 }
15380
15381 _LT_EOF
15382 ;;
15383 esac
15384
15385
15386 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15387 || (rm -f "$cfgfile"; exit 1)
15388
15389 mv -f "$cfgfile" "$ofile" ||
15390 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15391 chmod +x "$ofile"
15392
15393 ;;
15394
15395 esac
15396 done # for ac_tag
15397
15398
15399 as_fn_exit 0
15400 _ACEOF
15401 ac_clean_files=$ac_clean_files_save
15402
15403 test $ac_write_fail = 0 ||
15404 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15405
15406
15407 # configure is writing to config.log, and then calls config.status.
15408 # config.status does its own redirection, appending to config.log.
15409 # Unfortunately, on DOS this fails, as config.log is still kept open
15410 # by configure, so config.status won't be able to write to it; its
15411 # output is simply discarded. So we exec the FD to /dev/null,
15412 # effectively closing config.log, so it can be properly (re)opened and
15413 # appended to by config.status. When coming back to configure, we
15414 # need to make the FD available again.
15415 if test "$no_create" != yes; then
15416 ac_cs_success=:
15417 ac_config_status_args=
15418 test "$silent" = yes &&
15419 ac_config_status_args="$ac_config_status_args --quiet"
15420 exec 5>/dev/null
15421 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15422 exec 5>>config.log
15423 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15424 # would make configure fail if this is the last instruction.
15425 $ac_cs_success || as_fn_exit $?
15426 fi
15427 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15429 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15430 fi
15431