configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for file 5.16.
4 #
5 # Report bugs to <christos (at] astron.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: christos (at] astron.com about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
246 fi
247 exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265 { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274 return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345 else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362 else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 fi
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472 *)
473 ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497 else
498 as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
543
544 case X$lt_ECHO in
545 X*--fallback-echo)
546 # Remove one level of quotation (which was required for Make).
547 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
548 ;;
549 esac
550
551 ECHO=${lt_ECHO-echo}
552 if test "X$1" = X--no-reexec; then
553 # Discard the --no-reexec flag, and continue.
554 shift
555 elif test "X$1" = X--fallback-echo; then
556 # Avoid inline document here, it may be left over
557 :
558 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559 # Yippee, $ECHO works!
560 :
561 else
562 # Restart under the correct shell.
563 exec $SHELL "$0" --no-reexec ${1+"$@"}
564 fi
565
566 if test "X$1" = X--fallback-echo; then
567 # used as fallback echo
568 shift
569 cat <<_LT_EOF
570 $*
571 _LT_EOF
572 exit 0
573 fi
574
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
576 # if CDPATH is set.
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579 if test -z "$lt_ECHO"; then
580 if test "X${echo_test_string+set}" != Xset; then
581 # find a string as large as possible, as long as the shell can cope with it
582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
586 then
587 break
588 fi
589 done
590 fi
591
592 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
595 :
596 else
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
600 #
601 # So, first we look for a working echo in the user's PATH.
602
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
605 IFS="$lt_save_ifs"
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 ECHO="$dir/echo"
611 break
612 fi
613 done
614 IFS="$lt_save_ifs"
615
616 if test "X$ECHO" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
622 ECHO='print -r'
623 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
629 export CONFIG_SHELL
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 else
632 # Try using printf.
633 ECHO='printf %s\n'
634 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # Cool, printf works
638 :
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 export CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
646 export SHELL
647 ECHO="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 ECHO="$CONFIG_SHELL $0 --fallback-echo"
653 else
654 # maybe with a smaller string...
655 prev=:
656
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
659 then
660 break
661 fi
662 prev="$cmd"
663 done
664
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 else
670 # Oops. We lost completely, so just stick with echo.
671 ECHO=echo
672 fi
673 fi
674 fi
675 fi
676 fi
677 fi
678
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 lt_ECHO=$ECHO
682 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 fi
685
686
687
688
689 test -n "$DJDIR" || exec 7<&0 </dev/null
690 exec 6>&1
691
692 # Name of the host.
693 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694 # so uname gets run too.
695 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696
697 #
698 # Initializations.
699 #
700 ac_default_prefix=/usr/local
701 ac_clean_files=
702 ac_config_libobj_dir=.
703 LIBOBJS=
704 cross_compiling=no
705 subdirs=
706 MFLAGS=
707 MAKEFLAGS=
708
709 # Identity of this package.
710 PACKAGE_NAME='file'
711 PACKAGE_TARNAME='file'
712 PACKAGE_VERSION='5.16'
713 PACKAGE_STRING='file 5.16'
714 PACKAGE_BUGREPORT='christos (at] astron.com'
715 PACKAGE_URL=''
716
717 # Factoring default headers for most tests.
718 ac_includes_default="\
719 #include <stdio.h>
720 #ifdef HAVE_SYS_TYPES_H
721 # include <sys/types.h>
722 #endif
723 #ifdef HAVE_SYS_STAT_H
724 # include <sys/stat.h>
725 #endif
726 #ifdef STDC_HEADERS
727 # include <stdlib.h>
728 # include <stddef.h>
729 #else
730 # ifdef HAVE_STDLIB_H
731 # include <stdlib.h>
732 # endif
733 #endif
734 #ifdef HAVE_STRING_H
735 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
736 # include <memory.h>
737 # endif
738 # include <string.h>
739 #endif
740 #ifdef HAVE_STRINGS_H
741 # include <strings.h>
742 #endif
743 #ifdef HAVE_INTTYPES_H
744 # include <inttypes.h>
745 #endif
746 #ifdef HAVE_STDINT_H
747 # include <stdint.h>
748 #endif
749 #ifdef HAVE_UNISTD_H
750 # include <unistd.h>
751 #endif"
752
753 ac_header_list=
754 ac_subst_vars='am__EXEEXT_FALSE
755 am__EXEEXT_TRUE
756 LTLIBOBJS
757 IS_CROSS_COMPILE_FALSE
758 IS_CROSS_COMPILE_TRUE
759 LIBOBJS
760 HAVE_VISIBILITY
761 CFLAG_VISIBILITY
762 OTOOL64
763 OTOOL
764 LIPO
765 NMEDIT
766 DSYMUTIL
767 lt_ECHO
768 RANLIB
769 AR
770 OBJDUMP
771 NM
772 ac_ct_DUMPBIN
773 DUMPBIN
774 LD
775 FGREP
776 SED
777 LIBTOOL
778 LN_S
779 EGREP
780 GREP
781 CPP
782 am__fastdepCC_FALSE
783 am__fastdepCC_TRUE
784 CCDEPMODE
785 AMDEPBACKSLASH
786 AMDEP_FALSE
787 AMDEP_TRUE
788 am__quote
789 am__include
790 DEPDIR
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
797 CC
798 WARNINGS
799 FSECT5_FALSE
800 FSECT5_TRUE
801 fsect
802 pkgdatadir
803 MINGW_FALSE
804 MINGW_TRUE
805 MINGW
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 AM_BACKSLASH
815 AM_DEFAULT_VERBOSITY
816 am__untar
817 am__tar
818 AMTAR
819 am__leading_dot
820 SET_MAKE
821 AWK
822 mkdir_p
823 MKDIR_P
824 INSTALL_STRIP_PROGRAM
825 STRIP
826 install_sh
827 MAKEINFO
828 AUTOHEADER
829 AUTOMAKE
830 AUTOCONF
831 ACLOCAL
832 VERSION
833 PACKAGE
834 CYGPATH_W
835 am__isrc
836 INSTALL_DATA
837 INSTALL_SCRIPT
838 INSTALL_PROGRAM
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL'
877 ac_subst_files=''
878 ac_user_opts='
879 enable_option_checking
880 enable_silent_rules
881 enable_elf
882 enable_elf_core
883 enable_fsect_man5
884 enable_dependency_tracking
885 enable_static
886 with_pic
887 enable_shared
888 enable_fast_install
889 with_gnu_ld
890 enable_libtool_lock
891 enable_largefile
892 enable_warnings
893 '
894 ac_precious_vars='build_alias
895 host_alias
896 target_alias
897 CC
898 CFLAGS
899 LDFLAGS
900 LIBS
901 CPPFLAGS
902 CPP'
903
904
905 # Initialize some variables set by options.
906 ac_init_help=
907 ac_init_version=false
908 ac_unrecognized_opts=
909 ac_unrecognized_sep=
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
912 cache_file=/dev/null
913 exec_prefix=NONE
914 no_create=
915 no_recursion=
916 prefix=NONE
917 program_prefix=NONE
918 program_suffix=NONE
919 program_transform_name=s,x,x,
920 silent=
921 site=
922 srcdir=
923 verbose=
924 x_includes=NONE
925 x_libraries=NONE
926
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944 infodir='${datarootdir}/info'
945 htmldir='${docdir}'
946 dvidir='${docdir}'
947 pdfdir='${docdir}'
948 psdir='${docdir}'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
952
953 ac_prev=
954 ac_dashdash=
955 for ac_option
956 do
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
960 ac_prev=
961 continue
962 fi
963
964 case $ac_option in
965 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 *=) ac_optarg= ;;
967 *) ac_optarg=yes ;;
968 esac
969
970 # Accept the important Cygnus configure options, so we can diagnose typos.
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1178
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
1197 sbindir=$ac_optarg ;;
1198
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1202 | --sha | --sh)
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 | --sha=* | --sh=*)
1208 sharedstatedir=$ac_optarg ;;
1209
1210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
1213 site=$ac_optarg ;;
1214
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1219
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1226
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1231
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1234
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1237
1238 -with-* | --with-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=\$ac_optarg ;;
1253
1254 -without-* | --without-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=no ;;
1269
1270 --x)
1271 # Obsolete; use --with-x.
1272 with_x=yes ;;
1273
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279 x_includes=$ac_optarg ;;
1280
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286 x_libraries=$ac_optarg ;;
1287
1288 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289 Try \`$0 --help' for more information"
1290 ;;
1291
1292 *=*)
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 case $ac_envvar in #(
1296 '' | [0-9]* | *[!_$as_cr_alnum]* )
1297 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298 esac
1299 eval $ac_envvar=\$ac_optarg
1300 export $ac_envvar ;;
1301
1302 *)
1303 # FIXME: should be removed in autoconf 3.0.
1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 ;;
1309
1310 esac
1311 done
1312
1313 if test -n "$ac_prev"; then
1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315 as_fn_error $? "missing argument to $ac_option"
1316 fi
1317
1318 if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1320 no) ;;
1321 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1324 fi
1325
1326 # Check all directory arguments for consistency.
1327 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
1331 do
1332 eval ac_val=\$$ac_var
1333 # Remove trailing slashes.
1334 case $ac_val in
1335 */ )
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1338 esac
1339 # Be sure to have absolute directory names.
1340 case $ac_val in
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 esac
1344 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 done
1346
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1350 build=$build_alias
1351 host=$host_alias
1352 target=$target_alias
1353
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1359 If a cross compiler is detected then cross compile mode will be used" >&2
1360 elif test "x$build_alias" != "x$host_alias"; then
1361 cross_compiling=yes
1362 fi
1363 fi
1364
1365 ac_tool_prefix=
1366 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367
1368 test "$silent" = yes && exec 6>/dev/null
1369
1370
1371 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di=`ls -di .` &&
1373 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374 as_fn_error $? "working directory cannot be determined"
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 as_fn_error $? "pwd does not report name of working directory"
1377
1378
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$as_myself" ||
1384 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$as_myself" : 'X\(//\)[^/]' \| \
1386 X"$as_myself" : 'X\(//\)$' \| \
1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388 $as_echo X"$as_myself" |
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)[^/].*/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\).*/{
1402 s//\1/
1403 q
1404 }
1405 s/.*/./; q'`
1406 srcdir=$ac_confdir
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 srcdir=..
1409 fi
1410 else
1411 ac_srcdir_defaulted=no
1412 fi
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1416 fi
1417 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 ac_abs_confdir=`(
1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1420 pwd)`
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 srcdir=.
1424 fi
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1428 case $srcdir in
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 esac
1431 for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436 done
1437
1438 #
1439 # Report the --help message.
1440 #
1441 if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1444 cat <<_ACEOF
1445 \`configure' configures file 5.16 to adapt to many kinds of systems.
1446
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE. See below for descriptions of some of the useful variables.
1451
1452 Defaults for the options are specified in brackets.
1453
1454 Configuration:
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking ...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1464
1465 Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1469 [PREFIX]
1470
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1475
1476 For better control, use the options below.
1477
1478 Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1498 _ACEOF
1499
1500 cat <<\_ACEOF
1501
1502 Program names:
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506
1507 System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of file 5.16:";;
1516 esac
1517 cat <<\_ACEOF
1518
1519 Optional Features:
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-silent-rules less verbose build output (undo: `make V=1')
1524 --disable-silent-rules verbose build output (undo: `make V=0')
1525 --disable-elf disable builtin ELF support
1526 --disable-elf-core disable ELF core file support
1527 --enable-fsect-man5 enable file formats in man section 5
1528 --disable-dependency-tracking speeds up one-time build
1529 --enable-dependency-tracking do not reject slow dependency extractors
1530 --enable-static[=PKGS] build static libraries [default=no]
1531 --enable-shared[=PKGS] build shared libraries [default=yes]
1532 --enable-fast-install[=PKGS]
1533 optimize for fast installation [default=yes]
1534 --disable-libtool-lock avoid locking (might break parallel builds)
1535 --disable-largefile omit support for large files
1536 --disable-warnings disable compiler warnings
1537
1538 Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-pic try to use only PIC/non-PIC objects [default=use
1542 both]
1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1544
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1553 CPP C preprocessor
1554
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1557
1558 Report bugs to <christos@astron.com>.
1559 _ACEOF
1560 ac_status=$?
1561 fi
1562
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" ||
1567 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568 continue
1569 ac_builddir=.
1570
1571 case "$ac_dir" in
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *)
1574 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575 # A ".." for each directory in $ac_dir_suffix.
1576 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577 case $ac_top_builddir_sub in
1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580 esac ;;
1581 esac
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1586
1587 case $srcdir in
1588 .) # We are building in place.
1589 ac_srcdir=.
1590 ac_top_srcdir=$ac_top_builddir_sub
1591 ac_abs_top_srcdir=$ac_pwd ;;
1592 [\\/]* | ?:[\\/]* ) # Absolute name.
1593 ac_srcdir=$srcdir$ac_dir_suffix;
1594 ac_top_srcdir=$srcdir
1595 ac_abs_top_srcdir=$srcdir ;;
1596 *) # Relative name.
1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598 ac_top_srcdir=$ac_top_build_prefix$srcdir
1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 esac
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602
1603 cd "$ac_dir" || { ac_status=$?; continue; }
1604 # Check for guested configure.
1605 if test -f "$ac_srcdir/configure.gnu"; then
1606 echo &&
1607 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608 elif test -f "$ac_srcdir/configure"; then
1609 echo &&
1610 $SHELL "$ac_srcdir/configure" --help=recursive
1611 else
1612 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613 fi || ac_status=$?
1614 cd "$ac_pwd" || { ac_status=$?; break; }
1615 done
1616 fi
1617
1618 test -n "$ac_init_help" && exit $ac_status
1619 if $ac_init_version; then
1620 cat <<\_ACEOF
1621 file configure 5.16
1622 generated by GNU Autoconf 2.68
1623
1624 Copyright (C) 2010 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1627 _ACEOF
1628 exit
1629 fi
1630
1631 ## ------------------------ ##
1632 ## Autoconf initialization. ##
1633 ## ------------------------ ##
1634
1635 # ac_fn_c_try_compile LINENO
1636 # --------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_compile ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_compile
1672
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_cpp ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } > conftest.i && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_cpp
1709
1710 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1713 # the include files in INCLUDES and setting the cache variable VAR
1714 # accordingly.
1715 ac_fn_c_check_header_mongrel ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if eval \${$3+:} false; then :
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1723 fi
1724 eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727 else
1728 # Is the header compilable?
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1730 $as_echo_n "checking $2 usability... " >&6; }
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 $4
1734 #include <$2>
1735 _ACEOF
1736 if ac_fn_c_try_compile "$LINENO"; then :
1737 ac_header_compiler=yes
1738 else
1739 ac_header_compiler=no
1740 fi
1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1743 $as_echo "$ac_header_compiler" >&6; }
1744
1745 # Is the header present?
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1747 $as_echo_n "checking $2 presence... " >&6; }
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_cpp "$LINENO"; then :
1753 ac_header_preproc=yes
1754 else
1755 ac_header_preproc=no
1756 fi
1757 rm -f conftest.err conftest.i conftest.$ac_ext
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1759 $as_echo "$ac_header_preproc" >&6; }
1760
1761 # So? What about this header?
1762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1763 yes:no: )
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1765 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1767 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1768 ;;
1769 no:yes:* )
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1771 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1773 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1775 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1777 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ( $as_echo "## ---------------------------------- ##
1781 ## Report this to christos (at] astron.com ##
1782 ## ---------------------------------- ##"
1783 ) | sed "s/^/$as_me: WARNING: /" >&2
1784 ;;
1785 esac
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 eval "$3=\$ac_header_compiler"
1792 fi
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 fi
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799 } # ac_fn_c_check_header_mongrel
1800
1801 # ac_fn_c_try_run LINENO
1802 # ----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804 # that executables *can* be run.
1805 ac_fn_c_try_run ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_link"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>&5
1816 ac_status=$?
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819 { { case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_try") 2>&5
1826 ac_status=$?
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; }; }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: program exited with status $ac_status" >&5
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=$ac_status
1836 fi
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_run
1842
1843 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists and can be compiled using the include files in
1846 # INCLUDES, setting the cache variable VAR accordingly.
1847 ac_fn_c_check_header_compile ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 $4
1858 #include <$2>
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861 eval "$3=yes"
1862 else
1863 eval "$3=no"
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_header_compile
1873
1874 # ac_fn_c_try_link LINENO
1875 # -----------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_c_try_link ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext conftest$ac_exeext
1881 if { { ac_try="$ac_link"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
1901 $as_test_x conftest$ac_exeext
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909 fi
1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912 # interfere with the next link command; also delete a directory that is
1913 # left behind by Apple's compiler. We do this before executing the actions.
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1917
1918 } # ac_fn_c_try_link
1919
1920 # ac_fn_c_check_func LINENO FUNC VAR
1921 # ----------------------------------
1922 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1923 ac_fn_c_check_func ()
1924 {
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1930 else
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1935 #define $2 innocuous_$2
1936
1937 /* System header to define __stub macros and hopefully few prototypes,
1938 which can conflict with char $2 (); below.
1939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1940 <limits.h> exists even on freestanding compilers. */
1941
1942 #ifdef __STDC__
1943 # include <limits.h>
1944 #else
1945 # include <assert.h>
1946 #endif
1947
1948 #undef $2
1949
1950 /* Override any GCC internal prototype to avoid an error.
1951 Use char because int might match the return type of a GCC
1952 builtin and then its argument prototype would still apply. */
1953 #ifdef __cplusplus
1954 extern "C"
1955 #endif
1956 char $2 ();
1957 /* The GNU C library defines this for functions which it implements
1958 to always fail with ENOSYS. Some functions are actually named
1959 something starting with __ and the normal name is an alias. */
1960 #if defined __stub_$2 || defined __stub___$2
1961 choke me
1962 #endif
1963
1964 int
1965 main ()
1966 {
1967 return $2 ();
1968 ;
1969 return 0;
1970 }
1971 _ACEOF
1972 if ac_fn_c_try_link "$LINENO"; then :
1973 eval "$3=yes"
1974 else
1975 eval "$3=no"
1976 fi
1977 rm -f core conftest.err conftest.$ac_objext \
1978 conftest$ac_exeext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_c_check_func
1986
1987 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1988 # -------------------------------------------
1989 # Tests whether TYPE exists after having included INCLUDES, setting cache
1990 # variable VAR accordingly.
1991 ac_fn_c_check_type ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if eval \${$3+:} false; then :
1997 $as_echo_n "(cached) " >&6
1998 else
1999 eval "$3=no"
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $4
2003 int
2004 main ()
2005 {
2006 if (sizeof ($2))
2007 return 0;
2008 ;
2009 return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 $4
2016 int
2017 main ()
2018 {
2019 if (sizeof (($2)))
2020 return 0;
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026
2027 else
2028 eval "$3=yes"
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039 } # ac_fn_c_check_type
2040
2041 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2042 # ----------------------------------------------------
2043 # Tries to find if the field MEMBER exists in type AGGR, after including
2044 # INCLUDES, setting cache variable VAR accordingly.
2045 ac_fn_c_check_member ()
2046 {
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2049 $as_echo_n "checking for $2.$3... " >&6; }
2050 if eval \${$4+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $5
2056 int
2057 main ()
2058 {
2059 static $2 ac_aggr;
2060 if (ac_aggr.$3)
2061 return 0;
2062 ;
2063 return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 eval "$4=yes"
2068 else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $5
2072 int
2073 main ()
2074 {
2075 static $2 ac_aggr;
2076 if (sizeof ac_aggr.$3)
2077 return 0;
2078 ;
2079 return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 eval "$4=yes"
2084 else
2085 eval "$4=no"
2086 fi
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 fi
2091 eval ac_res=\$$4
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095
2096 } # ac_fn_c_check_member
2097
2098 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2099 # ---------------------------------------------
2100 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2101 # accordingly.
2102 ac_fn_c_check_decl ()
2103 {
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 as_decl_name=`echo $2|sed 's/ *(.*//'`
2106 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2108 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 $4
2115 int
2116 main ()
2117 {
2118 #ifndef $as_decl_name
2119 #ifdef __cplusplus
2120 (void) $as_decl_use;
2121 #else
2122 (void) $as_decl_name;
2123 #endif
2124 #endif
2125
2126 ;
2127 return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 eval "$3=yes"
2132 else
2133 eval "$3=no"
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 fi
2137 eval ac_res=\$$3
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141
2142 } # ac_fn_c_check_decl
2143
2144 # ac_fn_c_find_uintX_t LINENO BITS VAR
2145 # ------------------------------------
2146 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2147 # accordingly.
2148 ac_fn_c_find_uintX_t ()
2149 {
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2152 $as_echo_n "checking for uint$2_t... " >&6; }
2153 if eval \${$3+:} false; then :
2154 $as_echo_n "(cached) " >&6
2155 else
2156 eval "$3=no"
2157 # Order is important - never check a type that is potentially smaller
2158 # than half of the expected target width.
2159 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2160 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2163 $ac_includes_default
2164 int
2165 main ()
2166 {
2167 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2168 test_array [0] = 0
2169
2170 ;
2171 return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175 case $ac_type in #(
2176 uint$2_t) :
2177 eval "$3=yes" ;; #(
2178 *) :
2179 eval "$3=\$ac_type" ;;
2180 esac
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 if eval test \"x\$"$3"\" = x"no"; then :
2184
2185 else
2186 break
2187 fi
2188 done
2189 fi
2190 eval ac_res=\$$3
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194
2195 } # ac_fn_c_find_uintX_t
2196
2197 # ac_fn_c_find_intX_t LINENO BITS VAR
2198 # -----------------------------------
2199 # Finds a signed integer type with width BITS, setting cache variable VAR
2200 # accordingly.
2201 ac_fn_c_find_intX_t ()
2202 {
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2205 $as_echo_n "checking for int$2_t... " >&6; }
2206 if eval \${$3+:} false; then :
2207 $as_echo_n "(cached) " >&6
2208 else
2209 eval "$3=no"
2210 # Order is important - never check a type that is potentially smaller
2211 # than half of the expected target width.
2212 for ac_type in int$2_t 'int' 'long int' \
2213 'long long int' 'short int' 'signed char'; do
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2216 $ac_includes_default
2217 enum { N = $2 / 2 - 1 };
2218 int
2219 main ()
2220 {
2221 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2222 test_array [0] = 0
2223
2224 ;
2225 return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2231 $ac_includes_default
2232 enum { N = $2 / 2 - 1 };
2233 int
2234 main ()
2235 {
2236 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2237 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2238 test_array [0] = 0
2239
2240 ;
2241 return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245
2246 else
2247 case $ac_type in #(
2248 int$2_t) :
2249 eval "$3=yes" ;; #(
2250 *) :
2251 eval "$3=\$ac_type" ;;
2252 esac
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 if eval test \"x\$"$3"\" = x"no"; then :
2258
2259 else
2260 break
2261 fi
2262 done
2263 fi
2264 eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268
2269 } # ac_fn_c_find_intX_t
2270 cat >config.log <<_ACEOF
2271 This file contains any messages produced by compilers while
2272 running configure, to aid debugging if configure makes a mistake.
2273
2274 It was created by file $as_me 5.16, which was
2275 generated by GNU Autoconf 2.68. Invocation command line was
2276
2277 $ $0 $@
2278
2279 _ACEOF
2280 exec 5>>config.log
2281 {
2282 cat <<_ASUNAME
2283 ## --------- ##
2284 ## Platform. ##
2285 ## --------- ##
2286
2287 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2288 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2289 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2290 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2291 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2292
2293 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2294 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2295
2296 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2297 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2298 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2299 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2300 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2301 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2302 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2303
2304 _ASUNAME
2305
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309 IFS=$as_save_IFS
2310 test -z "$as_dir" && as_dir=.
2311 $as_echo "PATH: $as_dir"
2312 done
2313 IFS=$as_save_IFS
2314
2315 } >&5
2316
2317 cat >&5 <<_ACEOF
2318
2319
2320 ## ----------- ##
2321 ## Core tests. ##
2322 ## ----------- ##
2323
2324 _ACEOF
2325
2326
2327 # Keep a trace of the command line.
2328 # Strip out --no-create and --no-recursion so they do not pile up.
2329 # Strip out --silent because we don't want to record it for future runs.
2330 # Also quote any args containing shell meta-characters.
2331 # Make two passes to allow for proper duplicate-argument suppression.
2332 ac_configure_args=
2333 ac_configure_args0=
2334 ac_configure_args1=
2335 ac_must_keep_next=false
2336 for ac_pass in 1 2
2337 do
2338 for ac_arg
2339 do
2340 case $ac_arg in
2341 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2343 | -silent | --silent | --silen | --sile | --sil)
2344 continue ;;
2345 *\'*)
2346 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2347 esac
2348 case $ac_pass in
2349 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2350 2)
2351 as_fn_append ac_configure_args1 " '$ac_arg'"
2352 if test $ac_must_keep_next = true; then
2353 ac_must_keep_next=false # Got value, back to normal.
2354 else
2355 case $ac_arg in
2356 *=* | --config-cache | -C | -disable-* | --disable-* \
2357 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2358 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2359 | -with-* | --with-* | -without-* | --without-* | --x)
2360 case "$ac_configure_args0 " in
2361 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2362 esac
2363 ;;
2364 -* ) ac_must_keep_next=true ;;
2365 esac
2366 fi
2367 as_fn_append ac_configure_args " '$ac_arg'"
2368 ;;
2369 esac
2370 done
2371 done
2372 { ac_configure_args0=; unset ac_configure_args0;}
2373 { ac_configure_args1=; unset ac_configure_args1;}
2374
2375 # When interrupted or exit'd, cleanup temporary files, and complete
2376 # config.log. We remove comments because anyway the quotes in there
2377 # would cause problems or look ugly.
2378 # WARNING: Use '\'' to represent an apostrophe within the trap.
2379 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2380 trap 'exit_status=$?
2381 # Save into config.log some information that might help in debugging.
2382 {
2383 echo
2384
2385 $as_echo "## ---------------- ##
2386 ## Cache variables. ##
2387 ## ---------------- ##"
2388 echo
2389 # The following way of writing the cache mishandles newlines in values,
2390 (
2391 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2392 eval ac_val=\$$ac_var
2393 case $ac_val in #(
2394 *${as_nl}*)
2395 case $ac_var in #(
2396 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2397 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2398 esac
2399 case $ac_var in #(
2400 _ | IFS | as_nl) ;; #(
2401 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2402 *) { eval $ac_var=; unset $ac_var;} ;;
2403 esac ;;
2404 esac
2405 done
2406 (set) 2>&1 |
2407 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2408 *${as_nl}ac_space=\ *)
2409 sed -n \
2410 "s/'\''/'\''\\\\'\'''\''/g;
2411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2412 ;; #(
2413 *)
2414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2415 ;;
2416 esac |
2417 sort
2418 )
2419 echo
2420
2421 $as_echo "## ----------------- ##
2422 ## Output variables. ##
2423 ## ----------------- ##"
2424 echo
2425 for ac_var in $ac_subst_vars
2426 do
2427 eval ac_val=\$$ac_var
2428 case $ac_val in
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 esac
2431 $as_echo "$ac_var='\''$ac_val'\''"
2432 done | sort
2433 echo
2434
2435 if test -n "$ac_subst_files"; then
2436 $as_echo "## ------------------- ##
2437 ## File substitutions. ##
2438 ## ------------------- ##"
2439 echo
2440 for ac_var in $ac_subst_files
2441 do
2442 eval ac_val=\$$ac_var
2443 case $ac_val in
2444 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2445 esac
2446 $as_echo "$ac_var='\''$ac_val'\''"
2447 done | sort
2448 echo
2449 fi
2450
2451 if test -s confdefs.h; then
2452 $as_echo "## ----------- ##
2453 ## confdefs.h. ##
2454 ## ----------- ##"
2455 echo
2456 cat confdefs.h
2457 echo
2458 fi
2459 test "$ac_signal" != 0 &&
2460 $as_echo "$as_me: caught signal $ac_signal"
2461 $as_echo "$as_me: exit $exit_status"
2462 } >&5
2463 rm -f core *.core core.conftest.* &&
2464 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2465 exit $exit_status
2466 ' 0
2467 for ac_signal in 1 2 13 15; do
2468 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2469 done
2470 ac_signal=0
2471
2472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2473 rm -f -r conftest* confdefs.h
2474
2475 $as_echo "/* confdefs.h */" > confdefs.h
2476
2477 # Predefined preprocessor variables.
2478
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_NAME "$PACKAGE_NAME"
2481 _ACEOF
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2485 _ACEOF
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2489 _ACEOF
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_STRING "$PACKAGE_STRING"
2493 _ACEOF
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_URL "$PACKAGE_URL"
2501 _ACEOF
2502
2503
2504 # Let the site file select an alternate cache file if it wants to.
2505 # Prefer an explicitly selected file to automatically selected ones.
2506 ac_site_file1=NONE
2507 ac_site_file2=NONE
2508 if test -n "$CONFIG_SITE"; then
2509 # We do not want a PATH search for config.site.
2510 case $CONFIG_SITE in #((
2511 -*) ac_site_file1=./$CONFIG_SITE;;
2512 */*) ac_site_file1=$CONFIG_SITE;;
2513 *) ac_site_file1=./$CONFIG_SITE;;
2514 esac
2515 elif test "x$prefix" != xNONE; then
2516 ac_site_file1=$prefix/share/config.site
2517 ac_site_file2=$prefix/etc/config.site
2518 else
2519 ac_site_file1=$ac_default_prefix/share/config.site
2520 ac_site_file2=$ac_default_prefix/etc/config.site
2521 fi
2522 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2523 do
2524 test "x$ac_site_file" = xNONE && continue
2525 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2527 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2528 sed 's/^/| /' "$ac_site_file" >&5
2529 . "$ac_site_file" \
2530 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532 as_fn_error $? "failed to load site script $ac_site_file
2533 See \`config.log' for more details" "$LINENO" 5; }
2534 fi
2535 done
2536
2537 if test -r "$cache_file"; then
2538 # Some versions of bash will fail to source /dev/null (special files
2539 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2540 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2542 $as_echo "$as_me: loading cache $cache_file" >&6;}
2543 case $cache_file in
2544 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2545 *) . "./$cache_file";;
2546 esac
2547 fi
2548 else
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2550 $as_echo "$as_me: creating cache $cache_file" >&6;}
2551 >$cache_file
2552 fi
2553
2554 as_fn_append ac_header_list " stdlib.h"
2555 as_fn_append ac_header_list " unistd.h"
2556 as_fn_append ac_header_list " sys/param.h"
2557 # Check that the precious variables saved in the cache have kept the same
2558 # value.
2559 ac_cache_corrupted=false
2560 for ac_var in $ac_precious_vars; do
2561 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2562 eval ac_new_set=\$ac_env_${ac_var}_set
2563 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2564 eval ac_new_val=\$ac_env_${ac_var}_value
2565 case $ac_old_set,$ac_new_set in
2566 set,)
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2568 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2569 ac_cache_corrupted=: ;;
2570 ,set)
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2572 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2573 ac_cache_corrupted=: ;;
2574 ,);;
2575 *)
2576 if test "x$ac_old_val" != "x$ac_new_val"; then
2577 # differences in whitespace do not lead to failure.
2578 ac_old_val_w=`echo x $ac_old_val`
2579 ac_new_val_w=`echo x $ac_new_val`
2580 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2582 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2583 ac_cache_corrupted=:
2584 else
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2586 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2587 eval $ac_var=\$ac_old_val
2588 fi
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2590 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2592 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2593 fi;;
2594 esac
2595 # Pass precious variables to config.status.
2596 if test "$ac_new_set" = set; then
2597 case $ac_new_val in
2598 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2599 *) ac_arg=$ac_var=$ac_new_val ;;
2600 esac
2601 case " $ac_configure_args " in
2602 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2603 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2604 esac
2605 fi
2606 done
2607 if $ac_cache_corrupted; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2611 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2612 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2613 fi
2614 ## -------------------- ##
2615 ## Main body of script. ##
2616 ## -------------------- ##
2617
2618 ac_ext=c
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623
2624
2625 am__api_version='1.11'
2626
2627 ac_aux_dir=
2628 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2629 if test -f "$ac_dir/install-sh"; then
2630 ac_aux_dir=$ac_dir
2631 ac_install_sh="$ac_aux_dir/install-sh -c"
2632 break
2633 elif test -f "$ac_dir/install.sh"; then
2634 ac_aux_dir=$ac_dir
2635 ac_install_sh="$ac_aux_dir/install.sh -c"
2636 break
2637 elif test -f "$ac_dir/shtool"; then
2638 ac_aux_dir=$ac_dir
2639 ac_install_sh="$ac_aux_dir/shtool install -c"
2640 break
2641 fi
2642 done
2643 if test -z "$ac_aux_dir"; then
2644 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2645 fi
2646
2647 # These three variables are undocumented and unsupported,
2648 # and are intended to be withdrawn in a future Autoconf release.
2649 # They can cause serious problems if a builder's source tree is in a directory
2650 # whose full name contains unusual characters.
2651 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2652 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2653 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2654
2655
2656 # Find a good install program. We prefer a C program (faster),
2657 # so one script is as good as another. But avoid the broken or
2658 # incompatible versions:
2659 # SysV /etc/install, /usr/sbin/install
2660 # SunOS /usr/etc/install
2661 # IRIX /sbin/install
2662 # AIX /bin/install
2663 # AmigaOS /C/install, which installs bootblocks on floppy discs
2664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2667 # OS/2's system install, which has a completely different semantic
2668 # ./install, which can be erroneously created by make from ./install.sh.
2669 # Reject install programs that cannot install multiple files.
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2671 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2672 if test -z "$INSTALL"; then
2673 if ${ac_cv_path_install+:} false; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 # Account for people who put trailing slashes in PATH elements.
2682 case $as_dir/ in #((
2683 ./ | .// | /[cC]/* | \
2684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2685 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2686 /usr/ucb/* ) ;;
2687 *)
2688 # OSF1 and SCO ODT 3.0 have their own names for install.
2689 # Don't use installbsd from OSF since it installs stuff as root
2690 # by default.
2691 for ac_prog in ginstall scoinst install; do
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2694 if test $ac_prog = install &&
2695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696 # AIX install. It has an incompatible calling convention.
2697 :
2698 elif test $ac_prog = install &&
2699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2700 # program-specific install script used by HP pwplus--don't use.
2701 :
2702 else
2703 rm -rf conftest.one conftest.two conftest.dir
2704 echo one > conftest.one
2705 echo two > conftest.two
2706 mkdir conftest.dir
2707 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2708 test -s conftest.one && test -s conftest.two &&
2709 test -s conftest.dir/conftest.one &&
2710 test -s conftest.dir/conftest.two
2711 then
2712 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2713 break 3
2714 fi
2715 fi
2716 fi
2717 done
2718 done
2719 ;;
2720 esac
2721
2722 done
2723 IFS=$as_save_IFS
2724
2725 rm -rf conftest.one conftest.two conftest.dir
2726
2727 fi
2728 if test "${ac_cv_path_install+set}" = set; then
2729 INSTALL=$ac_cv_path_install
2730 else
2731 # As a last resort, use the slow shell script. Don't cache a
2732 # value for INSTALL within a source directory, because that will
2733 # break other packages using the cache if that directory is
2734 # removed, or if the value is a relative name.
2735 INSTALL=$ac_install_sh
2736 fi
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2739 $as_echo "$INSTALL" >&6; }
2740
2741 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2742 # It thinks the first close brace ends the variable substitution.
2743 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2744
2745 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2746
2747 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2750 $as_echo_n "checking whether build environment is sane... " >&6; }
2751 # Just in case
2752 sleep 1
2753 echo timestamp > conftest.file
2754 # Reject unsafe characters in $srcdir or the absolute working directory
2755 # name. Accept space and tab only in the latter.
2756 am_lf='
2757 '
2758 case `pwd` in
2759 *[\\\"\#\$\&\'\`$am_lf]*)
2760 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2761 esac
2762 case $srcdir in
2763 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2764 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2765 esac
2766
2767 # Do `set' in a subshell so we don't clobber the current shell's
2768 # arguments. Must try -L first in case configure is actually a
2769 # symlink; some systems play weird games with the mod time of symlinks
2770 # (eg FreeBSD returns the mod time of the symlink's containing
2771 # directory).
2772 if (
2773 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2774 if test "$*" = "X"; then
2775 # -L didn't work.
2776 set X `ls -t "$srcdir/configure" conftest.file`
2777 fi
2778 rm -f conftest.file
2779 if test "$*" != "X $srcdir/configure conftest.file" \
2780 && test "$*" != "X conftest.file $srcdir/configure"; then
2781
2782 # If neither matched, then we have a broken ls. This can happen
2783 # if, for instance, CONFIG_SHELL is bash and it inherits a
2784 # broken ls alias from the environment. This has actually
2785 # happened. Such a system could not be considered "sane".
2786 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2787 alias in your environment" "$LINENO" 5
2788 fi
2789
2790 test "$2" = conftest.file
2791 )
2792 then
2793 # Ok.
2794 :
2795 else
2796 as_fn_error $? "newly created file is older than distributed files!
2797 Check your system clock" "$LINENO" 5
2798 fi
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2800 $as_echo "yes" >&6; }
2801 test "$program_prefix" != NONE &&
2802 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2803 # Use a double $ so make ignores it.
2804 test "$program_suffix" != NONE &&
2805 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2806 # Double any \ or $.
2807 # By default was `s,x,x', remove it if useless.
2808 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2809 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2810
2811 # expand $ac_aux_dir to an absolute path
2812 am_aux_dir=`cd $ac_aux_dir && pwd`
2813
2814 if test x"${MISSING+set}" != xset; then
2815 case $am_aux_dir in
2816 *\ * | *\ *)
2817 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2818 *)
2819 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2820 esac
2821 fi
2822 # Use eval to expand $SHELL
2823 if eval "$MISSING --run true"; then
2824 am_missing_run="$MISSING --run "
2825 else
2826 am_missing_run=
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2828 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2829 fi
2830
2831 if test x"${install_sh}" != xset; then
2832 case $am_aux_dir in
2833 *\ * | *\ *)
2834 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2835 *)
2836 install_sh="\${SHELL} $am_aux_dir/install-sh"
2837 esac
2838 fi
2839
2840 # Installed binaries are usually stripped using `strip' when the user
2841 # run `make install-strip'. However `strip' might not be the right
2842 # tool to use in cross-compilation environments, therefore Automake
2843 # will honor the `STRIP' environment variable to overrule this program.
2844 if test "$cross_compiling" != no; then
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}strip; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_STRIP+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test -n "$STRIP"; then
2854 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi
2872 fi
2873 STRIP=$ac_cv_prog_STRIP
2874 if test -n "$STRIP"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2876 $as_echo "$STRIP" >&6; }
2877 else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880 fi
2881
2882
2883 fi
2884 if test -z "$ac_cv_prog_STRIP"; then
2885 ac_ct_STRIP=$STRIP
2886 # Extract the first word of "strip", so it can be a program name with args.
2887 set dummy strip; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$ac_ct_STRIP"; then
2894 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_ac_ct_STRIP="strip"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2914 if test -n "$ac_ct_STRIP"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2916 $as_echo "$ac_ct_STRIP" >&6; }
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922 if test "x$ac_ct_STRIP" = x; then
2923 STRIP=":"
2924 else
2925 case $cross_compiling:$ac_tool_warned in
2926 yes:)
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929 ac_tool_warned=yes ;;
2930 esac
2931 STRIP=$ac_ct_STRIP
2932 fi
2933 else
2934 STRIP="$ac_cv_prog_STRIP"
2935 fi
2936
2937 fi
2938 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2939
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2941 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2942 if test -z "$MKDIR_P"; then
2943 if ${ac_cv_path_mkdir+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2948 do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_prog in mkdir gmkdir; do
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2954 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2955 'mkdir (GNU coreutils) '* | \
2956 'mkdir (coreutils) '* | \
2957 'mkdir (fileutils) '4.1*)
2958 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2959 break 3;;
2960 esac
2961 done
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 fi
2967
2968 test -d ./--version && rmdir ./--version
2969 if test "${ac_cv_path_mkdir+set}" = set; then
2970 MKDIR_P="$ac_cv_path_mkdir -p"
2971 else
2972 # As a last resort, use the slow shell script. Don't cache a
2973 # value for MKDIR_P within a source directory, because that will
2974 # break other packages using the cache if that directory is
2975 # removed, or if the value is a relative name.
2976 MKDIR_P="$ac_install_sh -d"
2977 fi
2978 fi
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2980 $as_echo "$MKDIR_P" >&6; }
2981
2982 mkdir_p="$MKDIR_P"
2983 case $mkdir_p in
2984 [\\/$]* | ?:[\\/]*) ;;
2985 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2986 esac
2987
2988 for ac_prog in gawk mawk nawk awk
2989 do
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_AWK+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 if test -n "$AWK"; then
2998 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_AWK="$ac_prog"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 fi
3016 fi
3017 AWK=$ac_cv_prog_AWK
3018 if test -n "$AWK"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3020 $as_echo "$AWK" >&6; }
3021 else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 fi
3025
3026
3027 test -n "$AWK" && break
3028 done
3029
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3031 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3032 set x ${MAKE-make}
3033 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3034 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 cat >conftest.make <<\_ACEOF
3038 SHELL = /bin/sh
3039 all:
3040 @echo '@@@%%%=$(MAKE)=@@@%%%'
3041 _ACEOF
3042 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3043 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3044 *@@@%%%=?*=@@@%%%*)
3045 eval ac_cv_prog_make_${ac_make}_set=yes;;
3046 *)
3047 eval ac_cv_prog_make_${ac_make}_set=no;;
3048 esac
3049 rm -f conftest.make
3050 fi
3051 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3053 $as_echo "yes" >&6; }
3054 SET_MAKE=
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 SET_MAKE="MAKE=${MAKE-make}"
3059 fi
3060
3061 rm -rf .tst 2>/dev/null
3062 mkdir .tst 2>/dev/null
3063 if test -d .tst; then
3064 am__leading_dot=.
3065 else
3066 am__leading_dot=_
3067 fi
3068 rmdir .tst 2>/dev/null
3069
3070 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3071 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3072 # is not polluted with repeated "-I."
3073 am__isrc=' -I$(srcdir)'
3074 # test to see if srcdir already configured
3075 if test -f $srcdir/config.status; then
3076 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3077 fi
3078 fi
3079
3080 # test whether we have cygpath
3081 if test -z "$CYGPATH_W"; then
3082 if (cygpath --version) >/dev/null 2>/dev/null; then
3083 CYGPATH_W='cygpath -w'
3084 else
3085 CYGPATH_W=echo
3086 fi
3087 fi
3088
3089
3090 # Define the identity of the package.
3091 PACKAGE='file'
3092 VERSION='5.16'
3093
3094
3095 cat >>confdefs.h <<_ACEOF
3096 #define PACKAGE "$PACKAGE"
3097 _ACEOF
3098
3099
3100 cat >>confdefs.h <<_ACEOF
3101 #define VERSION "$VERSION"
3102 _ACEOF
3103
3104 # Some tools Automake needs.
3105
3106 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3107
3108
3109 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3110
3111
3112 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3113
3114
3115 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3116
3117
3118 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3119
3120 # We need awk for the "check" target. The system "awk" is bad on
3121 # some platforms.
3122 # Always define AMTAR for backward compatibility.
3123
3124 AMTAR=${AMTAR-"${am_missing_run}tar"}
3125
3126 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3127
3128
3129
3130
3131
3132 # Check whether --enable-silent-rules was given.
3133 if test "${enable_silent_rules+set}" = set; then :
3134 enableval=$enable_silent_rules;
3135 fi
3136
3137 case $enable_silent_rules in
3138 yes) AM_DEFAULT_VERBOSITY=0;;
3139 no) AM_DEFAULT_VERBOSITY=1;;
3140 *) AM_DEFAULT_VERBOSITY=0;;
3141 esac
3142 AM_BACKSLASH='\'
3143
3144
3145 ac_config_headers="$ac_config_headers config.h"
3146
3147
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3150 $as_echo_n "checking for builtin ELF support... " >&6; }
3151 # Check whether --enable-elf was given.
3152 if test "${enable_elf+set}" = set; then :
3153 enableval=$enable_elf; if test "${enableval}" = yes; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3155 $as_echo "yes" >&6; }
3156
3157 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3158
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163 else
3164
3165 # enable by default
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3168
3169 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3170
3171
3172 fi
3173
3174
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3176 $as_echo_n "checking for ELF core file support... " >&6; }
3177 # Check whether --enable-elf-core was given.
3178 if test "${enable_elf_core+set}" = set; then :
3179 enableval=$enable_elf_core; if test "${enableval}" = yes; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181 $as_echo "yes" >&6; }
3182
3183 $as_echo "#define ELFCORE 1" >>confdefs.h
3184
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189 else
3190
3191 # enable by default
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3193 $as_echo "yes" >&6; }
3194
3195 $as_echo "#define ELFCORE 1" >>confdefs.h
3196
3197
3198 fi
3199
3200
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3202 $as_echo_n "checking for file formats in man section 5... " >&6; }
3203 # Check whether --enable-fsect-man5 was given.
3204 if test "${enable_fsect_man5+set}" = set; then :
3205 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3208 fsect=5
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fsect=4
3213 fi
3214 else
3215
3216 # disable by default
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fsect=4
3220
3221 fi
3222
3223
3224 # Make sure we can run config.sub.
3225 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3226 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3227
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3229 $as_echo_n "checking build system type... " >&6; }
3230 if ${ac_cv_build+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 ac_build_alias=$build_alias
3234 test "x$ac_build_alias" = x &&
3235 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3236 test "x$ac_build_alias" = x &&
3237 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3238 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3239 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3240
3241 fi
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3243 $as_echo "$ac_cv_build" >&6; }
3244 case $ac_cv_build in
3245 *-*-*) ;;
3246 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3247 esac
3248 build=$ac_cv_build
3249 ac_save_IFS=$IFS; IFS='-'
3250 set x $ac_cv_build
3251 shift
3252 build_cpu=$1
3253 build_vendor=$2
3254 shift; shift
3255 # Remember, the first character of IFS is used to create $*,
3256 # except with old shells:
3257 build_os=$*
3258 IFS=$ac_save_IFS
3259 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3260
3261
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3263 $as_echo_n "checking host system type... " >&6; }
3264 if ${ac_cv_host+:} false; then :
3265 $as_echo_n "(cached) " >&6
3266 else
3267 if test "x$host_alias" = x; then
3268 ac_cv_host=$ac_cv_build
3269 else
3270 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3271 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3272 fi
3273
3274 fi
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3276 $as_echo "$ac_cv_host" >&6; }
3277 case $ac_cv_host in
3278 *-*-*) ;;
3279 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3280 esac
3281 host=$ac_cv_host
3282 ac_save_IFS=$IFS; IFS='-'
3283 set x $ac_cv_host
3284 shift
3285 host_cpu=$1
3286 host_vendor=$2
3287 shift; shift
3288 # Remember, the first character of IFS is used to create $*,
3289 # except with old shells:
3290 host_os=$*
3291 IFS=$ac_save_IFS
3292 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3293
3294
3295 case "$host_os" in
3296 mingw32*)
3297 MINGW=1
3298 ;;
3299 *)
3300 MINGW=0
3301 ;;
3302 esac
3303
3304 if test "$MINGW" = 1; then
3305 MINGW_TRUE=
3306 MINGW_FALSE='#'
3307 else
3308 MINGW_TRUE='#'
3309 MINGW_FALSE=
3310 fi
3311
3312
3313 pkgdatadir='$(datadir)/misc'
3314
3315
3316 if test x$fsect = x5; then
3317 FSECT5_TRUE=
3318 FSECT5_FALSE='#'
3319 else
3320 FSECT5_TRUE='#'
3321 FSECT5_FALSE=
3322 fi
3323
3324
3325
3326
3327 DEPDIR="${am__leading_dot}deps"
3328
3329 ac_config_commands="$ac_config_commands depfiles"
3330
3331
3332 am_make=${MAKE-make}
3333 cat > confinc << 'END'
3334 am__doit:
3335 @echo this is the am__doit target
3336 .PHONY: am__doit
3337 END
3338 # If we don't find an include directive, just comment out the code.
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3340 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3341 am__include="#"
3342 am__quote=
3343 _am_result=none
3344 # First try GNU make style include.
3345 echo "include confinc" > confmf
3346 # Ignore all kinds of additional output from `make'.
3347 case `$am_make -s -f confmf 2> /dev/null` in #(
3348 *the\ am__doit\ target*)
3349 am__include=include
3350 am__quote=
3351 _am_result=GNU
3352 ;;
3353 esac
3354 # Now try BSD make style include.
3355 if test "$am__include" = "#"; then
3356 echo '.include "confinc"' > confmf
3357 case `$am_make -s -f confmf 2> /dev/null` in #(
3358 *the\ am__doit\ target*)
3359 am__include=.include
3360 am__quote="\""
3361 _am_result=BSD
3362 ;;
3363 esac
3364 fi
3365
3366
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3368 $as_echo "$_am_result" >&6; }
3369 rm -f confinc confmf
3370
3371 # Check whether --enable-dependency-tracking was given.
3372 if test "${enable_dependency_tracking+set}" = set; then :
3373 enableval=$enable_dependency_tracking;
3374 fi
3375
3376 if test "x$enable_dependency_tracking" != xno; then
3377 am_depcomp="$ac_aux_dir/depcomp"
3378 AMDEPBACKSLASH='\'
3379 fi
3380 if test "x$enable_dependency_tracking" != xno; then
3381 AMDEP_TRUE=
3382 AMDEP_FALSE='#'
3383 else
3384 AMDEP_TRUE='#'
3385 AMDEP_FALSE=
3386 fi
3387
3388
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394 if test -n "$ac_tool_prefix"; then
3395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3396 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_CC+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 CC=$ac_cv_prog_CC
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431
3432 fi
3433 if test -z "$ac_cv_prog_CC"; then
3434 ac_ct_CC=$CC
3435 # Extract the first word of "gcc", so it can be a program name with args.
3436 set dummy gcc; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test -n "$ac_ct_CC"; then
3443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_ac_ct_CC="gcc"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456 done
3457 done
3458 IFS=$as_save_IFS
3459
3460 fi
3461 fi
3462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3463 if test -n "$ac_ct_CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3465 $as_echo "$ac_ct_CC" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 fi
3470
3471 if test "x$ac_ct_CC" = x; then
3472 CC=""
3473 else
3474 case $cross_compiling:$ac_tool_warned in
3475 yes:)
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3478 ac_tool_warned=yes ;;
3479 esac
3480 CC=$ac_ct_CC
3481 fi
3482 else
3483 CC="$ac_cv_prog_CC"
3484 fi
3485
3486 if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}cc; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_CC+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_CC="${ac_tool_prefix}cc"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524
3525 fi
3526 fi
3527 if test -z "$CC"; then
3528 # Extract the first word of "cc", so it can be a program name with args.
3529 set dummy cc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_CC+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC="$CC" # Let the user override the test.
3537 else
3538 ac_prog_rejected=no
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3547 ac_prog_rejected=yes
3548 continue
3549 fi
3550 ac_cv_prog_CC="cc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554 done
3555 done
3556 IFS=$as_save_IFS
3557
3558 if test $ac_prog_rejected = yes; then
3559 # We found a bogon in the path, so make sure we never use it.
3560 set dummy $ac_cv_prog_CC
3561 shift
3562 if test $# != 0; then
3563 # We chose a different compiler from the bogus one.
3564 # However, it has the same basename, so the bogon will be chosen
3565 # first if we set CC to just the basename; use the full file name.
3566 shift
3567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3568 fi
3569 fi
3570 fi
3571 fi
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 $as_echo "$CC" >&6; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 fi
3580
3581
3582 fi
3583 if test -z "$CC"; then
3584 if test -n "$ac_tool_prefix"; then
3585 for ac_prog in cl.exe
3586 do
3587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if ${ac_cv_prog_CC+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608 done
3609 done
3610 IFS=$as_save_IFS
3611
3612 fi
3613 fi
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 fi
3622
3623
3624 test -n "$CC" && break
3625 done
3626 fi
3627 if test -z "$CC"; then
3628 ac_ct_CC=$CC
3629 for ac_prog in cl.exe
3630 do
3631 # Extract the first word of "$ac_prog", so it can be a program name with args.
3632 set dummy $ac_prog; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$ac_ct_CC"; then
3639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_ac_ct_CC="$ac_prog"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3651 fi
3652 done
3653 done
3654 IFS=$as_save_IFS
3655
3656 fi
3657 fi
3658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3659 if test -n "$ac_ct_CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3661 $as_echo "$ac_ct_CC" >&6; }
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 fi
3666
3667
3668 test -n "$ac_ct_CC" && break
3669 done
3670
3671 if test "x$ac_ct_CC" = x; then
3672 CC=""
3673 else
3674 case $cross_compiling:$ac_tool_warned in
3675 yes:)
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3678 ac_tool_warned=yes ;;
3679 esac
3680 CC=$ac_ct_CC
3681 fi
3682 fi
3683
3684 fi
3685
3686
3687 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error $? "no acceptable C compiler found in \$PATH
3690 See \`config.log' for more details" "$LINENO" 5; }
3691
3692 # Provide some information about the compiler.
3693 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3694 set X $ac_compile
3695 ac_compiler=$2
3696 for ac_option in --version -v -V -qversion; do
3697 { { ac_try="$ac_compiler $ac_option >&5"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3705 ac_status=$?
3706 if test -s conftest.err; then
3707 sed '10a\
3708 ... rest of stderr output deleted ...
3709 10q' conftest.err >conftest.er1
3710 cat conftest.er1 >&5
3711 fi
3712 rm -f conftest.er1 conftest.err
3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test $ac_status = 0; }
3715 done
3716
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719
3720 int
3721 main ()
3722 {
3723
3724 ;
3725 return 0;
3726 }
3727 _ACEOF
3728 ac_clean_files_save=$ac_clean_files
3729 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3730 # Try to create an executable without -o first, disregard a.out.
3731 # It will help us diagnose broken compilers, and finding out an intuition
3732 # of exeext.
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3734 $as_echo_n "checking whether the C compiler works... " >&6; }
3735 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3736
3737 # The possible output files:
3738 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3739
3740 ac_rmfiles=
3741 for ac_file in $ac_files
3742 do
3743 case $ac_file in
3744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3745 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3746 esac
3747 done
3748 rm -f $ac_rmfiles
3749
3750 if { { ac_try="$ac_link_default"
3751 case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link_default") 2>&5
3758 ac_status=$?
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }; then :
3761 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3762 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3763 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3764 # so that the user can short-circuit this test for compilers unknown to
3765 # Autoconf.
3766 for ac_file in $ac_files ''
3767 do
3768 test -f "$ac_file" || continue
3769 case $ac_file in
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3771 ;;
3772 [ab].out )
3773 # We found the default executable, but exeext='' is most
3774 # certainly right.
3775 break;;
3776 *.* )
3777 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3778 then :; else
3779 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3780 fi
3781 # We set ac_cv_exeext here because the later test for it is not
3782 # safe: cross compilers may not add the suffix if given an `-o'
3783 # argument, so we may need to know it at that point already.
3784 # Even if this section looks crufty: it has the advantage of
3785 # actually working.
3786 break;;
3787 * )
3788 break;;
3789 esac
3790 done
3791 test "$ac_cv_exeext" = no && ac_cv_exeext=
3792
3793 else
3794 ac_file=''
3795 fi
3796 if test -z "$ac_file"; then :
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 $as_echo "no" >&6; }
3799 $as_echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804 as_fn_error 77 "C compiler cannot create executables
3805 See \`config.log' for more details" "$LINENO" 5; }
3806 else
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3808 $as_echo "yes" >&6; }
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3811 $as_echo_n "checking for C compiler default output file name... " >&6; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3813 $as_echo "$ac_file" >&6; }
3814 ac_exeext=$ac_cv_exeext
3815
3816 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3817 ac_clean_files=$ac_clean_files_save
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3819 $as_echo_n "checking for suffix of executables... " >&6; }
3820 if { { ac_try="$ac_link"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_link") 2>&5
3828 ac_status=$?
3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }; then :
3831 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3832 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3833 # work properly (i.e., refer to `conftest.exe'), while it won't with
3834 # `rm'.
3835 for ac_file in conftest.exe conftest conftest.*; do
3836 test -f "$ac_file" || continue
3837 case $ac_file in
3838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3839 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3840 break;;
3841 * ) break;;
3842 esac
3843 done
3844 else
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3848 See \`config.log' for more details" "$LINENO" 5; }
3849 fi
3850 rm -f conftest conftest$ac_cv_exeext
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3852 $as_echo "$ac_cv_exeext" >&6; }
3853
3854 rm -f conftest.$ac_ext
3855 EXEEXT=$ac_cv_exeext
3856 ac_exeext=$EXEEXT
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #include <stdio.h>
3860 int
3861 main ()
3862 {
3863 FILE *f = fopen ("conftest.out", "w");
3864 return ferror (f) || fclose (f) != 0;
3865
3866 ;
3867 return 0;
3868 }
3869 _ACEOF
3870 ac_clean_files="$ac_clean_files conftest.out"
3871 # Check that the compiler produces executables we can run. If not, either
3872 # the compiler is broken, or we cross compile.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3874 $as_echo_n "checking whether we are cross compiling... " >&6; }
3875 if test "$cross_compiling" != yes; then
3876 { { ac_try="$ac_link"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_link") 2>&5
3884 ac_status=$?
3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886 test $ac_status = 0; }
3887 if { ac_try='./conftest$ac_cv_exeext'
3888 { { case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894 (eval "$ac_try") 2>&5
3895 ac_status=$?
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }; }; then
3898 cross_compiling=no
3899 else
3900 if test "$cross_compiling" = maybe; then
3901 cross_compiling=yes
3902 else
3903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 as_fn_error $? "cannot run C compiled programs.
3906 If you meant to cross compile, use \`--host'.
3907 See \`config.log' for more details" "$LINENO" 5; }
3908 fi
3909 fi
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3912 $as_echo "$cross_compiling" >&6; }
3913
3914 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3915 ac_clean_files=$ac_clean_files_save
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3917 $as_echo_n "checking for suffix of object files... " >&6; }
3918 if ${ac_cv_objext+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923
3924 int
3925 main ()
3926 {
3927
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.o conftest.obj
3933 if { { ac_try="$ac_compile"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_compile") 2>&5
3941 ac_status=$?
3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }; then :
3944 for ac_file in conftest.o conftest.obj conftest.*; do
3945 test -f "$ac_file" || continue;
3946 case $ac_file in
3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3949 break;;
3950 esac
3951 done
3952 else
3953 $as_echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958 as_fn_error $? "cannot compute suffix of object files: cannot compile
3959 See \`config.log' for more details" "$LINENO" 5; }
3960 fi
3961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3964 $as_echo "$ac_cv_objext" >&6; }
3965 OBJEXT=$ac_cv_objext
3966 ac_objext=$OBJEXT
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3968 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3969 if ${ac_cv_c_compiler_gnu+:} false; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974
3975 int
3976 main ()
3977 {
3978 #ifndef __GNUC__
3979 choke me
3980 #endif
3981
3982 ;
3983 return 0;
3984 }
3985 _ACEOF
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_compiler_gnu=yes
3988 else
3989 ac_compiler_gnu=no
3990 fi
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3993
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3996 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3997 if test $ac_compiler_gnu = yes; then
3998 GCC=yes
3999 else
4000 GCC=
4001 fi
4002 ac_test_CFLAGS=${CFLAGS+set}
4003 ac_save_CFLAGS=$CFLAGS
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4005 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4006 if ${ac_cv_prog_cc_g+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 ac_save_c_werror_flag=$ac_c_werror_flag
4010 ac_c_werror_flag=yes
4011 ac_cv_prog_cc_g=no
4012 CFLAGS="-g"
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015
4016 int
4017 main ()
4018 {
4019
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_cv_prog_cc_g=yes
4026 else
4027 CFLAGS=""
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030
4031 int
4032 main ()
4033 {
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040
4041 else
4042 ac_c_werror_flag=$ac_save_c_werror_flag
4043 CFLAGS="-g"
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046
4047 int
4048 main ()
4049 {
4050
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_cv_prog_cc_g=yes
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_c_werror_flag=$ac_save_c_werror_flag
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4066 $as_echo "$ac_cv_prog_cc_g" >&6; }
4067 if test "$ac_test_CFLAGS" = set; then
4068 CFLAGS=$ac_save_CFLAGS
4069 elif test $ac_cv_prog_cc_g = yes; then
4070 if test "$GCC" = yes; then
4071 CFLAGS="-g -O2"
4072 else
4073 CFLAGS="-g"
4074 fi
4075 else
4076 if test "$GCC" = yes; then
4077 CFLAGS="-O2"
4078 else
4079 CFLAGS=
4080 fi
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4083 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4084 if ${ac_cv_prog_cc_c89+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 ac_cv_prog_cc_c89=no
4088 ac_save_CC=$CC
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091 #include <stdarg.h>
4092 #include <stdio.h>
4093 #include <sys/types.h>
4094 #include <sys/stat.h>
4095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4096 struct buf { int x; };
4097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098 static char *e (p, i)
4099 char **p;
4100 int i;
4101 {
4102 return p[i];
4103 }
4104 static char *f (char * (*g) (char **, int), char **p, ...)
4105 {
4106 char *s;
4107 va_list v;
4108 va_start (v,p);
4109 s = g (p, va_arg (v,int));
4110 va_end (v);
4111 return s;
4112 }
4113
4114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4115 function prototypes and stuff, but not '\xHH' hex character constants.
4116 These don't provoke an error unfortunately, instead are silently treated
4117 as 'x'. The following induces an error, until -std is added to get
4118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4119 array size at least. It's necessary to write '\x00'==0 to get something
4120 that's true only with -std. */
4121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4122
4123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4124 inside strings and character constants. */
4125 #define FOO(x) 'x'
4126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4127
4128 int test (int i, double x);
4129 struct s1 {int (*f) (int a);};
4130 struct s2 {int (*f) (double a);};
4131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132 int argc;
4133 char **argv;
4134 int
4135 main ()
4136 {
4137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4138 ;
4139 return 0;
4140 }
4141 _ACEOF
4142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144 do
4145 CC="$ac_save_CC $ac_arg"
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_prog_cc_c89=$ac_arg
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext
4150 test "x$ac_cv_prog_cc_c89" != "xno" && break
4151 done
4152 rm -f conftest.$ac_ext
4153 CC=$ac_save_CC
4154
4155 fi
4156 # AC_CACHE_VAL
4157 case "x$ac_cv_prog_cc_c89" in
4158 x)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160 $as_echo "none needed" >&6; } ;;
4161 xno)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163 $as_echo "unsupported" >&6; } ;;
4164 *)
4165 CC="$CC $ac_cv_prog_cc_c89"
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4167 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4168 esac
4169 if test "x$ac_cv_prog_cc_c89" != xno; then :
4170
4171 fi
4172
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179 depcc="$CC" am_compiler_list=
4180
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4182 $as_echo_n "checking dependency style of $depcc... " >&6; }
4183 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4187 # We make a subdir and do the tests there. Otherwise we can end up
4188 # making bogus files that we don't know about and never remove. For
4189 # instance it was reported that on HP-UX the gcc test will end up
4190 # making a dummy file named `D' -- because `-MD' means `put the output
4191 # in D'.
4192 mkdir conftest.dir
4193 # Copy depcomp to subdir because otherwise we won't find it if we're
4194 # using a relative directory.
4195 cp "$am_depcomp" conftest.dir
4196 cd conftest.dir
4197 # We will build objects and dependencies in a subdirectory because
4198 # it helps to detect inapplicable dependency modes. For instance
4199 # both Tru64's cc and ICC support -MD to output dependencies as a
4200 # side effect of compilation, but ICC will put the dependencies in
4201 # the current directory while Tru64 will put them in the object
4202 # directory.
4203 mkdir sub
4204
4205 am_cv_CC_dependencies_compiler_type=none
4206 if test "$am_compiler_list" = ""; then
4207 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4208 fi
4209 am__universal=false
4210 case " $depcc " in #(
4211 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4212 esac
4213
4214 for depmode in $am_compiler_list; do
4215 # Setup a source with many dependencies, because some compilers
4216 # like to wrap large dependency lists on column 80 (with \), and
4217 # we should not choose a depcomp mode which is confused by this.
4218 #
4219 # We need to recreate these files for each test, as the compiler may
4220 # overwrite some of them when testing with obscure command lines.
4221 # This happens at least with the AIX C compiler.
4222 : > sub/conftest.c
4223 for i in 1 2 3 4 5 6; do
4224 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4225 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4226 # Solaris 8's {/usr,}/bin/sh.
4227 touch sub/conftst$i.h
4228 done
4229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4230
4231 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4232 # mode. It turns out that the SunPro C++ compiler does not properly
4233 # handle `-M -o', and we need to detect this. Also, some Intel
4234 # versions had trouble with output in subdirs
4235 am__obj=sub/conftest.${OBJEXT-o}
4236 am__minus_obj="-o $am__obj"
4237 case $depmode in
4238 gcc)
4239 # This depmode causes a compiler race in universal mode.
4240 test "$am__universal" = false || continue
4241 ;;
4242 nosideeffect)
4243 # after this tag, mechanisms are not by side-effect, so they'll
4244 # only be used when explicitly requested
4245 if test "x$enable_dependency_tracking" = xyes; then
4246 continue
4247 else
4248 break
4249 fi
4250 ;;
4251 msvisualcpp | msvcmsys)
4252 # This compiler won't grok `-c -o', but also, the minuso test has
4253 # not run yet. These depmodes are late enough in the game, and
4254 # so weak that their functioning should not be impacted.
4255 am__obj=conftest.${OBJEXT-o}
4256 am__minus_obj=
4257 ;;
4258 none) break ;;
4259 esac
4260 if depmode=$depmode \
4261 source=sub/conftest.c object=$am__obj \
4262 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4263 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4264 >/dev/null 2>conftest.err &&
4265 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4266 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4267 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4268 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4269 # icc doesn't choke on unknown options, it will just issue warnings
4270 # or remarks (even with -Werror). So we grep stderr for any message
4271 # that says an option was ignored or not supported.
4272 # When given -MP, icc 7.0 and 7.1 complain thusly:
4273 # icc: Command line warning: ignoring option '-M'; no argument required
4274 # The diagnosis changed in icc 8.0:
4275 # icc: Command line remark: option '-MP' not supported
4276 if (grep 'ignoring option' conftest.err ||
4277 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4278 am_cv_CC_dependencies_compiler_type=$depmode
4279 break
4280 fi
4281 fi
4282 done
4283
4284 cd ..
4285 rm -rf conftest.dir
4286 else
4287 am_cv_CC_dependencies_compiler_type=none
4288 fi
4289
4290 fi
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4292 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4293 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4294
4295 if
4296 test "x$enable_dependency_tracking" != xno \
4297 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4298 am__fastdepCC_TRUE=
4299 am__fastdepCC_FALSE='#'
4300 else
4301 am__fastdepCC_TRUE='#'
4302 am__fastdepCC_FALSE=
4303 fi
4304
4305
4306 case $ac_cv_prog_cc_stdc in #(
4307 no) :
4308 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4309 *) :
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4311 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4312 if ${ac_cv_prog_cc_c99+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 ac_cv_prog_cc_c99=no
4316 ac_save_CC=$CC
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 #include <stdarg.h>
4320 #include <stdbool.h>
4321 #include <stdlib.h>
4322 #include <wchar.h>
4323 #include <stdio.h>
4324
4325 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4326 #define debug(...) fprintf (stderr, __VA_ARGS__)
4327 #define showlist(...) puts (#__VA_ARGS__)
4328 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4329 static void
4330 test_varargs_macros (void)
4331 {
4332 int x = 1234;
4333 int y = 5678;
4334 debug ("Flag");
4335 debug ("X = %d\n", x);
4336 showlist (The first, second, and third items.);
4337 report (x>y, "x is %d but y is %d", x, y);
4338 }
4339
4340 // Check long long types.
4341 #define BIG64 18446744073709551615ull
4342 #define BIG32 4294967295ul
4343 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4344 #if !BIG_OK
4345 your preprocessor is broken;
4346 #endif
4347 #if BIG_OK
4348 #else
4349 your preprocessor is broken;
4350 #endif
4351 static long long int bignum = -9223372036854775807LL;
4352 static unsigned long long int ubignum = BIG64;
4353
4354 struct incomplete_array
4355 {
4356 int datasize;
4357 double data[];
4358 };
4359
4360 struct named_init {
4361 int number;
4362 const wchar_t *name;
4363 double average;
4364 };
4365
4366 typedef const char *ccp;
4367
4368 static inline int
4369 test_restrict (ccp restrict text)
4370 {
4371 // See if C++-style comments work.
4372 // Iterate through items via the restricted pointer.
4373 // Also check for declarations in for loops.
4374 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4375 continue;
4376 return 0;
4377 }
4378
4379 // Check varargs and va_copy.
4380 static void
4381 test_varargs (const char *format, ...)
4382 {
4383 va_list args;
4384 va_start (args, format);
4385 va_list args_copy;
4386 va_copy (args_copy, args);
4387
4388 const char *str;
4389 int number;
4390 float fnumber;
4391
4392 while (*format)
4393 {
4394 switch (*format++)
4395 {
4396 case 's': // string
4397 str = va_arg (args_copy, const char *);
4398 break;
4399 case 'd': // int
4400 number = va_arg (args_copy, int);
4401 break;
4402 case 'f': // float
4403 fnumber = va_arg (args_copy, double);
4404 break;
4405 default:
4406 break;
4407 }
4408 }
4409 va_end (args_copy);
4410 va_end (args);
4411 }
4412
4413 int
4414 main ()
4415 {
4416
4417 // Check bool.
4418 _Bool success = false;
4419
4420 // Check restrict.
4421 if (test_restrict ("String literal") == 0)
4422 success = true;
4423 char *restrict newvar = "Another string";
4424
4425 // Check varargs.
4426 test_varargs ("s, d' f .", "string", 65, 34.234);
4427 test_varargs_macros ();
4428
4429 // Check flexible array members.
4430 struct incomplete_array *ia =
4431 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4432 ia->datasize = 10;
4433 for (int i = 0; i < ia->datasize; ++i)
4434 ia->data[i] = i * 1.234;
4435
4436 // Check named initializers.
4437 struct named_init ni = {
4438 .number = 34,
4439 .name = L"Test wide string",
4440 .average = 543.34343,
4441 };
4442
4443 ni.number = 58;
4444
4445 int dynamic_array[ni.number];
4446 dynamic_array[ni.number - 1] = 543;
4447
4448 // work around unused variable warnings
4449 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4450 || dynamic_array[ni.number - 1] != 543);
4451
4452 ;
4453 return 0;
4454 }
4455 _ACEOF
4456 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4457 do
4458 CC="$ac_save_CC $ac_arg"
4459 if ac_fn_c_try_compile "$LINENO"; then :
4460 ac_cv_prog_cc_c99=$ac_arg
4461 fi
4462 rm -f core conftest.err conftest.$ac_objext
4463 test "x$ac_cv_prog_cc_c99" != "xno" && break
4464 done
4465 rm -f conftest.$ac_ext
4466 CC=$ac_save_CC
4467
4468 fi
4469 # AC_CACHE_VAL
4470 case "x$ac_cv_prog_cc_c99" in
4471 x)
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4473 $as_echo "none needed" >&6; } ;;
4474 xno)
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4476 $as_echo "unsupported" >&6; } ;;
4477 *)
4478 CC="$CC $ac_cv_prog_cc_c99"
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4480 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4481 esac
4482 if test "x$ac_cv_prog_cc_c99" != xno; then :
4483 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4484 else
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4486 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4487 if ${ac_cv_prog_cc_c89+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 ac_cv_prog_cc_c89=no
4491 ac_save_CC=$CC
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 #include <stdarg.h>
4495 #include <stdio.h>
4496 #include <sys/types.h>
4497 #include <sys/stat.h>
4498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4499 struct buf { int x; };
4500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4501 static char *e (p, i)
4502 char **p;
4503 int i;
4504 {
4505 return p[i];
4506 }
4507 static char *f (char * (*g) (char **, int), char **p, ...)
4508 {
4509 char *s;
4510 va_list v;
4511 va_start (v,p);
4512 s = g (p, va_arg (v,int));
4513 va_end (v);
4514 return s;
4515 }
4516
4517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4518 function prototypes and stuff, but not '\xHH' hex character constants.
4519 These don't provoke an error unfortunately, instead are silently treated
4520 as 'x'. The following induces an error, until -std is added to get
4521 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4522 array size at least. It's necessary to write '\x00'==0 to get something
4523 that's true only with -std. */
4524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4525
4526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4527 inside strings and character constants. */
4528 #define FOO(x) 'x'
4529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4530
4531 int test (int i, double x);
4532 struct s1 {int (*f) (int a);};
4533 struct s2 {int (*f) (double a);};
4534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4535 int argc;
4536 char **argv;
4537 int
4538 main ()
4539 {
4540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4546 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4547 do
4548 CC="$ac_save_CC $ac_arg"
4549 if ac_fn_c_try_compile "$LINENO"; then :
4550 ac_cv_prog_cc_c89=$ac_arg
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext
4553 test "x$ac_cv_prog_cc_c89" != "xno" && break
4554 done
4555 rm -f conftest.$ac_ext
4556 CC=$ac_save_CC
4557
4558 fi
4559 # AC_CACHE_VAL
4560 case "x$ac_cv_prog_cc_c89" in
4561 x)
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4563 $as_echo "none needed" >&6; } ;;
4564 xno)
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4566 $as_echo "unsupported" >&6; } ;;
4567 *)
4568 CC="$CC $ac_cv_prog_cc_c89"
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4570 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4571 esac
4572 if test "x$ac_cv_prog_cc_c89" != xno; then :
4573 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4574 else
4575 ac_cv_prog_cc_stdc=no
4576 fi
4577
4578 fi
4579 ;;
4580 esac
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4582 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4583 if ${ac_cv_prog_cc_stdc+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585 fi
4586
4587 case $ac_cv_prog_cc_stdc in #(
4588 no) :
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4590 $as_echo "unsupported" >&6; } ;; #(
4591 '') :
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4593 $as_echo "none needed" >&6; } ;; #(
4594 *) :
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4596 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4597 esac
4598
4599
4600 ac_ext=c
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4606 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4607 # On Suns, sometimes $CPP names a directory.
4608 if test -n "$CPP" && test -d "$CPP"; then
4609 CPP=
4610 fi
4611 if test -z "$CPP"; then
4612 if ${ac_cv_prog_CPP+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 # Double quotes because CPP needs to be expanded
4616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4617 do
4618 ac_preproc_ok=false
4619 for ac_c_preproc_warn_flag in '' yes
4620 do
4621 # Use a header file that comes with gcc, so configuring glibc
4622 # with a fresh cross-compiler works.
4623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4624 # <limits.h> exists even on freestanding compilers.
4625 # On the NeXT, cc -E runs the code through the compiler's parser,
4626 # not just through cpp. "Syntax error" is here to catch this case.
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #ifdef __STDC__
4630 # include <limits.h>
4631 #else
4632 # include <assert.h>
4633 #endif
4634 Syntax error
4635 _ACEOF
4636 if ac_fn_c_try_cpp "$LINENO"; then :
4637
4638 else
4639 # Broken: fails on valid input.
4640 continue
4641 fi
4642 rm -f conftest.err conftest.i conftest.$ac_ext
4643
4644 # OK, works on sane cases. Now check whether nonexistent headers
4645 # can be detected and how.
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 #include <ac_nonexistent.h>
4649 _ACEOF
4650 if ac_fn_c_try_cpp "$LINENO"; then :
4651 # Broken: success on invalid input.
4652 continue
4653 else
4654 # Passes both tests.
4655 ac_preproc_ok=:
4656 break
4657 fi
4658 rm -f conftest.err conftest.i conftest.$ac_ext
4659
4660 done
4661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4662 rm -f conftest.i conftest.err conftest.$ac_ext
4663 if $ac_preproc_ok; then :
4664 break
4665 fi
4666
4667 done
4668 ac_cv_prog_CPP=$CPP
4669
4670 fi
4671 CPP=$ac_cv_prog_CPP
4672 else
4673 ac_cv_prog_CPP=$CPP
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4676 $as_echo "$CPP" >&6; }
4677 ac_preproc_ok=false
4678 for ac_c_preproc_warn_flag in '' yes
4679 do
4680 # Use a header file that comes with gcc, so configuring glibc
4681 # with a fresh cross-compiler works.
4682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4683 # <limits.h> exists even on freestanding compilers.
4684 # On the NeXT, cc -E runs the code through the compiler's parser,
4685 # not just through cpp. "Syntax error" is here to catch this case.
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 #ifdef __STDC__
4689 # include <limits.h>
4690 #else
4691 # include <assert.h>
4692 #endif
4693 Syntax error
4694 _ACEOF
4695 if ac_fn_c_try_cpp "$LINENO"; then :
4696
4697 else
4698 # Broken: fails on valid input.
4699 continue
4700 fi
4701 rm -f conftest.err conftest.i conftest.$ac_ext
4702
4703 # OK, works on sane cases. Now check whether nonexistent headers
4704 # can be detected and how.
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 #include <ac_nonexistent.h>
4708 _ACEOF
4709 if ac_fn_c_try_cpp "$LINENO"; then :
4710 # Broken: success on invalid input.
4711 continue
4712 else
4713 # Passes both tests.
4714 ac_preproc_ok=:
4715 break
4716 fi
4717 rm -f conftest.err conftest.i conftest.$ac_ext
4718
4719 done
4720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4721 rm -f conftest.i conftest.err conftest.$ac_ext
4722 if $ac_preproc_ok; then :
4723
4724 else
4725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4727 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4728 See \`config.log' for more details" "$LINENO" 5; }
4729 fi
4730
4731 ac_ext=c
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736
4737
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4739 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4740 if ${ac_cv_path_GREP+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -z "$GREP"; then
4744 ac_path_GREP_found=false
4745 # Loop through the user's path and test for each of PROGNAME-LIST
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_prog in grep ggrep; do
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4754 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4755 # Check for GNU ac_path_GREP and select it if it is found.
4756 # Check for GNU $ac_path_GREP
4757 case `"$ac_path_GREP" --version 2>&1` in
4758 *GNU*)
4759 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4760 *)
4761 ac_count=0
4762 $as_echo_n 0123456789 >"conftest.in"
4763 while :
4764 do
4765 cat "conftest.in" "conftest.in" >"conftest.tmp"
4766 mv "conftest.tmp" "conftest.in"
4767 cp "conftest.in" "conftest.nl"
4768 $as_echo 'GREP' >> "conftest.nl"
4769 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771 as_fn_arith $ac_count + 1 && ac_count=$as_val
4772 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4773 # Best one so far, save it but keep looking for a better one
4774 ac_cv_path_GREP="$ac_path_GREP"
4775 ac_path_GREP_max=$ac_count
4776 fi
4777 # 10*(2^10) chars as input seems more than enough
4778 test $ac_count -gt 10 && break
4779 done
4780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781 esac
4782
4783 $ac_path_GREP_found && break 3
4784 done
4785 done
4786 done
4787 IFS=$as_save_IFS
4788 if test -z "$ac_cv_path_GREP"; then
4789 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4790 fi
4791 else
4792 ac_cv_path_GREP=$GREP
4793 fi
4794
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4797 $as_echo "$ac_cv_path_GREP" >&6; }
4798 GREP="$ac_cv_path_GREP"
4799
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4802 $as_echo_n "checking for egrep... " >&6; }
4803 if ${ac_cv_path_EGREP+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4807 then ac_cv_path_EGREP="$GREP -E"
4808 else
4809 if test -z "$EGREP"; then
4810 ac_path_EGREP_found=false
4811 # Loop through the user's path and test for each of PROGNAME-LIST
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4814 do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_prog in egrep; do
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4820 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4821 # Check for GNU ac_path_EGREP and select it if it is found.
4822 # Check for GNU $ac_path_EGREP
4823 case `"$ac_path_EGREP" --version 2>&1` in
4824 *GNU*)
4825 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4826 *)
4827 ac_count=0
4828 $as_echo_n 0123456789 >"conftest.in"
4829 while :
4830 do
4831 cat "conftest.in" "conftest.in" >"conftest.tmp"
4832 mv "conftest.tmp" "conftest.in"
4833 cp "conftest.in" "conftest.nl"
4834 $as_echo 'EGREP' >> "conftest.nl"
4835 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4837 as_fn_arith $ac_count + 1 && ac_count=$as_val
4838 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4839 # Best one so far, save it but keep looking for a better one
4840 ac_cv_path_EGREP="$ac_path_EGREP"
4841 ac_path_EGREP_max=$ac_count
4842 fi
4843 # 10*(2^10) chars as input seems more than enough
4844 test $ac_count -gt 10 && break
4845 done
4846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4847 esac
4848
4849 $ac_path_EGREP_found && break 3
4850 done
4851 done
4852 done
4853 IFS=$as_save_IFS
4854 if test -z "$ac_cv_path_EGREP"; then
4855 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4856 fi
4857 else
4858 ac_cv_path_EGREP=$EGREP
4859 fi
4860
4861 fi
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4864 $as_echo "$ac_cv_path_EGREP" >&6; }
4865 EGREP="$ac_cv_path_EGREP"
4866
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4869 $as_echo_n "checking for ANSI C header files... " >&6; }
4870 if ${ac_cv_header_stdc+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 #include <stdlib.h>
4876 #include <stdarg.h>
4877 #include <string.h>
4878 #include <float.h>
4879
4880 int
4881 main ()
4882 {
4883
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_header_stdc=yes
4890 else
4891 ac_cv_header_stdc=no
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894
4895 if test $ac_cv_header_stdc = yes; then
4896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #include <string.h>
4900
4901 _ACEOF
4902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4903 $EGREP "memchr" >/dev/null 2>&1; then :
4904
4905 else
4906 ac_cv_header_stdc=no
4907 fi
4908 rm -f conftest*
4909
4910 fi
4911
4912 if test $ac_cv_header_stdc = yes; then
4913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 #include <stdlib.h>
4917
4918 _ACEOF
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920 $EGREP "free" >/dev/null 2>&1; then :
4921
4922 else
4923 ac_cv_header_stdc=no
4924 fi
4925 rm -f conftest*
4926
4927 fi
4928
4929 if test $ac_cv_header_stdc = yes; then
4930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4931 if test "$cross_compiling" = yes; then :
4932 :
4933 else
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4936 #include <ctype.h>
4937 #include <stdlib.h>
4938 #if ((' ' & 0x0FF) == 0x020)
4939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4941 #else
4942 # define ISLOWER(c) \
4943 (('a' <= (c) && (c) <= 'i') \
4944 || ('j' <= (c) && (c) <= 'r') \
4945 || ('s' <= (c) && (c) <= 'z'))
4946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4947 #endif
4948
4949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4950 int
4951 main ()
4952 {
4953 int i;
4954 for (i = 0; i < 256; i++)
4955 if (XOR (islower (i), ISLOWER (i))
4956 || toupper (i) != TOUPPER (i))
4957 return 2;
4958 return 0;
4959 }
4960 _ACEOF
4961 if ac_fn_c_try_run "$LINENO"; then :
4962
4963 else
4964 ac_cv_header_stdc=no
4965 fi
4966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4967 conftest.$ac_objext conftest.beam conftest.$ac_ext
4968 fi
4969
4970 fi
4971 fi
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4973 $as_echo "$ac_cv_header_stdc" >&6; }
4974 if test $ac_cv_header_stdc = yes; then
4975
4976 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4977
4978 fi
4979
4980 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4981 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4982 inttypes.h stdint.h unistd.h
4983 do :
4984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4985 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4986 "
4987 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4988 cat >>confdefs.h <<_ACEOF
4989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4990 _ACEOF
4991
4992 fi
4993
4994 done
4995
4996
4997
4998 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4999 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5000 MINIX=yes
5001 else
5002 MINIX=
5003 fi
5004
5005
5006 if test "$MINIX" = yes; then
5007
5008 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5009
5010
5011 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5012
5013
5014 $as_echo "#define _MINIX 1" >>confdefs.h
5015
5016 fi
5017
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5020 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5021 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5026
5027 # define __EXTENSIONS__ 1
5028 $ac_includes_default
5029 int
5030 main ()
5031 {
5032
5033 ;
5034 return 0;
5035 }
5036 _ACEOF
5037 if ac_fn_c_try_compile "$LINENO"; then :
5038 ac_cv_safe_to_define___extensions__=yes
5039 else
5040 ac_cv_safe_to_define___extensions__=no
5041 fi
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5045 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5046 test $ac_cv_safe_to_define___extensions__ = yes &&
5047 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5048
5049 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5050
5051 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5052
5053 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5054
5055 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5056
5057
5058 if test "x$CC" != xcc; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5060 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5061 else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5063 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5064 fi
5065 set dummy $CC; ac_cc=`$as_echo "$2" |
5066 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5067 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072
5073 int
5074 main ()
5075 {
5076
5077 ;
5078 return 0;
5079 }
5080 _ACEOF
5081 # Make sure it works both with $CC and with simple cc.
5082 # We do the test twice because some compilers refuse to overwrite an
5083 # existing .o file with -o, though they will create one.
5084 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5085 rm -f conftest2.*
5086 if { { case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5091 $as_echo "$ac_try_echo"; } >&5
5092 (eval "$ac_try") 2>&5
5093 ac_status=$?
5094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5095 test $ac_status = 0; } &&
5096 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099 esac
5100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5101 $as_echo "$ac_try_echo"; } >&5
5102 (eval "$ac_try") 2>&5
5103 ac_status=$?
5104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; };
5106 then
5107 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5108 if test "x$CC" != xcc; then
5109 # Test first that cc exists at all.
5110 if { ac_try='cc -c conftest.$ac_ext >&5'
5111 { { case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5116 $as_echo "$ac_try_echo"; } >&5
5117 (eval "$ac_try") 2>&5
5118 ac_status=$?
5119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120 test $ac_status = 0; }; }; then
5121 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5122 rm -f conftest2.*
5123 if { { case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126 esac
5127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5128 $as_echo "$ac_try_echo"; } >&5
5129 (eval "$ac_try") 2>&5
5130 ac_status=$?
5131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5132 test $ac_status = 0; } &&
5133 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136 esac
5137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5138 $as_echo "$ac_try_echo"; } >&5
5139 (eval "$ac_try") 2>&5
5140 ac_status=$?
5141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5142 test $ac_status = 0; };
5143 then
5144 # cc works too.
5145 :
5146 else
5147 # cc exists but doesn't like -o.
5148 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5149 fi
5150 fi
5151 fi
5152 else
5153 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5154 fi
5155 rm -f core conftest*
5156
5157 fi
5158 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5160 $as_echo "yes" >&6; }
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5164
5165 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5166
5167 fi
5168
5169 # FIXME: we rely on the cache variable name because
5170 # there is no other way.
5171 set dummy $CC
5172 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5173 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5174 if test "$am_t" != yes; then
5175 # Losing compiler, so override with the script.
5176 # FIXME: It is wrong to rewrite CC.
5177 # But if we don't then we get into trouble of one sort or another.
5178 # A longer-term fix would be to have automake use am__CC in this case,
5179 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5180 CC="$am_aux_dir/compile $CC"
5181 fi
5182
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5185 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5186 if ${ac_cv_c_bigendian+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 ac_cv_c_bigendian=unknown
5190 # See if we're dealing with a universal compiler.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #ifndef __APPLE_CC__
5194 not a universal capable compiler
5195 #endif
5196 typedef int dummy;
5197
5198 _ACEOF
5199 if ac_fn_c_try_compile "$LINENO"; then :
5200
5201 # Check for potential -arch flags. It is not universal unless
5202 # there are at least two -arch flags with different values.
5203 ac_arch=
5204 ac_prev=
5205 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5206 if test -n "$ac_prev"; then
5207 case $ac_word in
5208 i?86 | x86_64 | ppc | ppc64)
5209 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5210 ac_arch=$ac_word
5211 else
5212 ac_cv_c_bigendian=universal
5213 break
5214 fi
5215 ;;
5216 esac
5217 ac_prev=
5218 elif test "x$ac_word" = "x-arch"; then
5219 ac_prev=arch
5220 fi
5221 done
5222 fi
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 if test $ac_cv_c_bigendian = unknown; then
5225 # See if sys/param.h defines the BYTE_ORDER macro.
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 #include <sys/types.h>
5229 #include <sys/param.h>
5230
5231 int
5232 main ()
5233 {
5234 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5235 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5236 && LITTLE_ENDIAN)
5237 bogus endian macros
5238 #endif
5239
5240 ;
5241 return 0;
5242 }
5243 _ACEOF
5244 if ac_fn_c_try_compile "$LINENO"; then :
5245 # It does; now see whether it defined to BIG_ENDIAN or not.
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 #include <sys/types.h>
5249 #include <sys/param.h>
5250
5251 int
5252 main ()
5253 {
5254 #if BYTE_ORDER != BIG_ENDIAN
5255 not big endian
5256 #endif
5257
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 ac_cv_c_bigendian=yes
5264 else
5265 ac_cv_c_bigendian=no
5266 fi
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 fi
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 fi
5271 if test $ac_cv_c_bigendian = unknown; then
5272 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 #include <limits.h>
5276
5277 int
5278 main ()
5279 {
5280 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5281 bogus endian macros
5282 #endif
5283
5284 ;
5285 return 0;
5286 }
5287 _ACEOF
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289 # It does; now see whether it defined to _BIG_ENDIAN or not.
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 #include <limits.h>
5293
5294 int
5295 main ()
5296 {
5297 #ifndef _BIG_ENDIAN
5298 not big endian
5299 #endif
5300
5301 ;
5302 return 0;
5303 }
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 ac_cv_c_bigendian=yes
5307 else
5308 ac_cv_c_bigendian=no
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 fi
5314 if test $ac_cv_c_bigendian = unknown; then
5315 # Compile a test program.
5316 if test "$cross_compiling" = yes; then :
5317 # Try to guess by grepping values from an object file.
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320 short int ascii_mm[] =
5321 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5322 short int ascii_ii[] =
5323 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5324 int use_ascii (int i) {
5325 return ascii_mm[i] + ascii_ii[i];
5326 }
5327 short int ebcdic_ii[] =
5328 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5329 short int ebcdic_mm[] =
5330 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5331 int use_ebcdic (int i) {
5332 return ebcdic_mm[i] + ebcdic_ii[i];
5333 }
5334 extern int foo;
5335
5336 int
5337 main ()
5338 {
5339 return use_ascii (foo) == use_ebcdic (foo);
5340 ;
5341 return 0;
5342 }
5343 _ACEOF
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5346 ac_cv_c_bigendian=yes
5347 fi
5348 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5349 if test "$ac_cv_c_bigendian" = unknown; then
5350 ac_cv_c_bigendian=no
5351 else
5352 # finding both strings is unlikely to happen, but who knows?
5353 ac_cv_c_bigendian=unknown
5354 fi
5355 fi
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 else
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 $ac_includes_default
5362 int
5363 main ()
5364 {
5365
5366 /* Are we little or big endian? From Harbison&Steele. */
5367 union
5368 {
5369 long int l;
5370 char c[sizeof (long int)];
5371 } u;
5372 u.l = 1;
5373 return u.c[sizeof (long int) - 1] == 1;
5374
5375 ;
5376 return 0;
5377 }
5378 _ACEOF
5379 if ac_fn_c_try_run "$LINENO"; then :
5380 ac_cv_c_bigendian=no
5381 else
5382 ac_cv_c_bigendian=yes
5383 fi
5384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5385 conftest.$ac_objext conftest.beam conftest.$ac_ext
5386 fi
5387
5388 fi
5389 fi
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5391 $as_echo "$ac_cv_c_bigendian" >&6; }
5392 case $ac_cv_c_bigendian in #(
5393 yes)
5394 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5395 ;; #(
5396 no)
5397 ;; #(
5398 universal)
5399
5400 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5401
5402 ;; #(
5403 *)
5404 as_fn_error $? "unknown endianness
5405 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5406 esac
5407
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5410 $as_echo_n "checking whether ln -s works... " >&6; }
5411 LN_S=$as_ln_s
5412 if test "$LN_S" = "ln -s"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5414 $as_echo "yes" >&6; }
5415 else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5417 $as_echo "no, using $LN_S" >&6; }
5418 fi
5419
5420 case `pwd` in
5421 *\ * | *\ *)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5423 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5424 esac
5425
5426
5427
5428 macro_version='2.2.6b'
5429 macro_revision='1.3017'
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443 ltmain="$ac_aux_dir/ltmain.sh"
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5446 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5447 if ${ac_cv_path_SED+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5451 for ac_i in 1 2 3 4 5 6 7; do
5452 ac_script="$ac_script$as_nl$ac_script"
5453 done
5454 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5455 { ac_script=; unset ac_script;}
5456 if test -z "$SED"; then
5457 ac_path_SED_found=false
5458 # Loop through the user's path and test for each of PROGNAME-LIST
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_prog in sed gsed; do
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5467 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5468 # Check for GNU ac_path_SED and select it if it is found.
5469 # Check for GNU $ac_path_SED
5470 case `"$ac_path_SED" --version 2>&1` in
5471 *GNU*)
5472 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5473 *)
5474 ac_count=0
5475 $as_echo_n 0123456789 >"conftest.in"
5476 while :
5477 do
5478 cat "conftest.in" "conftest.in" >"conftest.tmp"
5479 mv "conftest.tmp" "conftest.in"
5480 cp "conftest.in" "conftest.nl"
5481 $as_echo '' >> "conftest.nl"
5482 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5484 as_fn_arith $ac_count + 1 && ac_count=$as_val
5485 if test $ac_count -gt ${ac_path_SED_max-0}; then
5486 # Best one so far, save it but keep looking for a better one
5487 ac_cv_path_SED="$ac_path_SED"
5488 ac_path_SED_max=$ac_count
5489 fi
5490 # 10*(2^10) chars as input seems more than enough
5491 test $ac_count -gt 10 && break
5492 done
5493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5494 esac
5495
5496 $ac_path_SED_found && break 3
5497 done
5498 done
5499 done
5500 IFS=$as_save_IFS
5501 if test -z "$ac_cv_path_SED"; then
5502 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5503 fi
5504 else
5505 ac_cv_path_SED=$SED
5506 fi
5507
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5510 $as_echo "$ac_cv_path_SED" >&6; }
5511 SED="$ac_cv_path_SED"
5512 rm -f conftest.sed
5513
5514 test -z "$SED" && SED=sed
5515 Xsed="$SED -e 1s/^X//"
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5528 $as_echo_n "checking for fgrep... " >&6; }
5529 if ${ac_cv_path_FGREP+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5533 then ac_cv_path_FGREP="$GREP -F"
5534 else
5535 if test -z "$FGREP"; then
5536 ac_path_FGREP_found=false
5537 # Loop through the user's path and test for each of PROGNAME-LIST
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5540 do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_prog in fgrep; do
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5546 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5547 # Check for GNU ac_path_FGREP and select it if it is found.
5548 # Check for GNU $ac_path_FGREP
5549 case `"$ac_path_FGREP" --version 2>&1` in
5550 *GNU*)
5551 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5552 *)
5553 ac_count=0
5554 $as_echo_n 0123456789 >"conftest.in"
5555 while :
5556 do
5557 cat "conftest.in" "conftest.in" >"conftest.tmp"
5558 mv "conftest.tmp" "conftest.in"
5559 cp "conftest.in" "conftest.nl"
5560 $as_echo 'FGREP' >> "conftest.nl"
5561 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5563 as_fn_arith $ac_count + 1 && ac_count=$as_val
5564 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5565 # Best one so far, save it but keep looking for a better one
5566 ac_cv_path_FGREP="$ac_path_FGREP"
5567 ac_path_FGREP_max=$ac_count
5568 fi
5569 # 10*(2^10) chars as input seems more than enough
5570 test $ac_count -gt 10 && break
5571 done
5572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5573 esac
5574
5575 $ac_path_FGREP_found && break 3
5576 done
5577 done
5578 done
5579 IFS=$as_save_IFS
5580 if test -z "$ac_cv_path_FGREP"; then
5581 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5582 fi
5583 else
5584 ac_cv_path_FGREP=$FGREP
5585 fi
5586
5587 fi
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5590 $as_echo "$ac_cv_path_FGREP" >&6; }
5591 FGREP="$ac_cv_path_FGREP"
5592
5593
5594 test -z "$GREP" && GREP=grep
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614 # Check whether --with-gnu-ld was given.
5615 if test "${with_gnu_ld+set}" = set; then :
5616 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5617 else
5618 with_gnu_ld=no
5619 fi
5620
5621 ac_prog=ld
5622 if test "$GCC" = yes; then
5623 # Check if gcc -print-prog-name=ld gives a path.
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5625 $as_echo_n "checking for ld used by $CC... " >&6; }
5626 case $host in
5627 *-*-mingw*)
5628 # gcc leaves a trailing carriage return which upsets mingw
5629 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5630 *)
5631 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5632 esac
5633 case $ac_prog in
5634 # Accept absolute paths.
5635 [\\/]* | ?:[\\/]*)
5636 re_direlt='/[^/][^/]*/\.\./'
5637 # Canonicalize the pathname of ld
5638 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5639 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5640 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5641 done
5642 test -z "$LD" && LD="$ac_prog"
5643 ;;
5644 "")
5645 # If it fails, then pretend we aren't using GCC.
5646 ac_prog=ld
5647 ;;
5648 *)
5649 # If it is relative, then search for the first ld in PATH.
5650 with_gnu_ld=unknown
5651 ;;
5652 esac
5653 elif test "$with_gnu_ld" = yes; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5655 $as_echo_n "checking for GNU ld... " >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5658 $as_echo_n "checking for non-GNU ld... " >&6; }
5659 fi
5660 if ${lt_cv_path_LD+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -z "$LD"; then
5664 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5665 for ac_dir in $PATH; do
5666 IFS="$lt_save_ifs"
5667 test -z "$ac_dir" && ac_dir=.
5668 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5669 lt_cv_path_LD="$ac_dir/$ac_prog"
5670 # Check to see if the program is GNU ld. I'd rather use --version,
5671 # but apparently some variants of GNU ld only accept -v.
5672 # Break only if it was the GNU/non-GNU ld that we prefer.
5673 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5674 *GNU* | *'with BFD'*)
5675 test "$with_gnu_ld" != no && break
5676 ;;
5677 *)
5678 test "$with_gnu_ld" != yes && break
5679 ;;
5680 esac
5681 fi
5682 done
5683 IFS="$lt_save_ifs"
5684 else
5685 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5686 fi
5687 fi
5688
5689 LD="$lt_cv_path_LD"
5690 if test -n "$LD"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5692 $as_echo "$LD" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5699 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5700 if ${lt_cv_prog_gnu_ld+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5704 case `$LD -v 2>&1 </dev/null` in
5705 *GNU* | *'with BFD'*)
5706 lt_cv_prog_gnu_ld=yes
5707 ;;
5708 *)
5709 lt_cv_prog_gnu_ld=no
5710 ;;
5711 esac
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5714 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5715 with_gnu_ld=$lt_cv_prog_gnu_ld
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5726 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5727 if ${lt_cv_path_NM+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -n "$NM"; then
5731 # Let the user override the test.
5732 lt_cv_path_NM="$NM"
5733 else
5734 lt_nm_to_check="${ac_tool_prefix}nm"
5735 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5736 lt_nm_to_check="$lt_nm_to_check nm"
5737 fi
5738 for lt_tmp_nm in $lt_nm_to_check; do
5739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5740 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5741 IFS="$lt_save_ifs"
5742 test -z "$ac_dir" && ac_dir=.
5743 tmp_nm="$ac_dir/$lt_tmp_nm"
5744 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5745 # Check to see if the nm accepts a BSD-compat flag.
5746 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5747 # nm: unknown option "B" ignored
5748 # Tru64's nm complains that /dev/null is an invalid object file
5749 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5750 */dev/null* | *'Invalid file or object type'*)
5751 lt_cv_path_NM="$tmp_nm -B"
5752 break
5753 ;;
5754 *)
5755 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5756 */dev/null*)
5757 lt_cv_path_NM="$tmp_nm -p"
5758 break
5759 ;;
5760 *)
5761 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5762 continue # so that we can try to find one that supports BSD flags
5763 ;;
5764 esac
5765 ;;
5766 esac
5767 fi
5768 done
5769 IFS="$lt_save_ifs"
5770 done
5771 : ${lt_cv_path_NM=no}
5772 fi
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5775 $as_echo "$lt_cv_path_NM" >&6; }
5776 if test "$lt_cv_path_NM" != "no"; then
5777 NM="$lt_cv_path_NM"
5778 else
5779 # Didn't find any BSD compatible name lister, look for dumpbin.
5780 if test -n "$ac_tool_prefix"; then
5781 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5782 do
5783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_prog_DUMPBIN+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 if test -n "$DUMPBIN"; then
5791 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5800 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 break 2
5803 fi
5804 done
5805 done
5806 IFS=$as_save_IFS
5807
5808 fi
5809 fi
5810 DUMPBIN=$ac_cv_prog_DUMPBIN
5811 if test -n "$DUMPBIN"; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5813 $as_echo "$DUMPBIN" >&6; }
5814 else
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818
5819
5820 test -n "$DUMPBIN" && break
5821 done
5822 fi
5823 if test -z "$DUMPBIN"; then
5824 ac_ct_DUMPBIN=$DUMPBIN
5825 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5826 do
5827 # Extract the first word of "$ac_prog", so it can be a program name with args.
5828 set dummy $ac_prog; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 if test -n "$ac_ct_DUMPBIN"; then
5835 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5847 fi
5848 done
5849 done
5850 IFS=$as_save_IFS
5851
5852 fi
5853 fi
5854 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5855 if test -n "$ac_ct_DUMPBIN"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5857 $as_echo "$ac_ct_DUMPBIN" >&6; }
5858 else
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5861 fi
5862
5863
5864 test -n "$ac_ct_DUMPBIN" && break
5865 done
5866
5867 if test "x$ac_ct_DUMPBIN" = x; then
5868 DUMPBIN=":"
5869 else
5870 case $cross_compiling:$ac_tool_warned in
5871 yes:)
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5874 ac_tool_warned=yes ;;
5875 esac
5876 DUMPBIN=$ac_ct_DUMPBIN
5877 fi
5878 fi
5879
5880
5881 if test "$DUMPBIN" != ":"; then
5882 NM="$DUMPBIN"
5883 fi
5884 fi
5885 test -z "$NM" && NM=nm
5886
5887
5888
5889
5890
5891
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5893 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5894 if ${lt_cv_nm_interface+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 lt_cv_nm_interface="BSD nm"
5898 echo "int some_variable = 0;" > conftest.$ac_ext
5899 (eval echo "\"\$as_me:5899: $ac_compile\"" >&5)
5900 (eval "$ac_compile" 2>conftest.err)
5901 cat conftest.err >&5
5902 (eval echo "\"\$as_me:5902: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5903 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5904 cat conftest.err >&5
5905 (eval echo "\"\$as_me:5905: output\"" >&5)
5906 cat conftest.out >&5
5907 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5908 lt_cv_nm_interface="MS dumpbin"
5909 fi
5910 rm -f conftest*
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5913 $as_echo "$lt_cv_nm_interface" >&6; }
5914
5915 # find the maximum length of command line arguments
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5917 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5918 if ${lt_cv_sys_max_cmd_len+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 i=0
5922 teststring="ABCD"
5923
5924 case $build_os in
5925 msdosdjgpp*)
5926 # On DJGPP, this test can blow up pretty badly due to problems in libc
5927 # (any single argument exceeding 2000 bytes causes a buffer overrun
5928 # during glob expansion). Even if it were fixed, the result of this
5929 # check would be larger than it should be.
5930 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5931 ;;
5932
5933 gnu*)
5934 # Under GNU Hurd, this test is not required because there is
5935 # no limit to the length of command line arguments.
5936 # Libtool will interpret -1 as no limit whatsoever
5937 lt_cv_sys_max_cmd_len=-1;
5938 ;;
5939
5940 cygwin* | mingw* | cegcc*)
5941 # On Win9x/ME, this test blows up -- it succeeds, but takes
5942 # about 5 minutes as the teststring grows exponentially.
5943 # Worse, since 9x/ME are not pre-emptively multitasking,
5944 # you end up with a "frozen" computer, even though with patience
5945 # the test eventually succeeds (with a max line length of 256k).
5946 # Instead, let's just punt: use the minimum linelength reported by
5947 # all of the supported platforms: 8192 (on NT/2K/XP).
5948 lt_cv_sys_max_cmd_len=8192;
5949 ;;
5950
5951 amigaos*)
5952 # On AmigaOS with pdksh, this test takes hours, literally.
5953 # So we just punt and use a minimum line length of 8192.
5954 lt_cv_sys_max_cmd_len=8192;
5955 ;;
5956
5957 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5958 # This has been around since 386BSD, at least. Likely further.
5959 if test -x /sbin/sysctl; then
5960 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5961 elif test -x /usr/sbin/sysctl; then
5962 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5963 else
5964 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5965 fi
5966 # And add a safety zone
5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5969 ;;
5970
5971 interix*)
5972 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5973 lt_cv_sys_max_cmd_len=196608
5974 ;;
5975
5976 osf*)
5977 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5978 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5979 # nice to cause kernel panics so lets avoid the loop below.
5980 # First set a reasonable default.
5981 lt_cv_sys_max_cmd_len=16384
5982 #
5983 if test -x /sbin/sysconfig; then
5984 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5985 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5986 esac
5987 fi
5988 ;;
5989 sco3.2v5*)
5990 lt_cv_sys_max_cmd_len=102400
5991 ;;
5992 sysv5* | sco5v6* | sysv4.2uw2*)
5993 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5994 if test -n "$kargmax"; then
5995 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5996 else
5997 lt_cv_sys_max_cmd_len=32768
5998 fi
5999 ;;
6000 *)
6001 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6002 if test -n "$lt_cv_sys_max_cmd_len"; then
6003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6005 else
6006 # Make teststring a little bigger before we do anything with it.
6007 # a 1K string should be a reasonable start.
6008 for i in 1 2 3 4 5 6 7 8 ; do
6009 teststring=$teststring$teststring
6010 done
6011 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6012 # If test is not a shell built-in, we'll probably end up computing a
6013 # maximum length that is only half of the actual maximum length, but
6014 # we can't tell.
6015 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6016 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6017 test $i != 17 # 1/2 MB should be enough
6018 do
6019 i=`expr $i + 1`
6020 teststring=$teststring$teststring
6021 done
6022 # Only check the string length outside the loop.
6023 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6024 teststring=
6025 # Add a significant safety factor because C++ compilers can tack on
6026 # massive amounts of additional arguments before passing them to the
6027 # linker. It appears as though 1/2 is a usable value.
6028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6029 fi
6030 ;;
6031 esac
6032
6033 fi
6034
6035 if test -n $lt_cv_sys_max_cmd_len ; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6037 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6038 else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6040 $as_echo "none" >&6; }
6041 fi
6042 max_cmd_len=$lt_cv_sys_max_cmd_len
6043
6044
6045
6046
6047
6048
6049 : ${CP="cp -f"}
6050 : ${MV="mv -f"}
6051 : ${RM="rm -f"}
6052
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6054 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6055 # Try some XSI features
6056 xsi_shell=no
6057 ( _lt_dummy="a/b/c"
6058 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6059 = c,a/b,, \
6060 && eval 'test $(( 1 + 1 )) -eq 2 \
6061 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6062 && xsi_shell=yes
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6064 $as_echo "$xsi_shell" >&6; }
6065
6066
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6068 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6069 lt_shell_append=no
6070 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6071 >/dev/null 2>&1 \
6072 && lt_shell_append=yes
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6074 $as_echo "$lt_shell_append" >&6; }
6075
6076
6077 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6078 lt_unset=unset
6079 else
6080 lt_unset=false
6081 fi
6082
6083
6084
6085
6086
6087 # test EBCDIC or ASCII
6088 case `echo X|tr X '\101'` in
6089 A) # ASCII based system
6090 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6091 lt_SP2NL='tr \040 \012'
6092 lt_NL2SP='tr \015\012 \040\040'
6093 ;;
6094 *) # EBCDIC based system
6095 lt_SP2NL='tr \100 \n'
6096 lt_NL2SP='tr \r\n \100\100'
6097 ;;
6098 esac
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6109 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6110 if ${lt_cv_ld_reload_flag+:} false; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 lt_cv_ld_reload_flag='-r'
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6116 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6117 reload_flag=$lt_cv_ld_reload_flag
6118 case $reload_flag in
6119 "" | " "*) ;;
6120 *) reload_flag=" $reload_flag" ;;
6121 esac
6122 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6123 case $host_os in
6124 darwin*)
6125 if test "$GCC" = yes; then
6126 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6127 else
6128 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6129 fi
6130 ;;
6131 esac
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141 if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if ${ac_cv_prog_OBJDUMP+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 if test -n "$OBJDUMP"; then
6150 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 OBJDUMP=$ac_cv_prog_OBJDUMP
6170 if test -n "$OBJDUMP"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6172 $as_echo "$OBJDUMP" >&6; }
6173 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178
6179 fi
6180 if test -z "$ac_cv_prog_OBJDUMP"; then
6181 ac_ct_OBJDUMP=$OBJDUMP
6182 # Extract the first word of "objdump", so it can be a program name with args.
6183 set dummy objdump; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$ac_ct_OBJDUMP"; then
6190 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6210 if test -n "$ac_ct_OBJDUMP"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6212 $as_echo "$ac_ct_OBJDUMP" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218 if test "x$ac_ct_OBJDUMP" = x; then
6219 OBJDUMP="false"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222 yes:)
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225 ac_tool_warned=yes ;;
6226 esac
6227 OBJDUMP=$ac_ct_OBJDUMP
6228 fi
6229 else
6230 OBJDUMP="$ac_cv_prog_OBJDUMP"
6231 fi
6232
6233 test -z "$OBJDUMP" && OBJDUMP=objdump
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6244 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6245 if ${lt_cv_deplibs_check_method+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 lt_cv_file_magic_cmd='$MAGIC_CMD'
6249 lt_cv_file_magic_test_file=
6250 lt_cv_deplibs_check_method='unknown'
6251 # Need to set the preceding variable on all platforms that support
6252 # interlibrary dependencies.
6253 # 'none' -- dependencies not supported.
6254 # `unknown' -- same as none, but documents that we really don't know.
6255 # 'pass_all' -- all dependencies passed with no checks.
6256 # 'test_compile' -- check by making test program.
6257 # 'file_magic [[regex]]' -- check by looking for files in library path
6258 # which responds to the $file_magic_cmd with a given extended regex.
6259 # If you have `file' or equivalent on your system and you're not sure
6260 # whether `pass_all' will *always* work, you probably want this one.
6261
6262 case $host_os in
6263 aix[4-9]*)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266
6267 beos*)
6268 lt_cv_deplibs_check_method=pass_all
6269 ;;
6270
6271 bsdi[45]*)
6272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6273 lt_cv_file_magic_cmd='/usr/bin/file -L'
6274 lt_cv_file_magic_test_file=/shlib/libc.so
6275 ;;
6276
6277 cygwin*)
6278 # func_win32_libid is a shell function defined in ltmain.sh
6279 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6280 lt_cv_file_magic_cmd='func_win32_libid'
6281 ;;
6282
6283 mingw* | pw32*)
6284 # Base MSYS/MinGW do not provide the 'file' command needed by
6285 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6286 # unless we find 'file', for example because we are cross-compiling.
6287 if ( file / ) >/dev/null 2>&1; then
6288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6289 lt_cv_file_magic_cmd='func_win32_libid'
6290 else
6291 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6292 lt_cv_file_magic_cmd='$OBJDUMP -f'
6293 fi
6294 ;;
6295
6296 cegcc)
6297 # use the weaker test based on 'objdump'. See mingw*.
6298 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6299 lt_cv_file_magic_cmd='$OBJDUMP -f'
6300 ;;
6301
6302 darwin* | rhapsody*)
6303 lt_cv_deplibs_check_method=pass_all
6304 ;;
6305
6306 freebsd* | dragonfly*)
6307 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6308 case $host_cpu in
6309 i*86 )
6310 # Not sure whether the presence of OpenBSD here was a mistake.
6311 # Let's accept both of them until this is cleared up.
6312 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6313 lt_cv_file_magic_cmd=/usr/bin/file
6314 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6315 ;;
6316 esac
6317 else
6318 lt_cv_deplibs_check_method=pass_all
6319 fi
6320 ;;
6321
6322 gnu*)
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
6325
6326 hpux10.20* | hpux11*)
6327 lt_cv_file_magic_cmd=/usr/bin/file
6328 case $host_cpu in
6329 ia64*)
6330 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6331 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6332 ;;
6333 hppa*64*)
6334 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]'
6335 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6336 ;;
6337 *)
6338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6339 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6340 ;;
6341 esac
6342 ;;
6343
6344 interix[3-9]*)
6345 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6347 ;;
6348
6349 irix5* | irix6* | nonstopux*)
6350 case $LD in
6351 *-32|*"-32 ") libmagic=32-bit;;
6352 *-n32|*"-n32 ") libmagic=N32;;
6353 *-64|*"-64 ") libmagic=64-bit;;
6354 *) libmagic=never-match;;
6355 esac
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358
6359 # This must be Linux ELF.
6360 linux* | k*bsd*-gnu)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363
6364 netbsd*)
6365 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6367 else
6368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6369 fi
6370 ;;
6371
6372 newos6*)
6373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6374 lt_cv_file_magic_cmd=/usr/bin/file
6375 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6376 ;;
6377
6378 *nto* | *qnx*)
6379 lt_cv_deplibs_check_method=pass_all
6380 ;;
6381
6382 openbsd*)
6383 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6385 else
6386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6387 fi
6388 ;;
6389
6390 osf3* | osf4* | osf5*)
6391 lt_cv_deplibs_check_method=pass_all
6392 ;;
6393
6394 rdos*)
6395 lt_cv_deplibs_check_method=pass_all
6396 ;;
6397
6398 solaris*)
6399 lt_cv_deplibs_check_method=pass_all
6400 ;;
6401
6402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6403 lt_cv_deplibs_check_method=pass_all
6404 ;;
6405
6406 sysv4 | sysv4.3*)
6407 case $host_vendor in
6408 motorola)
6409 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]'
6410 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6411 ;;
6412 ncr)
6413 lt_cv_deplibs_check_method=pass_all
6414 ;;
6415 sequent)
6416 lt_cv_file_magic_cmd='/bin/file'
6417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6418 ;;
6419 sni)
6420 lt_cv_file_magic_cmd='/bin/file'
6421 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6422 lt_cv_file_magic_test_file=/lib/libc.so
6423 ;;
6424 siemens)
6425 lt_cv_deplibs_check_method=pass_all
6426 ;;
6427 pc)
6428 lt_cv_deplibs_check_method=pass_all
6429 ;;
6430 esac
6431 ;;
6432
6433 tpf*)
6434 lt_cv_deplibs_check_method=pass_all
6435 ;;
6436 esac
6437
6438 fi
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6440 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6441 file_magic_cmd=$lt_cv_file_magic_cmd
6442 deplibs_check_method=$lt_cv_deplibs_check_method
6443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456 if test -n "$ac_tool_prefix"; then
6457 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}ar; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if ${ac_cv_prog_AR+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$AR"; then
6465 ac_cv_prog_AR="$AR" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_AR="${ac_tool_prefix}ar"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 AR=$ac_cv_prog_AR
6485 if test -n "$AR"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6487 $as_echo "$AR" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493
6494 fi
6495 if test -z "$ac_cv_prog_AR"; then
6496 ac_ct_AR=$AR
6497 # Extract the first word of "ar", so it can be a program name with args.
6498 set dummy ar; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 if test -n "$ac_ct_AR"; then
6505 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514 ac_cv_prog_ac_ct_AR="ar"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6517 fi
6518 done
6519 done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6525 if test -n "$ac_ct_AR"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6527 $as_echo "$ac_ct_AR" >&6; }
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 fi
6532
6533 if test "x$ac_ct_AR" = x; then
6534 AR="false"
6535 else
6536 case $cross_compiling:$ac_tool_warned in
6537 yes:)
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540 ac_tool_warned=yes ;;
6541 esac
6542 AR=$ac_ct_AR
6543 fi
6544 else
6545 AR="$ac_cv_prog_AR"
6546 fi
6547
6548 test -z "$AR" && AR=ar
6549 test -z "$AR_FLAGS" && AR_FLAGS=cru
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561 if test -n "$ac_tool_prefix"; then
6562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}strip; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if ${ac_cv_prog_STRIP+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 if test -n "$STRIP"; then
6570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 STRIP=$ac_cv_prog_STRIP
6590 if test -n "$STRIP"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6592 $as_echo "$STRIP" >&6; }
6593 else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598
6599 fi
6600 if test -z "$ac_cv_prog_STRIP"; then
6601 ac_ct_STRIP=$STRIP
6602 # Extract the first word of "strip", so it can be a program name with args.
6603 set dummy strip; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6607 $as_echo_n "(cached) " >&6
6608 else
6609 if test -n "$ac_ct_STRIP"; then
6610 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_prog_ac_ct_STRIP="strip"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627 fi
6628 fi
6629 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6630 if test -n "$ac_ct_STRIP"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6632 $as_echo "$ac_ct_STRIP" >&6; }
6633 else
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6636 fi
6637
6638 if test "x$ac_ct_STRIP" = x; then
6639 STRIP=":"
6640 else
6641 case $cross_compiling:$ac_tool_warned in
6642 yes:)
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645 ac_tool_warned=yes ;;
6646 esac
6647 STRIP=$ac_ct_STRIP
6648 fi
6649 else
6650 STRIP="$ac_cv_prog_STRIP"
6651 fi
6652
6653 test -z "$STRIP" && STRIP=:
6654
6655
6656
6657
6658
6659
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if ${ac_cv_prog_RANLIB+:} false; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 if test -n "$RANLIB"; then
6669 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 RANLIB=$ac_cv_prog_RANLIB
6689 if test -n "$RANLIB"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6691 $as_echo "$RANLIB" >&6; }
6692 else
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6695 fi
6696
6697
6698 fi
6699 if test -z "$ac_cv_prog_RANLIB"; then
6700 ac_ct_RANLIB=$RANLIB
6701 # Extract the first word of "ranlib", so it can be a program name with args.
6702 set dummy ranlib; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 if test -n "$ac_ct_RANLIB"; then
6709 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_prog_ac_ct_RANLIB="ranlib"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6729 if test -n "$ac_ct_RANLIB"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6731 $as_echo "$ac_ct_RANLIB" >&6; }
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 fi
6736
6737 if test "x$ac_ct_RANLIB" = x; then
6738 RANLIB=":"
6739 else
6740 case $cross_compiling:$ac_tool_warned in
6741 yes:)
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744 ac_tool_warned=yes ;;
6745 esac
6746 RANLIB=$ac_ct_RANLIB
6747 fi
6748 else
6749 RANLIB="$ac_cv_prog_RANLIB"
6750 fi
6751
6752 test -z "$RANLIB" && RANLIB=:
6753
6754
6755
6756
6757
6758
6759 # Determine commands to create old-style static archives.
6760 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6761 old_postinstall_cmds='chmod 644 $oldlib'
6762 old_postuninstall_cmds=
6763
6764 if test -n "$RANLIB"; then
6765 case $host_os in
6766 openbsd*)
6767 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6768 ;;
6769 *)
6770 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6771 ;;
6772 esac
6773 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6774 fi
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809 # If no C compiler was specified, use CC.
6810 LTCC=${LTCC-"$CC"}
6811
6812 # If no C compiler flags were specified, use CFLAGS.
6813 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6814
6815 # Allow CC to be a program name with arguments.
6816 compiler=$CC
6817
6818
6819 # Check for command to grab the raw symbol name followed by C symbol from nm.
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6821 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6822 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825
6826 # These are sane defaults that work on at least a few old systems.
6827 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6828
6829 # Character class describing NM global symbol codes.
6830 symcode='[BCDEGRST]'
6831
6832 # Regexp to match symbols that can be accessed directly from C.
6833 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6834
6835 # Define system-specific variables.
6836 case $host_os in
6837 aix*)
6838 symcode='[BCDT]'
6839 ;;
6840 cygwin* | mingw* | pw32* | cegcc*)
6841 symcode='[ABCDGISTW]'
6842 ;;
6843 hpux*)
6844 if test "$host_cpu" = ia64; then
6845 symcode='[ABCDEGRST]'
6846 fi
6847 ;;
6848 irix* | nonstopux*)
6849 symcode='[BCDEGRST]'
6850 ;;
6851 osf*)
6852 symcode='[BCDEGQRST]'
6853 ;;
6854 solaris*)
6855 symcode='[BDRT]'
6856 ;;
6857 sco3.2v5*)
6858 symcode='[DT]'
6859 ;;
6860 sysv4.2uw2*)
6861 symcode='[DT]'
6862 ;;
6863 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6864 symcode='[ABDT]'
6865 ;;
6866 sysv4)
6867 symcode='[DFNSTU]'
6868 ;;
6869 esac
6870
6871 # If we're using GNU nm, then use its standard symbol codes.
6872 case `$NM -V 2>&1` in
6873 *GNU* | *'with BFD'*)
6874 symcode='[ABCDGIRSTW]' ;;
6875 esac
6876
6877 # Transform an extracted symbol line into a proper C declaration.
6878 # Some systems (esp. on ia64) link data and code symbols differently,
6879 # so use this general approach.
6880 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6881
6882 # Transform an extracted symbol line into symbol name and symbol address
6883 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6884 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'"
6885
6886 # Handle CRLF in mingw tool chain
6887 opt_cr=
6888 case $build_os in
6889 mingw*)
6890 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6891 ;;
6892 esac
6893
6894 # Try without a prefix underscore, then with it.
6895 for ac_symprfx in "" "_"; do
6896
6897 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6898 symxfrm="\\1 $ac_symprfx\\2 \\2"
6899
6900 # Write the raw and C identifiers.
6901 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6902 # Fake it for dumpbin and say T for any non-static function
6903 # and D for any global variable.
6904 # Also find C++ and __fastcall symbols from MSVC++,
6905 # which start with @ or ?.
6906 lt_cv_sys_global_symbol_pipe="$AWK '"\
6907 " {last_section=section; section=\$ 3};"\
6908 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6909 " \$ 0!~/External *\|/{next};"\
6910 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6911 " {if(hide[section]) next};"\
6912 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6913 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6914 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6915 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6916 " ' prfx=^$ac_symprfx"
6917 else
6918 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6919 fi
6920
6921 # Check to see that the pipe works correctly.
6922 pipe_works=no
6923
6924 rm -f conftest*
6925 cat > conftest.$ac_ext <<_LT_EOF
6926 #ifdef __cplusplus
6927 extern "C" {
6928 #endif
6929 char nm_test_var;
6930 void nm_test_func(void);
6931 void nm_test_func(void){}
6932 #ifdef __cplusplus
6933 }
6934 #endif
6935 int main(){nm_test_var='a';nm_test_func();return(0);}
6936 _LT_EOF
6937
6938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }; then
6943 # Now try to grab the symbols.
6944 nlist=conftest.nm
6945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6946 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6947 ac_status=$?
6948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949 test $ac_status = 0; } && test -s "$nlist"; then
6950 # Try sorting and uniquifying the output.
6951 if sort "$nlist" | uniq > "$nlist"T; then
6952 mv -f "$nlist"T "$nlist"
6953 else
6954 rm -f "$nlist"T
6955 fi
6956
6957 # Make sure that we snagged all the symbols we need.
6958 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6959 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6960 cat <<_LT_EOF > conftest.$ac_ext
6961 #ifdef __cplusplus
6962 extern "C" {
6963 #endif
6964
6965 _LT_EOF
6966 # Now generate the symbol file.
6967 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6968
6969 cat <<_LT_EOF >> conftest.$ac_ext
6970
6971 /* The mapping between symbol names and symbols. */
6972 const struct {
6973 const char *name;
6974 void *address;
6975 }
6976 lt__PROGRAM__LTX_preloaded_symbols[] =
6977 {
6978 { "@PROGRAM@", (void *) 0 },
6979 _LT_EOF
6980 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6981 cat <<\_LT_EOF >> conftest.$ac_ext
6982 {0, (void *) 0}
6983 };
6984
6985 /* This works around a problem in FreeBSD linker */
6986 #ifdef FREEBSD_WORKAROUND
6987 static const void *lt_preloaded_setup() {
6988 return lt__PROGRAM__LTX_preloaded_symbols;
6989 }
6990 #endif
6991
6992 #ifdef __cplusplus
6993 }
6994 #endif
6995 _LT_EOF
6996 # Now try linking the two files.
6997 mv conftest.$ac_objext conftstm.$ac_objext
6998 lt_save_LIBS="$LIBS"
6999 lt_save_CFLAGS="$CFLAGS"
7000 LIBS="conftstm.$ac_objext"
7001 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7003 (eval $ac_link) 2>&5
7004 ac_status=$?
7005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7006 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7007 pipe_works=yes
7008 fi
7009 LIBS="$lt_save_LIBS"
7010 CFLAGS="$lt_save_CFLAGS"
7011 else
7012 echo "cannot find nm_test_func in $nlist" >&5
7013 fi
7014 else
7015 echo "cannot find nm_test_var in $nlist" >&5
7016 fi
7017 else
7018 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7019 fi
7020 else
7021 echo "$progname: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7023 fi
7024 rm -rf conftest* conftst*
7025
7026 # Do not use the global_symbol_pipe unless it works.
7027 if test "$pipe_works" = yes; then
7028 break
7029 else
7030 lt_cv_sys_global_symbol_pipe=
7031 fi
7032 done
7033
7034 fi
7035
7036 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7037 lt_cv_sys_global_symbol_to_cdecl=
7038 fi
7039 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7041 $as_echo "failed" >&6; }
7042 else
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7044 $as_echo "ok" >&6; }
7045 fi
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068 # Check whether --enable-libtool-lock was given.
7069 if test "${enable_libtool_lock+set}" = set; then :
7070 enableval=$enable_libtool_lock;
7071 fi
7072
7073 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7074
7075 # Some flags need to be propagated to the compiler or linker for good
7076 # libtool support.
7077 case $host in
7078 ia64-*-hpux*)
7079 # Find out which ABI we are using.
7080 echo 'int i;' > conftest.$ac_ext
7081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7082 (eval $ac_compile) 2>&5
7083 ac_status=$?
7084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085 test $ac_status = 0; }; then
7086 case `/usr/bin/file conftest.$ac_objext` in
7087 *ELF-32*)
7088 HPUX_IA64_MODE="32"
7089 ;;
7090 *ELF-64*)
7091 HPUX_IA64_MODE="64"
7092 ;;
7093 esac
7094 fi
7095 rm -rf conftest*
7096 ;;
7097 *-*-irix6*)
7098 # Find out which ABI we are using.
7099 echo '#line 7099 "configure"' > conftest.$ac_ext
7100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7101 (eval $ac_compile) 2>&5
7102 ac_status=$?
7103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7104 test $ac_status = 0; }; then
7105 if test "$lt_cv_prog_gnu_ld" = yes; then
7106 case `/usr/bin/file conftest.$ac_objext` in
7107 *32-bit*)
7108 LD="${LD-ld} -melf32bsmip"
7109 ;;
7110 *N32*)
7111 LD="${LD-ld} -melf32bmipn32"
7112 ;;
7113 *64-bit*)
7114 LD="${LD-ld} -melf64bmip"
7115 ;;
7116 esac
7117 else
7118 case `/usr/bin/file conftest.$ac_objext` in
7119 *32-bit*)
7120 LD="${LD-ld} -32"
7121 ;;
7122 *N32*)
7123 LD="${LD-ld} -n32"
7124 ;;
7125 *64-bit*)
7126 LD="${LD-ld} -64"
7127 ;;
7128 esac
7129 fi
7130 fi
7131 rm -rf conftest*
7132 ;;
7133
7134 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7135 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7136 # Find out which ABI we are using.
7137 echo 'int i;' > conftest.$ac_ext
7138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7139 (eval $ac_compile) 2>&5
7140 ac_status=$?
7141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7142 test $ac_status = 0; }; then
7143 case `/usr/bin/file conftest.o` in
7144 *32-bit*)
7145 case $host in
7146 x86_64-*kfreebsd*-gnu)
7147 LD="${LD-ld} -m elf_i386_fbsd"
7148 ;;
7149 x86_64-*linux*)
7150 LD="${LD-ld} -m elf_i386"
7151 ;;
7152 ppc64-*linux*|powerpc64-*linux*)
7153 LD="${LD-ld} -m elf32ppclinux"
7154 ;;
7155 s390x-*linux*)
7156 LD="${LD-ld} -m elf_s390"
7157 ;;
7158 sparc64-*linux*)
7159 LD="${LD-ld} -m elf32_sparc"
7160 ;;
7161 esac
7162 ;;
7163 *64-bit*)
7164 case $host in
7165 x86_64-*kfreebsd*-gnu)
7166 LD="${LD-ld} -m elf_x86_64_fbsd"
7167 ;;
7168 x86_64-*linux*)
7169 LD="${LD-ld} -m elf_x86_64"
7170 ;;
7171 ppc*-*linux*|powerpc*-*linux*)
7172 LD="${LD-ld} -m elf64ppc"
7173 ;;
7174 s390*-*linux*|s390*-*tpf*)
7175 LD="${LD-ld} -m elf64_s390"
7176 ;;
7177 sparc*-*linux*)
7178 LD="${LD-ld} -m elf64_sparc"
7179 ;;
7180 esac
7181 ;;
7182 esac
7183 fi
7184 rm -rf conftest*
7185 ;;
7186
7187 *-*-sco3.2v5*)
7188 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7189 SAVE_CFLAGS="$CFLAGS"
7190 CFLAGS="$CFLAGS -belf"
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7192 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7193 if ${lt_cv_cc_needs_belf+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 ac_ext=c
7197 ac_cpp='$CPP $CPPFLAGS'
7198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7201
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204
7205 int
7206 main ()
7207 {
7208
7209 ;
7210 return 0;
7211 }
7212 _ACEOF
7213 if ac_fn_c_try_link "$LINENO"; then :
7214 lt_cv_cc_needs_belf=yes
7215 else
7216 lt_cv_cc_needs_belf=no
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 ac_ext=c
7221 ac_cpp='$CPP $CPPFLAGS'
7222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7228 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7229 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7230 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7231 CFLAGS="$SAVE_CFLAGS"
7232 fi
7233 ;;
7234 sparc*-*solaris*)
7235 # Find out which ABI we are using.
7236 echo 'int i;' > conftest.$ac_ext
7237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7238 (eval $ac_compile) 2>&5
7239 ac_status=$?
7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; then
7242 case `/usr/bin/file conftest.o` in
7243 *64-bit*)
7244 case $lt_cv_prog_gnu_ld in
7245 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7246 *)
7247 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7248 LD="${LD-ld} -64"
7249 fi
7250 ;;
7251 esac
7252 ;;
7253 esac
7254 fi
7255 rm -rf conftest*
7256 ;;
7257 esac
7258
7259 need_locks="$enable_libtool_lock"
7260
7261
7262 case $host_os in
7263 rhapsody* | darwin*)
7264 if test -n "$ac_tool_prefix"; then
7265 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7266 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 if test -n "$DSYMUTIL"; then
7273 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 break 2
7285 fi
7286 done
7287 done
7288 IFS=$as_save_IFS
7289
7290 fi
7291 fi
7292 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7293 if test -n "$DSYMUTIL"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7295 $as_echo "$DSYMUTIL" >&6; }
7296 else
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7299 fi
7300
7301
7302 fi
7303 if test -z "$ac_cv_prog_DSYMUTIL"; then
7304 ac_ct_DSYMUTIL=$DSYMUTIL
7305 # Extract the first word of "dsymutil", so it can be a program name with args.
7306 set dummy dsymutil; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 if test -n "$ac_ct_DSYMUTIL"; then
7313 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326 done
7327 done
7328 IFS=$as_save_IFS
7329
7330 fi
7331 fi
7332 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7333 if test -n "$ac_ct_DSYMUTIL"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7335 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7339 fi
7340
7341 if test "x$ac_ct_DSYMUTIL" = x; then
7342 DSYMUTIL=":"
7343 else
7344 case $cross_compiling:$ac_tool_warned in
7345 yes:)
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348 ac_tool_warned=yes ;;
7349 esac
7350 DSYMUTIL=$ac_ct_DSYMUTIL
7351 fi
7352 else
7353 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7354 fi
7355
7356 if test -n "$ac_tool_prefix"; then
7357 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if ${ac_cv_prog_NMEDIT+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 if test -n "$NMEDIT"; then
7365 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378 done
7379 done
7380 IFS=$as_save_IFS
7381
7382 fi
7383 fi
7384 NMEDIT=$ac_cv_prog_NMEDIT
7385 if test -n "$NMEDIT"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7387 $as_echo "$NMEDIT" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7391 fi
7392
7393
7394 fi
7395 if test -z "$ac_cv_prog_NMEDIT"; then
7396 ac_ct_NMEDIT=$NMEDIT
7397 # Extract the first word of "nmedit", so it can be a program name with args.
7398 set dummy nmedit; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 if test -n "$ac_ct_NMEDIT"; then
7405 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7417 fi
7418 done
7419 done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7425 if test -n "$ac_ct_NMEDIT"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7427 $as_echo "$ac_ct_NMEDIT" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7431 fi
7432
7433 if test "x$ac_ct_NMEDIT" = x; then
7434 NMEDIT=":"
7435 else
7436 case $cross_compiling:$ac_tool_warned in
7437 yes:)
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7440 ac_tool_warned=yes ;;
7441 esac
7442 NMEDIT=$ac_ct_NMEDIT
7443 fi
7444 else
7445 NMEDIT="$ac_cv_prog_NMEDIT"
7446 fi
7447
7448 if test -n "$ac_tool_prefix"; then
7449 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7450 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_prog_LIPO+:} false; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456 if test -n "$LIPO"; then
7457 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 break 2
7469 fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474 fi
7475 fi
7476 LIPO=$ac_cv_prog_LIPO
7477 if test -n "$LIPO"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7479 $as_echo "$LIPO" >&6; }
7480 else
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7483 fi
7484
7485
7486 fi
7487 if test -z "$ac_cv_prog_LIPO"; then
7488 ac_ct_LIPO=$LIPO
7489 # Extract the first word of "lipo", so it can be a program name with args.
7490 set dummy lipo; ac_word=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 if test -n "$ac_ct_LIPO"; then
7497 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7498 else
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7501 do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7506 ac_cv_prog_ac_ct_LIPO="lipo"
7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7509 fi
7510 done
7511 done
7512 IFS=$as_save_IFS
7513
7514 fi
7515 fi
7516 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7517 if test -n "$ac_ct_LIPO"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7519 $as_echo "$ac_ct_LIPO" >&6; }
7520 else
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7523 fi
7524
7525 if test "x$ac_ct_LIPO" = x; then
7526 LIPO=":"
7527 else
7528 case $cross_compiling:$ac_tool_warned in
7529 yes:)
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532 ac_tool_warned=yes ;;
7533 esac
7534 LIPO=$ac_ct_LIPO
7535 fi
7536 else
7537 LIPO="$ac_cv_prog_LIPO"
7538 fi
7539
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}otool; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_OTOOL+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 if test -n "$OTOOL"; then
7549 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562 done
7563 done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 OTOOL=$ac_cv_prog_OTOOL
7569 if test -n "$OTOOL"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7571 $as_echo "$OTOOL" >&6; }
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577
7578 fi
7579 if test -z "$ac_cv_prog_OTOOL"; then
7580 ac_ct_OTOOL=$OTOOL
7581 # Extract the first word of "otool", so it can be a program name with args.
7582 set dummy otool; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 if test -n "$ac_ct_OTOOL"; then
7589 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_prog_ac_ct_OTOOL="otool"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7601 fi
7602 done
7603 done
7604 IFS=$as_save_IFS
7605
7606 fi
7607 fi
7608 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7609 if test -n "$ac_ct_OTOOL"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7611 $as_echo "$ac_ct_OTOOL" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617 if test "x$ac_ct_OTOOL" = x; then
7618 OTOOL=":"
7619 else
7620 case $cross_compiling:$ac_tool_warned in
7621 yes:)
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7625 esac
7626 OTOOL=$ac_ct_OTOOL
7627 fi
7628 else
7629 OTOOL="$ac_cv_prog_OTOOL"
7630 fi
7631
7632 if test -n "$ac_tool_prefix"; then
7633 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7634 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_OTOOL64+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 if test -n "$OTOOL64"; then
7641 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 OTOOL64=$ac_cv_prog_OTOOL64
7661 if test -n "$OTOOL64"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7663 $as_echo "$OTOOL64" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669
7670 fi
7671 if test -z "$ac_cv_prog_OTOOL64"; then
7672 ac_ct_OTOOL64=$OTOOL64
7673 # Extract the first word of "otool64", so it can be a program name with args.
7674 set dummy otool64; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 if test -n "$ac_ct_OTOOL64"; then
7681 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_prog_ac_ct_OTOOL64="otool64"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698 fi
7699 fi
7700 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7701 if test -n "$ac_ct_OTOOL64"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7703 $as_echo "$ac_ct_OTOOL64" >&6; }
7704 else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7707 fi
7708
7709 if test "x$ac_ct_OTOOL64" = x; then
7710 OTOOL64=":"
7711 else
7712 case $cross_compiling:$ac_tool_warned in
7713 yes:)
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7716 ac_tool_warned=yes ;;
7717 esac
7718 OTOOL64=$ac_ct_OTOOL64
7719 fi
7720 else
7721 OTOOL64="$ac_cv_prog_OTOOL64"
7722 fi
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7751 $as_echo_n "checking for -single_module linker flag... " >&6; }
7752 if ${lt_cv_apple_cc_single_mod+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 lt_cv_apple_cc_single_mod=no
7756 if test -z "${LT_MULTI_MODULE}"; then
7757 # By default we will add the -single_module flag. You can override
7758 # by either setting the environment variable LT_MULTI_MODULE
7759 # non-empty at configure time, or by adding -multi_module to the
7760 # link flags.
7761 rm -rf libconftest.dylib*
7762 echo "int foo(void){return 1;}" > conftest.c
7763 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7764 -dynamiclib -Wl,-single_module conftest.c" >&5
7765 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7766 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7767 _lt_result=$?
7768 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7769 lt_cv_apple_cc_single_mod=yes
7770 else
7771 cat conftest.err >&5
7772 fi
7773 rm -rf libconftest.dylib*
7774 rm -f conftest.*
7775 fi
7776 fi
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7778 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7780 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7781 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 lt_cv_ld_exported_symbols_list=no
7785 save_LDFLAGS=$LDFLAGS
7786 echo "_main" > conftest.sym
7787 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790
7791 int
7792 main ()
7793 {
7794
7795 ;
7796 return 0;
7797 }
7798 _ACEOF
7799 if ac_fn_c_try_link "$LINENO"; then :
7800 lt_cv_ld_exported_symbols_list=yes
7801 else
7802 lt_cv_ld_exported_symbols_list=no
7803 fi
7804 rm -f core conftest.err conftest.$ac_objext \
7805 conftest$ac_exeext conftest.$ac_ext
7806 LDFLAGS="$save_LDFLAGS"
7807
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7810 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7811 case $host_os in
7812 rhapsody* | darwin1.[012])
7813 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7814 darwin1.*)
7815 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7816 darwin*) # darwin 5.x on
7817 # if running on 10.5 or later, the deployment target defaults
7818 # to the OS version, if on x86, and 10.4, the deployment
7819 # target defaults to 10.4. Don't you love it?
7820 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7821 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7822 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7823 10.[012]*)
7824 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7825 10.*)
7826 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7827 esac
7828 ;;
7829 esac
7830 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7831 _lt_dar_single_mod='$single_module'
7832 fi
7833 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7834 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7835 else
7836 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7837 fi
7838 if test "$DSYMUTIL" != ":"; then
7839 _lt_dsymutil='~$DSYMUTIL $lib || :'
7840 else
7841 _lt_dsymutil=
7842 fi
7843 ;;
7844 esac
7845
7846 for ac_header in dlfcn.h
7847 do :
7848 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7849 "
7850 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7851 cat >>confdefs.h <<_ACEOF
7852 #define HAVE_DLFCN_H 1
7853 _ACEOF
7854
7855 fi
7856
7857 done
7858
7859
7860
7861 # Set options
7862 # Check whether --enable-static was given.
7863 if test "${enable_static+set}" = set; then :
7864 enableval=$enable_static; p=${PACKAGE-default}
7865 case $enableval in
7866 yes) enable_static=yes ;;
7867 no) enable_static=no ;;
7868 *)
7869 enable_static=no
7870 # Look at the argument we got. We use all the common list separators.
7871 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7872 for pkg in $enableval; do
7873 IFS="$lt_save_ifs"
7874 if test "X$pkg" = "X$p"; then
7875 enable_static=yes
7876 fi
7877 done
7878 IFS="$lt_save_ifs"
7879 ;;
7880 esac
7881 else
7882 enable_static=no
7883 fi
7884
7885
7886
7887
7888
7889
7890
7891
7892 # Check whether --with-pic was given.
7893 if test "${with_pic+set}" = set; then :
7894 withval=$with_pic; pic_mode="$withval"
7895 else
7896 pic_mode=default
7897 fi
7898
7899
7900 test -z "$pic_mode" && pic_mode=yes
7901
7902
7903
7904
7905
7906
7907
7908
7909 enable_dlopen=no
7910
7911
7912 enable_win32_dll=no
7913
7914
7915 # Check whether --enable-shared was given.
7916 if test "${enable_shared+set}" = set; then :
7917 enableval=$enable_shared; p=${PACKAGE-default}
7918 case $enableval in
7919 yes) enable_shared=yes ;;
7920 no) enable_shared=no ;;
7921 *)
7922 enable_shared=no
7923 # Look at the argument we got. We use all the common list separators.
7924 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7925 for pkg in $enableval; do
7926 IFS="$lt_save_ifs"
7927 if test "X$pkg" = "X$p"; then
7928 enable_shared=yes
7929 fi
7930 done
7931 IFS="$lt_save_ifs"
7932 ;;
7933 esac
7934 else
7935 enable_shared=yes
7936 fi
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948 # Check whether --enable-fast-install was given.
7949 if test "${enable_fast_install+set}" = set; then :
7950 enableval=$enable_fast_install; p=${PACKAGE-default}
7951 case $enableval in
7952 yes) enable_fast_install=yes ;;
7953 no) enable_fast_install=no ;;
7954 *)
7955 enable_fast_install=no
7956 # Look at the argument we got. We use all the common list separators.
7957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7958 for pkg in $enableval; do
7959 IFS="$lt_save_ifs"
7960 if test "X$pkg" = "X$p"; then
7961 enable_fast_install=yes
7962 fi
7963 done
7964 IFS="$lt_save_ifs"
7965 ;;
7966 esac
7967 else
7968 enable_fast_install=yes
7969 fi
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981 # This can be used to rebuild libtool when needed
7982 LIBTOOL_DEPS="$ltmain"
7983
7984 # Always use our own libtool.
7985 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011 test -z "$LN_S" && LN_S="ln -s"
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 if test -n "${ZSH_VERSION+set}" ; then
8027 setopt NO_GLOB_SUBST
8028 fi
8029
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8031 $as_echo_n "checking for objdir... " >&6; }
8032 if ${lt_cv_objdir+:} false; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 rm -f .libs 2>/dev/null
8036 mkdir .libs 2>/dev/null
8037 if test -d .libs; then
8038 lt_cv_objdir=.libs
8039 else
8040 # MS-DOS does not allow filenames that begin with a dot.
8041 lt_cv_objdir=_libs
8042 fi
8043 rmdir .libs 2>/dev/null
8044 fi
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8046 $as_echo "$lt_cv_objdir" >&6; }
8047 objdir=$lt_cv_objdir
8048
8049
8050
8051
8052
8053 cat >>confdefs.h <<_ACEOF
8054 #define LT_OBJDIR "$lt_cv_objdir/"
8055 _ACEOF
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073 case $host_os in
8074 aix3*)
8075 # AIX sometimes has problems with the GCC collect2 program. For some
8076 # reason, if we set the COLLECT_NAMES environment variable, the problems
8077 # vanish in a puff of smoke.
8078 if test "X${COLLECT_NAMES+set}" != Xset; then
8079 COLLECT_NAMES=
8080 export COLLECT_NAMES
8081 fi
8082 ;;
8083 esac
8084
8085 # Sed substitution that helps us do robust quoting. It backslashifies
8086 # metacharacters that are still active within double-quoted strings.
8087 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8088
8089 # Same as above, but do not quote variable references.
8090 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8091
8092 # Sed substitution to delay expansion of an escaped shell variable in a
8093 # double_quote_subst'ed string.
8094 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8095
8096 # Sed substitution to delay expansion of an escaped single quote.
8097 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8098
8099 # Sed substitution to avoid accidental globbing in evaled expressions
8100 no_glob_subst='s/\*/\\\*/g'
8101
8102 # Global variables:
8103 ofile=libtool
8104 can_build_shared=yes
8105
8106 # All known linkers require a `.a' archive for static linking (except MSVC,
8107 # which needs '.lib').
8108 libext=a
8109
8110 with_gnu_ld="$lt_cv_prog_gnu_ld"
8111
8112 old_CC="$CC"
8113 old_CFLAGS="$CFLAGS"
8114
8115 # Set sane defaults for various variables
8116 test -z "$CC" && CC=cc
8117 test -z "$LTCC" && LTCC=$CC
8118 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8119 test -z "$LD" && LD=ld
8120 test -z "$ac_objext" && ac_objext=o
8121
8122 for cc_temp in $compiler""; do
8123 case $cc_temp in
8124 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8125 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8126 \-*) ;;
8127 *) break;;
8128 esac
8129 done
8130 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8131
8132
8133 # Only perform the check for file, if the check method requires it
8134 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8135 case $deplibs_check_method in
8136 file_magic*)
8137 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8139 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8140 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 case $MAGIC_CMD in
8144 [\\/*] | ?:[\\/]*)
8145 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8146 ;;
8147 *)
8148 lt_save_MAGIC_CMD="$MAGIC_CMD"
8149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8150 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8151 for ac_dir in $ac_dummy; do
8152 IFS="$lt_save_ifs"
8153 test -z "$ac_dir" && ac_dir=.
8154 if test -f $ac_dir/${ac_tool_prefix}file; then
8155 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8156 if test -n "$file_magic_test_file"; then
8157 case $deplibs_check_method in
8158 "file_magic "*)
8159 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8161 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8162 $EGREP "$file_magic_regex" > /dev/null; then
8163 :
8164 else
8165 cat <<_LT_EOF 1>&2
8166
8167 *** Warning: the command libtool uses to detect shared libraries,
8168 *** $file_magic_cmd, produces output that libtool cannot recognize.
8169 *** The result is that libtool may fail to recognize shared libraries
8170 *** as such. This will affect the creation of libtool libraries that
8171 *** depend on shared libraries, but programs linked with such libtool
8172 *** libraries will work regardless of this problem. Nevertheless, you
8173 *** may want to report the problem to your system manager and/or to
8174 *** bug-libtool@gnu.org
8175
8176 _LT_EOF
8177 fi ;;
8178 esac
8179 fi
8180 break
8181 fi
8182 done
8183 IFS="$lt_save_ifs"
8184 MAGIC_CMD="$lt_save_MAGIC_CMD"
8185 ;;
8186 esac
8187 fi
8188
8189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8190 if test -n "$MAGIC_CMD"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8192 $as_echo "$MAGIC_CMD" >&6; }
8193 else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196 fi
8197
8198
8199
8200
8201
8202 if test -z "$lt_cv_path_MAGIC_CMD"; then
8203 if test -n "$ac_tool_prefix"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8205 $as_echo_n "checking for file... " >&6; }
8206 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 case $MAGIC_CMD in
8210 [\\/*] | ?:[\\/]*)
8211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8212 ;;
8213 *)
8214 lt_save_MAGIC_CMD="$MAGIC_CMD"
8215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8217 for ac_dir in $ac_dummy; do
8218 IFS="$lt_save_ifs"
8219 test -z "$ac_dir" && ac_dir=.
8220 if test -f $ac_dir/file; then
8221 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8222 if test -n "$file_magic_test_file"; then
8223 case $deplibs_check_method in
8224 "file_magic "*)
8225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8228 $EGREP "$file_magic_regex" > /dev/null; then
8229 :
8230 else
8231 cat <<_LT_EOF 1>&2
8232
8233 *** Warning: the command libtool uses to detect shared libraries,
8234 *** $file_magic_cmd, produces output that libtool cannot recognize.
8235 *** The result is that libtool may fail to recognize shared libraries
8236 *** as such. This will affect the creation of libtool libraries that
8237 *** depend on shared libraries, but programs linked with such libtool
8238 *** libraries will work regardless of this problem. Nevertheless, you
8239 *** may want to report the problem to your system manager and/or to
8240 *** bug-libtool@gnu.org
8241
8242 _LT_EOF
8243 fi ;;
8244 esac
8245 fi
8246 break
8247 fi
8248 done
8249 IFS="$lt_save_ifs"
8250 MAGIC_CMD="$lt_save_MAGIC_CMD"
8251 ;;
8252 esac
8253 fi
8254
8255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8256 if test -n "$MAGIC_CMD"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8258 $as_echo "$MAGIC_CMD" >&6; }
8259 else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 fi
8263
8264
8265 else
8266 MAGIC_CMD=:
8267 fi
8268 fi
8269
8270 fi
8271 ;;
8272 esac
8273
8274 # Use C for the default configuration in the libtool script
8275
8276 lt_save_CC="$CC"
8277 ac_ext=c
8278 ac_cpp='$CPP $CPPFLAGS'
8279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8282
8283
8284 # Source file extension for C test sources.
8285 ac_ext=c
8286
8287 # Object file extension for compiled C test sources.
8288 objext=o
8289 objext=$objext
8290
8291 # Code to be used in simple compile tests
8292 lt_simple_compile_test_code="int some_variable = 0;"
8293
8294 # Code to be used in simple link tests
8295 lt_simple_link_test_code='int main(){return(0);}'
8296
8297
8298
8299
8300
8301
8302
8303 # If no C compiler was specified, use CC.
8304 LTCC=${LTCC-"$CC"}
8305
8306 # If no C compiler flags were specified, use CFLAGS.
8307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8308
8309 # Allow CC to be a program name with arguments.
8310 compiler=$CC
8311
8312 # Save the default compiler, since it gets overwritten when the other
8313 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8314 compiler_DEFAULT=$CC
8315
8316 # save warnings/boilerplate of simple test code
8317 ac_outfile=conftest.$ac_objext
8318 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8320 _lt_compiler_boilerplate=`cat conftest.err`
8321 $RM conftest*
8322
8323 ac_outfile=conftest.$ac_objext
8324 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8326 _lt_linker_boilerplate=`cat conftest.err`
8327 $RM -r conftest*
8328
8329
8330 ## CAVEAT EMPTOR:
8331 ## There is no encapsulation within the following macros, do not change
8332 ## the running order or otherwise move them around unless you know exactly
8333 ## what you are doing...
8334 if test -n "$compiler"; then
8335
8336 lt_prog_compiler_no_builtin_flag=
8337
8338 if test "$GCC" = yes; then
8339 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8340
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8342 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8343 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 lt_cv_prog_compiler_rtti_exceptions=no
8347 ac_outfile=conftest.$ac_objext
8348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349 lt_compiler_flag="-fno-rtti -fno-exceptions"
8350 # Insert the option either (1) after the last *FLAGS variable, or
8351 # (2) before a word containing "conftest.", or (3) at the end.
8352 # Note that $ac_compile itself does not contain backslashes and begins
8353 # with a dollar sign (not a hyphen), so the echo should work correctly.
8354 # The option is referenced via a variable to avoid confusing sed.
8355 lt_compile=`echo "$ac_compile" | $SED \
8356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358 -e 's:$: $lt_compiler_flag:'`
8359 (eval echo "\"\$as_me:8359: $lt_compile\"" >&5)
8360 (eval "$lt_compile" 2>conftest.err)
8361 ac_status=$?
8362 cat conftest.err >&5
8363 echo "$as_me:8363: \$? = $ac_status" >&5
8364 if (exit $ac_status) && test -s "$ac_outfile"; then
8365 # The compiler can only warn and ignore the option if not recognized
8366 # So say no if there are warnings other than the usual output.
8367 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8370 lt_cv_prog_compiler_rtti_exceptions=yes
8371 fi
8372 fi
8373 $RM conftest*
8374
8375 fi
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8377 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8378
8379 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8380 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8381 else
8382 :
8383 fi
8384
8385 fi
8386
8387
8388
8389
8390
8391
8392 lt_prog_compiler_wl=
8393 lt_prog_compiler_pic=
8394 lt_prog_compiler_static=
8395
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8397 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8398
8399 if test "$GCC" = yes; then
8400 lt_prog_compiler_wl='-Wl,'
8401 lt_prog_compiler_static='-static'
8402
8403 case $host_os in
8404 aix*)
8405 # All AIX code is PIC.
8406 if test "$host_cpu" = ia64; then
8407 # AIX 5 now supports IA64 processor
8408 lt_prog_compiler_static='-Bstatic'
8409 fi
8410 ;;
8411
8412 amigaos*)
8413 case $host_cpu in
8414 powerpc)
8415 # see comment about AmigaOS4 .so support
8416 lt_prog_compiler_pic='-fPIC'
8417 ;;
8418 m68k)
8419 # FIXME: we need at least 68020 code to build shared libraries, but
8420 # adding the `-m68020' flag to GCC prevents building anything better,
8421 # like `-m68040'.
8422 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8423 ;;
8424 esac
8425 ;;
8426
8427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8428 # PIC is the default for these OSes.
8429 ;;
8430
8431 mingw* | cygwin* | pw32* | os2* | cegcc*)
8432 # This hack is so that the source file can tell whether it is being
8433 # built for inclusion in a dll (and should export symbols for example).
8434 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8435 # (--disable-auto-import) libraries
8436 lt_prog_compiler_pic='-DDLL_EXPORT'
8437 ;;
8438
8439 darwin* | rhapsody*)
8440 # PIC is the default on this platform
8441 # Common symbols not allowed in MH_DYLIB files
8442 lt_prog_compiler_pic='-fno-common'
8443 ;;
8444
8445 hpux*)
8446 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8447 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8448 # sets the default TLS model and affects inlining.
8449 case $host_cpu in
8450 hppa*64*)
8451 # +Z the default
8452 ;;
8453 *)
8454 lt_prog_compiler_pic='-fPIC'
8455 ;;
8456 esac
8457 ;;
8458
8459 interix[3-9]*)
8460 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8461 # Instead, we relocate shared libraries at runtime.
8462 ;;
8463
8464 msdosdjgpp*)
8465 # Just because we use GCC doesn't mean we suddenly get shared libraries
8466 # on systems that don't support them.
8467 lt_prog_compiler_can_build_shared=no
8468 enable_shared=no
8469 ;;
8470
8471 *nto* | *qnx*)
8472 # QNX uses GNU C++, but need to define -shared option too, otherwise
8473 # it will coredump.
8474 lt_prog_compiler_pic='-fPIC -shared'
8475 ;;
8476
8477 sysv4*MP*)
8478 if test -d /usr/nec; then
8479 lt_prog_compiler_pic=-Kconform_pic
8480 fi
8481 ;;
8482
8483 *)
8484 lt_prog_compiler_pic='-fPIC'
8485 ;;
8486 esac
8487 else
8488 # PORTME Check for flag to pass linker flags through the system compiler.
8489 case $host_os in
8490 aix*)
8491 lt_prog_compiler_wl='-Wl,'
8492 if test "$host_cpu" = ia64; then
8493 # AIX 5 now supports IA64 processor
8494 lt_prog_compiler_static='-Bstatic'
8495 else
8496 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8497 fi
8498 ;;
8499
8500 mingw* | cygwin* | pw32* | os2* | cegcc*)
8501 # This hack is so that the source file can tell whether it is being
8502 # built for inclusion in a dll (and should export symbols for example).
8503 lt_prog_compiler_pic='-DDLL_EXPORT'
8504 ;;
8505
8506 hpux9* | hpux10* | hpux11*)
8507 lt_prog_compiler_wl='-Wl,'
8508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8509 # not for PA HP-UX.
8510 case $host_cpu in
8511 hppa*64*|ia64*)
8512 # +Z the default
8513 ;;
8514 *)
8515 lt_prog_compiler_pic='+Z'
8516 ;;
8517 esac
8518 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8519 lt_prog_compiler_static='${wl}-a ${wl}archive'
8520 ;;
8521
8522 irix5* | irix6* | nonstopux*)
8523 lt_prog_compiler_wl='-Wl,'
8524 # PIC (with -KPIC) is the default.
8525 lt_prog_compiler_static='-non_shared'
8526 ;;
8527
8528 linux* | k*bsd*-gnu)
8529 case $cc_basename in
8530 # old Intel for x86_64 which still supported -KPIC.
8531 ecc*)
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_pic='-KPIC'
8534 lt_prog_compiler_static='-static'
8535 ;;
8536 # icc used to be incompatible with GCC.
8537 # ICC 10 doesn't accept -KPIC any more.
8538 icc* | ifort*)
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='-fPIC'
8541 lt_prog_compiler_static='-static'
8542 ;;
8543 # Lahey Fortran 8.1.
8544 lf95*)
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_pic='--shared'
8547 lt_prog_compiler_static='--static'
8548 ;;
8549 pgcc* | pgf77* | pgf90* | pgf95*)
8550 # Portland Group compilers (*not* the Pentium gcc compiler,
8551 # which looks to be a dead project)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-fpic'
8554 lt_prog_compiler_static='-Bstatic'
8555 ;;
8556 ccc*)
8557 lt_prog_compiler_wl='-Wl,'
8558 # All Alpha code is PIC.
8559 lt_prog_compiler_static='-non_shared'
8560 ;;
8561 xl*)
8562 # IBM XL C 8.0/Fortran 10.1 on PPC
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-qpic'
8565 lt_prog_compiler_static='-qstaticlink'
8566 ;;
8567 *)
8568 case `$CC -V 2>&1 | sed 5q` in
8569 *Sun\ C*)
8570 # Sun C 5.9
8571 lt_prog_compiler_pic='-KPIC'
8572 lt_prog_compiler_static='-Bstatic'
8573 lt_prog_compiler_wl='-Wl,'
8574 ;;
8575 *Sun\ F*)
8576 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8577 lt_prog_compiler_pic='-KPIC'
8578 lt_prog_compiler_static='-Bstatic'
8579 lt_prog_compiler_wl=''
8580 ;;
8581 esac
8582 ;;
8583 esac
8584 ;;
8585
8586 newsos6)
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-Bstatic'
8589 ;;
8590
8591 *nto* | *qnx*)
8592 # QNX uses GNU C++, but need to define -shared option too, otherwise
8593 # it will coredump.
8594 lt_prog_compiler_pic='-fPIC -shared'
8595 ;;
8596
8597 osf3* | osf4* | osf5*)
8598 lt_prog_compiler_wl='-Wl,'
8599 # All OSF/1 code is PIC.
8600 lt_prog_compiler_static='-non_shared'
8601 ;;
8602
8603 rdos*)
8604 lt_prog_compiler_static='-non_shared'
8605 ;;
8606
8607 solaris*)
8608 lt_prog_compiler_pic='-KPIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 case $cc_basename in
8611 f77* | f90* | f95*)
8612 lt_prog_compiler_wl='-Qoption ld ';;
8613 *)
8614 lt_prog_compiler_wl='-Wl,';;
8615 esac
8616 ;;
8617
8618 sunos4*)
8619 lt_prog_compiler_wl='-Qoption ld '
8620 lt_prog_compiler_pic='-PIC'
8621 lt_prog_compiler_static='-Bstatic'
8622 ;;
8623
8624 sysv4 | sysv4.2uw2* | sysv4.3*)
8625 lt_prog_compiler_wl='-Wl,'
8626 lt_prog_compiler_pic='-KPIC'
8627 lt_prog_compiler_static='-Bstatic'
8628 ;;
8629
8630 sysv4*MP*)
8631 if test -d /usr/nec ;then
8632 lt_prog_compiler_pic='-Kconform_pic'
8633 lt_prog_compiler_static='-Bstatic'
8634 fi
8635 ;;
8636
8637 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8638 lt_prog_compiler_wl='-Wl,'
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8641 ;;
8642
8643 unicos*)
8644 lt_prog_compiler_wl='-Wl,'
8645 lt_prog_compiler_can_build_shared=no
8646 ;;
8647
8648 uts4*)
8649 lt_prog_compiler_pic='-pic'
8650 lt_prog_compiler_static='-Bstatic'
8651 ;;
8652
8653 *)
8654 lt_prog_compiler_can_build_shared=no
8655 ;;
8656 esac
8657 fi
8658
8659 case $host_os in
8660 # For platforms which do not support PIC, -DPIC is meaningless:
8661 *djgpp*)
8662 lt_prog_compiler_pic=
8663 ;;
8664 *)
8665 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8666 ;;
8667 esac
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8669 $as_echo "$lt_prog_compiler_pic" >&6; }
8670
8671
8672
8673
8674
8675
8676 #
8677 # Check to make sure the PIC flag actually works.
8678 #
8679 if test -n "$lt_prog_compiler_pic"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8681 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8682 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 lt_cv_prog_compiler_pic_works=no
8686 ac_outfile=conftest.$ac_objext
8687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8688 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8689 # Insert the option either (1) after the last *FLAGS variable, or
8690 # (2) before a word containing "conftest.", or (3) at the end.
8691 # Note that $ac_compile itself does not contain backslashes and begins
8692 # with a dollar sign (not a hyphen), so the echo should work correctly.
8693 # The option is referenced via a variable to avoid confusing sed.
8694 lt_compile=`echo "$ac_compile" | $SED \
8695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8697 -e 's:$: $lt_compiler_flag:'`
8698 (eval echo "\"\$as_me:8698: $lt_compile\"" >&5)
8699 (eval "$lt_compile" 2>conftest.err)
8700 ac_status=$?
8701 cat conftest.err >&5
8702 echo "$as_me:8702: \$? = $ac_status" >&5
8703 if (exit $ac_status) && test -s "$ac_outfile"; then
8704 # The compiler can only warn and ignore the option if not recognized
8705 # So say no if there are warnings other than the usual output.
8706 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8708 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8709 lt_cv_prog_compiler_pic_works=yes
8710 fi
8711 fi
8712 $RM conftest*
8713
8714 fi
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8716 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8717
8718 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8719 case $lt_prog_compiler_pic in
8720 "" | " "*) ;;
8721 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8722 esac
8723 else
8724 lt_prog_compiler_pic=
8725 lt_prog_compiler_can_build_shared=no
8726 fi
8727
8728 fi
8729
8730
8731
8732
8733
8734
8735 #
8736 # Check to make sure the static flag actually works.
8737 #
8738 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8741 if ${lt_cv_prog_compiler_static_works+:} false; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 lt_cv_prog_compiler_static_works=no
8745 save_LDFLAGS="$LDFLAGS"
8746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8749 # The linker can only warn and ignore the option if not recognized
8750 # So say no if there are warnings
8751 if test -s conftest.err; then
8752 # Append any errors to the config.log.
8753 cat conftest.err 1>&5
8754 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8756 if diff conftest.exp conftest.er2 >/dev/null; then
8757 lt_cv_prog_compiler_static_works=yes
8758 fi
8759 else
8760 lt_cv_prog_compiler_static_works=yes
8761 fi
8762 fi
8763 $RM -r conftest*
8764 LDFLAGS="$save_LDFLAGS"
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8768 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8769
8770 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8771 :
8772 else
8773 lt_prog_compiler_static=
8774 fi
8775
8776
8777
8778
8779
8780
8781
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8783 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8784 if ${lt_cv_prog_compiler_c_o+:} false; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 lt_cv_prog_compiler_c_o=no
8788 $RM -r conftest 2>/dev/null
8789 mkdir conftest
8790 cd conftest
8791 mkdir out
8792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8793
8794 lt_compiler_flag="-o out/conftest2.$ac_objext"
8795 # Insert the option either (1) after the last *FLAGS variable, or
8796 # (2) before a word containing "conftest.", or (3) at the end.
8797 # Note that $ac_compile itself does not contain backslashes and begins
8798 # with a dollar sign (not a hyphen), so the echo should work correctly.
8799 lt_compile=`echo "$ac_compile" | $SED \
8800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8802 -e 's:$: $lt_compiler_flag:'`
8803 (eval echo "\"\$as_me:8803: $lt_compile\"" >&5)
8804 (eval "$lt_compile" 2>out/conftest.err)
8805 ac_status=$?
8806 cat out/conftest.err >&5
8807 echo "$as_me:8807: \$? = $ac_status" >&5
8808 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8809 then
8810 # The compiler can only warn and ignore the option if not recognized
8811 # So say no if there are warnings
8812 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8815 lt_cv_prog_compiler_c_o=yes
8816 fi
8817 fi
8818 chmod u+w . 2>&5
8819 $RM conftest*
8820 # SGI C++ compiler will create directory out/ii_files/ for
8821 # template instantiation
8822 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8823 $RM out/* && rmdir out
8824 cd ..
8825 $RM -r conftest
8826 $RM conftest*
8827
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8830 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8831
8832
8833
8834
8835
8836
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8838 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8839 if ${lt_cv_prog_compiler_c_o+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 lt_cv_prog_compiler_c_o=no
8843 $RM -r conftest 2>/dev/null
8844 mkdir conftest
8845 cd conftest
8846 mkdir out
8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848
8849 lt_compiler_flag="-o out/conftest2.$ac_objext"
8850 # Insert the option either (1) after the last *FLAGS variable, or
8851 # (2) before a word containing "conftest.", or (3) at the end.
8852 # Note that $ac_compile itself does not contain backslashes and begins
8853 # with a dollar sign (not a hyphen), so the echo should work correctly.
8854 lt_compile=`echo "$ac_compile" | $SED \
8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857 -e 's:$: $lt_compiler_flag:'`
8858 (eval echo "\"\$as_me:8858: $lt_compile\"" >&5)
8859 (eval "$lt_compile" 2>out/conftest.err)
8860 ac_status=$?
8861 cat out/conftest.err >&5
8862 echo "$as_me:8862: \$? = $ac_status" >&5
8863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8864 then
8865 # The compiler can only warn and ignore the option if not recognized
8866 # So say no if there are warnings
8867 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870 lt_cv_prog_compiler_c_o=yes
8871 fi
8872 fi
8873 chmod u+w . 2>&5
8874 $RM conftest*
8875 # SGI C++ compiler will create directory out/ii_files/ for
8876 # template instantiation
8877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8878 $RM out/* && rmdir out
8879 cd ..
8880 $RM -r conftest
8881 $RM conftest*
8882
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8885 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8886
8887
8888
8889
8890 hard_links="nottested"
8891 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8892 # do not overwrite the value of need_locks provided by the user
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8894 $as_echo_n "checking if we can lock with hard links... " >&6; }
8895 hard_links=yes
8896 $RM conftest*
8897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8898 touch conftest.a
8899 ln conftest.a conftest.b 2>&5 || hard_links=no
8900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8902 $as_echo "$hard_links" >&6; }
8903 if test "$hard_links" = no; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8905 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8906 need_locks=warn
8907 fi
8908 else
8909 need_locks=no
8910 fi
8911
8912
8913
8914
8915
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8918 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8919
8920 runpath_var=
8921 allow_undefined_flag=
8922 always_export_symbols=no
8923 archive_cmds=
8924 archive_expsym_cmds=
8925 compiler_needs_object=no
8926 enable_shared_with_static_runtimes=no
8927 export_dynamic_flag_spec=
8928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8929 hardcode_automatic=no
8930 hardcode_direct=no
8931 hardcode_direct_absolute=no
8932 hardcode_libdir_flag_spec=
8933 hardcode_libdir_flag_spec_ld=
8934 hardcode_libdir_separator=
8935 hardcode_minus_L=no
8936 hardcode_shlibpath_var=unsupported
8937 inherit_rpath=no
8938 link_all_deplibs=unknown
8939 module_cmds=
8940 module_expsym_cmds=
8941 old_archive_from_new_cmds=
8942 old_archive_from_expsyms_cmds=
8943 thread_safe_flag_spec=
8944 whole_archive_flag_spec=
8945 # include_expsyms should be a list of space-separated symbols to be *always*
8946 # included in the symbol list
8947 include_expsyms=
8948 # exclude_expsyms can be an extended regexp of symbols to exclude
8949 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8950 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8951 # as well as any symbol that contains `d'.
8952 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8953 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8954 # platforms (ab)use it in PIC code, but their linkers get confused if
8955 # the symbol is explicitly referenced. Since portable code cannot
8956 # rely on this symbol name, it's probably fine to never include it in
8957 # preloaded symbol tables.
8958 # Exclude shared library initialization/finalization symbols.
8959 extract_expsyms_cmds=
8960
8961 case $host_os in
8962 cygwin* | mingw* | pw32* | cegcc*)
8963 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8964 # When not using gcc, we currently assume that we are using
8965 # Microsoft Visual C++.
8966 if test "$GCC" != yes; then
8967 with_gnu_ld=no
8968 fi
8969 ;;
8970 interix*)
8971 # we just hope/assume this is gcc and not c89 (= MSVC++)
8972 with_gnu_ld=yes
8973 ;;
8974 openbsd*)
8975 with_gnu_ld=no
8976 ;;
8977 esac
8978
8979 ld_shlibs=yes
8980 if test "$with_gnu_ld" = yes; then
8981 # If archive_cmds runs LD, not CC, wlarc should be empty
8982 wlarc='${wl}'
8983
8984 # Set some defaults for GNU ld with shared library support. These
8985 # are reset later if shared libraries are not supported. Putting them
8986 # here allows them to be overridden if necessary.
8987 runpath_var=LD_RUN_PATH
8988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8989 export_dynamic_flag_spec='${wl}--export-dynamic'
8990 # ancient GNU ld didn't support --whole-archive et. al.
8991 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8992 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8993 else
8994 whole_archive_flag_spec=
8995 fi
8996 supports_anon_versioning=no
8997 case `$LD -v 2>&1` in
8998 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8999 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9000 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9001 *\ 2.11.*) ;; # other 2.11 versions
9002 *) supports_anon_versioning=yes ;;
9003 esac
9004
9005 # See if GNU ld supports shared libraries.
9006 case $host_os in
9007 aix[3-9]*)
9008 # On AIX/PPC, the GNU linker is very broken
9009 if test "$host_cpu" != ia64; then
9010 ld_shlibs=no
9011 cat <<_LT_EOF 1>&2
9012
9013 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9014 *** to be unable to reliably create shared libraries on AIX.
9015 *** Therefore, libtool is disabling shared libraries support. If you
9016 *** really care for shared libraries, you may want to modify your PATH
9017 *** so that a non-GNU linker is found, and then restart.
9018
9019 _LT_EOF
9020 fi
9021 ;;
9022
9023 amigaos*)
9024 case $host_cpu in
9025 powerpc)
9026 # see comment about AmigaOS4 .so support
9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 archive_expsym_cmds=''
9029 ;;
9030 m68k)
9031 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)'
9032 hardcode_libdir_flag_spec='-L$libdir'
9033 hardcode_minus_L=yes
9034 ;;
9035 esac
9036 ;;
9037
9038 beos*)
9039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9040 allow_undefined_flag=unsupported
9041 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9042 # support --undefined. This deserves some investigation. FIXME
9043 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044 else
9045 ld_shlibs=no
9046 fi
9047 ;;
9048
9049 cygwin* | mingw* | pw32* | cegcc*)
9050 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9051 # as there is no search path for DLLs.
9052 hardcode_libdir_flag_spec='-L$libdir'
9053 allow_undefined_flag=unsupported
9054 always_export_symbols=no
9055 enable_shared_with_static_runtimes=yes
9056 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9057
9058 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9060 # If the export-symbols file already is a .def file (1st line
9061 # is EXPORTS), use it as is; otherwise, prepend...
9062 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9063 cp $export_symbols $output_objdir/$soname.def;
9064 else
9065 echo EXPORTS > $output_objdir/$soname.def;
9066 cat $export_symbols >> $output_objdir/$soname.def;
9067 fi~
9068 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9069 else
9070 ld_shlibs=no
9071 fi
9072 ;;
9073
9074 interix[3-9]*)
9075 hardcode_direct=no
9076 hardcode_shlibpath_var=no
9077 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9078 export_dynamic_flag_spec='${wl}-E'
9079 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9080 # Instead, shared libraries are loaded at an image base (0x10000000 by
9081 # default) and relocated if they conflict, which is a slow very memory
9082 # consuming and fragmenting process. To avoid this, we pick a random,
9083 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9084 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9085 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9086 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'
9087 ;;
9088
9089 gnu* | linux* | tpf* | k*bsd*-gnu)
9090 tmp_diet=no
9091 if test "$host_os" = linux-dietlibc; then
9092 case $cc_basename in
9093 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9094 esac
9095 fi
9096 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9097 && test "$tmp_diet" = no
9098 then
9099 tmp_addflag=
9100 tmp_sharedflag='-shared'
9101 case $cc_basename,$host_cpu in
9102 pgcc*) # Portland Group C compiler
9103 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'
9104 tmp_addflag=' $pic_flag'
9105 ;;
9106 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9107 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'
9108 tmp_addflag=' $pic_flag -Mnomain' ;;
9109 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9110 tmp_addflag=' -i_dynamic' ;;
9111 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9112 tmp_addflag=' -i_dynamic -nofor_main' ;;
9113 ifc* | ifort*) # Intel Fortran compiler
9114 tmp_addflag=' -nofor_main' ;;
9115 lf95*) # Lahey Fortran 8.1
9116 whole_archive_flag_spec=
9117 tmp_sharedflag='--shared' ;;
9118 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9119 tmp_sharedflag='-qmkshrobj'
9120 tmp_addflag= ;;
9121 esac
9122 case `$CC -V 2>&1 | sed 5q` in
9123 *Sun\ C*) # Sun C 5.9
9124 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'
9125 compiler_needs_object=yes
9126 tmp_sharedflag='-G' ;;
9127 *Sun\ F*) # Sun Fortran 8.3
9128 tmp_sharedflag='-G' ;;
9129 esac
9130 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9131
9132 if test "x$supports_anon_versioning" = xyes; then
9133 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9135 echo "local: *; };" >> $output_objdir/$libname.ver~
9136 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9137 fi
9138
9139 case $cc_basename in
9140 xlf*)
9141 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9142 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9143 hardcode_libdir_flag_spec=
9144 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9145 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9146 if test "x$supports_anon_versioning" = xyes; then
9147 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9148 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9149 echo "local: *; };" >> $output_objdir/$libname.ver~
9150 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9151 fi
9152 ;;
9153 esac
9154 else
9155 ld_shlibs=no
9156 fi
9157 ;;
9158
9159 netbsd*)
9160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9161 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9162 wlarc=
9163 else
9164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9166 fi
9167 ;;
9168
9169 solaris*)
9170 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9171 ld_shlibs=no
9172 cat <<_LT_EOF 1>&2
9173
9174 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9175 *** create shared libraries on Solaris systems. Therefore, libtool
9176 *** is disabling shared libraries support. We urge you to upgrade GNU
9177 *** binutils to release 2.9.1 or newer. Another option is to modify
9178 *** your PATH or compiler configuration so that the native linker is
9179 *** used, and then restart.
9180
9181 _LT_EOF
9182 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9185 else
9186 ld_shlibs=no
9187 fi
9188 ;;
9189
9190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9191 case `$LD -v 2>&1` in
9192 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9193 ld_shlibs=no
9194 cat <<_LT_EOF 1>&2
9195
9196 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9197 *** reliably create shared libraries on SCO systems. Therefore, libtool
9198 *** is disabling shared libraries support. We urge you to upgrade GNU
9199 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9200 *** your PATH or compiler configuration so that the native linker is
9201 *** used, and then restart.
9202
9203 _LT_EOF
9204 ;;
9205 *)
9206 # For security reasons, it is highly recommended that you always
9207 # use absolute paths for naming shared libraries, and exclude the
9208 # DT_RUNPATH tag from executables and libraries. But doing so
9209 # requires that you compile everything twice, which is a pain.
9210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9214 else
9215 ld_shlibs=no
9216 fi
9217 ;;
9218 esac
9219 ;;
9220
9221 sunos4*)
9222 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9223 wlarc=
9224 hardcode_direct=yes
9225 hardcode_shlibpath_var=no
9226 ;;
9227
9228 *)
9229 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9232 else
9233 ld_shlibs=no
9234 fi
9235 ;;
9236 esac
9237
9238 if test "$ld_shlibs" = no; then
9239 runpath_var=
9240 hardcode_libdir_flag_spec=
9241 export_dynamic_flag_spec=
9242 whole_archive_flag_spec=
9243 fi
9244 else
9245 # PORTME fill in a description of your system's linker (not GNU ld)
9246 case $host_os in
9247 aix3*)
9248 allow_undefined_flag=unsupported
9249 always_export_symbols=yes
9250 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'
9251 # Note: this linker hardcodes the directories in LIBPATH if there
9252 # are no directories specified by -L.
9253 hardcode_minus_L=yes
9254 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9255 # Neither direct hardcoding nor static linking is supported with a
9256 # broken collect2.
9257 hardcode_direct=unsupported
9258 fi
9259 ;;
9260
9261 aix[4-9]*)
9262 if test "$host_cpu" = ia64; then
9263 # On IA64, the linker does run time linking by default, so we don't
9264 # have to do anything special.
9265 aix_use_runtimelinking=no
9266 exp_sym_flag='-Bexport'
9267 no_entry_flag=""
9268 else
9269 # If we're using GNU nm, then we don't want the "-C" option.
9270 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9271 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9272 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'
9273 else
9274 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'
9275 fi
9276 aix_use_runtimelinking=no
9277
9278 # Test if we are trying to use run time linking or normal
9279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9280 # need to do runtime linking.
9281 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9282 for ld_flag in $LDFLAGS; do
9283 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9284 aix_use_runtimelinking=yes
9285 break
9286 fi
9287 done
9288 ;;
9289 esac
9290
9291 exp_sym_flag='-bexport'
9292 no_entry_flag='-bnoentry'
9293 fi
9294
9295 # When large executables or shared objects are built, AIX ld can
9296 # have problems creating the table of contents. If linking a library
9297 # or program results in "error TOC overflow" add -mminimal-toc to
9298 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9299 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9300
9301 archive_cmds=''
9302 hardcode_direct=yes
9303 hardcode_direct_absolute=yes
9304 hardcode_libdir_separator=':'
9305 link_all_deplibs=yes
9306 file_list_spec='${wl}-f,'
9307
9308 if test "$GCC" = yes; then
9309 case $host_os in aix4.[012]|aix4.[012].*)
9310 # We only want to do this on AIX 4.2 and lower, the check
9311 # below for broken collect2 doesn't work under 4.3+
9312 collect2name=`${CC} -print-prog-name=collect2`
9313 if test -f "$collect2name" &&
9314 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9315 then
9316 # We have reworked collect2
9317 :
9318 else
9319 # We have old collect2
9320 hardcode_direct=unsupported
9321 # It fails to find uninstalled libraries when the uninstalled
9322 # path is not listed in the libpath. Setting hardcode_minus_L
9323 # to unsupported forces relinking
9324 hardcode_minus_L=yes
9325 hardcode_libdir_flag_spec='-L$libdir'
9326 hardcode_libdir_separator=
9327 fi
9328 ;;
9329 esac
9330 shared_flag='-shared'
9331 if test "$aix_use_runtimelinking" = yes; then
9332 shared_flag="$shared_flag "'${wl}-G'
9333 fi
9334 else
9335 # not using gcc
9336 if test "$host_cpu" = ia64; then
9337 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9338 # chokes on -Wl,-G. The following line is correct:
9339 shared_flag='-G'
9340 else
9341 if test "$aix_use_runtimelinking" = yes; then
9342 shared_flag='${wl}-G'
9343 else
9344 shared_flag='${wl}-bM:SRE'
9345 fi
9346 fi
9347 fi
9348
9349 export_dynamic_flag_spec='${wl}-bexpall'
9350 # It seems that -bexpall does not export symbols beginning with
9351 # underscore (_), so it is better to generate a list of symbols to export.
9352 always_export_symbols=yes
9353 if test "$aix_use_runtimelinking" = yes; then
9354 # Warning - without using the other runtime loading flags (-brtl),
9355 # -berok will link without error, but may produce a broken library.
9356 allow_undefined_flag='-berok'
9357 # Determine the default libpath from the value encoded in an
9358 # empty executable.
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361
9362 int
9363 main ()
9364 {
9365
9366 ;
9367 return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9371
9372 lt_aix_libpath_sed='
9373 /Import File Strings/,/^$/ {
9374 /^0/ {
9375 s/^0 *\(.*\)$/\1/
9376 p
9377 }
9378 }'
9379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9380 # Check for a 64-bit object if we didn't find anything.
9381 if test -z "$aix_libpath"; then
9382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9383 fi
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9388
9389 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9390 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"
9391 else
9392 if test "$host_cpu" = ia64; then
9393 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9394 allow_undefined_flag="-z nodefs"
9395 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"
9396 else
9397 # Determine the default libpath from the value encoded in an
9398 # empty executable.
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401
9402 int
9403 main ()
9404 {
9405
9406 ;
9407 return 0;
9408 }
9409 _ACEOF
9410 if ac_fn_c_try_link "$LINENO"; then :
9411
9412 lt_aix_libpath_sed='
9413 /Import File Strings/,/^$/ {
9414 /^0/ {
9415 s/^0 *\(.*\)$/\1/
9416 p
9417 }
9418 }'
9419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9420 # Check for a 64-bit object if we didn't find anything.
9421 if test -z "$aix_libpath"; then
9422 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9423 fi
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext conftest.$ac_ext
9427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9428
9429 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9430 # Warning - without using the other run time loading flags,
9431 # -berok will link without error, but may produce a broken library.
9432 no_undefined_flag=' ${wl}-bernotok'
9433 allow_undefined_flag=' ${wl}-berok'
9434 # Exported symbols can be pulled into shared objects from archives
9435 whole_archive_flag_spec='$convenience'
9436 archive_cmds_need_lc=yes
9437 # This is similar to how AIX traditionally builds its shared libraries.
9438 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'
9439 fi
9440 fi
9441 ;;
9442
9443 amigaos*)
9444 case $host_cpu in
9445 powerpc)
9446 # see comment about AmigaOS4 .so support
9447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448 archive_expsym_cmds=''
9449 ;;
9450 m68k)
9451 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)'
9452 hardcode_libdir_flag_spec='-L$libdir'
9453 hardcode_minus_L=yes
9454 ;;
9455 esac
9456 ;;
9457
9458 bsdi[45]*)
9459 export_dynamic_flag_spec=-rdynamic
9460 ;;
9461
9462 cygwin* | mingw* | pw32* | cegcc*)
9463 # When not using gcc, we currently assume that we are using
9464 # Microsoft Visual C++.
9465 # hardcode_libdir_flag_spec is actually meaningless, as there is
9466 # no search path for DLLs.
9467 hardcode_libdir_flag_spec=' '
9468 allow_undefined_flag=unsupported
9469 # Tell ltmain to make .lib files, not .a files.
9470 libext=lib
9471 # Tell ltmain to make .dll files, not .so files.
9472 shrext_cmds=".dll"
9473 # FIXME: Setting linknames here is a bad hack.
9474 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9475 # The linker will automatically build a .lib file if we build a DLL.
9476 old_archive_from_new_cmds='true'
9477 # FIXME: Should let the user specify the lib program.
9478 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9479 fix_srcfile_path='`cygpath -w "$srcfile"`'
9480 enable_shared_with_static_runtimes=yes
9481 ;;
9482
9483 darwin* | rhapsody*)
9484
9485
9486 archive_cmds_need_lc=no
9487 hardcode_direct=no
9488 hardcode_automatic=yes
9489 hardcode_shlibpath_var=unsupported
9490 whole_archive_flag_spec=''
9491 link_all_deplibs=yes
9492 allow_undefined_flag="$_lt_dar_allow_undefined"
9493 case $cc_basename in
9494 ifort*) _lt_dar_can_shared=yes ;;
9495 *) _lt_dar_can_shared=$GCC ;;
9496 esac
9497 if test "$_lt_dar_can_shared" = "yes"; then
9498 output_verbose_link_cmd=echo
9499 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9500 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9501 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}"
9502 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}"
9503
9504 else
9505 ld_shlibs=no
9506 fi
9507
9508 ;;
9509
9510 dgux*)
9511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_shlibpath_var=no
9514 ;;
9515
9516 freebsd1*)
9517 ld_shlibs=no
9518 ;;
9519
9520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9521 # support. Future versions do this automatically, but an explicit c++rt0.o
9522 # does not break anything, and helps significantly (at the cost of a little
9523 # extra space).
9524 freebsd2.2*)
9525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9526 hardcode_libdir_flag_spec='-R$libdir'
9527 hardcode_direct=yes
9528 hardcode_shlibpath_var=no
9529 ;;
9530
9531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9532 freebsd2*)
9533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_direct=yes
9535 hardcode_minus_L=yes
9536 hardcode_shlibpath_var=no
9537 ;;
9538
9539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9540 freebsd* | dragonfly*)
9541 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9542 hardcode_libdir_flag_spec='-R$libdir'
9543 hardcode_direct=yes
9544 hardcode_shlibpath_var=no
9545 ;;
9546
9547 hpux9*)
9548 if test "$GCC" = yes; then
9549 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'
9550 else
9551 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'
9552 fi
9553 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9554 hardcode_libdir_separator=:
9555 hardcode_direct=yes
9556
9557 # hardcode_minus_L: Not really in the search PATH,
9558 # but as the default location of the library.
9559 hardcode_minus_L=yes
9560 export_dynamic_flag_spec='${wl}-E'
9561 ;;
9562
9563 hpux10*)
9564 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9565 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9566 else
9567 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9568 fi
9569 if test "$with_gnu_ld" = no; then
9570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571 hardcode_libdir_flag_spec_ld='+b $libdir'
9572 hardcode_libdir_separator=:
9573 hardcode_direct=yes
9574 hardcode_direct_absolute=yes
9575 export_dynamic_flag_spec='${wl}-E'
9576 # hardcode_minus_L: Not really in the search PATH,
9577 # but as the default location of the library.
9578 hardcode_minus_L=yes
9579 fi
9580 ;;
9581
9582 hpux11*)
9583 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9584 case $host_cpu in
9585 hppa*64*)
9586 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9587 ;;
9588 ia64*)
9589 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9590 ;;
9591 *)
9592 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9593 ;;
9594 esac
9595 else
9596 case $host_cpu in
9597 hppa*64*)
9598 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9599 ;;
9600 ia64*)
9601 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9602 ;;
9603 *)
9604 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9605 ;;
9606 esac
9607 fi
9608 if test "$with_gnu_ld" = no; then
9609 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9610 hardcode_libdir_separator=:
9611
9612 case $host_cpu in
9613 hppa*64*|ia64*)
9614 hardcode_direct=no
9615 hardcode_shlibpath_var=no
9616 ;;
9617 *)
9618 hardcode_direct=yes
9619 hardcode_direct_absolute=yes
9620 export_dynamic_flag_spec='${wl}-E'
9621
9622 # hardcode_minus_L: Not really in the search PATH,
9623 # but as the default location of the library.
9624 hardcode_minus_L=yes
9625 ;;
9626 esac
9627 fi
9628 ;;
9629
9630 irix5* | irix6* | nonstopux*)
9631 if test "$GCC" = yes; then
9632 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'
9633 # Try to use the -exported_symbol ld option, if it does not
9634 # work, assume that -exports_file does not work either and
9635 # implicitly export all symbols.
9636 save_LDFLAGS="$LDFLAGS"
9637 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9640 int foo(void) {}
9641 _ACEOF
9642 if ac_fn_c_try_link "$LINENO"; then :
9643 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'
9644
9645 fi
9646 rm -f core conftest.err conftest.$ac_objext \
9647 conftest$ac_exeext conftest.$ac_ext
9648 LDFLAGS="$save_LDFLAGS"
9649 else
9650 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'
9651 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'
9652 fi
9653 archive_cmds_need_lc='no'
9654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655 hardcode_libdir_separator=:
9656 inherit_rpath=yes
9657 link_all_deplibs=yes
9658 ;;
9659
9660 netbsd*)
9661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9663 else
9664 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9665 fi
9666 hardcode_libdir_flag_spec='-R$libdir'
9667 hardcode_direct=yes
9668 hardcode_shlibpath_var=no
9669 ;;
9670
9671 newsos6)
9672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_direct=yes
9674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9675 hardcode_libdir_separator=:
9676 hardcode_shlibpath_var=no
9677 ;;
9678
9679 *nto* | *qnx*)
9680 ;;
9681
9682 openbsd*)
9683 if test -f /usr/libexec/ld.so; then
9684 hardcode_direct=yes
9685 hardcode_shlibpath_var=no
9686 hardcode_direct_absolute=yes
9687 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9688 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9689 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9691 export_dynamic_flag_spec='${wl}-E'
9692 else
9693 case $host_os in
9694 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_libdir_flag_spec='-R$libdir'
9697 ;;
9698 *)
9699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9701 ;;
9702 esac
9703 fi
9704 else
9705 ld_shlibs=no
9706 fi
9707 ;;
9708
9709 os2*)
9710 hardcode_libdir_flag_spec='-L$libdir'
9711 hardcode_minus_L=yes
9712 allow_undefined_flag=unsupported
9713 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'
9714 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9715 ;;
9716
9717 osf3*)
9718 if test "$GCC" = yes; then
9719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9720 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'
9721 else
9722 allow_undefined_flag=' -expect_unresolved \*'
9723 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'
9724 fi
9725 archive_cmds_need_lc='no'
9726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9727 hardcode_libdir_separator=:
9728 ;;
9729
9730 osf4* | osf5*) # as osf3* with the addition of -msym flag
9731 if test "$GCC" = yes; then
9732 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9733 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'
9734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9735 else
9736 allow_undefined_flag=' -expect_unresolved \*'
9737 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'
9738 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~
9739 $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'
9740
9741 # Both c and cxx compiler support -rpath directly
9742 hardcode_libdir_flag_spec='-rpath $libdir'
9743 fi
9744 archive_cmds_need_lc='no'
9745 hardcode_libdir_separator=:
9746 ;;
9747
9748 solaris*)
9749 no_undefined_flag=' -z defs'
9750 if test "$GCC" = yes; then
9751 wlarc='${wl}'
9752 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9754 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9755 else
9756 case `$CC -V 2>&1` in
9757 *"Compilers 5.0"*)
9758 wlarc=''
9759 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9761 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9762 ;;
9763 *)
9764 wlarc='${wl}'
9765 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9766 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9767 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9768 ;;
9769 esac
9770 fi
9771 hardcode_libdir_flag_spec='-R$libdir'
9772 hardcode_shlibpath_var=no
9773 case $host_os in
9774 solaris2.[0-5] | solaris2.[0-5].*) ;;
9775 *)
9776 # The compiler driver will combine and reorder linker options,
9777 # but understands `-z linker_flag'. GCC discards it without `$wl',
9778 # but is careful enough not to reorder.
9779 # Supported since Solaris 2.6 (maybe 2.5.1?)
9780 if test "$GCC" = yes; then
9781 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9782 else
9783 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9784 fi
9785 ;;
9786 esac
9787 link_all_deplibs=yes
9788 ;;
9789
9790 sunos4*)
9791 if test "x$host_vendor" = xsequent; then
9792 # Use $CC to link under sequent, because it throws in some extra .o
9793 # files that make .init and .fini sections work.
9794 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9795 else
9796 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9797 fi
9798 hardcode_libdir_flag_spec='-L$libdir'
9799 hardcode_direct=yes
9800 hardcode_minus_L=yes
9801 hardcode_shlibpath_var=no
9802 ;;
9803
9804 sysv4)
9805 case $host_vendor in
9806 sni)
9807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808 hardcode_direct=yes # is this really true???
9809 ;;
9810 siemens)
9811 ## LD is ld it makes a PLAMLIB
9812 ## CC just makes a GrossModule.
9813 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9814 reload_cmds='$CC -r -o $output$reload_objs'
9815 hardcode_direct=no
9816 ;;
9817 motorola)
9818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9820 ;;
9821 esac
9822 runpath_var='LD_RUN_PATH'
9823 hardcode_shlibpath_var=no
9824 ;;
9825
9826 sysv4.3*)
9827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828 hardcode_shlibpath_var=no
9829 export_dynamic_flag_spec='-Bexport'
9830 ;;
9831
9832 sysv4*MP*)
9833 if test -d /usr/nec; then
9834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9835 hardcode_shlibpath_var=no
9836 runpath_var=LD_RUN_PATH
9837 hardcode_runpath_var=yes
9838 ld_shlibs=yes
9839 fi
9840 ;;
9841
9842 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9843 no_undefined_flag='${wl}-z,text'
9844 archive_cmds_need_lc=no
9845 hardcode_shlibpath_var=no
9846 runpath_var='LD_RUN_PATH'
9847
9848 if test "$GCC" = yes; then
9849 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851 else
9852 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9853 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 fi
9855 ;;
9856
9857 sysv5* | sco3.2v5* | sco5v6*)
9858 # Note: We can NOT use -z defs as we might desire, because we do not
9859 # link with -lc, and that would cause any symbols used from libc to
9860 # always be unresolved, which means just about no library would
9861 # ever link correctly. If we're not using GNU ld we use -z text
9862 # though, which does catch some bad symbols but isn't as heavy-handed
9863 # as -z defs.
9864 no_undefined_flag='${wl}-z,text'
9865 allow_undefined_flag='${wl}-z,nodefs'
9866 archive_cmds_need_lc=no
9867 hardcode_shlibpath_var=no
9868 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9869 hardcode_libdir_separator=':'
9870 link_all_deplibs=yes
9871 export_dynamic_flag_spec='${wl}-Bexport'
9872 runpath_var='LD_RUN_PATH'
9873
9874 if test "$GCC" = yes; then
9875 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9876 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 else
9878 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9879 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9880 fi
9881 ;;
9882
9883 uts4*)
9884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9885 hardcode_libdir_flag_spec='-L$libdir'
9886 hardcode_shlibpath_var=no
9887 ;;
9888
9889 *)
9890 ld_shlibs=no
9891 ;;
9892 esac
9893
9894 if test x$host_vendor = xsni; then
9895 case $host in
9896 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9897 export_dynamic_flag_spec='${wl}-Blargedynsym'
9898 ;;
9899 esac
9900 fi
9901 fi
9902
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9904 $as_echo "$ld_shlibs" >&6; }
9905 test "$ld_shlibs" = no && can_build_shared=no
9906
9907 with_gnu_ld=$with_gnu_ld
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923 #
9924 # Do we need to explicitly link libc?
9925 #
9926 case "x$archive_cmds_need_lc" in
9927 x|xyes)
9928 # Assume -lc should be added
9929 archive_cmds_need_lc=yes
9930
9931 if test "$enable_shared" = yes && test "$GCC" = yes; then
9932 case $archive_cmds in
9933 *'~'*)
9934 # FIXME: we may have to deal with multi-command sequences.
9935 ;;
9936 '$CC '*)
9937 # Test whether the compiler implicitly links with -lc since on some
9938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9939 # to ld, don't add -lc before -lgcc.
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9941 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9942 $RM conftest*
9943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9944
9945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9946 (eval $ac_compile) 2>&5
9947 ac_status=$?
9948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9949 test $ac_status = 0; } 2>conftest.err; then
9950 soname=conftest
9951 lib=conftest
9952 libobjs=conftest.$ac_objext
9953 deplibs=
9954 wl=$lt_prog_compiler_wl
9955 pic_flag=$lt_prog_compiler_pic
9956 compiler_flags=-v
9957 linker_flags=-v
9958 verstring=
9959 output_objdir=.
9960 libname=conftest
9961 lt_save_allow_undefined_flag=$allow_undefined_flag
9962 allow_undefined_flag=
9963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9964 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9965 ac_status=$?
9966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9967 test $ac_status = 0; }
9968 then
9969 archive_cmds_need_lc=no
9970 else
9971 archive_cmds_need_lc=yes
9972 fi
9973 allow_undefined_flag=$lt_save_allow_undefined_flag
9974 else
9975 cat conftest.err 1>&5
9976 fi
9977 $RM conftest*
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9979 $as_echo "$archive_cmds_need_lc" >&6; }
9980 ;;
9981 esac
9982 fi
9983 ;;
9984 esac
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
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10143 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10144
10145 if test "$GCC" = yes; then
10146 case $host_os in
10147 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10148 *) lt_awk_arg="/^libraries:/" ;;
10149 esac
10150 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10151 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10152 # if the path contains ";" then we assume it to be the separator
10153 # otherwise default to the standard path separator (i.e. ":") - it is
10154 # assumed that no part of a normal pathname contains ";" but that should
10155 # okay in the real world where ";" in dirpaths is itself problematic.
10156 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10157 else
10158 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10159 fi
10160 # Ok, now we have the path, separated by spaces, we can step through it
10161 # and add multilib dir if necessary.
10162 lt_tmp_lt_search_path_spec=
10163 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10164 for lt_sys_path in $lt_search_path_spec; do
10165 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10166 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10167 else
10168 test -d "$lt_sys_path" && \
10169 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10170 fi
10171 done
10172 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10173 BEGIN {RS=" "; FS="/|\n";} {
10174 lt_foo="";
10175 lt_count=0;
10176 for (lt_i = NF; lt_i > 0; lt_i--) {
10177 if ($lt_i != "" && $lt_i != ".") {
10178 if ($lt_i == "..") {
10179 lt_count++;
10180 } else {
10181 if (lt_count == 0) {
10182 lt_foo="/" $lt_i lt_foo;
10183 } else {
10184 lt_count--;
10185 }
10186 }
10187 }
10188 }
10189 if (lt_foo != "") { lt_freq[lt_foo]++; }
10190 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10191 }'`
10192 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10193 else
10194 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10195 fi
10196 library_names_spec=
10197 libname_spec='lib$name'
10198 soname_spec=
10199 shrext_cmds=".so"
10200 postinstall_cmds=
10201 postuninstall_cmds=
10202 finish_cmds=
10203 finish_eval=
10204 shlibpath_var=
10205 shlibpath_overrides_runpath=unknown
10206 version_type=none
10207 dynamic_linker="$host_os ld.so"
10208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10209 need_lib_prefix=unknown
10210 hardcode_into_libs=no
10211
10212 # when you set need_version to no, make sure it does not cause -set_version
10213 # flags to be left without arguments
10214 need_version=unknown
10215
10216 case $host_os in
10217 aix3*)
10218 version_type=linux
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10220 shlibpath_var=LIBPATH
10221
10222 # AIX 3 has no versioning support, so we append a major version to the name.
10223 soname_spec='${libname}${release}${shared_ext}$major'
10224 ;;
10225
10226 aix[4-9]*)
10227 version_type=linux
10228 need_lib_prefix=no
10229 need_version=no
10230 hardcode_into_libs=yes
10231 if test "$host_cpu" = ia64; then
10232 # AIX 5 supports IA64
10233 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 else
10236 # With GCC up to 2.95.x, collect2 would create an import file
10237 # for dependence libraries. The import file would start with
10238 # the line `#! .'. This would cause the generated library to
10239 # depend on `.', always an invalid library. This was fixed in
10240 # development snapshots of GCC prior to 3.0.
10241 case $host_os in
10242 aix4 | aix4.[01] | aix4.[01].*)
10243 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10244 echo ' yes '
10245 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10246 :
10247 else
10248 can_build_shared=no
10249 fi
10250 ;;
10251 esac
10252 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10253 # soname into executable. Probably we can add versioning support to
10254 # collect2, so additional links can be useful in future.
10255 if test "$aix_use_runtimelinking" = yes; then
10256 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10257 # instead of lib<name>.a to let people know that these are not
10258 # typical AIX shared libraries.
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 else
10261 # We preserve .a as extension for shared libraries through AIX4.2
10262 # and later when we are not doing run time linking.
10263 library_names_spec='${libname}${release}.a $libname.a'
10264 soname_spec='${libname}${release}${shared_ext}$major'
10265 fi
10266 shlibpath_var=LIBPATH
10267 fi
10268 ;;
10269
10270 amigaos*)
10271 case $host_cpu in
10272 powerpc)
10273 # Since July 2007 AmigaOS4 officially supports .so libraries.
10274 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 ;;
10277 m68k)
10278 library_names_spec='$libname.ixlibrary $libname.a'
10279 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10280 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'
10281 ;;
10282 esac
10283 ;;
10284
10285 beos*)
10286 library_names_spec='${libname}${shared_ext}'
10287 dynamic_linker="$host_os ld.so"
10288 shlibpath_var=LIBRARY_PATH
10289 ;;
10290
10291 bsdi[45]*)
10292 version_type=linux
10293 need_version=no
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10299 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10300 # the default ld.so.conf also contains /usr/contrib/lib and
10301 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10302 # libtool to hard-code these into programs
10303 ;;
10304
10305 cygwin* | mingw* | pw32* | cegcc*)
10306 version_type=windows
10307 shrext_cmds=".dll"
10308 need_version=no
10309 need_lib_prefix=no
10310
10311 case $GCC,$host_os in
10312 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10313 library_names_spec='$libname.dll.a'
10314 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10315 postinstall_cmds='base_file=`basename \${file}`~
10316 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10317 dldir=$destdir/`dirname \$dlpath`~
10318 test -d \$dldir || mkdir -p \$dldir~
10319 $install_prog $dir/$dlname \$dldir/$dlname~
10320 chmod a+x \$dldir/$dlname~
10321 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10322 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10323 fi'
10324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10325 dlpath=$dir/\$dldll~
10326 $RM \$dlpath'
10327 shlibpath_overrides_runpath=yes
10328
10329 case $host_os in
10330 cygwin*)
10331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10334 ;;
10335 mingw* | cegcc*)
10336 # MinGW DLLs use traditional 'lib' prefix
10337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10338 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10339 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10340 # It is most probably a Windows format PATH printed by
10341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10342 # path with ; separators, and with drive letters. We can handle the
10343 # drive letters (cygwin fileutils understands them), so leave them,
10344 # especially as we might pass files found there to a mingw objdump,
10345 # which wouldn't understand a cygwinified path. Ahh.
10346 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10347 else
10348 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10349 fi
10350 ;;
10351 pw32*)
10352 # pw32 DLLs use 'pw' prefix rather than 'lib'
10353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10354 ;;
10355 esac
10356 ;;
10357
10358 *)
10359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10360 ;;
10361 esac
10362 dynamic_linker='Win32 ld.exe'
10363 # FIXME: first we should search . and the directory the executable is in
10364 shlibpath_var=PATH
10365 ;;
10366
10367 darwin* | rhapsody*)
10368 dynamic_linker="$host_os dyld"
10369 version_type=darwin
10370 need_lib_prefix=no
10371 need_version=no
10372 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10373 soname_spec='${libname}${release}${major}$shared_ext'
10374 shlibpath_overrides_runpath=yes
10375 shlibpath_var=DYLD_LIBRARY_PATH
10376 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10377
10378 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10380 ;;
10381
10382 dgux*)
10383 version_type=linux
10384 need_lib_prefix=no
10385 need_version=no
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 ;;
10390
10391 freebsd1*)
10392 dynamic_linker=no
10393 ;;
10394
10395 freebsd* | dragonfly*)
10396 # DragonFly does not have aout. When/if they implement a new
10397 # versioning mechanism, adjust this.
10398 if test -x /usr/bin/objformat; then
10399 objformat=`/usr/bin/objformat`
10400 else
10401 case $host_os in
10402 freebsd[123]*) objformat=aout ;;
10403 *) objformat=elf ;;
10404 esac
10405 fi
10406 version_type=freebsd-$objformat
10407 case $version_type in
10408 freebsd-elf*)
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10410 need_version=no
10411 need_lib_prefix=no
10412 ;;
10413 freebsd-*)
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10415 need_version=yes
10416 ;;
10417 esac
10418 shlibpath_var=LD_LIBRARY_PATH
10419 case $host_os in
10420 freebsd2*)
10421 shlibpath_overrides_runpath=yes
10422 ;;
10423 freebsd3.[01]* | freebsdelf3.[01]*)
10424 shlibpath_overrides_runpath=yes
10425 hardcode_into_libs=yes
10426 ;;
10427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10429 shlibpath_overrides_runpath=no
10430 hardcode_into_libs=yes
10431 ;;
10432 *) # from 4.6 on, and DragonFly
10433 shlibpath_overrides_runpath=yes
10434 hardcode_into_libs=yes
10435 ;;
10436 esac
10437 ;;
10438
10439 gnu*)
10440 version_type=linux
10441 need_lib_prefix=no
10442 need_version=no
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 shlibpath_var=LD_LIBRARY_PATH
10446 hardcode_into_libs=yes
10447 ;;
10448
10449 hpux9* | hpux10* | hpux11*)
10450 # Give a soname corresponding to the major version so that dld.sl refuses to
10451 # link against other versions.
10452 version_type=sunos
10453 need_lib_prefix=no
10454 need_version=no
10455 case $host_cpu in
10456 ia64*)
10457 shrext_cmds='.so'
10458 hardcode_into_libs=yes
10459 dynamic_linker="$host_os dld.so"
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 if test "X$HPUX_IA64_MODE" = X32; then
10465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10466 else
10467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10468 fi
10469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10470 ;;
10471 hppa*64*)
10472 shrext_cmds='.sl'
10473 hardcode_into_libs=yes
10474 dynamic_linker="$host_os dld.sl"
10475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10481 ;;
10482 *)
10483 shrext_cmds='.sl'
10484 dynamic_linker="$host_os dld.sl"
10485 shlibpath_var=SHLIB_PATH
10486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 ;;
10490 esac
10491 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10492 postinstall_cmds='chmod 555 $lib'
10493 ;;
10494
10495 interix[3-9]*)
10496 version_type=linux
10497 need_lib_prefix=no
10498 need_version=no
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=no
10504 hardcode_into_libs=yes
10505 ;;
10506
10507 irix5* | irix6* | nonstopux*)
10508 case $host_os in
10509 nonstopux*) version_type=nonstopux ;;
10510 *)
10511 if test "$lt_cv_prog_gnu_ld" = yes; then
10512 version_type=linux
10513 else
10514 version_type=irix
10515 fi ;;
10516 esac
10517 need_lib_prefix=no
10518 need_version=no
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10521 case $host_os in
10522 irix5* | nonstopux*)
10523 libsuff= shlibsuff=
10524 ;;
10525 *)
10526 case $LD in # libtool.m4 will add one of these switches to LD
10527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10528 libsuff= shlibsuff= libmagic=32-bit;;
10529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10530 libsuff=32 shlibsuff=N32 libmagic=N32;;
10531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10533 *) libsuff= shlibsuff= libmagic=never-match;;
10534 esac
10535 ;;
10536 esac
10537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10538 shlibpath_overrides_runpath=no
10539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10541 hardcode_into_libs=yes
10542 ;;
10543
10544 # No shared lib support for Linux oldld, aout, or coff.
10545 linux*oldld* | linux*aout* | linux*coff*)
10546 dynamic_linker=no
10547 ;;
10548
10549 # This must be Linux ELF.
10550 linux* | k*bsd*-gnu)
10551 version_type=linux
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559 # Some binutils ld are patched to set DT_RUNPATH
10560 save_LDFLAGS=$LDFLAGS
10561 save_libdir=$libdir
10562 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10563 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10566
10567 int
10568 main ()
10569 {
10570
10571 ;
10572 return 0;
10573 }
10574 _ACEOF
10575 if ac_fn_c_try_link "$LINENO"; then :
10576 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10577 shlibpath_overrides_runpath=yes
10578 fi
10579 fi
10580 rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LDFLAGS=$save_LDFLAGS
10583 libdir=$save_libdir
10584
10585 # This implies no fast_install, which is unacceptable.
10586 # Some rework will be needed to allow for fast_install
10587 # before this can be enabled.
10588 hardcode_into_libs=yes
10589
10590 # Append ld.so.conf contents to the search path
10591 if test -f /etc/ld.so.conf; then
10592 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' ' '`
10593 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10594 fi
10595
10596 # We used to test for /lib/ld.so.1 and disable shared libraries on
10597 # powerpc, because MkLinux only supported shared libraries with the
10598 # GNU dynamic linker. Since this was broken with cross compilers,
10599 # most powerpc-linux boxes support dynamic linking these days and
10600 # people can always --disable-shared, the test was removed, and we
10601 # assume the GNU/Linux dynamic linker is in use.
10602 dynamic_linker='GNU/Linux ld.so'
10603 ;;
10604
10605 netbsd*)
10606 version_type=sunos
10607 need_lib_prefix=no
10608 need_version=no
10609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10612 dynamic_linker='NetBSD (a.out) ld.so'
10613 else
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 dynamic_linker='NetBSD ld.elf_so'
10617 fi
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes
10620 hardcode_into_libs=yes
10621 ;;
10622
10623 newsos6)
10624 version_type=linux
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 shlibpath_overrides_runpath=yes
10628 ;;
10629
10630 *nto* | *qnx*)
10631 version_type=qnx
10632 need_lib_prefix=no
10633 need_version=no
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 shlibpath_overrides_runpath=no
10638 hardcode_into_libs=yes
10639 dynamic_linker='ldqnx.so'
10640 ;;
10641
10642 openbsd*)
10643 version_type=sunos
10644 sys_lib_dlsearch_path_spec="/usr/lib"
10645 need_lib_prefix=no
10646 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10647 case $host_os in
10648 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10649 *) need_version=no ;;
10650 esac
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10655 case $host_os in
10656 openbsd2.[89] | openbsd2.[89].*)
10657 shlibpath_overrides_runpath=no
10658 ;;
10659 *)
10660 shlibpath_overrides_runpath=yes
10661 ;;
10662 esac
10663 else
10664 shlibpath_overrides_runpath=yes
10665 fi
10666 ;;
10667
10668 os2*)
10669 libname_spec='$name'
10670 shrext_cmds=".dll"
10671 need_lib_prefix=no
10672 library_names_spec='$libname${shared_ext} $libname.a'
10673 dynamic_linker='OS/2 ld.exe'
10674 shlibpath_var=LIBPATH
10675 ;;
10676
10677 osf3* | osf4* | osf5*)
10678 version_type=osf
10679 need_lib_prefix=no
10680 need_version=no
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10685 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10686 ;;
10687
10688 rdos*)
10689 dynamic_linker=no
10690 ;;
10691
10692 solaris*)
10693 version_type=linux
10694 need_lib_prefix=no
10695 need_version=no
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=yes
10700 hardcode_into_libs=yes
10701 # ldd complains unless libraries are executable
10702 postinstall_cmds='chmod +x $lib'
10703 ;;
10704
10705 sunos4*)
10706 version_type=sunos
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10708 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=yes
10711 if test "$with_gnu_ld" = yes; then
10712 need_lib_prefix=no
10713 fi
10714 need_version=yes
10715 ;;
10716
10717 sysv4 | sysv4.3*)
10718 version_type=linux
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 case $host_vendor in
10723 sni)
10724 shlibpath_overrides_runpath=no
10725 need_lib_prefix=no
10726 runpath_var=LD_RUN_PATH
10727 ;;
10728 siemens)
10729 need_lib_prefix=no
10730 ;;
10731 motorola)
10732 need_lib_prefix=no
10733 need_version=no
10734 shlibpath_overrides_runpath=no
10735 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10736 ;;
10737 esac
10738 ;;
10739
10740 sysv4*MP*)
10741 if test -d /usr/nec ;then
10742 version_type=linux
10743 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10744 soname_spec='$libname${shared_ext}.$major'
10745 shlibpath_var=LD_LIBRARY_PATH
10746 fi
10747 ;;
10748
10749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10750 version_type=freebsd-elf
10751 need_lib_prefix=no
10752 need_version=no
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 shlibpath_overrides_runpath=yes
10757 hardcode_into_libs=yes
10758 if test "$with_gnu_ld" = yes; then
10759 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10760 else
10761 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10762 case $host_os in
10763 sco3.2v5*)
10764 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10765 ;;
10766 esac
10767 fi
10768 sys_lib_dlsearch_path_spec='/usr/lib'
10769 ;;
10770
10771 tpf*)
10772 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10773 version_type=linux
10774 need_lib_prefix=no
10775 need_version=no
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=no
10779 hardcode_into_libs=yes
10780 ;;
10781
10782 uts4*)
10783 version_type=linux
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785 soname_spec='${libname}${release}${shared_ext}$major'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 ;;
10788
10789 *)
10790 dynamic_linker=no
10791 ;;
10792 esac
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10794 $as_echo "$dynamic_linker" >&6; }
10795 test "$dynamic_linker" = no && can_build_shared=no
10796
10797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10798 if test "$GCC" = yes; then
10799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10800 fi
10801
10802 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10803 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10804 fi
10805 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10806 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10807 fi
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10896 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10897 hardcode_action=
10898 if test -n "$hardcode_libdir_flag_spec" ||
10899 test -n "$runpath_var" ||
10900 test "X$hardcode_automatic" = "Xyes" ; then
10901
10902 # We can hardcode non-existent directories.
10903 if test "$hardcode_direct" != no &&
10904 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10905 # have to relink, otherwise we might link with an installed library
10906 # when we should be linking with a yet-to-be-installed one
10907 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10908 test "$hardcode_minus_L" != no; then
10909 # Linking always hardcodes the temporary library directory.
10910 hardcode_action=relink
10911 else
10912 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10913 hardcode_action=immediate
10914 fi
10915 else
10916 # We cannot hardcode anything, or else we can only hardcode existing
10917 # directories.
10918 hardcode_action=unsupported
10919 fi
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10921 $as_echo "$hardcode_action" >&6; }
10922
10923 if test "$hardcode_action" = relink ||
10924 test "$inherit_rpath" = yes; then
10925 # Fast installation is not supported
10926 enable_fast_install=no
10927 elif test "$shlibpath_overrides_runpath" = yes ||
10928 test "$enable_shared" = no; then
10929 # Fast installation is not necessary
10930 enable_fast_install=needless
10931 fi
10932
10933
10934
10935
10936
10937
10938 if test "x$enable_dlopen" != xyes; then
10939 enable_dlopen=unknown
10940 enable_dlopen_self=unknown
10941 enable_dlopen_self_static=unknown
10942 else
10943 lt_cv_dlopen=no
10944 lt_cv_dlopen_libs=
10945
10946 case $host_os in
10947 beos*)
10948 lt_cv_dlopen="load_add_on"
10949 lt_cv_dlopen_libs=
10950 lt_cv_dlopen_self=yes
10951 ;;
10952
10953 mingw* | pw32* | cegcc*)
10954 lt_cv_dlopen="LoadLibrary"
10955 lt_cv_dlopen_libs=
10956 ;;
10957
10958 cygwin*)
10959 lt_cv_dlopen="dlopen"
10960 lt_cv_dlopen_libs=
10961 ;;
10962
10963 darwin*)
10964 # if libdl is installed we need to link against it
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10966 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10967 if ${ac_cv_lib_dl_dlopen+:} false; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 ac_check_lib_save_LIBS=$LIBS
10971 LIBS="-ldl $LIBS"
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10974
10975 /* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10978 #ifdef __cplusplus
10979 extern "C"
10980 #endif
10981 char dlopen ();
10982 int
10983 main ()
10984 {
10985 return dlopen ();
10986 ;
10987 return 0;
10988 }
10989 _ACEOF
10990 if ac_fn_c_try_link "$LINENO"; then :
10991 ac_cv_lib_dl_dlopen=yes
10992 else
10993 ac_cv_lib_dl_dlopen=no
10994 fi
10995 rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11000 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11001 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11003 else
11004
11005 lt_cv_dlopen="dyld"
11006 lt_cv_dlopen_libs=
11007 lt_cv_dlopen_self=yes
11008
11009 fi
11010
11011 ;;
11012
11013 *)
11014 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11015 if test "x$ac_cv_func_shl_load" = xyes; then :
11016 lt_cv_dlopen="shl_load"
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11019 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11020 if ${ac_cv_lib_dld_shl_load+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-ldld $LIBS"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char shl_load ();
11035 int
11036 main ()
11037 {
11038 return shl_load ();
11039 ;
11040 return 0;
11041 }
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 ac_cv_lib_dld_shl_load=yes
11045 else
11046 ac_cv_lib_dld_shl_load=no
11047 fi
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11051 fi
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11053 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11054 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11055 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11056 else
11057 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11058 if test "x$ac_cv_func_dlopen" = xyes; then :
11059 lt_cv_dlopen="dlopen"
11060 else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11062 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11063 if ${ac_cv_lib_dl_dlopen+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-ldl $LIBS"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11070
11071 /* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 char dlopen ();
11078 int
11079 main ()
11080 {
11081 return dlopen ();
11082 ;
11083 return 0;
11084 }
11085 _ACEOF
11086 if ac_fn_c_try_link "$LINENO"; then :
11087 ac_cv_lib_dl_dlopen=yes
11088 else
11089 ac_cv_lib_dl_dlopen=no
11090 fi
11091 rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
11093 LIBS=$ac_check_lib_save_LIBS
11094 fi
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11096 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11097 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11101 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11102 if ${ac_cv_lib_svld_dlopen+:} false; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 ac_check_lib_save_LIBS=$LIBS
11106 LIBS="-lsvld $LIBS"
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11109
11110 /* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 char dlopen ();
11117 int
11118 main ()
11119 {
11120 return dlopen ();
11121 ;
11122 return 0;
11123 }
11124 _ACEOF
11125 if ac_fn_c_try_link "$LINENO"; then :
11126 ac_cv_lib_svld_dlopen=yes
11127 else
11128 ac_cv_lib_svld_dlopen=no
11129 fi
11130 rm -f core conftest.err conftest.$ac_objext \
11131 conftest$ac_exeext conftest.$ac_ext
11132 LIBS=$ac_check_lib_save_LIBS
11133 fi
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11135 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11136 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11138 else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11140 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11141 if ${ac_cv_lib_dld_dld_link+:} false; then :
11142 $as_echo_n "(cached) " >&6
11143 else
11144 ac_check_lib_save_LIBS=$LIBS
11145 LIBS="-ldld $LIBS"
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11148
11149 /* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11152 #ifdef __cplusplus
11153 extern "C"
11154 #endif
11155 char dld_link ();
11156 int
11157 main ()
11158 {
11159 return dld_link ();
11160 ;
11161 return 0;
11162 }
11163 _ACEOF
11164 if ac_fn_c_try_link "$LINENO"; then :
11165 ac_cv_lib_dld_dld_link=yes
11166 else
11167 ac_cv_lib_dld_dld_link=no
11168 fi
11169 rm -f core conftest.err conftest.$ac_objext \
11170 conftest$ac_exeext conftest.$ac_ext
11171 LIBS=$ac_check_lib_save_LIBS
11172 fi
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11174 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11175 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11176 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11177 fi
11178
11179
11180 fi
11181
11182
11183 fi
11184
11185
11186 fi
11187
11188
11189 fi
11190
11191
11192 fi
11193
11194 ;;
11195 esac
11196
11197 if test "x$lt_cv_dlopen" != xno; then
11198 enable_dlopen=yes
11199 else
11200 enable_dlopen=no
11201 fi
11202
11203 case $lt_cv_dlopen in
11204 dlopen)
11205 save_CPPFLAGS="$CPPFLAGS"
11206 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11207
11208 save_LDFLAGS="$LDFLAGS"
11209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11210
11211 save_LIBS="$LIBS"
11212 LIBS="$lt_cv_dlopen_libs $LIBS"
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11215 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11216 if ${lt_cv_dlopen_self+:} false; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 if test "$cross_compiling" = yes; then :
11220 lt_cv_dlopen_self=cross
11221 else
11222 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11223 lt_status=$lt_dlunknown
11224 cat > conftest.$ac_ext <<_LT_EOF
11225 #line 11225 "configure"
11226 #include "confdefs.h"
11227
11228 #if HAVE_DLFCN_H
11229 #include <dlfcn.h>
11230 #endif
11231
11232 #include <stdio.h>
11233
11234 #ifdef RTLD_GLOBAL
11235 # define LT_DLGLOBAL RTLD_GLOBAL
11236 #else
11237 # ifdef DL_GLOBAL
11238 # define LT_DLGLOBAL DL_GLOBAL
11239 # else
11240 # define LT_DLGLOBAL 0
11241 # endif
11242 #endif
11243
11244 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11245 find out it does not work in some platform. */
11246 #ifndef LT_DLLAZY_OR_NOW
11247 # ifdef RTLD_LAZY
11248 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11249 # else
11250 # ifdef DL_LAZY
11251 # define LT_DLLAZY_OR_NOW DL_LAZY
11252 # else
11253 # ifdef RTLD_NOW
11254 # define LT_DLLAZY_OR_NOW RTLD_NOW
11255 # else
11256 # ifdef DL_NOW
11257 # define LT_DLLAZY_OR_NOW DL_NOW
11258 # else
11259 # define LT_DLLAZY_OR_NOW 0
11260 # endif
11261 # endif
11262 # endif
11263 # endif
11264 #endif
11265
11266 void fnord() { int i=42;}
11267 int main ()
11268 {
11269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11270 int status = $lt_dlunknown;
11271
11272 if (self)
11273 {
11274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11276 /* dlclose (self); */
11277 }
11278 else
11279 puts (dlerror ());
11280
11281 return status;
11282 }
11283 _LT_EOF
11284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11285 (eval $ac_link) 2>&5
11286 ac_status=$?
11287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11288 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11289 (./conftest; exit; ) >&5 2>/dev/null
11290 lt_status=$?
11291 case x$lt_status in
11292 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11293 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11294 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11295 esac
11296 else :
11297 # compilation failed
11298 lt_cv_dlopen_self=no
11299 fi
11300 fi
11301 rm -fr conftest*
11302
11303
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11306 $as_echo "$lt_cv_dlopen_self" >&6; }
11307
11308 if test "x$lt_cv_dlopen_self" = xyes; then
11309 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11311 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11312 if ${lt_cv_dlopen_self_static+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 if test "$cross_compiling" = yes; then :
11316 lt_cv_dlopen_self_static=cross
11317 else
11318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11319 lt_status=$lt_dlunknown
11320 cat > conftest.$ac_ext <<_LT_EOF
11321 #line 11321 "configure"
11322 #include "confdefs.h"
11323
11324 #if HAVE_DLFCN_H
11325 #include <dlfcn.h>
11326 #endif
11327
11328 #include <stdio.h>
11329
11330 #ifdef RTLD_GLOBAL
11331 # define LT_DLGLOBAL RTLD_GLOBAL
11332 #else
11333 # ifdef DL_GLOBAL
11334 # define LT_DLGLOBAL DL_GLOBAL
11335 # else
11336 # define LT_DLGLOBAL 0
11337 # endif
11338 #endif
11339
11340 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11341 find out it does not work in some platform. */
11342 #ifndef LT_DLLAZY_OR_NOW
11343 # ifdef RTLD_LAZY
11344 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11345 # else
11346 # ifdef DL_LAZY
11347 # define LT_DLLAZY_OR_NOW DL_LAZY
11348 # else
11349 # ifdef RTLD_NOW
11350 # define LT_DLLAZY_OR_NOW RTLD_NOW
11351 # else
11352 # ifdef DL_NOW
11353 # define LT_DLLAZY_OR_NOW DL_NOW
11354 # else
11355 # define LT_DLLAZY_OR_NOW 0
11356 # endif
11357 # endif
11358 # endif
11359 # endif
11360 #endif
11361
11362 void fnord() { int i=42;}
11363 int main ()
11364 {
11365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11366 int status = $lt_dlunknown;
11367
11368 if (self)
11369 {
11370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11371 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11372 /* dlclose (self); */
11373 }
11374 else
11375 puts (dlerror ());
11376
11377 return status;
11378 }
11379 _LT_EOF
11380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11381 (eval $ac_link) 2>&5
11382 ac_status=$?
11383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11384 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11385 (./conftest; exit; ) >&5 2>/dev/null
11386 lt_status=$?
11387 case x$lt_status in
11388 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11389 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11390 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11391 esac
11392 else :
11393 # compilation failed
11394 lt_cv_dlopen_self_static=no
11395 fi
11396 fi
11397 rm -fr conftest*
11398
11399
11400 fi
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11402 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11403 fi
11404
11405 CPPFLAGS="$save_CPPFLAGS"
11406 LDFLAGS="$save_LDFLAGS"
11407 LIBS="$save_LIBS"
11408 ;;
11409 esac
11410
11411 case $lt_cv_dlopen_self in
11412 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11413 *) enable_dlopen_self=unknown ;;
11414 esac
11415
11416 case $lt_cv_dlopen_self_static in
11417 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11418 *) enable_dlopen_self_static=unknown ;;
11419 esac
11420 fi
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438 striplib=
11439 old_striplib=
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11441 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11442 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11443 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11444 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11446 $as_echo "yes" >&6; }
11447 else
11448 # FIXME - insert some real tests, host_os isn't really good enough
11449 case $host_os in
11450 darwin*)
11451 if test -n "$STRIP" ; then
11452 striplib="$STRIP -x"
11453 old_striplib="$STRIP -S"
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11455 $as_echo "yes" >&6; }
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11459 fi
11460 ;;
11461 *)
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463 $as_echo "no" >&6; }
11464 ;;
11465 esac
11466 fi
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479 # Report which library types will actually be built
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11481 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11483 $as_echo "$can_build_shared" >&6; }
11484
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11486 $as_echo_n "checking whether to build shared libraries... " >&6; }
11487 test "$can_build_shared" = "no" && enable_shared=no
11488
11489 # On AIX, shared libraries and static libraries use the same namespace, and
11490 # are all built from PIC.
11491 case $host_os in
11492 aix3*)
11493 test "$enable_shared" = yes && enable_static=no
11494 if test -n "$RANLIB"; then
11495 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11496 postinstall_cmds='$RANLIB $lib'
11497 fi
11498 ;;
11499
11500 aix[4-9]*)
11501 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11502 test "$enable_shared" = yes && enable_static=no
11503 fi
11504 ;;
11505 esac
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11507 $as_echo "$enable_shared" >&6; }
11508
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11510 $as_echo_n "checking whether to build static libraries... " >&6; }
11511 # Make sure either enable_shared or enable_static is yes.
11512 test "$enable_shared" = yes || enable_static=yes
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11514 $as_echo "$enable_static" >&6; }
11515
11516
11517
11518
11519 fi
11520 ac_ext=c
11521 ac_cpp='$CPP $CPPFLAGS'
11522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11525
11526 CC="$lt_save_CC"
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540 ac_config_commands="$ac_config_commands libtool"
11541
11542
11543
11544
11545 # Only expand once:
11546
11547
11548
11549
11550 CFLAG_VISIBILITY=
11551 HAVE_VISIBILITY=0
11552 if test -n "$GCC"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
11554 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
11555 if ${gl_cv_cc_vis_werror+:} false; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558
11559 gl_save_CFLAGS="$CFLAGS"
11560 CFLAGS="$CFLAGS -Werror"
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11563
11564 int
11565 main ()
11566 {
11567
11568 ;
11569 return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_compile "$LINENO"; then :
11573 gl_cv_cc_vis_werror=yes
11574 else
11575 gl_cv_cc_vis_werror=no
11576 fi
11577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578 CFLAGS="$gl_save_CFLAGS"
11579 fi
11580
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
11582 $as_echo "$gl_cv_cc_vis_werror" >&6; }
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
11584 $as_echo_n "checking for simple visibility declarations... " >&6; }
11585 if ${gl_cv_cc_visibility+:} false; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588
11589 gl_save_CFLAGS="$CFLAGS"
11590 CFLAGS="$CFLAGS -fvisibility=hidden"
11591 if test $gl_cv_cc_vis_werror = yes; then
11592 CFLAGS="$CFLAGS -Werror"
11593 fi
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11596 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11597 extern __attribute__((__visibility__("default"))) int exportedvar;
11598 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11599 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11600 void dummyfunc (void) {}
11601 int
11602 main ()
11603 {
11604
11605 ;
11606 return 0;
11607 }
11608 _ACEOF
11609 if ac_fn_c_try_compile "$LINENO"; then :
11610 gl_cv_cc_visibility=yes
11611 else
11612 gl_cv_cc_visibility=no
11613 fi
11614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615 CFLAGS="$gl_save_CFLAGS"
11616 fi
11617
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
11619 $as_echo "$gl_cv_cc_visibility" >&6; }
11620 if test $gl_cv_cc_visibility = yes; then
11621 CFLAG_VISIBILITY="-fvisibility=hidden"
11622 HAVE_VISIBILITY=1
11623 fi
11624 fi
11625
11626
11627
11628 cat >>confdefs.h <<_ACEOF
11629 #define HAVE_VISIBILITY $HAVE_VISIBILITY
11630 _ACEOF
11631
11632
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11634 $as_echo_n "checking for ANSI C header files... " >&6; }
11635 if ${ac_cv_header_stdc+:} false; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11640 #include <stdlib.h>
11641 #include <stdarg.h>
11642 #include <string.h>
11643 #include <float.h>
11644
11645 int
11646 main ()
11647 {
11648
11649 ;
11650 return 0;
11651 }
11652 _ACEOF
11653 if ac_fn_c_try_compile "$LINENO"; then :
11654 ac_cv_header_stdc=yes
11655 else
11656 ac_cv_header_stdc=no
11657 fi
11658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659
11660 if test $ac_cv_header_stdc = yes; then
11661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664 #include <string.h>
11665
11666 _ACEOF
11667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11668 $EGREP "memchr" >/dev/null 2>&1; then :
11669
11670 else
11671 ac_cv_header_stdc=no
11672 fi
11673 rm -f conftest*
11674
11675 fi
11676
11677 if test $ac_cv_header_stdc = yes; then
11678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11681 #include <stdlib.h>
11682
11683 _ACEOF
11684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11685 $EGREP "free" >/dev/null 2>&1; then :
11686
11687 else
11688 ac_cv_header_stdc=no
11689 fi
11690 rm -f conftest*
11691
11692 fi
11693
11694 if test $ac_cv_header_stdc = yes; then
11695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11696 if test "$cross_compiling" = yes; then :
11697 :
11698 else
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11701 #include <ctype.h>
11702 #include <stdlib.h>
11703 #if ((' ' & 0x0FF) == 0x020)
11704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11706 #else
11707 # define ISLOWER(c) \
11708 (('a' <= (c) && (c) <= 'i') \
11709 || ('j' <= (c) && (c) <= 'r') \
11710 || ('s' <= (c) && (c) <= 'z'))
11711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11712 #endif
11713
11714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11715 int
11716 main ()
11717 {
11718 int i;
11719 for (i = 0; i < 256; i++)
11720 if (XOR (islower (i), ISLOWER (i))
11721 || toupper (i) != TOUPPER (i))
11722 return 2;
11723 return 0;
11724 }
11725 _ACEOF
11726 if ac_fn_c_try_run "$LINENO"; then :
11727
11728 else
11729 ac_cv_header_stdc=no
11730 fi
11731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11732 conftest.$ac_objext conftest.beam conftest.$ac_ext
11733 fi
11734
11735 fi
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11738 $as_echo "$ac_cv_header_stdc" >&6; }
11739 if test $ac_cv_header_stdc = yes; then
11740
11741 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11742
11743 fi
11744
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
11746 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
11747 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752 #include <sys/types.h>
11753 int
11754 main ()
11755 {
11756 return makedev(0, 0);
11757 ;
11758 return 0;
11759 }
11760 _ACEOF
11761 if ac_fn_c_try_link "$LINENO"; then :
11762 ac_cv_header_sys_types_h_makedev=yes
11763 else
11764 ac_cv_header_sys_types_h_makedev=no
11765 fi
11766 rm -f core conftest.err conftest.$ac_objext \
11767 conftest$ac_exeext conftest.$ac_ext
11768
11769 fi
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
11771 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
11772
11773 if test $ac_cv_header_sys_types_h_makedev = no; then
11774 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
11775 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
11776
11777 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
11778
11779 fi
11780
11781
11782
11783 if test $ac_cv_header_sys_mkdev_h = no; then
11784 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
11785 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
11786
11787 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
11788
11789 fi
11790
11791
11792 fi
11793 fi
11794
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11796 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11797 if ${ac_cv_header_sys_wait_h+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11802 #include <sys/types.h>
11803 #include <sys/wait.h>
11804 #ifndef WEXITSTATUS
11805 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11806 #endif
11807 #ifndef WIFEXITED
11808 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11809 #endif
11810
11811 int
11812 main ()
11813 {
11814 int s;
11815 wait (&s);
11816 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11817 ;
11818 return 0;
11819 }
11820 _ACEOF
11821 if ac_fn_c_try_compile "$LINENO"; then :
11822 ac_cv_header_sys_wait_h=yes
11823 else
11824 ac_cv_header_sys_wait_h=no
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 fi
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11829 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11830 if test $ac_cv_header_sys_wait_h = yes; then
11831
11832 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11833
11834 fi
11835
11836 for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
11837 do :
11838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11840 if eval test \"x\$"$as_ac_Header"\" = 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 for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
11850 do :
11851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11852 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11854 cat >>confdefs.h <<_ACEOF
11855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11856 _ACEOF
11857
11858 fi
11859
11860 done
11861
11862 for ac_header in getopt.h err.h
11863 do :
11864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11865 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11866 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11867 cat >>confdefs.h <<_ACEOF
11868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11869 _ACEOF
11870
11871 fi
11872
11873 done
11874
11875 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
11876 do :
11877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11878 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11879 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11880 cat >>confdefs.h <<_ACEOF
11881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11882 _ACEOF
11883
11884 fi
11885
11886 done
11887
11888 for ac_header in zlib.h
11889 do :
11890 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11891 if test "x$ac_cv_header_zlib_h" = xyes; then :
11892 cat >>confdefs.h <<_ACEOF
11893 #define HAVE_ZLIB_H 1
11894 _ACEOF
11895
11896 fi
11897
11898 done
11899
11900
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11902 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11903 if ${ac_cv_c_const+:} false; then :
11904 $as_echo_n "(cached) " >&6
11905 else
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908
11909 int
11910 main ()
11911 {
11912 /* FIXME: Include the comments suggested by Paul. */
11913 #ifndef __cplusplus
11914 /* Ultrix mips cc rejects this. */
11915 typedef int charset[2];
11916 const charset cs;
11917 /* SunOS 4.1.1 cc rejects this. */
11918 char const *const *pcpcc;
11919 char **ppc;
11920 /* NEC SVR4.0.2 mips cc rejects this. */
11921 struct point {int x, y;};
11922 static struct point const zero = {0,0};
11923 /* AIX XL C 1.02.0.0 rejects this.
11924 It does not let you subtract one const X* pointer from another in
11925 an arm of an if-expression whose if-part is not a constant
11926 expression */
11927 const char *g = "string";
11928 pcpcc = &g + (g ? g-g : 0);
11929 /* HPUX 7.0 cc rejects these. */
11930 ++pcpcc;
11931 ppc = (char**) pcpcc;
11932 pcpcc = (char const *const *) ppc;
11933 { /* SCO 3.2v4 cc rejects this. */
11934 char *t;
11935 char const *s = 0 ? (char *) 0 : (char const *) 0;
11936
11937 *t++ = 0;
11938 if (s) return 0;
11939 }
11940 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11941 int x[] = {25, 17};
11942 const int *foo = &x[0];
11943 ++foo;
11944 }
11945 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11946 typedef const int *iptr;
11947 iptr p = 0;
11948 ++p;
11949 }
11950 { /* AIX XL C 1.02.0.0 rejects this saying
11951 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11952 struct s { int j; const int *ap[3]; };
11953 struct s *b; b->j = 5;
11954 }
11955 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11956 const int foo = 10;
11957 if (!foo) return 0;
11958 }
11959 return !cs[0] && !zero.x;
11960 #endif
11961
11962 ;
11963 return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_c_try_compile "$LINENO"; then :
11967 ac_cv_c_const=yes
11968 else
11969 ac_cv_c_const=no
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11974 $as_echo "$ac_cv_c_const" >&6; }
11975 if test $ac_cv_c_const = no; then
11976
11977 $as_echo "#define const /**/" >>confdefs.h
11978
11979 fi
11980
11981 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11982 if test "x$ac_cv_type_off_t" = xyes; then :
11983
11984 else
11985
11986 cat >>confdefs.h <<_ACEOF
11987 #define off_t long int
11988 _ACEOF
11989
11990 fi
11991
11992 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11993 if test "x$ac_cv_type_size_t" = xyes; then :
11994
11995 else
11996
11997 cat >>confdefs.h <<_ACEOF
11998 #define size_t unsigned int
11999 _ACEOF
12000
12001 fi
12002
12003 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12004 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12005
12006 cat >>confdefs.h <<_ACEOF
12007 #define HAVE_STRUCT_STAT_ST_RDEV 1
12008 _ACEOF
12009
12010
12011 fi
12012
12013
12014 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
12015 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
12016
12017 cat >>confdefs.h <<_ACEOF
12018 #define HAVE_STRUCT_TM_TM_GMTOFF 1
12019 _ACEOF
12020
12021
12022 fi
12023
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12025 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12026 if ${ac_cv_struct_tm+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12031 #include <sys/types.h>
12032 #include <time.h>
12033
12034 int
12035 main ()
12036 {
12037 struct tm tm;
12038 int *p = &tm.tm_sec;
12039 return !p;
12040 ;
12041 return 0;
12042 }
12043 _ACEOF
12044 if ac_fn_c_try_compile "$LINENO"; then :
12045 ac_cv_struct_tm=time.h
12046 else
12047 ac_cv_struct_tm=sys/time.h
12048 fi
12049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12052 $as_echo "$ac_cv_struct_tm" >&6; }
12053 if test $ac_cv_struct_tm = sys/time.h; then
12054
12055 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12056
12057 fi
12058
12059 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12060 #include <$ac_cv_struct_tm>
12061
12062 "
12063 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12064
12065 cat >>confdefs.h <<_ACEOF
12066 #define HAVE_STRUCT_TM_TM_ZONE 1
12067 _ACEOF
12068
12069
12070 fi
12071
12072 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12073
12074 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12075
12076 else
12077 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12078 "
12079 if test "x$ac_cv_have_decl_tzname" = xyes; then :
12080 ac_have_decl=1
12081 else
12082 ac_have_decl=0
12083 fi
12084
12085 cat >>confdefs.h <<_ACEOF
12086 #define HAVE_DECL_TZNAME $ac_have_decl
12087 _ACEOF
12088
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12090 $as_echo_n "checking for tzname... " >&6; }
12091 if ${ac_cv_var_tzname+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 #include <time.h>
12097 #if !HAVE_DECL_TZNAME
12098 extern char *tzname[];
12099 #endif
12100
12101 int
12102 main ()
12103 {
12104 return tzname[0][0];
12105 ;
12106 return 0;
12107 }
12108 _ACEOF
12109 if ac_fn_c_try_link "$LINENO"; then :
12110 ac_cv_var_tzname=yes
12111 else
12112 ac_cv_var_tzname=no
12113 fi
12114 rm -f core conftest.err conftest.$ac_objext \
12115 conftest$ac_exeext conftest.$ac_ext
12116 fi
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12118 $as_echo "$ac_cv_var_tzname" >&6; }
12119 if test $ac_cv_var_tzname = yes; then
12120
12121 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12122
12123 fi
12124 fi
12125
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
12127 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
12128 if ${ac_cv_struct_tm_zone+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #include <sys/types.h>
12134 #include <$ac_cv_struct_tm>
12135 int
12136 main ()
12137 {
12138 struct tm tm; tm.tm_zone;
12139 ;
12140 return 0;
12141 }
12142 _ACEOF
12143 if ac_fn_c_try_compile "$LINENO"; then :
12144 ac_cv_struct_tm_zone=yes
12145 else
12146 ac_cv_struct_tm_zone=no
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 fi
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
12151 $as_echo "$ac_cv_struct_tm_zone" >&6; }
12152 if test "$ac_cv_struct_tm_zone" = yes; then
12153
12154 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12155
12156 fi
12157
12158 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
12159 # consider it declared and we won't give our own extern.
12160 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12161 "
12162 if test "x$ac_cv_have_decl_tzname" = xyes; then :
12163 ac_have_decl=1
12164 else
12165 ac_have_decl=0
12166 fi
12167
12168 cat >>confdefs.h <<_ACEOF
12169 #define HAVE_DECL_TZNAME $ac_have_decl
12170 _ACEOF
12171
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12173 $as_echo_n "checking for tzname... " >&6; }
12174 if ${ac_cv_var_tzname+:} false; then :
12175 $as_echo_n "(cached) " >&6
12176 else
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179 #include <time.h>
12180 #if !HAVE_DECL_TZNAME
12181 extern char *tzname[];
12182 #endif
12183 int
12184 main ()
12185 {
12186 return tzname[0][0];
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"; then :
12192 ac_cv_var_tzname=yes
12193 else
12194 ac_cv_var_tzname=no
12195 fi
12196 rm -f core conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12198 fi
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12200 $as_echo "$ac_cv_var_tzname" >&6; }
12201 if test $ac_cv_var_tzname = yes; then
12202
12203 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12204
12205 fi
12206
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
12208 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
12209 if ${ac_cv_struct_tm_isdst+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12214 #include <sys/types.h>
12215 #include <$ac_cv_struct_tm>
12216 int
12217 main ()
12218 {
12219 struct tm tm; tm.tm_isdst;
12220 ;
12221 return 0;
12222 }
12223 _ACEOF
12224 if ac_fn_c_try_compile "$LINENO"; then :
12225 ac_cv_struct_tm_isdst=yes
12226 else
12227 ac_cv_struct_tm_isdst=no
12228 fi
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230 fi
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
12232 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
12233 if test "$ac_cv_struct_tm_isdst" = yes; then
12234
12235 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
12236
12237 fi
12238
12239
12240 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
12241 "
12242 if test "x$ac_cv_have_decl_daylight" = xyes; then :
12243 ac_have_decl=1
12244 else
12245 ac_have_decl=0
12246 fi
12247
12248 cat >>confdefs.h <<_ACEOF
12249 #define HAVE_DECL_DAYLIGHT $ac_have_decl
12250 _ACEOF
12251
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
12253 $as_echo_n "checking for daylight... " >&6; }
12254 if ${ac_cv_var_daylight+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259 #include <time.h>
12260 #if !HAVE_DECL_DAYLIGHT
12261 extern int daylight;
12262 #endif
12263 int
12264 main ()
12265 {
12266 atoi(daylight);
12267 ;
12268 return 0;
12269 }
12270 _ACEOF
12271 if ac_fn_c_try_link "$LINENO"; then :
12272 ac_cv_var_daylight=yes
12273 else
12274 ac_cv_var_daylight=no
12275 fi
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 fi
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
12280 $as_echo "$ac_cv_var_daylight" >&6; }
12281 if test $ac_cv_var_daylight = yes; then
12282
12283 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
12284
12285 fi
12286
12287 # Check whether --enable-largefile was given.
12288 if test "${enable_largefile+set}" = set; then :
12289 enableval=$enable_largefile;
12290 fi
12291
12292 if test "$enable_largefile" != no; then
12293
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12295 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12296 if ${ac_cv_sys_largefile_CC+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 ac_cv_sys_largefile_CC=no
12300 if test "$GCC" != yes; then
12301 ac_save_CC=$CC
12302 while :; do
12303 # IRIX 6.2 and later do not support large files by default,
12304 # so use the C compiler's -n32 option if that helps.
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12307 #include <sys/types.h>
12308 /* Check that off_t can represent 2**63 - 1 correctly.
12309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12310 since some C++ compilers masquerading as C compilers
12311 incorrectly reject 9223372036854775807. */
12312 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12314 && LARGE_OFF_T % 2147483647 == 1)
12315 ? 1 : -1];
12316 int
12317 main ()
12318 {
12319
12320 ;
12321 return 0;
12322 }
12323 _ACEOF
12324 if ac_fn_c_try_compile "$LINENO"; then :
12325 break
12326 fi
12327 rm -f core conftest.err conftest.$ac_objext
12328 CC="$CC -n32"
12329 if ac_fn_c_try_compile "$LINENO"; then :
12330 ac_cv_sys_largefile_CC=' -n32'; break
12331 fi
12332 rm -f core conftest.err conftest.$ac_objext
12333 break
12334 done
12335 CC=$ac_save_CC
12336 rm -f conftest.$ac_ext
12337 fi
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12340 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12341 if test "$ac_cv_sys_largefile_CC" != no; then
12342 CC=$CC$ac_cv_sys_largefile_CC
12343 fi
12344
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12346 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12347 if ${ac_cv_sys_file_offset_bits+:} false; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 while :; do
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12353 #include <sys/types.h>
12354 /* Check that off_t can represent 2**63 - 1 correctly.
12355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12356 since some C++ compilers masquerading as C compilers
12357 incorrectly reject 9223372036854775807. */
12358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12360 && LARGE_OFF_T % 2147483647 == 1)
12361 ? 1 : -1];
12362 int
12363 main ()
12364 {
12365
12366 ;
12367 return 0;
12368 }
12369 _ACEOF
12370 if ac_fn_c_try_compile "$LINENO"; then :
12371 ac_cv_sys_file_offset_bits=no; break
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376 #define _FILE_OFFSET_BITS 64
12377 #include <sys/types.h>
12378 /* Check that off_t can represent 2**63 - 1 correctly.
12379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12380 since some C++ compilers masquerading as C compilers
12381 incorrectly reject 9223372036854775807. */
12382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12384 && LARGE_OFF_T % 2147483647 == 1)
12385 ? 1 : -1];
12386 int
12387 main ()
12388 {
12389
12390 ;
12391 return 0;
12392 }
12393 _ACEOF
12394 if ac_fn_c_try_compile "$LINENO"; then :
12395 ac_cv_sys_file_offset_bits=64; break
12396 fi
12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398 ac_cv_sys_file_offset_bits=unknown
12399 break
12400 done
12401 fi
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12403 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12404 case $ac_cv_sys_file_offset_bits in #(
12405 no | unknown) ;;
12406 *)
12407 cat >>confdefs.h <<_ACEOF
12408 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12409 _ACEOF
12410 ;;
12411 esac
12412 rm -rf conftest*
12413 if test $ac_cv_sys_file_offset_bits = unknown; then
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12415 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12416 if ${ac_cv_sys_large_files+:} false; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 while :; do
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422 #include <sys/types.h>
12423 /* Check that off_t can represent 2**63 - 1 correctly.
12424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12425 since some C++ compilers masquerading as C compilers
12426 incorrectly reject 9223372036854775807. */
12427 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12429 && LARGE_OFF_T % 2147483647 == 1)
12430 ? 1 : -1];
12431 int
12432 main ()
12433 {
12434
12435 ;
12436 return 0;
12437 }
12438 _ACEOF
12439 if ac_fn_c_try_compile "$LINENO"; then :
12440 ac_cv_sys_large_files=no; break
12441 fi
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 #define _LARGE_FILES 1
12446 #include <sys/types.h>
12447 /* Check that off_t can represent 2**63 - 1 correctly.
12448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12449 since some C++ compilers masquerading as C compilers
12450 incorrectly reject 9223372036854775807. */
12451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12453 && LARGE_OFF_T % 2147483647 == 1)
12454 ? 1 : -1];
12455 int
12456 main ()
12457 {
12458
12459 ;
12460 return 0;
12461 }
12462 _ACEOF
12463 if ac_fn_c_try_compile "$LINENO"; then :
12464 ac_cv_sys_large_files=1; break
12465 fi
12466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467 ac_cv_sys_large_files=unknown
12468 break
12469 done
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12472 $as_echo "$ac_cv_sys_large_files" >&6; }
12473 case $ac_cv_sys_large_files in #(
12474 no | unknown) ;;
12475 *)
12476 cat >>confdefs.h <<_ACEOF
12477 #define _LARGE_FILES $ac_cv_sys_large_files
12478 _ACEOF
12479 ;;
12480 esac
12481 rm -rf conftest*
12482 fi
12483 fi
12484
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12486 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12487 if ${ac_cv_sys_largefile_source+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 while :; do
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12493 #include <sys/types.h> /* for off_t */
12494 #include <stdio.h>
12495 int
12496 main ()
12497 {
12498 int (*fp) (FILE *, off_t, int) = fseeko;
12499 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12500 ;
12501 return 0;
12502 }
12503 _ACEOF
12504 if ac_fn_c_try_link "$LINENO"; then :
12505 ac_cv_sys_largefile_source=no; break
12506 fi
12507 rm -f core conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12511 #define _LARGEFILE_SOURCE 1
12512 #include <sys/types.h> /* for off_t */
12513 #include <stdio.h>
12514 int
12515 main ()
12516 {
12517 int (*fp) (FILE *, off_t, int) = fseeko;
12518 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12519 ;
12520 return 0;
12521 }
12522 _ACEOF
12523 if ac_fn_c_try_link "$LINENO"; then :
12524 ac_cv_sys_largefile_source=1; break
12525 fi
12526 rm -f core conftest.err conftest.$ac_objext \
12527 conftest$ac_exeext conftest.$ac_ext
12528 ac_cv_sys_largefile_source=unknown
12529 break
12530 done
12531 fi
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12533 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12534 case $ac_cv_sys_largefile_source in #(
12535 no | unknown) ;;
12536 *)
12537 cat >>confdefs.h <<_ACEOF
12538 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12539 _ACEOF
12540 ;;
12541 esac
12542 rm -rf conftest*
12543
12544 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12545 # in glibc 2.1.3, but that breaks too many other things.
12546 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12547 if test $ac_cv_sys_largefile_source != unknown; then
12548
12549 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12550
12551 fi
12552
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12554 $as_echo_n "checking for mbstate_t... " >&6; }
12555 if ${ac_cv_type_mbstate_t+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 $ac_includes_default
12561 # include <wchar.h>
12562 int
12563 main ()
12564 {
12565 mbstate_t x; return sizeof x;
12566 ;
12567 return 0;
12568 }
12569 _ACEOF
12570 if ac_fn_c_try_compile "$LINENO"; then :
12571 ac_cv_type_mbstate_t=yes
12572 else
12573 ac_cv_type_mbstate_t=no
12574 fi
12575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12576 fi
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
12578 $as_echo "$ac_cv_type_mbstate_t" >&6; }
12579 if test $ac_cv_type_mbstate_t = yes; then
12580
12581 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
12582
12583 else
12584
12585 $as_echo "#define mbstate_t int" >>confdefs.h
12586
12587 fi
12588
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
12590 $as_echo_n "checking for struct option in getopt... " >&6; }
12591 if ${ac_cv_struct_option_getopt_h+:} false; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 #include <getopt.h>
12597 int
12598 main ()
12599 {
12600 struct option op; op.name;
12601 ;
12602 return 0;
12603 }
12604 _ACEOF
12605 if ac_fn_c_try_compile "$LINENO"; then :
12606 ac_cv_struct_option_getopt_h=yes
12607 else
12608 ac_cv_struct_option_getopt_h=no
12609 fi
12610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 fi
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
12613 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
12614 if test "$ac_cv_struct_option_getopt_h" = yes; then
12615
12616 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
12617
12618 fi
12619
12620 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12621 if test "x$ac_cv_type_pid_t" = xyes; then :
12622
12623 else
12624
12625 cat >>confdefs.h <<_ACEOF
12626 #define pid_t int
12627 _ACEOF
12628
12629 fi
12630
12631 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
12632 case $ac_cv_c_uint8_t in #(
12633 no|yes) ;; #(
12634 *)
12635
12636 $as_echo "#define _UINT8_T 1" >>confdefs.h
12637
12638
12639 cat >>confdefs.h <<_ACEOF
12640 #define uint8_t $ac_cv_c_uint8_t
12641 _ACEOF
12642 ;;
12643 esac
12644
12645 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
12646 case $ac_cv_c_uint16_t in #(
12647 no|yes) ;; #(
12648 *)
12649
12650
12651 cat >>confdefs.h <<_ACEOF
12652 #define uint16_t $ac_cv_c_uint16_t
12653 _ACEOF
12654 ;;
12655 esac
12656
12657 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
12658 case $ac_cv_c_uint32_t in #(
12659 no|yes) ;; #(
12660 *)
12661
12662 $as_echo "#define _UINT32_T 1" >>confdefs.h
12663
12664
12665 cat >>confdefs.h <<_ACEOF
12666 #define uint32_t $ac_cv_c_uint32_t
12667 _ACEOF
12668 ;;
12669 esac
12670
12671 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
12672 case $ac_cv_c_int32_t in #(
12673 no|yes) ;; #(
12674 *)
12675
12676 cat >>confdefs.h <<_ACEOF
12677 #define int32_t $ac_cv_c_int32_t
12678 _ACEOF
12679 ;;
12680 esac
12681
12682 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12683 case $ac_cv_c_uint64_t in #(
12684 no|yes) ;; #(
12685 *)
12686
12687 $as_echo "#define _UINT64_T 1" >>confdefs.h
12688
12689
12690 cat >>confdefs.h <<_ACEOF
12691 #define uint64_t $ac_cv_c_uint64_t
12692 _ACEOF
12693 ;;
12694 esac
12695
12696 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12697 case $ac_cv_c_int64_t in #(
12698 no|yes) ;; #(
12699 *)
12700
12701 cat >>confdefs.h <<_ACEOF
12702 #define int64_t $ac_cv_c_int64_t
12703 _ACEOF
12704 ;;
12705 esac
12706
12707
12708
12709
12710 for ac_header in $ac_header_list
12711 do :
12712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12713 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12714 "
12715 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12716 cat >>confdefs.h <<_ACEOF
12717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12718 _ACEOF
12719
12720 fi
12721
12722 done
12723
12724
12725
12726
12727
12728
12729
12730
12731 for ac_func in getpagesize
12732 do :
12733 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12734 if test "x$ac_cv_func_getpagesize" = xyes; then :
12735 cat >>confdefs.h <<_ACEOF
12736 #define HAVE_GETPAGESIZE 1
12737 _ACEOF
12738
12739 fi
12740 done
12741
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12743 $as_echo_n "checking for working mmap... " >&6; }
12744 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 if test "$cross_compiling" = yes; then :
12748 ac_cv_func_mmap_fixed_mapped=no
12749 else
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12752 $ac_includes_default
12753 /* malloc might have been renamed as rpl_malloc. */
12754 #undef malloc
12755
12756 /* Thanks to Mike Haertel and Jim Avera for this test.
12757 Here is a matrix of mmap possibilities:
12758 mmap private not fixed
12759 mmap private fixed at somewhere currently unmapped
12760 mmap private fixed at somewhere already mapped
12761 mmap shared not fixed
12762 mmap shared fixed at somewhere currently unmapped
12763 mmap shared fixed at somewhere already mapped
12764 For private mappings, we should verify that changes cannot be read()
12765 back from the file, nor mmap's back from the file at a different
12766 address. (There have been systems where private was not correctly
12767 implemented like the infamous i386 svr4.0, and systems where the
12768 VM page cache was not coherent with the file system buffer cache
12769 like early versions of FreeBSD and possibly contemporary NetBSD.)
12770 For shared mappings, we should conversely verify that changes get
12771 propagated back to all the places they're supposed to be.
12772
12773 Grep wants private fixed already mapped.
12774 The main things grep needs to know about mmap are:
12775 * does it exist and is it safe to write into the mmap'd area
12776 * how to use it (BSD variants) */
12777
12778 #include <fcntl.h>
12779 #include <sys/mman.h>
12780
12781 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12782 char *malloc ();
12783 #endif
12784
12785 /* This mess was copied from the GNU getpagesize.h. */
12786 #ifndef HAVE_GETPAGESIZE
12787 # ifdef _SC_PAGESIZE
12788 # define getpagesize() sysconf(_SC_PAGESIZE)
12789 # else /* no _SC_PAGESIZE */
12790 # ifdef HAVE_SYS_PARAM_H
12791 # include <sys/param.h>
12792 # ifdef EXEC_PAGESIZE
12793 # define getpagesize() EXEC_PAGESIZE
12794 # else /* no EXEC_PAGESIZE */
12795 # ifdef NBPG
12796 # define getpagesize() NBPG * CLSIZE
12797 # ifndef CLSIZE
12798 # define CLSIZE 1
12799 # endif /* no CLSIZE */
12800 # else /* no NBPG */
12801 # ifdef NBPC
12802 # define getpagesize() NBPC
12803 # else /* no NBPC */
12804 # ifdef PAGESIZE
12805 # define getpagesize() PAGESIZE
12806 # endif /* PAGESIZE */
12807 # endif /* no NBPC */
12808 # endif /* no NBPG */
12809 # endif /* no EXEC_PAGESIZE */
12810 # else /* no HAVE_SYS_PARAM_H */
12811 # define getpagesize() 8192 /* punt totally */
12812 # endif /* no HAVE_SYS_PARAM_H */
12813 # endif /* no _SC_PAGESIZE */
12814
12815 #endif /* no HAVE_GETPAGESIZE */
12816
12817 int
12818 main ()
12819 {
12820 char *data, *data2, *data3;
12821 const char *cdata2;
12822 int i, pagesize;
12823 int fd, fd2;
12824
12825 pagesize = getpagesize ();
12826
12827 /* First, make a file with some known garbage in it. */
12828 data = (char *) malloc (pagesize);
12829 if (!data)
12830 return 1;
12831 for (i = 0; i < pagesize; ++i)
12832 *(data + i) = rand ();
12833 umask (0);
12834 fd = creat ("conftest.mmap", 0600);
12835 if (fd < 0)
12836 return 2;
12837 if (write (fd, data, pagesize) != pagesize)
12838 return 3;
12839 close (fd);
12840
12841 /* Next, check that the tail of a page is zero-filled. File must have
12842 non-zero length, otherwise we risk SIGBUS for entire page. */
12843 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12844 if (fd2 < 0)
12845 return 4;
12846 cdata2 = "";
12847 if (write (fd2, cdata2, 1) != 1)
12848 return 5;
12849 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12850 if (data2 == MAP_FAILED)
12851 return 6;
12852 for (i = 0; i < pagesize; ++i)
12853 if (*(data2 + i))
12854 return 7;
12855 close (fd2);
12856 if (munmap (data2, pagesize))
12857 return 8;
12858
12859 /* Next, try to mmap the file at a fixed address which already has
12860 something else allocated at it. If we can, also make sure that
12861 we see the same garbage. */
12862 fd = open ("conftest.mmap", O_RDWR);
12863 if (fd < 0)
12864 return 9;
12865 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12866 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12867 return 10;
12868 for (i = 0; i < pagesize; ++i)
12869 if (*(data + i) != *(data2 + i))
12870 return 11;
12871
12872 /* Finally, make sure that changes to the mapped area do not
12873 percolate back to the file as seen by read(). (This is a bug on
12874 some variants of i386 svr4.0.) */
12875 for (i = 0; i < pagesize; ++i)
12876 *(data2 + i) = *(data2 + i) + 1;
12877 data3 = (char *) malloc (pagesize);
12878 if (!data3)
12879 return 12;
12880 if (read (fd, data3, pagesize) != pagesize)
12881 return 13;
12882 for (i = 0; i < pagesize; ++i)
12883 if (*(data + i) != *(data3 + i))
12884 return 14;
12885 close (fd);
12886 return 0;
12887 }
12888 _ACEOF
12889 if ac_fn_c_try_run "$LINENO"; then :
12890 ac_cv_func_mmap_fixed_mapped=yes
12891 else
12892 ac_cv_func_mmap_fixed_mapped=no
12893 fi
12894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12895 conftest.$ac_objext conftest.beam conftest.$ac_ext
12896 fi
12897
12898 fi
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12900 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12901 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12902
12903 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12904
12905 fi
12906 rm -f conftest.mmap conftest.txt
12907
12908 for ac_header in vfork.h
12909 do :
12910 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12911 if test "x$ac_cv_header_vfork_h" = xyes; then :
12912 cat >>confdefs.h <<_ACEOF
12913 #define HAVE_VFORK_H 1
12914 _ACEOF
12915
12916 fi
12917
12918 done
12919
12920 for ac_func in fork vfork
12921 do :
12922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12923 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12924 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12925 cat >>confdefs.h <<_ACEOF
12926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12927 _ACEOF
12928
12929 fi
12930 done
12931
12932 if test "x$ac_cv_func_fork" = xyes; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12934 $as_echo_n "checking for working fork... " >&6; }
12935 if ${ac_cv_func_fork_works+:} false; then :
12936 $as_echo_n "(cached) " >&6
12937 else
12938 if test "$cross_compiling" = yes; then :
12939 ac_cv_func_fork_works=cross
12940 else
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12943 $ac_includes_default
12944 int
12945 main ()
12946 {
12947
12948 /* By Ruediger Kuhlmann. */
12949 return fork () < 0;
12950
12951 ;
12952 return 0;
12953 }
12954 _ACEOF
12955 if ac_fn_c_try_run "$LINENO"; then :
12956 ac_cv_func_fork_works=yes
12957 else
12958 ac_cv_func_fork_works=no
12959 fi
12960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12961 conftest.$ac_objext conftest.beam conftest.$ac_ext
12962 fi
12963
12964 fi
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12966 $as_echo "$ac_cv_func_fork_works" >&6; }
12967
12968 else
12969 ac_cv_func_fork_works=$ac_cv_func_fork
12970 fi
12971 if test "x$ac_cv_func_fork_works" = xcross; then
12972 case $host in
12973 *-*-amigaos* | *-*-msdosdjgpp*)
12974 # Override, as these systems have only a dummy fork() stub
12975 ac_cv_func_fork_works=no
12976 ;;
12977 *)
12978 ac_cv_func_fork_works=yes
12979 ;;
12980 esac
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12982 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12983 fi
12984 ac_cv_func_vfork_works=$ac_cv_func_vfork
12985 if test "x$ac_cv_func_vfork" = xyes; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12987 $as_echo_n "checking for working vfork... " >&6; }
12988 if ${ac_cv_func_vfork_works+:} false; then :
12989 $as_echo_n "(cached) " >&6
12990 else
12991 if test "$cross_compiling" = yes; then :
12992 ac_cv_func_vfork_works=cross
12993 else
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12996 /* Thanks to Paul Eggert for this test. */
12997 $ac_includes_default
12998 #include <sys/wait.h>
12999 #ifdef HAVE_VFORK_H
13000 # include <vfork.h>
13001 #endif
13002 /* On some sparc systems, changes by the child to local and incoming
13003 argument registers are propagated back to the parent. The compiler
13004 is told about this with #include <vfork.h>, but some compilers
13005 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13006 static variable whose address is put into a register that is
13007 clobbered by the vfork. */
13008 static void
13009 #ifdef __cplusplus
13010 sparc_address_test (int arg)
13011 # else
13012 sparc_address_test (arg) int arg;
13013 #endif
13014 {
13015 static pid_t child;
13016 if (!child) {
13017 child = vfork ();
13018 if (child < 0) {
13019 perror ("vfork");
13020 _exit(2);
13021 }
13022 if (!child) {
13023 arg = getpid();
13024 write(-1, "", 0);
13025 _exit (arg);
13026 }
13027 }
13028 }
13029
13030 int
13031 main ()
13032 {
13033 pid_t parent = getpid ();
13034 pid_t child;
13035
13036 sparc_address_test (0);
13037
13038 child = vfork ();
13039
13040 if (child == 0) {
13041 /* Here is another test for sparc vfork register problems. This
13042 test uses lots of local variables, at least as many local
13043 variables as main has allocated so far including compiler
13044 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13045 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13046 reuse the register of parent for one of the local variables,
13047 since it will think that parent can't possibly be used any more
13048 in this routine. Assigning to the local variable will thus
13049 munge parent in the parent process. */
13050 pid_t
13051 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13052 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13053 /* Convince the compiler that p..p7 are live; otherwise, it might
13054 use the same hardware register for all 8 local variables. */
13055 if (p != p1 || p != p2 || p != p3 || p != p4
13056 || p != p5 || p != p6 || p != p7)
13057 _exit(1);
13058
13059 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13060 from child file descriptors. If the child closes a descriptor
13061 before it execs or exits, this munges the parent's descriptor
13062 as well. Test for this by closing stdout in the child. */
13063 _exit(close(fileno(stdout)) != 0);
13064 } else {
13065 int status;
13066 struct stat st;
13067
13068 while (wait(&status) != child)
13069 ;
13070 return (
13071 /* Was there some problem with vforking? */
13072 child < 0
13073
13074 /* Did the child fail? (This shouldn't happen.) */
13075 || status
13076
13077 /* Did the vfork/compiler bug occur? */
13078 || parent != getpid()
13079
13080 /* Did the file descriptor bug occur? */
13081 || fstat(fileno(stdout), &st) != 0
13082 );
13083 }
13084 }
13085 _ACEOF
13086 if ac_fn_c_try_run "$LINENO"; then :
13087 ac_cv_func_vfork_works=yes
13088 else
13089 ac_cv_func_vfork_works=no
13090 fi
13091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13092 conftest.$ac_objext conftest.beam conftest.$ac_ext
13093 fi
13094
13095 fi
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13097 $as_echo "$ac_cv_func_vfork_works" >&6; }
13098
13099 fi;
13100 if test "x$ac_cv_func_fork_works" = xcross; then
13101 ac_cv_func_vfork_works=$ac_cv_func_vfork
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13103 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13104 fi
13105
13106 if test "x$ac_cv_func_vfork_works" = xyes; then
13107
13108 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13109
13110 else
13111
13112 $as_echo "#define vfork fork" >>confdefs.h
13113
13114 fi
13115 if test "x$ac_cv_func_fork_works" = xyes; then
13116
13117 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13118
13119 fi
13120
13121
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
13123 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
13124 if ${ac_cv_func_mbrtowc+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129 #include <wchar.h>
13130 int
13131 main ()
13132 {
13133 wchar_t wc;
13134 char const s[] = "";
13135 size_t n = 1;
13136 mbstate_t state;
13137 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
13138 ;
13139 return 0;
13140 }
13141 _ACEOF
13142 if ac_fn_c_try_link "$LINENO"; then :
13143 ac_cv_func_mbrtowc=yes
13144 else
13145 ac_cv_func_mbrtowc=no
13146 fi
13147 rm -f core conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext conftest.$ac_ext
13149 fi
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
13151 $as_echo "$ac_cv_func_mbrtowc" >&6; }
13152 if test $ac_cv_func_mbrtowc = yes; then
13153
13154 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
13155
13156 fi
13157
13158
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
13160 $as_echo_n "checking for gcc compiler warnings... " >&6; }
13161 # Check whether --enable-warnings was given.
13162 if test "${enable_warnings+set}" = set; then :
13163 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165 $as_echo "no" >&6; }
13166 WARNINGS=
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13169 $as_echo "yes" >&6; }
13170 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
13171 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
13172 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
13173 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
13174 fi
13175 else
13176
13177 if test "$GCC" = yes; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13179 $as_echo "yes" >&6; }
13180 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
13181 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
13182 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
13183 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
13184 else
13185 WARNINGS=
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13188 fi
13189 fi
13190
13191
13192 for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof
13193 do :
13194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13196 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13197 cat >>confdefs.h <<_ACEOF
13198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13199 _ACEOF
13200
13201 fi
13202 done
13203
13204
13205 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
13206 if test "x$ac_cv_func_getopt_long" = xyes; then :
13207 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
13208
13209 else
13210 case " $LIBOBJS " in
13211 *" getopt_long.$ac_objext "* ) ;;
13212 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13213 ;;
13214 esac
13215
13216 fi
13217
13218 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
13219 if test "x$ac_cv_func_asprintf" = xyes; then :
13220 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
13221
13222 else
13223 case " $LIBOBJS " in
13224 *" asprintf.$ac_objext "* ) ;;
13225 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
13226 ;;
13227 esac
13228
13229 fi
13230
13231 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
13232 if test "x$ac_cv_func_vasprintf" = xyes; then :
13233 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
13234
13235 else
13236 case " $LIBOBJS " in
13237 *" vasprintf.$ac_objext "* ) ;;
13238 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
13239 ;;
13240 esac
13241
13242 fi
13243
13244 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
13245 if test "x$ac_cv_func_strlcpy" = xyes; then :
13246 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
13247
13248 else
13249 case " $LIBOBJS " in
13250 *" strlcpy.$ac_objext "* ) ;;
13251 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
13252 ;;
13253 esac
13254
13255 fi
13256
13257 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
13258 if test "x$ac_cv_func_strlcat" = xyes; then :
13259 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
13260
13261 else
13262 case " $LIBOBJS " in
13263 *" strlcat.$ac_objext "* ) ;;
13264 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
13265 ;;
13266 esac
13267
13268 fi
13269
13270 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13271 if test "x$ac_cv_func_getline" = xyes; then :
13272 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
13273
13274 else
13275 case " $LIBOBJS " in
13276 *" getline.$ac_objext "* ) ;;
13277 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
13278 ;;
13279 esac
13280
13281 fi
13282
13283 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
13284 if test "x$ac_cv_func_ctime_r" = xyes; then :
13285 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
13286
13287 else
13288 case " $LIBOBJS " in
13289 *" ctime_r.$ac_objext "* ) ;;
13290 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
13291 ;;
13292 esac
13293
13294 fi
13295
13296 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
13297 if test "x$ac_cv_func_asctime_r" = xyes; then :
13298 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
13299
13300 else
13301 case " $LIBOBJS " in
13302 *" asctime_r.$ac_objext "* ) ;;
13303 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
13304 ;;
13305 esac
13306
13307 fi
13308
13309 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13310 if test "x$ac_cv_func_pread" = xyes; then :
13311 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
13312
13313 else
13314 case " $LIBOBJS " in
13315 *" pread.$ac_objext "* ) ;;
13316 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
13317 ;;
13318 esac
13319
13320 fi
13321
13322
13323
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
13325 $as_echo_n "checking for gzopen in -lz... " >&6; }
13326 if ${ac_cv_lib_z_gzopen+:} false; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329 ac_check_lib_save_LIBS=$LIBS
13330 LIBS="-lz $LIBS"
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13333
13334 /* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13337 #ifdef __cplusplus
13338 extern "C"
13339 #endif
13340 char gzopen ();
13341 int
13342 main ()
13343 {
13344 return gzopen ();
13345 ;
13346 return 0;
13347 }
13348 _ACEOF
13349 if ac_fn_c_try_link "$LINENO"; then :
13350 ac_cv_lib_z_gzopen=yes
13351 else
13352 ac_cv_lib_z_gzopen=no
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13356 LIBS=$ac_check_lib_save_LIBS
13357 fi
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
13359 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
13360 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
13361 cat >>confdefs.h <<_ACEOF
13362 #define HAVE_LIBZ 1
13363 _ACEOF
13364
13365 LIBS="-lz $LIBS"
13366
13367 fi
13368
13369 if test "$MINGW" = 1; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
13371 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
13372 if ${ac_cv_lib_gnurx_regexec+:} false; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 ac_check_lib_save_LIBS=$LIBS
13376 LIBS="-lgnurx $LIBS"
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13379
13380 /* Override any GCC internal prototype to avoid an error.
13381 Use char because int might match the return type of a GCC
13382 builtin and then its argument prototype would still apply. */
13383 #ifdef __cplusplus
13384 extern "C"
13385 #endif
13386 char regexec ();
13387 int
13388 main ()
13389 {
13390 return regexec ();
13391 ;
13392 return 0;
13393 }
13394 _ACEOF
13395 if ac_fn_c_try_link "$LINENO"; then :
13396 ac_cv_lib_gnurx_regexec=yes
13397 else
13398 ac_cv_lib_gnurx_regexec=no
13399 fi
13400 rm -f core conftest.err conftest.$ac_objext \
13401 conftest$ac_exeext conftest.$ac_ext
13402 LIBS=$ac_check_lib_save_LIBS
13403 fi
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
13405 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
13406 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
13407 cat >>confdefs.h <<_ACEOF
13408 #define HAVE_LIBGNURX 1
13409 _ACEOF
13410
13411 LIBS="-lgnurx $LIBS"
13412
13413 else
13414 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
13415 fi
13416
13417 fi
13418
13419 if test "$cross_compiling" = yes; then
13420 IS_CROSS_COMPILE_TRUE=
13421 IS_CROSS_COMPILE_FALSE='#'
13422 else
13423 IS_CROSS_COMPILE_TRUE='#'
13424 IS_CROSS_COMPILE_FALSE=
13425 fi
13426
13427
13428 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
13429
13430 cat >confcache <<\_ACEOF
13431 # This file is a shell script that caches the results of configure
13432 # tests run on this system so they can be shared between configure
13433 # scripts and configure runs, see configure's option --config-cache.
13434 # It is not useful on other systems. If it contains results you don't
13435 # want to keep, you may remove or edit it.
13436 #
13437 # config.status only pays attention to the cache file if you give it
13438 # the --recheck option to rerun configure.
13439 #
13440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13442 # following values.
13443
13444 _ACEOF
13445
13446 # The following way of writing the cache mishandles newlines in values,
13447 # but we know of no workaround that is simple, portable, and efficient.
13448 # So, we kill variables containing newlines.
13449 # Ultrix sh set writes to stderr and can't be redirected directly,
13450 # and sets the high bit in the cache file unless we assign to the vars.
13451 (
13452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13453 eval ac_val=\$$ac_var
13454 case $ac_val in #(
13455 *${as_nl}*)
13456 case $ac_var in #(
13457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13459 esac
13460 case $ac_var in #(
13461 _ | IFS | as_nl) ;; #(
13462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13463 *) { eval $ac_var=; unset $ac_var;} ;;
13464 esac ;;
13465 esac
13466 done
13467
13468 (set) 2>&1 |
13469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13470 *${as_nl}ac_space=\ *)
13471 # `set' does not quote correctly, so add quotes: double-quote
13472 # substitution turns \\\\ into \\, and sed turns \\ into \.
13473 sed -n \
13474 "s/'/'\\\\''/g;
13475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13476 ;; #(
13477 *)
13478 # `set' quotes correctly as required by POSIX, so do not add quotes.
13479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13480 ;;
13481 esac |
13482 sort
13483 ) |
13484 sed '
13485 /^ac_cv_env_/b end
13486 t clear
13487 :clear
13488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13489 t end
13490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13491 :end' >>confcache
13492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13493 if test -w "$cache_file"; then
13494 if test "x$cache_file" != "x/dev/null"; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13496 $as_echo "$as_me: updating cache $cache_file" >&6;}
13497 if test ! -f "$cache_file" || test -h "$cache_file"; then
13498 cat confcache >"$cache_file"
13499 else
13500 case $cache_file in #(
13501 */* | ?:*)
13502 mv -f confcache "$cache_file"$$ &&
13503 mv -f "$cache_file"$$ "$cache_file" ;; #(
13504 *)
13505 mv -f confcache "$cache_file" ;;
13506 esac
13507 fi
13508 fi
13509 else
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13511 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13512 fi
13513 fi
13514 rm -f confcache
13515
13516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13517 # Let make expand exec_prefix.
13518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13519
13520 DEFS=-DHAVE_CONFIG_H
13521
13522 ac_libobjs=
13523 ac_ltlibobjs=
13524 U=
13525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13526 # 1. Remove the extension, and $U if already installed.
13527 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13528 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13529 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13530 # will be set to the directory where LIBOBJS objects are built.
13531 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13532 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13533 done
13534 LIBOBJS=$ac_libobjs
13535
13536 LTLIBOBJS=$ac_ltlibobjs
13537
13538
13539 if test -n "$EXEEXT"; then
13540 am__EXEEXT_TRUE=
13541 am__EXEEXT_FALSE='#'
13542 else
13543 am__EXEEXT_TRUE='#'
13544 am__EXEEXT_FALSE=
13545 fi
13546
13547 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
13548 as_fn_error $? "conditional \"MINGW\" was never defined.
13549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13550 fi
13551 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
13552 as_fn_error $? "conditional \"FSECT5\" was never defined.
13553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13554 fi
13555 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13556 as_fn_error $? "conditional \"AMDEP\" was never defined.
13557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13558 fi
13559 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13560 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13562 fi
13563
13564 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
13565 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
13566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13567 fi
13568
13569 : "${CONFIG_STATUS=./config.status}"
13570 ac_write_fail=0
13571 ac_clean_files_save=$ac_clean_files
13572 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13574 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13575 as_write_fail=0
13576 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13577 #! $SHELL
13578 # Generated by $as_me.
13579 # Run this file to recreate the current configuration.
13580 # Compiler output produced by configure, useful for debugging
13581 # configure, is in config.log if it exists.
13582
13583 debug=false
13584 ac_cs_recheck=false
13585 ac_cs_silent=false
13586
13587 SHELL=\${CONFIG_SHELL-$SHELL}
13588 export SHELL
13589 _ASEOF
13590 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13591 ## -------------------- ##
13592 ## M4sh Initialization. ##
13593 ## -------------------- ##
13594
13595 # Be more Bourne compatible
13596 DUALCASE=1; export DUALCASE # for MKS sh
13597 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13598 emulate sh
13599 NULLCMD=:
13600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13601 # is contrary to our usage. Disable this feature.
13602 alias -g '${1+"$@"}'='"$@"'
13603 setopt NO_GLOB_SUBST
13604 else
13605 case `(set -o) 2>/dev/null` in #(
13606 *posix*) :
13607 set -o posix ;; #(
13608 *) :
13609 ;;
13610 esac
13611 fi
13612
13613
13614 as_nl='
13615 '
13616 export as_nl
13617 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13618 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13619 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13620 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13621 # Prefer a ksh shell builtin over an external printf program on Solaris,
13622 # but without wasting forks for bash or zsh.
13623 if test -z "$BASH_VERSION$ZSH_VERSION" \
13624 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13625 as_echo='print -r --'
13626 as_echo_n='print -rn --'
13627 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13628 as_echo='printf %s\n'
13629 as_echo_n='printf %s'
13630 else
13631 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13632 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13633 as_echo_n='/usr/ucb/echo -n'
13634 else
13635 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13636 as_echo_n_body='eval
13637 arg=$1;
13638 case $arg in #(
13639 *"$as_nl"*)
13640 expr "X$arg" : "X\\(.*\\)$as_nl";
13641 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13642 esac;
13643 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13644 '
13645 export as_echo_n_body
13646 as_echo_n='sh -c $as_echo_n_body as_echo'
13647 fi
13648 export as_echo_body
13649 as_echo='sh -c $as_echo_body as_echo'
13650 fi
13651
13652 # The user is always right.
13653 if test "${PATH_SEPARATOR+set}" != set; then
13654 PATH_SEPARATOR=:
13655 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13656 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13657 PATH_SEPARATOR=';'
13658 }
13659 fi
13660
13661
13662 # IFS
13663 # We need space, tab and new line, in precisely that order. Quoting is
13664 # there to prevent editors from complaining about space-tab.
13665 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13666 # splitting by setting IFS to empty value.)
13667 IFS=" "" $as_nl"
13668
13669 # Find who we are. Look in the path if we contain no directory separator.
13670 as_myself=
13671 case $0 in #((
13672 *[\\/]* ) as_myself=$0 ;;
13673 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13675 do
13676 IFS=$as_save_IFS
13677 test -z "$as_dir" && as_dir=.
13678 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13679 done
13680 IFS=$as_save_IFS
13681
13682 ;;
13683 esac
13684 # We did not find ourselves, most probably we were run as `sh COMMAND'
13685 # in which case we are not to be found in the path.
13686 if test "x$as_myself" = x; then
13687 as_myself=$0
13688 fi
13689 if test ! -f "$as_myself"; then
13690 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13691 exit 1
13692 fi
13693
13694 # Unset variables that we do not need and which cause bugs (e.g. in
13695 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13696 # suppresses any "Segmentation fault" message there. '((' could
13697 # trigger a bug in pdksh 5.2.14.
13698 for as_var in BASH_ENV ENV MAIL MAILPATH
13699 do eval test x\${$as_var+set} = xset \
13700 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13701 done
13702 PS1='$ '
13703 PS2='> '
13704 PS4='+ '
13705
13706 # NLS nuisances.
13707 LC_ALL=C
13708 export LC_ALL
13709 LANGUAGE=C
13710 export LANGUAGE
13711
13712 # CDPATH.
13713 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13714
13715
13716 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13717 # ----------------------------------------
13718 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13719 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13720 # script with STATUS, using 1 if that was 0.
13721 as_fn_error ()
13722 {
13723 as_status=$1; test $as_status -eq 0 && as_status=1
13724 if test "$4"; then
13725 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13726 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13727 fi
13728 $as_echo "$as_me: error: $2" >&2
13729 as_fn_exit $as_status
13730 } # as_fn_error
13731
13732
13733 # as_fn_set_status STATUS
13734 # -----------------------
13735 # Set $? to STATUS, without forking.
13736 as_fn_set_status ()
13737 {
13738 return $1
13739 } # as_fn_set_status
13740
13741 # as_fn_exit STATUS
13742 # -----------------
13743 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13744 as_fn_exit ()
13745 {
13746 set +e
13747 as_fn_set_status $1
13748 exit $1
13749 } # as_fn_exit
13750
13751 # as_fn_unset VAR
13752 # ---------------
13753 # Portably unset VAR.
13754 as_fn_unset ()
13755 {
13756 { eval $1=; unset $1;}
13757 }
13758 as_unset=as_fn_unset
13759 # as_fn_append VAR VALUE
13760 # ----------------------
13761 # Append the text in VALUE to the end of the definition contained in VAR. Take
13762 # advantage of any shell optimizations that allow amortized linear growth over
13763 # repeated appends, instead of the typical quadratic growth present in naive
13764 # implementations.
13765 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13766 eval 'as_fn_append ()
13767 {
13768 eval $1+=\$2
13769 }'
13770 else
13771 as_fn_append ()
13772 {
13773 eval $1=\$$1\$2
13774 }
13775 fi # as_fn_append
13776
13777 # as_fn_arith ARG...
13778 # ------------------
13779 # Perform arithmetic evaluation on the ARGs, and store the result in the
13780 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13781 # must be portable across $(()) and expr.
13782 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13783 eval 'as_fn_arith ()
13784 {
13785 as_val=$(( $* ))
13786 }'
13787 else
13788 as_fn_arith ()
13789 {
13790 as_val=`expr "$@" || test $? -eq 1`
13791 }
13792 fi # as_fn_arith
13793
13794
13795 if expr a : '\(a\)' >/dev/null 2>&1 &&
13796 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13797 as_expr=expr
13798 else
13799 as_expr=false
13800 fi
13801
13802 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13803 as_basename=basename
13804 else
13805 as_basename=false
13806 fi
13807
13808 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13809 as_dirname=dirname
13810 else
13811 as_dirname=false
13812 fi
13813
13814 as_me=`$as_basename -- "$0" ||
13815 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13816 X"$0" : 'X\(//\)$' \| \
13817 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13818 $as_echo X/"$0" |
13819 sed '/^.*\/\([^/][^/]*\)\/*$/{
13820 s//\1/
13821 q
13822 }
13823 /^X\/\(\/\/\)$/{
13824 s//\1/
13825 q
13826 }
13827 /^X\/\(\/\).*/{
13828 s//\1/
13829 q
13830 }
13831 s/.*/./; q'`
13832
13833 # Avoid depending upon Character Ranges.
13834 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13835 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13836 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13837 as_cr_digits='0123456789'
13838 as_cr_alnum=$as_cr_Letters$as_cr_digits
13839
13840 ECHO_C= ECHO_N= ECHO_T=
13841 case `echo -n x` in #(((((
13842 -n*)
13843 case `echo 'xy\c'` in
13844 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13845 xy) ECHO_C='\c';;
13846 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13847 ECHO_T=' ';;
13848 esac;;
13849 *)
13850 ECHO_N='-n';;
13851 esac
13852
13853 rm -f conf$$ conf$$.exe conf$$.file
13854 if test -d conf$$.dir; then
13855 rm -f conf$$.dir/conf$$.file
13856 else
13857 rm -f conf$$.dir
13858 mkdir conf$$.dir 2>/dev/null
13859 fi
13860 if (echo >conf$$.file) 2>/dev/null; then
13861 if ln -s conf$$.file conf$$ 2>/dev/null; then
13862 as_ln_s='ln -s'
13863 # ... but there are two gotchas:
13864 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13865 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13866 # In both cases, we have to default to `cp -p'.
13867 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13868 as_ln_s='cp -p'
13869 elif ln conf$$.file conf$$ 2>/dev/null; then
13870 as_ln_s=ln
13871 else
13872 as_ln_s='cp -p'
13873 fi
13874 else
13875 as_ln_s='cp -p'
13876 fi
13877 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13878 rmdir conf$$.dir 2>/dev/null
13879
13880
13881 # as_fn_mkdir_p
13882 # -------------
13883 # Create "$as_dir" as a directory, including parents if necessary.
13884 as_fn_mkdir_p ()
13885 {
13886
13887 case $as_dir in #(
13888 -*) as_dir=./$as_dir;;
13889 esac
13890 test -d "$as_dir" || eval $as_mkdir_p || {
13891 as_dirs=
13892 while :; do
13893 case $as_dir in #(
13894 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13895 *) as_qdir=$as_dir;;
13896 esac
13897 as_dirs="'$as_qdir' $as_dirs"
13898 as_dir=`$as_dirname -- "$as_dir" ||
13899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13900 X"$as_dir" : 'X\(//\)[^/]' \| \
13901 X"$as_dir" : 'X\(//\)$' \| \
13902 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13903 $as_echo X"$as_dir" |
13904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13905 s//\1/
13906 q
13907 }
13908 /^X\(\/\/\)[^/].*/{
13909 s//\1/
13910 q
13911 }
13912 /^X\(\/\/\)$/{
13913 s//\1/
13914 q
13915 }
13916 /^X\(\/\).*/{
13917 s//\1/
13918 q
13919 }
13920 s/.*/./; q'`
13921 test -d "$as_dir" && break
13922 done
13923 test -z "$as_dirs" || eval "mkdir $as_dirs"
13924 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13925
13926
13927 } # as_fn_mkdir_p
13928 if mkdir -p . 2>/dev/null; then
13929 as_mkdir_p='mkdir -p "$as_dir"'
13930 else
13931 test -d ./-p && rmdir ./-p
13932 as_mkdir_p=false
13933 fi
13934
13935 if test -x / >/dev/null 2>&1; then
13936 as_test_x='test -x'
13937 else
13938 if ls -dL / >/dev/null 2>&1; then
13939 as_ls_L_option=L
13940 else
13941 as_ls_L_option=
13942 fi
13943 as_test_x='
13944 eval sh -c '\''
13945 if test -d "$1"; then
13946 test -d "$1/.";
13947 else
13948 case $1 in #(
13949 -*)set "./$1";;
13950 esac;
13951 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13952 ???[sx]*):;;*)false;;esac;fi
13953 '\'' sh
13954 '
13955 fi
13956 as_executable_p=$as_test_x
13957
13958 # Sed expression to map a string onto a valid CPP name.
13959 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13960
13961 # Sed expression to map a string onto a valid variable name.
13962 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13963
13964
13965 exec 6>&1
13966 ## ----------------------------------- ##
13967 ## Main body of $CONFIG_STATUS script. ##
13968 ## ----------------------------------- ##
13969 _ASEOF
13970 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13971
13972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13973 # Save the log message, to keep $0 and so on meaningful, and to
13974 # report actual input values of CONFIG_FILES etc. instead of their
13975 # values after options handling.
13976 ac_log="
13977 This file was extended by file $as_me 5.16, which was
13978 generated by GNU Autoconf 2.68. Invocation command line was
13979
13980 CONFIG_FILES = $CONFIG_FILES
13981 CONFIG_HEADERS = $CONFIG_HEADERS
13982 CONFIG_LINKS = $CONFIG_LINKS
13983 CONFIG_COMMANDS = $CONFIG_COMMANDS
13984 $ $0 $@
13985
13986 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13987 "
13988
13989 _ACEOF
13990
13991 case $ac_config_files in *"
13992 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13993 esac
13994
13995 case $ac_config_headers in *"
13996 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13997 esac
13998
13999
14000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14001 # Files that config.status was made for.
14002 config_files="$ac_config_files"
14003 config_headers="$ac_config_headers"
14004 config_commands="$ac_config_commands"
14005
14006 _ACEOF
14007
14008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14009 ac_cs_usage="\
14010 \`$as_me' instantiates files and other configuration actions
14011 from templates according to the current configuration. Unless the files
14012 and actions are specified as TAGs, all are instantiated by default.
14013
14014 Usage: $0 [OPTION]... [TAG]...
14015
14016 -h, --help print this help, then exit
14017 -V, --version print version number and configuration settings, then exit
14018 --config print configuration, then exit
14019 -q, --quiet, --silent
14020 do not print progress messages
14021 -d, --debug don't remove temporary files
14022 --recheck update $as_me by reconfiguring in the same conditions
14023 --file=FILE[:TEMPLATE]
14024 instantiate the configuration file FILE
14025 --header=FILE[:TEMPLATE]
14026 instantiate the configuration header FILE
14027
14028 Configuration files:
14029 $config_files
14030
14031 Configuration headers:
14032 $config_headers
14033
14034 Configuration commands:
14035 $config_commands
14036
14037 Report bugs to <christos (at] astron.com>."
14038
14039 _ACEOF
14040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14041 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14042 ac_cs_version="\\
14043 file config.status 5.16
14044 configured by $0, generated by GNU Autoconf 2.68,
14045 with options \\"\$ac_cs_config\\"
14046
14047 Copyright (C) 2010 Free Software Foundation, Inc.
14048 This config.status script is free software; the Free Software Foundation
14049 gives unlimited permission to copy, distribute and modify it."
14050
14051 ac_pwd='$ac_pwd'
14052 srcdir='$srcdir'
14053 INSTALL='$INSTALL'
14054 MKDIR_P='$MKDIR_P'
14055 AWK='$AWK'
14056 test -n "\$AWK" || AWK=awk
14057 _ACEOF
14058
14059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14060 # The default lists apply if the user does not specify any file.
14061 ac_need_defaults=:
14062 while test $# != 0
14063 do
14064 case $1 in
14065 --*=?*)
14066 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14067 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14068 ac_shift=:
14069 ;;
14070 --*=)
14071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14072 ac_optarg=
14073 ac_shift=:
14074 ;;
14075 *)
14076 ac_option=$1
14077 ac_optarg=$2
14078 ac_shift=shift
14079 ;;
14080 esac
14081
14082 case $ac_option in
14083 # Handling of the options.
14084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14085 ac_cs_recheck=: ;;
14086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14087 $as_echo "$ac_cs_version"; exit ;;
14088 --config | --confi | --conf | --con | --co | --c )
14089 $as_echo "$ac_cs_config"; exit ;;
14090 --debug | --debu | --deb | --de | --d | -d )
14091 debug=: ;;
14092 --file | --fil | --fi | --f )
14093 $ac_shift
14094 case $ac_optarg in
14095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14096 '') as_fn_error $? "missing file argument" ;;
14097 esac
14098 as_fn_append CONFIG_FILES " '$ac_optarg'"
14099 ac_need_defaults=false;;
14100 --header | --heade | --head | --hea )
14101 $ac_shift
14102 case $ac_optarg in
14103 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14104 esac
14105 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14106 ac_need_defaults=false;;
14107 --he | --h)
14108 # Conflict between --help and --header
14109 as_fn_error $? "ambiguous option: \`$1'
14110 Try \`$0 --help' for more information.";;
14111 --help | --hel | -h )
14112 $as_echo "$ac_cs_usage"; exit ;;
14113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14114 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14115 ac_cs_silent=: ;;
14116
14117 # This is an error.
14118 -*) as_fn_error $? "unrecognized option: \`$1'
14119 Try \`$0 --help' for more information." ;;
14120
14121 *) as_fn_append ac_config_targets " $1"
14122 ac_need_defaults=false ;;
14123
14124 esac
14125 shift
14126 done
14127
14128 ac_configure_extra_args=
14129
14130 if $ac_cs_silent; then
14131 exec 6>/dev/null
14132 ac_configure_extra_args="$ac_configure_extra_args --silent"
14133 fi
14134
14135 _ACEOF
14136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14137 if \$ac_cs_recheck; then
14138 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14139 shift
14140 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14141 CONFIG_SHELL='$SHELL'
14142 export CONFIG_SHELL
14143 exec "\$@"
14144 fi
14145
14146 _ACEOF
14147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14148 exec 5>>config.log
14149 {
14150 echo
14151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14152 ## Running $as_me. ##
14153 _ASBOX
14154 $as_echo "$ac_log"
14155 } >&5
14156
14157 _ACEOF
14158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14159 #
14160 # INIT-COMMANDS
14161 #
14162 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14163
14164
14165 # The HP-UX ksh and POSIX shell print the target directory to stdout
14166 # if CDPATH is set.
14167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14168
14169 sed_quote_subst='$sed_quote_subst'
14170 double_quote_subst='$double_quote_subst'
14171 delay_variable_subst='$delay_variable_subst'
14172 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14173 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14174 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14175 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14176 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14177 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14178 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14179 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14180 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14181 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14182 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14183 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14184 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14185 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14186 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14187 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14188 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14189 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14190 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14191 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14192 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14193 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14194 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14195 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14196 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14197 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14198 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14199 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14200 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14201 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14202 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14203 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14204 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14205 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14206 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14207 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14208 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14209 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14210 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14211 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14212 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14213 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14214 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14215 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14216 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"`'
14217 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"`'
14218 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14219 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14220 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14221 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14222 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14223 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14224 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14225 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14226 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14227 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14228 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14229 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14230 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14231 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14232 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14233 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14234 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14235 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14236 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14237 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14238 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14239 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14240 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14241 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14242 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14243 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14244 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14245 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14246 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14247 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14248 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14249 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14250 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14251 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14252 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14253 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14254 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14255 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14256 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14257 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14258 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14259 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14260 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14261 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14262 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14263 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14264 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14265 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14266 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14267 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14268 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14269 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14270 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14271 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14272 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14273 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14274 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14275 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14276 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14277 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14278 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14279 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14280 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14281 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14282 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14283 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14284 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14285 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14286 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14287 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14288 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14289 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14290
14291 LTCC='$LTCC'
14292 LTCFLAGS='$LTCFLAGS'
14293 compiler='$compiler_DEFAULT'
14294
14295 # Quote evaled strings.
14296 for var in SED \
14297 GREP \
14298 EGREP \
14299 FGREP \
14300 LD \
14301 NM \
14302 LN_S \
14303 lt_SP2NL \
14304 lt_NL2SP \
14305 reload_flag \
14306 OBJDUMP \
14307 deplibs_check_method \
14308 file_magic_cmd \
14309 AR \
14310 AR_FLAGS \
14311 STRIP \
14312 RANLIB \
14313 CC \
14314 CFLAGS \
14315 compiler \
14316 lt_cv_sys_global_symbol_pipe \
14317 lt_cv_sys_global_symbol_to_cdecl \
14318 lt_cv_sys_global_symbol_to_c_name_address \
14319 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14320 SHELL \
14321 ECHO \
14322 lt_prog_compiler_no_builtin_flag \
14323 lt_prog_compiler_wl \
14324 lt_prog_compiler_pic \
14325 lt_prog_compiler_static \
14326 lt_cv_prog_compiler_c_o \
14327 need_locks \
14328 DSYMUTIL \
14329 NMEDIT \
14330 LIPO \
14331 OTOOL \
14332 OTOOL64 \
14333 shrext_cmds \
14334 export_dynamic_flag_spec \
14335 whole_archive_flag_spec \
14336 compiler_needs_object \
14337 with_gnu_ld \
14338 allow_undefined_flag \
14339 no_undefined_flag \
14340 hardcode_libdir_flag_spec \
14341 hardcode_libdir_flag_spec_ld \
14342 hardcode_libdir_separator \
14343 fix_srcfile_path \
14344 exclude_expsyms \
14345 include_expsyms \
14346 file_list_spec \
14347 variables_saved_for_relink \
14348 libname_spec \
14349 library_names_spec \
14350 soname_spec \
14351 finish_eval \
14352 old_striplib \
14353 striplib; do
14354 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14355 *[\\\\\\\`\\"\\\$]*)
14356 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14357 ;;
14358 *)
14359 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14360 ;;
14361 esac
14362 done
14363
14364 # Double-quote double-evaled strings.
14365 for var in reload_cmds \
14366 old_postinstall_cmds \
14367 old_postuninstall_cmds \
14368 old_archive_cmds \
14369 extract_expsyms_cmds \
14370 old_archive_from_new_cmds \
14371 old_archive_from_expsyms_cmds \
14372 archive_cmds \
14373 archive_expsym_cmds \
14374 module_cmds \
14375 module_expsym_cmds \
14376 export_symbols_cmds \
14377 prelink_cmds \
14378 postinstall_cmds \
14379 postuninstall_cmds \
14380 finish_cmds \
14381 sys_lib_search_path_spec \
14382 sys_lib_dlsearch_path_spec; do
14383 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14384 *[\\\\\\\`\\"\\\$]*)
14385 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14386 ;;
14387 *)
14388 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14389 ;;
14390 esac
14391 done
14392
14393 # Fix-up fallback echo if it was mangled by the above quoting rules.
14394 case \$lt_ECHO in
14395 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14396 ;;
14397 esac
14398
14399 ac_aux_dir='$ac_aux_dir'
14400 xsi_shell='$xsi_shell'
14401 lt_shell_append='$lt_shell_append'
14402
14403 # See if we are running on zsh, and set the options which allow our
14404 # commands through without removal of \ escapes INIT.
14405 if test -n "\${ZSH_VERSION+set}" ; then
14406 setopt NO_GLOB_SUBST
14407 fi
14408
14409
14410 PACKAGE='$PACKAGE'
14411 VERSION='$VERSION'
14412 TIMESTAMP='$TIMESTAMP'
14413 RM='$RM'
14414 ofile='$ofile'
14415
14416
14417
14418
14419 _ACEOF
14420
14421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14422
14423 # Handling of arguments.
14424 for ac_config_target in $ac_config_targets
14425 do
14426 case $ac_config_target in
14427 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14428 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14429 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14430 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14431 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14432 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
14433 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14434 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14435 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
14436
14437 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14438 esac
14439 done
14440
14441
14442 # If the user did not use the arguments to specify the items to instantiate,
14443 # then the envvar interface is used. Set only those that are not.
14444 # We use the long form for the default assignment because of an extremely
14445 # bizarre bug on SunOS 4.1.3.
14446 if $ac_need_defaults; then
14447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14448 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14449 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14450 fi
14451
14452 # Have a temporary directory for convenience. Make it in the build tree
14453 # simply because there is no reason against having it here, and in addition,
14454 # creating and moving files from /tmp can sometimes cause problems.
14455 # Hook for its removal unless debugging.
14456 # Note that there is a small window in which the directory will not be cleaned:
14457 # after its creation but before its name has been assigned to `$tmp'.
14458 $debug ||
14459 {
14460 tmp= ac_tmp=
14461 trap 'exit_status=$?
14462 : "${ac_tmp:=$tmp}"
14463 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14464 ' 0
14465 trap 'as_fn_exit 1' 1 2 13 15
14466 }
14467 # Create a (secure) tmp directory for tmp files.
14468
14469 {
14470 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14471 test -d "$tmp"
14472 } ||
14473 {
14474 tmp=./conf$$-$RANDOM
14475 (umask 077 && mkdir "$tmp")
14476 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14477 ac_tmp=$tmp
14478
14479 # Set up the scripts for CONFIG_FILES section.
14480 # No need to generate them if there are no CONFIG_FILES.
14481 # This happens for instance with `./config.status config.h'.
14482 if test -n "$CONFIG_FILES"; then
14483
14484
14485 ac_cr=`echo X | tr X '\015'`
14486 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14487 # But we know of no other shell where ac_cr would be empty at this
14488 # point, so we can use a bashism as a fallback.
14489 if test "x$ac_cr" = x; then
14490 eval ac_cr=\$\'\\r\'
14491 fi
14492 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14493 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14494 ac_cs_awk_cr='\\r'
14495 else
14496 ac_cs_awk_cr=$ac_cr
14497 fi
14498
14499 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14500 _ACEOF
14501
14502
14503 {
14504 echo "cat >conf$$subs.awk <<_ACEOF" &&
14505 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14506 echo "_ACEOF"
14507 } >conf$$subs.sh ||
14508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14509 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14510 ac_delim='%!_!# '
14511 for ac_last_try in false false false false false :; do
14512 . ./conf$$subs.sh ||
14513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14514
14515 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14516 if test $ac_delim_n = $ac_delim_num; then
14517 break
14518 elif $ac_last_try; then
14519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14520 else
14521 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14522 fi
14523 done
14524 rm -f conf$$subs.sh
14525
14526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14527 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14528 _ACEOF
14529 sed -n '
14530 h
14531 s/^/S["/; s/!.*/"]=/
14532 p
14533 g
14534 s/^[^!]*!//
14535 :repl
14536 t repl
14537 s/'"$ac_delim"'$//
14538 t delim
14539 :nl
14540 h
14541 s/\(.\{148\}\)..*/\1/
14542 t more1
14543 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14544 p
14545 n
14546 b repl
14547 :more1
14548 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14549 p
14550 g
14551 s/.\{148\}//
14552 t nl
14553 :delim
14554 h
14555 s/\(.\{148\}\)..*/\1/
14556 t more2
14557 s/["\\]/\\&/g; s/^/"/; s/$/"/
14558 p
14559 b
14560 :more2
14561 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14562 p
14563 g
14564 s/.\{148\}//
14565 t delim
14566 ' <conf$$subs.awk | sed '
14567 /^[^""]/{
14568 N
14569 s/\n//
14570 }
14571 ' >>$CONFIG_STATUS || ac_write_fail=1
14572 rm -f conf$$subs.awk
14573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14574 _ACAWK
14575 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14576 for (key in S) S_is_set[key] = 1
14577 FS = ""
14578
14579 }
14580 {
14581 line = $ 0
14582 nfields = split(line, field, "@")
14583 substed = 0
14584 len = length(field[1])
14585 for (i = 2; i < nfields; i++) {
14586 key = field[i]
14587 keylen = length(key)
14588 if (S_is_set[key]) {
14589 value = S[key]
14590 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14591 len += length(value) + length(field[++i])
14592 substed = 1
14593 } else
14594 len += 1 + keylen
14595 }
14596
14597 print line
14598 }
14599
14600 _ACAWK
14601 _ACEOF
14602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14603 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14604 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14605 else
14606 cat
14607 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14608 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14609 _ACEOF
14610
14611 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14612 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14613 # trailing colons and then remove the whole line if VPATH becomes empty
14614 # (actually we leave an empty line to preserve line numbers).
14615 if test "x$srcdir" = x.; then
14616 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14617 h
14618 s///
14619 s/^/:/
14620 s/[ ]*$/:/
14621 s/:\$(srcdir):/:/g
14622 s/:\${srcdir}:/:/g
14623 s/:@srcdir@:/:/g
14624 s/^:*//
14625 s/:*$//
14626 x
14627 s/\(=[ ]*\).*/\1/
14628 G
14629 s/\n//
14630 s/^[^=]*=[ ]*$//
14631 }'
14632 fi
14633
14634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14635 fi # test -n "$CONFIG_FILES"
14636
14637 # Set up the scripts for CONFIG_HEADERS section.
14638 # No need to generate them if there are no CONFIG_HEADERS.
14639 # This happens for instance with `./config.status Makefile'.
14640 if test -n "$CONFIG_HEADERS"; then
14641 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14642 BEGIN {
14643 _ACEOF
14644
14645 # Transform confdefs.h into an awk script `defines.awk', embedded as
14646 # here-document in config.status, that substitutes the proper values into
14647 # config.h.in to produce config.h.
14648
14649 # Create a delimiter string that does not exist in confdefs.h, to ease
14650 # handling of long lines.
14651 ac_delim='%!_!# '
14652 for ac_last_try in false false :; do
14653 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14654 if test -z "$ac_tt"; then
14655 break
14656 elif $ac_last_try; then
14657 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14658 else
14659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14660 fi
14661 done
14662
14663 # For the awk script, D is an array of macro values keyed by name,
14664 # likewise P contains macro parameters if any. Preserve backslash
14665 # newline sequences.
14666
14667 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14668 sed -n '
14669 s/.\{148\}/&'"$ac_delim"'/g
14670 t rset
14671 :rset
14672 s/^[ ]*#[ ]*define[ ][ ]*/ /
14673 t def
14674 d
14675 :def
14676 s/\\$//
14677 t bsnl
14678 s/["\\]/\\&/g
14679 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14680 D["\1"]=" \3"/p
14681 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14682 d
14683 :bsnl
14684 s/["\\]/\\&/g
14685 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14686 D["\1"]=" \3\\\\\\n"\\/p
14687 t cont
14688 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14689 t cont
14690 d
14691 :cont
14692 n
14693 s/.\{148\}/&'"$ac_delim"'/g
14694 t clear
14695 :clear
14696 s/\\$//
14697 t bsnlc
14698 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14699 d
14700 :bsnlc
14701 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14702 b cont
14703 ' <confdefs.h | sed '
14704 s/'"$ac_delim"'/"\\\
14705 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14706
14707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14708 for (key in D) D_is_set[key] = 1
14709 FS = ""
14710 }
14711 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14712 line = \$ 0
14713 split(line, arg, " ")
14714 if (arg[1] == "#") {
14715 defundef = arg[2]
14716 mac1 = arg[3]
14717 } else {
14718 defundef = substr(arg[1], 2)
14719 mac1 = arg[2]
14720 }
14721 split(mac1, mac2, "(") #)
14722 macro = mac2[1]
14723 prefix = substr(line, 1, index(line, defundef) - 1)
14724 if (D_is_set[macro]) {
14725 # Preserve the white space surrounding the "#".
14726 print prefix "define", macro P[macro] D[macro]
14727 next
14728 } else {
14729 # Replace #undef with comments. This is necessary, for example,
14730 # in the case of _POSIX_SOURCE, which is predefined and required
14731 # on some systems where configure will not decide to define it.
14732 if (defundef == "undef") {
14733 print "/*", prefix defundef, macro, "*/"
14734 next
14735 }
14736 }
14737 }
14738 { print }
14739 _ACAWK
14740 _ACEOF
14741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14742 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14743 fi # test -n "$CONFIG_HEADERS"
14744
14745
14746 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14747 shift
14748 for ac_tag
14749 do
14750 case $ac_tag in
14751 :[FHLC]) ac_mode=$ac_tag; continue;;
14752 esac
14753 case $ac_mode$ac_tag in
14754 :[FHL]*:*);;
14755 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14756 :[FH]-) ac_tag=-:-;;
14757 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14758 esac
14759 ac_save_IFS=$IFS
14760 IFS=:
14761 set x $ac_tag
14762 IFS=$ac_save_IFS
14763 shift
14764 ac_file=$1
14765 shift
14766
14767 case $ac_mode in
14768 :L) ac_source=$1;;
14769 :[FH])
14770 ac_file_inputs=
14771 for ac_f
14772 do
14773 case $ac_f in
14774 -) ac_f="$ac_tmp/stdin";;
14775 *) # Look for the file first in the build tree, then in the source tree
14776 # (if the path is not absolute). The absolute path cannot be DOS-style,
14777 # because $ac_f cannot contain `:'.
14778 test -f "$ac_f" ||
14779 case $ac_f in
14780 [\\/$]*) false;;
14781 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14782 esac ||
14783 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14784 esac
14785 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14786 as_fn_append ac_file_inputs " '$ac_f'"
14787 done
14788
14789 # Let's still pretend it is `configure' which instantiates (i.e., don't
14790 # use $as_me), people would be surprised to read:
14791 # /* config.h. Generated by config.status. */
14792 configure_input='Generated from '`
14793 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14794 `' by configure.'
14795 if test x"$ac_file" != x-; then
14796 configure_input="$ac_file. $configure_input"
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14798 $as_echo "$as_me: creating $ac_file" >&6;}
14799 fi
14800 # Neutralize special characters interpreted by sed in replacement strings.
14801 case $configure_input in #(
14802 *\&* | *\|* | *\\* )
14803 ac_sed_conf_input=`$as_echo "$configure_input" |
14804 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14805 *) ac_sed_conf_input=$configure_input;;
14806 esac
14807
14808 case $ac_tag in
14809 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14811 esac
14812 ;;
14813 esac
14814
14815 ac_dir=`$as_dirname -- "$ac_file" ||
14816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14817 X"$ac_file" : 'X\(//\)[^/]' \| \
14818 X"$ac_file" : 'X\(//\)$' \| \
14819 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14820 $as_echo X"$ac_file" |
14821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14822 s//\1/
14823 q
14824 }
14825 /^X\(\/\/\)[^/].*/{
14826 s//\1/
14827 q
14828 }
14829 /^X\(\/\/\)$/{
14830 s//\1/
14831 q
14832 }
14833 /^X\(\/\).*/{
14834 s//\1/
14835 q
14836 }
14837 s/.*/./; q'`
14838 as_dir="$ac_dir"; as_fn_mkdir_p
14839 ac_builddir=.
14840
14841 case "$ac_dir" in
14842 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14843 *)
14844 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14845 # A ".." for each directory in $ac_dir_suffix.
14846 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14847 case $ac_top_builddir_sub in
14848 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14849 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14850 esac ;;
14851 esac
14852 ac_abs_top_builddir=$ac_pwd
14853 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14854 # for backward compatibility:
14855 ac_top_builddir=$ac_top_build_prefix
14856
14857 case $srcdir in
14858 .) # We are building in place.
14859 ac_srcdir=.
14860 ac_top_srcdir=$ac_top_builddir_sub
14861 ac_abs_top_srcdir=$ac_pwd ;;
14862 [\\/]* | ?:[\\/]* ) # Absolute name.
14863 ac_srcdir=$srcdir$ac_dir_suffix;
14864 ac_top_srcdir=$srcdir
14865 ac_abs_top_srcdir=$srcdir ;;
14866 *) # Relative name.
14867 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14868 ac_top_srcdir=$ac_top_build_prefix$srcdir
14869 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14870 esac
14871 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14872
14873
14874 case $ac_mode in
14875 :F)
14876 #
14877 # CONFIG_FILE
14878 #
14879
14880 case $INSTALL in
14881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14882 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14883 esac
14884 ac_MKDIR_P=$MKDIR_P
14885 case $MKDIR_P in
14886 [\\/$]* | ?:[\\/]* ) ;;
14887 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14888 esac
14889 _ACEOF
14890
14891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14892 # If the template does not know about datarootdir, expand it.
14893 # FIXME: This hack should be removed a few years after 2.60.
14894 ac_datarootdir_hack=; ac_datarootdir_seen=
14895 ac_sed_dataroot='
14896 /datarootdir/ {
14897 p
14898 q
14899 }
14900 /@datadir@/p
14901 /@docdir@/p
14902 /@infodir@/p
14903 /@localedir@/p
14904 /@mandir@/p'
14905 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14906 *datarootdir*) ac_datarootdir_seen=yes;;
14907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14909 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14910 _ACEOF
14911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14912 ac_datarootdir_hack='
14913 s&@datadir@&$datadir&g
14914 s&@docdir@&$docdir&g
14915 s&@infodir@&$infodir&g
14916 s&@localedir@&$localedir&g
14917 s&@mandir@&$mandir&g
14918 s&\\\${datarootdir}&$datarootdir&g' ;;
14919 esac
14920 _ACEOF
14921
14922 # Neutralize VPATH when `$srcdir' = `.'.
14923 # Shell code in configure.ac might set extrasub.
14924 # FIXME: do we really want to maintain this feature?
14925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14926 ac_sed_extra="$ac_vpsub
14927 $extrasub
14928 _ACEOF
14929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14930 :t
14931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14932 s|@configure_input@|$ac_sed_conf_input|;t t
14933 s&@top_builddir@&$ac_top_builddir_sub&;t t
14934 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14935 s&@srcdir@&$ac_srcdir&;t t
14936 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14937 s&@top_srcdir@&$ac_top_srcdir&;t t
14938 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14939 s&@builddir@&$ac_builddir&;t t
14940 s&@abs_builddir@&$ac_abs_builddir&;t t
14941 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14942 s&@INSTALL@&$ac_INSTALL&;t t
14943 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14944 $ac_datarootdir_hack
14945 "
14946 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14947 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14948
14949 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14950 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14951 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14952 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14954 which seems to be undefined. Please make sure it is defined" >&5
14955 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14956 which seems to be undefined. Please make sure it is defined" >&2;}
14957
14958 rm -f "$ac_tmp/stdin"
14959 case $ac_file in
14960 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14961 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14962 esac \
14963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14964 ;;
14965 :H)
14966 #
14967 # CONFIG_HEADER
14968 #
14969 if test x"$ac_file" != x-; then
14970 {
14971 $as_echo "/* $configure_input */" \
14972 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14973 } >"$ac_tmp/config.h" \
14974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14975 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14977 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14978 else
14979 rm -f "$ac_file"
14980 mv "$ac_tmp/config.h" "$ac_file" \
14981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14982 fi
14983 else
14984 $as_echo "/* $configure_input */" \
14985 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14986 || as_fn_error $? "could not create -" "$LINENO" 5
14987 fi
14988 # Compute "$ac_file"'s index in $config_headers.
14989 _am_arg="$ac_file"
14990 _am_stamp_count=1
14991 for _am_header in $config_headers :; do
14992 case $_am_header in
14993 $_am_arg | $_am_arg:* )
14994 break ;;
14995 * )
14996 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14997 esac
14998 done
14999 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15000 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15001 X"$_am_arg" : 'X\(//\)[^/]' \| \
15002 X"$_am_arg" : 'X\(//\)$' \| \
15003 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15004 $as_echo X"$_am_arg" |
15005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15006 s//\1/
15007 q
15008 }
15009 /^X\(\/\/\)[^/].*/{
15010 s//\1/
15011 q
15012 }
15013 /^X\(\/\/\)$/{
15014 s//\1/
15015 q
15016 }
15017 /^X\(\/\).*/{
15018 s//\1/
15019 q
15020 }
15021 s/.*/./; q'`/stamp-h$_am_stamp_count
15022 ;;
15023
15024 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15025 $as_echo "$as_me: executing $ac_file commands" >&6;}
15026 ;;
15027 esac
15028
15029
15030 case $ac_file$ac_mode in
15031 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15032 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15033 # are listed without --file. Let's play safe and only enable the eval
15034 # if we detect the quoting.
15035 case $CONFIG_FILES in
15036 *\'*) eval set x "$CONFIG_FILES" ;;
15037 *) set x $CONFIG_FILES ;;
15038 esac
15039 shift
15040 for mf
15041 do
15042 # Strip MF so we end up with the name of the file.
15043 mf=`echo "$mf" | sed -e 's/:.*$//'`
15044 # Check whether this is an Automake generated Makefile or not.
15045 # We used to match only the files named `Makefile.in', but
15046 # some people rename them; so instead we look at the file content.
15047 # Grep'ing the first line is not enough: some people post-process
15048 # each Makefile.in and add a new line on top of each file to say so.
15049 # Grep'ing the whole file is not good either: AIX grep has a line
15050 # limit of 2048, but all sed's we know have understand at least 4000.
15051 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15052 dirpart=`$as_dirname -- "$mf" ||
15053 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15054 X"$mf" : 'X\(//\)[^/]' \| \
15055 X"$mf" : 'X\(//\)$' \| \
15056 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15057 $as_echo X"$mf" |
15058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15059 s//\1/
15060 q
15061 }
15062 /^X\(\/\/\)[^/].*/{
15063 s//\1/
15064 q
15065 }
15066 /^X\(\/\/\)$/{
15067 s//\1/
15068 q
15069 }
15070 /^X\(\/\).*/{
15071 s//\1/
15072 q
15073 }
15074 s/.*/./; q'`
15075 else
15076 continue
15077 fi
15078 # Extract the definition of DEPDIR, am__include, and am__quote
15079 # from the Makefile without running `make'.
15080 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15081 test -z "$DEPDIR" && continue
15082 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15083 test -z "am__include" && continue
15084 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15085 # When using ansi2knr, U may be empty or an underscore; expand it
15086 U=`sed -n 's/^U = //p' < "$mf"`
15087 # Find all dependency output files, they are included files with
15088 # $(DEPDIR) in their names. We invoke sed twice because it is the
15089 # simplest approach to changing $(DEPDIR) to its actual value in the
15090 # expansion.
15091 for file in `sed -n "
15092 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15093 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15094 # Make sure the directory exists.
15095 test -f "$dirpart/$file" && continue
15096 fdir=`$as_dirname -- "$file" ||
15097 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15098 X"$file" : 'X\(//\)[^/]' \| \
15099 X"$file" : 'X\(//\)$' \| \
15100 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15101 $as_echo X"$file" |
15102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15103 s//\1/
15104 q
15105 }
15106 /^X\(\/\/\)[^/].*/{
15107 s//\1/
15108 q
15109 }
15110 /^X\(\/\/\)$/{
15111 s//\1/
15112 q
15113 }
15114 /^X\(\/\).*/{
15115 s//\1/
15116 q
15117 }
15118 s/.*/./; q'`
15119 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15120 # echo "creating $dirpart/$file"
15121 echo '# dummy' > "$dirpart/$file"
15122 done
15123 done
15124 }
15125 ;;
15126 "libtool":C)
15127
15128 # See if we are running on zsh, and set the options which allow our
15129 # commands through without removal of \ escapes.
15130 if test -n "${ZSH_VERSION+set}" ; then
15131 setopt NO_GLOB_SUBST
15132 fi
15133
15134 cfgfile="${ofile}T"
15135 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15136 $RM "$cfgfile"
15137
15138 cat <<_LT_EOF >> "$cfgfile"
15139 #! $SHELL
15140
15141 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15142 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15143 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15144 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15145 #
15146 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15147 # 2006, 2007, 2008 Free Software Foundation, Inc.
15148 # Written by Gordon Matzigkeit, 1996
15149 #
15150 # This file is part of GNU Libtool.
15151 #
15152 # GNU Libtool is free software; you can redistribute it and/or
15153 # modify it under the terms of the GNU General Public License as
15154 # published by the Free Software Foundation; either version 2 of
15155 # the License, or (at your option) any later version.
15156 #
15157 # As a special exception to the GNU General Public License,
15158 # if you distribute this file as part of a program or library that
15159 # is built using GNU Libtool, you may include this file under the
15160 # same distribution terms that you use for the rest of that program.
15161 #
15162 # GNU Libtool is distributed in the hope that it will be useful,
15163 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15164 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15165 # GNU General Public License for more details.
15166 #
15167 # You should have received a copy of the GNU General Public License
15168 # along with GNU Libtool; see the file COPYING. If not, a copy
15169 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15170 # obtained by writing to the Free Software Foundation, Inc.,
15171 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15172
15173
15174 # The names of the tagged configurations supported by this script.
15175 available_tags=""
15176
15177 # ### BEGIN LIBTOOL CONFIG
15178
15179 # Which release of libtool.m4 was used?
15180 macro_version=$macro_version
15181 macro_revision=$macro_revision
15182
15183 # Whether or not to build static libraries.
15184 build_old_libs=$enable_static
15185
15186 # What type of objects to build.
15187 pic_mode=$pic_mode
15188
15189 # Whether or not to build shared libraries.
15190 build_libtool_libs=$enable_shared
15191
15192 # Whether or not to optimize for fast installation.
15193 fast_install=$enable_fast_install
15194
15195 # The host system.
15196 host_alias=$host_alias
15197 host=$host
15198 host_os=$host_os
15199
15200 # The build system.
15201 build_alias=$build_alias
15202 build=$build
15203 build_os=$build_os
15204
15205 # A sed program that does not truncate output.
15206 SED=$lt_SED
15207
15208 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15209 Xsed="\$SED -e 1s/^X//"
15210
15211 # A grep program that handles long lines.
15212 GREP=$lt_GREP
15213
15214 # An ERE matcher.
15215 EGREP=$lt_EGREP
15216
15217 # A literal string matcher.
15218 FGREP=$lt_FGREP
15219
15220 # A BSD- or MS-compatible name lister.
15221 NM=$lt_NM
15222
15223 # Whether we need soft or hard links.
15224 LN_S=$lt_LN_S
15225
15226 # What is the maximum length of a command?
15227 max_cmd_len=$max_cmd_len
15228
15229 # Object file suffix (normally "o").
15230 objext=$ac_objext
15231
15232 # Executable file suffix (normally "").
15233 exeext=$exeext
15234
15235 # whether the shell understands "unset".
15236 lt_unset=$lt_unset
15237
15238 # turn spaces into newlines.
15239 SP2NL=$lt_lt_SP2NL
15240
15241 # turn newlines into spaces.
15242 NL2SP=$lt_lt_NL2SP
15243
15244 # How to create reloadable object files.
15245 reload_flag=$lt_reload_flag
15246 reload_cmds=$lt_reload_cmds
15247
15248 # An object symbol dumper.
15249 OBJDUMP=$lt_OBJDUMP
15250
15251 # Method to check whether dependent libraries are shared objects.
15252 deplibs_check_method=$lt_deplibs_check_method
15253
15254 # Command to use when deplibs_check_method == "file_magic".
15255 file_magic_cmd=$lt_file_magic_cmd
15256
15257 # The archiver.
15258 AR=$lt_AR
15259 AR_FLAGS=$lt_AR_FLAGS
15260
15261 # A symbol stripping program.
15262 STRIP=$lt_STRIP
15263
15264 # Commands used to install an old-style archive.
15265 RANLIB=$lt_RANLIB
15266 old_postinstall_cmds=$lt_old_postinstall_cmds
15267 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15268
15269 # A C compiler.
15270 LTCC=$lt_CC
15271
15272 # LTCC compiler flags.
15273 LTCFLAGS=$lt_CFLAGS
15274
15275 # Take the output of nm and produce a listing of raw symbols and C names.
15276 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15277
15278 # Transform the output of nm in a proper C declaration.
15279 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15280
15281 # Transform the output of nm in a C name address pair.
15282 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15283
15284 # Transform the output of nm in a C name address pair when lib prefix is needed.
15285 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15286
15287 # The name of the directory that contains temporary libtool files.
15288 objdir=$objdir
15289
15290 # Shell to use when invoking shell scripts.
15291 SHELL=$lt_SHELL
15292
15293 # An echo program that does not interpret backslashes.
15294 ECHO=$lt_ECHO
15295
15296 # Used to examine libraries when file_magic_cmd begins with "file".
15297 MAGIC_CMD=$MAGIC_CMD
15298
15299 # Must we lock files when doing compilation?
15300 need_locks=$lt_need_locks
15301
15302 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15303 DSYMUTIL=$lt_DSYMUTIL
15304
15305 # Tool to change global to local symbols on Mac OS X.
15306 NMEDIT=$lt_NMEDIT
15307
15308 # Tool to manipulate fat objects and archives on Mac OS X.
15309 LIPO=$lt_LIPO
15310
15311 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15312 OTOOL=$lt_OTOOL
15313
15314 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15315 OTOOL64=$lt_OTOOL64
15316
15317 # Old archive suffix (normally "a").
15318 libext=$libext
15319
15320 # Shared library suffix (normally ".so").
15321 shrext_cmds=$lt_shrext_cmds
15322
15323 # The commands to extract the exported symbol list from a shared archive.
15324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15325
15326 # Variables whose values should be saved in libtool wrapper scripts and
15327 # restored at link time.
15328 variables_saved_for_relink=$lt_variables_saved_for_relink
15329
15330 # Do we need the "lib" prefix for modules?
15331 need_lib_prefix=$need_lib_prefix
15332
15333 # Do we need a version for libraries?
15334 need_version=$need_version
15335
15336 # Library versioning type.
15337 version_type=$version_type
15338
15339 # Shared library runtime path variable.
15340 runpath_var=$runpath_var
15341
15342 # Shared library path variable.
15343 shlibpath_var=$shlibpath_var
15344
15345 # Is shlibpath searched before the hard-coded library search path?
15346 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15347
15348 # Format of library name prefix.
15349 libname_spec=$lt_libname_spec
15350
15351 # List of archive names. First name is the real one, the rest are links.
15352 # The last name is the one that the linker finds with -lNAME
15353 library_names_spec=$lt_library_names_spec
15354
15355 # The coded name of the library, if different from the real name.
15356 soname_spec=$lt_soname_spec
15357
15358 # Command to use after installation of a shared archive.
15359 postinstall_cmds=$lt_postinstall_cmds
15360
15361 # Command to use after uninstallation of a shared archive.
15362 postuninstall_cmds=$lt_postuninstall_cmds
15363
15364 # Commands used to finish a libtool library installation in a directory.
15365 finish_cmds=$lt_finish_cmds
15366
15367 # As "finish_cmds", except a single script fragment to be evaled but
15368 # not shown.
15369 finish_eval=$lt_finish_eval
15370
15371 # Whether we should hardcode library paths into libraries.
15372 hardcode_into_libs=$hardcode_into_libs
15373
15374 # Compile-time system search path for libraries.
15375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15376
15377 # Run-time system search path for libraries.
15378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15379
15380 # Whether dlopen is supported.
15381 dlopen_support=$enable_dlopen
15382
15383 # Whether dlopen of programs is supported.
15384 dlopen_self=$enable_dlopen_self
15385
15386 # Whether dlopen of statically linked programs is supported.
15387 dlopen_self_static=$enable_dlopen_self_static
15388
15389 # Commands to strip libraries.
15390 old_striplib=$lt_old_striplib
15391 striplib=$lt_striplib
15392
15393
15394 # The linker used to build libraries.
15395 LD=$lt_LD
15396
15397 # Commands used to build an old-style archive.
15398 old_archive_cmds=$lt_old_archive_cmds
15399
15400 # A language specific compiler.
15401 CC=$lt_compiler
15402
15403 # Is the compiler the GNU compiler?
15404 with_gcc=$GCC
15405
15406 # Compiler flag to turn off builtin functions.
15407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15408
15409 # How to pass a linker flag through the compiler.
15410 wl=$lt_lt_prog_compiler_wl
15411
15412 # Additional compiler flags for building library objects.
15413 pic_flag=$lt_lt_prog_compiler_pic
15414
15415 # Compiler flag to prevent dynamic linking.
15416 link_static_flag=$lt_lt_prog_compiler_static
15417
15418 # Does compiler simultaneously support -c and -o options?
15419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15420
15421 # Whether or not to add -lc for building shared libraries.
15422 build_libtool_need_lc=$archive_cmds_need_lc
15423
15424 # Whether or not to disallow shared libs when runtime libs are static.
15425 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15426
15427 # Compiler flag to allow reflexive dlopens.
15428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15429
15430 # Compiler flag to generate shared objects directly from archives.
15431 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15432
15433 # Whether the compiler copes with passing no objects directly.
15434 compiler_needs_object=$lt_compiler_needs_object
15435
15436 # Create an old-style archive from a shared archive.
15437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15438
15439 # Create a temporary old-style archive to link instead of a shared archive.
15440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15441
15442 # Commands used to build a shared archive.
15443 archive_cmds=$lt_archive_cmds
15444 archive_expsym_cmds=$lt_archive_expsym_cmds
15445
15446 # Commands used to build a loadable module if different from building
15447 # a shared archive.
15448 module_cmds=$lt_module_cmds
15449 module_expsym_cmds=$lt_module_expsym_cmds
15450
15451 # Whether we are building with GNU ld or not.
15452 with_gnu_ld=$lt_with_gnu_ld
15453
15454 # Flag that allows shared libraries with undefined symbols to be built.
15455 allow_undefined_flag=$lt_allow_undefined_flag
15456
15457 # Flag that enforces no undefined symbols.
15458 no_undefined_flag=$lt_no_undefined_flag
15459
15460 # Flag to hardcode \$libdir into a binary during linking.
15461 # This must work even if \$libdir does not exist
15462 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15463
15464 # If ld is used when linking, flag to hardcode \$libdir into a binary
15465 # during linking. This must work even if \$libdir does not exist.
15466 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15467
15468 # Whether we need a single "-rpath" flag with a separated argument.
15469 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15470
15471 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15472 # DIR into the resulting binary.
15473 hardcode_direct=$hardcode_direct
15474
15475 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15476 # DIR into the resulting binary and the resulting library dependency is
15477 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15478 # library is relocated.
15479 hardcode_direct_absolute=$hardcode_direct_absolute
15480
15481 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15482 # into the resulting binary.
15483 hardcode_minus_L=$hardcode_minus_L
15484
15485 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15486 # into the resulting binary.
15487 hardcode_shlibpath_var=$hardcode_shlibpath_var
15488
15489 # Set to "yes" if building a shared library automatically hardcodes DIR
15490 # into the library and all subsequent libraries and executables linked
15491 # against it.
15492 hardcode_automatic=$hardcode_automatic
15493
15494 # Set to yes if linker adds runtime paths of dependent libraries
15495 # to runtime path list.
15496 inherit_rpath=$inherit_rpath
15497
15498 # Whether libtool must link a program against all its dependency libraries.
15499 link_all_deplibs=$link_all_deplibs
15500
15501 # Fix the shell variable \$srcfile for the compiler.
15502 fix_srcfile_path=$lt_fix_srcfile_path
15503
15504 # Set to "yes" if exported symbols are required.
15505 always_export_symbols=$always_export_symbols
15506
15507 # The commands to list exported symbols.
15508 export_symbols_cmds=$lt_export_symbols_cmds
15509
15510 # Symbols that should not be listed in the preloaded symbols.
15511 exclude_expsyms=$lt_exclude_expsyms
15512
15513 # Symbols that must always be exported.
15514 include_expsyms=$lt_include_expsyms
15515
15516 # Commands necessary for linking programs (against libraries) with templates.
15517 prelink_cmds=$lt_prelink_cmds
15518
15519 # Specify filename containing input files.
15520 file_list_spec=$lt_file_list_spec
15521
15522 # How to hardcode a shared library path into an executable.
15523 hardcode_action=$hardcode_action
15524
15525 # ### END LIBTOOL CONFIG
15526
15527 _LT_EOF
15528
15529 case $host_os in
15530 aix3*)
15531 cat <<\_LT_EOF >> "$cfgfile"
15532 # AIX sometimes has problems with the GCC collect2 program. For some
15533 # reason, if we set the COLLECT_NAMES environment variable, the problems
15534 # vanish in a puff of smoke.
15535 if test "X${COLLECT_NAMES+set}" != Xset; then
15536 COLLECT_NAMES=
15537 export COLLECT_NAMES
15538 fi
15539 _LT_EOF
15540 ;;
15541 esac
15542
15543
15544 ltmain="$ac_aux_dir/ltmain.sh"
15545
15546
15547 # We use sed instead of cat because bash on DJGPP gets confused if
15548 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15549 # text mode, it properly converts lines to CR/LF. This bash problem
15550 # is reportedly fixed, but why not run on old versions too?
15551 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15552 || (rm -f "$cfgfile"; exit 1)
15553
15554 case $xsi_shell in
15555 yes)
15556 cat << \_LT_EOF >> "$cfgfile"
15557
15558 # func_dirname file append nondir_replacement
15559 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15560 # otherwise set result to NONDIR_REPLACEMENT.
15561 func_dirname ()
15562 {
15563 case ${1} in
15564 */*) func_dirname_result="${1%/*}${2}" ;;
15565 * ) func_dirname_result="${3}" ;;
15566 esac
15567 }
15568
15569 # func_basename file
15570 func_basename ()
15571 {
15572 func_basename_result="${1##*/}"
15573 }
15574
15575 # func_dirname_and_basename file append nondir_replacement
15576 # perform func_basename and func_dirname in a single function
15577 # call:
15578 # dirname: Compute the dirname of FILE. If nonempty,
15579 # add APPEND to the result, otherwise set result
15580 # to NONDIR_REPLACEMENT.
15581 # value returned in "$func_dirname_result"
15582 # basename: Compute filename of FILE.
15583 # value retuned in "$func_basename_result"
15584 # Implementation must be kept synchronized with func_dirname
15585 # and func_basename. For efficiency, we do not delegate to
15586 # those functions but instead duplicate the functionality here.
15587 func_dirname_and_basename ()
15588 {
15589 case ${1} in
15590 */*) func_dirname_result="${1%/*}${2}" ;;
15591 * ) func_dirname_result="${3}" ;;
15592 esac
15593 func_basename_result="${1##*/}"
15594 }
15595
15596 # func_stripname prefix suffix name
15597 # strip PREFIX and SUFFIX off of NAME.
15598 # PREFIX and SUFFIX must not contain globbing or regex special
15599 # characters, hashes, percent signs, but SUFFIX may contain a leading
15600 # dot (in which case that matches only a dot).
15601 func_stripname ()
15602 {
15603 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15604 # positional parameters, so assign one to ordinary parameter first.
15605 func_stripname_result=${3}
15606 func_stripname_result=${func_stripname_result#"${1}"}
15607 func_stripname_result=${func_stripname_result%"${2}"}
15608 }
15609
15610 # func_opt_split
15611 func_opt_split ()
15612 {
15613 func_opt_split_opt=${1%%=*}
15614 func_opt_split_arg=${1#*=}
15615 }
15616
15617 # func_lo2o object
15618 func_lo2o ()
15619 {
15620 case ${1} in
15621 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15622 *) func_lo2o_result=${1} ;;
15623 esac
15624 }
15625
15626 # func_xform libobj-or-source
15627 func_xform ()
15628 {
15629 func_xform_result=${1%.*}.lo
15630 }
15631
15632 # func_arith arithmetic-term...
15633 func_arith ()
15634 {
15635 func_arith_result=$(( $* ))
15636 }
15637
15638 # func_len string
15639 # STRING may not start with a hyphen.
15640 func_len ()
15641 {
15642 func_len_result=${#1}
15643 }
15644
15645 _LT_EOF
15646 ;;
15647 *) # Bourne compatible functions.
15648 cat << \_LT_EOF >> "$cfgfile"
15649
15650 # func_dirname file append nondir_replacement
15651 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15652 # otherwise set result to NONDIR_REPLACEMENT.
15653 func_dirname ()
15654 {
15655 # Extract subdirectory from the argument.
15656 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15657 if test "X$func_dirname_result" = "X${1}"; then
15658 func_dirname_result="${3}"
15659 else
15660 func_dirname_result="$func_dirname_result${2}"
15661 fi
15662 }
15663
15664 # func_basename file
15665 func_basename ()
15666 {
15667 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15668 }
15669
15670
15671 # func_stripname prefix suffix name
15672 # strip PREFIX and SUFFIX off of NAME.
15673 # PREFIX and SUFFIX must not contain globbing or regex special
15674 # characters, hashes, percent signs, but SUFFIX may contain a leading
15675 # dot (in which case that matches only a dot).
15676 # func_strip_suffix prefix name
15677 func_stripname ()
15678 {
15679 case ${2} in
15680 .*) func_stripname_result=`$ECHO "X${3}" \
15681 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15682 *) func_stripname_result=`$ECHO "X${3}" \
15683 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15684 esac
15685 }
15686
15687 # sed scripts:
15688 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15689 my_sed_long_arg='1s/^-[^=]*=//'
15690
15691 # func_opt_split
15692 func_opt_split ()
15693 {
15694 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15695 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15696 }
15697
15698 # func_lo2o object
15699 func_lo2o ()
15700 {
15701 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15702 }
15703
15704 # func_xform libobj-or-source
15705 func_xform ()
15706 {
15707 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15708 }
15709
15710 # func_arith arithmetic-term...
15711 func_arith ()
15712 {
15713 func_arith_result=`expr "$@"`
15714 }
15715
15716 # func_len string
15717 # STRING may not start with a hyphen.
15718 func_len ()
15719 {
15720 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15721 }
15722
15723 _LT_EOF
15724 esac
15725
15726 case $lt_shell_append in
15727 yes)
15728 cat << \_LT_EOF >> "$cfgfile"
15729
15730 # func_append var value
15731 # Append VALUE to the end of shell variable VAR.
15732 func_append ()
15733 {
15734 eval "$1+=\$2"
15735 }
15736 _LT_EOF
15737 ;;
15738 *)
15739 cat << \_LT_EOF >> "$cfgfile"
15740
15741 # func_append var value
15742 # Append VALUE to the end of shell variable VAR.
15743 func_append ()
15744 {
15745 eval "$1=\$$1\$2"
15746 }
15747
15748 _LT_EOF
15749 ;;
15750 esac
15751
15752
15753 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15754 || (rm -f "$cfgfile"; exit 1)
15755
15756 mv -f "$cfgfile" "$ofile" ||
15757 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15758 chmod +x "$ofile"
15759
15760 ;;
15761
15762 esac
15763 done # for ac_tag
15764
15765
15766 as_fn_exit 0
15767 _ACEOF
15768 ac_clean_files=$ac_clean_files_save
15769
15770 test $ac_write_fail = 0 ||
15771 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15772
15773
15774 # configure is writing to config.log, and then calls config.status.
15775 # config.status does its own redirection, appending to config.log.
15776 # Unfortunately, on DOS this fails, as config.log is still kept open
15777 # by configure, so config.status won't be able to write to it; its
15778 # output is simply discarded. So we exec the FD to /dev/null,
15779 # effectively closing config.log, so it can be properly (re)opened and
15780 # appended to by config.status. When coming back to configure, we
15781 # need to make the FD available again.
15782 if test "$no_create" != yes; then
15783 ac_cs_success=:
15784 ac_config_status_args=
15785 test "$silent" = yes &&
15786 ac_config_status_args="$ac_config_status_args --quiet"
15787 exec 5>/dev/null
15788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15789 exec 5>>config.log
15790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15791 # would make configure fail if this is the last instruction.
15792 $ac_cs_success || as_fn_exit 1
15793 fi
15794 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15796 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15797 fi
15798
15799