Debian Codegraph @

configure

raw
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-user=USER Specify which user will run the threads
16 by default (default: nobody)"
17 ac_help="$ac_help
18 --enable-multithread Run a thread for each new packet logged"
19 ac_help="$ac_help
20 --enable-cache-debug Display DNS cache statistics"
21 ac_help="$ac_help
22 --enable-filter-debug Display filtering process"
23 ac_help="$ac_help
24 --enable-parsing-debug Shows configuration parsing process"
25 ac_help="$ac_help
26 --enable-all-warnings Run the compiler in pedantic mode"
27 ac_help="$ac_help
28 --with-dmalloc Link the program with the dmalloc library"
29
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
33 build=NONE
34 cache_file=./config.cache
35 exec_prefix=NONE
36 host=NONE
37 no_create=
38 nonopt=NONE
39 no_recursion=
40 prefix=NONE
41 program_prefix=NONE
42 program_suffix=NONE
43 program_transform_name=s,x,x,
44 silent=
45 site=
46 srcdir=
47 target=NONE
48 verbose=
49 x_includes=NONE
50 x_libraries=NONE
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
63
64 # Initialize some other variables.
65 subdirs=
66 MFLAGS= MAKEFLAGS=
67 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
69 ac_max_here_lines=12
70
71 ac_prev=
72 for ac_option
73 do
74
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
78 ac_prev=
79 continue
80 fi
81
82 case "$ac_option" in
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 *) ac_optarg= ;;
85 esac
86
87 # Accept the important Cygnus configure options, so we can diagnose typos.
88
89 case "$ac_option" in
90
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 ac_prev=bindir ;;
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
95
96 -build | --build | --buil | --bui | --bu)
97 ac_prev=build ;;
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 build="$ac_optarg" ;;
100
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
107
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 ac_prev=datadir ;;
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 | --da=*)
112 datadir="$ac_optarg" ;;
113
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 fi
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
122
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 fi
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 case "$ac_option" in
131 *=*) ;;
132 *) ac_optarg=yes ;;
133 esac
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
135
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
144
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
147 with_gas=yes ;;
148
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
152 cat << EOF
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
155 Configuration:
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
163 [$ac_default_prefix]
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 [same as prefix]
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
170 [PREFIX/share]
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 [PREFIX/com]
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
185 EOF
186 cat << EOF
187 Host type:
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
198 EOF
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
201 fi
202 exit 0 ;;
203
204 -host | --host | --hos | --ho)
205 ac_prev=host ;;
206 -host=* | --host=* | --hos=* | --ho=*)
207 host="$ac_optarg" ;;
208
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
215
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 ac_prev=infodir ;;
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
220
221 -libdir | --libdir | --libdi | --libd)
222 ac_prev=libdir ;;
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
225
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
232
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
241
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 ac_prev=mandir ;;
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
246
247 -nfp | --nfp | --nf)
248 # Obsolete; use --without-fp.
249 with_fp=no ;;
250
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 | --no-cr | --no-c)
253 no_create=yes ;;
254
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 no_recursion=yes ;;
258
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
267
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 ac_prev=prefix ;;
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
272
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
279
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
286
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
303
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
306 silent=yes ;;
307
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 ac_prev=sbindir ;;
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 | --sbi=* | --sb=*)
312 sbindir="$ac_optarg" ;;
313
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
317 | --sha | --sh)
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 | --sha=* | --sh=*)
323 sharedstatedir="$ac_optarg" ;;
324
325 -site | --site | --sit)
326 ac_prev=site ;;
327 -site=* | --site=* | --sit=*)
328 site="$ac_optarg" ;;
329
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 ac_prev=srcdir ;;
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
334
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
341
342 -target | --target | --targe | --targ | --tar | --ta | --t)
343 ac_prev=target ;;
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
346
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 verbose=yes ;;
349
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
352 exit 0 ;;
353
354 -with-* | --with-*)
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 fi
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 case "$ac_option" in
362 *=*) ;;
363 *) ac_optarg=yes ;;
364 esac
365 eval "with_${ac_package}='$ac_optarg'" ;;
366
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 fi
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
375
376 --x)
377 # Obsolete; use --with-x.
378 with_x=yes ;;
379
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
386
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
393
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 ;;
396
397 *)
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 fi
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 fi
404 nonopt="$ac_option"
405 ;;
406
407 esac
408 done
409
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 fi
413
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415
416 # File descriptor usage:
417 # 0 standard input
418 # 1 file creation
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
425 exec 6>/dev/null
426 else
427 exec 6>&1
428 fi
429 exec 5>./config.log
430
431 echo "\
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
434 " 1>&5
435
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
438 ac_configure_args=
439 for ac_arg
440 do
441 case "$ac_arg" in
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449 esac
450 done
451
452 # NLS nuisances.
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
461
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 echo > confdefs.h
466
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=Makefile.in
470
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
475 ac_prog=$0
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 srcdir=$ac_confdir
479 if test ! -r $srcdir/$ac_unique_file; then
480 srcdir=..
481 fi
482 else
483 ac_srcdir_defaulted=no
484 fi
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 else
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 fi
491 fi
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498 else
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 fi
501 fi
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
505 . "$ac_site_file"
506 fi
507 done
508
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
511 . $cache_file
512 else
513 echo "creating cache $cache_file"
514 > $cache_file
515 fi
516
517 ac_ext=c
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
523
524 ac_exeext=
525 ac_objext=o
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='
530 ' ac_t=' '
531 else
532 ac_n=-n ac_c= ac_t=
533 fi
534 else
535 ac_n= ac_c='\c' ac_t=
536 fi
537
538
539
540 VERSION=`cat $srcdir/VERSION`
541
542
543 echo "Configuring ippl $VERSION..."
544 echo
545
546 # Extract the first word of "gcc", so it can be a program name with args.
547 set dummy gcc; ac_word=$2
548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
549 echo "configure:550: checking for $ac_word" >&5
550 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
551 echo $ac_n "(cached) $ac_c" 1>&6
552 else
553 if test -n "$CC"; then
554 ac_cv_prog_CC="$CC" # Let the user override the test.
555 else
556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
557 ac_dummy="$PATH"
558 for ac_dir in $ac_dummy; do
559 test -z "$ac_dir" && ac_dir=.
560 if test -f $ac_dir/$ac_word; then
561 ac_cv_prog_CC="gcc"
562 break
563 fi
564 done
565 IFS="$ac_save_ifs"
566 fi
567 fi
568 CC="$ac_cv_prog_CC"
569 if test -n "$CC"; then
570 echo "$ac_t""$CC" 1>&6
571 else
572 echo "$ac_t""no" 1>&6
573 fi
574
575 if test -z "$CC"; then
576 # Extract the first word of "cc", so it can be a program name with args.
577 set dummy cc; ac_word=$2
578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
579 echo "configure:580: checking for $ac_word" >&5
580 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
582 else
583 if test -n "$CC"; then
584 ac_cv_prog_CC="$CC" # Let the user override the test.
585 else
586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
587 ac_prog_rejected=no
588 ac_dummy="$PATH"
589 for ac_dir in $ac_dummy; do
590 test -z "$ac_dir" && ac_dir=.
591 if test -f $ac_dir/$ac_word; then
592 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
593 ac_prog_rejected=yes
594 continue
595 fi
596 ac_cv_prog_CC="cc"
597 break
598 fi
599 done
600 IFS="$ac_save_ifs"
601 if test $ac_prog_rejected = yes; then
602 # We found a bogon in the path, so make sure we never use it.
603 set dummy $ac_cv_prog_CC
604 shift
605 if test $# -gt 0; then
606 # We chose a different compiler from the bogus one.
607 # However, it has the same basename, so the bogon will be chosen
608 # first if we set CC to just the basename; use the full file name.
609 shift
610 set dummy "$ac_dir/$ac_word" "$@"
611 shift
612 ac_cv_prog_CC="$@"
613 fi
614 fi
615 fi
616 fi
617 CC="$ac_cv_prog_CC"
618 if test -n "$CC"; then
619 echo "$ac_t""$CC" 1>&6
620 else
621 echo "$ac_t""no" 1>&6
622 fi
623
624 if test -z "$CC"; then
625 case "`uname -s`" in
626 *win32* | *WIN32*)
627 # Extract the first word of "cl", so it can be a program name with args.
628 set dummy cl; ac_word=$2
629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
630 echo "configure:631: checking for $ac_word" >&5
631 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
633 else
634 if test -n "$CC"; then
635 ac_cv_prog_CC="$CC" # Let the user override the test.
636 else
637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
638 ac_dummy="$PATH"
639 for ac_dir in $ac_dummy; do
640 test -z "$ac_dir" && ac_dir=.
641 if test -f $ac_dir/$ac_word; then
642 ac_cv_prog_CC="cl"
643 break
644 fi
645 done
646 IFS="$ac_save_ifs"
647 fi
648 fi
649 CC="$ac_cv_prog_CC"
650 if test -n "$CC"; then
651 echo "$ac_t""$CC" 1>&6
652 else
653 echo "$ac_t""no" 1>&6
654 fi
655 ;;
656 esac
657 fi
658 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
659 fi
660
661 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
662 echo "configure:663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
663
664 ac_ext=c
665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
666 ac_cpp='$CPP $CPPFLAGS'
667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
669 cross_compiling=$ac_cv_prog_cc_cross
670
671 cat > conftest.$ac_ext << EOF
672
673 #line 674 "configure"
674 #include "confdefs.h"
675
676 main(){return(0);}
677 EOF
678 if { (eval echo configure:679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
679 ac_cv_prog_cc_works=yes
680 # If we can't run a trivial program, we are probably using a cross compiler.
681 if (./conftest; exit) 2>/dev/null; then
682 ac_cv_prog_cc_cross=no
683 else
684 ac_cv_prog_cc_cross=yes
685 fi
686 else
687 echo "configure: failed program was:" >&5
688 cat conftest.$ac_ext >&5
689 ac_cv_prog_cc_works=no
690 fi
691 rm -fr conftest*
692 ac_ext=c
693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
694 ac_cpp='$CPP $CPPFLAGS'
695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
697 cross_compiling=$ac_cv_prog_cc_cross
698
699 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
700 if test $ac_cv_prog_cc_works = no; then
701 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
702 fi
703 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
704 echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
705 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
706 cross_compiling=$ac_cv_prog_cc_cross
707
708 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
709 echo "configure:710: checking whether we are using GNU C" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
712 else
713 cat > conftest.c <<EOF
714 #ifdef __GNUC__
715 yes;
716 #endif
717 EOF
718 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
719 ac_cv_prog_gcc=yes
720 else
721 ac_cv_prog_gcc=no
722 fi
723 fi
724
725 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
726
727 if test $ac_cv_prog_gcc = yes; then
728 GCC=yes
729 else
730 GCC=
731 fi
732
733 ac_test_CFLAGS="${CFLAGS+set}"
734 ac_save_CFLAGS="$CFLAGS"
735 CFLAGS=
736 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
737 echo "configure:738: checking whether ${CC-cc} accepts -g" >&5
738 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
740 else
741 echo 'void f(){}' > conftest.c
742 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
743 ac_cv_prog_cc_g=yes
744 else
745 ac_cv_prog_cc_g=no
746 fi
747 rm -f conftest*
748
749 fi
750
751 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
752 if test "$ac_test_CFLAGS" = set; then
753 CFLAGS="$ac_save_CFLAGS"
754 elif test $ac_cv_prog_cc_g = yes; then
755 if test "$GCC" = yes; then
756 CFLAGS="-g -O2"
757 else
758 CFLAGS="-g"
759 fi
760 else
761 if test "$GCC" = yes; then
762 CFLAGS="-O2"
763 else
764 CFLAGS=
765 fi
766 fi
767
768 # Extract the first word of "flex", so it can be a program name with args.
769 set dummy flex; ac_word=$2
770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
771 echo "configure:772: checking for $ac_word" >&5
772 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
773 echo $ac_n "(cached) $ac_c" 1>&6
774 else
775 if test -n "$LEX"; then
776 ac_cv_prog_LEX="$LEX" # Let the user override the test.
777 else
778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
779 ac_dummy="$PATH"
780 for ac_dir in $ac_dummy; do
781 test -z "$ac_dir" && ac_dir=.
782 if test -f $ac_dir/$ac_word; then
783 ac_cv_prog_LEX="flex"
784 break
785 fi
786 done
787 IFS="$ac_save_ifs"
788 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
789 fi
790 fi
791 LEX="$ac_cv_prog_LEX"
792 if test -n "$LEX"; then
793 echo "$ac_t""$LEX" 1>&6
794 else
795 echo "$ac_t""no" 1>&6
796 fi
797
798 if test -z "$LEXLIB"
799 then
800 case "$LEX" in
801 flex*) ac_lib=fl ;;
802 *) ac_lib=l ;;
803 esac
804 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
805 echo "configure:806: checking for yywrap in -l$ac_lib" >&5
806 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
809 else
810 ac_save_LIBS="$LIBS"
811 LIBS="-l$ac_lib $LIBS"
812 cat > conftest.$ac_ext <<EOF
813 #line 814 "configure"
814 #include "confdefs.h"
815 /* Override any gcc2 internal prototype to avoid an error. */
816 /* We use char because int might match the return type of a gcc2
817 builtin and then its argument prototype would still apply. */
818 char yywrap();
819
820 int main() {
821 yywrap()
822 ; return 0; }
823 EOF
824 if { (eval echo configure:825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
825 rm -rf conftest*
826 eval "ac_cv_lib_$ac_lib_var=yes"
827 else
828 echo "configure: failed program was:" >&5
829 cat conftest.$ac_ext >&5
830 rm -rf conftest*
831 eval "ac_cv_lib_$ac_lib_var=no"
832 fi
833 rm -f conftest*
834 LIBS="$ac_save_LIBS"
835
836 fi
837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
838 echo "$ac_t""yes" 1>&6
839 LEXLIB="-l$ac_lib"
840 else
841 echo "$ac_t""no" 1>&6
842 fi
843
844 fi
845
846 for ac_prog in 'bison -y' byacc
847 do
848 # Extract the first word of "$ac_prog", so it can be a program name with args.
849 set dummy $ac_prog; ac_word=$2
850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851 echo "configure:852: checking for $ac_word" >&5
852 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
854 else
855 if test -n "$YACC"; then
856 ac_cv_prog_YACC="$YACC" # Let the user override the test.
857 else
858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
859 ac_dummy="$PATH"
860 for ac_dir in $ac_dummy; do
861 test -z "$ac_dir" && ac_dir=.
862 if test -f $ac_dir/$ac_word; then
863 ac_cv_prog_YACC="$ac_prog"
864 break
865 fi
866 done
867 IFS="$ac_save_ifs"
868 fi
869 fi
870 YACC="$ac_cv_prog_YACC"
871 if test -n "$YACC"; then
872 echo "$ac_t""$YACC" 1>&6
873 else
874 echo "$ac_t""no" 1>&6
875 fi
876
877 test -n "$YACC" && break
878 done
879 test -n "$YACC" || YACC="yacc"
880
881 ac_aux_dir=
882 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
883 if test -f $ac_dir/install-sh; then
884 ac_aux_dir=$ac_dir
885 ac_install_sh="$ac_aux_dir/install-sh -c"
886 break
887 elif test -f $ac_dir/install.sh; then
888 ac_aux_dir=$ac_dir
889 ac_install_sh="$ac_aux_dir/install.sh -c"
890 break
891 fi
892 done
893 if test -z "$ac_aux_dir"; then
894 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
895 fi
896 ac_config_guess=$ac_aux_dir/config.guess
897 ac_config_sub=$ac_aux_dir/config.sub
898 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
899
900 # Find a good install program. We prefer a C program (faster),
901 # so one script is as good as another. But avoid the broken or
902 # incompatible versions:
903 # SysV /etc/install, /usr/sbin/install
904 # SunOS /usr/etc/install
905 # IRIX /sbin/install
906 # AIX /bin/install
907 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
908 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
909 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
910 # ./install, which can be erroneously created by make from ./install.sh.
911 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
912 echo "configure:913: checking for a BSD compatible install" >&5
913 if test -z "$INSTALL"; then
914 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
916 else
917 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
918 for ac_dir in $PATH; do
919 # Account for people who put trailing slashes in PATH elements.
920 case "$ac_dir/" in
921 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
922 *)
923 # OSF1 and SCO ODT 3.0 have their own names for install.
924 # Don't use installbsd from OSF since it installs stuff as root
925 # by default.
926 for ac_prog in ginstall scoinst install; do
927 if test -f $ac_dir/$ac_prog; then
928 if test $ac_prog = install &&
929 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
930 # AIX install. It has an incompatible calling convention.
931 :
932 else
933 ac_cv_path_install="$ac_dir/$ac_prog -c"
934 break 2
935 fi
936 fi
937 done
938 ;;
939 esac
940 done
941 IFS="$ac_save_IFS"
942
943 fi
944 if test "${ac_cv_path_install+set}" = set; then
945 INSTALL="$ac_cv_path_install"
946 else
947 # As a last resort, use the slow shell script. We don't cache a
948 # path for INSTALL within a source directory, because that will
949 # break other packages using the cache if that directory is
950 # removed, or if the path is relative.
951 INSTALL="$ac_install_sh"
952 fi
953 fi
954 echo "$ac_t""$INSTALL" 1>&6
955
956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
957 # It thinks the first close brace ends the variable substitution.
958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
959
960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
961
962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
963
964
965 DEFAULT_USER="nobody"
966 # Check whether --with-user or --without-user was given.
967 if test "${with_user+set}" = set; then
968 withval="$with_user"
969 if test $withval != "yes" -a $withval != "no"; then
970 DEFAULT_USER=$withval
971 fi
972
973 fi
974
975
976 # Check whether --enable-multithread or --disable-multithread was given.
977 if test "${enable_multithread+set}" = set; then
978 enableval="$enable_multithread"
979 if test $enableval = "yes"; then
980 MULTITHREAD=" -D_MULTITHREAD_"
981 fi
982
983
984 fi
985
986 # Check whether --enable-cache-debug or --disable-cache-debug was given.
987 if test "${enable_cache_debug+set}" = set; then
988 enableval="$enable_cache_debug"
989 if test $enableval = "yes"; then
990 CACHE_DEBUG=" -DCACHE_DEBUG"
991 fi
992
993
994 fi
995
996 # Check whether --enable-filter-debug or --disable-filter-debug was given.
997 if test "${enable_filter_debug+set}" = set; then
998 enableval="$enable_filter_debug"
999 if test $enableval = "yes"; then
1000 FILTER_DEBUG=" -DFILTER_DEBUG"
1001 fi
1002
1003
1004 fi
1005
1006 # Check whether --enable-parsing-debug or --disable-parsing-debug was given.
1007 if test "${enable_parsing_debug+set}" = set; then
1008 enableval="$enable_parsing_debug"
1009 if test $enableval = "yes"; then
1010 PARSING_DEBUG=" -DPARSING_DEBUG"
1011 YACC_DEBUG_OPTIONS=" -dtv"
1012 fi
1013
1014
1015
1016 fi
1017
1018 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1019 if test "${enable_all_warnings+set}" = set; then
1020 enableval="$enable_all_warnings"
1021 if test $enableval = "yes"; then
1022 PEDANTIC=" -pedantic"
1023 fi
1024
1025
1026 fi
1027
1028 # Check whether --with-dmalloc or --without-dmalloc was given.
1029 if test "${with_dmalloc+set}" = set; then
1030 withval="$with_dmalloc"
1031 if test $withval = "yes"; then
1032 echo $ac_n "checking for main in -ldmalloc""... $ac_c" 1>&6
1033 echo "configure:1034: checking for main in -ldmalloc" >&5
1034 ac_lib_var=`echo dmalloc'_'main | sed 'y%./+-%__p_%'`
1035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038 ac_save_LIBS="$LIBS"
1039 LIBS="-ldmalloc $LIBS"
1040 cat > conftest.$ac_ext <<EOF
1041 #line 1042 "configure"
1042 #include "confdefs.h"
1043
1044 int main() {
1045 main()
1046 ; return 0; }
1047 EOF
1048 if { (eval echo configure:1049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1049 rm -rf conftest*
1050 eval "ac_cv_lib_$ac_lib_var=yes"
1051 else
1052 echo "configure: failed program was:" >&5
1053 cat conftest.$ac_ext >&5
1054 rm -rf conftest*
1055 eval "ac_cv_lib_$ac_lib_var=no"
1056 fi
1057 rm -f conftest*
1058 LIBS="$ac_save_LIBS"
1059
1060 fi
1061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1062 echo "$ac_t""yes" 1>&6
1063 DMALLOC=" -ldmalloc"
1064 else
1065 echo "$ac_t""no" 1>&6
1066 fi
1067
1068 fi
1069
1070
1071 fi
1072
1073
1074
1075 fail_pthread() {
1076 echo "Please update your pthread library:"
1077 echo " http://pauillac.inria.fr/~xleroy/linuxthreads/"
1078 exit
1079 }
1080
1081 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
1082 echo "configure:1083: checking for pthread_attr_init in -lpthread" >&5
1083 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
1084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1086 else
1087 ac_save_LIBS="$LIBS"
1088 LIBS="-lpthread $LIBS"
1089 cat > conftest.$ac_ext <<EOF
1090 #line 1091 "configure"
1091 #include "confdefs.h"
1092 /* Override any gcc2 internal prototype to avoid an error. */
1093 /* We use char because int might match the return type of a gcc2
1094 builtin and then its argument prototype would still apply. */
1095 char pthread_attr_init();
1096
1097 int main() {
1098 pthread_attr_init()
1099 ; return 0; }
1100 EOF
1101 if { (eval echo configure:1102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1102 rm -rf conftest*
1103 eval "ac_cv_lib_$ac_lib_var=yes"
1104 else
1105 echo "configure: failed program was:" >&5
1106 cat conftest.$ac_ext >&5
1107 rm -rf conftest*
1108 eval "ac_cv_lib_$ac_lib_var=no"
1109 fi
1110 rm -f conftest*
1111 LIBS="$ac_save_LIBS"
1112
1113 fi
1114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1115 echo "$ac_t""yes" 1>&6
1116 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1117 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1118 cat >> confdefs.h <<EOF
1119 #define $ac_tr_lib 1
1120 EOF
1121
1122 LIBS="-lpthread $LIBS"
1123
1124 else
1125 echo "$ac_t""no" 1>&6
1126 fail_pthread
1127 fi
1128
1129 echo $ac_n "checking for pthread_attr_setdetachstate in -lpthread""... $ac_c" 1>&6
1130 echo "configure:1131: checking for pthread_attr_setdetachstate in -lpthread" >&5
1131 ac_lib_var=`echo pthread'_'pthread_attr_setdetachstate | sed 'y%./+-%__p_%'`
1132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1134 else
1135 ac_save_LIBS="$LIBS"
1136 LIBS="-lpthread $LIBS"
1137 cat > conftest.$ac_ext <<EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1140 /* Override any gcc2 internal prototype to avoid an error. */
1141 /* We use char because int might match the return type of a gcc2
1142 builtin and then its argument prototype would still apply. */
1143 char pthread_attr_setdetachstate();
1144
1145 int main() {
1146 pthread_attr_setdetachstate()
1147 ; return 0; }
1148 EOF
1149 if { (eval echo configure:1150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1150 rm -rf conftest*
1151 eval "ac_cv_lib_$ac_lib_var=yes"
1152 else
1153 echo "configure: failed program was:" >&5
1154 cat conftest.$ac_ext >&5
1155 rm -rf conftest*
1156 eval "ac_cv_lib_$ac_lib_var=no"
1157 fi
1158 rm -f conftest*
1159 LIBS="$ac_save_LIBS"
1160
1161 fi
1162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1163 echo "$ac_t""yes" 1>&6
1164 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1165 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1166 cat >> confdefs.h <<EOF
1167 #define $ac_tr_lib 1
1168 EOF
1169
1170 LIBS="-lpthread $LIBS"
1171
1172 else
1173 echo "$ac_t""no" 1>&6
1174 fail_pthread
1175 fi
1176
1177 echo $ac_n "checking for pthread_attr_destroy in -lpthread""... $ac_c" 1>&6
1178 echo "configure:1179: checking for pthread_attr_destroy in -lpthread" >&5
1179 ac_lib_var=`echo pthread'_'pthread_attr_destroy | sed 'y%./+-%__p_%'`
1180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183 ac_save_LIBS="$LIBS"
1184 LIBS="-lpthread $LIBS"
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 /* Override any gcc2 internal prototype to avoid an error. */
1189 /* We use char because int might match the return type of a gcc2
1190 builtin and then its argument prototype would still apply. */
1191 char pthread_attr_destroy();
1192
1193 int main() {
1194 pthread_attr_destroy()
1195 ; return 0; }
1196 EOF
1197 if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1198 rm -rf conftest*
1199 eval "ac_cv_lib_$ac_lib_var=yes"
1200 else
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1203 rm -rf conftest*
1204 eval "ac_cv_lib_$ac_lib_var=no"
1205 fi
1206 rm -f conftest*
1207 LIBS="$ac_save_LIBS"
1208
1209 fi
1210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1211 echo "$ac_t""yes" 1>&6
1212 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1213 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1214 cat >> confdefs.h <<EOF
1215 #define $ac_tr_lib 1
1216 EOF
1217
1218 LIBS="-lpthread $LIBS"
1219
1220 else
1221 echo "$ac_t""no" 1>&6
1222 fail_pthread
1223 fi
1224
1225 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1226 echo "configure:1227: checking for pthread_create in -lpthread" >&5
1227 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1230 else
1231 ac_save_LIBS="$LIBS"
1232 LIBS="-lpthread $LIBS"
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 /* Override any gcc2 internal prototype to avoid an error. */
1237 /* We use char because int might match the return type of a gcc2
1238 builtin and then its argument prototype would still apply. */
1239 char pthread_create();
1240
1241 int main() {
1242 pthread_create()
1243 ; return 0; }
1244 EOF
1245 if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1246 rm -rf conftest*
1247 eval "ac_cv_lib_$ac_lib_var=yes"
1248 else
1249 echo "configure: failed program was:" >&5
1250 cat conftest.$ac_ext >&5
1251 rm -rf conftest*
1252 eval "ac_cv_lib_$ac_lib_var=no"
1253 fi
1254 rm -f conftest*
1255 LIBS="$ac_save_LIBS"
1256
1257 fi
1258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1259 echo "$ac_t""yes" 1>&6
1260 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1262 cat >> confdefs.h <<EOF
1263 #define $ac_tr_lib 1
1264 EOF
1265
1266 LIBS="-lpthread $LIBS"
1267
1268 else
1269 echo "$ac_t""no" 1>&6
1270 fail_pthread
1271 fi
1272
1273 echo $ac_n "checking for pthread_setcancelstate in -lpthread""... $ac_c" 1>&6
1274 echo "configure:1275: checking for pthread_setcancelstate in -lpthread" >&5
1275 ac_lib_var=`echo pthread'_'pthread_setcancelstate | sed 'y%./+-%__p_%'`
1276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279 ac_save_LIBS="$LIBS"
1280 LIBS="-lpthread $LIBS"
1281 cat > conftest.$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1284 /* Override any gcc2 internal prototype to avoid an error. */
1285 /* We use char because int might match the return type of a gcc2
1286 builtin and then its argument prototype would still apply. */
1287 char pthread_setcancelstate();
1288
1289 int main() {
1290 pthread_setcancelstate()
1291 ; return 0; }
1292 EOF
1293 if { (eval echo configure:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1294 rm -rf conftest*
1295 eval "ac_cv_lib_$ac_lib_var=yes"
1296 else
1297 echo "configure: failed program was:" >&5
1298 cat conftest.$ac_ext >&5
1299 rm -rf conftest*
1300 eval "ac_cv_lib_$ac_lib_var=no"
1301 fi
1302 rm -f conftest*
1303 LIBS="$ac_save_LIBS"
1304
1305 fi
1306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1307 echo "$ac_t""yes" 1>&6
1308 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1309 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1310 cat >> confdefs.h <<EOF
1311 #define $ac_tr_lib 1
1312 EOF
1313
1314 LIBS="-lpthread $LIBS"
1315
1316 else
1317 echo "$ac_t""no" 1>&6
1318 fail_pthread
1319 fi
1320
1321 echo $ac_n "checking for pthread_attr_setdetachstate in -lpthread""... $ac_c" 1>&6
1322 echo "configure:1323: checking for pthread_attr_setdetachstate in -lpthread" >&5
1323 ac_lib_var=`echo pthread'_'pthread_attr_setdetachstate | sed 'y%./+-%__p_%'`
1324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1326 else
1327 ac_save_LIBS="$LIBS"
1328 LIBS="-lpthread $LIBS"
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1332 /* Override any gcc2 internal prototype to avoid an error. */
1333 /* We use char because int might match the return type of a gcc2
1334 builtin and then its argument prototype would still apply. */
1335 char pthread_attr_setdetachstate();
1336
1337 int main() {
1338 pthread_attr_setdetachstate()
1339 ; return 0; }
1340 EOF
1341 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1342 rm -rf conftest*
1343 eval "ac_cv_lib_$ac_lib_var=yes"
1344 else
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1347 rm -rf conftest*
1348 eval "ac_cv_lib_$ac_lib_var=no"
1349 fi
1350 rm -f conftest*
1351 LIBS="$ac_save_LIBS"
1352
1353 fi
1354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1355 echo "$ac_t""yes" 1>&6
1356 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1357 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1358 cat >> confdefs.h <<EOF
1359 #define $ac_tr_lib 1
1360 EOF
1361
1362 LIBS="-lpthread $LIBS"
1363
1364 else
1365 echo "$ac_t""no" 1>&6
1366 fail_pthread
1367 fi
1368
1369 echo $ac_n "checking for pthread_cancel in -lpthread""... $ac_c" 1>&6
1370 echo "configure:1371: checking for pthread_cancel in -lpthread" >&5
1371 ac_lib_var=`echo pthread'_'pthread_cancel | sed 'y%./+-%__p_%'`
1372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1374 else
1375 ac_save_LIBS="$LIBS"
1376 LIBS="-lpthread $LIBS"
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 /* Override any gcc2 internal prototype to avoid an error. */
1381 /* We use char because int might match the return type of a gcc2
1382 builtin and then its argument prototype would still apply. */
1383 char pthread_cancel();
1384
1385 int main() {
1386 pthread_cancel()
1387 ; return 0; }
1388 EOF
1389 if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1390 rm -rf conftest*
1391 eval "ac_cv_lib_$ac_lib_var=yes"
1392 else
1393 echo "configure: failed program was:" >&5
1394 cat conftest.$ac_ext >&5
1395 rm -rf conftest*
1396 eval "ac_cv_lib_$ac_lib_var=no"
1397 fi
1398 rm -f conftest*
1399 LIBS="$ac_save_LIBS"
1400
1401 fi
1402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1403 echo "$ac_t""yes" 1>&6
1404 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1405 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1406 cat >> confdefs.h <<EOF
1407 #define $ac_tr_lib 1
1408 EOF
1409
1410 LIBS="-lpthread $LIBS"
1411
1412 else
1413 echo "$ac_t""no" 1>&6
1414 fail_pthread
1415 fi
1416
1417 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
1418 echo "configure:1419: checking for pthread_mutex_lock in -lpthread" >&5
1419 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
1420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1422 else
1423 ac_save_LIBS="$LIBS"
1424 LIBS="-lpthread $LIBS"
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* Override any gcc2 internal prototype to avoid an error. */
1429 /* We use char because int might match the return type of a gcc2
1430 builtin and then its argument prototype would still apply. */
1431 char pthread_mutex_lock();
1432
1433 int main() {
1434 pthread_mutex_lock()
1435 ; return 0; }
1436 EOF
1437 if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1438 rm -rf conftest*
1439 eval "ac_cv_lib_$ac_lib_var=yes"
1440 else
1441 echo "configure: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
1443 rm -rf conftest*
1444 eval "ac_cv_lib_$ac_lib_var=no"
1445 fi
1446 rm -f conftest*
1447 LIBS="$ac_save_LIBS"
1448
1449 fi
1450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1452 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1454 cat >> confdefs.h <<EOF
1455 #define $ac_tr_lib 1
1456 EOF
1457
1458 LIBS="-lpthread $LIBS"
1459
1460 else
1461 echo "$ac_t""no" 1>&6
1462 fail_pthread
1463 fi
1464
1465 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
1466 echo "configure:1467: checking for pthread_mutex_unlock in -lpthread" >&5
1467 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
1468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1470 else
1471 ac_save_LIBS="$LIBS"
1472 LIBS="-lpthread $LIBS"
1473 cat > conftest.$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1476 /* Override any gcc2 internal prototype to avoid an error. */
1477 /* We use char because int might match the return type of a gcc2
1478 builtin and then its argument prototype would still apply. */
1479 char pthread_mutex_unlock();
1480
1481 int main() {
1482 pthread_mutex_unlock()
1483 ; return 0; }
1484 EOF
1485 if { (eval echo configure:1486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1486 rm -rf conftest*
1487 eval "ac_cv_lib_$ac_lib_var=yes"
1488 else
1489 echo "configure: failed program was:" >&5
1490 cat conftest.$ac_ext >&5
1491 rm -rf conftest*
1492 eval "ac_cv_lib_$ac_lib_var=no"
1493 fi
1494 rm -f conftest*
1495 LIBS="$ac_save_LIBS"
1496
1497 fi
1498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1500 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1501 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1502 cat >> confdefs.h <<EOF
1503 #define $ac_tr_lib 1
1504 EOF
1505
1506 LIBS="-lpthread $LIBS"
1507
1508 else
1509 echo "$ac_t""no" 1>&6
1510 fail_pthread
1511 fi
1512
1513
1514 # If $sysconfdir == /usr/etc, change it to /etc
1515 if [ $prefix = '/usr' -a $sysconfdir = '${prefix}/etc' ]; then
1516 echo sysconfig is set to /usr/etc. Changing it to /etc.
1517 sysconfdir='/etc'
1518 fi
1519
1520
1521 echo "Using $DEFAULT_USER as the default user to run threads."
1522
1523 trap '' 1 2 15
1524 cat > confcache <<\EOF
1525 # This file is a shell script that caches the results of configure
1526 # tests run on this system so they can be shared between configure
1527 # scripts and configure runs. It is not useful on other systems.
1528 # If it contains results you don't want to keep, you may remove or edit it.
1529 #
1530 # By default, configure uses ./config.cache as the cache file,
1531 # creating it if it does not exist already. You can give configure
1532 # the --cache-file=FILE option to use a different cache file; that is
1533 # what configure does when it calls configure scripts in
1534 # subdirectories, so they share the cache.
1535 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1536 # config.status only pays attention to the cache file if you give it the
1537 # --recheck option to rerun configure.
1538 #
1539 EOF
1540 # The following way of writing the cache mishandles newlines in values,
1541 # but we know of no workaround that is simple, portable, and efficient.
1542 # So, don't put newlines in cache variables' values.
1543 # Ultrix sh set writes to stderr and can't be redirected directly,
1544 # and sets the high bit in the cache file unless we assign to the vars.
1545 (set) 2>&1 |
1546 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1547 *ac_space=\ *)
1548 # `set' does not quote correctly, so add quotes (double-quote substitution
1549 # turns \\\\ into \\, and sed turns \\ into \).
1550 sed -n \
1551 -e "s/'/'\\\\''/g" \
1552 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1553 ;;
1554 *)
1555 # `set' quotes correctly as required by POSIX, so do not add quotes.
1556 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1557 ;;
1558 esac >> confcache
1559 if cmp -s $cache_file confcache; then
1560 :
1561 else
1562 if test -w $cache_file; then
1563 echo "updating cache $cache_file"
1564 cat confcache > $cache_file
1565 else
1566 echo "not updating unwritable cache $cache_file"
1567 fi
1568 fi
1569 rm -f confcache
1570
1571 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1572
1573 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1574 # Let make expand exec_prefix.
1575 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1576
1577 # Any assignment to VPATH causes Sun make to only execute
1578 # the first set of double-colon rules, so remove it if not needed.
1579 # If there is a colon in the path, we need to keep it.
1580 if test "x$srcdir" = x.; then
1581 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1582 fi
1583
1584 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1585
1586 # Transform confdefs.h into DEFS.
1587 # Protect against shell expansion while executing Makefile rules.
1588 # Protect against Makefile macro expansion.
1589 cat > conftest.defs <<\EOF
1590 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1591 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1592 s%\[%\\&%g
1593 s%\]%\\&%g
1594 s%\$%$$%g
1595 EOF
1596 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1597 rm -f conftest.defs
1598
1599
1600 # Without the "./", some shells look in PATH for config.status.
1601 : ${CONFIG_STATUS=./config.status}
1602
1603 echo creating $CONFIG_STATUS
1604 rm -f $CONFIG_STATUS
1605 cat > $CONFIG_STATUS <<EOF
1606 #! /bin/sh
1607 # Generated automatically by configure.
1608 # Run this file to recreate the current configuration.
1609 # This directory was configured as follows,
1610 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1611 #
1612 # $0 $ac_configure_args
1613 #
1614 # Compiler output produced by configure, useful for debugging
1615 # configure, is in ./config.log if it exists.
1616
1617 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1618 for ac_option
1619 do
1620 case "\$ac_option" in
1621 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1622 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1623 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1624 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1625 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1626 exit 0 ;;
1627 -help | --help | --hel | --he | --h)
1628 echo "\$ac_cs_usage"; exit 0 ;;
1629 *) echo "\$ac_cs_usage"; exit 1 ;;
1630 esac
1631 done
1632
1633 ac_given_srcdir=$srcdir
1634 ac_given_INSTALL="$INSTALL"
1635
1636 trap 'rm -fr `echo "Makefile Makefile.common Source/Makefile Docs/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1637 EOF
1638 cat >> $CONFIG_STATUS <<EOF
1639
1640 # Protect against being on the right side of a sed subst in config.status.
1641 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1642 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1643 $ac_vpsub
1644 $extrasub
1645 s%@SHELL@%$SHELL%g
1646 s%@CFLAGS@%$CFLAGS%g
1647 s%@CPPFLAGS@%$CPPFLAGS%g
1648 s%@CXXFLAGS@%$CXXFLAGS%g
1649 s%@FFLAGS@%$FFLAGS%g
1650 s%@DEFS@%$DEFS%g
1651 s%@LDFLAGS@%$LDFLAGS%g
1652 s%@LIBS@%$LIBS%g
1653 s%@exec_prefix@%$exec_prefix%g
1654 s%@prefix@%$prefix%g
1655 s%@program_transform_name@%$program_transform_name%g
1656 s%@bindir@%$bindir%g
1657 s%@sbindir@%$sbindir%g
1658 s%@libexecdir@%$libexecdir%g
1659 s%@datadir@%$datadir%g
1660 s%@sysconfdir@%$sysconfdir%g
1661 s%@sharedstatedir@%$sharedstatedir%g
1662 s%@localstatedir@%$localstatedir%g
1663 s%@libdir@%$libdir%g
1664 s%@includedir@%$includedir%g
1665 s%@oldincludedir@%$oldincludedir%g
1666 s%@infodir@%$infodir%g
1667 s%@mandir@%$mandir%g
1668 s%@VERSION@%$VERSION%g
1669 s%@CC@%$CC%g
1670 s%@LEX@%$LEX%g
1671 s%@LEXLIB@%$LEXLIB%g
1672 s%@YACC@%$YACC%g
1673 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1674 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1675 s%@INSTALL_DATA@%$INSTALL_DATA%g
1676 s%@MULTITHREAD@%$MULTITHREAD%g
1677 s%@CACHE_DEBUG@%$CACHE_DEBUG%g
1678 s%@FILTER_DEBUG@%$FILTER_DEBUG%g
1679 s%@PARSING_DEBUG@%$PARSING_DEBUG%g
1680 s%@YACC_DEBUG_OPTIONS@%$YACC_DEBUG_OPTIONS%g
1681 s%@PEDANTIC@%$PEDANTIC%g
1682 s%@DMALLOC@%$DMALLOC%g
1683 s%@DEFAULT_USER@%$DEFAULT_USER%g
1684
1685 CEOF
1686 EOF
1687
1688 cat >> $CONFIG_STATUS <<\EOF
1689
1690 # Split the substitutions into bite-sized pieces for seds with
1691 # small command number limits, like on Digital OSF/1 and HP-UX.
1692 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1693 ac_file=1 # Number of current file.
1694 ac_beg=1 # First line for current file.
1695 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1696 ac_more_lines=:
1697 ac_sed_cmds=""
1698 while $ac_more_lines; do
1699 if test $ac_beg -gt 1; then
1700 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1701 else
1702 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1703 fi
1704 if test ! -s conftest.s$ac_file; then
1705 ac_more_lines=false
1706 rm -f conftest.s$ac_file
1707 else
1708 if test -z "$ac_sed_cmds"; then
1709 ac_sed_cmds="sed -f conftest.s$ac_file"
1710 else
1711 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1712 fi
1713 ac_file=`expr $ac_file + 1`
1714 ac_beg=$ac_end
1715 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1716 fi
1717 done
1718 if test -z "$ac_sed_cmds"; then
1719 ac_sed_cmds=cat
1720 fi
1721 EOF
1722
1723 cat >> $CONFIG_STATUS <<EOF
1724
1725 CONFIG_FILES=\${CONFIG_FILES-"Makefile Makefile.common Source/Makefile Docs/Makefile"}
1726 EOF
1727 cat >> $CONFIG_STATUS <<\EOF
1728 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1729 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1730 case "$ac_file" in
1731 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1732 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1733 *) ac_file_in="${ac_file}.in" ;;
1734 esac
1735
1736 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1737
1738 # Remove last slash and all that follows it. Not all systems have dirname.
1739 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1740 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1741 # The file is in a subdirectory.
1742 test ! -d "$ac_dir" && mkdir "$ac_dir"
1743 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1744 # A "../" for each directory in $ac_dir_suffix.
1745 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1746 else
1747 ac_dir_suffix= ac_dots=
1748 fi
1749
1750 case "$ac_given_srcdir" in
1751 .) srcdir=.
1752 if test -z "$ac_dots"; then top_srcdir=.
1753 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1754 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1755 *) # Relative path.
1756 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1757 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1758 esac
1759
1760 case "$ac_given_INSTALL" in
1761 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1762 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1763 esac
1764
1765 echo creating "$ac_file"
1766 rm -f "$ac_file"
1767 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1768 case "$ac_file" in
1769 *Makefile*) ac_comsub="1i\\
1770 # $configure_input" ;;
1771 *) ac_comsub= ;;
1772 esac
1773
1774 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1775 sed -e "$ac_comsub
1776 s%@configure_input@%$configure_input%g
1777 s%@srcdir@%$srcdir%g
1778 s%@top_srcdir@%$top_srcdir%g
1779 s%@INSTALL@%$INSTALL%g
1780 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1781 fi; done
1782 rm -f conftest.s*
1783
1784 EOF
1785 cat >> $CONFIG_STATUS <<EOF
1786
1787 EOF
1788 cat >> $CONFIG_STATUS <<\EOF
1789
1790 exit 0
1791 EOF
1792 chmod +x $CONFIG_STATUS
1793 rm -fr confdefs* $ac_clean_files
1794 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1795
1796
1797 echo
1798 make configdump
1799 echo
1800 echo Now you can type \`\` make \'\'. Good luck!