Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for libgringotts 1.2.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS=" $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Find the correct PATH separator. Usually this is `:', but
246 # DJGPP uses `;' like DOS.
247 if test "X${PATH_SEPARATOR+set}" != Xset; then
248 UNAME=${UNAME-`uname 2>/dev/null`}
249 case X$UNAME in
250 *-DOS) lt_cv_sys_path_separator=';' ;;
251 *) lt_cv_sys_path_separator=':' ;;
252 esac
253 PATH_SEPARATOR=$lt_cv_sys_path_separator
254 fi
255
256
257 # Check that we are running under the correct shell.
258 SHELL=${CONFIG_SHELL-/bin/sh}
259
260 case X$ECHO in
261 X*--fallback-echo)
262 # Remove one level of quotation (which was required for Make).
263 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
264 ;;
265 esac
266
267 echo=${ECHO-echo}
268 if test "X$1" = X--no-reexec; then
269 # Discard the --no-reexec flag, and continue.
270 shift
271 elif test "X$1" = X--fallback-echo; then
272 # Avoid inline document here, it may be left over
273 :
274 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
275 # Yippee, $echo works!
276 :
277 else
278 # Restart under the correct shell.
279 exec $SHELL "$0" --no-reexec ${1+"$@"}
280 fi
281
282 if test "X$1" = X--fallback-echo; then
283 # used as fallback echo
284 shift
285 cat <<EOF
286
287 EOF
288 exit 0
289 fi
290
291 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 # if CDPATH is set.
293 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294
295 if test -z "$ECHO"; then
296 if test "X${echo_test_string+set}" != Xset; then
297 # find a string as large as possible, as long as the shell can cope with it
298 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
299 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
300 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
301 echo_test_string="`eval $cmd`" &&
302 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
303 then
304 break
305 fi
306 done
307 fi
308
309 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
310 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
311 test "X$echo_testing_string" = "X$echo_test_string"; then
312 :
313 else
314 # The Solaris, AIX, and Digital Unix default echo programs unquote
315 # backslashes. This makes it impossible to quote backslashes using
316 # echo "$something" | sed 's/\\/\\\\/g'
317 #
318 # So, first we look for a working echo in the user's PATH.
319
320 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321 for dir in $PATH /usr/ucb; do
322 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 echo="$dir/echo"
327 break
328 fi
329 done
330 IFS="$save_ifs"
331
332 if test "X$echo" = Xecho; then
333 # We didn't find a better echo, so look for alternatives.
334 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
335 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
336 test "X$echo_testing_string" = "X$echo_test_string"; then
337 # This shell has a builtin print -r that does the trick.
338 echo='print -r'
339 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
340 test "X$CONFIG_SHELL" != X/bin/ksh; then
341 # If we have ksh, try running configure again with it.
342 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
343 export ORIGINAL_CONFIG_SHELL
344 CONFIG_SHELL=/bin/ksh
345 export CONFIG_SHELL
346 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
347 else
348 # Try using printf.
349 echo='printf %s\n'
350 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
351 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
352 test "X$echo_testing_string" = "X$echo_test_string"; then
353 # Cool, printf works
354 :
355 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 export CONFIG_SHELL
361 SHELL="$CONFIG_SHELL"
362 export SHELL
363 echo="$CONFIG_SHELL $0 --fallback-echo"
364 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
365 test "X$echo_testing_string" = 'X\t' &&
366 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
367 test "X$echo_testing_string" = "X$echo_test_string"; then
368 echo="$CONFIG_SHELL $0 --fallback-echo"
369 else
370 # maybe with a smaller string...
371 prev=:
372
373 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
374 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
375 then
376 break
377 fi
378 prev="$cmd"
379 done
380
381 if test "$prev" != 'sed 50q "$0"'; then
382 echo_test_string=`eval $prev`
383 export echo_test_string
384 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 else
386 # Oops. We lost completely, so just stick with echo.
387 echo=echo
388 fi
389 fi
390 fi
391 fi
392 fi
393 fi
394
395 # Copy echo and quote the copy suitably for passing to libtool from
396 # the Makefile, instead of quoting the original, which is used later.
397 ECHO=$echo
398 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
399 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
400 fi
401
402
403
404 # Name of the host.
405 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406 # so uname gets run too.
407 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
409 exec 6>&1
410
411 #
412 # Initializations.
413 #
414 ac_default_prefix=/usr/local
415 ac_config_libobj_dir=.
416 cross_compiling=no
417 subdirs=
418 MFLAGS=
419 MAKEFLAGS=
420 SHELL=${CONFIG_SHELL-/bin/sh}
421
422 # Maximum number of lines to put in a shell here document.
423 # This variable seems obsolete. It should probably be removed, and
424 # only ac_max_sed_lines should be used.
425 : ${ac_max_here_lines=38}
426
427 # Identity of this package.
428 PACKAGE_NAME='libgringotts'
429 PACKAGE_TARNAME='libgringotts'
430 PACKAGE_VERSION='1.2.1'
431 PACKAGE_STRING='libgringotts 1.2.1'
432 PACKAGE_BUGREPORT='[email protected]'
433
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 # include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 # include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 ac_unique_file="src/libgrg_crypt.c"
472 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBGRG_INTERFACE LIBGRG_RELEASE LIBGRG_AGE pcdir X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBZ LIBBZ2 MCRYPT_CFLAGS MCRYPT_LIBS MHASH LIBOBJS LTLIBOBJS'
473 ac_subst_files=''
474
475 # Initialize some variables set by options.
476 ac_init_help=
477 ac_init_version=false
478 # The variables have the same names as the options, with
479 # dashes changed to underlines.
480 cache_file=/dev/null
481 exec_prefix=NONE
482 no_create=
483 no_recursion=
484 prefix=NONE
485 program_prefix=NONE
486 program_suffix=NONE
487 program_transform_name=s,x,x,
488 silent=
489 site=
490 srcdir=
491 verbose=
492 x_includes=NONE
493 x_libraries=NONE
494
495 # Installation directory options.
496 # These are left unexpanded so users can "make install exec_prefix=/foo"
497 # and all the variables that are supposed to be based on exec_prefix
498 # by default will actually change.
499 # Use braces instead of parens because sh, perl, etc. also accept them.
500 bindir='${exec_prefix}/bin'
501 sbindir='${exec_prefix}/sbin'
502 libexecdir='${exec_prefix}/libexec'
503 datadir='${prefix}/share'
504 sysconfdir='${prefix}/etc'
505 sharedstatedir='${prefix}/com'
506 localstatedir='${prefix}/var'
507 libdir='${exec_prefix}/lib'
508 includedir='${prefix}/include'
509 oldincludedir='/usr/include'
510 infodir='${prefix}/info'
511 mandir='${prefix}/man'
512
513 ac_prev=
514 for ac_option
515 do
516 # If the previous option needs an argument, assign it.
517 if test -n "$ac_prev"; then
518 eval "$ac_prev=\$ac_option"
519 ac_prev=
520 continue
521 fi
522
523 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524
525 # Accept the important Cygnus configure options, so we can diagnose typos.
526
527 case $ac_option in
528
529 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 ac_prev=bindir ;;
531 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 bindir=$ac_optarg ;;
533
534 -build | --build | --buil | --bui | --bu)
535 ac_prev=build_alias ;;
536 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
537 build_alias=$ac_optarg ;;
538
539 -cache-file | --cache-file | --cache-fil | --cache-fi \
540 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541 ac_prev=cache_file ;;
542 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544 cache_file=$ac_optarg ;;
545
546 --config-cache | -C)
547 cache_file=config.cache ;;
548
549 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 ac_prev=datadir ;;
551 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 | --da=*)
553 datadir=$ac_optarg ;;
554
555 -disable-* | --disable-*)
556 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 eval "enable_$ac_feature=no" ;;
563
564 -enable-* | --enable-*)
565 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566 # Reject names that are not valid shell variable names.
567 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569 { (exit 1); exit 1; }; }
570 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 case $ac_option in
572 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 *) ac_optarg=yes ;;
574 esac
575 eval "enable_$ac_feature='$ac_optarg'" ;;
576
577 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579 | --exec | --exe | --ex)
580 ac_prev=exec_prefix ;;
581 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583 | --exec=* | --exe=* | --ex=*)
584 exec_prefix=$ac_optarg ;;
585
586 -gas | --gas | --ga | --g)
587 # Obsolete; use --with-gas.
588 with_gas=yes ;;
589
590 -help | --help | --hel | --he | -h)
591 ac_init_help=long ;;
592 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593 ac_init_help=recursive ;;
594 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595 ac_init_help=short ;;
596
597 -host | --host | --hos | --ho)
598 ac_prev=host_alias ;;
599 -host=* | --host=* | --hos=* | --ho=*)
600 host_alias=$ac_optarg ;;
601
602 -includedir | --includedir | --includedi | --included | --include \
603 | --includ | --inclu | --incl | --inc)
604 ac_prev=includedir ;;
605 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606 | --includ=* | --inclu=* | --incl=* | --inc=*)
607 includedir=$ac_optarg ;;
608
609 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 ac_prev=infodir ;;
611 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612 infodir=$ac_optarg ;;
613
614 -libdir | --libdir | --libdi | --libd)
615 ac_prev=libdir ;;
616 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 libdir=$ac_optarg ;;
618
619 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620 | --libexe | --libex | --libe)
621 ac_prev=libexecdir ;;
622 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623 | --libexe=* | --libex=* | --libe=*)
624 libexecdir=$ac_optarg ;;
625
626 -localstatedir | --localstatedir | --localstatedi | --localstated \
627 | --localstate | --localstat | --localsta | --localst \
628 | --locals | --local | --loca | --loc | --lo)
629 ac_prev=localstatedir ;;
630 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633 localstatedir=$ac_optarg ;;
634
635 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 ac_prev=mandir ;;
637 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 mandir=$ac_optarg ;;
639
640 -nfp | --nfp | --nf)
641 # Obsolete; use --without-fp.
642 with_fp=no ;;
643
644 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
645 | --no-cr | --no-c | -n)
646 no_create=yes ;;
647
648 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 no_recursion=yes ;;
651
652 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654 | --oldin | --oldi | --old | --ol | --o)
655 ac_prev=oldincludedir ;;
656 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659 oldincludedir=$ac_optarg ;;
660
661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 ac_prev=prefix ;;
663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 prefix=$ac_optarg ;;
665
666 -program-prefix | --program-prefix | --program-prefi | --program-pref \
667 | --program-pre | --program-pr | --program-p)
668 ac_prev=program_prefix ;;
669 -program-prefix=* | --program-prefix=* | --program-prefi=* \
670 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671 program_prefix=$ac_optarg ;;
672
673 -program-suffix | --program-suffix | --program-suffi | --program-suff \
674 | --program-suf | --program-su | --program-s)
675 ac_prev=program_suffix ;;
676 -program-suffix=* | --program-suffix=* | --program-suffi=* \
677 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678 program_suffix=$ac_optarg ;;
679
680 -program-transform-name | --program-transform-name \
681 | --program-transform-nam | --program-transform-na \
682 | --program-transform-n | --program-transform- \
683 | --program-transform | --program-transfor \
684 | --program-transfo | --program-transf \
685 | --program-trans | --program-tran \
686 | --progr-tra | --program-tr | --program-t)
687 ac_prev=program_transform_name ;;
688 -program-transform-name=* | --program-transform-name=* \
689 | --program-transform-nam=* | --program-transform-na=* \
690 | --program-transform-n=* | --program-transform-=* \
691 | --program-transform=* | --program-transfor=* \
692 | --program-transfo=* | --program-transf=* \
693 | --program-trans=* | --program-tran=* \
694 | --progr-tra=* | --program-tr=* | --program-t=*)
695 program_transform_name=$ac_optarg ;;
696
697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698 | -silent | --silent | --silen | --sile | --sil)
699 silent=yes ;;
700
701 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 ac_prev=sbindir ;;
703 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 | --sbi=* | --sb=*)
705 sbindir=$ac_optarg ;;
706
707 -sharedstatedir | --sharedstatedir | --sharedstatedi \
708 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709 | --sharedst | --shareds | --shared | --share | --shar \
710 | --sha | --sh)
711 ac_prev=sharedstatedir ;;
712 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 | --sha=* | --sh=*)
716 sharedstatedir=$ac_optarg ;;
717
718 -site | --site | --sit)
719 ac_prev=site ;;
720 -site=* | --site=* | --sit=*)
721 site=$ac_optarg ;;
722
723 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 ac_prev=srcdir ;;
725 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 srcdir=$ac_optarg ;;
727
728 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729 | --syscon | --sysco | --sysc | --sys | --sy)
730 ac_prev=sysconfdir ;;
731 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733 sysconfdir=$ac_optarg ;;
734
735 -target | --target | --targe | --targ | --tar | --ta | --t)
736 ac_prev=target_alias ;;
737 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738 target_alias=$ac_optarg ;;
739
740 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 verbose=yes ;;
742
743 -version | --version | --versio | --versi | --vers | -V)
744 ac_init_version=: ;;
745
746 -with-* | --with-*)
747 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748 # Reject names that are not valid shell variable names.
749 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750 { echo "$as_me: error: invalid package name: $ac_package" >&2
751 { (exit 1); exit 1; }; }
752 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 case $ac_option in
754 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 *) ac_optarg=yes ;;
756 esac
757 eval "with_$ac_package='$ac_optarg'" ;;
758
759 -without-* | --without-*)
760 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761 # Reject names that are not valid shell variable names.
762 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763 { echo "$as_me: error: invalid package name: $ac_package" >&2
764 { (exit 1); exit 1; }; }
765 ac_package=`echo $ac_package | sed 's/-/_/g'`
766 eval "with_$ac_package=no" ;;
767
768 --x)
769 # Obsolete; use --with-x.
770 with_x=yes ;;
771
772 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773 | --x-incl | --x-inc | --x-in | --x-i)
774 ac_prev=x_includes ;;
775 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777 x_includes=$ac_optarg ;;
778
779 -x-libraries | --x-libraries | --x-librarie | --x-librari \
780 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781 ac_prev=x_libraries ;;
782 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784 x_libraries=$ac_optarg ;;
785
786 -*) { echo "$as_me: error: unrecognized option: $ac_option
787 Try \`$0 --help' for more information." >&2
788 { (exit 1); exit 1; }; }
789 ;;
790
791 *=*)
792 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796 { (exit 1); exit 1; }; }
797 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798 eval "$ac_envvar='$ac_optarg'"
799 export $ac_envvar ;;
800
801 *)
802 # FIXME: should be removed in autoconf 3.0.
803 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 ;;
808
809 esac
810 done
811
812 if test -n "$ac_prev"; then
813 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814 { echo "$as_me: error: missing argument to $ac_option" >&2
815 { (exit 1); exit 1; }; }
816 fi
817
818 # Be sure to have absolute paths.
819 for ac_var in exec_prefix prefix
820 do
821 eval ac_val=$`echo $ac_var`
822 case $ac_val in
823 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
826 esac
827 done
828
829 # Be sure to have absolute paths.
830 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831 localstatedir libdir includedir oldincludedir infodir mandir
832 do
833 eval ac_val=$`echo $ac_var`
834 case $ac_val in
835 [\\/$]* | ?:[\\/]* ) ;;
836 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837 { (exit 1); exit 1; }; };;
838 esac
839 done
840
841 # There might be people who depend on the old broken behavior: `$host'
842 # used to hold the argument of --host etc.
843 # FIXME: To remove some day.
844 build=$build_alias
845 host=$host_alias
846 target=$target_alias
847
848 # FIXME: To remove some day.
849 if test "x$host_alias" != x; then
850 if test "x$build_alias" = x; then
851 cross_compiling=maybe
852 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853 If a cross compiler is detected then cross compile mode will be used." >&2
854 elif test "x$build_alias" != "x$host_alias"; then
855 cross_compiling=yes
856 fi
857 fi
858
859 ac_tool_prefix=
860 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861
862 test "$silent" = yes && exec 6>/dev/null
863
864
865 # Find the source files, if location was not specified.
866 if test -z "$srcdir"; then
867 ac_srcdir_defaulted=yes
868 # Try the directory containing this script, then its parent.
869 ac_confdir=`(dirname "$0") 2>/dev/null ||
870 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871 X"$0" : 'X\(//\)[^/]' \| \
872 X"$0" : 'X\(//\)$' \| \
873 X"$0" : 'X\(/\)' \| \
874 . : '\(.\)' 2>/dev/null ||
875 echo X"$0" |
876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878 /^X\(\/\/\)$/{ s//\1/; q; }
879 /^X\(\/\).*/{ s//\1/; q; }
880 s/.*/./; q'`
881 srcdir=$ac_confdir
882 if test ! -r $srcdir/$ac_unique_file; then
883 srcdir=..
884 fi
885 else
886 ac_srcdir_defaulted=no
887 fi
888 if test ! -r $srcdir/$ac_unique_file; then
889 if test "$ac_srcdir_defaulted" = yes; then
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891 { (exit 1); exit 1; }; }
892 else
893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894 { (exit 1); exit 1; }; }
895 fi
896 fi
897 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899 { (exit 1); exit 1; }; }
900 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901 ac_env_build_alias_set=${build_alias+set}
902 ac_env_build_alias_value=$build_alias
903 ac_cv_env_build_alias_set=${build_alias+set}
904 ac_cv_env_build_alias_value=$build_alias
905 ac_env_host_alias_set=${host_alias+set}
906 ac_env_host_alias_value=$host_alias
907 ac_cv_env_host_alias_set=${host_alias+set}
908 ac_cv_env_host_alias_value=$host_alias
909 ac_env_target_alias_set=${target_alias+set}
910 ac_env_target_alias_value=$target_alias
911 ac_cv_env_target_alias_set=${target_alias+set}
912 ac_cv_env_target_alias_value=$target_alias
913 ac_env_CC_set=${CC+set}
914 ac_env_CC_value=$CC
915 ac_cv_env_CC_set=${CC+set}
916 ac_cv_env_CC_value=$CC
917 ac_env_CFLAGS_set=${CFLAGS+set}
918 ac_env_CFLAGS_value=$CFLAGS
919 ac_cv_env_CFLAGS_set=${CFLAGS+set}
920 ac_cv_env_CFLAGS_value=$CFLAGS
921 ac_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_env_LDFLAGS_value=$LDFLAGS
923 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924 ac_cv_env_LDFLAGS_value=$LDFLAGS
925 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_env_CPPFLAGS_value=$CPPFLAGS
927 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929 ac_env_CPP_set=${CPP+set}
930 ac_env_CPP_value=$CPP
931 ac_cv_env_CPP_set=${CPP+set}
932 ac_cv_env_CPP_value=$CPP
933
934 #
935 # Report the --help message.
936 #
937 if test "$ac_init_help" = "long"; then
938 # Omit some internal or obsolete options to make the list less imposing.
939 # This message is too long to be a string in the A/UX 3.1 sh.
940 cat <<_ACEOF
941 \`configure' configures libgringotts 1.2.1 to adapt to many kinds of systems.
942
943 Usage: $0 [OPTION]... [VAR=VALUE]...
944
945 To assign environment variables (e.g., CC, CFLAGS...), specify them as
946 VAR=VALUE. See below for descriptions of some of the useful variables.
947
948 Defaults for the options are specified in brackets.
949
950 Configuration:
951 -h, --help display this help and exit
952 --help=short display options specific to this package
953 --help=recursive display the short help of all the included packages
954 -V, --version display version information and exit
955 -q, --quiet, --silent do not print \`checking...' messages
956 --cache-file=FILE cache test results in FILE [disabled]
957 -C, --config-cache alias for \`--cache-file=config.cache'
958 -n, --no-create do not create output files
959 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960
961 _ACEOF
962
963 cat <<_ACEOF
964 Installation directories:
965 --prefix=PREFIX install architecture-independent files in PREFIX
966 [$ac_default_prefix]
967 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
968 [PREFIX]
969
970 By default, \`make install' will install all the files in
971 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
972 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
973 for instance \`--prefix=\$HOME'.
974
975 For better control, use the options below.
976
977 Fine tuning of the installation directories:
978 --bindir=DIR user executables [EPREFIX/bin]
979 --sbindir=DIR system admin executables [EPREFIX/sbin]
980 --libexecdir=DIR program executables [EPREFIX/libexec]
981 --datadir=DIR read-only architecture-independent data [PREFIX/share]
982 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
983 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
984 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
985 --libdir=DIR object code libraries [EPREFIX/lib]
986 --includedir=DIR C header files [PREFIX/include]
987 --oldincludedir=DIR C header files for non-gcc [/usr/include]
988 --infodir=DIR info documentation [PREFIX/info]
989 --mandir=DIR man documentation [PREFIX/man]
990 _ACEOF
991
992 cat <<\_ACEOF
993
994 Program names:
995 --program-prefix=PREFIX prepend PREFIX to installed program names
996 --program-suffix=SUFFIX append SUFFIX to installed program names
997 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
998
999 X features:
1000 --x-includes=DIR X include files are in DIR
1001 --x-libraries=DIR X library files are in DIR
1002
1003 System types:
1004 --build=BUILD configure for building on BUILD [guessed]
1005 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1006 _ACEOF
1007 fi
1008
1009 if test -n "$ac_init_help"; then
1010 case $ac_init_help in
1011 short | recursive ) echo "Configuration of libgringotts 1.2.1:";;
1012 esac
1013 cat <<\_ACEOF
1014
1015 Optional Features:
1016 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1017 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1018 --enable-shared=PKGS build shared libraries default=yes
1019 --enable-static=PKGS build static libraries default=yes
1020 --enable-fast-install=PKGS optimize for fast installation default=yes
1021 --disable-dependency-tracking Speeds up one-time builds
1022 --enable-dependency-tracking Do not reject slow dependency extractors
1023 --disable-libtool-lock avoid locking (might break parallel builds)
1024
1025 Optional Packages:
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1028 --with-gnu-ld assume the C compiler uses GNU ld default=no
1029 --with-pic try to use only PIC/non-PIC objects default=use both
1030 --with-pkg-config-files=ARG
1031 The directory to put the pkg-config .pc files
1032 into(default=LIBDIR/pkgconfig)
1033 --with-x use the X Window System
1034
1035 Some influential environment variables:
1036 CC C compiler command
1037 CFLAGS C compiler flags
1038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039 nonstandard directory <lib dir>
1040 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041 headers in a nonstandard directory <include dir>
1042 CPP C preprocessor
1043
1044 Use these variables to override the choices made by `configure' or to help
1045 it to find libraries and programs with nonstandard names/locations.
1046
1047 Report bugs to <[email protected]>.
1048 _ACEOF
1049 fi
1050
1051 if test "$ac_init_help" = "recursive"; then
1052 # If there are subdirs, report their specific --help.
1053 ac_popdir=`pwd`
1054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055 test -d $ac_dir || continue
1056 ac_builddir=.
1057
1058 if test "$ac_dir" != .; then
1059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060 # A "../" for each directory in $ac_dir_suffix.
1061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062 else
1063 ac_dir_suffix= ac_top_builddir=
1064 fi
1065
1066 case $srcdir in
1067 .) # No --srcdir option. We are building in place.
1068 ac_srcdir=.
1069 if test -z "$ac_top_builddir"; then
1070 ac_top_srcdir=.
1071 else
1072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073 fi ;;
1074 [\\/]* | ?:[\\/]* ) # Absolute path.
1075 ac_srcdir=$srcdir$ac_dir_suffix;
1076 ac_top_srcdir=$srcdir ;;
1077 *) # Relative path.
1078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080 esac
1081 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1082 # absolute.
1083 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1084 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1085 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1086 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1087
1088 cd $ac_dir
1089 # Check for guested configure; otherwise get Cygnus style configure.
1090 if test -f $ac_srcdir/configure.gnu; then
1091 echo
1092 $SHELL $ac_srcdir/configure.gnu --help=recursive
1093 elif test -f $ac_srcdir/configure; then
1094 echo
1095 $SHELL $ac_srcdir/configure --help=recursive
1096 elif test -f $ac_srcdir/configure.ac ||
1097 test -f $ac_srcdir/configure.in; then
1098 echo
1099 $ac_configure --help
1100 else
1101 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1102 fi
1103 cd $ac_popdir
1104 done
1105 fi
1106
1107 test -n "$ac_init_help" && exit 0
1108 if $ac_init_version; then
1109 cat <<\_ACEOF
1110 libgringotts configure 1.2.1
1111 generated by GNU Autoconf 2.57
1112
1113 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1114 Free Software Foundation, Inc.
1115 This configure script is free software; the Free Software Foundation
1116 gives unlimited permission to copy, distribute and modify it.
1117 _ACEOF
1118 exit 0
1119 fi
1120 exec 5>config.log
1121 cat >&5 <<_ACEOF
1122 This file contains any messages produced by compilers while
1123 running configure, to aid debugging if configure makes a mistake.
1124
1125 It was created by libgringotts $as_me 1.2.1, which was
1126 generated by GNU Autoconf 2.57. Invocation command line was
1127
1128 $ $0 $@
1129
1130 _ACEOF
1131 {
1132 cat <<_ASUNAME
1133 ## --------- ##
1134 ## Platform. ##
1135 ## --------- ##
1136
1137 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1138 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1139 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1140 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1141 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1142
1143 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1144 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1145
1146 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1147 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1148 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1149 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1150 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1151 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1152 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1153
1154 _ASUNAME
1155
1156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1157 for as_dir in $PATH
1158 do
1159 IFS=$as_save_IFS
1160 test -z "$as_dir" && as_dir=.
1161 echo "PATH: $as_dir"
1162 done
1163
1164 } >&5
1165
1166 cat >&5 <<_ACEOF
1167
1168
1169 ## ----------- ##
1170 ## Core tests. ##
1171 ## ----------- ##
1172
1173 _ACEOF
1174
1175
1176 # Keep a trace of the command line.
1177 # Strip out --no-create and --no-recursion so they do not pile up.
1178 # Strip out --silent because we don't want to record it for future runs.
1179 # Also quote any args containing shell meta-characters.
1180 # Make two passes to allow for proper duplicate-argument suppression.
1181 ac_configure_args=
1182 ac_configure_args0=
1183 ac_configure_args1=
1184 ac_sep=
1185 ac_must_keep_next=false
1186 for ac_pass in 1 2
1187 do
1188 for ac_arg
1189 do
1190 case $ac_arg in
1191 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 continue ;;
1195 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1196 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1197 esac
1198 case $ac_pass in
1199 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1200 2)
1201 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1202 if test $ac_must_keep_next = true; then
1203 ac_must_keep_next=false # Got value, back to normal.
1204 else
1205 case $ac_arg in
1206 *=* | --config-cache | -C | -disable-* | --disable-* \
1207 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1208 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1209 | -with-* | --with-* | -without-* | --without-* | --x)
1210 case "$ac_configure_args0 " in
1211 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1212 esac
1213 ;;
1214 -* ) ac_must_keep_next=true ;;
1215 esac
1216 fi
1217 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1218 # Get rid of the leading space.
1219 ac_sep=" "
1220 ;;
1221 esac
1222 done
1223 done
1224 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1225 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1226
1227 # When interrupted or exit'd, cleanup temporary files, and complete
1228 # config.log. We remove comments because anyway the quotes in there
1229 # would cause problems or look ugly.
1230 # WARNING: Be sure not to use single quotes in there, as some shells,
1231 # such as our DU 5.0 friend, will then `close' the trap.
1232 trap 'exit_status=$?
1233 # Save into config.log some information that might help in debugging.
1234 {
1235 echo
1236
1237 cat <<\_ASBOX
1238 ## ---------------- ##
1239 ## Cache variables. ##
1240 ## ---------------- ##
1241 _ASBOX
1242 echo
1243 # The following way of writing the cache mishandles newlines in values,
1244 {
1245 (set) 2>&1 |
1246 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1247 *ac_space=\ *)
1248 sed -n \
1249 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1251 ;;
1252 *)
1253 sed -n \
1254 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1255 ;;
1256 esac;
1257 }
1258 echo
1259
1260 cat <<\_ASBOX
1261 ## ----------------- ##
1262 ## Output variables. ##
1263 ## ----------------- ##
1264 _ASBOX
1265 echo
1266 for ac_var in $ac_subst_vars
1267 do
1268 eval ac_val=$`echo $ac_var`
1269 echo "$ac_var='"'"'$ac_val'"'"'"
1270 done | sort
1271 echo
1272
1273 if test -n "$ac_subst_files"; then
1274 cat <<\_ASBOX
1275 ## ------------- ##
1276 ## Output files. ##
1277 ## ------------- ##
1278 _ASBOX
1279 echo
1280 for ac_var in $ac_subst_files
1281 do
1282 eval ac_val=$`echo $ac_var`
1283 echo "$ac_var='"'"'$ac_val'"'"'"
1284 done | sort
1285 echo
1286 fi
1287
1288 if test -s confdefs.h; then
1289 cat <<\_ASBOX
1290 ## ----------- ##
1291 ## confdefs.h. ##
1292 ## ----------- ##
1293 _ASBOX
1294 echo
1295 sed "/^$/d" confdefs.h | sort
1296 echo
1297 fi
1298 test "$ac_signal" != 0 &&
1299 echo "$as_me: caught signal $ac_signal"
1300 echo "$as_me: exit $exit_status"
1301 } >&5
1302 rm -f core core.* *.core &&
1303 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1304 exit $exit_status
1305 ' 0
1306 for ac_signal in 1 2 13 15; do
1307 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1308 done
1309 ac_signal=0
1310
1311 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1312 rm -rf conftest* confdefs.h
1313 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1314 echo >confdefs.h
1315
1316 # Predefined preprocessor variables.
1317
1318 cat >>confdefs.h <<_ACEOF
1319 #define PACKAGE_NAME "$PACKAGE_NAME"
1320 _ACEOF
1321
1322
1323 cat >>confdefs.h <<_ACEOF
1324 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1325 _ACEOF
1326
1327
1328 cat >>confdefs.h <<_ACEOF
1329 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1330 _ACEOF
1331
1332
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_STRING "$PACKAGE_STRING"
1335 _ACEOF
1336
1337
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1340 _ACEOF
1341
1342
1343 # Let the site file select an alternate cache file if it wants to.
1344 # Prefer explicitly selected file to automatically selected ones.
1345 if test -z "$CONFIG_SITE"; then
1346 if test "x$prefix" != xNONE; then
1347 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1348 else
1349 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1350 fi
1351 fi
1352 for ac_site_file in $CONFIG_SITE; do
1353 if test -r "$ac_site_file"; then
1354 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1355 echo "$as_me: loading site script $ac_site_file" >&6;}
1356 sed 's/^/| /' "$ac_site_file" >&5
1357 . "$ac_site_file"
1358 fi
1359 done
1360
1361 if test -r "$cache_file"; then
1362 # Some versions of bash will fail to source /dev/null (special
1363 # files actually), so we avoid doing that.
1364 if test -f "$cache_file"; then
1365 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1366 echo "$as_me: loading cache $cache_file" >&6;}
1367 case $cache_file in
1368 [\\/]* | ?:[\\/]* ) . $cache_file;;
1369 *) . ./$cache_file;;
1370 esac
1371 fi
1372 else
1373 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1374 echo "$as_me: creating cache $cache_file" >&6;}
1375 >$cache_file
1376 fi
1377
1378 # Check that the precious variables saved in the cache have kept the same
1379 # value.
1380 ac_cache_corrupted=false
1381 for ac_var in `(set) 2>&1 |
1382 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1383 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1384 eval ac_new_set=\$ac_env_${ac_var}_set
1385 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1386 eval ac_new_val="\$ac_env_${ac_var}_value"
1387 case $ac_old_set,$ac_new_set in
1388 set,)
1389 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1390 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1391 ac_cache_corrupted=: ;;
1392 ,set)
1393 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1394 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1395 ac_cache_corrupted=: ;;
1396 ,);;
1397 *)
1398 if test "x$ac_old_val" != "x$ac_new_val"; then
1399 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1400 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1401 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1402 echo "$as_me: former value: $ac_old_val" >&2;}
1403 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1404 echo "$as_me: current value: $ac_new_val" >&2;}
1405 ac_cache_corrupted=:
1406 fi;;
1407 esac
1408 # Pass precious variables to config.status.
1409 if test "$ac_new_set" = set; then
1410 case $ac_new_val in
1411 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1412 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1413 *) ac_arg=$ac_var=$ac_new_val ;;
1414 esac
1415 case " $ac_configure_args " in
1416 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1417 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1418 esac
1419 fi
1420 done
1421 if $ac_cache_corrupted; then
1422 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1423 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1424 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1425 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1426 { (exit 1); exit 1; }; }
1427 fi
1428
1429 ac_ext=c
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462 LIBGRG_NAME=$PACKAGE_NAME
1463 LIBGRG_VERSION=$PACKAGE_VERSION
1464
1465 LIBGRG_FILE_VERSION=3
1466
1467 LIBGRG_INTERFACE=2
1468 LIBGRG_RELEASE=7
1469 LIBGRG_AGE=0
1470
1471 am__api_version="1.7"
1472 ac_aux_dir=
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
1486 fi
1487 done
1488 if test -z "$ac_aux_dir"; then
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
1492 fi
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1496
1497 # Find a good install program. We prefer a C program (faster),
1498 # so one script is as good as another. But avoid the broken or
1499 # incompatible versions:
1500 # SysV /etc/install, /usr/sbin/install
1501 # SunOS /usr/etc/install
1502 # IRIX /sbin/install
1503 # AIX /bin/install
1504 # AmigaOS /C/install, which installs bootblocks on floppy discs
1505 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1506 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1507 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1508 # ./install, which can be erroneously created by make from ./install.sh.
1509 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1510 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1511 if test -z "$INSTALL"; then
1512 if test "${ac_cv_path_install+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 for as_dir in $PATH
1517 do
1518 IFS=$as_save_IFS
1519 test -z "$as_dir" && as_dir=.
1520 # Account for people who put trailing slashes in PATH elements.
1521 case $as_dir/ in
1522 ./ | .// | /cC/* | \
1523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1524 /usr/ucb/* ) ;;
1525 *)
1526 # OSF1 and SCO ODT 3.0 have their own names for install.
1527 # Don't use installbsd from OSF since it installs stuff as root
1528 # by default.
1529 for ac_prog in ginstall scoinst install; do
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1532 if test $ac_prog = install &&
1533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1534 # AIX install. It has an incompatible calling convention.
1535 :
1536 elif test $ac_prog = install &&
1537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1538 # program-specific install script used by HP pwplus--don't use.
1539 :
1540 else
1541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1542 break 3
1543 fi
1544 fi
1545 done
1546 done
1547 ;;
1548 esac
1549 done
1550
1551
1552 fi
1553 if test "${ac_cv_path_install+set}" = set; then
1554 INSTALL=$ac_cv_path_install
1555 else
1556 # As a last resort, use the slow shell script. We don't cache a
1557 # path for INSTALL within a source directory, because that will
1558 # break other packages using the cache if that directory is
1559 # removed, or if the path is relative.
1560 INSTALL=$ac_install_sh
1561 fi
1562 fi
1563 echo "$as_me:$LINENO: result: $INSTALL" >&5
1564 echo "${ECHO_T}$INSTALL" >&6
1565
1566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1567 # It thinks the first close brace ends the variable substitution.
1568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1569
1570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1571
1572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1573
1574 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1575 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1576 # Just in case
1577 sleep 1
1578 echo timestamp > conftest.file
1579 # Do `set' in a subshell so we don't clobber the current shell's
1580 # arguments. Must try -L first in case configure is actually a
1581 # symlink; some systems play weird games with the mod time of symlinks
1582 # (eg FreeBSD returns the mod time of the symlink's containing
1583 # directory).
1584 if (
1585 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1586 if test "$*" = "X"; then
1587 # -L didn't work.
1588 set X `ls -t $srcdir/configure conftest.file`
1589 fi
1590 rm -f conftest.file
1591 if test "$*" != "X $srcdir/configure conftest.file" \
1592 && test "$*" != "X conftest.file $srcdir/configure"; then
1593
1594 # If neither matched, then we have a broken ls. This can happen
1595 # if, for instance, CONFIG_SHELL is bash and it inherits a
1596 # broken ls alias from the environment. This has actually
1597 # happened. Such a system could not be considered "sane".
1598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1599 alias in your environment" >&5
1600 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1601 alias in your environment" >&2;}
1602 { (exit 1); exit 1; }; }
1603 fi
1604
1605 test "$2" = conftest.file
1606 )
1607 then
1608 # Ok.
1609 :
1610 else
1611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1612 Check your system clock" >&5
1613 echo "$as_me: error: newly created file is older than distributed files!
1614 Check your system clock" >&2;}
1615 { (exit 1); exit 1; }; }
1616 fi
1617 echo "$as_me:$LINENO: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1619 test "$program_prefix" != NONE &&
1620 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1621 # Use a double $ so make ignores it.
1622 test "$program_suffix" != NONE &&
1623 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1624 # Double any \ or $. echo might interpret backslashes.
1625 # By default was `s,x,x', remove it if useless.
1626 cat <<\_ACEOF >conftest.sed
1627 s/[\\$]/&&/g;s/;s,x,x,$//
1628 _ACEOF
1629 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1630 rm conftest.sed
1631
1632
1633 # expand $ac_aux_dir to an absolute path
1634 am_aux_dir=`cd $ac_aux_dir && pwd`
1635
1636 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1637 # Use eval to expand $SHELL
1638 if eval "$MISSING --run true"; then
1639 am_missing_run="$MISSING --run "
1640 else
1641 am_missing_run=
1642 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1643 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1644 fi
1645
1646 for ac_prog in gawk mawk nawk awk
1647 do
1648 # Extract the first word of "$ac_prog", so it can be a program name with args.
1649 set dummy $ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_AWK+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$AWK"; then
1656 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_AWK="$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1668 fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 AWK=$ac_cv_prog_AWK
1675 if test -n "$AWK"; then
1676 echo "$as_me:$LINENO: result: $AWK" >&5
1677 echo "${ECHO_T}$AWK" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 test -n "$AWK" && break
1684 done
1685
1686 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1687 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1688 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1689 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692 cat >conftest.make <<\_ACEOF
1693 all:
1694 @echo 'ac_maketemp="$(MAKE)"'
1695 _ACEOF
1696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1697 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1698 if test -n "$ac_maketemp"; then
1699 eval ac_cv_prog_make_${ac_make}_set=yes
1700 else
1701 eval ac_cv_prog_make_${ac_make}_set=no
1702 fi
1703 rm -f conftest.make
1704 fi
1705 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1706 echo "$as_me:$LINENO: result: yes" >&5
1707 echo "${ECHO_T}yes" >&6
1708 SET_MAKE=
1709 else
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1712 SET_MAKE="MAKE=${MAKE-make}"
1713 fi
1714
1715 # test to see if srcdir already configured
1716 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717 test -f $srcdir/config.status; then
1718 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1719 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1720 { (exit 1); exit 1; }; }
1721 fi
1722
1723 # test whether we have cygpath
1724 if test -z "$CYGPATH_W"; then
1725 if (cygpath --version) >/dev/null 2>/dev/null; then
1726 CYGPATH_W='cygpath -w'
1727 else
1728 CYGPATH_W=echo
1729 fi
1730 fi
1731
1732
1733 # Define the identity of the package.
1734 PACKAGE=$LIBGRG_NAME
1735 VERSION=$LIBGRG_VERSION
1736
1737
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE "$PACKAGE"
1740 _ACEOF
1741
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define VERSION "$VERSION"
1745 _ACEOF
1746
1747 # Some tools Automake needs.
1748
1749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1750
1751
1752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1753
1754
1755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1756
1757
1758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1759
1760
1761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1762
1763
1764 AMTAR=${AMTAR-"${am_missing_run}tar"}
1765
1766 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1767
1768 # Installed binaries are usually stripped using `strip' when the user
1769 # run `make install-strip'. However `strip' might not be the right
1770 # tool to use in cross-compilation environments, therefore Automake
1771 # will honor the `STRIP' environment variable to overrule this program.
1772 if test "$cross_compiling" != no; then
1773 if test -n "$ac_tool_prefix"; then
1774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1775 set dummy ${ac_tool_prefix}strip; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_STRIP+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781 if test -n "$STRIP"; then
1782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1783 else
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1786 do
1787 IFS=$as_save_IFS
1788 test -z "$as_dir" && as_dir=.
1789 for ac_exec_ext in '' $ac_executable_extensions; do
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793 break 2
1794 fi
1795 done
1796 done
1797
1798 fi
1799 fi
1800 STRIP=$ac_cv_prog_STRIP
1801 if test -n "$STRIP"; then
1802 echo "$as_me:$LINENO: result: $STRIP" >&5
1803 echo "${ECHO_T}$STRIP" >&6
1804 else
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1807 fi
1808
1809 fi
1810 if test -z "$ac_cv_prog_STRIP"; then
1811 ac_ct_STRIP=$STRIP
1812 # Extract the first word of "strip", so it can be a program name with args.
1813 set dummy strip; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 if test -n "$ac_ct_STRIP"; then
1820 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1821 else
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1824 do
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_ac_ct_STRIP="strip"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 break 2
1832 fi
1833 done
1834 done
1835
1836 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1837 fi
1838 fi
1839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1840 if test -n "$ac_ct_STRIP"; then
1841 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1842 echo "${ECHO_T}$ac_ct_STRIP" >&6
1843 else
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 fi
1847
1848 STRIP=$ac_ct_STRIP
1849 else
1850 STRIP="$ac_cv_prog_STRIP"
1851 fi
1852
1853 fi
1854 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1855
1856 # We need awk for the "check" target. The system "awk" is bad on
1857 # some platforms.
1858
1859
1860
1861 # Check whether --enable-shared or --disable-shared was given.
1862 if test "${enable_shared+set}" = set; then
1863 enableval="$enable_shared"
1864 p=${PACKAGE-default}
1865 case $enableval in
1866 yes) enable_shared=yes ;;
1867 no) enable_shared=no ;;
1868 *)
1869 enable_shared=no
1870 # Look at the argument we got. We use all the common list separators.
1871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1872 for pkg in $enableval; do
1873 if test "X$pkg" = "X$p"; then
1874 enable_shared=yes
1875 fi
1876 done
1877 IFS="$ac_save_ifs"
1878 ;;
1879 esac
1880 else
1881 enable_shared=yes
1882 fi;
1883 # Check whether --enable-static or --disable-static was given.
1884 if test "${enable_static+set}" = set; then
1885 enableval="$enable_static"
1886 p=${PACKAGE-default}
1887 case $enableval in
1888 yes) enable_static=yes ;;
1889 no) enable_static=no ;;
1890 *)
1891 enable_static=no
1892 # Look at the argument we got. We use all the common list separators.
1893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1894 for pkg in $enableval; do
1895 if test "X$pkg" = "X$p"; then
1896 enable_static=yes
1897 fi
1898 done
1899 IFS="$ac_save_ifs"
1900 ;;
1901 esac
1902 else
1903 enable_static=yes
1904 fi;
1905 # Check whether --enable-fast-install or --disable-fast-install was given.
1906 if test "${enable_fast_install+set}" = set; then
1907 enableval="$enable_fast_install"
1908 p=${PACKAGE-default}
1909 case $enableval in
1910 yes) enable_fast_install=yes ;;
1911 no) enable_fast_install=no ;;
1912 *)
1913 enable_fast_install=no
1914 # Look at the argument we got. We use all the common list separators.
1915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1916 for pkg in $enableval; do
1917 if test "X$pkg" = "X$p"; then
1918 enable_fast_install=yes
1919 fi
1920 done
1921 IFS="$ac_save_ifs"
1922 ;;
1923 esac
1924 else
1925 enable_fast_install=yes
1926 fi;
1927 # Make sure we can run config.sub.
1928 $ac_config_sub sun4 >/dev/null 2>&1 ||
1929 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1930 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1931 { (exit 1); exit 1; }; }
1932
1933 echo "$as_me:$LINENO: checking build system type" >&5
1934 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1935 if test "${ac_cv_build+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938 ac_cv_build_alias=$build_alias
1939 test -z "$ac_cv_build_alias" &&
1940 ac_cv_build_alias=`$ac_config_guess`
1941 test -z "$ac_cv_build_alias" &&
1942 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1943 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1944 { (exit 1); exit 1; }; }
1945 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1946 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1947 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1948 { (exit 1); exit 1; }; }
1949
1950 fi
1951 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1952 echo "${ECHO_T}$ac_cv_build" >&6
1953 build=$ac_cv_build
1954 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1955 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1956 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1957
1958
1959 echo "$as_me:$LINENO: checking host system type" >&5
1960 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1961 if test "${ac_cv_host+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964 ac_cv_host_alias=$host_alias
1965 test -z "$ac_cv_host_alias" &&
1966 ac_cv_host_alias=$ac_cv_build_alias
1967 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1968 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1969 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1970 { (exit 1); exit 1; }; }
1971
1972 fi
1973 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1974 echo "${ECHO_T}$ac_cv_host" >&6
1975 host=$ac_cv_host
1976 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1977 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1978 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1979
1980
1981 rm -f .deps 2>/dev/null
1982 mkdir .deps 2>/dev/null
1983 if test -d .deps; then
1984 DEPDIR=.deps
1985 else
1986 # MS-DOS does not allow filenames that begin with a dot.
1987 DEPDIR=_deps
1988 fi
1989 rmdir .deps 2>/dev/null
1990
1991
1992 ac_config_commands="$ac_config_commands depfiles"
1993
1994
1995 am_make=${MAKE-make}
1996 cat > confinc << 'END'
1997 doit:
1998 @echo done
1999 END
2000 # If we don't find an include directive, just comment out the code.
2001 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2002 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2003 am__include="#"
2004 am__quote=
2005 _am_result=none
2006 # First try GNU make style include.
2007 echo "include confinc" > confmf
2008 # We grep out `Entering directory' and `Leaving directory'
2009 # messages which can occur if `w' ends up in MAKEFLAGS.
2010 # In particular we don't look at `^make:' because GNU make might
2011 # be invoked under some other name (usually "gmake"), in which
2012 # case it prints its new name instead of `make'.
2013 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2014 am__include=include
2015 am__quote=
2016 _am_result=GNU
2017 fi
2018 # Now try BSD make style include.
2019 if test "$am__include" = "#"; then
2020 echo '.include "confinc"' > confmf
2021 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2022 am__include=.include
2023 am__quote="\""
2024 _am_result=BSD
2025 fi
2026 fi
2027
2028
2029 echo "$as_me:$LINENO: result: $_am_result" >&5
2030 echo "${ECHO_T}$_am_result" >&6
2031 rm -f confinc confmf
2032
2033 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2034 if test "${enable_dependency_tracking+set}" = set; then
2035 enableval="$enable_dependency_tracking"
2036
2037 fi;
2038 if test "x$enable_dependency_tracking" != xno; then
2039 am_depcomp="$ac_aux_dir/depcomp"
2040 AMDEPBACKSLASH='\'
2041 fi
2042
2043
2044 if test "x$enable_dependency_tracking" != xno; then
2045 AMDEP_TRUE=
2046 AMDEP_FALSE='#'
2047 else
2048 AMDEP_TRUE='#'
2049 AMDEP_FALSE=
2050 fi
2051
2052
2053
2054 ac_ext=c
2055 ac_cpp='$CPP $CPPFLAGS'
2056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2059 if test -n "$ac_tool_prefix"; then
2060 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2061 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2062 echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064 if test "${ac_cv_prog_CC+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067 if test -n "$CC"; then
2068 ac_cv_prog_CC="$CC" # Let the user override the test.
2069 else
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073 IFS=$as_save_IFS
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 break 2
2080 fi
2081 done
2082 done
2083
2084 fi
2085 fi
2086 CC=$ac_cv_prog_CC
2087 if test -n "$CC"; then
2088 echo "$as_me:$LINENO: result: $CC" >&5
2089 echo "${ECHO_T}$CC" >&6
2090 else
2091 echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6
2093 fi
2094
2095 fi
2096 if test -z "$ac_cv_prog_CC"; then
2097 ac_ct_CC=$CC
2098 # Extract the first word of "gcc", so it can be a program name with args.
2099 set dummy gcc; ac_word=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 if test -n "$ac_ct_CC"; then
2106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2107 else
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 for as_dir in $PATH
2110 do
2111 IFS=$as_save_IFS
2112 test -z "$as_dir" && as_dir=.
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115 ac_cv_prog_ac_ct_CC="gcc"
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 break 2
2118 fi
2119 done
2120 done
2121
2122 fi
2123 fi
2124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2125 if test -n "$ac_ct_CC"; then
2126 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2127 echo "${ECHO_T}$ac_ct_CC" >&6
2128 else
2129 echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6
2131 fi
2132
2133 CC=$ac_ct_CC
2134 else
2135 CC="$ac_cv_prog_CC"
2136 fi
2137
2138 if test -z "$CC"; then
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}cc; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_CC="${ac_tool_prefix}cc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 2
2160 fi
2161 done
2162 done
2163
2164 fi
2165 fi
2166 CC=$ac_cv_prog_CC
2167 if test -n "$CC"; then
2168 echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6
2170 else
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2173 fi
2174
2175 fi
2176 if test -z "$ac_cv_prog_CC"; then
2177 ac_ct_CC=$CC
2178 # Extract the first word of "cc", so it can be a program name with args.
2179 set dummy cc; ac_word=$2
2180 echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 if test -n "$ac_ct_CC"; then
2186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187 else
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2190 do
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2195 ac_cv_prog_ac_ct_CC="cc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 break 2
2198 fi
2199 done
2200 done
2201
2202 fi
2203 fi
2204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2205 if test -n "$ac_ct_CC"; then
2206 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2207 echo "${ECHO_T}$ac_ct_CC" >&6
2208 else
2209 echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6
2211 fi
2212
2213 CC=$ac_ct_CC
2214 else
2215 CC="$ac_cv_prog_CC"
2216 fi
2217
2218 fi
2219 if test -z "$CC"; then
2220 # Extract the first word of "cc", so it can be a program name with args.
2221 set dummy cc; ac_word=$2
2222 echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224 if test "${ac_cv_prog_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC="$CC" # Let the user override the test.
2229 else
2230 ac_prog_rejected=no
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2233 do
2234 IFS=$as_save_IFS
2235 test -z "$as_dir" && as_dir=.
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2239 ac_prog_rejected=yes
2240 continue
2241 fi
2242 ac_cv_prog_CC="cc"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2245 fi
2246 done
2247 done
2248
2249 if test $ac_prog_rejected = yes; then
2250 # We found a bogon in the path, so make sure we never use it.
2251 set dummy $ac_cv_prog_CC
2252 shift
2253 if test $# != 0; then
2254 # We chose a different compiler from the bogus one.
2255 # However, it has the same basename, so the bogon will be chosen
2256 # first if we set CC to just the basename; use the full file name.
2257 shift
2258 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2259 fi
2260 fi
2261 fi
2262 fi
2263 CC=$ac_cv_prog_CC
2264 if test -n "$CC"; then
2265 echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6
2267 else
2268 echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2270 fi
2271
2272 fi
2273 if test -z "$CC"; then
2274 if test -n "$ac_tool_prefix"; then
2275 for ac_prog in cl
2276 do
2277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 break 2
2297 fi
2298 done
2299 done
2300
2301 fi
2302 fi
2303 CC=$ac_cv_prog_CC
2304 if test -n "$CC"; then
2305 echo "$as_me:$LINENO: result: $CC" >&5
2306 echo "${ECHO_T}$CC" >&6
2307 else
2308 echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2310 fi
2311
2312 test -n "$CC" && break
2313 done
2314 fi
2315 if test -z "$CC"; then
2316 ac_ct_CC=$CC
2317 for ac_prog in cl
2318 do
2319 # Extract the first word of "$ac_prog", so it can be a program name with args.
2320 set dummy $ac_prog; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 if test -n "$ac_ct_CC"; then
2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_ac_ct_CC="$ac_prog"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340 done
2341 done
2342
2343 fi
2344 fi
2345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2346 if test -n "$ac_ct_CC"; then
2347 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2348 echo "${ECHO_T}$ac_ct_CC" >&6
2349 else
2350 echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2352 fi
2353
2354 test -n "$ac_ct_CC" && break
2355 done
2356
2357 CC=$ac_ct_CC
2358 fi
2359
2360 fi
2361
2362
2363 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: no acceptable C compiler found in \$PATH
2366 See \`config.log' for more details." >&2;}
2367 { (exit 1); exit 1; }; }
2368
2369 # Provide some information about the compiler.
2370 echo "$as_me:$LINENO:" \
2371 "checking for C compiler version" >&5
2372 ac_compiler=`set X $ac_compile; echo $2`
2373 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2374 (eval $ac_compiler --version </dev/null >&5) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }
2378 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2379 (eval $ac_compiler -v </dev/null >&5) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }
2383 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2384 (eval $ac_compiler -V </dev/null >&5) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }
2388
2389 cat >conftest.$ac_ext <<_ACEOF
2390 #line $LINENO "configure"
2391 /* confdefs.h. */
2392 _ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h. */
2396
2397 int
2398 main ()
2399 {
2400
2401 ;
2402 return 0;
2403 }
2404 _ACEOF
2405 ac_clean_files_save=$ac_clean_files
2406 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2407 # Try to create an executable without -o first, disregard a.out.
2408 # It will help us diagnose broken compilers, and finding out an intuition
2409 # of exeext.
2410 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2411 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2412 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2413 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2414 (eval $ac_link_default) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; then
2418 # Find the output, starting from the most likely. This scheme is
2419 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2420 # resort.
2421
2422 # Be careful to initialize this variable, since it used to be cached.
2423 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2424 ac_cv_exeext=
2425 # b.out is created by i960 compilers.
2426 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2427 do
2428 test -f "$ac_file" || continue
2429 case $ac_file in
2430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2431 ;;
2432 conftest.$ac_ext )
2433 # This is the source file.
2434 ;;
2435 [ab].out )
2436 # We found the default executable, but exeext='' is most
2437 # certainly right.
2438 break;;
2439 *.* )
2440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441 # FIXME: I believe we export ac_cv_exeext for Libtool,
2442 # but it would be cool to find out if it's true. Does anybody
2443 # maintain Libtool? --akim.
2444 export ac_cv_exeext
2445 break;;
2446 * )
2447 break;;
2448 esac
2449 done
2450 else
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2455 See \`config.log' for more details." >&5
2456 echo "$as_me: error: C compiler cannot create executables
2457 See \`config.log' for more details." >&2;}
2458 { (exit 77); exit 77; }; }
2459 fi
2460
2461 ac_exeext=$ac_cv_exeext
2462 echo "$as_me:$LINENO: result: $ac_file" >&5
2463 echo "${ECHO_T}$ac_file" >&6
2464
2465 # Check the compiler produces executables we can run. If not, either
2466 # the compiler is broken, or we cross compile.
2467 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2468 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2469 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2470 # If not cross compiling, check that we can run a simple program.
2471 if test "$cross_compiling" != yes; then
2472 if { ac_try='./$ac_file'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 (eval $ac_try) 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
2478 cross_compiling=no
2479 else
2480 if test "$cross_compiling" = maybe; then
2481 cross_compiling=yes
2482 else
2483 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2484 If you meant to cross compile, use \`--host'.
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot run C compiled programs.
2487 If you meant to cross compile, use \`--host'.
2488 See \`config.log' for more details." >&2;}
2489 { (exit 1); exit 1; }; }
2490 fi
2491 fi
2492 fi
2493 echo "$as_me:$LINENO: result: yes" >&5
2494 echo "${ECHO_T}yes" >&6
2495
2496 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2497 ac_clean_files=$ac_clean_files_save
2498 # Check the compiler produces executables we can run. If not, either
2499 # the compiler is broken, or we cross compile.
2500 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2501 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2502 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2503 echo "${ECHO_T}$cross_compiling" >&6
2504
2505 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2506 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2508 (eval $ac_link) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; then
2512 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2513 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2514 # work properly (i.e., refer to `conftest.exe'), while it won't with
2515 # `rm'.
2516 for ac_file in conftest.exe conftest conftest.*; do
2517 test -f "$ac_file" || continue
2518 case $ac_file in
2519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2520 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 export ac_cv_exeext
2522 break;;
2523 * ) break;;
2524 esac
2525 done
2526 else
2527 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2530 See \`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }
2532 fi
2533
2534 rm -f conftest$ac_cv_exeext
2535 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536 echo "${ECHO_T}$ac_cv_exeext" >&6
2537
2538 rm -f conftest.$ac_ext
2539 EXEEXT=$ac_cv_exeext
2540 ac_exeext=$EXEEXT
2541 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2543 if test "${ac_cv_objext+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 cat >conftest.$ac_ext <<_ACEOF
2547 #line $LINENO "configure"
2548 /* confdefs.h. */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2553
2554 int
2555 main ()
2556 {
2557
2558 ;
2559 return 0;
2560 }
2561 _ACEOF
2562 rm -f conftest.o conftest.obj
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; then
2568 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2569 case $ac_file in
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2571 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2572 break;;
2573 esac
2574 done
2575 else
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2580 See \`config.log' for more details." >&5
2581 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2582 See \`config.log' for more details." >&2;}
2583 { (exit 1); exit 1; }; }
2584 fi
2585
2586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2587 fi
2588 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2589 echo "${ECHO_T}$ac_cv_objext" >&6
2590 OBJEXT=$ac_cv_objext
2591 ac_objext=$OBJEXT
2592 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2593 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2594 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597 cat >conftest.$ac_ext <<_ACEOF
2598 #line $LINENO "configure"
2599 /* confdefs.h. */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2604
2605 int
2606 main ()
2607 {
2608 #ifndef __GNUC__
2609 choke me
2610 #endif
2611
2612 ;
2613 return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 ac_compiler_gnu=yes
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2632
2633 ac_compiler_gnu=no
2634 fi
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2637
2638 fi
2639 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2640 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2641 GCC=`test $ac_compiler_gnu = yes && echo yes`
2642 ac_test_CFLAGS=${CFLAGS+set}
2643 ac_save_CFLAGS=$CFLAGS
2644 CFLAGS="-g"
2645 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2646 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2647 if test "${ac_cv_prog_cc_g+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 cat >conftest.$ac_ext <<_ACEOF
2651 #line $LINENO "configure"
2652 /* confdefs.h. */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2657
2658 int
2659 main ()
2660 {
2661
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 ac_cv_prog_cc_g=yes
2679 else
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 ac_cv_prog_cc_g=no
2684 fi
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2686 fi
2687 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2689 if test "$ac_test_CFLAGS" = set; then
2690 CFLAGS=$ac_save_CFLAGS
2691 elif test $ac_cv_prog_cc_g = yes; then
2692 if test "$GCC" = yes; then
2693 CFLAGS="-g -O2"
2694 else
2695 CFLAGS="-g"
2696 fi
2697 else
2698 if test "$GCC" = yes; then
2699 CFLAGS="-O2"
2700 else
2701 CFLAGS=
2702 fi
2703 fi
2704 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2705 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2706 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 ac_cv_prog_cc_stdc=no
2710 ac_save_CC=$CC
2711 cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2713 /* confdefs.h. */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2718 #include <stdarg.h>
2719 #include <stdio.h>
2720 #include <sys/types.h>
2721 #include <sys/stat.h>
2722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2723 struct buf { int x; };
2724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725 static char *e (p, i)
2726 char **p;
2727 int i;
2728 {
2729 return p[i];
2730 }
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2732 {
2733 char *s;
2734 va_list v;
2735 va_start (v,p);
2736 s = g (p, va_arg (v,int));
2737 va_end (v);
2738 return s;
2739 }
2740 int test (int i, double x);
2741 struct s1 {int (*f) (int a);};
2742 struct s2 {int (*f) (double a);};
2743 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2744 int argc;
2745 char **argv;
2746 int
2747 main ()
2748 {
2749 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2750 ;
2751 return 0;
2752 }
2753 _ACEOF
2754 # Don't try gcc -ansi; that turns off useful extensions and
2755 # breaks some systems' header files.
2756 # AIX -qlanglvl=ansi
2757 # Ultrix and OSF/1 -std1
2758 # HP-UX 10.20 and later -Ae
2759 # HP-UX older versions -Aa -D_HPUX_SOURCE
2760 # SVR4 -Xc -D__EXTENSIONS__
2761 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2762 do
2763 CC="$ac_save_CC $ac_arg"
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 ac_cv_prog_cc_stdc=$ac_arg
2777 break
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 fi
2783 rm -f conftest.$ac_objext
2784 done
2785 rm -f conftest.$ac_ext conftest.$ac_objext
2786 CC=$ac_save_CC
2787
2788 fi
2789
2790 case "x$ac_cv_prog_cc_stdc" in
2791 x|xno)
2792 echo "$as_me:$LINENO: result: none needed" >&5
2793 echo "${ECHO_T}none needed" >&6 ;;
2794 *)
2795 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2796 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2797 CC="$CC $ac_cv_prog_cc_stdc" ;;
2798 esac
2799
2800 # Some people use a C++ compiler to compile C. Since we use `exit',
2801 # in C++ we need to declare it. In case someone uses the same compiler
2802 # for both compiling C and C++ we need to have the C++ compiler decide
2803 # the declaration of exit, since it's the most demanding environment.
2804 cat >conftest.$ac_ext <<_ACEOF
2805 #ifndef __cplusplus
2806 choke me
2807 #endif
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 for ac_declaration in \
2822 ''\
2823 '#include <stdlib.h>' \
2824 'extern "C" void std::exit (int) throw (); using std::exit;' \
2825 'extern "C" void std::exit (int); using std::exit;' \
2826 'extern "C" void exit (int) throw ();' \
2827 'extern "C" void exit (int);' \
2828 'void exit (int);'
2829 do
2830 cat >conftest.$ac_ext <<_ACEOF
2831 #line $LINENO "configure"
2832 /* confdefs.h. */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 #include <stdlib.h>
2838 $ac_declaration
2839 int
2840 main ()
2841 {
2842 exit (42);
2843 ;
2844 return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 :
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 continue
2865 fi
2866 rm -f conftest.$ac_objext conftest.$ac_ext
2867 cat >conftest.$ac_ext <<_ACEOF
2868 #line $LINENO "configure"
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2874 $ac_declaration
2875 int
2876 main ()
2877 {
2878 exit (42);
2879 ;
2880 return 0;
2881 }
2882 _ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2885 (eval $ac_compile) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2895 break
2896 else
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 fi
2901 rm -f conftest.$ac_objext conftest.$ac_ext
2902 done
2903 rm -f conftest*
2904 if test -n "$ac_declaration"; then
2905 echo '#ifdef __cplusplus' >>confdefs.h
2906 echo $ac_declaration >>confdefs.h
2907 echo '#endif' >>confdefs.h
2908 fi
2909
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 fi
2915 rm -f conftest.$ac_objext conftest.$ac_ext
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921
2922 depcc="$CC" am_compiler_list=
2923
2924 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2925 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2926 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2930 # We make a subdir and do the tests there. Otherwise we can end up
2931 # making bogus files that we don't know about and never remove. For
2932 # instance it was reported that on HP-UX the gcc test will end up
2933 # making a dummy file named `D' -- because `-MD' means `put the output
2934 # in D'.
2935 mkdir conftest.dir
2936 # Copy depcomp to subdir because otherwise we won't find it if we're
2937 # using a relative directory.
2938 cp "$am_depcomp" conftest.dir
2939 cd conftest.dir
2940
2941 am_cv_CC_dependencies_compiler_type=none
2942 if test "$am_compiler_list" = ""; then
2943 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2944 fi
2945 for depmode in $am_compiler_list; do
2946 # We need to recreate these files for each test, as the compiler may
2947 # overwrite some of them when testing with obscure command lines.
2948 # This happens at least with the AIX C compiler.
2949 echo '#include "conftest.h"' > conftest.c
2950 echo 'int i;' > conftest.h
2951 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2952
2953 case $depmode in
2954 nosideeffect)
2955 # after this tag, mechanisms are not by side-effect, so they'll
2956 # only be used when explicitly requested
2957 if test "x$enable_dependency_tracking" = xyes; then
2958 continue
2959 else
2960 break
2961 fi
2962 ;;
2963 none) break ;;
2964 esac
2965 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2966 # mode. It turns out that the SunPro C++ compiler does not properly
2967 # handle `-M -o', and we need to detect this.
2968 if depmode=$depmode \
2969 source=conftest.c object=conftest.o \
2970 depfile=conftest.Po tmpdepfile=conftest.TPo \
2971 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2972 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2973 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2974 am_cv_CC_dependencies_compiler_type=$depmode
2975 break
2976 fi
2977 done
2978
2979 cd ..
2980 rm -rf conftest.dir
2981 else
2982 am_cv_CC_dependencies_compiler_type=none
2983 fi
2984
2985 fi
2986 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2987 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2988 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2989
2990
2991
2992 if
2993 test "x$enable_dependency_tracking" != xno \
2994 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2995 am__fastdepCC_TRUE=
2996 am__fastdepCC_FALSE='#'
2997 else
2998 am__fastdepCC_TRUE='#'
2999 am__fastdepCC_FALSE=
3000 fi
3001
3002
3003 # Find the correct PATH separator. Usually this is `:', but
3004 # DJGPP uses `;' like DOS.
3005 if test "X${PATH_SEPARATOR+set}" != Xset; then
3006 UNAME=${UNAME-`uname 2>/dev/null`}
3007 case X$UNAME in
3008 *-DOS) lt_cv_sys_path_separator=';' ;;
3009 *) lt_cv_sys_path_separator=':' ;;
3010 esac
3011 PATH_SEPARATOR=$lt_cv_sys_path_separator
3012 fi
3013
3014
3015 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3016 if test "${with_gnu_ld+set}" = set; then
3017 withval="$with_gnu_ld"
3018 test "$withval" = no || with_gnu_ld=yes
3019 else
3020 with_gnu_ld=no
3021 fi;
3022 ac_prog=ld
3023 if test "$GCC" = yes; then
3024 # Check if gcc -print-prog-name=ld gives a path.
3025 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3026 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3027 case $host in
3028 *-*-mingw*)
3029 # gcc leaves a trailing carriage return which upsets mingw
3030 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3031 *)
3032 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3033 esac
3034 case $ac_prog in
3035 # Accept absolute paths.
3036 [\\/]* | [A-Za-z]:[\\/]*)
3037 re_direlt='/[^/][^/]*/\.\./'
3038 # Canonicalize the path of ld
3039 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3040 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3041 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3042 done
3043 test -z "$LD" && LD="$ac_prog"
3044 ;;
3045 "")
3046 # If it fails, then pretend we aren't using GCC.
3047 ac_prog=ld
3048 ;;
3049 *)
3050 # If it is relative, then search for the first ld in PATH.
3051 with_gnu_ld=unknown
3052 ;;
3053 esac
3054 elif test "$with_gnu_ld" = yes; then
3055 echo "$as_me:$LINENO: checking for GNU ld" >&5
3056 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3057 else
3058 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3059 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3060 fi
3061 if test "${lt_cv_path_LD+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064 if test -z "$LD"; then
3065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3066 for ac_dir in $PATH; do
3067 test -z "$ac_dir" && ac_dir=.
3068 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3069 lt_cv_path_LD="$ac_dir/$ac_prog"
3070 # Check to see if the program is GNU ld. I'd rather use --version,
3071 # but apparently some GNU ld's only accept -v.
3072 # Break only if it was the GNU/non-GNU ld that we prefer.
3073 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3074 test "$with_gnu_ld" != no && break
3075 else
3076 test "$with_gnu_ld" != yes && break
3077 fi
3078 fi
3079 done
3080 IFS="$ac_save_ifs"
3081 else
3082 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3083 fi
3084 fi
3085
3086 LD="$lt_cv_path_LD"
3087 if test -n "$LD"; then
3088 echo "$as_me:$LINENO: result: $LD" >&5
3089 echo "${ECHO_T}$LD" >&6
3090 else
3091 echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3093 fi
3094 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3095 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3096 { (exit 1); exit 1; }; }
3097 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3098 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3099 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3103 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3104 lt_cv_prog_gnu_ld=yes
3105 else
3106 lt_cv_prog_gnu_ld=no
3107 fi
3108 fi
3109 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3110 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3111 with_gnu_ld=$lt_cv_prog_gnu_ld
3112
3113
3114 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3115 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3116 if test "${lt_cv_ld_reload_flag+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 lt_cv_ld_reload_flag='-r'
3120 fi
3121 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3122 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3123 reload_flag=$lt_cv_ld_reload_flag
3124 test -n "$reload_flag" && reload_flag=" $reload_flag"
3125
3126 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3127 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3128 if test "${lt_cv_path_NM+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131 if test -n "$NM"; then
3132 # Let the user override the test.
3133 lt_cv_path_NM="$NM"
3134 else
3135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3136 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3137 test -z "$ac_dir" && ac_dir=.
3138 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3139 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3140 # Check to see if the nm accepts a BSD-compat flag.
3141 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3142 # nm: unknown option "B" ignored
3143 # Tru64's nm complains that /dev/null is an invalid object file
3144 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3145 lt_cv_path_NM="$tmp_nm -B"
3146 break
3147 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3148 lt_cv_path_NM="$tmp_nm -p"
3149 break
3150 else
3151 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3152 continue # so that we can try to find one that supports BSD flags
3153 fi
3154 fi
3155 done
3156 IFS="$ac_save_ifs"
3157 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3158 fi
3159 fi
3160
3161 NM="$lt_cv_path_NM"
3162 echo "$as_me:$LINENO: result: $NM" >&5
3163 echo "${ECHO_T}$NM" >&6
3164
3165 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3166 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3167 if test "${lt_cv_path_SED+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170 # Loop through the user's path and test for sed and gsed.
3171 # Then use that list of sed's as ones to test for truncation.
3172 as_executable_p="test -f"
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_prog in sed gsed; do
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3181 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3182 fi
3183 done
3184 done
3185 done
3186
3187 # Create a temporary directory, and hook for its removal unless debugging.
3188 $debug ||
3189 {
3190 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3191 trap '{ (exit 1); exit 1; }' 1 2 13 15
3192 }
3193
3194 # Create a (secure) tmp directory for tmp files.
3195 : ${TMPDIR=/tmp}
3196 {
3197 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3198 test -n "$tmp" && test -d "$tmp"
3199 } ||
3200 {
3201 tmp=$TMPDIR/sed$$-$RANDOM
3202 (umask 077 && mkdir $tmp)
3203 } ||
3204 {
3205 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3206 { (exit 1); exit 1; }
3207 }
3208 _max=0
3209 _count=0
3210 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3211 # along with /bin/sed that truncates output.
3212 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3213 test ! -f ${_sed} && break
3214 cat /dev/null > "$tmp/sed.in"
3215 _count=0
3216 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3217 # Check for GNU sed and select it if it is found.
3218 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3219 lt_cv_path_SED=${_sed}
3220 break
3221 fi
3222 while true; do
3223 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3224 mv "$tmp/sed.tmp" "$tmp/sed.in"
3225 cp "$tmp/sed.in" "$tmp/sed.nl"
3226 echo >>"$tmp/sed.nl"
3227 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3228 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3229 # 40000 chars as input seems more than enough
3230 test $_count -gt 10 && break
3231 _count=`expr $_count + 1`
3232 if test $_count -gt $_max; then
3233 _max=$_count
3234 lt_cv_path_SED=$_sed
3235 fi
3236 done
3237 done
3238 rm -rf "$tmp"
3239
3240 fi
3241
3242 if test "X$SED" != "X"; then
3243 lt_cv_path_SED=$SED
3244 else
3245 SED=$lt_cv_path_SED
3246 fi
3247 echo "$as_me:$LINENO: result: $SED" >&5
3248 echo "${ECHO_T}$SED" >&6
3249
3250 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3251 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3252 LN_S=$as_ln_s
3253 if test "$LN_S" = "ln -s"; then
3254 echo "$as_me:$LINENO: result: yes" >&5
3255 echo "${ECHO_T}yes" >&6
3256 else
3257 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3258 echo "${ECHO_T}no, using $LN_S" >&6
3259 fi
3260
3261 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3262 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3263 if test "${lt_cv_deplibs_check_method+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266 lt_cv_file_magic_cmd='$MAGIC_CMD'
3267 lt_cv_file_magic_test_file=
3268 lt_cv_deplibs_check_method='unknown'
3269 # Need to set the preceding variable on all platforms that support
3270 # interlibrary dependencies.
3271 # 'none' -- dependencies not supported.
3272 # `unknown' -- same as none, but documents that we really don't know.
3273 # 'pass_all' -- all dependencies passed with no checks.
3274 # 'test_compile' -- check by making test program.
3275 # 'file_magic [[regex]]' -- check by looking for files in library path
3276 # which responds to the $file_magic_cmd with a given egrep regex.
3277 # If you have `file' or equivalent on your system and you're not sure
3278 # whether `pass_all' will *always* work, you probably want this one.
3279
3280 case $host_os in
3281 aix4* | aix5*)
3282 lt_cv_deplibs_check_method=pass_all
3283 ;;
3284
3285 beos*)
3286 lt_cv_deplibs_check_method=pass_all
3287 ;;
3288
3289 bsdi4*)
3290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3291 lt_cv_file_magic_cmd='/usr/bin/file -L'
3292 lt_cv_file_magic_test_file=/shlib/libc.so
3293 ;;
3294
3295 cygwin* | mingw* | pw32*)
3296 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3297 lt_cv_file_magic_cmd='$OBJDUMP -f'
3298 ;;
3299
3300 darwin* | rhapsody*)
3301 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3302 lt_cv_file_magic_cmd='/usr/bin/file -L'
3303 case "$host_os" in
3304 rhapsody* | darwin1.[012])
3305 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3306 ;;
3307 *) # Darwin 1.3 on
3308 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3309 ;;
3310 esac
3311 ;;
3312
3313 freebsd*)
3314 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3315 case $host_cpu in
3316 i*86 )
3317 # Not sure whether the presence of OpenBSD here was a mistake.
3318 # Let's accept both of them until this is cleared up.
3319 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3320 lt_cv_file_magic_cmd=/usr/bin/file
3321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3322 ;;
3323 esac
3324 else
3325 lt_cv_deplibs_check_method=pass_all
3326 fi
3327 ;;
3328
3329 gnu*)
3330 lt_cv_deplibs_check_method=pass_all
3331 ;;
3332
3333 hpux10.20*|hpux11*)
3334 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3335 lt_cv_file_magic_cmd=/usr/bin/file
3336 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3337 ;;
3338
3339 irix5* | irix6* | nonstopux*)
3340 case $host_os in
3341 irix5* | nonstopux*)
3342 # this will be overridden with pass_all, but let us keep it just in case
3343 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3344 ;;
3345 *)
3346 case $LD in
3347 *-32|*"-32 ") libmagic=32-bit;;
3348 *-n32|*"-n32 ") libmagic=N32;;
3349 *-64|*"-64 ") libmagic=64-bit;;
3350 *) libmagic=never-match;;
3351 esac
3352 # this will be overridden with pass_all, but let us keep it just in case
3353 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3354 ;;
3355 esac
3356 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3357 lt_cv_deplibs_check_method=pass_all
3358 ;;
3359
3360 # This must be Linux ELF.
3361 linux-gnu*)
3362 case $host_cpu in
3363 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*)
3364 lt_cv_deplibs_check_method=pass_all ;;
3365 *)
3366 # glibc up to 2.1.1 does not perform some relocations on ARM
3367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3368 esac
3369 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3370 ;;
3371
3372 netbsd*)
3373 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3374 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3375 else
3376 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3377 fi
3378 ;;
3379
3380 newos6*)
3381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3382 lt_cv_file_magic_cmd=/usr/bin/file
3383 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3384 ;;
3385
3386 openbsd*)
3387 lt_cv_file_magic_cmd=/usr/bin/file
3388 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3391 else
3392 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3393 fi
3394 ;;
3395
3396 osf3* | osf4* | osf5*)
3397 # this will be overridden with pass_all, but let us keep it just in case
3398 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3399 lt_cv_file_magic_test_file=/shlib/libc.so
3400 lt_cv_deplibs_check_method=pass_all
3401 ;;
3402
3403 sco3.2v5*)
3404 lt_cv_deplibs_check_method=pass_all
3405 ;;
3406
3407 solaris*)
3408 lt_cv_deplibs_check_method=pass_all
3409 lt_cv_file_magic_test_file=/lib/libc.so
3410 ;;
3411
3412 sysv5uw[78]* | sysv4*uw2*)
3413 lt_cv_deplibs_check_method=pass_all
3414 ;;
3415
3416 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3417 case $host_vendor in
3418 motorola)
3419 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]'
3420 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3421 ;;
3422 ncr)
3423 lt_cv_deplibs_check_method=pass_all
3424 ;;
3425 sequent)
3426 lt_cv_file_magic_cmd='/bin/file'
3427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3428 ;;
3429 sni)
3430 lt_cv_file_magic_cmd='/bin/file'
3431 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3432 lt_cv_file_magic_test_file=/lib/libc.so
3433 ;;
3434 siemens)
3435 lt_cv_deplibs_check_method=pass_all
3436 ;;
3437 esac
3438 ;;
3439 esac
3440
3441 fi
3442 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3443 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3444 file_magic_cmd=$lt_cv_file_magic_cmd
3445 deplibs_check_method=$lt_cv_deplibs_check_method
3446
3447
3448
3449
3450
3451
3452
3453
3454 # Check for command to grab the raw symbol name followed by C symbol from nm.
3455 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3456 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3457 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460
3461 # These are sane defaults that work on at least a few old systems.
3462 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3463
3464 # Character class describing NM global symbol codes.
3465 symcode='[BCDEGRST]'
3466
3467 # Regexp to match symbols that can be accessed directly from C.
3468 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3469
3470 # Transform the above into a raw symbol and a C symbol.
3471 symxfrm='\1 \2\3 \3'
3472
3473 # Transform an extracted symbol line into a proper C declaration
3474 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3475
3476 # Transform an extracted symbol line into symbol name and symbol address
3477 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3478
3479 # Define system-specific variables.
3480 case $host_os in
3481 aix*)
3482 symcode='[BCDT]'
3483 ;;
3484 cygwin* | mingw* | pw32*)
3485 symcode='[ABCDGISTW]'
3486 ;;
3487 hpux*) # Its linker distinguishes data from code symbols
3488 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3489 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3490 ;;
3491 irix* | nonstopux*)
3492 symcode='[BCDEGRST]'
3493 ;;
3494 osf*)
3495 symcode='[BCDEGQRST]'
3496 ;;
3497 solaris* | sysv5*)
3498 symcode='[BDT]'
3499 ;;
3500 sysv4)
3501 symcode='[DFNSTU]'
3502 ;;
3503 esac
3504
3505 # Handle CRLF in mingw tool chain
3506 opt_cr=
3507 case $host_os in
3508 mingw*)
3509 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3510 ;;
3511 esac
3512
3513 # If we're using GNU nm, then use its standard symbol codes.
3514 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3515 symcode='[ABCDGISTW]'
3516 fi
3517
3518 # Try without a prefix undercore, then with it.
3519 for ac_symprfx in "" "_"; do
3520
3521 # Write the raw and C identifiers.
3522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3523
3524 # Check to see that the pipe works correctly.
3525 pipe_works=no
3526 rm -f conftest*
3527 cat > conftest.$ac_ext <<EOF
3528 #ifdef __cplusplus
3529 extern "C" {
3530 #endif
3531 char nm_test_var;
3532 void nm_test_func(){}
3533 #ifdef __cplusplus
3534 }
3535 #endif
3536 int main(){nm_test_var='a';nm_test_func();return(0);}
3537 EOF
3538
3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3540 (eval $ac_compile) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; then
3544 # Now try to grab the symbols.
3545 nlist=conftest.nm
3546 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3547 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } && test -s "$nlist"; then
3551 # Try sorting and uniquifying the output.
3552 if sort "$nlist" | uniq > "$nlist"T; then
3553 mv -f "$nlist"T "$nlist"
3554 else
3555 rm -f "$nlist"T
3556 fi
3557
3558 # Make sure that we snagged all the symbols we need.
3559 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3560 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3561 cat <<EOF > conftest.$ac_ext
3562 #ifdef __cplusplus
3563 extern "C" {
3564 #endif
3565
3566 EOF
3567 # Now generate the symbol file.
3568 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3569
3570 cat <<EOF >> conftest.$ac_ext
3571 #if defined (__STDC__) && __STDC__
3572 # define lt_ptr void *
3573 #else
3574 # define lt_ptr char *
3575 # define const
3576 #endif
3577
3578 /* The mapping between symbol names and symbols. */
3579 const struct {
3580 const char *name;
3581 lt_ptr address;
3582 }
3583 lt_preloaded_symbols[] =
3584 {
3585 EOF
3586 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3587 cat <<\EOF >> conftest.$ac_ext
3588 {0, (lt_ptr) 0}
3589 };
3590
3591 #ifdef __cplusplus
3592 }
3593 #endif
3594 EOF
3595 # Now try linking the two files.
3596 mv conftest.$ac_objext conftstm.$ac_objext
3597 save_LIBS="$LIBS"
3598 save_CFLAGS="$CFLAGS"
3599 LIBS="conftstm.$ac_objext"
3600 CFLAGS="$CFLAGS$no_builtin_flag"
3601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602 (eval $ac_link) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } && test -s conftest$ac_exeext; then
3606 pipe_works=yes
3607 fi
3608 LIBS="$save_LIBS"
3609 CFLAGS="$save_CFLAGS"
3610 else
3611 echo "cannot find nm_test_func in $nlist" >&5
3612 fi
3613 else
3614 echo "cannot find nm_test_var in $nlist" >&5
3615 fi
3616 else
3617 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3618 fi
3619 else
3620 echo "$progname: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 fi
3623 rm -f conftest* conftst*
3624
3625 # Do not use the global_symbol_pipe unless it works.
3626 if test "$pipe_works" = yes; then
3627 break
3628 else
3629 lt_cv_sys_global_symbol_pipe=
3630 fi
3631 done
3632
3633 fi
3634
3635 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3636 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3637 global_symbol_to_cdecl=
3638 global_symbol_to_c_name_address=
3639 else
3640 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3641 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3642 fi
3643 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3644 then
3645 echo "$as_me:$LINENO: result: failed" >&5
3646 echo "${ECHO_T}failed" >&6
3647 else
3648 echo "$as_me:$LINENO: result: ok" >&5
3649 echo "${ECHO_T}ok" >&6
3650 fi
3651
3652 ac_ext=c
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3658 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3659 # On Suns, sometimes $CPP names a directory.
3660 if test -n "$CPP" && test -d "$CPP"; then
3661 CPP=
3662 fi
3663 if test -z "$CPP"; then
3664 if test "${ac_cv_prog_CPP+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667 # Double quotes because CPP needs to be expanded
3668 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3669 do
3670 ac_preproc_ok=false
3671 for ac_c_preproc_warn_flag in '' yes
3672 do
3673 # Use a header file that comes with gcc, so configuring glibc
3674 # with a fresh cross-compiler works.
3675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676 # <limits.h> exists even on freestanding compilers.
3677 # On the NeXT, cc -E runs the code through the compiler's parser,
3678 # not just through cpp. "Syntax error" is here to catch this case.
3679 cat >conftest.$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 #ifdef __STDC__
3687 # include <limits.h>
3688 #else
3689 # include <assert.h>
3690 #endif
3691 Syntax error
3692 _ACEOF
3693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3695 ac_status=$?
3696 grep -v '^ *+' conftest.er1 >conftest.err
3697 rm -f conftest.er1
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } >/dev/null; then
3701 if test -s conftest.err; then
3702 ac_cpp_err=$ac_c_preproc_warn_flag
3703 else
3704 ac_cpp_err=
3705 fi
3706 else
3707 ac_cpp_err=yes
3708 fi
3709 if test -z "$ac_cpp_err"; then
3710 :
3711 else
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 # Broken: fails on valid input.
3716 continue
3717 fi
3718 rm -f conftest.err conftest.$ac_ext
3719
3720 # OK, works on sane cases. Now check whether non-existent headers
3721 # can be detected and how.
3722 cat >conftest.$ac_ext <<_ACEOF
3723 #line $LINENO "configure"
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 #include <ac_nonexistent.h>
3730 _ACEOF
3731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3733 ac_status=$?
3734 grep -v '^ *+' conftest.er1 >conftest.err
3735 rm -f conftest.er1
3736 cat conftest.err >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } >/dev/null; then
3739 if test -s conftest.err; then
3740 ac_cpp_err=$ac_c_preproc_warn_flag
3741 else
3742 ac_cpp_err=
3743 fi
3744 else
3745 ac_cpp_err=yes
3746 fi
3747 if test -z "$ac_cpp_err"; then
3748 # Broken: success on invalid input.
3749 continue
3750 else
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754 # Passes both tests.
3755 ac_preproc_ok=:
3756 break
3757 fi
3758 rm -f conftest.err conftest.$ac_ext
3759
3760 done
3761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3762 rm -f conftest.err conftest.$ac_ext
3763 if $ac_preproc_ok; then
3764 break
3765 fi
3766
3767 done
3768 ac_cv_prog_CPP=$CPP
3769
3770 fi
3771 CPP=$ac_cv_prog_CPP
3772 else
3773 ac_cv_prog_CPP=$CPP
3774 fi
3775 echo "$as_me:$LINENO: result: $CPP" >&5
3776 echo "${ECHO_T}$CPP" >&6
3777 ac_preproc_ok=false
3778 for ac_c_preproc_warn_flag in '' yes
3779 do
3780 # Use a header file that comes with gcc, so configuring glibc
3781 # with a fresh cross-compiler works.
3782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3783 # <limits.h> exists even on freestanding compilers.
3784 # On the NeXT, cc -E runs the code through the compiler's parser,
3785 # not just through cpp. "Syntax error" is here to catch this case.
3786 cat >conftest.$ac_ext <<_ACEOF
3787 #line $LINENO "configure"
3788 /* confdefs.h. */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3793 #ifdef __STDC__
3794 # include <limits.h>
3795 #else
3796 # include <assert.h>
3797 #endif
3798 Syntax error
3799 _ACEOF
3800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } >/dev/null; then
3808 if test -s conftest.err; then
3809 ac_cpp_err=$ac_c_preproc_warn_flag
3810 else
3811 ac_cpp_err=
3812 fi
3813 else
3814 ac_cpp_err=yes
3815 fi
3816 if test -z "$ac_cpp_err"; then
3817 :
3818 else
3819 echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822 # Broken: fails on valid input.
3823 continue
3824 fi
3825 rm -f conftest.err conftest.$ac_ext
3826
3827 # OK, works on sane cases. Now check whether non-existent headers
3828 # can be detected and how.
3829 cat >conftest.$ac_ext <<_ACEOF
3830 #line $LINENO "configure"
3831 /* confdefs.h. */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 #include <ac_nonexistent.h>
3837 _ACEOF
3838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } >/dev/null; then
3846 if test -s conftest.err; then
3847 ac_cpp_err=$ac_c_preproc_warn_flag
3848 else
3849 ac_cpp_err=
3850 fi
3851 else
3852 ac_cpp_err=yes
3853 fi
3854 if test -z "$ac_cpp_err"; then
3855 # Broken: success on invalid input.
3856 continue
3857 else
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 # Passes both tests.
3862 ac_preproc_ok=:
3863 break
3864 fi
3865 rm -f conftest.err conftest.$ac_ext
3866
3867 done
3868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3869 rm -f conftest.err conftest.$ac_ext
3870 if $ac_preproc_ok; then
3871 :
3872 else
3873 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3874 See \`config.log' for more details." >&5
3875 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3876 See \`config.log' for more details." >&2;}
3877 { (exit 1); exit 1; }; }
3878 fi
3879
3880 ac_ext=c
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885
3886
3887 echo "$as_me:$LINENO: checking for egrep" >&5
3888 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3889 if test "${ac_cv_prog_egrep+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3893 then ac_cv_prog_egrep='grep -E'
3894 else ac_cv_prog_egrep='egrep'
3895 fi
3896 fi
3897 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3898 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3899 EGREP=$ac_cv_prog_egrep
3900
3901
3902 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3904 if test "${ac_cv_header_stdc+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 cat >conftest.$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3909 /* confdefs.h. */
3910 _ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3914 #include <stdlib.h>
3915 #include <stdarg.h>
3916 #include <string.h>
3917 #include <float.h>
3918
3919 int
3920 main ()
3921 {
3922
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 ac_cv_header_stdc=yes
3940 else
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 ac_cv_header_stdc=no
3945 fi
3946 rm -f conftest.$ac_objext conftest.$ac_ext
3947
3948 if test $ac_cv_header_stdc = yes; then
3949 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3950 cat >conftest.$ac_ext <<_ACEOF
3951 #line $LINENO "configure"
3952 /* confdefs.h. */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3957 #include <string.h>
3958
3959 _ACEOF
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961 $EGREP "memchr" >/dev/null 2>&1; then
3962 :
3963 else
3964 ac_cv_header_stdc=no
3965 fi
3966 rm -f conftest*
3967
3968 fi
3969
3970 if test $ac_cv_header_stdc = yes; then
3971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3972 cat >conftest.$ac_ext <<_ACEOF
3973 #line $LINENO "configure"
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 #include <stdlib.h>
3980
3981 _ACEOF
3982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3983 $EGREP "free" >/dev/null 2>&1; then
3984 :
3985 else
3986 ac_cv_header_stdc=no
3987 fi
3988 rm -f conftest*
3989
3990 fi
3991
3992 if test $ac_cv_header_stdc = yes; then
3993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3994 if test "$cross_compiling" = yes; then
3995 :
3996 else
3997 cat >conftest.$ac_ext <<_ACEOF
3998 #line $LINENO "configure"
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 #include <ctype.h>
4005 #if ((' ' & 0x0FF) == 0x020)
4006 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4007 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4008 #else
4009 # define ISLOWER(c) \
4010 (('a' <= (c) && (c) <= 'i') \
4011 || ('j' <= (c) && (c) <= 'r') \
4012 || ('s' <= (c) && (c) <= 'z'))
4013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4014 #endif
4015
4016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4017 int
4018 main ()
4019 {
4020 int i;
4021 for (i = 0; i < 256; i++)
4022 if (XOR (islower (i), ISLOWER (i))
4023 || toupper (i) != TOUPPER (i))
4024 exit(2);
4025 exit (0);
4026 }
4027 _ACEOF
4028 rm -f conftest$ac_exeext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 :
4040 else
4041 echo "$as_me: program exited with status $ac_status" >&5
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 ( exit $ac_status )
4046 ac_cv_header_stdc=no
4047 fi
4048 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4049 fi
4050 fi
4051 fi
4052 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4053 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4054 if test $ac_cv_header_stdc = yes; then
4055
4056 cat >>confdefs.h <<\_ACEOF
4057 #define STDC_HEADERS 1
4058 _ACEOF
4059
4060 fi
4061
4062 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4073 inttypes.h stdint.h unistd.h
4074 do
4075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4076 echo "$as_me:$LINENO: checking for $ac_header" >&5
4077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081 cat >conftest.$ac_ext <<_ACEOF
4082 #line $LINENO "configure"
4083 /* confdefs.h. */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4088 $ac_includes_default
4089
4090 #include <$ac_header>
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 eval "$as_ac_Header=yes"
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 eval "$as_ac_Header=no"
4110 fi
4111 rm -f conftest.$ac_objext conftest.$ac_ext
4112 fi
4113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4116 cat >>confdefs.h <<_ACEOF
4117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4118 _ACEOF
4119
4120 fi
4121
4122 done
4123
4124
4125
4126 for ac_header in dlfcn.h
4127 do
4128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4130 echo "$as_me:$LINENO: checking for $ac_header" >&5
4131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 fi
4135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4137 else
4138 # Is the header compilable?
4139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4141 cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148 $ac_includes_default
4149 #include <$ac_header>
4150 _ACEOF
4151 rm -f conftest.$ac_objext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153 (eval $ac_compile) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 ac_header_compiler=yes
4164 else
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 ac_header_compiler=no
4169 fi
4170 rm -f conftest.$ac_objext conftest.$ac_ext
4171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4172 echo "${ECHO_T}$ac_header_compiler" >&6
4173
4174 # Is the header present?
4175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4177 cat >conftest.$ac_ext <<_ACEOF
4178 #line $LINENO "configure"
4179 /* confdefs.h. */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 #include <$ac_header>
4185 _ACEOF
4186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null; then
4194 if test -s conftest.err; then
4195 ac_cpp_err=$ac_c_preproc_warn_flag
4196 else
4197 ac_cpp_err=
4198 fi
4199 else
4200 ac_cpp_err=yes
4201 fi
4202 if test -z "$ac_cpp_err"; then
4203 ac_header_preproc=yes
4204 else
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 ac_header_preproc=no
4209 fi
4210 rm -f conftest.err conftest.$ac_ext
4211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4212 echo "${ECHO_T}$ac_header_preproc" >&6
4213
4214 # So? What about this header?
4215 case $ac_header_compiler:$ac_header_preproc in
4216 yes:no )
4217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4221 (
4222 cat <<\_ASBOX
4223 ## ------------------------------------ ##
4224 ## Report this to [email protected]. ##
4225 ## ------------------------------------ ##
4226 _ASBOX
4227 ) |
4228 sed "s/^/$as_me: WARNING: /" >&2
4229 ;;
4230 no:yes )
4231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4237 (
4238 cat <<\_ASBOX
4239 ## ------------------------------------ ##
4240 ## Report this to [email protected]. ##
4241 ## ------------------------------------ ##
4242 _ASBOX
4243 ) |
4244 sed "s/^/$as_me: WARNING: /" >&2
4245 ;;
4246 esac
4247 echo "$as_me:$LINENO: checking for $ac_header" >&5
4248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252 eval "$as_ac_Header=$ac_header_preproc"
4253 fi
4254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4256
4257 fi
4258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4259 cat >>confdefs.h <<_ACEOF
4260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4261 _ACEOF
4262
4263 fi
4264
4265 done
4266
4267
4268
4269
4270
4271
4272 # Only perform the check for file, if the check method requires it
4273 case $deplibs_check_method in
4274 file_magic*)
4275 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4276 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4277 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4278 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281 case $MAGIC_CMD in
4282 /*)
4283 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4284 ;;
4285 ?:/*)
4286 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4287 ;;
4288 *)
4289 ac_save_MAGIC_CMD="$MAGIC_CMD"
4290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4291 ac_dummy="/usr/bin:$PATH"
4292 for ac_dir in $ac_dummy; do
4293 test -z "$ac_dir" && ac_dir=.
4294 if test -f $ac_dir/${ac_tool_prefix}file; then
4295 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4296 if test -n "$file_magic_test_file"; then
4297 case $deplibs_check_method in
4298 "file_magic "*)
4299 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4301 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4302 egrep "$file_magic_regex" > /dev/null; then
4303 :
4304 else
4305 cat <<EOF 1>&2
4306
4307 *** Warning: the command libtool uses to detect shared libraries,
4308 *** $file_magic_cmd, produces output that libtool cannot recognize.
4309 *** The result is that libtool may fail to recognize shared libraries
4310 *** as such. This will affect the creation of libtool libraries that
4311 *** depend on shared libraries, but programs linked with such libtool
4312 *** libraries will work regardless of this problem. Nevertheless, you
4313 *** may want to report the problem to your system manager and/or to
4314 *** [email protected]
4315
4316 EOF
4317 fi ;;
4318 esac
4319 fi
4320 break
4321 fi
4322 done
4323 IFS="$ac_save_ifs"
4324 MAGIC_CMD="$ac_save_MAGIC_CMD"
4325 ;;
4326 esac
4327 fi
4328
4329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4330 if test -n "$MAGIC_CMD"; then
4331 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4332 echo "${ECHO_T}$MAGIC_CMD" >&6
4333 else
4334 echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6
4336 fi
4337
4338 if test -z "$lt_cv_path_MAGIC_CMD"; then
4339 if test -n "$ac_tool_prefix"; then
4340 echo "$as_me:$LINENO: checking for file" >&5
4341 echo $ECHO_N "checking for file... $ECHO_C" >&6
4342 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 case $MAGIC_CMD in
4346 /*)
4347 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4348 ;;
4349 ?:/*)
4350 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4351 ;;
4352 *)
4353 ac_save_MAGIC_CMD="$MAGIC_CMD"
4354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4355 ac_dummy="/usr/bin:$PATH"
4356 for ac_dir in $ac_dummy; do
4357 test -z "$ac_dir" && ac_dir=.
4358 if test -f $ac_dir/file; then
4359 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4360 if test -n "$file_magic_test_file"; then
4361 case $deplibs_check_method in
4362 "file_magic "*)
4363 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4366 egrep "$file_magic_regex" > /dev/null; then
4367 :
4368 else
4369 cat <<EOF 1>&2
4370
4371 *** Warning: the command libtool uses to detect shared libraries,
4372 *** $file_magic_cmd, produces output that libtool cannot recognize.
4373 *** The result is that libtool may fail to recognize shared libraries
4374 *** as such. This will affect the creation of libtool libraries that
4375 *** depend on shared libraries, but programs linked with such libtool
4376 *** libraries will work regardless of this problem. Nevertheless, you
4377 *** may want to report the problem to your system manager and/or to
4378 *** [email protected]
4379
4380 EOF
4381 fi ;;
4382 esac
4383 fi
4384 break
4385 fi
4386 done
4387 IFS="$ac_save_ifs"
4388 MAGIC_CMD="$ac_save_MAGIC_CMD"
4389 ;;
4390 esac
4391 fi
4392
4393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4394 if test -n "$MAGIC_CMD"; then
4395 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4396 echo "${ECHO_T}$MAGIC_CMD" >&6
4397 else
4398 echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6
4400 fi
4401
4402 else
4403 MAGIC_CMD=:
4404 fi
4405 fi
4406
4407 fi
4408 ;;
4409 esac
4410
4411 if test -n "$ac_tool_prefix"; then
4412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4414 echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4416 if test "${ac_cv_prog_RANLIB+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 if test -n "$RANLIB"; then
4420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433 done
4434 done
4435
4436 fi
4437 fi
4438 RANLIB=$ac_cv_prog_RANLIB
4439 if test -n "$RANLIB"; then
4440 echo "$as_me:$LINENO: result: $RANLIB" >&5
4441 echo "${ECHO_T}$RANLIB" >&6
4442 else
4443 echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6
4445 fi
4446
4447 fi
4448 if test -z "$ac_cv_prog_RANLIB"; then
4449 ac_ct_RANLIB=$RANLIB
4450 # Extract the first word of "ranlib", so it can be a program name with args.
4451 set dummy ranlib; ac_word=$2
4452 echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457 if test -n "$ac_ct_RANLIB"; then
4458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467 ac_cv_prog_ac_ct_RANLIB="ranlib"
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4470 fi
4471 done
4472 done
4473
4474 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4475 fi
4476 fi
4477 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4478 if test -n "$ac_ct_RANLIB"; then
4479 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4480 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4481 else
4482 echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6
4484 fi
4485
4486 RANLIB=$ac_ct_RANLIB
4487 else
4488 RANLIB="$ac_cv_prog_RANLIB"
4489 fi
4490
4491 if test -n "$ac_tool_prefix"; then
4492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4493 set dummy ${ac_tool_prefix}strip; ac_word=$2
4494 echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496 if test "${ac_cv_prog_STRIP+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 if test -n "$STRIP"; then
4500 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4512 fi
4513 done
4514 done
4515
4516 fi
4517 fi
4518 STRIP=$ac_cv_prog_STRIP
4519 if test -n "$STRIP"; then
4520 echo "$as_me:$LINENO: result: $STRIP" >&5
4521 echo "${ECHO_T}$STRIP" >&6
4522 else
4523 echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4525 fi
4526
4527 fi
4528 if test -z "$ac_cv_prog_STRIP"; then
4529 ac_ct_STRIP=$STRIP
4530 # Extract the first word of "strip", so it can be a program name with args.
4531 set dummy strip; ac_word=$2
4532 echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4534 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 if test -n "$ac_ct_STRIP"; then
4538 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547 ac_cv_prog_ac_ct_STRIP="strip"
4548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551 done
4552 done
4553
4554 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4555 fi
4556 fi
4557 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4558 if test -n "$ac_ct_STRIP"; then
4559 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4560 echo "${ECHO_T}$ac_ct_STRIP" >&6
4561 else
4562 echo "$as_me:$LINENO: result: no" >&5
4563 echo "${ECHO_T}no" >&6
4564 fi
4565
4566 STRIP=$ac_ct_STRIP
4567 else
4568 STRIP="$ac_cv_prog_STRIP"
4569 fi
4570
4571
4572 enable_dlopen=no
4573 enable_win32_dll=no
4574
4575 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4576 if test "${enable_libtool_lock+set}" = set; then
4577 enableval="$enable_libtool_lock"
4578
4579 fi;
4580 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4581
4582 # Some flags need to be propagated to the compiler or linker for good
4583 # libtool support.
4584 case $host in
4585 *-*-irix6*)
4586 # Find out which ABI we are using.
4587 echo '#line 4587 "configure"' > conftest.$ac_ext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; then
4593 case `/usr/bin/file conftest.$ac_objext` in
4594 *32-bit*)
4595 LD="${LD-ld} -32"
4596 ;;
4597 *N32*)
4598 LD="${LD-ld} -n32"
4599 ;;
4600 *64-bit*)
4601 LD="${LD-ld} -64"
4602 ;;
4603 esac
4604 fi
4605 rm -rf conftest*
4606 ;;
4607
4608 *-*-linux*)
4609 # Test if the compiler is 64bit
4610 echo 'int i;' > conftest.$ac_ext
4611 lt_cv_cc_64bit_output=no
4612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4613 (eval $ac_compile) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; then
4617 case `/usr/bin/file conftest.$ac_objext` in
4618 *"ELF 64"*)
4619 lt_cv_cc_64bit_output=yes
4620 ;;
4621 esac
4622 fi
4623 rm -rf conftest*
4624 ;;
4625
4626 *-*-sco3.2v5*)
4627 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4628 SAVE_CFLAGS="$CFLAGS"
4629 CFLAGS="$CFLAGS -belf"
4630 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4631 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4632 if test "${lt_cv_cc_needs_belf+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635
4636
4637 ac_ext=c
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642
4643 cat >conftest.$ac_ext <<_ACEOF
4644 #line $LINENO "configure"
4645 /* confdefs.h. */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650
4651 int
4652 main ()
4653 {
4654
4655 ;
4656 return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext conftest$ac_exeext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4661 (eval $ac_link) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -s conftest$ac_exeext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 lt_cv_cc_needs_belf=yes
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 lt_cv_cc_needs_belf=no
4677 fi
4678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4679 ac_ext=c
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684
4685 fi
4686 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4687 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4688 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4689 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4690 CFLAGS="$SAVE_CFLAGS"
4691 fi
4692 ;;
4693
4694
4695 esac
4696
4697 # Sed substitution that helps us do robust quoting. It backslashifies
4698 # metacharacters that are still active within double-quoted strings.
4699 Xsed='sed -e s/^X//'
4700 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4701
4702 # Same as above, but do not quote variable references.
4703 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4704
4705 # Sed substitution to delay expansion of an escaped shell variable in a
4706 # double_quote_subst'ed string.
4707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4708
4709 # Constants:
4710 rm="rm -f"
4711
4712 # Global variables:
4713 default_ofile=libtool
4714 can_build_shared=yes
4715
4716 # All known linkers require a `.a' archive for static linking (except M$VC,
4717 # which needs '.lib').
4718 libext=a
4719 ltmain="$ac_aux_dir/ltmain.sh"
4720 ofile="$default_ofile"
4721 with_gnu_ld="$lt_cv_prog_gnu_ld"
4722 need_locks="$enable_libtool_lock"
4723
4724 old_CC="$CC"
4725 old_CFLAGS="$CFLAGS"
4726
4727 # Set sane defaults for various variables
4728 test -z "$AR" && AR=ar
4729 test -z "$AR_FLAGS" && AR_FLAGS=cru
4730 test -z "$AS" && AS=as
4731 test -z "$CC" && CC=cc
4732 test -z "$DLLTOOL" && DLLTOOL=dlltool
4733 test -z "$LD" && LD=ld
4734 test -z "$LN_S" && LN_S="ln -s"
4735 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4736 test -z "$NM" && NM=nm
4737 test -z "$OBJDUMP" && OBJDUMP=objdump
4738 test -z "$RANLIB" && RANLIB=:
4739 test -z "$STRIP" && STRIP=:
4740 test -z "$ac_objext" && ac_objext=o
4741
4742 if test x"$host" != x"$build"; then
4743 ac_tool_prefix=${host_alias}-
4744 else
4745 ac_tool_prefix=
4746 fi
4747
4748 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4749 case $host_os in
4750 linux-gnu*) ;;
4751 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4752 esac
4753
4754 case $host_os in
4755 aix3*)
4756 # AIX sometimes has problems with the GCC collect2 program. For some
4757 # reason, if we set the COLLECT_NAMES environment variable, the problems
4758 # vanish in a puff of smoke.
4759 if test "X${COLLECT_NAMES+set}" != Xset; then
4760 COLLECT_NAMES=
4761 export COLLECT_NAMES
4762 fi
4763 ;;
4764 esac
4765
4766 # Determine commands to create old-style static archives.
4767 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4768 old_postinstall_cmds='chmod 644 $oldlib'
4769 old_postuninstall_cmds=
4770
4771 if test -n "$RANLIB"; then
4772 case $host_os in
4773 openbsd*)
4774 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4775 ;;
4776 *)
4777 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4778 ;;
4779 esac
4780 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4781 fi
4782
4783 # Allow CC to be a program name with arguments.
4784 set dummy $CC
4785 compiler="$2"
4786
4787 echo "$as_me:$LINENO: checking for objdir" >&5
4788 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4789 rm -f .libs 2>/dev/null
4790 mkdir .libs 2>/dev/null
4791 if test -d .libs; then
4792 objdir=.libs
4793 else
4794 # MS-DOS does not allow filenames that begin with a dot.
4795 objdir=_libs
4796 fi
4797 rmdir .libs 2>/dev/null
4798 echo "$as_me:$LINENO: result: $objdir" >&5
4799 echo "${ECHO_T}$objdir" >&6
4800
4801
4802
4803 # Check whether --with-pic or --without-pic was given.
4804 if test "${with_pic+set}" = set; then
4805 withval="$with_pic"
4806 pic_mode="$withval"
4807 else
4808 pic_mode=default
4809 fi;
4810 test -z "$pic_mode" && pic_mode=default
4811
4812 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4813 # in isolation, and that seeing it set (from the cache) indicates that
4814 # the associated values are set (in the cache) correctly too.
4815 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4816 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4817 if test "${lt_cv_prog_cc_pic+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820 lt_cv_prog_cc_pic=
4821 lt_cv_prog_cc_shlib=
4822 lt_cv_prog_cc_wl=
4823 lt_cv_prog_cc_static=
4824 lt_cv_prog_cc_no_builtin=
4825 lt_cv_prog_cc_can_build_shared=$can_build_shared
4826
4827 if test "$GCC" = yes; then
4828 lt_cv_prog_cc_wl='-Wl,'
4829 lt_cv_prog_cc_static='-static'
4830
4831 case $host_os in
4832 aix*)
4833 # Below there is a dirty hack to force normal static linking with -ldl
4834 # The problem is because libdl dynamically linked with both libc and
4835 # libC (AIX C++ library), which obviously doesn't included in libraries
4836 # list by gcc. This cause undefined symbols with -static flags.
4837 # This hack allows C programs to be linked with "-static -ldl", but
4838 # not sure about C++ programs.
4839 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4840 ;;
4841 amigaos*)
4842 # FIXME: we need at least 68020 code to build shared libraries, but
4843 # adding the `-m68020' flag to GCC prevents building anything better,
4844 # like `-m68040'.
4845 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4846 ;;
4847 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4848 # PIC is the default for these OSes.
4849 ;;
4850 darwin* | rhapsody*)
4851 # PIC is the default on this platform
4852 # Common symbols not allowed in MH_DYLIB files
4853 lt_cv_prog_cc_pic='-fno-common'
4854 ;;
4855 cygwin* | mingw* | pw32* | os2*)
4856 # This hack is so that the source file can tell whether it is being
4857 # built for inclusion in a dll (and should export symbols for example).
4858 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4859 ;;
4860 sysv4*MP*)
4861 if test -d /usr/nec; then
4862 lt_cv_prog_cc_pic=-Kconform_pic
4863 fi
4864 ;;
4865 *)
4866 lt_cv_prog_cc_pic='-fPIC'
4867 ;;
4868 esac
4869 else
4870 # PORTME Check for PIC flags for the system compiler.
4871 case $host_os in
4872 aix3* | aix4* | aix5*)
4873 lt_cv_prog_cc_wl='-Wl,'
4874 # All AIX code is PIC.
4875 if test "$host_cpu" = ia64; then
4876 # AIX 5 now supports IA64 processor
4877 lt_cv_prog_cc_static='-Bstatic'
4878 else
4879 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4880 fi
4881 ;;
4882
4883 hpux9* | hpux10* | hpux11*)
4884 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4885 lt_cv_prog_cc_wl='-Wl,'
4886 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4887 lt_cv_prog_cc_pic='+Z'
4888 ;;
4889
4890 irix5* | irix6* | nonstopux*)
4891 lt_cv_prog_cc_wl='-Wl,'
4892 lt_cv_prog_cc_static='-non_shared'
4893 # PIC (with -KPIC) is the default.
4894 ;;
4895
4896 cygwin* | mingw* | pw32* | os2*)
4897 # This hack is so that the source file can tell whether it is being
4898 # built for inclusion in a dll (and should export symbols for example).
4899 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4900 ;;
4901
4902 newsos6)
4903 lt_cv_prog_cc_pic='-KPIC'
4904 lt_cv_prog_cc_static='-Bstatic'
4905 ;;
4906
4907 osf3* | osf4* | osf5*)
4908 # All OSF/1 code is PIC.
4909 lt_cv_prog_cc_wl='-Wl,'
4910 lt_cv_prog_cc_static='-non_shared'
4911 ;;
4912
4913 sco3.2v5*)
4914 lt_cv_prog_cc_pic='-Kpic'
4915 lt_cv_prog_cc_static='-dn'
4916 lt_cv_prog_cc_shlib='-belf'
4917 ;;
4918
4919 solaris*)
4920 lt_cv_prog_cc_pic='-KPIC'
4921 lt_cv_prog_cc_static='-Bstatic'
4922 lt_cv_prog_cc_wl='-Wl,'
4923 ;;
4924
4925 sunos4*)
4926 lt_cv_prog_cc_pic='-PIC'
4927 lt_cv_prog_cc_static='-Bstatic'
4928 lt_cv_prog_cc_wl='-Qoption ld '
4929 ;;
4930
4931 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4932 lt_cv_prog_cc_pic='-KPIC'
4933 lt_cv_prog_cc_static='-Bstatic'
4934 lt_cv_prog_cc_wl='-Wl,'
4935 ;;
4936
4937 uts4*)
4938 lt_cv_prog_cc_pic='-pic'
4939 lt_cv_prog_cc_static='-Bstatic'
4940 ;;
4941
4942 sysv4*MP*)
4943 if test -d /usr/nec ;then
4944 lt_cv_prog_cc_pic='-Kconform_pic'
4945 lt_cv_prog_cc_static='-Bstatic'
4946 fi
4947 ;;
4948
4949 *)
4950 lt_cv_prog_cc_can_build_shared=no
4951 ;;
4952 esac
4953 fi
4954
4955 fi
4956
4957 if test -z "$lt_cv_prog_cc_pic"; then
4958 echo "$as_me:$LINENO: result: none" >&5
4959 echo "${ECHO_T}none" >&6
4960 else
4961 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4962 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4963
4964 # Check to make sure the pic_flag actually works.
4965 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4966 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4967 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970 save_CFLAGS="$CFLAGS"
4971 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4972 cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979
4980 int
4981 main ()
4982 {
4983
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 case $host_os in
5001 hpux9* | hpux10* | hpux11*)
5002 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5003 # they create non-PIC objects. So, if there were any warnings, we
5004 # assume that PIC is not supported.
5005 if test -s conftest.err; then
5006 lt_cv_prog_cc_pic_works=no
5007 else
5008 lt_cv_prog_cc_pic_works=yes
5009 fi
5010 ;;
5011 *)
5012 lt_cv_prog_cc_pic_works=yes
5013 ;;
5014 esac
5015
5016 else
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5019
5020 lt_cv_prog_cc_pic_works=no
5021
5022 fi
5023 rm -f conftest.$ac_objext conftest.$ac_ext
5024 CFLAGS="$save_CFLAGS"
5025
5026 fi
5027
5028
5029 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5030 lt_cv_prog_cc_pic=
5031 lt_cv_prog_cc_can_build_shared=no
5032 else
5033 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5034 fi
5035
5036 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5037 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5038 fi
5039
5040 # Check for any special shared library compilation flags.
5041 if test -n "$lt_cv_prog_cc_shlib"; then
5042 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5043 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5044 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5045 else
5046 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5047 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5048 lt_cv_prog_cc_can_build_shared=no
5049 fi
5050 fi
5051
5052 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5053 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5054 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057 lt_cv_prog_cc_static_works=no
5058 save_LDFLAGS="$LDFLAGS"
5059 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5060 cat >conftest.$ac_ext <<_ACEOF
5061 #line $LINENO "configure"
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067
5068 int
5069 main ()
5070 {
5071
5072 ;
5073 return 0;
5074 }
5075 _ACEOF
5076 rm -f conftest.$ac_objext conftest$ac_exeext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5078 (eval $ac_link) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -s conftest$ac_exeext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 lt_cv_prog_cc_static_works=yes
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 fi
5094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5095 LDFLAGS="$save_LDFLAGS"
5096
5097 fi
5098
5099
5100 # Belt *and* braces to stop my trousers falling down:
5101 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5102 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5103 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5104
5105 pic_flag="$lt_cv_prog_cc_pic"
5106 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5107 wl="$lt_cv_prog_cc_wl"
5108 link_static_flag="$lt_cv_prog_cc_static"
5109 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5110 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5111
5112
5113 # Check to see if options -o and -c are simultaneously supported by compiler
5114 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5115 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5116 if test "${lt_cv_compiler_c_o+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119
5120 $rm -r conftest 2>/dev/null
5121 mkdir conftest
5122 cd conftest
5123 echo "int some_variable = 0;" > conftest.$ac_ext
5124 mkdir out
5125 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5126 # that will create temporary files in the current directory regardless of
5127 # the output directory. Thus, making CWD read-only will cause this test
5128 # to fail, enabling locking or at least warning the user not to do parallel
5129 # builds.
5130 chmod -w .
5131 save_CFLAGS="$CFLAGS"
5132 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5133 compiler_c_o=no
5134 if { (eval echo configure:5134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5135 # The compiler can only warn and ignore the option if not recognized
5136 # So say no if there are warnings
5137 if test -s out/conftest.err; then
5138 lt_cv_compiler_c_o=no
5139 else
5140 lt_cv_compiler_c_o=yes
5141 fi
5142 else
5143 # Append any errors to the config.log.
5144 cat out/conftest.err 1>&5
5145 lt_cv_compiler_c_o=no
5146 fi
5147 CFLAGS="$save_CFLAGS"
5148 chmod u+w .
5149 $rm conftest* out/*
5150 rmdir out
5151 cd ..
5152 rmdir conftest
5153 $rm -r conftest 2>/dev/null
5154
5155 fi
5156
5157 compiler_c_o=$lt_cv_compiler_c_o
5158 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5159 echo "${ECHO_T}$compiler_c_o" >&6
5160
5161 if test x"$compiler_c_o" = x"yes"; then
5162 # Check to see if we can write to a .lo
5163 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5164 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5165 if test "${lt_cv_compiler_o_lo+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168
5169 lt_cv_compiler_o_lo=no
5170 save_CFLAGS="$CFLAGS"
5171 CFLAGS="$CFLAGS -c -o conftest.lo"
5172 save_objext="$ac_objext"
5173 ac_objext=lo
5174 cat >conftest.$ac_ext <<_ACEOF
5175 #line $LINENO "configure"
5176 /* confdefs.h. */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181
5182 int
5183 main ()
5184 {
5185 int some_variable = 0;
5186 ;
5187 return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5192 (eval $ac_compile) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -s conftest.$ac_objext'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5202 # The compiler can only warn and ignore the option if not recognized
5203 # So say no if there are warnings
5204 if test -s conftest.err; then
5205 lt_cv_compiler_o_lo=no
5206 else
5207 lt_cv_compiler_o_lo=yes
5208 fi
5209
5210 else
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 fi
5215 rm -f conftest.$ac_objext conftest.$ac_ext
5216 ac_objext="$save_objext"
5217 CFLAGS="$save_CFLAGS"
5218
5219 fi
5220
5221 compiler_o_lo=$lt_cv_compiler_o_lo
5222 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5223 echo "${ECHO_T}$compiler_o_lo" >&6
5224 else
5225 compiler_o_lo=no
5226 fi
5227
5228 # Check to see if we can do hard links to lock some files if needed
5229 hard_links="nottested"
5230 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5231 # do not overwrite the value of need_locks provided by the user
5232 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5233 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5234 hard_links=yes
5235 $rm conftest*
5236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5237 touch conftest.a
5238 ln conftest.a conftest.b 2>&5 || hard_links=no
5239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5240 echo "$as_me:$LINENO: result: $hard_links" >&5
5241 echo "${ECHO_T}$hard_links" >&6
5242 if test "$hard_links" = no; then
5243 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5244 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5245 need_locks=warn
5246 fi
5247 else
5248 need_locks=no
5249 fi
5250
5251 if test "$GCC" = yes; then
5252 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5253 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5254 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5255 echo "int some_variable = 0;" > conftest.$ac_ext
5256 save_CFLAGS="$CFLAGS"
5257 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5258 compiler_rtti_exceptions=no
5259 cat >conftest.$ac_ext <<_ACEOF
5260 #line $LINENO "configure"
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266
5267 int
5268 main ()
5269 {
5270 int some_variable = 0;
5271 ;
5272 return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest.$ac_objext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5277 (eval $ac_compile) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5287 # The compiler can only warn and ignore the option if not recognized
5288 # So say no if there are warnings
5289 if test -s conftest.err; then
5290 compiler_rtti_exceptions=no
5291 else
5292 compiler_rtti_exceptions=yes
5293 fi
5294
5295 else
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299 fi
5300 rm -f conftest.$ac_objext conftest.$ac_ext
5301 CFLAGS="$save_CFLAGS"
5302 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5303 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5304
5305 if test "$compiler_rtti_exceptions" = "yes"; then
5306 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5307 else
5308 no_builtin_flag=' -fno-builtin'
5309 fi
5310 fi
5311
5312 # See if the linker supports building shared libraries.
5313 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5314 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5315
5316 allow_undefined_flag=
5317 no_undefined_flag=
5318 need_lib_prefix=unknown
5319 need_version=unknown
5320 # when you set need_version to no, make sure it does not cause -set_version
5321 # flags to be left without arguments
5322 archive_cmds=
5323 archive_expsym_cmds=
5324 old_archive_from_new_cmds=
5325 old_archive_from_expsyms_cmds=
5326 export_dynamic_flag_spec=
5327 whole_archive_flag_spec=
5328 thread_safe_flag_spec=
5329 hardcode_into_libs=no
5330 hardcode_libdir_flag_spec=
5331 hardcode_libdir_separator=
5332 hardcode_direct=no
5333 hardcode_minus_L=no
5334 hardcode_shlibpath_var=unsupported
5335 runpath_var=
5336 link_all_deplibs=unknown
5337 always_export_symbols=no
5338 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5339 # include_expsyms should be a list of space-separated symbols to be *always*
5340 # included in the symbol list
5341 include_expsyms=
5342 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5343 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5344 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5345 # as well as any symbol that contains `d'.
5346 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5347 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5348 # platforms (ab)use it in PIC code, but their linkers get confused if
5349 # the symbol is explicitly referenced. Since portable code cannot
5350 # rely on this symbol name, it's probably fine to never include it in
5351 # preloaded symbol tables.
5352 extract_expsyms_cmds=
5353
5354 case $host_os in
5355 cygwin* | mingw* | pw32*)
5356 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5357 # When not using gcc, we currently assume that we are using
5358 # Microsoft Visual C++.
5359 if test "$GCC" != yes; then
5360 with_gnu_ld=no
5361 fi
5362 ;;
5363 openbsd*)
5364 with_gnu_ld=no
5365 ;;
5366 esac
5367
5368 ld_shlibs=yes
5369 if test "$with_gnu_ld" = yes; then
5370 # If archive_cmds runs LD, not CC, wlarc should be empty
5371 wlarc='${wl}'
5372
5373 # See if GNU ld supports shared libraries.
5374 case $host_os in
5375 aix3* | aix4* | aix5*)
5376 # On AIX, the GNU linker is very broken
5377 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5378 ld_shlibs=no
5379 cat <<EOF 1>&2
5380
5381 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5382 *** to be unable to reliably create shared libraries on AIX.
5383 *** Therefore, libtool is disabling shared libraries support. If you
5384 *** really care for shared libraries, you may want to modify your PATH
5385 *** so that a non-GNU linker is found, and then restart.
5386
5387 EOF
5388 ;;
5389
5390 amigaos*)
5391 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)'
5392 hardcode_libdir_flag_spec='-L$libdir'
5393 hardcode_minus_L=yes
5394
5395 # Samuel A. Falvo II <[email protected]> reports
5396 # that the semantics of dynamic libraries on AmigaOS, at least up
5397 # to version 4, is to share data among multiple programs linked
5398 # with the same dynamic library. Since this doesn't match the
5399 # behavior of shared libraries on other platforms, we can use
5400 # them.
5401 ld_shlibs=no
5402 ;;
5403
5404 beos*)
5405 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5406 allow_undefined_flag=unsupported
5407 # Joseph Beckenbach <[email protected]> says some releases of gcc
5408 # support --undefined. This deserves some investigation. FIXME
5409 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5410 else
5411 ld_shlibs=no
5412 fi
5413 ;;
5414
5415 cygwin* | mingw* | pw32*)
5416 # hardcode_libdir_flag_spec is actually meaningless, as there is
5417 # no search path for DLLs.
5418 hardcode_libdir_flag_spec='-L$libdir'
5419 allow_undefined_flag=unsupported
5420 always_export_symbols=yes
5421
5422 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5423 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5424 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5425 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5426 else $CC -o impgen impgen.c ; fi)~
5427 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5428
5429 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5430
5431 # cygwin and mingw dlls have different entry points and sets of symbols
5432 # to exclude.
5433 # FIXME: what about values for MSVC?
5434 dll_entry=__cygwin_dll_entry@12
5435 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5436 case $host_os in
5437 mingw*)
5438 # mingw values
5439 dll_entry=_DllMainCRTStartup@12
5440 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5441 ;;
5442 esac
5443
5444 # mingw and cygwin differ, and it's simplest to just exclude the union
5445 # of the two symbol sets.
5446 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5447
5448 # recent cygwin and mingw systems supply a stub DllMain which the user
5449 # can override, but on older systems we have to supply one (in ltdll.c)
5450 if test "x$lt_cv_need_dllmain" = "xyes"; then
5451 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5452 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5453 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5454 else
5455 ltdll_obj=
5456 ltdll_cmds=
5457 fi
5458
5459 # Extract the symbol export list from an `--export-all' def file,
5460 # then regenerate the def file from the symbol export list, so that
5461 # the compiled dll only exports the symbol export list.
5462 # Be careful not to strip the DATA tag left be newer dlltools.
5463 export_symbols_cmds="$ltdll_cmds"'
5464 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5465 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5466
5467 # If the export-symbols file already is a .def file (1st line
5468 # is EXPORTS), use it as is.
5469 # If DATA tags from a recent dlltool are present, honour them!
5470 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5471 cp $export_symbols $output_objdir/$soname-def;
5472 else
5473 echo EXPORTS > $output_objdir/$soname-def;
5474 _lt_hint=1;
5475 cat $export_symbols | while read symbol; do
5476 set dummy \$symbol;
5477 case \$# in
5478 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5479 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5480 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5481 esac;
5482 _lt_hint=`expr 1 + \$_lt_hint`;
5483 done;
5484 fi~
5485 '"$ltdll_cmds"'
5486 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5487 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5488 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5489 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5490 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5491 ;;
5492
5493 netbsd*)
5494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5495 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5496 wlarc=
5497 else
5498 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5499 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5500 fi
5501 ;;
5502
5503 solaris* | sysv5*)
5504 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5505 ld_shlibs=no
5506 cat <<EOF 1>&2
5507
5508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5509 *** create shared libraries on Solaris systems. Therefore, libtool
5510 *** is disabling shared libraries support. We urge you to upgrade GNU
5511 *** binutils to release 2.9.1 or newer. Another option is to modify
5512 *** your PATH or compiler configuration so that the native linker is
5513 *** used, and then restart.
5514
5515 EOF
5516 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5518 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5519 else
5520 ld_shlibs=no
5521 fi
5522 ;;
5523
5524 sunos4*)
5525 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5526 wlarc=
5527 hardcode_direct=yes
5528 hardcode_shlibpath_var=no
5529 ;;
5530
5531 *)
5532 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5534 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5535 else
5536 ld_shlibs=no
5537 fi
5538 ;;
5539 esac
5540
5541 if test "$ld_shlibs" = yes; then
5542 runpath_var=LD_RUN_PATH
5543 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5544 export_dynamic_flag_spec='${wl}--export-dynamic'
5545 case $host_os in
5546 cygwin* | mingw* | pw32*)
5547 # dlltool doesn't understand --whole-archive et. al.
5548 whole_archive_flag_spec=
5549 ;;
5550 *)
5551 # ancient GNU ld didn't support --whole-archive et. al.
5552 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5553 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5554 else
5555 whole_archive_flag_spec=
5556 fi
5557 ;;
5558 esac
5559 fi
5560 else
5561 # PORTME fill in a description of your system's linker (not GNU ld)
5562 case $host_os in
5563 aix3*)
5564 allow_undefined_flag=unsupported
5565 always_export_symbols=yes
5566 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'
5567 # Note: this linker hardcodes the directories in LIBPATH if there
5568 # are no directories specified by -L.
5569 hardcode_minus_L=yes
5570 if test "$GCC" = yes && test -z "$link_static_flag"; then
5571 # Neither direct hardcoding nor static linking is supported with a
5572 # broken collect2.
5573 hardcode_direct=unsupported
5574 fi
5575 ;;
5576
5577 aix4* | aix5*)
5578 if test "$host_cpu" = ia64; then
5579 # On IA64, the linker does run time linking by default, so we don't
5580 # have to do anything special.
5581 aix_use_runtimelinking=no
5582 exp_sym_flag='-Bexport'
5583 no_entry_flag=""
5584 else
5585 aix_use_runtimelinking=no
5586
5587 # Test if we are trying to use run time linking or normal
5588 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5589 # need to do runtime linking.
5590 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5591 for ld_flag in $LDFLAGS; do
5592 case $ld_flag in
5593 *-brtl*)
5594 aix_use_runtimelinking=yes
5595 break
5596 ;;
5597 esac
5598 done
5599 esac
5600
5601 exp_sym_flag='-bexport'
5602 no_entry_flag='-bnoentry'
5603 fi
5604
5605 # When large executables or shared objects are built, AIX ld can
5606 # have problems creating the table of contents. If linking a library
5607 # or program results in "error TOC overflow" add -mminimal-toc to
5608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5610
5611 hardcode_direct=yes
5612 archive_cmds=''
5613 hardcode_libdir_separator=':'
5614 if test "$GCC" = yes; then
5615 case $host_os in aix4.[012]|aix4.[012].*)
5616 collect2name=`${CC} -print-prog-name=collect2`
5617 if test -f "$collect2name" && \
5618 strings "$collect2name" | grep resolve_lib_name >/dev/null
5619 then
5620 # We have reworked collect2
5621 hardcode_direct=yes
5622 else
5623 # We have old collect2
5624 hardcode_direct=unsupported
5625 # It fails to find uninstalled libraries when the uninstalled
5626 # path is not listed in the libpath. Setting hardcode_minus_L
5627 # to unsupported forces relinking
5628 hardcode_minus_L=yes
5629 hardcode_libdir_flag_spec='-L$libdir'
5630 hardcode_libdir_separator=
5631 fi
5632 esac
5633
5634 shared_flag='-shared'
5635 else
5636 # not using gcc
5637 if test "$host_cpu" = ia64; then
5638 shared_flag='${wl}-G'
5639 else
5640 if test "$aix_use_runtimelinking" = yes; then
5641 shared_flag='${wl}-G'
5642 else
5643 shared_flag='${wl}-bM:SRE'
5644 fi
5645 fi
5646 fi
5647
5648 # It seems that -bexpall can do strange things, so it is better to
5649 # generate a list of symbols to export.
5650 always_export_symbols=yes
5651 if test "$aix_use_runtimelinking" = yes; then
5652 # Warning - without using the other runtime loading flags (-brtl),
5653 # -berok will link without error, but may produce a broken library.
5654 allow_undefined_flag='-berok'
5655 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5656 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5657 else
5658 if test "$host_cpu" = ia64; then
5659 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5660 allow_undefined_flag="-z nodefs"
5661 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5662 else
5663 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5664 # Warning - without using the other run time loading flags,
5665 # -berok will link without error, but may produce a broken library.
5666 allow_undefined_flag='${wl}-berok'
5667 # This is a bit strange, but is similar to how AIX traditionally builds
5668 # it's shared libraries.
5669 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5670 fi
5671 fi
5672 ;;
5673
5674 amigaos*)
5675 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)'
5676 hardcode_libdir_flag_spec='-L$libdir'
5677 hardcode_minus_L=yes
5678 # see comment about different semantics on the GNU ld section
5679 ld_shlibs=no
5680 ;;
5681
5682 cygwin* | mingw* | pw32*)
5683 # When not using gcc, we currently assume that we are using
5684 # Microsoft Visual C++.
5685 # hardcode_libdir_flag_spec is actually meaningless, as there is
5686 # no search path for DLLs.
5687 hardcode_libdir_flag_spec=' '
5688 allow_undefined_flag=unsupported
5689 # Tell ltmain to make .lib files, not .a files.
5690 libext=lib
5691 # FIXME: Setting linknames here is a bad hack.
5692 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5693 # The linker will automatically build a .lib file if we build a DLL.
5694 old_archive_from_new_cmds='true'
5695 # FIXME: Should let the user specify the lib program.
5696 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5697 fix_srcfile_path='`cygpath -w "$srcfile"`'
5698 ;;
5699
5700 darwin* | rhapsody*)
5701 case "$host_os" in
5702 rhapsody* | darwin1.[012])
5703 allow_undefined_flag='-undefined suppress'
5704 ;;
5705 *) # Darwin 1.3 on
5706 allow_undefined_flag='-flat_namespace -undefined suppress'
5707 ;;
5708 esac
5709 # FIXME: Relying on posixy $() will cause problems for
5710 # cross-compilation, but unfortunately the echo tests do not
5711 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5712 # `"' quotes if we put them in here... so don't!
5713 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5714 # We need to add '_' to the symbols in $export_symbols first
5715 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5716 hardcode_direct=yes
5717 hardcode_shlibpath_var=no
5718 whole_archive_flag_spec='-all_load $convenience'
5719 ;;
5720
5721 freebsd1*)
5722 ld_shlibs=no
5723 ;;
5724
5725 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5726 # support. Future versions do this automatically, but an explicit c++rt0.o
5727 # does not break anything, and helps significantly (at the cost of a little
5728 # extra space).
5729 freebsd2.2*)
5730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5731 hardcode_libdir_flag_spec='-R$libdir'
5732 hardcode_direct=yes
5733 hardcode_shlibpath_var=no
5734 ;;
5735
5736 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5737 freebsd2*)
5738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5739 hardcode_direct=yes
5740 hardcode_minus_L=yes
5741 hardcode_shlibpath_var=no
5742 ;;
5743
5744 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5745 freebsd*)
5746 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5747 hardcode_libdir_flag_spec='-R$libdir'
5748 hardcode_direct=yes
5749 hardcode_shlibpath_var=no
5750 ;;
5751
5752 hpux9* | hpux10* | hpux11*)
5753 case $host_os in
5754 hpux9*) 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' ;;
5755 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5756 esac
5757 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5758 hardcode_libdir_separator=:
5759 hardcode_direct=yes
5760 hardcode_minus_L=yes # Not in the search PATH, but as the default
5761 # location of the library.
5762 export_dynamic_flag_spec='${wl}-E'
5763 ;;
5764
5765 irix5* | irix6* | nonstopux*)
5766 if test "$GCC" = yes; then
5767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5769 else
5770 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5771 hardcode_libdir_flag_spec='-rpath $libdir'
5772 fi
5773 hardcode_libdir_separator=:
5774 link_all_deplibs=yes
5775 ;;
5776
5777 netbsd*)
5778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5780 else
5781 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5782 fi
5783 hardcode_libdir_flag_spec='-R$libdir'
5784 hardcode_direct=yes
5785 hardcode_shlibpath_var=no
5786 ;;
5787
5788 newsos6)
5789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5790 hardcode_direct=yes
5791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5792 hardcode_libdir_separator=:
5793 hardcode_shlibpath_var=no
5794 ;;
5795
5796 openbsd*)
5797 hardcode_direct=yes
5798 hardcode_shlibpath_var=no
5799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5802 export_dynamic_flag_spec='${wl}-E'
5803 else
5804 case "$host_os" in
5805 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5807 hardcode_libdir_flag_spec='-R$libdir'
5808 ;;
5809 *)
5810 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5812 ;;
5813 esac
5814 fi
5815 ;;
5816
5817 os2*)
5818 hardcode_libdir_flag_spec='-L$libdir'
5819 hardcode_minus_L=yes
5820 allow_undefined_flag=unsupported
5821 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'
5822 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5823 ;;
5824
5825 osf3*)
5826 if test "$GCC" = yes; then
5827 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5828 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5829 else
5830 allow_undefined_flag=' -expect_unresolved \*'
5831 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5832 fi
5833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5834 hardcode_libdir_separator=:
5835 ;;
5836
5837 osf4* | osf5*) # as osf3* with the addition of -msym flag
5838 if test "$GCC" = yes; then
5839 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5840 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5842 else
5843 allow_undefined_flag=' -expect_unresolved \*'
5844 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5845 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5846 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5847
5848 #Both c and cxx compiler support -rpath directly
5849 hardcode_libdir_flag_spec='-rpath $libdir'
5850 fi
5851 hardcode_libdir_separator=:
5852 ;;
5853
5854 sco3.2v5*)
5855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5856 hardcode_shlibpath_var=no
5857 runpath_var=LD_RUN_PATH
5858 hardcode_runpath_var=yes
5859 export_dynamic_flag_spec='${wl}-Bexport'
5860 ;;
5861
5862 solaris*)
5863 # gcc --version < 3.0 without binutils cannot create self contained
5864 # shared libraries reliably, requiring libgcc.a to resolve some of
5865 # the object symbols generated in some cases. Libraries that use
5866 # assert need libgcc.a to resolve __eprintf, for example. Linking
5867 # a copy of libgcc.a into every shared library to guarantee resolving
5868 # such symbols causes other problems: According to Tim Van Holder
5869 # <[email protected]>, C++ libraries end up with a separate
5870 # (to the application) exception stack for one thing.
5871 no_undefined_flag=' -z defs'
5872 if test "$GCC" = yes; then
5873 case `$CC --version 2>/dev/null` in
5874 [12].*)
5875 cat <<EOF 1>&2
5876
5877 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5878 *** create self contained shared libraries on Solaris systems, without
5879 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5880 *** -no-undefined support, which will at least allow you to build shared
5881 *** libraries. However, you may find that when you link such libraries
5882 *** into an application without using GCC, you have to manually add
5883 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5884 *** upgrade to a newer version of GCC. Another option is to rebuild your
5885 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5886
5887 EOF
5888 no_undefined_flag=
5889 ;;
5890 esac
5891 fi
5892 # $CC -shared without GNU ld will not create a library from C++
5893 # object files and a static libstdc++, better avoid it by now
5894 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5895 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5897 hardcode_libdir_flag_spec='-R$libdir'
5898 hardcode_shlibpath_var=no
5899 case $host_os in
5900 solaris2.[0-5] | solaris2.[0-5].*) ;;
5901 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5903 esac
5904 link_all_deplibs=yes
5905 ;;
5906
5907 sunos4*)
5908 if test "x$host_vendor" = xsequent; then
5909 # Use $CC to link under sequent, because it throws in some extra .o
5910 # files that make .init and .fini sections work.
5911 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5912 else
5913 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5914 fi
5915 hardcode_libdir_flag_spec='-L$libdir'
5916 hardcode_direct=yes
5917 hardcode_minus_L=yes
5918 hardcode_shlibpath_var=no
5919 ;;
5920
5921 sysv4)
5922 case $host_vendor in
5923 sni)
5924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5925 hardcode_direct=yes # is this really true???
5926 ;;
5927 siemens)
5928 ## LD is ld it makes a PLAMLIB
5929 ## CC just makes a GrossModule.
5930 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5931 reload_cmds='$CC -r -o $output$reload_objs'
5932 hardcode_direct=no
5933 ;;
5934 motorola)
5935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5936 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5937 ;;
5938 esac
5939 runpath_var='LD_RUN_PATH'
5940 hardcode_shlibpath_var=no
5941 ;;
5942
5943 sysv4.3*)
5944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5945 hardcode_shlibpath_var=no
5946 export_dynamic_flag_spec='-Bexport'
5947 ;;
5948
5949 sysv5*)
5950 no_undefined_flag=' -z text'
5951 # $CC -shared without GNU ld will not create a library from C++
5952 # object files and a static libstdc++, better avoid it by now
5953 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5954 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5955 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5956 hardcode_libdir_flag_spec=
5957 hardcode_shlibpath_var=no
5958 runpath_var='LD_RUN_PATH'
5959 ;;
5960
5961 uts4*)
5962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5963 hardcode_libdir_flag_spec='-L$libdir'
5964 hardcode_shlibpath_var=no
5965 ;;
5966
5967 dgux*)
5968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5969 hardcode_libdir_flag_spec='-L$libdir'
5970 hardcode_shlibpath_var=no
5971 ;;
5972
5973 sysv4*MP*)
5974 if test -d /usr/nec; then
5975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5976 hardcode_shlibpath_var=no
5977 runpath_var=LD_RUN_PATH
5978 hardcode_runpath_var=yes
5979 ld_shlibs=yes
5980 fi
5981 ;;
5982
5983 sysv4.2uw2*)
5984 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5985 hardcode_direct=yes
5986 hardcode_minus_L=no
5987 hardcode_shlibpath_var=no
5988 hardcode_runpath_var=yes
5989 runpath_var=LD_RUN_PATH
5990 ;;
5991
5992 sysv5uw7* | unixware7*)
5993 no_undefined_flag='${wl}-z ${wl}text'
5994 if test "$GCC" = yes; then
5995 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5996 else
5997 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5998 fi
5999 runpath_var='LD_RUN_PATH'
6000 hardcode_shlibpath_var=no
6001 ;;
6002
6003 *)
6004 ld_shlibs=no
6005 ;;
6006 esac
6007 fi
6008 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6009 echo "${ECHO_T}$ld_shlibs" >&6
6010 test "$ld_shlibs" = no && can_build_shared=no
6011
6012 # Check hardcoding attributes.
6013 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6014 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6015 hardcode_action=
6016 if test -n "$hardcode_libdir_flag_spec" || \
6017 test -n "$runpath_var"; then
6018
6019 # We can hardcode non-existant directories.
6020 if test "$hardcode_direct" != no &&
6021 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6022 # have to relink, otherwise we might link with an installed library
6023 # when we should be linking with a yet-to-be-installed one
6024 ## test "$hardcode_shlibpath_var" != no &&
6025 test "$hardcode_minus_L" != no; then
6026 # Linking always hardcodes the temporary library directory.
6027 hardcode_action=relink
6028 else
6029 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6030 hardcode_action=immediate
6031 fi
6032 else
6033 # We cannot hardcode anything, or else we can only hardcode existing
6034 # directories.
6035 hardcode_action=unsupported
6036 fi
6037 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6038 echo "${ECHO_T}$hardcode_action" >&6
6039
6040 striplib=
6041 old_striplib=
6042 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6043 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6044 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6045 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6046 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6047 echo "$as_me:$LINENO: result: yes" >&5
6048 echo "${ECHO_T}yes" >&6
6049 else
6050 echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6
6052 fi
6053
6054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6055 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6056
6057 # PORTME Fill in your ld.so characteristics
6058 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6059 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6060 library_names_spec=
6061 libname_spec='lib$name'
6062 soname_spec=
6063 postinstall_cmds=
6064 postuninstall_cmds=
6065 finish_cmds=
6066 finish_eval=
6067 shlibpath_var=
6068 shlibpath_overrides_runpath=unknown
6069 version_type=none
6070 dynamic_linker="$host_os ld.so"
6071 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6073
6074 case $host_os in
6075 aix3*)
6076 version_type=linux
6077 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6078 shlibpath_var=LIBPATH
6079
6080 # AIX has no versioning support, so we append a major version to the name.
6081 soname_spec='${libname}${release}.so$major'
6082 ;;
6083
6084 aix4* | aix5*)
6085 version_type=linux
6086 need_lib_prefix=no
6087 need_version=no
6088 hardcode_into_libs=yes
6089 if test "$host_cpu" = ia64; then
6090 # AIX 5 supports IA64
6091 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6092 shlibpath_var=LD_LIBRARY_PATH
6093 else
6094 # With GCC up to 2.95.x, collect2 would create an import file
6095 # for dependence libraries. The import file would start with
6096 # the line `#! .'. This would cause the generated library to
6097 # depend on `.', always an invalid library. This was fixed in
6098 # development snapshots of GCC prior to 3.0.
6099 case $host_os in
6100 aix4 | aix4.[01] | aix4.[01].*)
6101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6102 echo ' yes '
6103 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6104 :
6105 else
6106 can_build_shared=no
6107 fi
6108 ;;
6109 esac
6110 # AIX (on Power*) has no versioning support, so currently we can
6111 # not hardcode correct soname into executable. Probably we can
6112 # add versioning support to collect2, so additional links can
6113 # be useful in future.
6114 if test "$aix_use_runtimelinking" = yes; then
6115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6116 # instead of lib<name>.a to let people know that these are not
6117 # typical AIX shared libraries.
6118 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6119 else
6120 # We preserve .a as extension for shared libraries through AIX4.2
6121 # and later when we are not doing run time linking.
6122 library_names_spec='${libname}${release}.a $libname.a'
6123 soname_spec='${libname}${release}.so$major'
6124 fi
6125 shlibpath_var=LIBPATH
6126 fi
6127 hardcode_into_libs=yes
6128 ;;
6129
6130 amigaos*)
6131 library_names_spec='$libname.ixlibrary $libname.a'
6132 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6133 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'
6134 ;;
6135
6136 beos*)
6137 library_names_spec='${libname}.so'
6138 dynamic_linker="$host_os ld.so"
6139 shlibpath_var=LIBRARY_PATH
6140 ;;
6141
6142 bsdi4*)
6143 version_type=linux
6144 need_version=no
6145 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6146 soname_spec='${libname}${release}.so$major'
6147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6148 shlibpath_var=LD_LIBRARY_PATH
6149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6151 export_dynamic_flag_spec=-rdynamic
6152 # the default ld.so.conf also contains /usr/contrib/lib and
6153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6154 # libtool to hard-code these into programs
6155 ;;
6156
6157 cygwin* | mingw* | pw32*)
6158 version_type=windows
6159 need_version=no
6160 need_lib_prefix=no
6161 case $GCC,$host_os in
6162 yes,cygwin*)
6163 library_names_spec='$libname.dll.a'
6164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6165 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6166 dldir=$destdir/`dirname \$dlpath`~
6167 test -d \$dldir || mkdir -p \$dldir~
6168 $install_prog .libs/$dlname \$dldir/$dlname'
6169 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6170 dlpath=$dir/\$dldll~
6171 $rm \$dlpath'
6172 ;;
6173 yes,mingw*)
6174 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6175 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6176 ;;
6177 yes,pw32*)
6178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6179 ;;
6180 *)
6181 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6182 ;;
6183 esac
6184 dynamic_linker='Win32 ld.exe'
6185 # FIXME: first we should search . and the directory the executable is in
6186 shlibpath_var=PATH
6187 ;;
6188
6189 darwin* | rhapsody*)
6190 dynamic_linker="$host_os dyld"
6191 version_type=darwin
6192 need_lib_prefix=no
6193 need_version=no
6194 # FIXME: Relying on posixy $() will cause problems for
6195 # cross-compilation, but unfortunately the echo tests do not
6196 # yet detect zsh echo's removal of \ escapes.
6197 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6198 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6199 shlibpath_overrides_runpath=yes
6200 shlibpath_var=DYLD_LIBRARY_PATH
6201 ;;
6202
6203 freebsd1*)
6204 dynamic_linker=no
6205 ;;
6206
6207 freebsd*)
6208 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6209 version_type=freebsd-$objformat
6210 case $version_type in
6211 freebsd-elf*)
6212 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6213 need_version=no
6214 need_lib_prefix=no
6215 ;;
6216 freebsd-*)
6217 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6218 need_version=yes
6219 ;;
6220 esac
6221 shlibpath_var=LD_LIBRARY_PATH
6222 case $host_os in
6223 freebsd2*)
6224 shlibpath_overrides_runpath=yes
6225 ;;
6226 *)
6227 shlibpath_overrides_runpath=no
6228 hardcode_into_libs=yes
6229 ;;
6230 esac
6231 ;;
6232
6233 gnu*)
6234 version_type=linux
6235 need_lib_prefix=no
6236 need_version=no
6237 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6238 soname_spec='${libname}${release}.so$major'
6239 shlibpath_var=LD_LIBRARY_PATH
6240 hardcode_into_libs=yes
6241 ;;
6242
6243 hpux9* | hpux10* | hpux11*)
6244 # Give a soname corresponding to the major version so that dld.sl refuses to
6245 # link against other versions.
6246 dynamic_linker="$host_os dld.sl"
6247 version_type=sunos
6248 need_lib_prefix=no
6249 need_version=no
6250 shlibpath_var=SHLIB_PATH
6251 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6252 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6253 soname_spec='${libname}${release}.sl$major'
6254 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6255 postinstall_cmds='chmod 555 $lib'
6256 ;;
6257
6258 irix5* | irix6* | nonstopux*)
6259 case $host_os in
6260 nonstopux*) version_type=nonstopux ;;
6261 *) version_type=irix ;;
6262 esac
6263 need_lib_prefix=no
6264 need_version=no
6265 soname_spec='${libname}${release}.so$major'
6266 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6267 case $host_os in
6268 irix5* | nonstopux*)
6269 libsuff= shlibsuff=
6270 ;;
6271 *)
6272 case $LD in # libtool.m4 will add one of these switches to LD
6273 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6274 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6275 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6276 *) libsuff= shlibsuff= libmagic=never-match;;
6277 esac
6278 ;;
6279 esac
6280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6281 shlibpath_overrides_runpath=no
6282 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6283 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6284 ;;
6285
6286 # No shared lib support for Linux oldld, aout, or coff.
6287 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6288 dynamic_linker=no
6289 ;;
6290
6291 # This must be Linux ELF.
6292 linux-gnu*)
6293 version_type=linux
6294 need_lib_prefix=no
6295 need_version=no
6296 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6297 soname_spec='${libname}${release}.so$major'
6298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6299 shlibpath_var=LD_LIBRARY_PATH
6300 shlibpath_overrides_runpath=no
6301 # This implies no fast_install, which is unacceptable.
6302 # Some rework will be needed to allow for fast_install
6303 # before this can be enabled.
6304 hardcode_into_libs=yes
6305
6306 case $host_cpu:$lt_cv_cc_64bit_output in
6307 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6308 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6309 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6310 ;;
6311 esac
6312
6313 # We used to test for /lib/ld.so.1 and disable shared libraries on
6314 # powerpc, because MkLinux only supported shared libraries with the
6315 # GNU dynamic linker. Since this was broken with cross compilers,
6316 # most powerpc-linux boxes support dynamic linking these days and
6317 # people can always --disable-shared, the test was removed, and we
6318 # assume the GNU/Linux dynamic linker is in use.
6319 dynamic_linker='GNU/Linux ld.so'
6320 ;;
6321
6322 netbsd*)
6323 version_type=sunos
6324 need_lib_prefix=no
6325 need_version=no
6326 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6327 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6329 dynamic_linker='NetBSD (a.out) ld.so'
6330 else
6331 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6332 soname_spec='${libname}${release}.so$major'
6333 dynamic_linker='NetBSD ld.elf_so'
6334 fi
6335 shlibpath_var=LD_LIBRARY_PATH
6336 shlibpath_overrides_runpath=yes
6337 hardcode_into_libs=yes
6338 ;;
6339
6340 newsos6)
6341 version_type=linux
6342 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6343 shlibpath_var=LD_LIBRARY_PATH
6344 shlibpath_overrides_runpath=yes
6345 ;;
6346
6347 openbsd*)
6348 version_type=sunos
6349 need_lib_prefix=no
6350 need_version=no
6351 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6352 case "$host_os" in
6353 openbsd2.[89] | openbsd2.[89].*)
6354 shlibpath_overrides_runpath=no
6355 ;;
6356 *)
6357 shlibpath_overrides_runpath=yes
6358 ;;
6359 esac
6360 else
6361 shlibpath_overrides_runpath=yes
6362 fi
6363 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6365 shlibpath_var=LD_LIBRARY_PATH
6366 ;;
6367
6368 os2*)
6369 libname_spec='$name'
6370 need_lib_prefix=no
6371 library_names_spec='$libname.dll $libname.a'
6372 dynamic_linker='OS/2 ld.exe'
6373 shlibpath_var=LIBPATH
6374 ;;
6375
6376 osf3* | osf4* | osf5*)
6377 version_type=osf
6378 need_version=no
6379 soname_spec='${libname}${release}.so$major'
6380 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6381 shlibpath_var=LD_LIBRARY_PATH
6382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6383 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6384 hardcode_into_libs=yes
6385 ;;
6386
6387 sco3.2v5*)
6388 version_type=osf
6389 soname_spec='${libname}${release}.so$major'
6390 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6391 shlibpath_var=LD_LIBRARY_PATH
6392 ;;
6393
6394 solaris*)
6395 version_type=linux
6396 need_lib_prefix=no
6397 need_version=no
6398 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6399 soname_spec='${libname}${release}.so$major'
6400 shlibpath_var=LD_LIBRARY_PATH
6401 shlibpath_overrides_runpath=yes
6402 hardcode_into_libs=yes
6403 # ldd complains unless libraries are executable
6404 postinstall_cmds='chmod +x $lib'
6405 ;;
6406
6407 sunos4*)
6408 version_type=sunos
6409 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6411 shlibpath_var=LD_LIBRARY_PATH
6412 shlibpath_overrides_runpath=yes
6413 if test "$with_gnu_ld" = yes; then
6414 need_lib_prefix=no
6415 fi
6416 need_version=yes
6417 ;;
6418
6419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6420 version_type=linux
6421 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6422 soname_spec='${libname}${release}.so$major'
6423 shlibpath_var=LD_LIBRARY_PATH
6424 case $host_vendor in
6425 sni)
6426 shlibpath_overrides_runpath=no
6427 need_lib_prefix=no
6428 export_dynamic_flag_spec='${wl}-Blargedynsym'
6429 runpath_var=LD_RUN_PATH
6430 ;;
6431 siemens)
6432 need_lib_prefix=no
6433 ;;
6434 motorola)
6435 need_lib_prefix=no
6436 need_version=no
6437 shlibpath_overrides_runpath=no
6438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6439 ;;
6440 esac
6441 ;;
6442
6443 uts4*)
6444 version_type=linux
6445 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6446 soname_spec='${libname}${release}.so$major'
6447 shlibpath_var=LD_LIBRARY_PATH
6448 ;;
6449
6450 dgux*)
6451 version_type=linux
6452 need_lib_prefix=no
6453 need_version=no
6454 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6455 soname_spec='${libname}${release}.so$major'
6456 shlibpath_var=LD_LIBRARY_PATH
6457 ;;
6458
6459 sysv4*MP*)
6460 if test -d /usr/nec ;then
6461 version_type=linux
6462 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6463 soname_spec='$libname.so.$major'
6464 shlibpath_var=LD_LIBRARY_PATH
6465 fi
6466 ;;
6467
6468 *)
6469 dynamic_linker=no
6470 ;;
6471 esac
6472 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6473 echo "${ECHO_T}$dynamic_linker" >&6
6474 test "$dynamic_linker" = no && can_build_shared=no
6475
6476 # Report the final consequences.
6477 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6478 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6479 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6480 echo "${ECHO_T}$can_build_shared" >&6
6481
6482 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6483 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6484 test "$can_build_shared" = "no" && enable_shared=no
6485
6486 # On AIX, shared libraries and static libraries use the same namespace, and
6487 # are all built from PIC.
6488 case "$host_os" in
6489 aix3*)
6490 test "$enable_shared" = yes && enable_static=no
6491 if test -n "$RANLIB"; then
6492 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6493 postinstall_cmds='$RANLIB $lib'
6494 fi
6495 ;;
6496
6497 aix4*)
6498 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6499 test "$enable_shared" = yes && enable_static=no
6500 fi
6501 ;;
6502 esac
6503 echo "$as_me:$LINENO: result: $enable_shared" >&5
6504 echo "${ECHO_T}$enable_shared" >&6
6505
6506 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6507 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6508 # Make sure either enable_shared or enable_static is yes.
6509 test "$enable_shared" = yes || enable_static=yes
6510 echo "$as_me:$LINENO: result: $enable_static" >&5
6511 echo "${ECHO_T}$enable_static" >&6
6512
6513 if test "$hardcode_action" = relink; then
6514 # Fast installation is not supported
6515 enable_fast_install=no
6516 elif test "$shlibpath_overrides_runpath" = yes ||
6517 test "$enable_shared" = no; then
6518 # Fast installation is not necessary
6519 enable_fast_install=needless
6520 fi
6521
6522 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6523 if test "$GCC" = yes; then
6524 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6525 fi
6526
6527 if test "x$enable_dlopen" != xyes; then
6528 enable_dlopen=unknown
6529 enable_dlopen_self=unknown
6530 enable_dlopen_self_static=unknown
6531 else
6532 lt_cv_dlopen=no
6533 lt_cv_dlopen_libs=
6534
6535 case $host_os in
6536 beos*)
6537 lt_cv_dlopen="load_add_on"
6538 lt_cv_dlopen_libs=
6539 lt_cv_dlopen_self=yes
6540 ;;
6541
6542 cygwin* | mingw* | pw32*)
6543 lt_cv_dlopen="LoadLibrary"
6544 lt_cv_dlopen_libs=
6545 ;;
6546
6547 *)
6548 echo "$as_me:$LINENO: checking for shl_load" >&5
6549 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6550 if test "${ac_cv_func_shl_load+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553 cat >conftest.$ac_ext <<_ACEOF
6554 #line $LINENO "configure"
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 /* System header to define __stub macros and hopefully few prototypes,
6561 which can conflict with char shl_load (); below.
6562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6563 <limits.h> exists even on freestanding compilers. */
6564 #ifdef __STDC__
6565 # include <limits.h>
6566 #else
6567 # include <assert.h>
6568 #endif
6569 /* Override any gcc2 internal prototype to avoid an error. */
6570 #ifdef __cplusplus
6571 extern "C"
6572 {
6573 #endif
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576 char shl_load ();
6577 /* The GNU C library defines this for functions which it implements
6578 to always fail with ENOSYS. Some functions are actually named
6579 something starting with __ and the normal name is an alias. */
6580 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6581 choke me
6582 #else
6583 char (*f) () = shl_load;
6584 #endif
6585 #ifdef __cplusplus
6586 }
6587 #endif
6588
6589 int
6590 main ()
6591 {
6592 return f != shl_load;
6593 ;
6594 return 0;
6595 }
6596 _ACEOF
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599 (eval $ac_link) 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_cv_func_shl_load=yes
6610 else
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_cv_func_shl_load=no
6615 fi
6616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617 fi
6618 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6619 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6620 if test $ac_cv_func_shl_load = yes; then
6621 lt_cv_dlopen="shl_load"
6622 else
6623 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6624 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6625 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 ac_check_lib_save_LIBS=$LIBS
6629 LIBS="-ldld $LIBS"
6630 cat >conftest.$ac_ext <<_ACEOF
6631 #line $LINENO "configure"
6632 /* confdefs.h. */
6633 _ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6637
6638 /* Override any gcc2 internal prototype to avoid an error. */
6639 #ifdef __cplusplus
6640 extern "C"
6641 #endif
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6644 char shl_load ();
6645 int
6646 main ()
6647 {
6648 shl_load ();
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 rm -f conftest.$ac_objext conftest$ac_exeext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6655 (eval $ac_link) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -s conftest$ac_exeext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_cv_lib_dld_shl_load=yes
6666 else
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6669
6670 ac_cv_lib_dld_shl_load=no
6671 fi
6672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6673 LIBS=$ac_check_lib_save_LIBS
6674 fi
6675 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6676 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6677 if test $ac_cv_lib_dld_shl_load = yes; then
6678 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6679 else
6680 echo "$as_me:$LINENO: checking for dlopen" >&5
6681 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6682 if test "${ac_cv_func_dlopen+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 cat >conftest.$ac_ext <<_ACEOF
6686 #line $LINENO "configure"
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 /* System header to define __stub macros and hopefully few prototypes,
6693 which can conflict with char dlopen (); below.
6694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6695 <limits.h> exists even on freestanding compilers. */
6696 #ifdef __STDC__
6697 # include <limits.h>
6698 #else
6699 # include <assert.h>
6700 #endif
6701 /* Override any gcc2 internal prototype to avoid an error. */
6702 #ifdef __cplusplus
6703 extern "C"
6704 {
6705 #endif
6706 /* We use char because int might match the return type of a gcc2
6707 builtin and then its argument prototype would still apply. */
6708 char dlopen ();
6709 /* The GNU C library defines this for functions which it implements
6710 to always fail with ENOSYS. Some functions are actually named
6711 something starting with __ and the normal name is an alias. */
6712 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6713 choke me
6714 #else
6715 char (*f) () = dlopen;
6716 #endif
6717 #ifdef __cplusplus
6718 }
6719 #endif
6720
6721 int
6722 main ()
6723 {
6724 return f != dlopen;
6725 ;
6726 return 0;
6727 }
6728 _ACEOF
6729 rm -f conftest.$ac_objext conftest$ac_exeext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6731 (eval $ac_link) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } &&
6735 { ac_try='test -s conftest$ac_exeext'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; }; then
6741 ac_cv_func_dlopen=yes
6742 else
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6745
6746 ac_cv_func_dlopen=no
6747 fi
6748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6749 fi
6750 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6751 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6752 if test $ac_cv_func_dlopen = yes; then
6753 lt_cv_dlopen="dlopen"
6754 else
6755 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6756 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760 ac_check_lib_save_LIBS=$LIBS
6761 LIBS="-ldl $LIBS"
6762 cat >conftest.$ac_ext <<_ACEOF
6763 #line $LINENO "configure"
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769
6770 /* Override any gcc2 internal prototype to avoid an error. */
6771 #ifdef __cplusplus
6772 extern "C"
6773 #endif
6774 /* We use char because int might match the return type of a gcc2
6775 builtin and then its argument prototype would still apply. */
6776 char dlopen ();
6777 int
6778 main ()
6779 {
6780 dlopen ();
6781 ;
6782 return 0;
6783 }
6784 _ACEOF
6785 rm -f conftest.$ac_objext conftest$ac_exeext
6786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6787 (eval $ac_link) 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -s conftest$ac_exeext'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6797 ac_cv_lib_dl_dlopen=yes
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6801
6802 ac_cv_lib_dl_dlopen=no
6803 fi
6804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6805 LIBS=$ac_check_lib_save_LIBS
6806 fi
6807 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6808 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6809 if test $ac_cv_lib_dl_dlopen = yes; then
6810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6811 else
6812 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6813 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6814 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817 ac_check_lib_save_LIBS=$LIBS
6818 LIBS="-lsvld $LIBS"
6819 cat >conftest.$ac_ext <<_ACEOF
6820 #line $LINENO "configure"
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826
6827 /* Override any gcc2 internal prototype to avoid an error. */
6828 #ifdef __cplusplus
6829 extern "C"
6830 #endif
6831 /* We use char because int might match the return type of a gcc2
6832 builtin and then its argument prototype would still apply. */
6833 char dlopen ();
6834 int
6835 main ()
6836 {
6837 dlopen ();
6838 ;
6839 return 0;
6840 }
6841 _ACEOF
6842 rm -f conftest.$ac_objext conftest$ac_exeext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6844 (eval $ac_link) 2>&5
6845 ac_status=$?
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } &&
6848 { ac_try='test -s conftest$ac_exeext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 ac_cv_lib_svld_dlopen=yes
6855 else
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6858
6859 ac_cv_lib_svld_dlopen=no
6860 fi
6861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6862 LIBS=$ac_check_lib_save_LIBS
6863 fi
6864 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6865 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6866 if test $ac_cv_lib_svld_dlopen = yes; then
6867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6868 else
6869 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6870 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6871 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874 ac_check_lib_save_LIBS=$LIBS
6875 LIBS="-ldld $LIBS"
6876 cat >conftest.$ac_ext <<_ACEOF
6877 #line $LINENO "configure"
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883
6884 /* Override any gcc2 internal prototype to avoid an error. */
6885 #ifdef __cplusplus
6886 extern "C"
6887 #endif
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6890 char dld_link ();
6891 int
6892 main ()
6893 {
6894 dld_link ();
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
6905 { ac_try='test -s conftest$ac_exeext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 ac_cv_lib_dld_dld_link=yes
6912 else
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916 ac_cv_lib_dld_dld_link=no
6917 fi
6918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6919 LIBS=$ac_check_lib_save_LIBS
6920 fi
6921 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6922 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6923 if test $ac_cv_lib_dld_dld_link = yes; then
6924 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6925 fi
6926
6927
6928 fi
6929
6930
6931 fi
6932
6933
6934 fi
6935
6936
6937 fi
6938
6939
6940 fi
6941
6942 ;;
6943 esac
6944
6945 if test "x$lt_cv_dlopen" != xno; then
6946 enable_dlopen=yes
6947 else
6948 enable_dlopen=no
6949 fi
6950
6951 case $lt_cv_dlopen in
6952 dlopen)
6953 save_CPPFLAGS="$CPPFLAGS"
6954 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6955
6956 save_LDFLAGS="$LDFLAGS"
6957 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6958
6959 save_LIBS="$LIBS"
6960 LIBS="$lt_cv_dlopen_libs $LIBS"
6961
6962 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6963 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6964 if test "${lt_cv_dlopen_self+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 if test "$cross_compiling" = yes; then :
6968 lt_cv_dlopen_self=cross
6969 else
6970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6971 lt_status=$lt_dlunknown
6972 cat > conftest.$ac_ext <<EOF
6973 #line 6973 "configure"
6974 #include "confdefs.h"
6975
6976 #if HAVE_DLFCN_H
6977 #include <dlfcn.h>
6978 #endif
6979
6980 #include <stdio.h>
6981
6982 #ifdef RTLD_GLOBAL
6983 # define LT_DLGLOBAL RTLD_GLOBAL
6984 #else
6985 # ifdef DL_GLOBAL
6986 # define LT_DLGLOBAL DL_GLOBAL
6987 # else
6988 # define LT_DLGLOBAL 0
6989 # endif
6990 #endif
6991
6992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6993 find out it does not work in some platform. */
6994 #ifndef LT_DLLAZY_OR_NOW
6995 # ifdef RTLD_LAZY
6996 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6997 # else
6998 # ifdef DL_LAZY
6999 # define LT_DLLAZY_OR_NOW DL_LAZY
7000 # else
7001 # ifdef RTLD_NOW
7002 # define LT_DLLAZY_OR_NOW RTLD_NOW
7003 # else
7004 # ifdef DL_NOW
7005 # define LT_DLLAZY_OR_NOW DL_NOW
7006 # else
7007 # define LT_DLLAZY_OR_NOW 0
7008 # endif
7009 # endif
7010 # endif
7011 # endif
7012 #endif
7013
7014 #ifdef __cplusplus
7015 extern "C" void exit (int);
7016 #endif
7017
7018 void fnord() { int i=42;}
7019 int main ()
7020 {
7021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7022 int status = $lt_dlunknown;
7023
7024 if (self)
7025 {
7026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7027 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7028 /* dlclose (self); */
7029 }
7030
7031 exit (status);
7032 }
7033 EOF
7034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035 (eval $ac_link) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7039 (./conftest; exit; ) 2>/dev/null
7040 lt_status=$?
7041 case x$lt_status in
7042 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7043 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7044 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7045 esac
7046 else :
7047 # compilation failed
7048 lt_cv_dlopen_self=no
7049 fi
7050 fi
7051 rm -fr conftest*
7052
7053
7054 fi
7055 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7056 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7057
7058 if test "x$lt_cv_dlopen_self" = xyes; then
7059 LDFLAGS="$LDFLAGS $link_static_flag"
7060 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7061 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7062 if test "${lt_cv_dlopen_self_static+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 if test "$cross_compiling" = yes; then :
7066 lt_cv_dlopen_self_static=cross
7067 else
7068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7069 lt_status=$lt_dlunknown
7070 cat > conftest.$ac_ext <<EOF
7071 #line 7071 "configure"
7072 #include "confdefs.h"
7073
7074 #if HAVE_DLFCN_H
7075 #include <dlfcn.h>
7076 #endif
7077
7078 #include <stdio.h>
7079
7080 #ifdef RTLD_GLOBAL
7081 # define LT_DLGLOBAL RTLD_GLOBAL
7082 #else
7083 # ifdef DL_GLOBAL
7084 # define LT_DLGLOBAL DL_GLOBAL
7085 # else
7086 # define LT_DLGLOBAL 0
7087 # endif
7088 #endif
7089
7090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7091 find out it does not work in some platform. */
7092 #ifndef LT_DLLAZY_OR_NOW
7093 # ifdef RTLD_LAZY
7094 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7095 # else
7096 # ifdef DL_LAZY
7097 # define LT_DLLAZY_OR_NOW DL_LAZY
7098 # else
7099 # ifdef RTLD_NOW
7100 # define LT_DLLAZY_OR_NOW RTLD_NOW
7101 # else
7102 # ifdef DL_NOW
7103 # define LT_DLLAZY_OR_NOW DL_NOW
7104 # else
7105 # define LT_DLLAZY_OR_NOW 0
7106 # endif
7107 # endif
7108 # endif
7109 # endif
7110 #endif
7111
7112 #ifdef __cplusplus
7113 extern "C" void exit (int);
7114 #endif
7115
7116 void fnord() { int i=42;}
7117 int main ()
7118 {
7119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7120 int status = $lt_dlunknown;
7121
7122 if (self)
7123 {
7124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7125 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7126 /* dlclose (self); */
7127 }
7128
7129 exit (status);
7130 }
7131 EOF
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133 (eval $ac_link) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7137 (./conftest; exit; ) 2>/dev/null
7138 lt_status=$?
7139 case x$lt_status in
7140 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7141 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7142 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7143 esac
7144 else :
7145 # compilation failed
7146 lt_cv_dlopen_self_static=no
7147 fi
7148 fi
7149 rm -fr conftest*
7150
7151
7152 fi
7153 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7154 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7155 fi
7156
7157 CPPFLAGS="$save_CPPFLAGS"
7158 LDFLAGS="$save_LDFLAGS"
7159 LIBS="$save_LIBS"
7160 ;;
7161 esac
7162
7163 case $lt_cv_dlopen_self in
7164 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7165 *) enable_dlopen_self=unknown ;;
7166 esac
7167
7168 case $lt_cv_dlopen_self_static in
7169 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7170 *) enable_dlopen_self_static=unknown ;;
7171 esac
7172 fi
7173
7174
7175 if test "$enable_shared" = yes && test "$GCC" = yes; then
7176 case $archive_cmds in
7177 *'~'*)
7178 # FIXME: we may have to deal with multi-command sequences.
7179 ;;
7180 '$CC '*)
7181 # Test whether the compiler implicitly links with -lc since on some
7182 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7183 # to ld, don't add -lc before -lgcc.
7184 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7185 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7186 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189 $rm conftest*
7190 echo 'static int dummy;' > conftest.$ac_ext
7191
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; then
7197 soname=conftest
7198 lib=conftest
7199 libobjs=conftest.$ac_objext
7200 deplibs=
7201 wl=$lt_cv_prog_cc_wl
7202 compiler_flags=-v
7203 linker_flags=-v
7204 verstring=
7205 output_objdir=.
7206 libname=conftest
7207 save_allow_undefined_flag=$allow_undefined_flag
7208 allow_undefined_flag=
7209 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7210 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7211 ac_status=$?
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }
7214 then
7215 lt_cv_archive_cmds_need_lc=no
7216 else
7217 lt_cv_archive_cmds_need_lc=yes
7218 fi
7219 allow_undefined_flag=$save_allow_undefined_flag
7220 else
7221 cat conftest.err 1>&5
7222 fi
7223 fi
7224
7225 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7226 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7227 ;;
7228 esac
7229 fi
7230 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7231
7232 # The second clause should only fire when bootstrapping the
7233 # libtool distribution, otherwise you forgot to ship ltmain.sh
7234 # with your package, and you will get complaints that there are
7235 # no rules to generate ltmain.sh.
7236 if test -f "$ltmain"; then
7237 :
7238 else
7239 # If there is no Makefile yet, we rely on a make rule to execute
7240 # `config.status --recheck' to rerun these tests and create the
7241 # libtool script then.
7242 test -f Makefile && make "$ltmain"
7243 fi
7244
7245 if test -f "$ltmain"; then
7246 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7247 $rm -f "${ofile}T"
7248
7249 echo creating $ofile
7250
7251 # Now quote all the things that may contain metacharacters while being
7252 # careful not to overquote the AC_SUBSTed values. We take copies of the
7253 # variables and quote the copies for generation of the libtool script.
7254 for var in echo old_CC old_CFLAGS SED \
7255 AR AR_FLAGS CC LD LN_S NM SHELL \
7256 reload_flag reload_cmds wl \
7257 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7258 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7259 library_names_spec soname_spec \
7260 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7261 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7262 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7263 old_striplib striplib file_magic_cmd export_symbols_cmds \
7264 deplibs_check_method allow_undefined_flag no_undefined_flag \
7265 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7266 global_symbol_to_c_name_address \
7267 hardcode_libdir_flag_spec hardcode_libdir_separator \
7268 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7269 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7270
7271 case $var in
7272 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7273 old_postinstall_cmds | old_postuninstall_cmds | \
7274 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7275 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7276 postinstall_cmds | postuninstall_cmds | \
7277 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7278 # Double-quote double-evaled strings.
7279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7280 ;;
7281 *)
7282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7283 ;;
7284 esac
7285 done
7286
7287 cat <<__EOF__ > "${ofile}T"
7288 #! $SHELL
7289
7290 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7291 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7292 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7293 #
7294 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7295 # Originally by Gordon Matzigkeit <[email protected]>, 1996
7296 #
7297 # This program is free software; you can redistribute it and/or modify
7298 # it under the terms of the GNU General Public License as published by
7299 # the Free Software Foundation; either version 2 of the License, or
7300 # (at your option) any later version.
7301 #
7302 # This program is distributed in the hope that it will be useful, but
7303 # WITHOUT ANY WARRANTY; without even the implied warranty of
7304 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7305 # General Public License for more details.
7306 #
7307 # You should have received a copy of the GNU General Public License
7308 # along with this program; if not, write to the Free Software
7309 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7310 #
7311 # As a special exception to the GNU General Public License, if you
7312 # distribute this file as part of a program that contains a
7313 # configuration script generated by Autoconf, you may include it under
7314 # the same distribution terms that you use for the rest of that program.
7315
7316 # A sed that does not truncate output.
7317 SED=$lt_SED
7318
7319 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7320 Xsed="${SED} -e s/^X//"
7321
7322 # The HP-UX ksh and POSIX shell print the target directory to stdout
7323 # if CDPATH is set.
7324 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7325
7326 # ### BEGIN LIBTOOL CONFIG
7327
7328 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7329
7330 # Shell to use when invoking shell scripts.
7331 SHELL=$lt_SHELL
7332
7333 # Whether or not to build shared libraries.
7334 build_libtool_libs=$enable_shared
7335
7336 # Whether or not to build static libraries.
7337 build_old_libs=$enable_static
7338
7339 # Whether or not to add -lc for building shared libraries.
7340 build_libtool_need_lc=$need_lc
7341
7342 # Whether or not to optimize for fast installation.
7343 fast_install=$enable_fast_install
7344
7345 # The host system.
7346 host_alias=$host_alias
7347 host=$host
7348
7349 # An echo program that does not interpret backslashes.
7350 echo=$lt_echo
7351
7352 # The archiver.
7353 AR=$lt_AR
7354 AR_FLAGS=$lt_AR_FLAGS
7355
7356 # The default C compiler.
7357 CC=$lt_CC
7358
7359 # Is the compiler the GNU C compiler?
7360 with_gcc=$GCC
7361
7362 # The linker used to build libraries.
7363 LD=$lt_LD
7364
7365 # Whether we need hard or soft links.
7366 LN_S=$lt_LN_S
7367
7368 # A BSD-compatible nm program.
7369 NM=$lt_NM
7370
7371 # A symbol stripping program
7372 STRIP=$STRIP
7373
7374 # Used to examine libraries when file_magic_cmd begins "file"
7375 MAGIC_CMD=$MAGIC_CMD
7376
7377 # Used on cygwin: DLL creation program.
7378 DLLTOOL="$DLLTOOL"
7379
7380 # Used on cygwin: object dumper.
7381 OBJDUMP="$OBJDUMP"
7382
7383 # Used on cygwin: assembler.
7384 AS="$AS"
7385
7386 # The name of the directory that contains temporary libtool files.
7387 objdir=$objdir
7388
7389 # How to create reloadable object files.
7390 reload_flag=$lt_reload_flag
7391 reload_cmds=$lt_reload_cmds
7392
7393 # How to pass a linker flag through the compiler.
7394 wl=$lt_wl
7395
7396 # Object file suffix (normally "o").
7397 objext="$ac_objext"
7398
7399 # Old archive suffix (normally "a").
7400 libext="$libext"
7401
7402 # Executable file suffix (normally "").
7403 exeext="$exeext"
7404
7405 # Additional compiler flags for building library objects.
7406 pic_flag=$lt_pic_flag
7407 pic_mode=$pic_mode
7408
7409 # Does compiler simultaneously support -c and -o options?
7410 compiler_c_o=$lt_compiler_c_o
7411
7412 # Can we write directly to a .lo ?
7413 compiler_o_lo=$lt_compiler_o_lo
7414
7415 # Must we lock files when doing compilation ?
7416 need_locks=$lt_need_locks
7417
7418 # Do we need the lib prefix for modules?
7419 need_lib_prefix=$need_lib_prefix
7420
7421 # Do we need a version for libraries?
7422 need_version=$need_version
7423
7424 # Whether dlopen is supported.
7425 dlopen_support=$enable_dlopen
7426
7427 # Whether dlopen of programs is supported.
7428 dlopen_self=$enable_dlopen_self
7429
7430 # Whether dlopen of statically linked programs is supported.
7431 dlopen_self_static=$enable_dlopen_self_static
7432
7433 # Compiler flag to prevent dynamic linking.
7434 link_static_flag=$lt_link_static_flag
7435
7436 # Compiler flag to turn off builtin functions.
7437 no_builtin_flag=$lt_no_builtin_flag
7438
7439 # Compiler flag to allow reflexive dlopens.
7440 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7441
7442 # Compiler flag to generate shared objects directly from archives.
7443 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7444
7445 # Compiler flag to generate thread-safe objects.
7446 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7447
7448 # Library versioning type.
7449 version_type=$version_type
7450
7451 # Format of library name prefix.
7452 libname_spec=$lt_libname_spec
7453
7454 # List of archive names. First name is the real one, the rest are links.
7455 # The last name is the one that the linker finds with -lNAME.
7456 library_names_spec=$lt_library_names_spec
7457
7458 # The coded name of the library, if different from the real name.
7459 soname_spec=$lt_soname_spec
7460
7461 # Commands used to build and install an old-style archive.
7462 RANLIB=$lt_RANLIB
7463 old_archive_cmds=$lt_old_archive_cmds
7464 old_postinstall_cmds=$lt_old_postinstall_cmds
7465 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7466
7467 # Create an old-style archive from a shared archive.
7468 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7469
7470 # Create a temporary old-style archive to link instead of a shared archive.
7471 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7472
7473 # Commands used to build and install a shared archive.
7474 archive_cmds=$lt_archive_cmds
7475 archive_expsym_cmds=$lt_archive_expsym_cmds
7476 postinstall_cmds=$lt_postinstall_cmds
7477 postuninstall_cmds=$lt_postuninstall_cmds
7478
7479 # Commands to strip libraries.
7480 old_striplib=$lt_old_striplib
7481 striplib=$lt_striplib
7482
7483 # Method to check whether dependent libraries are shared objects.
7484 deplibs_check_method=$lt_deplibs_check_method
7485
7486 # Command to use when deplibs_check_method == file_magic.
7487 file_magic_cmd=$lt_file_magic_cmd
7488
7489 # Flag that allows shared libraries with undefined symbols to be built.
7490 allow_undefined_flag=$lt_allow_undefined_flag
7491
7492 # Flag that forces no undefined symbols.
7493 no_undefined_flag=$lt_no_undefined_flag
7494
7495 # Commands used to finish a libtool library installation in a directory.
7496 finish_cmds=$lt_finish_cmds
7497
7498 # Same as above, but a single script fragment to be evaled but not shown.
7499 finish_eval=$lt_finish_eval
7500
7501 # Take the output of nm and produce a listing of raw symbols and C names.
7502 global_symbol_pipe=$lt_global_symbol_pipe
7503
7504 # Transform the output of nm in a proper C declaration
7505 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7506
7507 # Transform the output of nm in a C name address pair
7508 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7509
7510 # This is the shared library runtime path variable.
7511 runpath_var=$runpath_var
7512
7513 # This is the shared library path variable.
7514 shlibpath_var=$shlibpath_var
7515
7516 # Is shlibpath searched before the hard-coded library search path?
7517 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7518
7519 # How to hardcode a shared library path into an executable.
7520 hardcode_action=$hardcode_action
7521
7522 # Whether we should hardcode library paths into libraries.
7523 hardcode_into_libs=$hardcode_into_libs
7524
7525 # Flag to hardcode \$libdir into a binary during linking.
7526 # This must work even if \$libdir does not exist.
7527 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7528
7529 # Whether we need a single -rpath flag with a separated argument.
7530 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7531
7532 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7533 # resulting binary.
7534 hardcode_direct=$hardcode_direct
7535
7536 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7537 # resulting binary.
7538 hardcode_minus_L=$hardcode_minus_L
7539
7540 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7541 # the resulting binary.
7542 hardcode_shlibpath_var=$hardcode_shlibpath_var
7543
7544 # Variables whose values should be saved in libtool wrapper scripts and
7545 # restored at relink time.
7546 variables_saved_for_relink="$variables_saved_for_relink"
7547
7548 # Whether libtool must link a program against all its dependency libraries.
7549 link_all_deplibs=$link_all_deplibs
7550
7551 # Compile-time system search path for libraries
7552 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7553
7554 # Run-time system search path for libraries
7555 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7556
7557 # Fix the shell variable \$srcfile for the compiler.
7558 fix_srcfile_path="$fix_srcfile_path"
7559
7560 # Set to yes if exported symbols are required.
7561 always_export_symbols=$always_export_symbols
7562
7563 # The commands to list exported symbols.
7564 export_symbols_cmds=$lt_export_symbols_cmds
7565
7566 # The commands to extract the exported symbol list from a shared archive.
7567 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7568
7569 # Symbols that should not be listed in the preloaded symbols.
7570 exclude_expsyms=$lt_exclude_expsyms
7571
7572 # Symbols that must always be exported.
7573 include_expsyms=$lt_include_expsyms
7574
7575 # ### END LIBTOOL CONFIG
7576
7577 __EOF__
7578
7579 case $host_os in
7580 aix3*)
7581 cat <<\EOF >> "${ofile}T"
7582
7583 # AIX sometimes has problems with the GCC collect2 program. For some
7584 # reason, if we set the COLLECT_NAMES environment variable, the problems
7585 # vanish in a puff of smoke.
7586 if test "X${COLLECT_NAMES+set}" != Xset; then
7587 COLLECT_NAMES=
7588 export COLLECT_NAMES
7589 fi
7590 EOF
7591 ;;
7592 esac
7593
7594 case $host_os in
7595 cygwin* | mingw* | pw32* | os2*)
7596 cat <<'EOF' >> "${ofile}T"
7597 # This is a source program that is used to create dlls on Windows
7598 # Don't remove nor modify the starting and closing comments
7599 # /* ltdll.c starts here */
7600 # #define WIN32_LEAN_AND_MEAN
7601 # #include <windows.h>
7602 # #undef WIN32_LEAN_AND_MEAN
7603 # #include <stdio.h>
7604 #
7605 # #ifndef __CYGWIN__
7606 # # ifdef __CYGWIN32__
7607 # # define __CYGWIN__ __CYGWIN32__
7608 # # endif
7609 # #endif
7610 #
7611 # #ifdef __cplusplus
7612 # extern "C" {
7613 # #endif
7614 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7615 # #ifdef __cplusplus
7616 # }
7617 # #endif
7618 #
7619 # #ifdef __CYGWIN__
7620 # #include <cygwin/cygwin_dll.h>
7621 # DECLARE_CYGWIN_DLL( DllMain );
7622 # #endif
7623 # HINSTANCE __hDllInstance_base;
7624 #
7625 # BOOL APIENTRY
7626 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7627 # {
7628 # __hDllInstance_base = hInst;
7629 # return TRUE;
7630 # }
7631 # /* ltdll.c ends here */
7632 # This is a source program that is used to create import libraries
7633 # on Windows for dlls which lack them. Don't remove nor modify the
7634 # starting and closing comments
7635 # /* impgen.c starts here */
7636 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7637 #
7638 # This file is part of GNU libtool.
7639 #
7640 # This program is free software; you can redistribute it and/or modify
7641 # it under the terms of the GNU General Public License as published by
7642 # the Free Software Foundation; either version 2 of the License, or
7643 # (at your option) any later version.
7644 #
7645 # This program is distributed in the hope that it will be useful,
7646 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7647 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7648 # GNU General Public License for more details.
7649 #
7650 # You should have received a copy of the GNU General Public License
7651 # along with this program; if not, write to the Free Software
7652 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7653 # */
7654 #
7655 # #include <stdio.h> /* for printf() */
7656 # #include <unistd.h> /* for open(), lseek(), read() */
7657 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7658 # #include <string.h> /* for strdup() */
7659 #
7660 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7661 # #ifndef O_BINARY
7662 # #define O_BINARY 0
7663 # #endif
7664 #
7665 # static unsigned int
7666 # pe_get16 (fd, offset)
7667 # int fd;
7668 # int offset;
7669 # {
7670 # unsigned char b[2];
7671 # lseek (fd, offset, SEEK_SET);
7672 # read (fd, b, 2);
7673 # return b[0] + (b[1]<<8);
7674 # }
7675 #
7676 # static unsigned int
7677 # pe_get32 (fd, offset)
7678 # int fd;
7679 # int offset;
7680 # {
7681 # unsigned char b[4];
7682 # lseek (fd, offset, SEEK_SET);
7683 # read (fd, b, 4);
7684 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7685 # }
7686 #
7687 # static unsigned int
7688 # pe_as32 (ptr)
7689 # void *ptr;
7690 # {
7691 # unsigned char *b = ptr;
7692 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7693 # }
7694 #
7695 # int
7696 # main (argc, argv)
7697 # int argc;
7698 # char *argv[];
7699 # {
7700 # int dll;
7701 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7702 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7703 # unsigned long name_rvas, nexp;
7704 # unsigned char *expdata, *erva;
7705 # char *filename, *dll_name;
7706 #
7707 # filename = argv[1];
7708 #
7709 # dll = open(filename, O_RDONLY|O_BINARY);
7710 # if (dll < 1)
7711 # return 1;
7712 #
7713 # dll_name = filename;
7714 #
7715 # for (i=0; filename[i]; i++)
7716 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7717 # dll_name = filename + i +1;
7718 #
7719 # pe_header_offset = pe_get32 (dll, 0x3c);
7720 # opthdr_ofs = pe_header_offset + 4 + 20;
7721 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7722 #
7723 # if (num_entries < 1) /* no exports */
7724 # return 1;
7725 #
7726 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7727 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7728 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7729 # secptr = (pe_header_offset + 4 + 20 +
7730 # pe_get16 (dll, pe_header_offset + 4 + 16));
7731 #
7732 # expptr = 0;
7733 # for (i = 0; i < nsections; i++)
7734 # {
7735 # char sname[8];
7736 # unsigned long secptr1 = secptr + 40 * i;
7737 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7738 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7739 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7740 # lseek(dll, secptr1, SEEK_SET);
7741 # read(dll, sname, 8);
7742 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7743 # {
7744 # expptr = fptr + (export_rva - vaddr);
7745 # if (export_rva + export_size > vaddr + vsize)
7746 # export_size = vsize - (export_rva - vaddr);
7747 # break;
7748 # }
7749 # }
7750 #
7751 # expdata = (unsigned char*)malloc(export_size);
7752 # lseek (dll, expptr, SEEK_SET);
7753 # read (dll, expdata, export_size);
7754 # erva = expdata - export_rva;
7755 #
7756 # nexp = pe_as32 (expdata+24);
7757 # name_rvas = pe_as32 (expdata+32);
7758 #
7759 # printf ("EXPORTS\n");
7760 # for (i = 0; i<nexp; i++)
7761 # {
7762 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7763 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7764 # }
7765 #
7766 # return 0;
7767 # }
7768 # /* impgen.c ends here */
7769
7770 EOF
7771 ;;
7772 esac
7773
7774 # We use sed instead of cat because bash on DJGPP gets confused if
7775 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7776 # text mode, it properly converts lines to CR/LF. This bash problem
7777 # is reportedly fixed, but why not run on old versions too?
7778 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7779
7780 mv -f "${ofile}T" "$ofile" || \
7781 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7782 chmod +x "$ofile"
7783 fi
7784
7785
7786
7787
7788
7789 # This can be used to rebuild libtool when needed
7790 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7791
7792 # Always use our own libtool.
7793 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7794
7795 # Prevent multiple expansion
7796
7797
7798
7799
7800 ac_config_headers="$ac_config_headers config.h"
7801
7802
7803
7804 cat >>confdefs.h <<_ACEOF
7805 #define LIBGRG_NAME "$LIBGRG_NAME"
7806 _ACEOF
7807
7808
7809 cat >>confdefs.h <<_ACEOF
7810 #define LIBGRG_VERSION "$LIBGRG_VERSION"
7811 _ACEOF
7812
7813
7814 cat >>confdefs.h <<_ACEOF
7815 #define LIBGRG_FILE_VERSION $LIBGRG_FILE_VERSION
7816 _ACEOF
7817
7818
7819
7820
7821
7822
7823 ac_ext=c
7824 ac_cpp='$CPP $CPPFLAGS'
7825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828 if test -n "$ac_tool_prefix"; then
7829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7831 echo "$as_me:$LINENO: checking for $ac_word" >&5
7832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7833 if test "${ac_cv_prog_CC+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 if test -n "$CC"; then
7837 ac_cv_prog_CC="$CC" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850 done
7851 done
7852
7853 fi
7854 fi
7855 CC=$ac_cv_prog_CC
7856 if test -n "$CC"; then
7857 echo "$as_me:$LINENO: result: $CC" >&5
7858 echo "${ECHO_T}$CC" >&6
7859 else
7860 echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6
7862 fi
7863
7864 fi
7865 if test -z "$ac_cv_prog_CC"; then
7866 ac_ct_CC=$CC
7867 # Extract the first word of "gcc", so it can be a program name with args.
7868 set dummy gcc; ac_word=$2
7869 echo "$as_me:$LINENO: checking for $ac_word" >&5
7870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874 if test -n "$ac_ct_CC"; then
7875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884 ac_cv_prog_ac_ct_CC="gcc"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888 done
7889 done
7890
7891 fi
7892 fi
7893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7894 if test -n "$ac_ct_CC"; then
7895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7896 echo "${ECHO_T}$ac_ct_CC" >&6
7897 else
7898 echo "$as_me:$LINENO: result: no" >&5
7899 echo "${ECHO_T}no" >&6
7900 fi
7901
7902 CC=$ac_ct_CC
7903 else
7904 CC="$ac_cv_prog_CC"
7905 fi
7906
7907 if test -z "$CC"; then
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7910 set dummy ${ac_tool_prefix}cc; ac_word=$2
7911 echo "$as_me:$LINENO: checking for $ac_word" >&5
7912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7913 if test "${ac_cv_prog_CC+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916 if test -n "$CC"; then
7917 ac_cv_prog_CC="$CC" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7921 do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_CC="${ac_tool_prefix}cc"
7927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7929 fi
7930 done
7931 done
7932
7933 fi
7934 fi
7935 CC=$ac_cv_prog_CC
7936 if test -n "$CC"; then
7937 echo "$as_me:$LINENO: result: $CC" >&5
7938 echo "${ECHO_T}$CC" >&6
7939 else
7940 echo "$as_me:$LINENO: result: no" >&5
7941 echo "${ECHO_T}no" >&6
7942 fi
7943
7944 fi
7945 if test -z "$ac_cv_prog_CC"; then
7946 ac_ct_CC=$CC
7947 # Extract the first word of "cc", so it can be a program name with args.
7948 set dummy cc; ac_word=$2
7949 echo "$as_me:$LINENO: checking for $ac_word" >&5
7950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954 if test -n "$ac_ct_CC"; then
7955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964 ac_cv_prog_ac_ct_CC="cc"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968 done
7969 done
7970
7971 fi
7972 fi
7973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7974 if test -n "$ac_ct_CC"; then
7975 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7976 echo "${ECHO_T}$ac_ct_CC" >&6
7977 else
7978 echo "$as_me:$LINENO: result: no" >&5
7979 echo "${ECHO_T}no" >&6
7980 fi
7981
7982 CC=$ac_ct_CC
7983 else
7984 CC="$ac_cv_prog_CC"
7985 fi
7986
7987 fi
7988 if test -z "$CC"; then
7989 # Extract the first word of "cc", so it can be a program name with args.
7990 set dummy cc; ac_word=$2
7991 echo "$as_me:$LINENO: checking for $ac_word" >&5
7992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7993 if test "${ac_cv_prog_CC+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996 if test -n "$CC"; then
7997 ac_cv_prog_CC="$CC" # Let the user override the test.
7998 else
7999 ac_prog_rejected=no
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8002 do
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8008 ac_prog_rejected=yes
8009 continue
8010 fi
8011 ac_cv_prog_CC="cc"
8012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015 done
8016 done
8017
8018 if test $ac_prog_rejected = yes; then
8019 # We found a bogon in the path, so make sure we never use it.
8020 set dummy $ac_cv_prog_CC
8021 shift
8022 if test $# != 0; then
8023 # We chose a different compiler from the bogus one.
8024 # However, it has the same basename, so the bogon will be chosen
8025 # first if we set CC to just the basename; use the full file name.
8026 shift
8027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8028 fi
8029 fi
8030 fi
8031 fi
8032 CC=$ac_cv_prog_CC
8033 if test -n "$CC"; then
8034 echo "$as_me:$LINENO: result: $CC" >&5
8035 echo "${ECHO_T}$CC" >&6
8036 else
8037 echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6
8039 fi
8040
8041 fi
8042 if test -z "$CC"; then
8043 if test -n "$ac_tool_prefix"; then
8044 for ac_prog in cl
8045 do
8046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8048 echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8050 if test "${ac_cv_prog_CC+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053 if test -n "$CC"; then
8054 ac_cv_prog_CC="$CC" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8066 fi
8067 done
8068 done
8069
8070 fi
8071 fi
8072 CC=$ac_cv_prog_CC
8073 if test -n "$CC"; then
8074 echo "$as_me:$LINENO: result: $CC" >&5
8075 echo "${ECHO_T}$CC" >&6
8076 else
8077 echo "$as_me:$LINENO: result: no" >&5
8078 echo "${ECHO_T}no" >&6
8079 fi
8080
8081 test -n "$CC" && break
8082 done
8083 fi
8084 if test -z "$CC"; then
8085 ac_ct_CC=$CC
8086 for ac_prog in cl
8087 do
8088 # Extract the first word of "$ac_prog", so it can be a program name with args.
8089 set dummy $ac_prog; ac_word=$2
8090 echo "$as_me:$LINENO: checking for $ac_word" >&5
8091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 if test -n "$ac_ct_CC"; then
8096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8097 else
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105 ac_cv_prog_ac_ct_CC="$ac_prog"
8106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8108 fi
8109 done
8110 done
8111
8112 fi
8113 fi
8114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8115 if test -n "$ac_ct_CC"; then
8116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8117 echo "${ECHO_T}$ac_ct_CC" >&6
8118 else
8119 echo "$as_me:$LINENO: result: no" >&5
8120 echo "${ECHO_T}no" >&6
8121 fi
8122
8123 test -n "$ac_ct_CC" && break
8124 done
8125
8126 CC=$ac_ct_CC
8127 fi
8128
8129 fi
8130
8131
8132 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
8133 See \`config.log' for more details." >&5
8134 echo "$as_me: error: no acceptable C compiler found in \$PATH
8135 See \`config.log' for more details." >&2;}
8136 { (exit 1); exit 1; }; }
8137
8138 # Provide some information about the compiler.
8139 echo "$as_me:$LINENO:" \
8140 "checking for C compiler version" >&5
8141 ac_compiler=`set X $ac_compile; echo $2`
8142 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8143 (eval $ac_compiler --version </dev/null >&5) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }
8147 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8148 (eval $ac_compiler -v </dev/null >&5) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }
8152 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8153 (eval $ac_compiler -V </dev/null >&5) 2>&5
8154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }
8157
8158 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8159 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
8160 if test "${ac_cv_c_compiler_gnu+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163 cat >conftest.$ac_ext <<_ACEOF
8164 #line $LINENO "configure"
8165 /* confdefs.h. */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170
8171 int
8172 main ()
8173 {
8174 #ifndef __GNUC__
8175 choke me
8176 #endif
8177
8178 ;
8179 return 0;
8180 }
8181 _ACEOF
8182 rm -f conftest.$ac_objext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8184 (eval $ac_compile) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 ac_compiler_gnu=yes
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199 ac_compiler_gnu=no
8200 fi
8201 rm -f conftest.$ac_objext conftest.$ac_ext
8202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8203
8204 fi
8205 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8206 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
8207 GCC=`test $ac_compiler_gnu = yes && echo yes`
8208 ac_test_CFLAGS=${CFLAGS+set}
8209 ac_save_CFLAGS=$CFLAGS
8210 CFLAGS="-g"
8211 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8212 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
8213 if test "${ac_cv_prog_cc_g+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216 cat >conftest.$ac_ext <<_ACEOF
8217 #line $LINENO "configure"
8218 /* confdefs.h. */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223
8224 int
8225 main ()
8226 {
8227
8228 ;
8229 return 0;
8230 }
8231 _ACEOF
8232 rm -f conftest.$ac_objext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234 (eval $ac_compile) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } &&
8238 { ac_try='test -s conftest.$ac_objext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 (eval $ac_try) 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_cv_prog_cc_g=yes
8245 else
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249 ac_cv_prog_cc_g=no
8250 fi
8251 rm -f conftest.$ac_objext conftest.$ac_ext
8252 fi
8253 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8254 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8255 if test "$ac_test_CFLAGS" = set; then
8256 CFLAGS=$ac_save_CFLAGS
8257 elif test $ac_cv_prog_cc_g = yes; then
8258 if test "$GCC" = yes; then
8259 CFLAGS="-g -O2"
8260 else
8261 CFLAGS="-g"
8262 fi
8263 else
8264 if test "$GCC" = yes; then
8265 CFLAGS="-O2"
8266 else
8267 CFLAGS=
8268 fi
8269 fi
8270 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8271 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8272 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275 ac_cv_prog_cc_stdc=no
8276 ac_save_CC=$CC
8277 cat >conftest.$ac_ext <<_ACEOF
8278 #line $LINENO "configure"
8279 /* confdefs.h. */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 #include <stdarg.h>
8285 #include <stdio.h>
8286 #include <sys/types.h>
8287 #include <sys/stat.h>
8288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8289 struct buf { int x; };
8290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8291 static char *e (p, i)
8292 char **p;
8293 int i;
8294 {
8295 return p[i];
8296 }
8297 static char *f (char * (*g) (char **, int), char **p, ...)
8298 {
8299 char *s;
8300 va_list v;
8301 va_start (v,p);
8302 s = g (p, va_arg (v,int));
8303 va_end (v);
8304 return s;
8305 }
8306 int test (int i, double x);
8307 struct s1 {int (*f) (int a);};
8308 struct s2 {int (*f) (double a);};
8309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8310 int argc;
8311 char **argv;
8312 int
8313 main ()
8314 {
8315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8316 ;
8317 return 0;
8318 }
8319 _ACEOF
8320 # Don't try gcc -ansi; that turns off useful extensions and
8321 # breaks some systems' header files.
8322 # AIX -qlanglvl=ansi
8323 # Ultrix and OSF/1 -std1
8324 # HP-UX 10.20 and later -Ae
8325 # HP-UX older versions -Aa -D_HPUX_SOURCE
8326 # SVR4 -Xc -D__EXTENSIONS__
8327 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8328 do
8329 CC="$ac_save_CC $ac_arg"
8330 rm -f conftest.$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332 (eval $ac_compile) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -s conftest.$ac_objext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_cv_prog_cc_stdc=$ac_arg
8343 break
8344 else
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348 fi
8349 rm -f conftest.$ac_objext
8350 done
8351 rm -f conftest.$ac_ext conftest.$ac_objext
8352 CC=$ac_save_CC
8353
8354 fi
8355
8356 case "x$ac_cv_prog_cc_stdc" in
8357 x|xno)
8358 echo "$as_me:$LINENO: result: none needed" >&5
8359 echo "${ECHO_T}none needed" >&6 ;;
8360 *)
8361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8362 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8363 CC="$CC $ac_cv_prog_cc_stdc" ;;
8364 esac
8365
8366 # Some people use a C++ compiler to compile C. Since we use `exit',
8367 # in C++ we need to declare it. In case someone uses the same compiler
8368 # for both compiling C and C++ we need to have the C++ compiler decide
8369 # the declaration of exit, since it's the most demanding environment.
8370 cat >conftest.$ac_ext <<_ACEOF
8371 #ifndef __cplusplus
8372 choke me
8373 #endif
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 (eval $ac_compile) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -s conftest.$ac_objext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 for ac_declaration in \
8388 ''\
8389 '#include <stdlib.h>' \
8390 'extern "C" void std::exit (int) throw (); using std::exit;' \
8391 'extern "C" void std::exit (int); using std::exit;' \
8392 'extern "C" void exit (int) throw ();' \
8393 'extern "C" void exit (int);' \
8394 'void exit (int);'
8395 do
8396 cat >conftest.$ac_ext <<_ACEOF
8397 #line $LINENO "configure"
8398 /* confdefs.h. */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 #include <stdlib.h>
8404 $ac_declaration
8405 int
8406 main ()
8407 {
8408 exit (42);
8409 ;
8410 return 0;
8411 }
8412 _ACEOF
8413 rm -f conftest.$ac_objext
8414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8415 (eval $ac_compile) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try='test -s conftest.$ac_objext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 (eval $ac_try) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 :
8426 else
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 continue
8431 fi
8432 rm -f conftest.$ac_objext conftest.$ac_ext
8433 cat >conftest.$ac_ext <<_ACEOF
8434 #line $LINENO "configure"
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_declaration
8441 int
8442 main ()
8443 {
8444 exit (42);
8445 ;
8446 return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451 (eval $ac_compile) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -s conftest.$ac_objext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 break
8462 else
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466 fi
8467 rm -f conftest.$ac_objext conftest.$ac_ext
8468 done
8469 rm -f conftest*
8470 if test -n "$ac_declaration"; then
8471 echo '#ifdef __cplusplus' >>confdefs.h
8472 echo $ac_declaration >>confdefs.h
8473 echo '#endif' >>confdefs.h
8474 fi
8475
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 fi
8481 rm -f conftest.$ac_objext conftest.$ac_ext
8482 ac_ext=c
8483 ac_cpp='$CPP $CPPFLAGS'
8484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8487
8488 depcc="$CC" am_compiler_list=
8489
8490 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8491 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8492 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8496 # We make a subdir and do the tests there. Otherwise we can end up
8497 # making bogus files that we don't know about and never remove. For
8498 # instance it was reported that on HP-UX the gcc test will end up
8499 # making a dummy file named `D' -- because `-MD' means `put the output
8500 # in D'.
8501 mkdir conftest.dir
8502 # Copy depcomp to subdir because otherwise we won't find it if we're
8503 # using a relative directory.
8504 cp "$am_depcomp" conftest.dir
8505 cd conftest.dir
8506
8507 am_cv_CC_dependencies_compiler_type=none
8508 if test "$am_compiler_list" = ""; then
8509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8510 fi
8511 for depmode in $am_compiler_list; do
8512 # We need to recreate these files for each test, as the compiler may
8513 # overwrite some of them when testing with obscure command lines.
8514 # This happens at least with the AIX C compiler.
8515 echo '#include "conftest.h"' > conftest.c
8516 echo 'int i;' > conftest.h
8517 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
8518
8519 case $depmode in
8520 nosideeffect)
8521 # after this tag, mechanisms are not by side-effect, so they'll
8522 # only be used when explicitly requested
8523 if test "x$enable_dependency_tracking" = xyes; then
8524 continue
8525 else
8526 break
8527 fi
8528 ;;
8529 none) break ;;
8530 esac
8531 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8532 # mode. It turns out that the SunPro C++ compiler does not properly
8533 # handle `-M -o', and we need to detect this.
8534 if depmode=$depmode \
8535 source=conftest.c object=conftest.o \
8536 depfile=conftest.Po tmpdepfile=conftest.TPo \
8537 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
8538 grep conftest.h conftest.Po > /dev/null 2>&1 &&
8539 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8540 am_cv_CC_dependencies_compiler_type=$depmode
8541 break
8542 fi
8543 done
8544
8545 cd ..
8546 rm -rf conftest.dir
8547 else
8548 am_cv_CC_dependencies_compiler_type=none
8549 fi
8550
8551 fi
8552 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8553 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
8554 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8555
8556
8557
8558 if
8559 test "x$enable_dependency_tracking" != xno \
8560 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
8561 am__fastdepCC_TRUE=
8562 am__fastdepCC_FALSE='#'
8563 else
8564 am__fastdepCC_TRUE='#'
8565 am__fastdepCC_FALSE=
8566 fi
8567
8568
8569
8570
8571 # Check whether --with-pkg-config-files or --without-pkg-config-files was given.
8572 if test "${with_pkg_config_files+set}" = set; then
8573 withval="$with_pkg_config_files"
8574 pcdir="$withval"
8575 else
8576 pcdir=${libdir}/pkgconfig
8577 fi;
8578
8579
8580
8581 echo "$as_me:$LINENO: checking for X" >&5
8582 echo $ECHO_N "checking for X... $ECHO_C" >&6
8583
8584
8585 # Check whether --with-x or --without-x was given.
8586 if test "${with_x+set}" = set; then
8587 withval="$with_x"
8588
8589 fi;
8590 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8591 if test "x$with_x" = xno; then
8592 # The user explicitly disabled X.
8593 have_x=disabled
8594 else
8595 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8596 # Both variables are already set.
8597 have_x=yes
8598 else
8599 if test "${ac_cv_have_x+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602 # One or both of the vars are not set, and there is no cached value.
8603 ac_x_includes=no ac_x_libraries=no
8604 rm -fr conftest.dir
8605 if mkdir conftest.dir; then
8606 cd conftest.dir
8607 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8608 cat >Imakefile <<'_ACEOF'
8609 acfindx:
8610 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8611 _ACEOF
8612 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8613 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8614 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8615 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8616 for ac_extension in a so sl; do
8617 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8618 test -f $ac_im_libdir/libX11.$ac_extension; then
8619 ac_im_usrlibdir=$ac_im_libdir; break
8620 fi
8621 done
8622 # Screen out bogus values from the imake configuration. They are
8623 # bogus both because they are the default anyway, and because
8624 # using them would break gcc on systems where it needs fixed includes.
8625 case $ac_im_incroot in
8626 /usr/include) ;;
8627 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8628 esac
8629 case $ac_im_usrlibdir in
8630 /usr/lib | /lib) ;;
8631 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8632 esac
8633 fi
8634 cd ..
8635 rm -fr conftest.dir
8636 fi
8637
8638 # Standard set of common directories for X headers.
8639 # Check X11 before X11Rn because it is often a symlink to the current release.
8640 ac_x_header_dirs='
8641 /usr/X11/include
8642 /usr/X11R6/include
8643 /usr/X11R5/include
8644 /usr/X11R4/include
8645
8646 /usr/include/X11
8647 /usr/include/X11R6
8648 /usr/include/X11R5
8649 /usr/include/X11R4
8650
8651 /usr/local/X11/include
8652 /usr/local/X11R6/include
8653 /usr/local/X11R5/include
8654 /usr/local/X11R4/include
8655
8656 /usr/local/include/X11
8657 /usr/local/include/X11R6
8658 /usr/local/include/X11R5
8659 /usr/local/include/X11R4
8660
8661 /usr/X386/include
8662 /usr/x386/include
8663 /usr/XFree86/include/X11
8664
8665 /usr/include
8666 /usr/local/include
8667 /usr/unsupported/include
8668 /usr/athena/include
8669 /usr/local/x11r5/include
8670 /usr/lpp/Xamples/include
8671
8672 /usr/openwin/include
8673 /usr/openwin/share/include'
8674
8675 if test "$ac_x_includes" = no; then
8676 # Guess where to find include files, by looking for Intrinsic.h.
8677 # First, try using that file with no special directory specified.
8678 cat >conftest.$ac_ext <<_ACEOF
8679 #line $LINENO "configure"
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 #include <X11/Intrinsic.h>
8686 _ACEOF
8687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8689 ac_status=$?
8690 grep -v '^ *+' conftest.er1 >conftest.err
8691 rm -f conftest.er1
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } >/dev/null; then
8695 if test -s conftest.err; then
8696 ac_cpp_err=$ac_c_preproc_warn_flag
8697 else
8698 ac_cpp_err=
8699 fi
8700 else
8701 ac_cpp_err=yes
8702 fi
8703 if test -z "$ac_cpp_err"; then
8704 # We can compile using X headers with no special include directory.
8705 ac_x_includes=
8706 else
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8709
8710 for ac_dir in $ac_x_header_dirs; do
8711 if test -r "$ac_dir/X11/Intrinsic.h"; then
8712 ac_x_includes=$ac_dir
8713 break
8714 fi
8715 done
8716 fi
8717 rm -f conftest.err conftest.$ac_ext
8718 fi # $ac_x_includes = no
8719
8720 if test "$ac_x_libraries" = no; then
8721 # Check for the libraries.
8722 # See if we find them without any special options.
8723 # Don't add to $LIBS permanently.
8724 ac_save_LIBS=$LIBS
8725 LIBS="-lXt $LIBS"
8726 cat >conftest.$ac_ext <<_ACEOF
8727 #line $LINENO "configure"
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733 #include <X11/Intrinsic.h>
8734 int
8735 main ()
8736 {
8737 XtMalloc (0)
8738 ;
8739 return 0;
8740 }
8741 _ACEOF
8742 rm -f conftest.$ac_objext conftest$ac_exeext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try='test -s conftest$ac_exeext'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 (eval $ac_try) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 LIBS=$ac_save_LIBS
8755 # We can link X programs with no special library path.
8756 ac_x_libraries=
8757 else
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8760
8761 LIBS=$ac_save_LIBS
8762 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8763 do
8764 # Don't even attempt the hair of trying to link an X program!
8765 for ac_extension in a so sl; do
8766 if test -r $ac_dir/libXt.$ac_extension; then
8767 ac_x_libraries=$ac_dir
8768 break 2
8769 fi
8770 done
8771 done
8772 fi
8773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8774 fi # $ac_x_libraries = no
8775
8776 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8777 # Didn't find X anywhere. Cache the known absence of X.
8778 ac_cv_have_x="have_x=no"
8779 else
8780 # Record where we found X for the cache.
8781 ac_cv_have_x="have_x=yes \
8782 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8783 fi
8784 fi
8785
8786 fi
8787 eval "$ac_cv_have_x"
8788 fi # $with_x != no
8789
8790 if test "$have_x" != yes; then
8791 echo "$as_me:$LINENO: result: $have_x" >&5
8792 echo "${ECHO_T}$have_x" >&6
8793 no_x=yes
8794 else
8795 # If each of the values was on the command line, it overrides each guess.
8796 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8797 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8798 # Update the cache value to reflect the command line values.
8799 ac_cv_have_x="have_x=yes \
8800 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8801 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8802 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8803 fi
8804
8805 if test "$no_x" = yes; then
8806 # Not all programs may use this symbol, but it does not hurt to define it.
8807
8808 cat >>confdefs.h <<\_ACEOF
8809 #define X_DISPLAY_MISSING 1
8810 _ACEOF
8811
8812 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8813 else
8814 if test -n "$x_includes"; then
8815 X_CFLAGS="$X_CFLAGS -I$x_includes"
8816 fi
8817
8818 # It would also be nice to do this for all -L options, not just this one.
8819 if test -n "$x_libraries"; then
8820 X_LIBS="$X_LIBS -L$x_libraries"
8821 # For Solaris; some versions of Sun CC require a space after -R and
8822 # others require no space. Words are not sufficient . . . .
8823 case `(uname -sr) 2>/dev/null` in
8824 "SunOS 5"*)
8825 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8826 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8827 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8828 cat >conftest.$ac_ext <<_ACEOF
8829 #line $LINENO "configure"
8830 /* confdefs.h. */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835
8836 int
8837 main ()
8838 {
8839
8840 ;
8841 return 0;
8842 }
8843 _ACEOF
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } &&
8850 { ac_try='test -s conftest$ac_exeext'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 (eval $ac_try) 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 ac_R_nospace=yes
8857 else
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 ac_R_nospace=no
8862 fi
8863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8864 if test $ac_R_nospace = yes; then
8865 echo "$as_me:$LINENO: result: no" >&5
8866 echo "${ECHO_T}no" >&6
8867 X_LIBS="$X_LIBS -R$x_libraries"
8868 else
8869 LIBS="$ac_xsave_LIBS -R $x_libraries"
8870 cat >conftest.$ac_ext <<_ACEOF
8871 #line $LINENO "configure"
8872 /* confdefs.h. */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8877
8878 int
8879 main ()
8880 {
8881
8882 ;
8883 return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -s conftest$ac_exeext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 ac_R_space=yes
8899 else
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8902
8903 ac_R_space=no
8904 fi
8905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8906 if test $ac_R_space = yes; then
8907 echo "$as_me:$LINENO: result: yes" >&5
8908 echo "${ECHO_T}yes" >&6
8909 X_LIBS="$X_LIBS -R $x_libraries"
8910 else
8911 echo "$as_me:$LINENO: result: neither works" >&5
8912 echo "${ECHO_T}neither works" >&6
8913 fi
8914 fi
8915 LIBS=$ac_xsave_LIBS
8916 esac
8917 fi
8918
8919 # Check for system-dependent libraries X programs must link with.
8920 # Do this before checking for the system-independent R6 libraries
8921 # (-lICE), since we may need -lsocket or whatever for X linking.
8922
8923 if test "$ISC" = yes; then
8924 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8925 else
8926 # Martyn Johnson says this is needed for Ultrix, if the X
8927 # libraries were built with DECnet support. And Karl Berry says
8928 # the Alpha needs dnet_stub (dnet does not exist).
8929 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8930 cat >conftest.$ac_ext <<_ACEOF
8931 #line $LINENO "configure"
8932 /* confdefs.h. */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937
8938 /* Override any gcc2 internal prototype to avoid an error. */
8939 #ifdef __cplusplus
8940 extern "C"
8941 #endif
8942 /* We use char because int might match the return type of a gcc2
8943 builtin and then its argument prototype would still apply. */
8944 char XOpenDisplay ();
8945 int
8946 main ()
8947 {
8948 XOpenDisplay ();
8949 ;
8950 return 0;
8951 }
8952 _ACEOF
8953 rm -f conftest.$ac_objext conftest$ac_exeext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try='test -s conftest$ac_exeext'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 (eval $ac_try) 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; }; then
8965 :
8966 else
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8969
8970 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8971 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8972 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975 ac_check_lib_save_LIBS=$LIBS
8976 LIBS="-ldnet $LIBS"
8977 cat >conftest.$ac_ext <<_ACEOF
8978 #line $LINENO "configure"
8979 /* confdefs.h. */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984
8985 /* Override any gcc2 internal prototype to avoid an error. */
8986 #ifdef __cplusplus
8987 extern "C"
8988 #endif
8989 /* We use char because int might match the return type of a gcc2
8990 builtin and then its argument prototype would still apply. */
8991 char dnet_ntoa ();
8992 int
8993 main ()
8994 {
8995 dnet_ntoa ();
8996 ;
8997 return 0;
8998 }
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -s conftest$ac_exeext'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; }; then
9012 ac_cv_lib_dnet_dnet_ntoa=yes
9013 else
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9016
9017 ac_cv_lib_dnet_dnet_ntoa=no
9018 fi
9019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9020 LIBS=$ac_check_lib_save_LIBS
9021 fi
9022 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9023 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9024 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9025 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9026 fi
9027
9028 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9029 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9030 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9031 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034 ac_check_lib_save_LIBS=$LIBS
9035 LIBS="-ldnet_stub $LIBS"
9036 cat >conftest.$ac_ext <<_ACEOF
9037 #line $LINENO "configure"
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043
9044 /* Override any gcc2 internal prototype to avoid an error. */
9045 #ifdef __cplusplus
9046 extern "C"
9047 #endif
9048 /* We use char because int might match the return type of a gcc2
9049 builtin and then its argument prototype would still apply. */
9050 char dnet_ntoa ();
9051 int
9052 main ()
9053 {
9054 dnet_ntoa ();
9055 ;
9056 return 0;
9057 }
9058 _ACEOF
9059 rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } &&
9065 { ac_try='test -s conftest$ac_exeext'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9072 else
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9075
9076 ac_cv_lib_dnet_stub_dnet_ntoa=no
9077 fi
9078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9079 LIBS=$ac_check_lib_save_LIBS
9080 fi
9081 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9082 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9083 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9084 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9085 fi
9086
9087 fi
9088 fi
9089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9090 LIBS="$ac_xsave_LIBS"
9091
9092 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
9093 # to get the SysV transport functions.
9094 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9095 # needs -lnsl.
9096 # The nsl library prevents programs from opening the X display
9097 # on Irix 5.2, according to T.E. Dickey.
9098 # The functions gethostbyname, getservbyname, and inet_addr are
9099 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9100 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9101 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9102 if test "${ac_cv_func_gethostbyname+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 /* System header to define __stub macros and hopefully few prototypes,
9113 which can conflict with char gethostbyname (); below.
9114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9115 <limits.h> exists even on freestanding compilers. */
9116 #ifdef __STDC__
9117 # include <limits.h>
9118 #else
9119 # include <assert.h>
9120 #endif
9121 /* Override any gcc2 internal prototype to avoid an error. */
9122 #ifdef __cplusplus
9123 extern "C"
9124 {
9125 #endif
9126 /* We use char because int might match the return type of a gcc2
9127 builtin and then its argument prototype would still apply. */
9128 char gethostbyname ();
9129 /* The GNU C library defines this for functions which it implements
9130 to always fail with ENOSYS. Some functions are actually named
9131 something starting with __ and the normal name is an alias. */
9132 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9133 choke me
9134 #else
9135 char (*f) () = gethostbyname;
9136 #endif
9137 #ifdef __cplusplus
9138 }
9139 #endif
9140
9141 int
9142 main ()
9143 {
9144 return f != gethostbyname;
9145 ;
9146 return 0;
9147 }
9148 _ACEOF
9149 rm -f conftest.$ac_objext conftest$ac_exeext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151 (eval $ac_link) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
9155 { ac_try='test -s conftest$ac_exeext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 ac_cv_func_gethostbyname=yes
9162 else
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9165
9166 ac_cv_func_gethostbyname=no
9167 fi
9168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9169 fi
9170 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9171 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9172
9173 if test $ac_cv_func_gethostbyname = no; then
9174 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9175 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9176 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179 ac_check_lib_save_LIBS=$LIBS
9180 LIBS="-lnsl $LIBS"
9181 cat >conftest.$ac_ext <<_ACEOF
9182 #line $LINENO "configure"
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188
9189 /* Override any gcc2 internal prototype to avoid an error. */
9190 #ifdef __cplusplus
9191 extern "C"
9192 #endif
9193 /* We use char because int might match the return type of a gcc2
9194 builtin and then its argument prototype would still apply. */
9195 char gethostbyname ();
9196 int
9197 main ()
9198 {
9199 gethostbyname ();
9200 ;
9201 return 0;
9202 }
9203 _ACEOF
9204 rm -f conftest.$ac_objext conftest$ac_exeext
9205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9206 (eval $ac_link) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } &&
9210 { ac_try='test -s conftest$ac_exeext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 (eval $ac_try) 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_lib_nsl_gethostbyname=yes
9217 else
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9220
9221 ac_cv_lib_nsl_gethostbyname=no
9222 fi
9223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9224 LIBS=$ac_check_lib_save_LIBS
9225 fi
9226 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9227 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9228 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9229 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9230 fi
9231
9232 if test $ac_cv_lib_nsl_gethostbyname = no; then
9233 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9234 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9235 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238 ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lbsd $LIBS"
9240 cat >conftest.$ac_ext <<_ACEOF
9241 #line $LINENO "configure"
9242 /* confdefs.h. */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247
9248 /* Override any gcc2 internal prototype to avoid an error. */
9249 #ifdef __cplusplus
9250 extern "C"
9251 #endif
9252 /* We use char because int might match the return type of a gcc2
9253 builtin and then its argument prototype would still apply. */
9254 char gethostbyname ();
9255 int
9256 main ()
9257 {
9258 gethostbyname ();
9259 ;
9260 return 0;
9261 }
9262 _ACEOF
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265 (eval $ac_link) 2>&5
9266 ac_status=$?
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } &&
9269 { ac_try='test -s conftest$ac_exeext'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 (eval $ac_try) 2>&5
9272 ac_status=$?
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; }; then
9275 ac_cv_lib_bsd_gethostbyname=yes
9276 else
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 ac_cv_lib_bsd_gethostbyname=no
9281 fi
9282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9283 LIBS=$ac_check_lib_save_LIBS
9284 fi
9285 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9286 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9287 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9289 fi
9290
9291 fi
9292 fi
9293
9294 # [email protected] says without -lsocket,
9295 # socket/setsockopt and other routines are undefined under SCO ODT
9296 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9297 # on later versions), says Simon Leinen: it contains gethostby*
9298 # variants that don't use the name server (or something). -lsocket
9299 # must be given before -lnsl if both are needed. We assume that
9300 # if connect needs -lnsl, so does gethostbyname.
9301 echo "$as_me:$LINENO: checking for connect" >&5
9302 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9303 if test "${ac_cv_func_connect+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 else
9306 cat >conftest.$ac_ext <<_ACEOF
9307 #line $LINENO "configure"
9308 /* confdefs.h. */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9313 /* System header to define __stub macros and hopefully few prototypes,
9314 which can conflict with char connect (); below.
9315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9316 <limits.h> exists even on freestanding compilers. */
9317 #ifdef __STDC__
9318 # include <limits.h>
9319 #else
9320 # include <assert.h>
9321 #endif
9322 /* Override any gcc2 internal prototype to avoid an error. */
9323 #ifdef __cplusplus
9324 extern "C"
9325 {
9326 #endif
9327 /* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9329 char connect ();
9330 /* The GNU C library defines this for functions which it implements
9331 to always fail with ENOSYS. Some functions are actually named
9332 something starting with __ and the normal name is an alias. */
9333 #if defined (__stub_connect) || defined (__stub___connect)
9334 choke me
9335 #else
9336 char (*f) () = connect;
9337 #endif
9338 #ifdef __cplusplus
9339 }
9340 #endif
9341
9342 int
9343 main ()
9344 {
9345 return f != connect;
9346 ;
9347 return 0;
9348 }
9349 _ACEOF
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -s conftest$ac_exeext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 (eval $ac_try) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_cv_func_connect=yes
9363 else
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367 ac_cv_func_connect=no
9368 fi
9369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9370 fi
9371 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9372 echo "${ECHO_T}$ac_cv_func_connect" >&6
9373
9374 if test $ac_cv_func_connect = no; then
9375 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9376 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9377 if test "${ac_cv_lib_socket_connect+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380 ac_check_lib_save_LIBS=$LIBS
9381 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9382 cat >conftest.$ac_ext <<_ACEOF
9383 #line $LINENO "configure"
9384 /* confdefs.h. */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389
9390 /* Override any gcc2 internal prototype to avoid an error. */
9391 #ifdef __cplusplus
9392 extern "C"
9393 #endif
9394 /* We use char because int might match the return type of a gcc2
9395 builtin and then its argument prototype would still apply. */
9396 char connect ();
9397 int
9398 main ()
9399 {
9400 connect ();
9401 ;
9402 return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -s conftest$ac_exeext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 (eval $ac_try) 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 ac_cv_lib_socket_connect=yes
9418 else
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9421
9422 ac_cv_lib_socket_connect=no
9423 fi
9424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9425 LIBS=$ac_check_lib_save_LIBS
9426 fi
9427 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9428 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9429 if test $ac_cv_lib_socket_connect = yes; then
9430 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9431 fi
9432
9433 fi
9434
9435 # Guillermo Gomez says -lposix is necessary on A/UX.
9436 echo "$as_me:$LINENO: checking for remove" >&5
9437 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9438 if test "${ac_cv_func_remove+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441 cat >conftest.$ac_ext <<_ACEOF
9442 #line $LINENO "configure"
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 /* System header to define __stub macros and hopefully few prototypes,
9449 which can conflict with char remove (); below.
9450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9451 <limits.h> exists even on freestanding compilers. */
9452 #ifdef __STDC__
9453 # include <limits.h>
9454 #else
9455 # include <assert.h>
9456 #endif
9457 /* Override any gcc2 internal prototype to avoid an error. */
9458 #ifdef __cplusplus
9459 extern "C"
9460 {
9461 #endif
9462 /* We use char because int might match the return type of a gcc2
9463 builtin and then its argument prototype would still apply. */
9464 char remove ();
9465 /* The GNU C library defines this for functions which it implements
9466 to always fail with ENOSYS. Some functions are actually named
9467 something starting with __ and the normal name is an alias. */
9468 #if defined (__stub_remove) || defined (__stub___remove)
9469 choke me
9470 #else
9471 char (*f) () = remove;
9472 #endif
9473 #ifdef __cplusplus
9474 }
9475 #endif
9476
9477 int
9478 main ()
9479 {
9480 return f != remove;
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>&5
9488 ac_status=$?
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try='test -s conftest$ac_exeext'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 (eval $ac_try) 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; }; then
9497 ac_cv_func_remove=yes
9498 else
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9501
9502 ac_cv_func_remove=no
9503 fi
9504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9505 fi
9506 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9507 echo "${ECHO_T}$ac_cv_func_remove" >&6
9508
9509 if test $ac_cv_func_remove = no; then
9510 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9511 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9512 if test "${ac_cv_lib_posix_remove+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515 ac_check_lib_save_LIBS=$LIBS
9516 LIBS="-lposix $LIBS"
9517 cat >conftest.$ac_ext <<_ACEOF
9518 #line $LINENO "configure"
9519 /* confdefs.h. */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524
9525 /* Override any gcc2 internal prototype to avoid an error. */
9526 #ifdef __cplusplus
9527 extern "C"
9528 #endif
9529 /* We use char because int might match the return type of a gcc2
9530 builtin and then its argument prototype would still apply. */
9531 char remove ();
9532 int
9533 main ()
9534 {
9535 remove ();
9536 ;
9537 return 0;
9538 }
9539 _ACEOF
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try='test -s conftest$ac_exeext'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 ac_cv_lib_posix_remove=yes
9553 else
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 ac_cv_lib_posix_remove=no
9558 fi
9559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9560 LIBS=$ac_check_lib_save_LIBS
9561 fi
9562 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9563 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9564 if test $ac_cv_lib_posix_remove = yes; then
9565 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9566 fi
9567
9568 fi
9569
9570 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9571 echo "$as_me:$LINENO: checking for shmat" >&5
9572 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9573 if test "${ac_cv_func_shmat+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576 cat >conftest.$ac_ext <<_ACEOF
9577 #line $LINENO "configure"
9578 /* confdefs.h. */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583 /* System header to define __stub macros and hopefully few prototypes,
9584 which can conflict with char shmat (); below.
9585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9586 <limits.h> exists even on freestanding compilers. */
9587 #ifdef __STDC__
9588 # include <limits.h>
9589 #else
9590 # include <assert.h>
9591 #endif
9592 /* Override any gcc2 internal prototype to avoid an error. */
9593 #ifdef __cplusplus
9594 extern "C"
9595 {
9596 #endif
9597 /* We use char because int might match the return type of a gcc2
9598 builtin and then its argument prototype would still apply. */
9599 char shmat ();
9600 /* The GNU C library defines this for functions which it implements
9601 to always fail with ENOSYS. Some functions are actually named
9602 something starting with __ and the normal name is an alias. */
9603 #if defined (__stub_shmat) || defined (__stub___shmat)
9604 choke me
9605 #else
9606 char (*f) () = shmat;
9607 #endif
9608 #ifdef __cplusplus
9609 }
9610 #endif
9611
9612 int
9613 main ()
9614 {
9615 return f != shmat;
9616 ;
9617 return 0;
9618 }
9619 _ACEOF
9620 rm -f conftest.$ac_objext conftest$ac_exeext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9622 (eval $ac_link) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } &&
9626 { ac_try='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 ac_cv_func_shmat=yes
9633 else
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637 ac_cv_func_shmat=no
9638 fi
9639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9640 fi
9641 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9642 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9643
9644 if test $ac_cv_func_shmat = no; then
9645 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9646 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9647 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 ac_check_lib_save_LIBS=$LIBS
9651 LIBS="-lipc $LIBS"
9652 cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9654 /* confdefs.h. */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659
9660 /* Override any gcc2 internal prototype to avoid an error. */
9661 #ifdef __cplusplus
9662 extern "C"
9663 #endif
9664 /* We use char because int might match the return type of a gcc2
9665 builtin and then its argument prototype would still apply. */
9666 char shmat ();
9667 int
9668 main ()
9669 {
9670 shmat ();
9671 ;
9672 return 0;
9673 }
9674 _ACEOF
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677 (eval $ac_link) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -s conftest$ac_exeext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_cv_lib_ipc_shmat=yes
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 ac_cv_lib_ipc_shmat=no
9693 fi
9694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9695 LIBS=$ac_check_lib_save_LIBS
9696 fi
9697 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9698 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9699 if test $ac_cv_lib_ipc_shmat = yes; then
9700 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9701 fi
9702
9703 fi
9704 fi
9705
9706 # Check for libraries that X11R6 Xt/Xaw programs need.
9707 ac_save_LDFLAGS=$LDFLAGS
9708 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9709 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9710 # check for ICE first), but we must link in the order -lSM -lICE or
9711 # we get undefined symbols. So assume we have SM if we have ICE.
9712 # These have to be linked with before -lX11, unlike the other
9713 # libraries we check for below, so use a different variable.
9714 # John Interrante, Karl Berry
9715 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9716 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9717 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 else
9720 ac_check_lib_save_LIBS=$LIBS
9721 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9722 cat >conftest.$ac_ext <<_ACEOF
9723 #line $LINENO "configure"
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729
9730 /* Override any gcc2 internal prototype to avoid an error. */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 /* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736 char IceConnectionNumber ();
9737 int
9738 main ()
9739 {
9740 IceConnectionNumber ();
9741 ;
9742 return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747 (eval $ac_link) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_cv_lib_ICE_IceConnectionNumber=yes
9758 else
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762 ac_cv_lib_ICE_IceConnectionNumber=no
9763 fi
9764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_lib_save_LIBS
9766 fi
9767 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9768 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9769 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9770 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9771 fi
9772
9773 LDFLAGS=$ac_save_LDFLAGS
9774
9775 fi
9776
9777
9778 echo "$as_me:$LINENO: checking for /dev/random" >&5
9779 echo $ECHO_N "checking for /dev/random... $ECHO_C" >&6
9780 if test "${ac_cv_file__dev_random+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783 test "$cross_compiling" = yes &&
9784 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9785 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9786 { (exit 1); exit 1; }; }
9787 if test -r "/dev/random"; then
9788 ac_cv_file__dev_random=yes
9789 else
9790 ac_cv_file__dev_random=no
9791 fi
9792 fi
9793 echo "$as_me:$LINENO: result: $ac_cv_file__dev_random" >&5
9794 echo "${ECHO_T}$ac_cv_file__dev_random" >&6
9795 if test $ac_cv_file__dev_random = yes; then
9796
9797 cat >>confdefs.h <<_ACEOF
9798 #define HAVE__DEV_RANDOM 1
9799 _ACEOF
9800
9801
9802 fi
9803
9804
9805 echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9806 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6
9807 if test "${ac_cv_lib_z_compress2+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810 ac_check_lib_save_LIBS=$LIBS
9811 LIBS="-lz $LIBS"
9812 cat >conftest.$ac_ext <<_ACEOF
9813 #line $LINENO "configure"
9814 /* confdefs.h. */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9819
9820 /* Override any gcc2 internal prototype to avoid an error. */
9821 #ifdef __cplusplus
9822 extern "C"
9823 #endif
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9826 char compress2 ();
9827 int
9828 main ()
9829 {
9830 compress2 ();
9831 ;
9832 return 0;
9833 }
9834 _ACEOF
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9837 (eval $ac_link) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_cv_lib_z_compress2=yes
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_cv_lib_z_compress2=no
9853 fi
9854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9855 LIBS=$ac_check_lib_save_LIBS
9856 fi
9857 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9858 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6
9859 if test $ac_cv_lib_z_compress2 = yes; then
9860 if test "${ac_cv_header_zlib_h+set}" = set; then
9861 echo "$as_me:$LINENO: checking for zlib.h" >&5
9862 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9863 if test "${ac_cv_header_zlib_h+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 fi
9866 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9867 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9868 else
9869 # Is the header compilable?
9870 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9871 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9873 #line $LINENO "configure"
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <zlib.h>
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9884 (eval $ac_compile) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try='test -s conftest.$ac_objext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 (eval $ac_try) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_header_compiler=yes
9895 else
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9898
9899 ac_header_compiler=no
9900 fi
9901 rm -f conftest.$ac_objext conftest.$ac_ext
9902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9903 echo "${ECHO_T}$ac_header_compiler" >&6
9904
9905 # Is the header present?
9906 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9907 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9908 cat >conftest.$ac_ext <<_ACEOF
9909 #line $LINENO "configure"
9910 /* confdefs.h. */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915 #include <zlib.h>
9916 _ACEOF
9917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } >/dev/null; then
9925 if test -s conftest.err; then
9926 ac_cpp_err=$ac_c_preproc_warn_flag
9927 else
9928 ac_cpp_err=
9929 fi
9930 else
9931 ac_cpp_err=yes
9932 fi
9933 if test -z "$ac_cpp_err"; then
9934 ac_header_preproc=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_header_preproc=no
9940 fi
9941 rm -f conftest.err conftest.$ac_ext
9942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9943 echo "${ECHO_T}$ac_header_preproc" >&6
9944
9945 # So? What about this header?
9946 case $ac_header_compiler:$ac_header_preproc in
9947 yes:no )
9948 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9949 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9950 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9951 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9952 (
9953 cat <<\_ASBOX
9954 ## ------------------------------------ ##
9955 ## Report this to [email protected]. ##
9956 ## ------------------------------------ ##
9957 _ASBOX
9958 ) |
9959 sed "s/^/$as_me: WARNING: /" >&2
9960 ;;
9961 no:yes )
9962 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9963 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9965 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9967 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9968 (
9969 cat <<\_ASBOX
9970 ## ------------------------------------ ##
9971 ## Report this to [email protected]. ##
9972 ## ------------------------------------ ##
9973 _ASBOX
9974 ) |
9975 sed "s/^/$as_me: WARNING: /" >&2
9976 ;;
9977 esac
9978 echo "$as_me:$LINENO: checking for zlib.h" >&5
9979 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9980 if test "${ac_cv_header_zlib_h+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983 ac_cv_header_zlib_h=$ac_header_preproc
9984 fi
9985 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9986 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9987
9988 fi
9989 if test $ac_cv_header_zlib_h = yes; then
9990 LIBZ='-lz'
9991 else
9992 { { echo "$as_me:$LINENO: error: *** ERROR: ZLib header files not found ***" >&5
9993 echo "$as_me: error: *** ERROR: ZLib header files not found ***" >&2;}
9994 { (exit 1); exit 1; }; }
9995 fi
9996
9997
9998 else
9999 { { echo "$as_me:$LINENO: error: *** ERROR: ZLib library not found ***" >&5
10000 echo "$as_me: error: *** ERROR: ZLib library not found ***" >&2;}
10001 { (exit 1); exit 1; }; }
10002 fi
10003
10004
10005
10006 echo "$as_me:$LINENO: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
10007 echo $ECHO_N "checking for BZ2_bzBuffToBuffCompress in -lbz2... $ECHO_C" >&6
10008 if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011 ac_check_lib_save_LIBS=$LIBS
10012 LIBS="-lbz2 $LIBS"
10013 cat >conftest.$ac_ext <<_ACEOF
10014 #line $LINENO "configure"
10015 /* confdefs.h. */
10016 _ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10020
10021 /* Override any gcc2 internal prototype to avoid an error. */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 /* We use char because int might match the return type of a gcc2
10026 builtin and then its argument prototype would still apply. */
10027 char BZ2_bzBuffToBuffCompress ();
10028 int
10029 main ()
10030 {
10031 BZ2_bzBuffToBuffCompress ();
10032 ;
10033 return 0;
10034 }
10035 _ACEOF
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038 (eval $ac_link) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try='test -s conftest$ac_exeext'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
10049 else
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10052
10053 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no
10054 fi
10055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10056 LIBS=$ac_check_lib_save_LIBS
10057 fi
10058 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5
10059 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6
10060 if test $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress = yes; then
10061 if test "${ac_cv_header_bzlib_h+set}" = set; then
10062 echo "$as_me:$LINENO: checking for bzlib.h" >&5
10063 echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6
10064 if test "${ac_cv_header_bzlib_h+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 fi
10067 echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
10068 echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6
10069 else
10070 # Is the header compilable?
10071 echo "$as_me:$LINENO: checking bzlib.h usability" >&5
10072 echo $ECHO_N "checking bzlib.h usability... $ECHO_C" >&6
10073 cat >conftest.$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 $ac_includes_default
10081 #include <bzlib.h>
10082 _ACEOF
10083 rm -f conftest.$ac_objext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085 (eval $ac_compile) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -s conftest.$ac_objext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_header_compiler=yes
10096 else
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10099
10100 ac_header_compiler=no
10101 fi
10102 rm -f conftest.$ac_objext conftest.$ac_ext
10103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10104 echo "${ECHO_T}$ac_header_compiler" >&6
10105
10106 # Is the header present?
10107 echo "$as_me:$LINENO: checking bzlib.h presence" >&5
10108 echo $ECHO_N "checking bzlib.h presence... $ECHO_C" >&6
10109 cat >conftest.$ac_ext <<_ACEOF
10110 #line $LINENO "configure"
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 #include <bzlib.h>
10117 _ACEOF
10118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10120 ac_status=$?
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } >/dev/null; then
10126 if test -s conftest.err; then
10127 ac_cpp_err=$ac_c_preproc_warn_flag
10128 else
10129 ac_cpp_err=
10130 fi
10131 else
10132 ac_cpp_err=yes
10133 fi
10134 if test -z "$ac_cpp_err"; then
10135 ac_header_preproc=yes
10136 else
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10139
10140 ac_header_preproc=no
10141 fi
10142 rm -f conftest.err conftest.$ac_ext
10143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10144 echo "${ECHO_T}$ac_header_preproc" >&6
10145
10146 # So? What about this header?
10147 case $ac_header_compiler:$ac_header_preproc in
10148 yes:no )
10149 { echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10150 echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10151 { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
10152 echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
10153 (
10154 cat <<\_ASBOX
10155 ## ------------------------------------ ##
10156 ## Report this to [email protected]. ##
10157 ## ------------------------------------ ##
10158 _ASBOX
10159 ) |
10160 sed "s/^/$as_me: WARNING: /" >&2
10161 ;;
10162 no:yes )
10163 { echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
10164 echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
10166 echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
10168 echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
10169 (
10170 cat <<\_ASBOX
10171 ## ------------------------------------ ##
10172 ## Report this to [email protected]. ##
10173 ## ------------------------------------ ##
10174 _ASBOX
10175 ) |
10176 sed "s/^/$as_me: WARNING: /" >&2
10177 ;;
10178 esac
10179 echo "$as_me:$LINENO: checking for bzlib.h" >&5
10180 echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6
10181 if test "${ac_cv_header_bzlib_h+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184 ac_cv_header_bzlib_h=$ac_header_preproc
10185 fi
10186 echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
10187 echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6
10188
10189 fi
10190 if test $ac_cv_header_bzlib_h = yes; then
10191 LIBBZ2='-lbz2'
10192 else
10193 { { echo "$as_me:$LINENO: error: *** ERROR: LibBZ2 header files not found ***" >&5
10194 echo "$as_me: error: *** ERROR: LibBZ2 header files not found ***" >&2;}
10195 { (exit 1); exit 1; }; }
10196 fi
10197
10198
10199 else
10200 { { echo "$as_me:$LINENO: error: *** ERROR: LibBZ2 library not found ***" >&5
10201 echo "$as_me: error: *** ERROR: LibBZ2 library not found ***" >&2;}
10202 { (exit 1); exit 1; }; }
10203 fi
10204
10205
10206
10207 echo "$as_me:$LINENO: checking for libmcrypt" >&5
10208 echo $ECHO_N "checking for libmcrypt... $ECHO_C" >&6
10209 if libmcrypt-config --libs > /dev/null 2>&1
10210 then
10211 echo "$as_me:$LINENO: result: yes" >&5
10212 echo "${ECHO_T}yes" >&6
10213 MCRYPT_CFLAGS=`libmcrypt-config --cflags`
10214 MCRYPT_LIBS=`libmcrypt-config --libs`
10215
10216
10217 else
10218 echo "$as_me:$LINENO: result: no" >&5
10219 echo "${ECHO_T}no" >&6
10220 { { echo "$as_me:$LINENO: error: *** ERROR: MCrypt library not found ***" >&5
10221 echo "$as_me: error: *** ERROR: MCrypt library not found ***" >&2;}
10222 { (exit 1); exit 1; }; }
10223 fi
10224
10225 echo "$as_me:$LINENO: checking for mhash_keygen in -lmhash" >&5
10226 echo $ECHO_N "checking for mhash_keygen in -lmhash... $ECHO_C" >&6
10227 if test "${ac_cv_lib_mhash_mhash_keygen+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230 ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-lmhash $LIBS"
10232 cat >conftest.$ac_ext <<_ACEOF
10233 #line $LINENO "configure"
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239
10240 /* Override any gcc2 internal prototype to avoid an error. */
10241 #ifdef __cplusplus
10242 extern "C"
10243 #endif
10244 /* We use char because int might match the return type of a gcc2
10245 builtin and then its argument prototype would still apply. */
10246 char mhash_keygen ();
10247 int
10248 main ()
10249 {
10250 mhash_keygen ();
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10257 (eval $ac_link) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 ac_cv_lib_mhash_mhash_keygen=yes
10268 else
10269 echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10271
10272 ac_cv_lib_mhash_mhash_keygen=no
10273 fi
10274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10275 LIBS=$ac_check_lib_save_LIBS
10276 fi
10277 echo "$as_me:$LINENO: result: $ac_cv_lib_mhash_mhash_keygen" >&5
10278 echo "${ECHO_T}$ac_cv_lib_mhash_mhash_keygen" >&6
10279 if test $ac_cv_lib_mhash_mhash_keygen = yes; then
10280 if test "${ac_cv_header_mhash_h+set}" = set; then
10281 echo "$as_me:$LINENO: checking for mhash.h" >&5
10282 echo $ECHO_N "checking for mhash.h... $ECHO_C" >&6
10283 if test "${ac_cv_header_mhash_h+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 fi
10286 echo "$as_me:$LINENO: result: $ac_cv_header_mhash_h" >&5
10287 echo "${ECHO_T}$ac_cv_header_mhash_h" >&6
10288 else
10289 # Is the header compilable?
10290 echo "$as_me:$LINENO: checking mhash.h usability" >&5
10291 echo $ECHO_N "checking mhash.h usability... $ECHO_C" >&6
10292 cat >conftest.$ac_ext <<_ACEOF
10293 #line $LINENO "configure"
10294 /* confdefs.h. */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10299 $ac_includes_default
10300 #include <mhash.h>
10301 _ACEOF
10302 rm -f conftest.$ac_objext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10304 (eval $ac_compile) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -s conftest.$ac_objext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 ac_header_compiler=yes
10315 else
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 ac_header_compiler=no
10320 fi
10321 rm -f conftest.$ac_objext conftest.$ac_ext
10322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10323 echo "${ECHO_T}$ac_header_compiler" >&6
10324
10325 # Is the header present?
10326 echo "$as_me:$LINENO: checking mhash.h presence" >&5
10327 echo $ECHO_N "checking mhash.h presence... $ECHO_C" >&6
10328 cat >conftest.$ac_ext <<_ACEOF
10329 #line $LINENO "configure"
10330 /* confdefs.h. */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 #include <mhash.h>
10336 _ACEOF
10337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } >/dev/null; then
10345 if test -s conftest.err; then
10346 ac_cpp_err=$ac_c_preproc_warn_flag
10347 else
10348 ac_cpp_err=
10349 fi
10350 else
10351 ac_cpp_err=yes
10352 fi
10353 if test -z "$ac_cpp_err"; then
10354 ac_header_preproc=yes
10355 else
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 ac_header_preproc=no
10360 fi
10361 rm -f conftest.err conftest.$ac_ext
10362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10363 echo "${ECHO_T}$ac_header_preproc" >&6
10364
10365 # So? What about this header?
10366 case $ac_header_compiler:$ac_header_preproc in
10367 yes:no )
10368 { echo "$as_me:$LINENO: WARNING: mhash.h: accepted by the compiler, rejected by the preprocessor!" >&5
10369 echo "$as_me: WARNING: mhash.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: mhash.h: proceeding with the preprocessor's result" >&5
10371 echo "$as_me: WARNING: mhash.h: proceeding with the preprocessor's result" >&2;}
10372 (
10373 cat <<\_ASBOX
10374 ## ------------------------------------ ##
10375 ## Report this to [email protected]. ##
10376 ## ------------------------------------ ##
10377 _ASBOX
10378 ) |
10379 sed "s/^/$as_me: WARNING: /" >&2
10380 ;;
10381 no:yes )
10382 { echo "$as_me:$LINENO: WARNING: mhash.h: present but cannot be compiled" >&5
10383 echo "$as_me: WARNING: mhash.h: present but cannot be compiled" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: mhash.h: check for missing prerequisite headers?" >&5
10385 echo "$as_me: WARNING: mhash.h: check for missing prerequisite headers?" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: mhash.h: proceeding with the preprocessor's result" >&5
10387 echo "$as_me: WARNING: mhash.h: proceeding with the preprocessor's result" >&2;}
10388 (
10389 cat <<\_ASBOX
10390 ## ------------------------------------ ##
10391 ## Report this to [email protected]. ##
10392 ## ------------------------------------ ##
10393 _ASBOX
10394 ) |
10395 sed "s/^/$as_me: WARNING: /" >&2
10396 ;;
10397 esac
10398 echo "$as_me:$LINENO: checking for mhash.h" >&5
10399 echo $ECHO_N "checking for mhash.h... $ECHO_C" >&6
10400 if test "${ac_cv_header_mhash_h+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403 ac_cv_header_mhash_h=$ac_header_preproc
10404 fi
10405 echo "$as_me:$LINENO: result: $ac_cv_header_mhash_h" >&5
10406 echo "${ECHO_T}$ac_cv_header_mhash_h" >&6
10407
10408 fi
10409 if test $ac_cv_header_mhash_h = yes; then
10410 MHASH='-lmhash'
10411 else
10412 { { echo "$as_me:$LINENO: error: *** ERROR: Mhash header files not found ***" >&5
10413 echo "$as_me: error: *** ERROR: Mhash header files not found ***" >&2;}
10414 { (exit 1); exit 1; }; }
10415 fi
10416
10417
10418 else
10419 { { echo "$as_me:$LINENO: error: *** ERROR: Mhash library not found ***" >&5
10420 echo "$as_me: error: *** ERROR: Mhash library not found ***" >&2;}
10421 { (exit 1); exit 1; }; }
10422 fi
10423
10424
10425
10426 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10427 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10428 if test "${ac_cv_header_stat_broken+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 else
10431 cat >conftest.$ac_ext <<_ACEOF
10432 #line $LINENO "configure"
10433 /* confdefs.h. */
10434 _ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10438 #include <sys/types.h>
10439 #include <sys/stat.h>
10440
10441 #if defined(S_ISBLK) && defined(S_IFDIR)
10442 # if S_ISBLK (S_IFDIR)
10443 You lose.
10444 # endif
10445 #endif
10446
10447 #if defined(S_ISBLK) && defined(S_IFCHR)
10448 # if S_ISBLK (S_IFCHR)
10449 You lose.
10450 # endif
10451 #endif
10452
10453 #if defined(S_ISLNK) && defined(S_IFREG)
10454 # if S_ISLNK (S_IFREG)
10455 You lose.
10456 # endif
10457 #endif
10458
10459 #if defined(S_ISSOCK) && defined(S_IFREG)
10460 # if S_ISSOCK (S_IFREG)
10461 You lose.
10462 # endif
10463 #endif
10464
10465 _ACEOF
10466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10467 $EGREP "You lose" >/dev/null 2>&1; then
10468 ac_cv_header_stat_broken=yes
10469 else
10470 ac_cv_header_stat_broken=no
10471 fi
10472 rm -f conftest*
10473
10474 fi
10475 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10476 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10477 if test $ac_cv_header_stat_broken = yes; then
10478
10479 cat >>confdefs.h <<\_ACEOF
10480 #define STAT_MACROS_BROKEN 1
10481 _ACEOF
10482
10483 fi
10484
10485 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10486 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10487 if test "${ac_cv_header_stdc+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 cat >conftest.$ac_ext <<_ACEOF
10491 #line $LINENO "configure"
10492 /* confdefs.h. */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 #include <stdlib.h>
10498 #include <stdarg.h>
10499 #include <string.h>
10500 #include <float.h>
10501
10502 int
10503 main ()
10504 {
10505
10506 ;
10507 return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext
10511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10512 (eval $ac_compile) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -s conftest.$ac_objext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_header_stdc=yes
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 ac_cv_header_stdc=no
10528 fi
10529 rm -f conftest.$ac_objext conftest.$ac_ext
10530
10531 if test $ac_cv_header_stdc = yes; then
10532 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10533 cat >conftest.$ac_ext <<_ACEOF
10534 #line $LINENO "configure"
10535 /* confdefs.h. */
10536 _ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10540 #include <string.h>
10541
10542 _ACEOF
10543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10544 $EGREP "memchr" >/dev/null 2>&1; then
10545 :
10546 else
10547 ac_cv_header_stdc=no
10548 fi
10549 rm -f conftest*
10550
10551 fi
10552
10553 if test $ac_cv_header_stdc = yes; then
10554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10555 cat >conftest.$ac_ext <<_ACEOF
10556 #line $LINENO "configure"
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 #include <stdlib.h>
10563
10564 _ACEOF
10565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10566 $EGREP "free" >/dev/null 2>&1; then
10567 :
10568 else
10569 ac_cv_header_stdc=no
10570 fi
10571 rm -f conftest*
10572
10573 fi
10574
10575 if test $ac_cv_header_stdc = yes; then
10576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10577 if test "$cross_compiling" = yes; then
10578 :
10579 else
10580 cat >conftest.$ac_ext <<_ACEOF
10581 #line $LINENO "configure"
10582 /* confdefs.h. */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 #include <ctype.h>
10588 #if ((' ' & 0x0FF) == 0x020)
10589 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10590 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10591 #else
10592 # define ISLOWER(c) \
10593 (('a' <= (c) && (c) <= 'i') \
10594 || ('j' <= (c) && (c) <= 'r') \
10595 || ('s' <= (c) && (c) <= 'z'))
10596 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10597 #endif
10598
10599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10600 int
10601 main ()
10602 {
10603 int i;
10604 for (i = 0; i < 256; i++)
10605 if (XOR (islower (i), ISLOWER (i))
10606 || toupper (i) != TOUPPER (i))
10607 exit(2);
10608 exit (0);
10609 }
10610 _ACEOF
10611 rm -f conftest$ac_exeext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613 (eval $ac_link) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 :
10623 else
10624 echo "$as_me: program exited with status $ac_status" >&5
10625 echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10627
10628 ( exit $ac_status )
10629 ac_cv_header_stdc=no
10630 fi
10631 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10632 fi
10633 fi
10634 fi
10635 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10636 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10637 if test $ac_cv_header_stdc = yes; then
10638
10639 cat >>confdefs.h <<\_ACEOF
10640 #define STDC_HEADERS 1
10641 _ACEOF
10642
10643 fi
10644
10645
10646
10647
10648
10649
10650
10651 for ac_header in sys/types.h fcntl.h signal.h unistd.h utime.h
10652 do
10653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10655 echo "$as_me:$LINENO: checking for $ac_header" >&5
10656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 fi
10660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10662 else
10663 # Is the header compilable?
10664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10666 cat >conftest.$ac_ext <<_ACEOF
10667 #line $LINENO "configure"
10668 /* confdefs.h. */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 $ac_includes_default
10674 #include <$ac_header>
10675 _ACEOF
10676 rm -f conftest.$ac_objext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10678 (eval $ac_compile) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -s conftest.$ac_objext'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
10688 ac_header_compiler=yes
10689 else
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693 ac_header_compiler=no
10694 fi
10695 rm -f conftest.$ac_objext conftest.$ac_ext
10696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10697 echo "${ECHO_T}$ac_header_compiler" >&6
10698
10699 # Is the header present?
10700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10702 cat >conftest.$ac_ext <<_ACEOF
10703 #line $LINENO "configure"
10704 /* confdefs.h. */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 #include <$ac_header>
10710 _ACEOF
10711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } >/dev/null; then
10719 if test -s conftest.err; then
10720 ac_cpp_err=$ac_c_preproc_warn_flag
10721 else
10722 ac_cpp_err=
10723 fi
10724 else
10725 ac_cpp_err=yes
10726 fi
10727 if test -z "$ac_cpp_err"; then
10728 ac_header_preproc=yes
10729 else
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10732
10733 ac_header_preproc=no
10734 fi
10735 rm -f conftest.err conftest.$ac_ext
10736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10737 echo "${ECHO_T}$ac_header_preproc" >&6
10738
10739 # So? What about this header?
10740 case $ac_header_compiler:$ac_header_preproc in
10741 yes:no )
10742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10746 (
10747 cat <<\_ASBOX
10748 ## ------------------------------------ ##
10749 ## Report this to [email protected]. ##
10750 ## ------------------------------------ ##
10751 _ASBOX
10752 ) |
10753 sed "s/^/$as_me: WARNING: /" >&2
10754 ;;
10755 no:yes )
10756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10762 (
10763 cat <<\_ASBOX
10764 ## ------------------------------------ ##
10765 ## Report this to [email protected]. ##
10766 ## ------------------------------------ ##
10767 _ASBOX
10768 ) |
10769 sed "s/^/$as_me: WARNING: /" >&2
10770 ;;
10771 esac
10772 echo "$as_me:$LINENO: checking for $ac_header" >&5
10773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777 eval "$as_ac_Header=$ac_header_preproc"
10778 fi
10779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10781
10782 fi
10783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10784 cat >>confdefs.h <<_ACEOF
10785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10786 _ACEOF
10787
10788 fi
10789
10790 done
10791
10792
10793
10794
10795
10796
10797
10798
10799 for ac_func in fcntl fsync lstat stat umask utime memmove
10800 do
10801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10802 echo "$as_me:$LINENO: checking for $ac_func" >&5
10803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10804 if eval "test \"\${$as_ac_var+set}\" = set"; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807 cat >conftest.$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 /* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char $ac_func (); below.
10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817 <limits.h> exists even on freestanding compilers. */
10818 #ifdef __STDC__
10819 # include <limits.h>
10820 #else
10821 # include <assert.h>
10822 #endif
10823 /* Override any gcc2 internal prototype to avoid an error. */
10824 #ifdef __cplusplus
10825 extern "C"
10826 {
10827 #endif
10828 /* We use char because int might match the return type of a gcc2
10829 builtin and then its argument prototype would still apply. */
10830 char $ac_func ();
10831 /* The GNU C library defines this for functions which it implements
10832 to always fail with ENOSYS. Some functions are actually named
10833 something starting with __ and the normal name is an alias. */
10834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10835 choke me
10836 #else
10837 char (*f) () = $ac_func;
10838 #endif
10839 #ifdef __cplusplus
10840 }
10841 #endif
10842
10843 int
10844 main ()
10845 {
10846 return f != $ac_func;
10847 ;
10848 return 0;
10849 }
10850 _ACEOF
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10853 (eval $ac_link) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -s conftest$ac_exeext'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 eval "$as_ac_var=yes"
10864 else
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10867
10868 eval "$as_ac_var=no"
10869 fi
10870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10871 fi
10872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10874 if test `eval echo '${'$as_ac_var'}'` = yes; then
10875 cat >>confdefs.h <<_ACEOF
10876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10877 _ACEOF
10878
10879 fi
10880 done
10881
10882 echo "$as_me:$LINENO: checking for size_t" >&5
10883 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10884 if test "${ac_cv_type_size_t+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887 cat >conftest.$ac_ext <<_ACEOF
10888 #line $LINENO "configure"
10889 /* confdefs.h. */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 $ac_includes_default
10895 int
10896 main ()
10897 {
10898 if ((size_t *) 0)
10899 return 0;
10900 if (sizeof (size_t))
10901 return 0;
10902 ;
10903 return 0;
10904 }
10905 _ACEOF
10906 rm -f conftest.$ac_objext
10907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10908 (eval $ac_compile) 2>&5
10909 ac_status=$?
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try='test -s conftest.$ac_objext'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 ac_cv_type_size_t=yes
10919 else
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10922
10923 ac_cv_type_size_t=no
10924 fi
10925 rm -f conftest.$ac_objext conftest.$ac_ext
10926 fi
10927 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10928 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10929 if test $ac_cv_type_size_t = yes; then
10930 :
10931 else
10932
10933 cat >>confdefs.h <<_ACEOF
10934 #define size_t unsigned
10935 _ACEOF
10936
10937 fi
10938
10939
10940 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10941 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10942 if test "${ac_cv_c_const+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945 cat >conftest.$ac_ext <<_ACEOF
10946 #line $LINENO "configure"
10947 /* confdefs.h. */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10952
10953 int
10954 main ()
10955 {
10956 /* FIXME: Include the comments suggested by Paul. */
10957 #ifndef __cplusplus
10958 /* Ultrix mips cc rejects this. */
10959 typedef int charset[2];
10960 const charset x;
10961 /* SunOS 4.1.1 cc rejects this. */
10962 char const *const *ccp;
10963 char **p;
10964 /* NEC SVR4.0.2 mips cc rejects this. */
10965 struct point {int x, y;};
10966 static struct point const zero = {0,0};
10967 /* AIX XL C 1.02.0.0 rejects this.
10968 It does not let you subtract one const X* pointer from another in
10969 an arm of an if-expression whose if-part is not a constant
10970 expression */
10971 const char *g = "string";
10972 ccp = &g + (g ? g-g : 0);
10973 /* HPUX 7.0 cc rejects these. */
10974 ++ccp;
10975 p = (char**) ccp;
10976 ccp = (char const *const *) p;
10977 { /* SCO 3.2v4 cc rejects this. */
10978 char *t;
10979 char const *s = 0 ? (char *) 0 : (char const *) 0;
10980
10981 *t++ = 0;
10982 }
10983 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10984 int x[] = {25, 17};
10985 const int *foo = &x[0];
10986 ++foo;
10987 }
10988 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10989 typedef const int *iptr;
10990 iptr p = 0;
10991 ++p;
10992 }
10993 { /* AIX XL C 1.02.0.0 rejects this saying
10994 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10995 struct s { int j; const int *ap[3]; };
10996 struct s *b; b->j = 5;
10997 }
10998 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10999 const int foo = 10;
11000 }
11001 #endif
11002
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11009 (eval $ac_compile) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -s conftest.$ac_objext'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 ac_cv_c_const=yes
11020 else
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024 ac_cv_c_const=no
11025 fi
11026 rm -f conftest.$ac_objext conftest.$ac_ext
11027 fi
11028 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11029 echo "${ECHO_T}$ac_cv_c_const" >&6
11030 if test $ac_cv_c_const = no; then
11031
11032 cat >>confdefs.h <<\_ACEOF
11033 #define const
11034 _ACEOF
11035
11036 fi
11037
11038
11039
11040 ac_config_files="$ac_config_files Makefile"
11041
11042 ac_config_files="$ac_config_files src/Makefile"
11043
11044 ac_config_files="$ac_config_files docs/Makefile"
11045
11046 ac_config_files="$ac_config_files libgringotts.spec"
11047
11048 ac_config_files="$ac_config_files libgringotts.pc"
11049
11050 cat >confcache <<\_ACEOF
11051 # This file is a shell script that caches the results of configure
11052 # tests run on this system so they can be shared between configure
11053 # scripts and configure runs, see configure's option --config-cache.
11054 # It is not useful on other systems. If it contains results you don't
11055 # want to keep, you may remove or edit it.
11056 #
11057 # config.status only pays attention to the cache file if you give it
11058 # the --recheck option to rerun configure.
11059 #
11060 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11061 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11062 # following values.
11063
11064 _ACEOF
11065
11066 # The following way of writing the cache mishandles newlines in values,
11067 # but we know of no workaround that is simple, portable, and efficient.
11068 # So, don't put newlines in cache variables' values.
11069 # Ultrix sh set writes to stderr and can't be redirected directly,
11070 # and sets the high bit in the cache file unless we assign to the vars.
11071 {
11072 (set) 2>&1 |
11073 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11074 *ac_space=\ *)
11075 # `set' does not quote correctly, so add quotes (double-quote
11076 # substitution turns \\\\ into \\, and sed turns \\ into \).
11077 sed -n \
11078 "s/'/'\\\\''/g;
11079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11080 ;;
11081 *)
11082 # `set' quotes correctly as required by POSIX, so do not add quotes.
11083 sed -n \
11084 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11085 ;;
11086 esac;
11087 } |
11088 sed '
11089 t clear
11090 : clear
11091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11092 t end
11093 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11094 : end' >>confcache
11095 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11096 if test -w $cache_file; then
11097 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11098 cat confcache >$cache_file
11099 else
11100 echo "not updating unwritable cache $cache_file"
11101 fi
11102 fi
11103 rm -f confcache
11104
11105 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11106 # Let make expand exec_prefix.
11107 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11108
11109 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11110 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11111 # trailing colons and then remove the whole line if VPATH becomes empty
11112 # (actually we leave an empty line to preserve line numbers).
11113 if test "x$srcdir" = x.; then
11114 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11115 s/:*\$(srcdir):*/:/;
11116 s/:*\${srcdir}:*/:/;
11117 s/:*@srcdir@:*/:/;
11118 s/^\([^=]*=[ ]*\):*/\1/;
11119 s/:*$//;
11120 s/^[^=]*=[ ]*$//;
11121 }'
11122 fi
11123
11124 DEFS=-DHAVE_CONFIG_H
11125
11126 ac_libobjs=
11127 ac_ltlibobjs=
11128 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11129 # 1. Remove the extension, and $U if already installed.
11130 ac_i=`echo "$ac_i" |
11131 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11132 # 2. Add them.
11133 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11134 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11135 done
11136 LIBOBJS=$ac_libobjs
11137
11138 LTLIBOBJS=$ac_ltlibobjs
11139
11140
11141 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11142 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11143 Usually this means the macro was only invoked conditionally." >&5
11144 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11145 Usually this means the macro was only invoked conditionally." >&2;}
11146 { (exit 1); exit 1; }; }
11147 fi
11148 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11149 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11150 Usually this means the macro was only invoked conditionally." >&5
11151 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11152 Usually this means the macro was only invoked conditionally." >&2;}
11153 { (exit 1); exit 1; }; }
11154 fi
11155 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11156 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11157 Usually this means the macro was only invoked conditionally." >&5
11158 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11159 Usually this means the macro was only invoked conditionally." >&2;}
11160 { (exit 1); exit 1; }; }
11161 fi
11162
11163 : ${CONFIG_STATUS=./config.status}
11164 ac_clean_files_save=$ac_clean_files
11165 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11166 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11167 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11168 cat >$CONFIG_STATUS <<_ACEOF
11169 #! $SHELL
11170 # Generated by $as_me.
11171 # Run this file to recreate the current configuration.
11172 # Compiler output produced by configure, useful for debugging
11173 # configure, is in config.log if it exists.
11174
11175 debug=false
11176 ac_cs_recheck=false
11177 ac_cs_silent=false
11178 SHELL=\${CONFIG_SHELL-$SHELL}
11179 _ACEOF
11180
11181 cat >>$CONFIG_STATUS <<\_ACEOF
11182 ## --------------------- ##
11183 ## M4sh Initialization. ##
11184 ## --------------------- ##
11185
11186 # Be Bourne compatible
11187 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11188 emulate sh
11189 NULLCMD=:
11190 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11191 # is contrary to our usage. Disable this feature.
11192 alias -g '${1+"$@"}'='"$@"'
11193 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11194 set -o posix
11195 fi
11196
11197 # Support unset when possible.
11198 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11199 as_unset=unset
11200 else
11201 as_unset=false
11202 fi
11203
11204
11205 # Work around bugs in pre-3.0 UWIN ksh.
11206 $as_unset ENV MAIL MAILPATH
11207 PS1='$ '
11208 PS2='> '
11209 PS4='+ '
11210
11211 # NLS nuisances.
11212 for as_var in \
11213 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11214 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11215 LC_TELEPHONE LC_TIME
11216 do
11217 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11218 eval $as_var=C; export $as_var
11219 else
11220 $as_unset $as_var
11221 fi
11222 done
11223
11224 # Required to use basename.
11225 if expr a : '\(a\)' >/dev/null 2>&1; then
11226 as_expr=expr
11227 else
11228 as_expr=false
11229 fi
11230
11231 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11232 as_basename=basename
11233 else
11234 as_basename=false
11235 fi
11236
11237
11238 # Name of the executable.
11239 as_me=`$as_basename "$0" ||
11240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11241 X"$0" : 'X\(//\)$' \| \
11242 X"$0" : 'X\(/\)$' \| \
11243 . : '\(.\)' 2>/dev/null ||
11244 echo X/"$0" |
11245 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11246 /^X\/\(\/\/\)$/{ s//\1/; q; }
11247 /^X\/\(\/\).*/{ s//\1/; q; }
11248 s/.*/./; q'`
11249
11250
11251 # PATH needs CR, and LINENO needs CR and PATH.
11252 # Avoid depending upon Character Ranges.
11253 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11254 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11255 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11256 as_cr_digits='0123456789'
11257 as_cr_alnum=$as_cr_Letters$as_cr_digits
11258
11259 # The user is always right.
11260 if test "${PATH_SEPARATOR+set}" != set; then
11261 echo "#! /bin/sh" >conf$$.sh
11262 echo "exit 0" >>conf$$.sh
11263 chmod +x conf$$.sh
11264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11265 PATH_SEPARATOR=';'
11266 else
11267 PATH_SEPARATOR=:
11268 fi
11269 rm -f conf$$.sh
11270 fi
11271
11272
11273 as_lineno_1=$LINENO
11274 as_lineno_2=$LINENO
11275 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11276 test "x$as_lineno_1" != "x$as_lineno_2" &&
11277 test "x$as_lineno_3" = "x$as_lineno_2" || {
11278 # Find who we are. Look in the path if we contain no path at all
11279 # relative or not.
11280 case $0 in
11281 *[\\/]* ) as_myself=$0 ;;
11282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11284 do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11288 done
11289
11290 ;;
11291 esac
11292 # We did not find ourselves, most probably we were run as `sh COMMAND'
11293 # in which case we are not to be found in the path.
11294 if test "x$as_myself" = x; then
11295 as_myself=$0
11296 fi
11297 if test ! -f "$as_myself"; then
11298 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11299 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11300 { (exit 1); exit 1; }; }
11301 fi
11302 case $CONFIG_SHELL in
11303 '')
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11306 do
11307 IFS=$as_save_IFS
11308 test -z "$as_dir" && as_dir=.
11309 for as_base in sh bash ksh sh5; do
11310 case $as_dir in
11311 /*)
11312 if ("$as_dir/$as_base" -c '
11313 as_lineno_1=$LINENO
11314 as_lineno_2=$LINENO
11315 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11316 test "x$as_lineno_1" != "x$as_lineno_2" &&
11317 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11318 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11319 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11320 CONFIG_SHELL=$as_dir/$as_base
11321 export CONFIG_SHELL
11322 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11323 fi;;
11324 esac
11325 done
11326 done
11327 ;;
11328 esac
11329
11330 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11331 # uniformly replaced by the line number. The first 'sed' inserts a
11332 # line-number line before each line; the second 'sed' does the real
11333 # work. The second script uses 'N' to pair each line-number line
11334 # with the numbered line, and appends trailing '-' during
11335 # substitution so that $LINENO is not a special case at line end.
11336 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11337 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11338 sed '=' <$as_myself |
11339 sed '
11340 N
11341 s,$,-,
11342 : loop
11343 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11344 t loop
11345 s,-$,,
11346 s,^['$as_cr_digits']*\n,,
11347 ' >$as_me.lineno &&
11348 chmod +x $as_me.lineno ||
11349 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11350 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11351 { (exit 1); exit 1; }; }
11352
11353 # Don't try to exec as it changes $[0], causing all sort of problems
11354 # (the dirname of $[0] is not the place where we might find the
11355 # original and so on. Autoconf is especially sensible to this).
11356 . ./$as_me.lineno
11357 # Exit status is that of the last command.
11358 exit
11359 }
11360
11361
11362 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11363 *c*,-n*) ECHO_N= ECHO_C='
11364 ' ECHO_T=' ' ;;
11365 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11366 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11367 esac
11368
11369 if expr a : '\(a\)' >/dev/null 2>&1; then
11370 as_expr=expr
11371 else
11372 as_expr=false
11373 fi
11374
11375 rm -f conf$$ conf$$.exe conf$$.file
11376 echo >conf$$.file
11377 if ln -s conf$$.file conf$$ 2>/dev/null; then
11378 # We could just check for DJGPP; but this test a) works b) is more generic
11379 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11380 if test -f conf$$.exe; then
11381 # Don't use ln at all; we don't have any links
11382 as_ln_s='cp -p'
11383 else
11384 as_ln_s='ln -s'
11385 fi
11386 elif ln conf$$.file conf$$ 2>/dev/null; then
11387 as_ln_s=ln
11388 else
11389 as_ln_s='cp -p'
11390 fi
11391 rm -f conf$$ conf$$.exe conf$$.file
11392
11393 if mkdir -p . 2>/dev/null; then
11394 as_mkdir_p=:
11395 else
11396 as_mkdir_p=false
11397 fi
11398
11399 as_executable_p="test -f"
11400
11401 # Sed expression to map a string onto a valid CPP name.
11402 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11403
11404 # Sed expression to map a string onto a valid variable name.
11405 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11406
11407
11408 # IFS
11409 # We need space, tab and new line, in precisely that order.
11410 as_nl='
11411 '
11412 IFS=" $as_nl"
11413
11414 # CDPATH.
11415 $as_unset CDPATH
11416
11417 exec 6>&1
11418
11419 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11420 # report actual input values of CONFIG_FILES etc. instead of their
11421 # values after options handling. Logging --version etc. is OK.
11422 exec 5>>config.log
11423 {
11424 echo
11425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11426 ## Running $as_me. ##
11427 _ASBOX
11428 } >&5
11429 cat >&5 <<_CSEOF
11430
11431 This file was extended by libgringotts $as_me 1.2.1, which was
11432 generated by GNU Autoconf 2.57. Invocation command line was
11433
11434 CONFIG_FILES = $CONFIG_FILES
11435 CONFIG_HEADERS = $CONFIG_HEADERS
11436 CONFIG_LINKS = $CONFIG_LINKS
11437 CONFIG_COMMANDS = $CONFIG_COMMANDS
11438 $ $0 $@
11439
11440 _CSEOF
11441 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11442 echo >&5
11443 _ACEOF
11444
11445 # Files that config.status was made for.
11446 if test -n "$ac_config_files"; then
11447 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11448 fi
11449
11450 if test -n "$ac_config_headers"; then
11451 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11452 fi
11453
11454 if test -n "$ac_config_links"; then
11455 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11456 fi
11457
11458 if test -n "$ac_config_commands"; then
11459 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11460 fi
11461
11462 cat >>$CONFIG_STATUS <<\_ACEOF
11463
11464 ac_cs_usage="\
11465 \`$as_me' instantiates files from templates according to the
11466 current configuration.
11467
11468 Usage: $0 [OPTIONS] [FILE]...
11469
11470 -h, --help print this help, then exit
11471 -V, --version print version number, then exit
11472 -q, --quiet do not print progress messages
11473 -d, --debug don't remove temporary files
11474 --recheck update $as_me by reconfiguring in the same conditions
11475 --file=FILE[:TEMPLATE]
11476 instantiate the configuration file FILE
11477 --header=FILE[:TEMPLATE]
11478 instantiate the configuration header FILE
11479
11480 Configuration files:
11481 $config_files
11482
11483 Configuration headers:
11484 $config_headers
11485
11486 Configuration commands:
11487 $config_commands
11488
11489 Report bugs to <[email protected]>."
11490 _ACEOF
11491
11492 cat >>$CONFIG_STATUS <<_ACEOF
11493 ac_cs_version="\\
11494 libgringotts config.status 1.2.1
11495 configured by $0, generated by GNU Autoconf 2.57,
11496 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11497
11498 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11499 Free Software Foundation, Inc.
11500 This config.status script is free software; the Free Software Foundation
11501 gives unlimited permission to copy, distribute and modify it."
11502 srcdir=$srcdir
11503 INSTALL="$INSTALL"
11504 _ACEOF
11505
11506 cat >>$CONFIG_STATUS <<\_ACEOF
11507 # If no file are specified by the user, then we need to provide default
11508 # value. By we need to know if files were specified by the user.
11509 ac_need_defaults=:
11510 while test $# != 0
11511 do
11512 case $1 in
11513 --*=*)
11514 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11515 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11516 ac_shift=:
11517 ;;
11518 -*)
11519 ac_option=$1
11520 ac_optarg=$2
11521 ac_shift=shift
11522 ;;
11523 *) # This is not an option, so the user has probably given explicit
11524 # arguments.
11525 ac_option=$1
11526 ac_need_defaults=false;;
11527 esac
11528
11529 case $ac_option in
11530 # Handling of the options.
11531 _ACEOF
11532 cat >>$CONFIG_STATUS <<\_ACEOF
11533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11534 ac_cs_recheck=: ;;
11535 --version | --vers* | -V )
11536 echo "$ac_cs_version"; exit 0 ;;
11537 --he | --h)
11538 # Conflict between --help and --header
11539 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11540 Try \`$0 --help' for more information." >&5
11541 echo "$as_me: error: ambiguous option: $1
11542 Try \`$0 --help' for more information." >&2;}
11543 { (exit 1); exit 1; }; };;
11544 --help | --hel | -h )
11545 echo "$ac_cs_usage"; exit 0 ;;
11546 --debug | --d* | -d )
11547 debug=: ;;
11548 --file | --fil | --fi | --f )
11549 $ac_shift
11550 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11551 ac_need_defaults=false;;
11552 --header | --heade | --head | --hea )
11553 $ac_shift
11554 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11555 ac_need_defaults=false;;
11556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11558 ac_cs_silent=: ;;
11559
11560 # This is an error.
11561 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11562 Try \`$0 --help' for more information." >&5
11563 echo "$as_me: error: unrecognized option: $1
11564 Try \`$0 --help' for more information." >&2;}
11565 { (exit 1); exit 1; }; } ;;
11566
11567 *) ac_config_targets="$ac_config_targets $1" ;;
11568
11569 esac
11570 shift
11571 done
11572
11573 ac_configure_extra_args=
11574
11575 if $ac_cs_silent; then
11576 exec 6>/dev/null
11577 ac_configure_extra_args="$ac_configure_extra_args --silent"
11578 fi
11579
11580 _ACEOF
11581 cat >>$CONFIG_STATUS <<_ACEOF
11582 if \$ac_cs_recheck; then
11583 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11584 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11585 fi
11586
11587 _ACEOF
11588
11589 cat >>$CONFIG_STATUS <<_ACEOF
11590 #
11591 # INIT-COMMANDS section.
11592 #
11593
11594 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11595
11596 _ACEOF
11597
11598
11599
11600 cat >>$CONFIG_STATUS <<\_ACEOF
11601 for ac_config_target in $ac_config_targets
11602 do
11603 case "$ac_config_target" in
11604 # Handling of arguments.
11605 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11606 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11607 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
11608 "libgringotts.spec" ) CONFIG_FILES="$CONFIG_FILES libgringotts.spec" ;;
11609 "libgringotts.pc" ) CONFIG_FILES="$CONFIG_FILES libgringotts.pc" ;;
11610 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11611 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11612 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11613 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11614 { (exit 1); exit 1; }; };;
11615 esac
11616 done
11617
11618 # If the user did not use the arguments to specify the items to instantiate,
11619 # then the envvar interface is used. Set only those that are not.
11620 # We use the long form for the default assignment because of an extremely
11621 # bizarre bug on SunOS 4.1.3.
11622 if $ac_need_defaults; then
11623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11625 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11626 fi
11627
11628 # Have a temporary directory for convenience. Make it in the build tree
11629 # simply because there is no reason to put it here, and in addition,
11630 # creating and moving files from /tmp can sometimes cause problems.
11631 # Create a temporary directory, and hook for its removal unless debugging.
11632 $debug ||
11633 {
11634 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11635 trap '{ (exit 1); exit 1; }' 1 2 13 15
11636 }
11637
11638 # Create a (secure) tmp directory for tmp files.
11639
11640 {
11641 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11642 test -n "$tmp" && test -d "$tmp"
11643 } ||
11644 {
11645 tmp=./confstat$$-$RANDOM
11646 (umask 077 && mkdir $tmp)
11647 } ||
11648 {
11649 echo "$me: cannot create a temporary directory in ." >&2
11650 { (exit 1); exit 1; }
11651 }
11652
11653 _ACEOF
11654
11655 cat >>$CONFIG_STATUS <<_ACEOF
11656
11657 #
11658 # CONFIG_FILES section.
11659 #
11660
11661 # No need to generate the scripts if there are no CONFIG_FILES.
11662 # This happens for instance when ./config.status config.h
11663 if test -n "\$CONFIG_FILES"; then
11664 # Protect against being on the right side of a sed subst in config.status.
11665 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11666 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11667 s,@SHELL@,$SHELL,;t t
11668 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11669 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11670 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11671 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11672 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11673 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11674 s,@exec_prefix@,$exec_prefix,;t t
11675 s,@prefix@,$prefix,;t t
11676 s,@program_transform_name@,$program_transform_name,;t t
11677 s,@bindir@,$bindir,;t t
11678 s,@sbindir@,$sbindir,;t t
11679 s,@libexecdir@,$libexecdir,;t t
11680 s,@datadir@,$datadir,;t t
11681 s,@sysconfdir@,$sysconfdir,;t t
11682 s,@sharedstatedir@,$sharedstatedir,;t t
11683 s,@localstatedir@,$localstatedir,;t t
11684 s,@libdir@,$libdir,;t t
11685 s,@includedir@,$includedir,;t t
11686 s,@oldincludedir@,$oldincludedir,;t t
11687 s,@infodir@,$infodir,;t t
11688 s,@mandir@,$mandir,;t t
11689 s,@build_alias@,$build_alias,;t t
11690 s,@host_alias@,$host_alias,;t t
11691 s,@target_alias@,$target_alias,;t t
11692 s,@DEFS@,$DEFS,;t t
11693 s,@ECHO_C@,$ECHO_C,;t t
11694 s,@ECHO_N@,$ECHO_N,;t t
11695 s,@ECHO_T@,$ECHO_T,;t t
11696 s,@LIBS@,$LIBS,;t t
11697 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11698 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11699 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11700 s,@CYGPATH_W@,$CYGPATH_W,;t t
11701 s,@PACKAGE@,$PACKAGE,;t t
11702 s,@VERSION@,$VERSION,;t t
11703 s,@ACLOCAL@,$ACLOCAL,;t t
11704 s,@AUTOCONF@,$AUTOCONF,;t t
11705 s,@AUTOMAKE@,$AUTOMAKE,;t t
11706 s,@AUTOHEADER@,$AUTOHEADER,;t t
11707 s,@MAKEINFO@,$MAKEINFO,;t t
11708 s,@AMTAR@,$AMTAR,;t t
11709 s,@install_sh@,$install_sh,;t t
11710 s,@STRIP@,$STRIP,;t t
11711 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11712 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11713 s,@AWK@,$AWK,;t t
11714 s,@SET_MAKE@,$SET_MAKE,;t t
11715 s,@build@,$build,;t t
11716 s,@build_cpu@,$build_cpu,;t t
11717 s,@build_vendor@,$build_vendor,;t t
11718 s,@build_os@,$build_os,;t t
11719 s,@host@,$host,;t t
11720 s,@host_cpu@,$host_cpu,;t t
11721 s,@host_vendor@,$host_vendor,;t t
11722 s,@host_os@,$host_os,;t t
11723 s,@CC@,$CC,;t t
11724 s,@CFLAGS@,$CFLAGS,;t t
11725 s,@LDFLAGS@,$LDFLAGS,;t t
11726 s,@CPPFLAGS@,$CPPFLAGS,;t t
11727 s,@ac_ct_CC@,$ac_ct_CC,;t t
11728 s,@EXEEXT@,$EXEEXT,;t t
11729 s,@OBJEXT@,$OBJEXT,;t t
11730 s,@DEPDIR@,$DEPDIR,;t t
11731 s,@am__include@,$am__include,;t t
11732 s,@am__quote@,$am__quote,;t t
11733 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11734 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11735 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11736 s,@CCDEPMODE@,$CCDEPMODE,;t t
11737 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11738 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11739 s,@LN_S@,$LN_S,;t t
11740 s,@ECHO@,$ECHO,;t t
11741 s,@RANLIB@,$RANLIB,;t t
11742 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11743 s,@CPP@,$CPP,;t t
11744 s,@EGREP@,$EGREP,;t t
11745 s,@LIBTOOL@,$LIBTOOL,;t t
11746 s,@LIBGRG_INTERFACE@,$LIBGRG_INTERFACE,;t t
11747 s,@LIBGRG_RELEASE@,$LIBGRG_RELEASE,;t t
11748 s,@LIBGRG_AGE@,$LIBGRG_AGE,;t t
11749 s,@pcdir@,$pcdir,;t t
11750 s,@X_CFLAGS@,$X_CFLAGS,;t t
11751 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11752 s,@X_LIBS@,$X_LIBS,;t t
11753 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11754 s,@LIBZ@,$LIBZ,;t t
11755 s,@LIBBZ2@,$LIBBZ2,;t t
11756 s,@MCRYPT_CFLAGS@,$MCRYPT_CFLAGS,;t t
11757 s,@MCRYPT_LIBS@,$MCRYPT_LIBS,;t t
11758 s,@MHASH@,$MHASH,;t t
11759 s,@LIBOBJS@,$LIBOBJS,;t t
11760 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11761 CEOF
11762
11763 _ACEOF
11764
11765 cat >>$CONFIG_STATUS <<\_ACEOF
11766 # Split the substitutions into bite-sized pieces for seds with
11767 # small command number limits, like on Digital OSF/1 and HP-UX.
11768 ac_max_sed_lines=48
11769 ac_sed_frag=1 # Number of current file.
11770 ac_beg=1 # First line for current file.
11771 ac_end=$ac_max_sed_lines # Line after last line for current file.
11772 ac_more_lines=:
11773 ac_sed_cmds=
11774 while $ac_more_lines; do
11775 if test $ac_beg -gt 1; then
11776 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11777 else
11778 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11779 fi
11780 if test ! -s $tmp/subs.frag; then
11781 ac_more_lines=false
11782 else
11783 # The purpose of the label and of the branching condition is to
11784 # speed up the sed processing (if there are no `@' at all, there
11785 # is no need to browse any of the substitutions).
11786 # These are the two extra sed commands mentioned above.
11787 (echo ':t
11788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11789 if test -z "$ac_sed_cmds"; then
11790 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11791 else
11792 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11793 fi
11794 ac_sed_frag=`expr $ac_sed_frag + 1`
11795 ac_beg=$ac_end
11796 ac_end=`expr $ac_end + $ac_max_sed_lines`
11797 fi
11798 done
11799 if test -z "$ac_sed_cmds"; then
11800 ac_sed_cmds=cat
11801 fi
11802 fi # test -n "$CONFIG_FILES"
11803
11804 _ACEOF
11805 cat >>$CONFIG_STATUS <<\_ACEOF
11806 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11808 case $ac_file in
11809 - | *:- | *:-:* ) # input from stdin
11810 cat >$tmp/stdin
11811 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11813 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11815 * ) ac_file_in=$ac_file.in ;;
11816 esac
11817
11818 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11819 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11821 X"$ac_file" : 'X\(//\)[^/]' \| \
11822 X"$ac_file" : 'X\(//\)$' \| \
11823 X"$ac_file" : 'X\(/\)' \| \
11824 . : '\(.\)' 2>/dev/null ||
11825 echo X"$ac_file" |
11826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11828 /^X\(\/\/\)$/{ s//\1/; q; }
11829 /^X\(\/\).*/{ s//\1/; q; }
11830 s/.*/./; q'`
11831 { if $as_mkdir_p; then
11832 mkdir -p "$ac_dir"
11833 else
11834 as_dir="$ac_dir"
11835 as_dirs=
11836 while test ! -d "$as_dir"; do
11837 as_dirs="$as_dir $as_dirs"
11838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11840 X"$as_dir" : 'X\(//\)[^/]' \| \
11841 X"$as_dir" : 'X\(//\)$' \| \
11842 X"$as_dir" : 'X\(/\)' \| \
11843 . : '\(.\)' 2>/dev/null ||
11844 echo X"$as_dir" |
11845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11847 /^X\(\/\/\)$/{ s//\1/; q; }
11848 /^X\(\/\).*/{ s//\1/; q; }
11849 s/.*/./; q'`
11850 done
11851 test ! -n "$as_dirs" || mkdir $as_dirs
11852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11854 { (exit 1); exit 1; }; }; }
11855
11856 ac_builddir=.
11857
11858 if test "$ac_dir" != .; then
11859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11860 # A "../" for each directory in $ac_dir_suffix.
11861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11862 else
11863 ac_dir_suffix= ac_top_builddir=
11864 fi
11865
11866 case $srcdir in
11867 .) # No --srcdir option. We are building in place.
11868 ac_srcdir=.
11869 if test -z "$ac_top_builddir"; then
11870 ac_top_srcdir=.
11871 else
11872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11873 fi ;;
11874 [\\/]* | ?:[\\/]* ) # Absolute path.
11875 ac_srcdir=$srcdir$ac_dir_suffix;
11876 ac_top_srcdir=$srcdir ;;
11877 *) # Relative path.
11878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11880 esac
11881 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11882 # absolute.
11883 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11884 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11885 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11886 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11887
11888
11889 case $INSTALL in
11890 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11891 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11892 esac
11893
11894 if test x"$ac_file" != x-; then
11895 { echo "$as_me:$LINENO: creating $ac_file" >&5
11896 echo "$as_me: creating $ac_file" >&6;}
11897 rm -f "$ac_file"
11898 fi
11899 # Let's still pretend it is `configure' which instantiates (i.e., don't
11900 # use $as_me), people would be surprised to read:
11901 # /* config.h. Generated by config.status. */
11902 if test x"$ac_file" = x-; then
11903 configure_input=
11904 else
11905 configure_input="$ac_file. "
11906 fi
11907 configure_input=$configure_input"Generated from `echo $ac_file_in |
11908 sed 's,.*/,,'` by configure."
11909
11910 # First look for the input files in the build tree, otherwise in the
11911 # src tree.
11912 ac_file_inputs=`IFS=:
11913 for f in $ac_file_in; do
11914 case $f in
11915 -) echo $tmp/stdin ;;
11916 [\\/$]*)
11917 # Absolute (can't be DOS-style, as IFS=:)
11918 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11919 echo "$as_me: error: cannot find input file: $f" >&2;}
11920 { (exit 1); exit 1; }; }
11921 echo $f;;
11922 *) # Relative
11923 if test -f "$f"; then
11924 # Build tree
11925 echo $f
11926 elif test -f "$srcdir/$f"; then
11927 # Source tree
11928 echo $srcdir/$f
11929 else
11930 # /dev/null tree
11931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11932 echo "$as_me: error: cannot find input file: $f" >&2;}
11933 { (exit 1); exit 1; }; }
11934 fi;;
11935 esac
11936 done` || { (exit 1); exit 1; }
11937 _ACEOF
11938 cat >>$CONFIG_STATUS <<_ACEOF
11939 sed "$ac_vpsub
11940 $extrasub
11941 _ACEOF
11942 cat >>$CONFIG_STATUS <<\_ACEOF
11943 :t
11944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11945 s,@configure_input@,$configure_input,;t t
11946 s,@srcdir@,$ac_srcdir,;t t
11947 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11948 s,@top_srcdir@,$ac_top_srcdir,;t t
11949 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11950 s,@builddir@,$ac_builddir,;t t
11951 s,@abs_builddir@,$ac_abs_builddir,;t t
11952 s,@top_builddir@,$ac_top_builddir,;t t
11953 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11954 s,@INSTALL@,$ac_INSTALL,;t t
11955 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11956 rm -f $tmp/stdin
11957 if test x"$ac_file" != x-; then
11958 mv $tmp/out $ac_file
11959 else
11960 cat $tmp/out
11961 rm -f $tmp/out
11962 fi
11963
11964 done
11965 _ACEOF
11966 cat >>$CONFIG_STATUS <<\_ACEOF
11967
11968 #
11969 # CONFIG_HEADER section.
11970 #
11971
11972 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11973 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11974 #
11975 # ac_d sets the value in "#define NAME VALUE" lines.
11976 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11977 ac_dB='[ ].*$,\1#\2'
11978 ac_dC=' '
11979 ac_dD=',;t'
11980 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11981 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11982 ac_uB='$,\1#\2define\3'
11983 ac_uC=' '
11984 ac_uD=',;t'
11985
11986 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11987 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11988 case $ac_file in
11989 - | *:- | *:-:* ) # input from stdin
11990 cat >$tmp/stdin
11991 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11993 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11995 * ) ac_file_in=$ac_file.in ;;
11996 esac
11997
11998 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11999 echo "$as_me: creating $ac_file" >&6;}
12000
12001 # First look for the input files in the build tree, otherwise in the
12002 # src tree.
12003 ac_file_inputs=`IFS=:
12004 for f in $ac_file_in; do
12005 case $f in
12006 -) echo $tmp/stdin ;;
12007 [\\/$]*)
12008 # Absolute (can't be DOS-style, as IFS=:)
12009 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12010 echo "$as_me: error: cannot find input file: $f" >&2;}
12011 { (exit 1); exit 1; }; }
12012 echo $f;;
12013 *) # Relative
12014 if test -f "$f"; then
12015 # Build tree
12016 echo $f
12017 elif test -f "$srcdir/$f"; then
12018 # Source tree
12019 echo $srcdir/$f
12020 else
12021 # /dev/null tree
12022 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12023 echo "$as_me: error: cannot find input file: $f" >&2;}
12024 { (exit 1); exit 1; }; }
12025 fi;;
12026 esac
12027 done` || { (exit 1); exit 1; }
12028 # Remove the trailing spaces.
12029 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12030
12031 _ACEOF
12032
12033 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12034 # `conftest.undefs', that substitutes the proper values into
12035 # config.h.in to produce config.h. The first handles `#define'
12036 # templates, and the second `#undef' templates.
12037 # And first: Protect against being on the right side of a sed subst in
12038 # config.status. Protect against being in an unquoted here document
12039 # in config.status.
12040 rm -f conftest.defines conftest.undefs
12041 # Using a here document instead of a string reduces the quoting nightmare.
12042 # Putting comments in sed scripts is not portable.
12043 #
12044 # `end' is used to avoid that the second main sed command (meant for
12045 # 0-ary CPP macros) applies to n-ary macro definitions.
12046 # See the Autoconf documentation for `clear'.
12047 cat >confdef2sed.sed <<\_ACEOF
12048 s/[\\&,]/\\&/g
12049 s,[\\$`],\\&,g
12050 t clear
12051 : clear
12052 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12053 t end
12054 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12055 : end
12056 _ACEOF
12057 # If some macros were called several times there might be several times
12058 # the same #defines, which is useless. Nevertheless, we may not want to
12059 # sort them, since we want the *last* AC-DEFINE to be honored.
12060 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12061 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12062 rm -f confdef2sed.sed
12063
12064 # This sed command replaces #undef with comments. This is necessary, for
12065 # example, in the case of _POSIX_SOURCE, which is predefined and required
12066 # on some systems where configure will not decide to define it.
12067 cat >>conftest.undefs <<\_ACEOF
12068 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12069 _ACEOF
12070
12071 # Break up conftest.defines because some shells have a limit on the size
12072 # of here documents, and old seds have small limits too (100 cmds).
12073 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12074 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12075 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12076 echo ' :' >>$CONFIG_STATUS
12077 rm -f conftest.tail
12078 while grep . conftest.defines >/dev/null
12079 do
12080 # Write a limited-size here document to $tmp/defines.sed.
12081 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12082 # Speed up: don't consider the non `#define' lines.
12083 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12084 # Work around the forget-to-reset-the-flag bug.
12085 echo 't clr' >>$CONFIG_STATUS
12086 echo ': clr' >>$CONFIG_STATUS
12087 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12088 echo 'CEOF
12089 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12090 rm -f $tmp/in
12091 mv $tmp/out $tmp/in
12092 ' >>$CONFIG_STATUS
12093 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12094 rm -f conftest.defines
12095 mv conftest.tail conftest.defines
12096 done
12097 rm -f conftest.defines
12098 echo ' fi # grep' >>$CONFIG_STATUS
12099 echo >>$CONFIG_STATUS
12100
12101 # Break up conftest.undefs because some shells have a limit on the size
12102 # of here documents, and old seds have small limits too (100 cmds).
12103 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12104 rm -f conftest.tail
12105 while grep . conftest.undefs >/dev/null
12106 do
12107 # Write a limited-size here document to $tmp/undefs.sed.
12108 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12109 # Speed up: don't consider the non `#undef'
12110 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12111 # Work around the forget-to-reset-the-flag bug.
12112 echo 't clr' >>$CONFIG_STATUS
12113 echo ': clr' >>$CONFIG_STATUS
12114 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12115 echo 'CEOF
12116 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12117 rm -f $tmp/in
12118 mv $tmp/out $tmp/in
12119 ' >>$CONFIG_STATUS
12120 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12121 rm -f conftest.undefs
12122 mv conftest.tail conftest.undefs
12123 done
12124 rm -f conftest.undefs
12125
12126 cat >>$CONFIG_STATUS <<\_ACEOF
12127 # Let's still pretend it is `configure' which instantiates (i.e., don't
12128 # use $as_me), people would be surprised to read:
12129 # /* config.h. Generated by config.status. */
12130 if test x"$ac_file" = x-; then
12131 echo "/* Generated by configure. */" >$tmp/config.h
12132 else
12133 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12134 fi
12135 cat $tmp/in >>$tmp/config.h
12136 rm -f $tmp/in
12137 if test x"$ac_file" != x-; then
12138 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12139 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12140 echo "$as_me: $ac_file is unchanged" >&6;}
12141 else
12142 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12144 X"$ac_file" : 'X\(//\)[^/]' \| \
12145 X"$ac_file" : 'X\(//\)$' \| \
12146 X"$ac_file" : 'X\(/\)' \| \
12147 . : '\(.\)' 2>/dev/null ||
12148 echo X"$ac_file" |
12149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12151 /^X\(\/\/\)$/{ s//\1/; q; }
12152 /^X\(\/\).*/{ s//\1/; q; }
12153 s/.*/./; q'`
12154 { if $as_mkdir_p; then
12155 mkdir -p "$ac_dir"
12156 else
12157 as_dir="$ac_dir"
12158 as_dirs=
12159 while test ! -d "$as_dir"; do
12160 as_dirs="$as_dir $as_dirs"
12161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12163 X"$as_dir" : 'X\(//\)[^/]' \| \
12164 X"$as_dir" : 'X\(//\)$' \| \
12165 X"$as_dir" : 'X\(/\)' \| \
12166 . : '\(.\)' 2>/dev/null ||
12167 echo X"$as_dir" |
12168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12170 /^X\(\/\/\)$/{ s//\1/; q; }
12171 /^X\(\/\).*/{ s//\1/; q; }
12172 s/.*/./; q'`
12173 done
12174 test ! -n "$as_dirs" || mkdir $as_dirs
12175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12177 { (exit 1); exit 1; }; }; }
12178
12179 rm -f $ac_file
12180 mv $tmp/config.h $ac_file
12181 fi
12182 else
12183 cat $tmp/config.h
12184 rm -f $tmp/config.h
12185 fi
12186 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
12187 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12188 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12189 X$ac_file : 'X\(//\)[^/]' \| \
12190 X$ac_file : 'X\(//\)$' \| \
12191 X$ac_file : 'X\(/\)' \| \
12192 . : '\(.\)' 2>/dev/null ||
12193 echo X$ac_file |
12194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12196 /^X\(\/\/\)$/{ s//\1/; q; }
12197 /^X\(\/\).*/{ s//\1/; q; }
12198 s/.*/./; q'`/stamp-h$_am_stamp_count
12199 done
12200 _ACEOF
12201 cat >>$CONFIG_STATUS <<\_ACEOF
12202
12203 #
12204 # CONFIG_COMMANDS section.
12205 #
12206 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12207 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12208 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12209 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12210 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12211 X"$ac_dest" : 'X\(//\)[^/]' \| \
12212 X"$ac_dest" : 'X\(//\)$' \| \
12213 X"$ac_dest" : 'X\(/\)' \| \
12214 . : '\(.\)' 2>/dev/null ||
12215 echo X"$ac_dest" |
12216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12218 /^X\(\/\/\)$/{ s//\1/; q; }
12219 /^X\(\/\).*/{ s//\1/; q; }
12220 s/.*/./; q'`
12221 ac_builddir=.
12222
12223 if test "$ac_dir" != .; then
12224 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12225 # A "../" for each directory in $ac_dir_suffix.
12226 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12227 else
12228 ac_dir_suffix= ac_top_builddir=
12229 fi
12230
12231 case $srcdir in
12232 .) # No --srcdir option. We are building in place.
12233 ac_srcdir=.
12234 if test -z "$ac_top_builddir"; then
12235 ac_top_srcdir=.
12236 else
12237 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12238 fi ;;
12239 [\\/]* | ?:[\\/]* ) # Absolute path.
12240 ac_srcdir=$srcdir$ac_dir_suffix;
12241 ac_top_srcdir=$srcdir ;;
12242 *) # Relative path.
12243 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12244 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12245 esac
12246 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12247 # absolute.
12248 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12249 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12250 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12251 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12252
12253
12254 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12255 echo "$as_me: executing $ac_dest commands" >&6;}
12256 case $ac_dest in
12257 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12258 # Strip MF so we end up with the name of the file.
12259 mf=`echo "$mf" | sed -e 's/:.*$//'`
12260 # Check whether this is an Automake generated Makefile or not.
12261 # We used to match only the files named `Makefile.in', but
12262 # some people rename them; so instead we look at the file content.
12263 # Grep'ing the first line is not enough: some people post-process
12264 # each Makefile.in and add a new line on top of each file to say so.
12265 # So let's grep whole file.
12266 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12267 dirpart=`(dirname "$mf") 2>/dev/null ||
12268 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12269 X"$mf" : 'X\(//\)[^/]' \| \
12270 X"$mf" : 'X\(//\)$' \| \
12271 X"$mf" : 'X\(/\)' \| \
12272 . : '\(.\)' 2>/dev/null ||
12273 echo X"$mf" |
12274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12276 /^X\(\/\/\)$/{ s//\1/; q; }
12277 /^X\(\/\).*/{ s//\1/; q; }
12278 s/.*/./; q'`
12279 else
12280 continue
12281 fi
12282 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12283 # Extract the definition of DEP_FILES from the Makefile without
12284 # running `make'.
12285 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12286 test -z "$DEPDIR" && continue
12287 # When using ansi2knr, U may be empty or an underscore; expand it
12288 U=`sed -n -e '/^U = / s///p' < "$mf"`
12289 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12290 # We invoke sed twice because it is the simplest approach to
12291 # changing $(DEPDIR) to its actual value in the expansion.
12292 for file in `sed -n -e '
12293 /^DEP_FILES = .*\\\\$/ {
12294 s/^DEP_FILES = //
12295 :loop
12296 s/\\\\$//
12297 p
12298 n
12299 /\\\\$/ b loop
12300 p
12301 }
12302 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12303 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12304 # Make sure the directory exists.
12305 test -f "$dirpart/$file" && continue
12306 fdir=`(dirname "$file") 2>/dev/null ||
12307 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12308 X"$file" : 'X\(//\)[^/]' \| \
12309 X"$file" : 'X\(//\)$' \| \
12310 X"$file" : 'X\(/\)' \| \
12311 . : '\(.\)' 2>/dev/null ||
12312 echo X"$file" |
12313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12315 /^X\(\/\/\)$/{ s//\1/; q; }
12316 /^X\(\/\).*/{ s//\1/; q; }
12317 s/.*/./; q'`
12318 { if $as_mkdir_p; then
12319 mkdir -p $dirpart/$fdir
12320 else
12321 as_dir=$dirpart/$fdir
12322 as_dirs=
12323 while test ! -d "$as_dir"; do
12324 as_dirs="$as_dir $as_dirs"
12325 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12327 X"$as_dir" : 'X\(//\)[^/]' \| \
12328 X"$as_dir" : 'X\(//\)$' \| \
12329 X"$as_dir" : 'X\(/\)' \| \
12330 . : '\(.\)' 2>/dev/null ||
12331 echo X"$as_dir" |
12332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12334 /^X\(\/\/\)$/{ s//\1/; q; }
12335 /^X\(\/\).*/{ s//\1/; q; }
12336 s/.*/./; q'`
12337 done
12338 test ! -n "$as_dirs" || mkdir $as_dirs
12339 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12340 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12341 { (exit 1); exit 1; }; }; }
12342
12343 # echo "creating $dirpart/$file"
12344 echo '# dummy' > "$dirpart/$file"
12345 done
12346 done
12347 ;;
12348 esac
12349 done
12350 _ACEOF
12351
12352 cat >>$CONFIG_STATUS <<\_ACEOF
12353
12354 { (exit 0); exit 0; }
12355 _ACEOF
12356 chmod +x $CONFIG_STATUS
12357 ac_clean_files=$ac_clean_files_save
12358
12359
12360 # configure is writing to config.log, and then calls config.status.
12361 # config.status does its own redirection, appending to config.log.
12362 # Unfortunately, on DOS this fails, as config.log is still kept open
12363 # by configure, so config.status won't be able to write to it; its
12364 # output is simply discarded. So we exec the FD to /dev/null,
12365 # effectively closing config.log, so it can be properly (re)opened and
12366 # appended to by config.status. When coming back to configure, we
12367 # need to make the FD available again.
12368 if test "$no_create" != yes; then
12369 ac_cs_success=:
12370 ac_config_status_args=
12371 test "$silent" = yes &&
12372 ac_config_status_args="$ac_config_status_args --quiet"
12373 exec 5>/dev/null
12374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12375 exec 5>>config.log
12376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12377 # would make configure fail if this is the last instruction.
12378 $ac_cs_success || { (exit 1); exit 1; }
12379 fi
12380