Debian Codegraph @

configure

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="pcap.idl"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 VERSION ARCH ocamlc ocamlopt ocamlfind INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA INSTALL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP camlidldir camlidllibdir ffcalldir ffcallarchive libpcapdir cp4flag LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649 done
650
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724 else
725 ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
830
831 cat <<\_ACEOF
832 _ACEOF
833 fi
834
835 if test -n "$ac_init_help"; then
836
837 cat <<\_ACEOF
838
839 Optional Features:
840 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
841 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
842 --enable-examples build example programs default=no
843
844 Optional Packages:
845 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
846 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
847 --with-camlidl-lib=DIR libcamlidl.a location
848 --with-libpcap=DIR libpcap.a/.so location
849 --with-pcap-header=DIR pcap header installation directory
850 --with-camlidl=DIR camlidl installation directory
851 --with-ffcall=DIR ffcall installation directory
852
853 Some influential environment variables:
854 CC C compiler command
855 CFLAGS C compiler flags
856 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
857 nonstandard directory <lib dir>
858 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
859 headers in a nonstandard directory <include dir>
860 CPP C preprocessor
861
862 Use these variables to override the choices made by `configure' or to help
863 it to find libraries and programs with nonstandard names/locations.
864
865 _ACEOF
866 fi
867
868 if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
870 ac_popdir=`pwd`
871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872 test -d $ac_dir || continue
873 ac_builddir=.
874
875 if test "$ac_dir" != .; then
876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877 # A "../" for each directory in $ac_dir_suffix.
878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879 else
880 ac_dir_suffix= ac_top_builddir=
881 fi
882
883 case $srcdir in
884 .) # No --srcdir option. We are building in place.
885 ac_srcdir=.
886 if test -z "$ac_top_builddir"; then
887 ac_top_srcdir=.
888 else
889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890 fi ;;
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_srcdir=$srcdir$ac_dir_suffix;
893 ac_top_srcdir=$srcdir ;;
894 *) # Relative path.
895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897 esac
898 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
899 # absolute.
900 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
901 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
902 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
903 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
904
905 cd $ac_dir
906 # Check for guested configure; otherwise get Cygnus style configure.
907 if test -f $ac_srcdir/configure.gnu; then
908 echo
909 $SHELL $ac_srcdir/configure.gnu --help=recursive
910 elif test -f $ac_srcdir/configure; then
911 echo
912 $SHELL $ac_srcdir/configure --help=recursive
913 elif test -f $ac_srcdir/configure.ac ||
914 test -f $ac_srcdir/configure.in; then
915 echo
916 $ac_configure --help
917 else
918 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
919 fi
920 cd $ac_popdir
921 done
922 fi
923
924 test -n "$ac_init_help" && exit 0
925 if $ac_init_version; then
926 cat <<\_ACEOF
927
928 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
929 Free Software Foundation, Inc.
930 This configure script is free software; the Free Software Foundation
931 gives unlimited permission to copy, distribute and modify it.
932 _ACEOF
933 exit 0
934 fi
935 exec 5>config.log
936 cat >&5 <<_ACEOF
937 This file contains any messages produced by compilers while
938 running configure, to aid debugging if configure makes a mistake.
939
940 It was created by $as_me, which was
941 generated by GNU Autoconf 2.57. Invocation command line was
942
943 $ $0 $@
944
945 _ACEOF
946 {
947 cat <<_ASUNAME
948 ## --------- ##
949 ## Platform. ##
950 ## --------- ##
951
952 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
953 uname -m = `(uname -m) 2>/dev/null || echo unknown`
954 uname -r = `(uname -r) 2>/dev/null || echo unknown`
955 uname -s = `(uname -s) 2>/dev/null || echo unknown`
956 uname -v = `(uname -v) 2>/dev/null || echo unknown`
957
958 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
959 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
960
961 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
962 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
963 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
964 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
965 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
966 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
967 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
968
969 _ASUNAME
970
971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
972 for as_dir in $PATH
973 do
974 IFS=$as_save_IFS
975 test -z "$as_dir" && as_dir=.
976 echo "PATH: $as_dir"
977 done
978
979 } >&5
980
981 cat >&5 <<_ACEOF
982
983
984 ## ----------- ##
985 ## Core tests. ##
986 ## ----------- ##
987
988 _ACEOF
989
990
991 # Keep a trace of the command line.
992 # Strip out --no-create and --no-recursion so they do not pile up.
993 # Strip out --silent because we don't want to record it for future runs.
994 # Also quote any args containing shell meta-characters.
995 # Make two passes to allow for proper duplicate-argument suppression.
996 ac_configure_args=
997 ac_configure_args0=
998 ac_configure_args1=
999 ac_sep=
1000 ac_must_keep_next=false
1001 for ac_pass in 1 2
1002 do
1003 for ac_arg
1004 do
1005 case $ac_arg in
1006 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1009 continue ;;
1010 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1011 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1012 esac
1013 case $ac_pass in
1014 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1015 2)
1016 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1017 if test $ac_must_keep_next = true; then
1018 ac_must_keep_next=false # Got value, back to normal.
1019 else
1020 case $ac_arg in
1021 *=* | --config-cache | -C | -disable-* | --disable-* \
1022 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1023 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1024 | -with-* | --with-* | -without-* | --without-* | --x)
1025 case "$ac_configure_args0 " in
1026 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1027 esac
1028 ;;
1029 -* ) ac_must_keep_next=true ;;
1030 esac
1031 fi
1032 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1033 # Get rid of the leading space.
1034 ac_sep=" "
1035 ;;
1036 esac
1037 done
1038 done
1039 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1040 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1041
1042 # When interrupted or exit'd, cleanup temporary files, and complete
1043 # config.log. We remove comments because anyway the quotes in there
1044 # would cause problems or look ugly.
1045 # WARNING: Be sure not to use single quotes in there, as some shells,
1046 # such as our DU 5.0 friend, will then `close' the trap.
1047 trap 'exit_status=$?
1048 # Save into config.log some information that might help in debugging.
1049 {
1050 echo
1051
1052 cat <<\_ASBOX
1053 ## ---------------- ##
1054 ## Cache variables. ##
1055 ## ---------------- ##
1056 _ASBOX
1057 echo
1058 # The following way of writing the cache mishandles newlines in values,
1059 {
1060 (set) 2>&1 |
1061 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1062 *ac_space=\ *)
1063 sed -n \
1064 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1066 ;;
1067 *)
1068 sed -n \
1069 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1070 ;;
1071 esac;
1072 }
1073 echo
1074
1075 cat <<\_ASBOX
1076 ## ----------------- ##
1077 ## Output variables. ##
1078 ## ----------------- ##
1079 _ASBOX
1080 echo
1081 for ac_var in $ac_subst_vars
1082 do
1083 eval ac_val=$`echo $ac_var`
1084 echo "$ac_var='"'"'$ac_val'"'"'"
1085 done | sort
1086 echo
1087
1088 if test -n "$ac_subst_files"; then
1089 cat <<\_ASBOX
1090 ## ------------- ##
1091 ## Output files. ##
1092 ## ------------- ##
1093 _ASBOX
1094 echo
1095 for ac_var in $ac_subst_files
1096 do
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1099 done | sort
1100 echo
1101 fi
1102
1103 if test -s confdefs.h; then
1104 cat <<\_ASBOX
1105 ## ----------- ##
1106 ## confdefs.h. ##
1107 ## ----------- ##
1108 _ASBOX
1109 echo
1110 sed "/^$/d" confdefs.h | sort
1111 echo
1112 fi
1113 test "$ac_signal" != 0 &&
1114 echo "$as_me: caught signal $ac_signal"
1115 echo "$as_me: exit $exit_status"
1116 } >&5
1117 rm -f core core.* *.core &&
1118 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1119 exit $exit_status
1120 ' 0
1121 for ac_signal in 1 2 13 15; do
1122 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1123 done
1124 ac_signal=0
1125
1126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1127 rm -rf conftest* confdefs.h
1128 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1129 echo >confdefs.h
1130
1131 # Predefined preprocessor variables.
1132
1133 cat >>confdefs.h <<_ACEOF
1134 #define PACKAGE_NAME "$PACKAGE_NAME"
1135 _ACEOF
1136
1137
1138 cat >>confdefs.h <<_ACEOF
1139 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1140 _ACEOF
1141
1142
1143 cat >>confdefs.h <<_ACEOF
1144 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1145 _ACEOF
1146
1147
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_STRING "$PACKAGE_STRING"
1150 _ACEOF
1151
1152
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1155 _ACEOF
1156
1157
1158 # Let the site file select an alternate cache file if it wants to.
1159 # Prefer explicitly selected file to automatically selected ones.
1160 if test -z "$CONFIG_SITE"; then
1161 if test "x$prefix" != xNONE; then
1162 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1163 else
1164 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1165 fi
1166 fi
1167 for ac_site_file in $CONFIG_SITE; do
1168 if test -r "$ac_site_file"; then
1169 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1170 echo "$as_me: loading site script $ac_site_file" >&6;}
1171 sed 's/^/| /' "$ac_site_file" >&5
1172 . "$ac_site_file"
1173 fi
1174 done
1175
1176 if test -r "$cache_file"; then
1177 # Some versions of bash will fail to source /dev/null (special
1178 # files actually), so we avoid doing that.
1179 if test -f "$cache_file"; then
1180 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1181 echo "$as_me: loading cache $cache_file" >&6;}
1182 case $cache_file in
1183 [\\/]* | ?:[\\/]* ) . $cache_file;;
1184 *) . ./$cache_file;;
1185 esac
1186 fi
1187 else
1188 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1189 echo "$as_me: creating cache $cache_file" >&6;}
1190 >$cache_file
1191 fi
1192
1193 # Check that the precious variables saved in the cache have kept the same
1194 # value.
1195 ac_cache_corrupted=false
1196 for ac_var in `(set) 2>&1 |
1197 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1198 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1199 eval ac_new_set=\$ac_env_${ac_var}_set
1200 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1201 eval ac_new_val="\$ac_env_${ac_var}_value"
1202 case $ac_old_set,$ac_new_set in
1203 set,)
1204 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1205 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1206 ac_cache_corrupted=: ;;
1207 ,set)
1208 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1209 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1210 ac_cache_corrupted=: ;;
1211 ,);;
1212 *)
1213 if test "x$ac_old_val" != "x$ac_new_val"; then
1214 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1215 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1216 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1217 echo "$as_me: former value: $ac_old_val" >&2;}
1218 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1219 echo "$as_me: current value: $ac_new_val" >&2;}
1220 ac_cache_corrupted=:
1221 fi;;
1222 esac
1223 # Pass precious variables to config.status.
1224 if test "$ac_new_set" = set; then
1225 case $ac_new_val in
1226 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1228 *) ac_arg=$ac_var=$ac_new_val ;;
1229 esac
1230 case " $ac_configure_args " in
1231 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1232 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1233 esac
1234 fi
1235 done
1236 if $ac_cache_corrupted; then
1237 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1238 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1239 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1240 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1241 { (exit 1); exit 1; }; }
1242 fi
1243
1244 ac_ext=c
1245 ac_cpp='$CPP $CPPFLAGS'
1246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269 echo "$as_me:$LINENO: checking for version" >&5
1270 echo $ECHO_N "checking for version... $ECHO_C" >&6
1271 VERSION="`etc/shtool version -l txt -d short VERSION`"
1272 echo "$as_me:$LINENO: result: " >&5
1273 echo "${ECHO_T}" >&6 "Configuring Version $VERSION"
1274
1275
1276
1277 echo "$as_me:$LINENO: checking for platform" >&5
1278 echo $ECHO_N "checking for platform... $ECHO_C" >&6
1279 ARCH="`etc/shtool guessos`"
1280 echo "$as_me:$LINENO: result: " >&5
1281 echo "${ECHO_T}" >&6 "$ARCH"
1282
1283 { echo "$as_me:$LINENO: checking for ocaml compiler and tools..." >&5
1284 echo "$as_me: checking for ocaml compiler and tools..." >&6;}
1285 # Extract the first word of "ocamlc", so it can be a program name with args.
1286 set dummy ocamlc; ac_word=$2
1287 echo "$as_me:$LINENO: checking for $ac_word" >&5
1288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1289 if test "${ac_cv_prog_ocamlc+set}" = set; then
1290 echo $ECHO_N "(cached) $ECHO_C" >&6
1291 else
1292 if test -n "$ocamlc"; then
1293 ac_cv_prog_ocamlc="$ocamlc" # Let the user override the test.
1294 else
1295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296 for as_dir in $PATH
1297 do
1298 IFS=$as_save_IFS
1299 test -z "$as_dir" && as_dir=.
1300 for ac_exec_ext in '' $ac_executable_extensions; do
1301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1302 ac_cv_prog_ocamlc="ocamlc"
1303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1304 break 2
1305 fi
1306 done
1307 done
1308
1309 fi
1310 fi
1311 ocamlc=$ac_cv_prog_ocamlc
1312 if test -n "$ocamlc"; then
1313 echo "$as_me:$LINENO: result: $ocamlc" >&5
1314 echo "${ECHO_T}$ocamlc" >&6
1315 else
1316 echo "$as_me:$LINENO: result: no" >&5
1317 echo "${ECHO_T}no" >&6
1318 fi
1319
1320 # Extract the first word of "ocamlopt", so it can be a program name with args.
1321 set dummy ocamlopt; ac_word=$2
1322 echo "$as_me:$LINENO: checking for $ac_word" >&5
1323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1324 if test "${ac_cv_prog_ocamlopt+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 else
1327 if test -n "$ocamlopt"; then
1328 ac_cv_prog_ocamlopt="$ocamlopt" # Let the user override the test.
1329 else
1330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1331 for as_dir in $PATH
1332 do
1333 IFS=$as_save_IFS
1334 test -z "$as_dir" && as_dir=.
1335 for ac_exec_ext in '' $ac_executable_extensions; do
1336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1337 ac_cv_prog_ocamlopt="ocamlopt"
1338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1339 break 2
1340 fi
1341 done
1342 done
1343
1344 fi
1345 fi
1346 ocamlopt=$ac_cv_prog_ocamlopt
1347 if test -n "$ocamlopt"; then
1348 echo "$as_me:$LINENO: result: $ocamlopt" >&5
1349 echo "${ECHO_T}$ocamlopt" >&6
1350 else
1351 echo "$as_me:$LINENO: result: no" >&5
1352 echo "${ECHO_T}no" >&6
1353 fi
1354
1355 # Extract the first word of "ocamlfind", so it can be a program name with args.
1356 set dummy ocamlfind; ac_word=$2
1357 echo "$as_me:$LINENO: checking for $ac_word" >&5
1358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1359 if test "${ac_cv_prog_ocamlfind+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362 if test -n "$ocamlfind"; then
1363 ac_cv_prog_ocamlfind="$ocamlfind" # Let the user override the test.
1364 else
1365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366 for as_dir in $PATH
1367 do
1368 IFS=$as_save_IFS
1369 test -z "$as_dir" && as_dir=.
1370 for ac_exec_ext in '' $ac_executable_extensions; do
1371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1372 ac_cv_prog_ocamlfind="ocamlfind"
1373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1374 break 2
1375 fi
1376 done
1377 done
1378
1379 test -z "$ac_cv_prog_ocamlfind" && ac_cv_prog_ocamlfind="ocamlidl"
1380 fi
1381 fi
1382 ocamlfind=$ac_cv_prog_ocamlfind
1383 if test -n "$ocamlfind"; then
1384 echo "$as_me:$LINENO: result: $ocamlfind" >&5
1385 echo "${ECHO_T}$ocamlfind" >&6
1386 else
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1389 fi
1390
1391
1392 ac_aux_dir=
1393 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1394 if test -f $ac_dir/install-sh; then
1395 ac_aux_dir=$ac_dir
1396 ac_install_sh="$ac_aux_dir/install-sh -c"
1397 break
1398 elif test -f $ac_dir/install.sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install.sh -c"
1401 break
1402 elif test -f $ac_dir/shtool; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/shtool install -c"
1405 break
1406 fi
1407 done
1408 if test -z "$ac_aux_dir"; then
1409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1411 { (exit 1); exit 1; }; }
1412 fi
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1416
1417 # Find a good install program. We prefer a C program (faster),
1418 # so one script is as good as another. But avoid the broken or
1419 # incompatible versions:
1420 # SysV /etc/install, /usr/sbin/install
1421 # SunOS /usr/etc/install
1422 # IRIX /sbin/install
1423 # AIX /bin/install
1424 # AmigaOS /C/install, which installs bootblocks on floppy discs
1425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1428 # ./install, which can be erroneously created by make from ./install.sh.
1429 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1430 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1431 if test -z "$INSTALL"; then
1432 if test "${ac_cv_path_install+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1436 for as_dir in $PATH
1437 do
1438 IFS=$as_save_IFS
1439 test -z "$as_dir" && as_dir=.
1440 # Account for people who put trailing slashes in PATH elements.
1441 case $as_dir/ in
1442 ./ | .// | /cC/* | \
1443 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1444 /usr/ucb/* ) ;;
1445 *)
1446 # OSF1 and SCO ODT 3.0 have their own names for install.
1447 # Don't use installbsd from OSF since it installs stuff as root
1448 # by default.
1449 for ac_prog in ginstall scoinst install; do
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1452 if test $ac_prog = install &&
1453 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1454 # AIX install. It has an incompatible calling convention.
1455 :
1456 elif test $ac_prog = install &&
1457 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1458 # program-specific install script used by HP pwplus--don't use.
1459 :
1460 else
1461 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1462 break 3
1463 fi
1464 fi
1465 done
1466 done
1467 ;;
1468 esac
1469 done
1470
1471
1472 fi
1473 if test "${ac_cv_path_install+set}" = set; then
1474 INSTALL=$ac_cv_path_install
1475 else
1476 # As a last resort, use the slow shell script. We don't cache a
1477 # path for INSTALL within a source directory, because that will
1478 # break other packages using the cache if that directory is
1479 # removed, or if the path is relative.
1480 INSTALL=$ac_install_sh
1481 fi
1482 fi
1483 echo "$as_me:$LINENO: result: $INSTALL" >&5
1484 echo "${ECHO_T}$INSTALL" >&6
1485
1486 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1487 # It thinks the first close brace ends the variable substitution.
1488 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1489
1490 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1491
1492 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1493
1494
1495
1496 { echo "$as_me:$LINENO: checking for C compiler..." >&5
1497 echo "$as_me: checking for C compiler..." >&6;}
1498 ac_ext=c
1499 ac_cpp='$CPP $CPPFLAGS'
1500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503 if test -n "$ac_tool_prefix"; then
1504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1505 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 if test -n "$CC"; then
1512 ac_cv_prog_CC="$CC" # Let the user override the test.
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1516 do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1524 fi
1525 done
1526 done
1527
1528 fi
1529 fi
1530 CC=$ac_cv_prog_CC
1531 if test -n "$CC"; then
1532 echo "$as_me:$LINENO: result: $CC" >&5
1533 echo "${ECHO_T}$CC" >&6
1534 else
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1537 fi
1538
1539 fi
1540 if test -z "$ac_cv_prog_CC"; then
1541 ac_ct_CC=$CC
1542 # Extract the first word of "gcc", so it can be a program name with args.
1543 set dummy gcc; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549 if test -n "$ac_ct_CC"; then
1550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1551 else
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 for as_dir in $PATH
1554 do
1555 IFS=$as_save_IFS
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_ac_ct_CC="gcc"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 break 2
1562 fi
1563 done
1564 done
1565
1566 fi
1567 fi
1568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1569 if test -n "$ac_ct_CC"; then
1570 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1571 echo "${ECHO_T}$ac_ct_CC" >&6
1572 else
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575 fi
1576
1577 CC=$ac_ct_CC
1578 else
1579 CC="$ac_cv_prog_CC"
1580 fi
1581
1582 if test -z "$CC"; then
1583 if test -n "$ac_tool_prefix"; then
1584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1585 set dummy ${ac_tool_prefix}cc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1593 else
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_CC="${ac_tool_prefix}cc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603 break 2
1604 fi
1605 done
1606 done
1607
1608 fi
1609 fi
1610 CC=$ac_cv_prog_CC
1611 if test -n "$CC"; then
1612 echo "$as_me:$LINENO: result: $CC" >&5
1613 echo "${ECHO_T}$CC" >&6
1614 else
1615 echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1617 fi
1618
1619 fi
1620 if test -z "$ac_cv_prog_CC"; then
1621 ac_ct_CC=$CC
1622 # Extract the first word of "cc", so it can be a program name with args.
1623 set dummy cc; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 if test -n "$ac_ct_CC"; then
1630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_ac_ct_CC="cc"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 break 2
1642 fi
1643 done
1644 done
1645
1646 fi
1647 fi
1648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1649 if test -n "$ac_ct_CC"; then
1650 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1651 echo "${ECHO_T}$ac_ct_CC" >&6
1652 else
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1655 fi
1656
1657 CC=$ac_ct_CC
1658 else
1659 CC="$ac_cv_prog_CC"
1660 fi
1661
1662 fi
1663 if test -z "$CC"; then
1664 # Extract the first word of "cc", so it can be a program name with args.
1665 set dummy cc; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1673 else
1674 ac_prog_rejected=no
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1683 ac_prog_rejected=yes
1684 continue
1685 fi
1686 ac_cv_prog_CC="cc"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1689 fi
1690 done
1691 done
1692
1693 if test $ac_prog_rejected = yes; then
1694 # We found a bogon in the path, so make sure we never use it.
1695 set dummy $ac_cv_prog_CC
1696 shift
1697 if test $# != 0; then
1698 # We chose a different compiler from the bogus one.
1699 # However, it has the same basename, so the bogon will be chosen
1700 # first if we set CC to just the basename; use the full file name.
1701 shift
1702 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1703 fi
1704 fi
1705 fi
1706 fi
1707 CC=$ac_cv_prog_CC
1708 if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1711 else
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1714 fi
1715
1716 fi
1717 if test -z "$CC"; then
1718 if test -n "$ac_tool_prefix"; then
1719 for ac_prog in cl
1720 do
1721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 else
1728 if test -n "$CC"; then
1729 ac_cv_prog_CC="$CC" # Let the user override the test.
1730 else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 break 2
1741 fi
1742 done
1743 done
1744
1745 fi
1746 fi
1747 CC=$ac_cv_prog_CC
1748 if test -n "$CC"; then
1749 echo "$as_me:$LINENO: result: $CC" >&5
1750 echo "${ECHO_T}$CC" >&6
1751 else
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1754 fi
1755
1756 test -n "$CC" && break
1757 done
1758 fi
1759 if test -z "$CC"; then
1760 ac_ct_CC=$CC
1761 for ac_prog in cl
1762 do
1763 # Extract the first word of "$ac_prog", so it can be a program name with args.
1764 set dummy $ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770 if test -n "$ac_ct_CC"; then
1771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776 IFS=$as_save_IFS
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_ac_ct_CC="$ac_prog"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 break 2
1783 fi
1784 done
1785 done
1786
1787 fi
1788 fi
1789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1790 if test -n "$ac_ct_CC"; then
1791 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1792 echo "${ECHO_T}$ac_ct_CC" >&6
1793 else
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798 test -n "$ac_ct_CC" && break
1799 done
1800
1801 CC=$ac_ct_CC
1802 fi
1803
1804 fi
1805
1806
1807 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1808 See \`config.log' for more details." >&5
1809 echo "$as_me: error: no acceptable C compiler found in \$PATH
1810 See \`config.log' for more details." >&2;}
1811 { (exit 1); exit 1; }; }
1812
1813 # Provide some information about the compiler.
1814 echo "$as_me:$LINENO:" \
1815 "checking for C compiler version" >&5
1816 ac_compiler=`set X $ac_compile; echo $2`
1817 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1818 (eval $ac_compiler --version </dev/null >&5) 2>&5
1819 ac_status=$?
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }
1822 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1823 (eval $ac_compiler -v </dev/null >&5) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }
1827 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1828 (eval $ac_compiler -V </dev/null >&5) 2>&5
1829 ac_status=$?
1830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831 (exit $ac_status); }
1832
1833 cat >conftest.$ac_ext <<_ACEOF
1834 #line $LINENO "configure"
1835 /* confdefs.h. */
1836 _ACEOF
1837 cat confdefs.h >>conftest.$ac_ext
1838 cat >>conftest.$ac_ext <<_ACEOF
1839 /* end confdefs.h. */
1840
1841 int
1842 main ()
1843 {
1844
1845 ;
1846 return 0;
1847 }
1848 _ACEOF
1849 ac_clean_files_save=$ac_clean_files
1850 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1851 # Try to create an executable without -o first, disregard a.out.
1852 # It will help us diagnose broken compilers, and finding out an intuition
1853 # of exeext.
1854 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1855 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1856 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1857 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1858 (eval $ac_link_default) 2>&5
1859 ac_status=$?
1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861 (exit $ac_status); }; then
1862 # Find the output, starting from the most likely. This scheme is
1863 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1864 # resort.
1865
1866 # Be careful to initialize this variable, since it used to be cached.
1867 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1868 ac_cv_exeext=
1869 # b.out is created by i960 compilers.
1870 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1871 do
1872 test -f "$ac_file" || continue
1873 case $ac_file in
1874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1875 ;;
1876 conftest.$ac_ext )
1877 # This is the source file.
1878 ;;
1879 [ab].out )
1880 # We found the default executable, but exeext='' is most
1881 # certainly right.
1882 break;;
1883 *.* )
1884 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1885 # FIXME: I believe we export ac_cv_exeext for Libtool,
1886 # but it would be cool to find out if it's true. Does anybody
1887 # maintain Libtool? --akim.
1888 export ac_cv_exeext
1889 break;;
1890 * )
1891 break;;
1892 esac
1893 done
1894 else
1895 echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: C compiler cannot create executables
1901 See \`config.log' for more details." >&2;}
1902 { (exit 77); exit 77; }; }
1903 fi
1904
1905 ac_exeext=$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_file" >&5
1907 echo "${ECHO_T}$ac_file" >&6
1908
1909 # Check the compiler produces executables we can run. If not, either
1910 # the compiler is broken, or we cross compile.
1911 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1912 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1913 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1914 # If not cross compiling, check that we can run a simple program.
1915 if test "$cross_compiling" != yes; then
1916 if { ac_try='./$ac_file'
1917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1918 (eval $ac_try) 2>&5
1919 ac_status=$?
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }; }; then
1922 cross_compiling=no
1923 else
1924 if test "$cross_compiling" = maybe; then
1925 cross_compiling=yes
1926 else
1927 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1928 If you meant to cross compile, use \`--host'.
1929 See \`config.log' for more details." >&5
1930 echo "$as_me: error: cannot run C compiled programs.
1931 If you meant to cross compile, use \`--host'.
1932 See \`config.log' for more details." >&2;}
1933 { (exit 1); exit 1; }; }
1934 fi
1935 fi
1936 fi
1937 echo "$as_me:$LINENO: result: yes" >&5
1938 echo "${ECHO_T}yes" >&6
1939
1940 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1941 ac_clean_files=$ac_clean_files_save
1942 # Check the compiler produces executables we can run. If not, either
1943 # the compiler is broken, or we cross compile.
1944 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1945 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1946 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1947 echo "${ECHO_T}$cross_compiling" >&6
1948
1949 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1950 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1952 (eval $ac_link) 2>&5
1953 ac_status=$?
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }; then
1956 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1957 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1958 # work properly (i.e., refer to `conftest.exe'), while it won't with
1959 # `rm'.
1960 for ac_file in conftest.exe conftest conftest.*; do
1961 test -f "$ac_file" || continue
1962 case $ac_file in
1963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1965 export ac_cv_exeext
1966 break;;
1967 * ) break;;
1968 esac
1969 done
1970 else
1971 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1972 See \`config.log' for more details." >&5
1973 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1974 See \`config.log' for more details." >&2;}
1975 { (exit 1); exit 1; }; }
1976 fi
1977
1978 rm -f conftest$ac_cv_exeext
1979 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1980 echo "${ECHO_T}$ac_cv_exeext" >&6
1981
1982 rm -f conftest.$ac_ext
1983 EXEEXT=$ac_cv_exeext
1984 ac_exeext=$EXEEXT
1985 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1986 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1987 if test "${ac_cv_objext+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990 cat >conftest.$ac_ext <<_ACEOF
1991 #line $LINENO "configure"
1992 /* confdefs.h. */
1993 _ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
1997
1998 int
1999 main ()
2000 {
2001
2002 ;
2003 return 0;
2004 }
2005 _ACEOF
2006 rm -f conftest.o conftest.obj
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; then
2012 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2013 case $ac_file in
2014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2015 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2016 break;;
2017 esac
2018 done
2019 else
2020 echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2024 See \`config.log' for more details." >&5
2025 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2026 See \`config.log' for more details." >&2;}
2027 { (exit 1); exit 1; }; }
2028 fi
2029
2030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2031 fi
2032 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2033 echo "${ECHO_T}$ac_cv_objext" >&6
2034 OBJEXT=$ac_cv_objext
2035 ac_objext=$OBJEXT
2036 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2037 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2038 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #line $LINENO "configure"
2043 /* confdefs.h. */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2048
2049 int
2050 main ()
2051 {
2052 #ifndef __GNUC__
2053 choke me
2054 #endif
2055
2056 ;
2057 return 0;
2058 }
2059 _ACEOF
2060 rm -f conftest.$ac_objext
2061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2062 (eval $ac_compile) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_compiler_gnu=yes
2073 else
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2076
2077 ac_compiler_gnu=no
2078 fi
2079 rm -f conftest.$ac_objext conftest.$ac_ext
2080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2081
2082 fi
2083 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2084 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2085 GCC=`test $ac_compiler_gnu = yes && echo yes`
2086 ac_test_CFLAGS=${CFLAGS+set}
2087 ac_save_CFLAGS=$CFLAGS
2088 CFLAGS="-g"
2089 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2091 if test "${ac_cv_prog_cc_g+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 cat >conftest.$ac_ext <<_ACEOF
2095 #line $LINENO "configure"
2096 /* confdefs.h. */
2097 _ACEOF
2098 cat confdefs.h >>conftest.$ac_ext
2099 cat >>conftest.$ac_ext <<_ACEOF
2100 /* end confdefs.h. */
2101
2102 int
2103 main ()
2104 {
2105
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 rm -f conftest.$ac_objext
2111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2112 (eval $ac_compile) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 (eval $ac_try) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2122 ac_cv_prog_cc_g=yes
2123 else
2124 echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127 ac_cv_prog_cc_g=no
2128 fi
2129 rm -f conftest.$ac_objext conftest.$ac_ext
2130 fi
2131 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2132 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2133 if test "$ac_test_CFLAGS" = set; then
2134 CFLAGS=$ac_save_CFLAGS
2135 elif test $ac_cv_prog_cc_g = yes; then
2136 if test "$GCC" = yes; then
2137 CFLAGS="-g -O2"
2138 else
2139 CFLAGS="-g"
2140 fi
2141 else
2142 if test "$GCC" = yes; then
2143 CFLAGS="-O2"
2144 else
2145 CFLAGS=
2146 fi
2147 fi
2148 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2149 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2150 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 ac_cv_prog_cc_stdc=no
2154 ac_save_CC=$CC
2155 cat >conftest.$ac_ext <<_ACEOF
2156 #line $LINENO "configure"
2157 /* confdefs.h. */
2158 _ACEOF
2159 cat confdefs.h >>conftest.$ac_ext
2160 cat >>conftest.$ac_ext <<_ACEOF
2161 /* end confdefs.h. */
2162 #include <stdarg.h>
2163 #include <stdio.h>
2164 #include <sys/types.h>
2165 #include <sys/stat.h>
2166 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2167 struct buf { int x; };
2168 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2169 static char *e (p, i)
2170 char **p;
2171 int i;
2172 {
2173 return p[i];
2174 }
2175 static char *f (char * (*g) (char **, int), char **p, ...)
2176 {
2177 char *s;
2178 va_list v;
2179 va_start (v,p);
2180 s = g (p, va_arg (v,int));
2181 va_end (v);
2182 return s;
2183 }
2184 int test (int i, double x);
2185 struct s1 {int (*f) (int a);};
2186 struct s2 {int (*f) (double a);};
2187 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2188 int argc;
2189 char **argv;
2190 int
2191 main ()
2192 {
2193 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 # Don't try gcc -ansi; that turns off useful extensions and
2199 # breaks some systems' header files.
2200 # AIX -qlanglvl=ansi
2201 # Ultrix and OSF/1 -std1
2202 # HP-UX 10.20 and later -Ae
2203 # HP-UX older versions -Aa -D_HPUX_SOURCE
2204 # SVR4 -Xc -D__EXTENSIONS__
2205 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2206 do
2207 CC="$ac_save_CC $ac_arg"
2208 rm -f conftest.$ac_objext
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 ac_cv_prog_cc_stdc=$ac_arg
2221 break
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 fi
2227 rm -f conftest.$ac_objext
2228 done
2229 rm -f conftest.$ac_ext conftest.$ac_objext
2230 CC=$ac_save_CC
2231
2232 fi
2233
2234 case "x$ac_cv_prog_cc_stdc" in
2235 x|xno)
2236 echo "$as_me:$LINENO: result: none needed" >&5
2237 echo "${ECHO_T}none needed" >&6 ;;
2238 *)
2239 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2240 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2241 CC="$CC $ac_cv_prog_cc_stdc" ;;
2242 esac
2243
2244 # Some people use a C++ compiler to compile C. Since we use `exit',
2245 # in C++ we need to declare it. In case someone uses the same compiler
2246 # for both compiling C and C++ we need to have the C++ compiler decide
2247 # the declaration of exit, since it's the most demanding environment.
2248 cat >conftest.$ac_ext <<_ACEOF
2249 #ifndef __cplusplus
2250 choke me
2251 #endif
2252 _ACEOF
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2265 for ac_declaration in \
2266 ''\
2267 'extern "C" void std::exit (int) throw (); using std::exit;' \
2268 'extern "C" void std::exit (int); using std::exit;' \
2269 'extern "C" void exit (int) throw ();' \
2270 'extern "C" void exit (int);' \
2271 'void exit (int);' \
2272 '#include <stdlib.h>'
2273 do
2274 cat >conftest.$ac_ext <<_ACEOF
2275 #line $LINENO "configure"
2276 /* confdefs.h. */
2277 _ACEOF
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2281 #include <stdlib.h>
2282 $ac_declaration
2283 int
2284 main ()
2285 {
2286 exit (42);
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 rm -f conftest.$ac_objext
2292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 :
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 continue
2309 fi
2310 rm -f conftest.$ac_objext conftest.$ac_ext
2311 cat >conftest.$ac_ext <<_ACEOF
2312 #line $LINENO "configure"
2313 /* confdefs.h. */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2318 $ac_declaration
2319 int
2320 main ()
2321 {
2322 exit (42);
2323 ;
2324 return 0;
2325 }
2326 _ACEOF
2327 rm -f conftest.$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 break
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 fi
2345 rm -f conftest.$ac_objext conftest.$ac_ext
2346 done
2347 rm -f conftest*
2348 if test -n "$ac_declaration"; then
2349 echo '#ifdef __cplusplus' >>confdefs.h
2350 echo $ac_declaration >>confdefs.h
2351 echo '#endif' >>confdefs.h
2352 fi
2353
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 fi
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2360 ac_ext=c
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365
2366
2367 { echo "$as_me:$LINENO: checking for C header files..." >&5
2368 echo "$as_me: checking for C header files..." >&6;}
2369
2370 ac_ext=c
2371 ac_cpp='$CPP $CPPFLAGS'
2372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2377 # On Suns, sometimes $CPP names a directory.
2378 if test -n "$CPP" && test -d "$CPP"; then
2379 CPP=
2380 fi
2381 if test -z "$CPP"; then
2382 if test "${ac_cv_prog_CPP+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 # Double quotes because CPP needs to be expanded
2386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2387 do
2388 ac_preproc_ok=false
2389 for ac_c_preproc_warn_flag in '' yes
2390 do
2391 # Use a header file that comes with gcc, so configuring glibc
2392 # with a fresh cross-compiler works.
2393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2394 # <limits.h> exists even on freestanding compilers.
2395 # On the NeXT, cc -E runs the code through the compiler's parser,
2396 # not just through cpp. "Syntax error" is here to catch this case.
2397 cat >conftest.$ac_ext <<_ACEOF
2398 #line $LINENO "configure"
2399 /* confdefs.h. */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2404 #ifdef __STDC__
2405 # include <limits.h>
2406 #else
2407 # include <assert.h>
2408 #endif
2409 Syntax error
2410 _ACEOF
2411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2413 ac_status=$?
2414 grep -v '^ *+' conftest.er1 >conftest.err
2415 rm -f conftest.er1
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } >/dev/null; then
2419 if test -s conftest.err; then
2420 ac_cpp_err=$ac_c_preproc_warn_flag
2421 else
2422 ac_cpp_err=
2423 fi
2424 else
2425 ac_cpp_err=yes
2426 fi
2427 if test -z "$ac_cpp_err"; then
2428 :
2429 else
2430 echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2432
2433 # Broken: fails on valid input.
2434 continue
2435 fi
2436 rm -f conftest.err conftest.$ac_ext
2437
2438 # OK, works on sane cases. Now check whether non-existent headers
2439 # can be detected and how.
2440 cat >conftest.$ac_ext <<_ACEOF
2441 #line $LINENO "configure"
2442 /* confdefs.h. */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2447 #include <ac_nonexistent.h>
2448 _ACEOF
2449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } >/dev/null; then
2457 if test -s conftest.err; then
2458 ac_cpp_err=$ac_c_preproc_warn_flag
2459 else
2460 ac_cpp_err=
2461 fi
2462 else
2463 ac_cpp_err=yes
2464 fi
2465 if test -z "$ac_cpp_err"; then
2466 # Broken: success on invalid input.
2467 continue
2468 else
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 # Passes both tests.
2473 ac_preproc_ok=:
2474 break
2475 fi
2476 rm -f conftest.err conftest.$ac_ext
2477
2478 done
2479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2480 rm -f conftest.err conftest.$ac_ext
2481 if $ac_preproc_ok; then
2482 break
2483 fi
2484
2485 done
2486 ac_cv_prog_CPP=$CPP
2487
2488 fi
2489 CPP=$ac_cv_prog_CPP
2490 else
2491 ac_cv_prog_CPP=$CPP
2492 fi
2493 echo "$as_me:$LINENO: result: $CPP" >&5
2494 echo "${ECHO_T}$CPP" >&6
2495 ac_preproc_ok=false
2496 for ac_c_preproc_warn_flag in '' yes
2497 do
2498 # Use a header file that comes with gcc, so configuring glibc
2499 # with a fresh cross-compiler works.
2500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2501 # <limits.h> exists even on freestanding compilers.
2502 # On the NeXT, cc -E runs the code through the compiler's parser,
2503 # not just through cpp. "Syntax error" is here to catch this case.
2504 cat >conftest.$ac_ext <<_ACEOF
2505 #line $LINENO "configure"
2506 /* confdefs.h. */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2511 #ifdef __STDC__
2512 # include <limits.h>
2513 #else
2514 # include <assert.h>
2515 #endif
2516 Syntax error
2517 _ACEOF
2518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2520 ac_status=$?
2521 grep -v '^ *+' conftest.er1 >conftest.err
2522 rm -f conftest.er1
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } >/dev/null; then
2526 if test -s conftest.err; then
2527 ac_cpp_err=$ac_c_preproc_warn_flag
2528 else
2529 ac_cpp_err=
2530 fi
2531 else
2532 ac_cpp_err=yes
2533 fi
2534 if test -z "$ac_cpp_err"; then
2535 :
2536 else
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 # Broken: fails on valid input.
2541 continue
2542 fi
2543 rm -f conftest.err conftest.$ac_ext
2544
2545 # OK, works on sane cases. Now check whether non-existent headers
2546 # can be detected and how.
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #line $LINENO "configure"
2549 /* confdefs.h. */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2554 #include <ac_nonexistent.h>
2555 _ACEOF
2556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } >/dev/null; then
2564 if test -s conftest.err; then
2565 ac_cpp_err=$ac_c_preproc_warn_flag
2566 else
2567 ac_cpp_err=
2568 fi
2569 else
2570 ac_cpp_err=yes
2571 fi
2572 if test -z "$ac_cpp_err"; then
2573 # Broken: success on invalid input.
2574 continue
2575 else
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579 # Passes both tests.
2580 ac_preproc_ok=:
2581 break
2582 fi
2583 rm -f conftest.err conftest.$ac_ext
2584
2585 done
2586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2587 rm -f conftest.err conftest.$ac_ext
2588 if $ac_preproc_ok; then
2589 :
2590 else
2591 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2594 See \`config.log' for more details." >&2;}
2595 { (exit 1); exit 1; }; }
2596 fi
2597
2598 ac_ext=c
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603
2604
2605 echo "$as_me:$LINENO: checking for egrep" >&5
2606 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2607 if test "${ac_cv_prog_egrep+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2611 then ac_cv_prog_egrep='grep -E'
2612 else ac_cv_prog_egrep='egrep'
2613 fi
2614 fi
2615 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2616 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2617 EGREP=$ac_cv_prog_egrep
2618
2619
2620 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2621 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2622 if test "${ac_cv_header_stdc+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625 cat >conftest.$ac_ext <<_ACEOF
2626 #line $LINENO "configure"
2627 /* confdefs.h. */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2632 #include <stdlib.h>
2633 #include <stdarg.h>
2634 #include <string.h>
2635 #include <float.h>
2636
2637 int
2638 main ()
2639 {
2640
2641 ;
2642 return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 ac_cv_header_stdc=yes
2658 else
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662 ac_cv_header_stdc=no
2663 fi
2664 rm -f conftest.$ac_objext conftest.$ac_ext
2665
2666 if test $ac_cv_header_stdc = yes; then
2667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 /* confdefs.h. */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2675 #include <string.h>
2676
2677 _ACEOF
2678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2679 $EGREP "memchr" >/dev/null 2>&1; then
2680 :
2681 else
2682 ac_cv_header_stdc=no
2683 fi
2684 rm -f conftest*
2685
2686 fi
2687
2688 if test $ac_cv_header_stdc = yes; then
2689 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2692 /* confdefs.h. */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2697 #include <stdlib.h>
2698
2699 _ACEOF
2700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2701 $EGREP "free" >/dev/null 2>&1; then
2702 :
2703 else
2704 ac_cv_header_stdc=no
2705 fi
2706 rm -f conftest*
2707
2708 fi
2709
2710 if test $ac_cv_header_stdc = yes; then
2711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2712 if test "$cross_compiling" = yes; then
2713 :
2714 else
2715 cat >conftest.$ac_ext <<_ACEOF
2716 #line $LINENO "configure"
2717 /* confdefs.h. */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2722 #include <ctype.h>
2723 #if ((' ' & 0x0FF) == 0x020)
2724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2726 #else
2727 # define ISLOWER(c) \
2728 (('a' <= (c) && (c) <= 'i') \
2729 || ('j' <= (c) && (c) <= 'r') \
2730 || ('s' <= (c) && (c) <= 'z'))
2731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2732 #endif
2733
2734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2735 int
2736 main ()
2737 {
2738 int i;
2739 for (i = 0; i < 256; i++)
2740 if (XOR (islower (i), ISLOWER (i))
2741 || toupper (i) != TOUPPER (i))
2742 exit(2);
2743 exit (0);
2744 }
2745 _ACEOF
2746 rm -f conftest$ac_exeext
2747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2748 (eval $ac_link) 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 :
2758 else
2759 echo "$as_me: program exited with status $ac_status" >&5
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763 ( exit $ac_status )
2764 ac_cv_header_stdc=no
2765 fi
2766 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2767 fi
2768 fi
2769 fi
2770 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2771 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2772 if test $ac_cv_header_stdc = yes; then
2773
2774 cat >>confdefs.h <<\_ACEOF
2775 #define STDC_HEADERS 1
2776 _ACEOF
2777
2778 fi
2779
2780
2781 #
2782 camlidldir=""
2783 camlidllibdir=""
2784 ffcalldir=""
2785 ffcallarchive=""
2786 libpcapdir=""
2787 cp4flag=""
2788 #
2789
2790 # Check whether --enable-examples or --disable-examples was given.
2791 if test "${enable_examples+set}" = set; then
2792 enableval="$enable_examples"
2793
2794 else
2795 enable_examples="no"
2796 fi;
2797
2798 #
2799 { echo "$as_me:$LINENO: checking libraries..." >&5
2800 echo "$as_me: checking libraries..." >&6;}
2801
2802 #AC_CHECKING(for pcap library)
2803 #if test "$ac_cv_lib_pcap" == "no"; then
2804 # #dirs="/usr/local/lib
2805 # # /usr/local/lib
2806 # # /usr/lib
2807 # # /lib"
2808 # dirs="/home/x25/code/MLpcap/libpcap-0.8.3"
2809 # for d in $dirs; do
2810 # test -f "$d/libpcap.a" && LDFLAGS="-L$d"
2811 # done
2812 # AC_CHECKING(in more locations)
2813 # unset ac_cv_lib_pcap
2814 #fi
2815
2816 if test "x$enable_examples" = "xyes"; then
2817
2818
2819 # Check whether --with-camlidl-lib or --without-camlidl-lib was given.
2820 if test "${with_camlidl_lib+set}" = set; then
2821 withval="$with_camlidl_lib"
2822
2823 camlidllibdir=$withval
2824 if ! test -f "$camlidllibdir/libcamlidl.a"; then
2825 { { echo "$as_me:$LINENO: error: can't find libcamlidl.a in $camlidllibdir" >&5
2826 echo "$as_me: error: can't find libcamlidl.a in $camlidllibdir" >&2;}
2827 { (exit 1); exit 1; }; }
2828 fi
2829
2830 else
2831
2832 { { echo "$as_me:$LINENO: error: missing --with-camlidl-lib" >&5
2833 echo "$as_me: error: missing --with-camlidl-lib" >&2;}
2834 { (exit 1); exit 1; }; }
2835
2836 fi;
2837
2838 { echo "$as_me:$LINENO: checking for ffcall callback library..." >&5
2839 echo "$as_me: checking for ffcall callback library..." >&6;}
2840 dirs="/usr/local/lib
2841 /usr/lib
2842 /lib"
2843 for d in $dirs; do
2844 test -f "$d/libcallback.a" && ffcallarchive="$d/libcallback.a"
2845 done
2846 fi
2847
2848
2849 # Check whether --with-libpcap or --without-libpcap was given.
2850 if test "${with_libpcap+set}" = set; then
2851 withval="$with_libpcap"
2852
2853 libpcapdir=$withval
2854 if ! test -f "$libpcapdir/libpcap.a"; then
2855 { { echo "$as_me:$LINENO: error: can't find libpcap.a in $libpcapdir" >&5
2856 echo "$as_me: error: can't find libpcap.a in $libpcapdir" >&2;}
2857 { (exit 1); exit 1; }; }
2858 fi
2859
2860 # check for libpcap >=0.8, set CFLAGS and camlp4 flag
2861 `which strings` "$libpcapdir/libpcap.a"|grep to_descr 2>&1 >/dev/null
2862 test $? && CFLAGS="$CFLAGS -DHAVE_PCAP08" && cp4flag="HAVE_PCAP08"
2863
2864 else
2865
2866 #AC_MSG_ERROR(missing --with-libpcap)
2867 # try the default
2868 libpcapdir="/usr/lib"
2869
2870 fi;
2871
2872
2873 { echo "$as_me:$LINENO: checking for pcap header files..." >&5
2874 echo "$as_me: checking for pcap header files..." >&6;}
2875
2876 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2887 inttypes.h stdint.h unistd.h
2888 do
2889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2890 echo "$as_me:$LINENO: checking for $ac_header" >&5
2891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2897 /* confdefs.h. */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902 $ac_includes_default
2903
2904 #include <$ac_header>
2905 _ACEOF
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 eval "$as_ac_Header=yes"
2919 else
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 eval "$as_ac_Header=no"
2924 fi
2925 rm -f conftest.$ac_objext conftest.$ac_ext
2926 fi
2927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2930 cat >>confdefs.h <<_ACEOF
2931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2932 _ACEOF
2933
2934 fi
2935
2936 done
2937
2938
2939
2940 # Check whether --with-pcap-header or --without-pcap-header was given.
2941 if test "${with_pcap_header+set}" = set; then
2942 withval="$with_pcap_header"
2943
2944 pcapheaderdir=$withval
2945 as_ac_Header=`echo "ac_cv_header_$pcapheaderdir/pcap.h" | $as_tr_sh`
2946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2947 echo "$as_me:$LINENO: checking for $pcapheaderdir/pcap.h" >&5
2948 echo $ECHO_N "checking for $pcapheaderdir/pcap.h... $ECHO_C" >&6
2949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 fi
2952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2954 else
2955 # Is the header compilable?
2956 echo "$as_me:$LINENO: checking $pcapheaderdir/pcap.h usability" >&5
2957 echo $ECHO_N "checking $pcapheaderdir/pcap.h usability... $ECHO_C" >&6
2958 cat >conftest.$ac_ext <<_ACEOF
2959 #line $LINENO "configure"
2960 /* confdefs.h. */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2965 $ac_includes_default
2966 #include <$pcapheaderdir/pcap.h>
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2970 (eval $ac_compile) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 (eval $ac_try) 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 ac_header_compiler=yes
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985 ac_header_compiler=no
2986 fi
2987 rm -f conftest.$ac_objext conftest.$ac_ext
2988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2989 echo "${ECHO_T}$ac_header_compiler" >&6
2990
2991 # Is the header present?
2992 echo "$as_me:$LINENO: checking $pcapheaderdir/pcap.h presence" >&5
2993 echo $ECHO_N "checking $pcapheaderdir/pcap.h presence... $ECHO_C" >&6
2994 cat >conftest.$ac_ext <<_ACEOF
2995 #line $LINENO "configure"
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 #include <$pcapheaderdir/pcap.h>
3002 _ACEOF
3003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3005 ac_status=$?
3006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } >/dev/null; then
3011 if test -s conftest.err; then
3012 ac_cpp_err=$ac_c_preproc_warn_flag
3013 else
3014 ac_cpp_err=
3015 fi
3016 else
3017 ac_cpp_err=yes
3018 fi
3019 if test -z "$ac_cpp_err"; then
3020 ac_header_preproc=yes
3021 else
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
3025 ac_header_preproc=no
3026 fi
3027 rm -f conftest.err conftest.$ac_ext
3028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3029 echo "${ECHO_T}$ac_header_preproc" >&6
3030
3031 # So? What about this header?
3032 case $ac_header_compiler:$ac_header_preproc in
3033 yes:no )
3034 { echo "$as_me:$LINENO: WARNING: $pcapheaderdir/pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
3035 echo "$as_me: WARNING: $pcapheaderdir/pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3036 { echo "$as_me:$LINENO: WARNING: $pcapheaderdir/pcap.h: proceeding with the preprocessor's result" >&5
3037 echo "$as_me: WARNING: $pcapheaderdir/pcap.h: proceeding with the preprocessor's result" >&2;}
3038 (
3039 cat <<\_ASBOX
3040 ## ------------------------------------ ##
3041 ## Report this to [email protected]. ##
3042 ## ------------------------------------ ##
3043 _ASBOX
3044 ) |
3045 sed "s/^/$as_me: WARNING: /" >&2
3046 ;;
3047 no:yes )
3048 { echo "$as_me:$LINENO: WARNING: $pcapheaderdir/pcap.h: present but cannot be compiled" >&5
3049 echo "$as_me: WARNING: $pcapheaderdir/pcap.h: present but cannot be compiled" >&2;}
3050 { echo "$as_me:$LINENO: WARNING: $pcapheaderdir/pcap.h: check for missing prerequisite headers?" >&5
3051 echo "$as_me: WARNING: $pcapheaderdir/pcap.h: check for missing prerequisite headers?" >&2;}
3052 { echo "$as_me:$LINENO: WARNING: $pcapheaderdir/pcap.h: proceeding with the preprocessor's result" >&5
3053 echo "$as_me: WARNING: $pcapheaderdir/pcap.h: proceeding with the preprocessor's result" >&2;}
3054 (
3055 cat <<\_ASBOX
3056 ## ------------------------------------ ##
3057 ## Report this to [email protected]. ##
3058 ## ------------------------------------ ##
3059 _ASBOX
3060 ) |
3061 sed "s/^/$as_me: WARNING: /" >&2
3062 ;;
3063 esac
3064 echo "$as_me:$LINENO: checking for $pcapheaderdir/pcap.h" >&5
3065 echo $ECHO_N "checking for $pcapheaderdir/pcap.h... $ECHO_C" >&6
3066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069 eval "$as_ac_Header=$ac_header_preproc"
3070 fi
3071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3073
3074 fi
3075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3076 CFLAGS="$CFLAGS -I$pcapheaderdir"; HAVE_PCAP_HEADER="yes"
3077 fi
3078
3079
3080
3081 else
3082
3083 if test "${ac_cv_header_pcap_h+set}" = set; then
3084 echo "$as_me:$LINENO: checking for pcap.h" >&5
3085 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
3086 if test "${ac_cv_header_pcap_h+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 fi
3089 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
3090 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
3091 else
3092 # Is the header compilable?
3093 echo "$as_me:$LINENO: checking pcap.h usability" >&5
3094 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6
3095 cat >conftest.$ac_ext <<_ACEOF
3096 #line $LINENO "configure"
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102 $ac_includes_default
3103 #include <pcap.h>
3104 _ACEOF
3105 rm -f conftest.$ac_objext
3106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107 (eval $ac_compile) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 ac_header_compiler=yes
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 ac_header_compiler=no
3123 fi
3124 rm -f conftest.$ac_objext conftest.$ac_ext
3125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3126 echo "${ECHO_T}$ac_header_compiler" >&6
3127
3128 # Is the header present?
3129 echo "$as_me:$LINENO: checking pcap.h presence" >&5
3130 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6
3131 cat >conftest.$ac_ext <<_ACEOF
3132 #line $LINENO "configure"
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138 #include <pcap.h>
3139 _ACEOF
3140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } >/dev/null; then
3148 if test -s conftest.err; then
3149 ac_cpp_err=$ac_c_preproc_warn_flag
3150 else
3151 ac_cpp_err=
3152 fi
3153 else
3154 ac_cpp_err=yes
3155 fi
3156 if test -z "$ac_cpp_err"; then
3157 ac_header_preproc=yes
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 ac_header_preproc=no
3163 fi
3164 rm -f conftest.err conftest.$ac_ext
3165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3166 echo "${ECHO_T}$ac_header_preproc" >&6
3167
3168 # So? What about this header?
3169 case $ac_header_compiler:$ac_header_preproc in
3170 yes:no )
3171 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
3172 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3173 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
3174 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
3175 (
3176 cat <<\_ASBOX
3177 ## ------------------------------------ ##
3178 ## Report this to [email protected]. ##
3179 ## ------------------------------------ ##
3180 _ASBOX
3181 ) |
3182 sed "s/^/$as_me: WARNING: /" >&2
3183 ;;
3184 no:yes )
3185 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
3186 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
3187 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
3188 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
3189 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
3190 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
3191 (
3192 cat <<\_ASBOX
3193 ## ------------------------------------ ##
3194 ## Report this to [email protected]. ##
3195 ## ------------------------------------ ##
3196 _ASBOX
3197 ) |
3198 sed "s/^/$as_me: WARNING: /" >&2
3199 ;;
3200 esac
3201 echo "$as_me:$LINENO: checking for pcap.h" >&5
3202 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
3203 if test "${ac_cv_header_pcap_h+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 ac_cv_header_pcap_h=$ac_header_preproc
3207 fi
3208 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
3209 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
3210
3211 fi
3212 if test $ac_cv_header_pcap_h = yes; then
3213 HAVE_PCAP_HEADER="yes"
3214 fi
3215
3216
3217
3218 fi;
3219
3220 if test -z "$HAVE_PCAP_HEADER"; then
3221 { { echo "$as_me:$LINENO: error: can't find pcap.h" >&5
3222 echo "$as_me: error: can't find pcap.h" >&2;}
3223 { (exit 1); exit 1; }; }
3224 fi
3225
3226 { echo "$as_me:$LINENO: checking for camlidl header..." >&5
3227 echo "$as_me: checking for camlidl header..." >&6;}
3228
3229
3230 # Check whether --with-camlidl or --without-camlidl was given.
3231 if test "${with_camlidl+set}" = set; then
3232 withval="$with_camlidl"
3233
3234 camlidldir=$withval
3235 as_ac_Header=`echo "ac_cv_header_$camlidldir/caml/camlidlruntime.h" | $as_tr_sh`
3236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3237 echo "$as_me:$LINENO: checking for $camlidldir/caml/camlidlruntime.h" >&5
3238 echo $ECHO_N "checking for $camlidldir/caml/camlidlruntime.h... $ECHO_C" >&6
3239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 fi
3242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3244 else
3245 # Is the header compilable?
3246 echo "$as_me:$LINENO: checking $camlidldir/caml/camlidlruntime.h usability" >&5
3247 echo $ECHO_N "checking $camlidldir/caml/camlidlruntime.h usability... $ECHO_C" >&6
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255 $ac_includes_default
3256 #include <$camlidldir/caml/camlidlruntime.h>
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_header_compiler=yes
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 ac_header_compiler=no
3276 fi
3277 rm -f conftest.$ac_objext conftest.$ac_ext
3278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3279 echo "${ECHO_T}$ac_header_compiler" >&6
3280
3281 # Is the header present?
3282 echo "$as_me:$LINENO: checking $camlidldir/caml/camlidlruntime.h presence" >&5
3283 echo $ECHO_N "checking $camlidldir/caml/camlidlruntime.h presence... $ECHO_C" >&6
3284 cat >conftest.$ac_ext <<_ACEOF
3285 #line $LINENO "configure"
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include <$camlidldir/caml/camlidlruntime.h>
3292 _ACEOF
3293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } >/dev/null; then
3301 if test -s conftest.err; then
3302 ac_cpp_err=$ac_c_preproc_warn_flag
3303 else
3304 ac_cpp_err=
3305 fi
3306 else
3307 ac_cpp_err=yes
3308 fi
3309 if test -z "$ac_cpp_err"; then
3310 ac_header_preproc=yes
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 ac_header_preproc=no
3316 fi
3317 rm -f conftest.err conftest.$ac_ext
3318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3319 echo "${ECHO_T}$ac_header_preproc" >&6
3320
3321 # So? What about this header?
3322 case $ac_header_compiler:$ac_header_preproc in
3323 yes:no )
3324 { echo "$as_me:$LINENO: WARNING: $camlidldir/caml/camlidlruntime.h: accepted by the compiler, rejected by the preprocessor!" >&5
3325 echo "$as_me: WARNING: $camlidldir/caml/camlidlruntime.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3326 { echo "$as_me:$LINENO: WARNING: $camlidldir/caml/camlidlruntime.h: proceeding with the preprocessor's result" >&5
3327 echo "$as_me: WARNING: $camlidldir/caml/camlidlruntime.h: proceeding with the preprocessor's result" >&2;}
3328 (
3329 cat <<\_ASBOX
3330 ## ------------------------------------ ##
3331 ## Report this to [email protected]. ##
3332 ## ------------------------------------ ##
3333 _ASBOX
3334 ) |
3335 sed "s/^/$as_me: WARNING: /" >&2
3336 ;;
3337 no:yes )
3338 { echo "$as_me:$LINENO: WARNING: $camlidldir/caml/camlidlruntime.h: present but cannot be compiled" >&5
3339 echo "$as_me: WARNING: $camlidldir/caml/camlidlruntime.h: present but cannot be compiled" >&2;}
3340 { echo "$as_me:$LINENO: WARNING: $camlidldir/caml/camlidlruntime.h: check for missing prerequisite headers?" >&5
3341 echo "$as_me: WARNING: $camlidldir/caml/camlidlruntime.h: check for missing prerequisite headers?" >&2;}
3342 { echo "$as_me:$LINENO: WARNING: $camlidldir/caml/camlidlruntime.h: proceeding with the preprocessor's result" >&5
3343 echo "$as_me: WARNING: $camlidldir/caml/camlidlruntime.h: proceeding with the preprocessor's result" >&2;}
3344 (
3345 cat <<\_ASBOX
3346 ## ------------------------------------ ##
3347 ## Report this to [email protected]. ##
3348 ## ------------------------------------ ##
3349 _ASBOX
3350 ) |
3351 sed "s/^/$as_me: WARNING: /" >&2
3352 ;;
3353 esac
3354 echo "$as_me:$LINENO: checking for $camlidldir/caml/camlidlruntime.h" >&5
3355 echo $ECHO_N "checking for $camlidldir/caml/camlidlruntime.h... $ECHO_C" >&6
3356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 eval "$as_ac_Header=$ac_header_preproc"
3360 fi
3361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3363
3364 fi
3365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3366 CFLAGS="$CFLAGS -I$camlidldir"; HAVE_CAMLIDLRUNTIME_H="yes"
3367 fi
3368
3369
3370
3371 else
3372
3373 if test "${ac_cv_header_caml_camlidlruntime_h+set}" = set; then
3374 echo "$as_me:$LINENO: checking for caml/camlidlruntime.h" >&5
3375 echo $ECHO_N "checking for caml/camlidlruntime.h... $ECHO_C" >&6
3376 if test "${ac_cv_header_caml_camlidlruntime_h+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 fi
3379 echo "$as_me:$LINENO: result: $ac_cv_header_caml_camlidlruntime_h" >&5
3380 echo "${ECHO_T}$ac_cv_header_caml_camlidlruntime_h" >&6
3381 else
3382 # Is the header compilable?
3383 echo "$as_me:$LINENO: checking caml/camlidlruntime.h usability" >&5
3384 echo $ECHO_N "checking caml/camlidlruntime.h usability... $ECHO_C" >&6
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #line $LINENO "configure"
3387 /* confdefs.h. */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3392 $ac_includes_default
3393 #include <caml/camlidlruntime.h>
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try='test -s conftest.$ac_objext'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 (eval $ac_try) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 ac_header_compiler=yes
3408 else
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3411
3412 ac_header_compiler=no
3413 fi
3414 rm -f conftest.$ac_objext conftest.$ac_ext
3415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3416 echo "${ECHO_T}$ac_header_compiler" >&6
3417
3418 # Is the header present?
3419 echo "$as_me:$LINENO: checking caml/camlidlruntime.h presence" >&5
3420 echo $ECHO_N "checking caml/camlidlruntime.h presence... $ECHO_C" >&6
3421 cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 #include <caml/camlidlruntime.h>
3429 _ACEOF
3430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null; then
3438 if test -s conftest.err; then
3439 ac_cpp_err=$ac_c_preproc_warn_flag
3440 else
3441 ac_cpp_err=
3442 fi
3443 else
3444 ac_cpp_err=yes
3445 fi
3446 if test -z "$ac_cpp_err"; then
3447 ac_header_preproc=yes
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 ac_header_preproc=no
3453 fi
3454 rm -f conftest.err conftest.$ac_ext
3455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3456 echo "${ECHO_T}$ac_header_preproc" >&6
3457
3458 # So? What about this header?
3459 case $ac_header_compiler:$ac_header_preproc in
3460 yes:no )
3461 { echo "$as_me:$LINENO: WARNING: caml/camlidlruntime.h: accepted by the compiler, rejected by the preprocessor!" >&5
3462 echo "$as_me: WARNING: caml/camlidlruntime.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3463 { echo "$as_me:$LINENO: WARNING: caml/camlidlruntime.h: proceeding with the preprocessor's result" >&5
3464 echo "$as_me: WARNING: caml/camlidlruntime.h: proceeding with the preprocessor's result" >&2;}
3465 (
3466 cat <<\_ASBOX
3467 ## ------------------------------------ ##
3468 ## Report this to [email protected]. ##
3469 ## ------------------------------------ ##
3470 _ASBOX
3471 ) |
3472 sed "s/^/$as_me: WARNING: /" >&2
3473 ;;
3474 no:yes )
3475 { echo "$as_me:$LINENO: WARNING: caml/camlidlruntime.h: present but cannot be compiled" >&5
3476 echo "$as_me: WARNING: caml/camlidlruntime.h: present but cannot be compiled" >&2;}
3477 { echo "$as_me:$LINENO: WARNING: caml/camlidlruntime.h: check for missing prerequisite headers?" >&5
3478 echo "$as_me: WARNING: caml/camlidlruntime.h: check for missing prerequisite headers?" >&2;}
3479 { echo "$as_me:$LINENO: WARNING: caml/camlidlruntime.h: proceeding with the preprocessor's result" >&5
3480 echo "$as_me: WARNING: caml/camlidlruntime.h: proceeding with the preprocessor's result" >&2;}
3481 (
3482 cat <<\_ASBOX
3483 ## ------------------------------------ ##
3484 ## Report this to [email protected]. ##
3485 ## ------------------------------------ ##
3486 _ASBOX
3487 ) |
3488 sed "s/^/$as_me: WARNING: /" >&2
3489 ;;
3490 esac
3491 echo "$as_me:$LINENO: checking for caml/camlidlruntime.h" >&5
3492 echo $ECHO_N "checking for caml/camlidlruntime.h... $ECHO_C" >&6
3493 if test "${ac_cv_header_caml_camlidlruntime_h+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496 ac_cv_header_caml_camlidlruntime_h=$ac_header_preproc
3497 fi
3498 echo "$as_me:$LINENO: result: $ac_cv_header_caml_camlidlruntime_h" >&5
3499 echo "${ECHO_T}$ac_cv_header_caml_camlidlruntime_h" >&6
3500
3501 fi
3502 if test $ac_cv_header_caml_camlidlruntime_h = yes; then
3503 HAVE_CAMLIDLRUNTIME_H="yes"
3504 fi
3505
3506
3507
3508 fi;
3509
3510 if test -z "$HAVE_CAMLIDLRUNTIME_H"; then
3511 { { echo "$as_me:$LINENO: error: can't find camlidlruntime.h" >&5
3512 echo "$as_me: error: can't find camlidlruntime.h" >&2;}
3513 { (exit 1); exit 1; }; }
3514 fi
3515
3516 { echo "$as_me:$LINENO: checking for ffcall callback header..." >&5
3517 echo "$as_me: checking for ffcall callback header..." >&6;}
3518
3519
3520 # Check whether --with-ffcall or --without-ffcall was given.
3521 if test "${with_ffcall+set}" = set; then
3522 withval="$with_ffcall"
3523
3524 ffcalldir=$withval
3525 as_ac_Header=`echo "ac_cv_header_$ffcalldir/callback.h" | $as_tr_sh`
3526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3527 echo "$as_me:$LINENO: checking for $ffcalldir/callback.h" >&5
3528 echo $ECHO_N "checking for $ffcalldir/callback.h... $ECHO_C" >&6
3529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 fi
3532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3534 else
3535 # Is the header compilable?
3536 echo "$as_me:$LINENO: checking $ffcalldir/callback.h usability" >&5
3537 echo $ECHO_N "checking $ffcalldir/callback.h usability... $ECHO_C" >&6
3538 cat >conftest.$ac_ext <<_ACEOF
3539 #line $LINENO "configure"
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 $ac_includes_default
3546 #include <$ffcalldir/callback.h>
3547 _ACEOF
3548 rm -f conftest.$ac_objext
3549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3550 (eval $ac_compile) 2>&5
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } &&
3554 { ac_try='test -s conftest.$ac_objext'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3560 ac_header_compiler=yes
3561 else
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 ac_header_compiler=no
3566 fi
3567 rm -f conftest.$ac_objext conftest.$ac_ext
3568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3569 echo "${ECHO_T}$ac_header_compiler" >&6
3570
3571 # Is the header present?
3572 echo "$as_me:$LINENO: checking $ffcalldir/callback.h presence" >&5
3573 echo $ECHO_N "checking $ffcalldir/callback.h presence... $ECHO_C" >&6
3574 cat >conftest.$ac_ext <<_ACEOF
3575 #line $LINENO "configure"
3576 /* confdefs.h. */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 #include <$ffcalldir/callback.h>
3582 _ACEOF
3583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } >/dev/null; then
3591 if test -s conftest.err; then
3592 ac_cpp_err=$ac_c_preproc_warn_flag
3593 else
3594 ac_cpp_err=
3595 fi
3596 else
3597 ac_cpp_err=yes
3598 fi
3599 if test -z "$ac_cpp_err"; then
3600 ac_header_preproc=yes
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 ac_header_preproc=no
3606 fi
3607 rm -f conftest.err conftest.$ac_ext
3608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3609 echo "${ECHO_T}$ac_header_preproc" >&6
3610
3611 # So? What about this header?
3612 case $ac_header_compiler:$ac_header_preproc in
3613 yes:no )
3614 { echo "$as_me:$LINENO: WARNING: $ffcalldir/callback.h: accepted by the compiler, rejected by the preprocessor!" >&5
3615 echo "$as_me: WARNING: $ffcalldir/callback.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3616 { echo "$as_me:$LINENO: WARNING: $ffcalldir/callback.h: proceeding with the preprocessor's result" >&5
3617 echo "$as_me: WARNING: $ffcalldir/callback.h: proceeding with the preprocessor's result" >&2;}
3618 (
3619 cat <<\_ASBOX
3620 ## ------------------------------------ ##
3621 ## Report this to [email protected]. ##
3622 ## ------------------------------------ ##
3623 _ASBOX
3624 ) |
3625 sed "s/^/$as_me: WARNING: /" >&2
3626 ;;
3627 no:yes )
3628 { echo "$as_me:$LINENO: WARNING: $ffcalldir/callback.h: present but cannot be compiled" >&5
3629 echo "$as_me: WARNING: $ffcalldir/callback.h: present but cannot be compiled" >&2;}
3630 { echo "$as_me:$LINENO: WARNING: $ffcalldir/callback.h: check for missing prerequisite headers?" >&5
3631 echo "$as_me: WARNING: $ffcalldir/callback.h: check for missing prerequisite headers?" >&2;}
3632 { echo "$as_me:$LINENO: WARNING: $ffcalldir/callback.h: proceeding with the preprocessor's result" >&5
3633 echo "$as_me: WARNING: $ffcalldir/callback.h: proceeding with the preprocessor's result" >&2;}
3634 (
3635 cat <<\_ASBOX
3636 ## ------------------------------------ ##
3637 ## Report this to [email protected]. ##
3638 ## ------------------------------------ ##
3639 _ASBOX
3640 ) |
3641 sed "s/^/$as_me: WARNING: /" >&2
3642 ;;
3643 esac
3644 echo "$as_me:$LINENO: checking for $ffcalldir/callback.h" >&5
3645 echo $ECHO_N "checking for $ffcalldir/callback.h... $ECHO_C" >&6
3646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 eval "$as_ac_Header=$ac_header_preproc"
3650 fi
3651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3653
3654 fi
3655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3656 CFLAGS="$CFLAGS -I$ffcalldir"; HAVE_CALLBACK_H="yes"
3657 fi
3658
3659
3660
3661 else
3662
3663 if test "${ac_cv_header_callback_h+set}" = set; then
3664 echo "$as_me:$LINENO: checking for callback.h" >&5
3665 echo $ECHO_N "checking for callback.h... $ECHO_C" >&6
3666 if test "${ac_cv_header_callback_h+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 fi
3669 echo "$as_me:$LINENO: result: $ac_cv_header_callback_h" >&5
3670 echo "${ECHO_T}$ac_cv_header_callback_h" >&6
3671 else
3672 # Is the header compilable?
3673 echo "$as_me:$LINENO: checking callback.h usability" >&5
3674 echo $ECHO_N "checking callback.h usability... $ECHO_C" >&6
3675 cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 /* confdefs.h. */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3682 $ac_includes_default
3683 #include <callback.h>
3684 _ACEOF
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_header_compiler=yes
3698 else
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 ac_header_compiler=no
3703 fi
3704 rm -f conftest.$ac_objext conftest.$ac_ext
3705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3706 echo "${ECHO_T}$ac_header_compiler" >&6
3707
3708 # Is the header present?
3709 echo "$as_me:$LINENO: checking callback.h presence" >&5
3710 echo $ECHO_N "checking callback.h presence... $ECHO_C" >&6
3711 cat >conftest.$ac_ext <<_ACEOF
3712 #line $LINENO "configure"
3713 /* confdefs.h. */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3718 #include <callback.h>
3719 _ACEOF
3720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3722 ac_status=$?
3723 grep -v '^ *+' conftest.er1 >conftest.err
3724 rm -f conftest.er1
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } >/dev/null; then
3728 if test -s conftest.err; then
3729 ac_cpp_err=$ac_c_preproc_warn_flag
3730 else
3731 ac_cpp_err=
3732 fi
3733 else
3734 ac_cpp_err=yes
3735 fi
3736 if test -z "$ac_cpp_err"; then
3737 ac_header_preproc=yes
3738 else
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 ac_header_preproc=no
3743 fi
3744 rm -f conftest.err conftest.$ac_ext
3745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3746 echo "${ECHO_T}$ac_header_preproc" >&6
3747
3748 # So? What about this header?
3749 case $ac_header_compiler:$ac_header_preproc in
3750 yes:no )
3751 { echo "$as_me:$LINENO: WARNING: callback.h: accepted by the compiler, rejected by the preprocessor!" >&5
3752 echo "$as_me: WARNING: callback.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3753 { echo "$as_me:$LINENO: WARNING: callback.h: proceeding with the preprocessor's result" >&5
3754 echo "$as_me: WARNING: callback.h: proceeding with the preprocessor's result" >&2;}
3755 (
3756 cat <<\_ASBOX
3757 ## ------------------------------------ ##
3758 ## Report this to [email protected]. ##
3759 ## ------------------------------------ ##
3760 _ASBOX
3761 ) |
3762 sed "s/^/$as_me: WARNING: /" >&2
3763 ;;
3764 no:yes )
3765 { echo "$as_me:$LINENO: WARNING: callback.h: present but cannot be compiled" >&5
3766 echo "$as_me: WARNING: callback.h: present but cannot be compiled" >&2;}
3767 { echo "$as_me:$LINENO: WARNING: callback.h: check for missing prerequisite headers?" >&5
3768 echo "$as_me: WARNING: callback.h: check for missing prerequisite headers?" >&2;}
3769 { echo "$as_me:$LINENO: WARNING: callback.h: proceeding with the preprocessor's result" >&5
3770 echo "$as_me: WARNING: callback.h: proceeding with the preprocessor's result" >&2;}
3771 (
3772 cat <<\_ASBOX
3773 ## ------------------------------------ ##
3774 ## Report this to [email protected]. ##
3775 ## ------------------------------------ ##
3776 _ASBOX
3777 ) |
3778 sed "s/^/$as_me: WARNING: /" >&2
3779 ;;
3780 esac
3781 echo "$as_me:$LINENO: checking for callback.h" >&5
3782 echo $ECHO_N "checking for callback.h... $ECHO_C" >&6
3783 if test "${ac_cv_header_callback_h+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786 ac_cv_header_callback_h=$ac_header_preproc
3787 fi
3788 echo "$as_me:$LINENO: result: $ac_cv_header_callback_h" >&5
3789 echo "${ECHO_T}$ac_cv_header_callback_h" >&6
3790
3791 fi
3792 if test $ac_cv_header_callback_h = yes; then
3793 HAVE_CALLBACK_H="yes"
3794 fi
3795
3796
3797
3798 fi;
3799
3800 if test -z "$HAVE_CALLBACK_H"; then
3801 { { echo "$as_me:$LINENO: error: can't find callback.h" >&5
3802 echo "$as_me: error: can't find callback.h" >&2;}
3803 { (exit 1); exit 1; }; }
3804 fi
3805
3806
3807
3808
3809
3810
3811
3812
3813 if test "x$enable_examples" = "xyes"; then
3814 output="Makefile tests/Makefile"
3815 else
3816 output="Makefile"
3817 fi
3818
3819 ac_config_files="$ac_config_files $output"
3820 cat >confcache <<\_ACEOF
3821 # This file is a shell script that caches the results of configure
3822 # tests run on this system so they can be shared between configure
3823 # scripts and configure runs, see configure's option --config-cache.
3824 # It is not useful on other systems. If it contains results you don't
3825 # want to keep, you may remove or edit it.
3826 #
3827 # config.status only pays attention to the cache file if you give it
3828 # the --recheck option to rerun configure.
3829 #
3830 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3831 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3832 # following values.
3833
3834 _ACEOF
3835
3836 # The following way of writing the cache mishandles newlines in values,
3837 # but we know of no workaround that is simple, portable, and efficient.
3838 # So, don't put newlines in cache variables' values.
3839 # Ultrix sh set writes to stderr and can't be redirected directly,
3840 # and sets the high bit in the cache file unless we assign to the vars.
3841 {
3842 (set) 2>&1 |
3843 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3844 *ac_space=\ *)
3845 # `set' does not quote correctly, so add quotes (double-quote
3846 # substitution turns \\\\ into \\, and sed turns \\ into \).
3847 sed -n \
3848 "s/'/'\\\\''/g;
3849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3850 ;;
3851 *)
3852 # `set' quotes correctly as required by POSIX, so do not add quotes.
3853 sed -n \
3854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3855 ;;
3856 esac;
3857 } |
3858 sed '
3859 t clear
3860 : clear
3861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3862 t end
3863 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3864 : end' >>confcache
3865 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3866 if test -w $cache_file; then
3867 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3868 cat confcache >$cache_file
3869 else
3870 echo "not updating unwritable cache $cache_file"
3871 fi
3872 fi
3873 rm -f confcache
3874
3875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3876 # Let make expand exec_prefix.
3877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3878
3879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3881 # trailing colons and then remove the whole line if VPATH becomes empty
3882 # (actually we leave an empty line to preserve line numbers).
3883 if test "x$srcdir" = x.; then
3884 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3885 s/:*\$(srcdir):*/:/;
3886 s/:*\${srcdir}:*/:/;
3887 s/:*@srcdir@:*/:/;
3888 s/^\([^=]*=[ ]*\):*/\1/;
3889 s/:*$//;
3890 s/^[^=]*=[ ]*$//;
3891 }'
3892 fi
3893
3894 # Transform confdefs.h into DEFS.
3895 # Protect against shell expansion while executing Makefile rules.
3896 # Protect against Makefile macro expansion.
3897 #
3898 # If the first sed substitution is executed (which looks for macros that
3899 # take arguments), then we branch to the quote section. Otherwise,
3900 # look for a macro that doesn't take arguments.
3901 cat >confdef2opt.sed <<\_ACEOF
3902 t clear
3903 : clear
3904 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3905 t quote
3906 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3907 t quote
3908 d
3909 : quote
3910 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3911 s,\[,\\&,g
3912 s,\],\\&,g
3913 s,\$,$$,g
3914 p
3915 _ACEOF
3916 # We use echo to avoid assuming a particular line-breaking character.
3917 # The extra dot is to prevent the shell from consuming trailing
3918 # line-breaks from the sub-command output. A line-break within
3919 # single-quotes doesn't work because, if this script is created in a
3920 # platform that uses two characters for line-breaks (e.g., DOS), tr
3921 # would break.
3922 ac_LF_and_DOT=`echo; echo .`
3923 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3924 rm -f confdef2opt.sed
3925
3926
3927 ac_libobjs=
3928 ac_ltlibobjs=
3929 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3930 # 1. Remove the extension, and $U if already installed.
3931 ac_i=`echo "$ac_i" |
3932 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3933 # 2. Add them.
3934 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3935 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3936 done
3937 LIBOBJS=$ac_libobjs
3938
3939 LTLIBOBJS=$ac_ltlibobjs
3940
3941
3942
3943 : ${CONFIG_STATUS=./config.status}
3944 ac_clean_files_save=$ac_clean_files
3945 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3946 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3947 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3948 cat >$CONFIG_STATUS <<_ACEOF
3949 #! $SHELL
3950 # Generated by $as_me.
3951 # Run this file to recreate the current configuration.
3952 # Compiler output produced by configure, useful for debugging
3953 # configure, is in config.log if it exists.
3954
3955 debug=false
3956 ac_cs_recheck=false
3957 ac_cs_silent=false
3958 SHELL=\${CONFIG_SHELL-$SHELL}
3959 _ACEOF
3960
3961 cat >>$CONFIG_STATUS <<\_ACEOF
3962 ## --------------------- ##
3963 ## M4sh Initialization. ##
3964 ## --------------------- ##
3965
3966 # Be Bourne compatible
3967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3968 emulate sh
3969 NULLCMD=:
3970 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3971 # is contrary to our usage. Disable this feature.
3972 alias -g '${1+"$@"}'='"$@"'
3973 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3974 set -o posix
3975 fi
3976
3977 # Support unset when possible.
3978 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3979 as_unset=unset
3980 else
3981 as_unset=false
3982 fi
3983
3984
3985 # Work around bugs in pre-3.0 UWIN ksh.
3986 $as_unset ENV MAIL MAILPATH
3987 PS1='$ '
3988 PS2='> '
3989 PS4='+ '
3990
3991 # NLS nuisances.
3992 for as_var in \
3993 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3994 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3995 LC_TELEPHONE LC_TIME
3996 do
3997 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3998 eval $as_var=C; export $as_var
3999 else
4000 $as_unset $as_var
4001 fi
4002 done
4003
4004 # Required to use basename.
4005 if expr a : '\(a\)' >/dev/null 2>&1; then
4006 as_expr=expr
4007 else
4008 as_expr=false
4009 fi
4010
4011 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4012 as_basename=basename
4013 else
4014 as_basename=false
4015 fi
4016
4017
4018 # Name of the executable.
4019 as_me=`$as_basename "$0" ||
4020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4021 X"$0" : 'X\(//\)$' \| \
4022 X"$0" : 'X\(/\)$' \| \
4023 . : '\(.\)' 2>/dev/null ||
4024 echo X/"$0" |
4025 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4026 /^X\/\(\/\/\)$/{ s//\1/; q; }
4027 /^X\/\(\/\).*/{ s//\1/; q; }
4028 s/.*/./; q'`
4029
4030
4031 # PATH needs CR, and LINENO needs CR and PATH.
4032 # Avoid depending upon Character Ranges.
4033 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4035 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4036 as_cr_digits='0123456789'
4037 as_cr_alnum=$as_cr_Letters$as_cr_digits
4038
4039 # The user is always right.
4040 if test "${PATH_SEPARATOR+set}" != set; then
4041 echo "#! /bin/sh" >conf$$.sh
4042 echo "exit 0" >>conf$$.sh
4043 chmod +x conf$$.sh
4044 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4045 PATH_SEPARATOR=';'
4046 else
4047 PATH_SEPARATOR=:
4048 fi
4049 rm -f conf$$.sh
4050 fi
4051
4052
4053 as_lineno_1=$LINENO
4054 as_lineno_2=$LINENO
4055 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4056 test "x$as_lineno_1" != "x$as_lineno_2" &&
4057 test "x$as_lineno_3" = "x$as_lineno_2" || {
4058 # Find who we are. Look in the path if we contain no path at all
4059 # relative or not.
4060 case $0 in
4061 *[\\/]* ) as_myself=$0 ;;
4062 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4068 done
4069
4070 ;;
4071 esac
4072 # We did not find ourselves, most probably we were run as `sh COMMAND'
4073 # in which case we are not to be found in the path.
4074 if test "x$as_myself" = x; then
4075 as_myself=$0
4076 fi
4077 if test ! -f "$as_myself"; then
4078 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4079 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4080 { (exit 1); exit 1; }; }
4081 fi
4082 case $CONFIG_SHELL in
4083 '')
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4086 do
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for as_base in sh bash ksh sh5; do
4090 case $as_dir in
4091 /*)
4092 if ("$as_dir/$as_base" -c '
4093 as_lineno_1=$LINENO
4094 as_lineno_2=$LINENO
4095 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4096 test "x$as_lineno_1" != "x$as_lineno_2" &&
4097 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4098 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4099 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4100 CONFIG_SHELL=$as_dir/$as_base
4101 export CONFIG_SHELL
4102 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4103 fi;;
4104 esac
4105 done
4106 done
4107 ;;
4108 esac
4109
4110 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4111 # uniformly replaced by the line number. The first 'sed' inserts a
4112 # line-number line before each line; the second 'sed' does the real
4113 # work. The second script uses 'N' to pair each line-number line
4114 # with the numbered line, and appends trailing '-' during
4115 # substitution so that $LINENO is not a special case at line end.
4116 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4117 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4118 sed '=' <$as_myself |
4119 sed '
4120 N
4121 s,$,-,
4122 : loop
4123 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4124 t loop
4125 s,-$,,
4126 s,^['$as_cr_digits']*\n,,
4127 ' >$as_me.lineno &&
4128 chmod +x $as_me.lineno ||
4129 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4130 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4131 { (exit 1); exit 1; }; }
4132
4133 # Don't try to exec as it changes $[0], causing all sort of problems
4134 # (the dirname of $[0] is not the place where we might find the
4135 # original and so on. Autoconf is especially sensible to this).
4136 . ./$as_me.lineno
4137 # Exit status is that of the last command.
4138 exit
4139 }
4140
4141
4142 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4143 *c*,-n*) ECHO_N= ECHO_C='
4144 ' ECHO_T=' ' ;;
4145 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4146 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4147 esac
4148
4149 if expr a : '\(a\)' >/dev/null 2>&1; then
4150 as_expr=expr
4151 else
4152 as_expr=false
4153 fi
4154
4155 rm -f conf$$ conf$$.exe conf$$.file
4156 echo >conf$$.file
4157 if ln -s conf$$.file conf$$ 2>/dev/null; then
4158 # We could just check for DJGPP; but this test a) works b) is more generic
4159 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4160 if test -f conf$$.exe; then
4161 # Don't use ln at all; we don't have any links
4162 as_ln_s='cp -p'
4163 else
4164 as_ln_s='ln -s'
4165 fi
4166 elif ln conf$$.file conf$$ 2>/dev/null; then
4167 as_ln_s=ln
4168 else
4169 as_ln_s='cp -p'
4170 fi
4171 rm -f conf$$ conf$$.exe conf$$.file
4172
4173 if mkdir -p . 2>/dev/null; then
4174 as_mkdir_p=:
4175 else
4176 as_mkdir_p=false
4177 fi
4178
4179 as_executable_p="test -f"
4180
4181 # Sed expression to map a string onto a valid CPP name.
4182 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4183
4184 # Sed expression to map a string onto a valid variable name.
4185 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4186
4187
4188 # IFS
4189 # We need space, tab and new line, in precisely that order.
4190 as_nl='
4191 '
4192 IFS=" $as_nl"
4193
4194 # CDPATH.
4195 $as_unset CDPATH
4196
4197 exec 6>&1
4198
4199 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4200 # report actual input values of CONFIG_FILES etc. instead of their
4201 # values after options handling. Logging --version etc. is OK.
4202 exec 5>>config.log
4203 {
4204 echo
4205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4206 ## Running $as_me. ##
4207 _ASBOX
4208 } >&5
4209 cat >&5 <<_CSEOF
4210
4211 This file was extended by $as_me, which was
4212 generated by GNU Autoconf 2.57. Invocation command line was
4213
4214 CONFIG_FILES = $CONFIG_FILES
4215 CONFIG_HEADERS = $CONFIG_HEADERS
4216 CONFIG_LINKS = $CONFIG_LINKS
4217 CONFIG_COMMANDS = $CONFIG_COMMANDS
4218 $ $0 $@
4219
4220 _CSEOF
4221 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4222 echo >&5
4223 _ACEOF
4224
4225 # Files that config.status was made for.
4226 if test -n "$ac_config_files"; then
4227 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4228 fi
4229
4230 if test -n "$ac_config_headers"; then
4231 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4232 fi
4233
4234 if test -n "$ac_config_links"; then
4235 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4236 fi
4237
4238 if test -n "$ac_config_commands"; then
4239 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4240 fi
4241
4242 cat >>$CONFIG_STATUS <<\_ACEOF
4243
4244 ac_cs_usage="\
4245 \`$as_me' instantiates files from templates according to the
4246 current configuration.
4247
4248 Usage: $0 [OPTIONS] [FILE]...
4249
4250 -h, --help print this help, then exit
4251 -V, --version print version number, then exit
4252 -q, --quiet do not print progress messages
4253 -d, --debug don't remove temporary files
4254 --recheck update $as_me by reconfiguring in the same conditions
4255 --file=FILE[:TEMPLATE]
4256 instantiate the configuration file FILE
4257
4258 Configuration files:
4259 $config_files
4260
4261 Report bugs to <[email protected]>."
4262 _ACEOF
4263
4264 cat >>$CONFIG_STATUS <<_ACEOF
4265 ac_cs_version="\\
4266 config.status
4267 configured by $0, generated by GNU Autoconf 2.57,
4268 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4269
4270 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4271 Free Software Foundation, Inc.
4272 This config.status script is free software; the Free Software Foundation
4273 gives unlimited permission to copy, distribute and modify it."
4274 srcdir=$srcdir
4275 INSTALL="$INSTALL"
4276 _ACEOF
4277
4278 cat >>$CONFIG_STATUS <<\_ACEOF
4279 # If no file are specified by the user, then we need to provide default
4280 # value. By we need to know if files were specified by the user.
4281 ac_need_defaults=:
4282 while test $# != 0
4283 do
4284 case $1 in
4285 --*=*)
4286 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4287 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4288 ac_shift=:
4289 ;;
4290 -*)
4291 ac_option=$1
4292 ac_optarg=$2
4293 ac_shift=shift
4294 ;;
4295 *) # This is not an option, so the user has probably given explicit
4296 # arguments.
4297 ac_option=$1
4298 ac_need_defaults=false;;
4299 esac
4300
4301 case $ac_option in
4302 # Handling of the options.
4303 _ACEOF
4304 cat >>$CONFIG_STATUS <<\_ACEOF
4305 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4306 ac_cs_recheck=: ;;
4307 --version | --vers* | -V )
4308 echo "$ac_cs_version"; exit 0 ;;
4309 --he | --h)
4310 # Conflict between --help and --header
4311 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4312 Try \`$0 --help' for more information." >&5
4313 echo "$as_me: error: ambiguous option: $1
4314 Try \`$0 --help' for more information." >&2;}
4315 { (exit 1); exit 1; }; };;
4316 --help | --hel | -h )
4317 echo "$ac_cs_usage"; exit 0 ;;
4318 --debug | --d* | -d )
4319 debug=: ;;
4320 --file | --fil | --fi | --f )
4321 $ac_shift
4322 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4323 ac_need_defaults=false;;
4324 --header | --heade | --head | --hea )
4325 $ac_shift
4326 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4327 ac_need_defaults=false;;
4328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4329 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4330 ac_cs_silent=: ;;
4331
4332 # This is an error.
4333 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4334 Try \`$0 --help' for more information." >&5
4335 echo "$as_me: error: unrecognized option: $1
4336 Try \`$0 --help' for more information." >&2;}
4337 { (exit 1); exit 1; }; } ;;
4338
4339 *) ac_config_targets="$ac_config_targets $1" ;;
4340
4341 esac
4342 shift
4343 done
4344
4345 ac_configure_extra_args=
4346
4347 if $ac_cs_silent; then
4348 exec 6>/dev/null
4349 ac_configure_extra_args="$ac_configure_extra_args --silent"
4350 fi
4351
4352 _ACEOF
4353 cat >>$CONFIG_STATUS <<_ACEOF
4354 if \$ac_cs_recheck; then
4355 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4356 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4357 fi
4358
4359 _ACEOF
4360
4361
4362
4363
4364
4365 cat >>$CONFIG_STATUS <<\_ACEOF
4366 for ac_config_target in $ac_config_targets
4367 do
4368 case "$ac_config_target" in
4369 # Handling of arguments.
4370 "$output" ) CONFIG_FILES="$CONFIG_FILES $output" ;;
4371 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4372 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4373 { (exit 1); exit 1; }; };;
4374 esac
4375 done
4376
4377 # If the user did not use the arguments to specify the items to instantiate,
4378 # then the envvar interface is used. Set only those that are not.
4379 # We use the long form for the default assignment because of an extremely
4380 # bizarre bug on SunOS 4.1.3.
4381 if $ac_need_defaults; then
4382 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4383 fi
4384
4385 # Have a temporary directory for convenience. Make it in the build tree
4386 # simply because there is no reason to put it here, and in addition,
4387 # creating and moving files from /tmp can sometimes cause problems.
4388 # Create a temporary directory, and hook for its removal unless debugging.
4389 $debug ||
4390 {
4391 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4392 trap '{ (exit 1); exit 1; }' 1 2 13 15
4393 }
4394
4395 # Create a (secure) tmp directory for tmp files.
4396
4397 {
4398 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4399 test -n "$tmp" && test -d "$tmp"
4400 } ||
4401 {
4402 tmp=./confstat$$-$RANDOM
4403 (umask 077 && mkdir $tmp)
4404 } ||
4405 {
4406 echo "$me: cannot create a temporary directory in ." >&2
4407 { (exit 1); exit 1; }
4408 }
4409
4410 _ACEOF
4411
4412 cat >>$CONFIG_STATUS <<_ACEOF
4413
4414 #
4415 # CONFIG_FILES section.
4416 #
4417
4418 # No need to generate the scripts if there are no CONFIG_FILES.
4419 # This happens for instance when ./config.status config.h
4420 if test -n "\$CONFIG_FILES"; then
4421 # Protect against being on the right side of a sed subst in config.status.
4422 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4423 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4424 s,@SHELL@,$SHELL,;t t
4425 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4426 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4427 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4428 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4429 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4430 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4431 s,@exec_prefix@,$exec_prefix,;t t
4432 s,@prefix@,$prefix,;t t
4433 s,@program_transform_name@,$program_transform_name,;t t
4434 s,@bindir@,$bindir,;t t
4435 s,@sbindir@,$sbindir,;t t
4436 s,@libexecdir@,$libexecdir,;t t
4437 s,@datadir@,$datadir,;t t
4438 s,@sysconfdir@,$sysconfdir,;t t
4439 s,@sharedstatedir@,$sharedstatedir,;t t
4440 s,@localstatedir@,$localstatedir,;t t
4441 s,@libdir@,$libdir,;t t
4442 s,@includedir@,$includedir,;t t
4443 s,@oldincludedir@,$oldincludedir,;t t
4444 s,@infodir@,$infodir,;t t
4445 s,@mandir@,$mandir,;t t
4446 s,@build_alias@,$build_alias,;t t
4447 s,@host_alias@,$host_alias,;t t
4448 s,@target_alias@,$target_alias,;t t
4449 s,@DEFS@,$DEFS,;t t
4450 s,@ECHO_C@,$ECHO_C,;t t
4451 s,@ECHO_N@,$ECHO_N,;t t
4452 s,@ECHO_T@,$ECHO_T,;t t
4453 s,@LIBS@,$LIBS,;t t
4454 s,@VERSION@,$VERSION,;t t
4455 s,@ARCH@,$ARCH,;t t
4456 s,@ocamlc@,$ocamlc,;t t
4457 s,@ocamlopt@,$ocamlopt,;t t
4458 s,@ocamlfind@,$ocamlfind,;t t
4459 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4460 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4461 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4462 s,@INSTALL@,$INSTALL,;t t
4463 s,@CC@,$CC,;t t
4464 s,@CFLAGS@,$CFLAGS,;t t
4465 s,@LDFLAGS@,$LDFLAGS,;t t
4466 s,@CPPFLAGS@,$CPPFLAGS,;t t
4467 s,@ac_ct_CC@,$ac_ct_CC,;t t
4468 s,@EXEEXT@,$EXEEXT,;t t
4469 s,@OBJEXT@,$OBJEXT,;t t
4470 s,@CPP@,$CPP,;t t
4471 s,@EGREP@,$EGREP,;t t
4472 s,@camlidldir@,$camlidldir,;t t
4473 s,@camlidllibdir@,$camlidllibdir,;t t
4474 s,@ffcalldir@,$ffcalldir,;t t
4475 s,@ffcallarchive@,$ffcallarchive,;t t
4476 s,@libpcapdir@,$libpcapdir,;t t
4477 s,@cp4flag@,$cp4flag,;t t
4478 s,@LIBOBJS@,$LIBOBJS,;t t
4479 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4480 CEOF
4481
4482 _ACEOF
4483
4484 cat >>$CONFIG_STATUS <<\_ACEOF
4485 # Split the substitutions into bite-sized pieces for seds with
4486 # small command number limits, like on Digital OSF/1 and HP-UX.
4487 ac_max_sed_lines=48
4488 ac_sed_frag=1 # Number of current file.
4489 ac_beg=1 # First line for current file.
4490 ac_end=$ac_max_sed_lines # Line after last line for current file.
4491 ac_more_lines=:
4492 ac_sed_cmds=
4493 while $ac_more_lines; do
4494 if test $ac_beg -gt 1; then
4495 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4496 else
4497 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4498 fi
4499 if test ! -s $tmp/subs.frag; then
4500 ac_more_lines=false
4501 else
4502 # The purpose of the label and of the branching condition is to
4503 # speed up the sed processing (if there are no `@' at all, there
4504 # is no need to browse any of the substitutions).
4505 # These are the two extra sed commands mentioned above.
4506 (echo ':t
4507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4508 if test -z "$ac_sed_cmds"; then
4509 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4510 else
4511 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4512 fi
4513 ac_sed_frag=`expr $ac_sed_frag + 1`
4514 ac_beg=$ac_end
4515 ac_end=`expr $ac_end + $ac_max_sed_lines`
4516 fi
4517 done
4518 if test -z "$ac_sed_cmds"; then
4519 ac_sed_cmds=cat
4520 fi
4521 fi # test -n "$CONFIG_FILES"
4522
4523 _ACEOF
4524 cat >>$CONFIG_STATUS <<\_ACEOF
4525 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4526 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4527 case $ac_file in
4528 - | *:- | *:-:* ) # input from stdin
4529 cat >$tmp/stdin
4530 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4532 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4534 * ) ac_file_in=$ac_file.in ;;
4535 esac
4536
4537 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4538 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4539 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4540 X"$ac_file" : 'X\(//\)[^/]' \| \
4541 X"$ac_file" : 'X\(//\)$' \| \
4542 X"$ac_file" : 'X\(/\)' \| \
4543 . : '\(.\)' 2>/dev/null ||
4544 echo X"$ac_file" |
4545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4547 /^X\(\/\/\)$/{ s//\1/; q; }
4548 /^X\(\/\).*/{ s//\1/; q; }
4549 s/.*/./; q'`
4550 { if $as_mkdir_p; then
4551 mkdir -p "$ac_dir"
4552 else
4553 as_dir="$ac_dir"
4554 as_dirs=
4555 while test ! -d "$as_dir"; do
4556 as_dirs="$as_dir $as_dirs"
4557 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4559 X"$as_dir" : 'X\(//\)[^/]' \| \
4560 X"$as_dir" : 'X\(//\)$' \| \
4561 X"$as_dir" : 'X\(/\)' \| \
4562 . : '\(.\)' 2>/dev/null ||
4563 echo X"$as_dir" |
4564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4566 /^X\(\/\/\)$/{ s//\1/; q; }
4567 /^X\(\/\).*/{ s//\1/; q; }
4568 s/.*/./; q'`
4569 done
4570 test ! -n "$as_dirs" || mkdir $as_dirs
4571 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4572 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4573 { (exit 1); exit 1; }; }; }
4574
4575 ac_builddir=.
4576
4577 if test "$ac_dir" != .; then
4578 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4579 # A "../" for each directory in $ac_dir_suffix.
4580 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4581 else
4582 ac_dir_suffix= ac_top_builddir=
4583 fi
4584
4585 case $srcdir in
4586 .) # No --srcdir option. We are building in place.
4587 ac_srcdir=.
4588 if test -z "$ac_top_builddir"; then
4589 ac_top_srcdir=.
4590 else
4591 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4592 fi ;;
4593 [\\/]* | ?:[\\/]* ) # Absolute path.
4594 ac_srcdir=$srcdir$ac_dir_suffix;
4595 ac_top_srcdir=$srcdir ;;
4596 *) # Relative path.
4597 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4598 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4599 esac
4600 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4601 # absolute.
4602 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4603 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4604 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4605 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4606
4607
4608 case $INSTALL in
4609 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4610 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4611 esac
4612
4613 if test x"$ac_file" != x-; then
4614 { echo "$as_me:$LINENO: creating $ac_file" >&5
4615 echo "$as_me: creating $ac_file" >&6;}
4616 rm -f "$ac_file"
4617 fi
4618 # Let's still pretend it is `configure' which instantiates (i.e., don't
4619 # use $as_me), people would be surprised to read:
4620 # /* config.h. Generated by config.status. */
4621 if test x"$ac_file" = x-; then
4622 configure_input=
4623 else
4624 configure_input="$ac_file. "
4625 fi
4626 configure_input=$configure_input"Generated from `echo $ac_file_in |
4627 sed 's,.*/,,'` by configure."
4628
4629 # First look for the input files in the build tree, otherwise in the
4630 # src tree.
4631 ac_file_inputs=`IFS=:
4632 for f in $ac_file_in; do
4633 case $f in
4634 -) echo $tmp/stdin ;;
4635 [\\/$]*)
4636 # Absolute (can't be DOS-style, as IFS=:)
4637 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4638 echo "$as_me: error: cannot find input file: $f" >&2;}
4639 { (exit 1); exit 1; }; }
4640 echo $f;;
4641 *) # Relative
4642 if test -f "$f"; then
4643 # Build tree
4644 echo $f
4645 elif test -f "$srcdir/$f"; then
4646 # Source tree
4647 echo $srcdir/$f
4648 else
4649 # /dev/null tree
4650 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4651 echo "$as_me: error: cannot find input file: $f" >&2;}
4652 { (exit 1); exit 1; }; }
4653 fi;;
4654 esac
4655 done` || { (exit 1); exit 1; }
4656 _ACEOF
4657 cat >>$CONFIG_STATUS <<_ACEOF
4658 sed "$ac_vpsub
4659 $extrasub
4660 _ACEOF
4661 cat >>$CONFIG_STATUS <<\_ACEOF
4662 :t
4663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4664 s,@configure_input@,$configure_input,;t t
4665 s,@srcdir@,$ac_srcdir,;t t
4666 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4667 s,@top_srcdir@,$ac_top_srcdir,;t t
4668 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4669 s,@builddir@,$ac_builddir,;t t
4670 s,@abs_builddir@,$ac_abs_builddir,;t t
4671 s,@top_builddir@,$ac_top_builddir,;t t
4672 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4673 s,@INSTALL@,$ac_INSTALL,;t t
4674 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4675 rm -f $tmp/stdin
4676 if test x"$ac_file" != x-; then
4677 mv $tmp/out $ac_file
4678 else
4679 cat $tmp/out
4680 rm -f $tmp/out
4681 fi
4682
4683 done
4684 _ACEOF
4685
4686 cat >>$CONFIG_STATUS <<\_ACEOF
4687
4688 { (exit 0); exit 0; }
4689 _ACEOF
4690 chmod +x $CONFIG_STATUS
4691 ac_clean_files=$ac_clean_files_save
4692
4693
4694 # configure is writing to config.log, and then calls config.status.
4695 # config.status does its own redirection, appending to config.log.
4696 # Unfortunately, on DOS this fails, as config.log is still kept open
4697 # by configure, so config.status won't be able to write to it; its
4698 # output is simply discarded. So we exec the FD to /dev/null,
4699 # effectively closing config.log, so it can be properly (re)opened and
4700 # appended to by config.status. When coming back to configure, we
4701 # need to make the FD available again.
4702 if test "$no_create" != yes; then
4703 ac_cs_success=:
4704 ac_config_status_args=
4705 test "$silent" = yes &&
4706 ac_config_status_args="$ac_config_status_args --quiet"
4707 exec 5>/dev/null
4708 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4709 exec 5>>config.log
4710 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4711 # would make configure fail if this is the last instruction.
4712 $ac_cs_success || { (exit 1); exit 1; }
4713 fi
4714