initial commit
[jalview.git] / forester / archive / RIO / others / hmmer / configure
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-pvm         enable PVM, Parallel Virtual Machine"
16 ac_help="$ac_help
17   --disable-threads  disable POSIX threads support"
18
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
22 build=NONE
23 cache_file=./config.cache
24 exec_prefix=NONE
25 host=NONE
26 no_create=
27 nonopt=NONE
28 no_recursion=
29 prefix=NONE
30 program_prefix=NONE
31 program_suffix=NONE
32 program_transform_name=s,x,x,
33 silent=
34 site=
35 srcdir=
36 target=NONE
37 verbose=
38 x_includes=NONE
39 x_libraries=NONE
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
52
53 # Initialize some other variables.
54 subdirs=
55 MFLAGS= MAKEFLAGS=
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
58 ac_max_here_lines=12
59
60 ac_prev=
61 for ac_option
62 do
63
64   # If the previous option needs an argument, assign it.
65   if test -n "$ac_prev"; then
66     eval "$ac_prev=\$ac_option"
67     ac_prev=
68     continue
69   fi
70
71   case "$ac_option" in
72   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73   *) ac_optarg= ;;
74   esac
75
76   # Accept the important Cygnus configure options, so we can diagnose typos.
77
78   case "$ac_option" in
79
80   -bindir | --bindir | --bindi | --bind | --bin | --bi)
81     ac_prev=bindir ;;
82   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83     bindir="$ac_optarg" ;;
84
85   -build | --build | --buil | --bui | --bu)
86     ac_prev=build ;;
87   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88     build="$ac_optarg" ;;
89
90   -cache-file | --cache-file | --cache-fil | --cache-fi \
91   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92     ac_prev=cache_file ;;
93   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95     cache_file="$ac_optarg" ;;
96
97   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98     ac_prev=datadir ;;
99   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100   | --da=*)
101     datadir="$ac_optarg" ;;
102
103   -disable-* | --disable-*)
104     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105     # Reject names that are not valid shell variable names.
106     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108     fi
109     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110     eval "enable_${ac_feature}=no" ;;
111
112   -enable-* | --enable-*)
113     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114     # Reject names that are not valid shell variable names.
115     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117     fi
118     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119     case "$ac_option" in
120       *=*) ;;
121       *) ac_optarg=yes ;;
122     esac
123     eval "enable_${ac_feature}='$ac_optarg'" ;;
124
125   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127   | --exec | --exe | --ex)
128     ac_prev=exec_prefix ;;
129   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131   | --exec=* | --exe=* | --ex=*)
132     exec_prefix="$ac_optarg" ;;
133
134   -gas | --gas | --ga | --g)
135     # Obsolete; use --with-gas.
136     with_gas=yes ;;
137
138   -help | --help | --hel | --he)
139     # Omit some internal or obsolete options to make the list less imposing.
140     # This message is too long to be a string in the A/UX 3.1 sh.
141     cat << EOF
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
144 Configuration:
145   --cache-file=FILE       cache test results in FILE
146   --help                  print this message
147   --no-create             do not create output files
148   --quiet, --silent       do not print \`checking...' messages
149   --version               print the version of autoconf that created configure
150 Directory and file names:
151   --prefix=PREFIX         install architecture-independent files in PREFIX
152                           [$ac_default_prefix]
153   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
154                           [same as prefix]
155   --bindir=DIR            user executables in DIR [EPREFIX/bin]
156   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
157   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
158   --datadir=DIR           read-only architecture-independent data in DIR
159                           [PREFIX/share]
160   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
161   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
162                           [PREFIX/com]
163   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
164   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
165   --includedir=DIR        C header files in DIR [PREFIX/include]
166   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
167   --infodir=DIR           info documentation in DIR [PREFIX/info]
168   --mandir=DIR            man documentation in DIR [PREFIX/man]
169   --srcdir=DIR            find the sources in DIR [configure dir or ..]
170   --program-prefix=PREFIX prepend PREFIX to installed program names
171   --program-suffix=SUFFIX append SUFFIX to installed program names
172   --program-transform-name=PROGRAM
173                           run sed PROGRAM on installed program names
174 EOF
175     cat << EOF
176 Host type:
177   --build=BUILD           configure for building on BUILD [BUILD=HOST]
178   --host=HOST             configure for HOST [guessed]
179   --target=TARGET         configure for TARGET [TARGET=HOST]
180 Features and packages:
181   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
182   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
183   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
184   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
185   --x-includes=DIR        X include files are in DIR
186   --x-libraries=DIR       X library files are in DIR
187 EOF
188     if test -n "$ac_help"; then
189       echo "--enable and --with options recognized:$ac_help"
190     fi
191     exit 0 ;;
192
193   -host | --host | --hos | --ho)
194     ac_prev=host ;;
195   -host=* | --host=* | --hos=* | --ho=*)
196     host="$ac_optarg" ;;
197
198   -includedir | --includedir | --includedi | --included | --include \
199   | --includ | --inclu | --incl | --inc)
200     ac_prev=includedir ;;
201   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202   | --includ=* | --inclu=* | --incl=* | --inc=*)
203     includedir="$ac_optarg" ;;
204
205   -infodir | --infodir | --infodi | --infod | --info | --inf)
206     ac_prev=infodir ;;
207   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208     infodir="$ac_optarg" ;;
209
210   -libdir | --libdir | --libdi | --libd)
211     ac_prev=libdir ;;
212   -libdir=* | --libdir=* | --libdi=* | --libd=*)
213     libdir="$ac_optarg" ;;
214
215   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216   | --libexe | --libex | --libe)
217     ac_prev=libexecdir ;;
218   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219   | --libexe=* | --libex=* | --libe=*)
220     libexecdir="$ac_optarg" ;;
221
222   -localstatedir | --localstatedir | --localstatedi | --localstated \
223   | --localstate | --localstat | --localsta | --localst \
224   | --locals | --local | --loca | --loc | --lo)
225     ac_prev=localstatedir ;;
226   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229     localstatedir="$ac_optarg" ;;
230
231   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232     ac_prev=mandir ;;
233   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234     mandir="$ac_optarg" ;;
235
236   -nfp | --nfp | --nf)
237     # Obsolete; use --without-fp.
238     with_fp=no ;;
239
240   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241   | --no-cr | --no-c)
242     no_create=yes ;;
243
244   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246     no_recursion=yes ;;
247
248   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250   | --oldin | --oldi | --old | --ol | --o)
251     ac_prev=oldincludedir ;;
252   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255     oldincludedir="$ac_optarg" ;;
256
257   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258     ac_prev=prefix ;;
259   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260     prefix="$ac_optarg" ;;
261
262   -program-prefix | --program-prefix | --program-prefi | --program-pref \
263   | --program-pre | --program-pr | --program-p)
264     ac_prev=program_prefix ;;
265   -program-prefix=* | --program-prefix=* | --program-prefi=* \
266   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267     program_prefix="$ac_optarg" ;;
268
269   -program-suffix | --program-suffix | --program-suffi | --program-suff \
270   | --program-suf | --program-su | --program-s)
271     ac_prev=program_suffix ;;
272   -program-suffix=* | --program-suffix=* | --program-suffi=* \
273   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274     program_suffix="$ac_optarg" ;;
275
276   -program-transform-name | --program-transform-name \
277   | --program-transform-nam | --program-transform-na \
278   | --program-transform-n | --program-transform- \
279   | --program-transform | --program-transfor \
280   | --program-transfo | --program-transf \
281   | --program-trans | --program-tran \
282   | --progr-tra | --program-tr | --program-t)
283     ac_prev=program_transform_name ;;
284   -program-transform-name=* | --program-transform-name=* \
285   | --program-transform-nam=* | --program-transform-na=* \
286   | --program-transform-n=* | --program-transform-=* \
287   | --program-transform=* | --program-transfor=* \
288   | --program-transfo=* | --program-transf=* \
289   | --program-trans=* | --program-tran=* \
290   | --progr-tra=* | --program-tr=* | --program-t=*)
291     program_transform_name="$ac_optarg" ;;
292
293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294   | -silent | --silent | --silen | --sile | --sil)
295     silent=yes ;;
296
297   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298     ac_prev=sbindir ;;
299   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300   | --sbi=* | --sb=*)
301     sbindir="$ac_optarg" ;;
302
303   -sharedstatedir | --sharedstatedir | --sharedstatedi \
304   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305   | --sharedst | --shareds | --shared | --share | --shar \
306   | --sha | --sh)
307     ac_prev=sharedstatedir ;;
308   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311   | --sha=* | --sh=*)
312     sharedstatedir="$ac_optarg" ;;
313
314   -site | --site | --sit)
315     ac_prev=site ;;
316   -site=* | --site=* | --sit=*)
317     site="$ac_optarg" ;;
318
319   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320     ac_prev=srcdir ;;
321   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322     srcdir="$ac_optarg" ;;
323
324   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325   | --syscon | --sysco | --sysc | --sys | --sy)
326     ac_prev=sysconfdir ;;
327   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329     sysconfdir="$ac_optarg" ;;
330
331   -target | --target | --targe | --targ | --tar | --ta | --t)
332     ac_prev=target ;;
333   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334     target="$ac_optarg" ;;
335
336   -v | -verbose | --verbose | --verbos | --verbo | --verb)
337     verbose=yes ;;
338
339   -version | --version | --versio | --versi | --vers)
340     echo "configure generated by autoconf version 2.13"
341     exit 0 ;;
342
343   -with-* | --with-*)
344     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345     # Reject names that are not valid shell variable names.
346     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348     fi
349     ac_package=`echo $ac_package| sed 's/-/_/g'`
350     case "$ac_option" in
351       *=*) ;;
352       *) ac_optarg=yes ;;
353     esac
354     eval "with_${ac_package}='$ac_optarg'" ;;
355
356   -without-* | --without-*)
357     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358     # Reject names that are not valid shell variable names.
359     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361     fi
362     ac_package=`echo $ac_package| sed 's/-/_/g'`
363     eval "with_${ac_package}=no" ;;
364
365   --x)
366     # Obsolete; use --with-x.
367     with_x=yes ;;
368
369   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370   | --x-incl | --x-inc | --x-in | --x-i)
371     ac_prev=x_includes ;;
372   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374     x_includes="$ac_optarg" ;;
375
376   -x-libraries | --x-libraries | --x-librarie | --x-librari \
377   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378     ac_prev=x_libraries ;;
379   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381     x_libraries="$ac_optarg" ;;
382
383   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384     ;;
385
386   *)
387     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388       echo "configure: warning: $ac_option: invalid host type" 1>&2
389     fi
390     if test "x$nonopt" != xNONE; then
391       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392     fi
393     nonopt="$ac_option"
394     ;;
395
396   esac
397 done
398
399 if test -n "$ac_prev"; then
400   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 fi
402
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404
405 # File descriptor usage:
406 # 0 standard input
407 # 1 file creation
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
414   exec 6>/dev/null
415 else
416   exec 6>&1
417 fi
418 exec 5>./config.log
419
420 echo "\
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
423 " 1>&5
424
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
427 ac_configure_args=
428 for ac_arg
429 do
430   case "$ac_arg" in
431   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432   | --no-cr | --no-c) ;;
433   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438   esac
439 done
440
441 # NLS nuisances.
442 # Only set these to C if already set.  These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
450
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 echo > confdefs.h
455
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=src/hmmpfam.c
459
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462   ac_srcdir_defaulted=yes
463   # Try the directory containing this script, then its parent.
464   ac_prog=$0
465   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467   srcdir=$ac_confdir
468   if test ! -r $srcdir/$ac_unique_file; then
469     srcdir=..
470   fi
471 else
472   ac_srcdir_defaulted=no
473 fi
474 if test ! -r $srcdir/$ac_unique_file; then
475   if test "$ac_srcdir_defaulted" = yes; then
476     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477   else
478     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479   fi
480 fi
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485   if test "x$prefix" != xNONE; then
486     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487   else
488     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489   fi
490 fi
491 for ac_site_file in $CONFIG_SITE; do
492   if test -r "$ac_site_file"; then
493     echo "loading site script $ac_site_file"
494     . "$ac_site_file"
495   fi
496 done
497
498 if test -r "$cache_file"; then
499   echo "loading cache $cache_file"
500   . $cache_file
501 else
502   echo "creating cache $cache_file"
503   > $cache_file
504 fi
505
506 ac_ext=c
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
512
513 ac_exeext=
514 ac_objext=o
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
518     ac_n= ac_c='
519 ' ac_t='        '
520   else
521     ac_n=-n ac_c= ac_t=
522   fi
523 else
524   ac_n= ac_c='\c' ac_t=
525 fi
526
527
528
529 echo "   Welcome to HMMER... configuring for your system."
530
531
532
533
534
535
536
537
538 # Extract the first word of "gcc", so it can be a program name with args.
539 set dummy gcc; ac_word=$2
540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
541 echo "configure:542: checking for $ac_word" >&5
542 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
543   echo $ac_n "(cached) $ac_c" 1>&6
544 else
545   if test -n "$CC"; then
546   ac_cv_prog_CC="$CC" # Let the user override the test.
547 else
548   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
549   ac_dummy="$PATH"
550   for ac_dir in $ac_dummy; do
551     test -z "$ac_dir" && ac_dir=.
552     if test -f $ac_dir/$ac_word; then
553       ac_cv_prog_CC="gcc"
554       break
555     fi
556   done
557   IFS="$ac_save_ifs"
558 fi
559 fi
560 CC="$ac_cv_prog_CC"
561 if test -n "$CC"; then
562   echo "$ac_t""$CC" 1>&6
563 else
564   echo "$ac_t""no" 1>&6
565 fi
566
567 if test -z "$CC"; then
568   # Extract the first word of "cc", so it can be a program name with args.
569 set dummy cc; ac_word=$2
570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
571 echo "configure:572: checking for $ac_word" >&5
572 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
573   echo $ac_n "(cached) $ac_c" 1>&6
574 else
575   if test -n "$CC"; then
576   ac_cv_prog_CC="$CC" # Let the user override the test.
577 else
578   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
579   ac_prog_rejected=no
580   ac_dummy="$PATH"
581   for ac_dir in $ac_dummy; do
582     test -z "$ac_dir" && ac_dir=.
583     if test -f $ac_dir/$ac_word; then
584       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
585         ac_prog_rejected=yes
586         continue
587       fi
588       ac_cv_prog_CC="cc"
589       break
590     fi
591   done
592   IFS="$ac_save_ifs"
593 if test $ac_prog_rejected = yes; then
594   # We found a bogon in the path, so make sure we never use it.
595   set dummy $ac_cv_prog_CC
596   shift
597   if test $# -gt 0; then
598     # We chose a different compiler from the bogus one.
599     # However, it has the same basename, so the bogon will be chosen
600     # first if we set CC to just the basename; use the full file name.
601     shift
602     set dummy "$ac_dir/$ac_word" "$@"
603     shift
604     ac_cv_prog_CC="$@"
605   fi
606 fi
607 fi
608 fi
609 CC="$ac_cv_prog_CC"
610 if test -n "$CC"; then
611   echo "$ac_t""$CC" 1>&6
612 else
613   echo "$ac_t""no" 1>&6
614 fi
615
616   if test -z "$CC"; then
617     case "`uname -s`" in
618     *win32* | *WIN32*)
619       # Extract the first word of "cl", so it can be a program name with args.
620 set dummy cl; ac_word=$2
621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
622 echo "configure:623: checking for $ac_word" >&5
623 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
624   echo $ac_n "(cached) $ac_c" 1>&6
625 else
626   if test -n "$CC"; then
627   ac_cv_prog_CC="$CC" # Let the user override the test.
628 else
629   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
630   ac_dummy="$PATH"
631   for ac_dir in $ac_dummy; do
632     test -z "$ac_dir" && ac_dir=.
633     if test -f $ac_dir/$ac_word; then
634       ac_cv_prog_CC="cl"
635       break
636     fi
637   done
638   IFS="$ac_save_ifs"
639 fi
640 fi
641 CC="$ac_cv_prog_CC"
642 if test -n "$CC"; then
643   echo "$ac_t""$CC" 1>&6
644 else
645   echo "$ac_t""no" 1>&6
646 fi
647  ;;
648     esac
649   fi
650   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
651 fi
652
653 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
654 echo "configure:655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
655
656 ac_ext=c
657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
658 ac_cpp='$CPP $CPPFLAGS'
659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
660 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
661 cross_compiling=$ac_cv_prog_cc_cross
662
663 cat > conftest.$ac_ext << EOF
664
665 #line 666 "configure"
666 #include "confdefs.h"
667
668 main(){return(0);}
669 EOF
670 if { (eval echo configure:671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
671   ac_cv_prog_cc_works=yes
672   # If we can't run a trivial program, we are probably using a cross compiler.
673   if (./conftest; exit) 2>/dev/null; then
674     ac_cv_prog_cc_cross=no
675   else
676     ac_cv_prog_cc_cross=yes
677   fi
678 else
679   echo "configure: failed program was:" >&5
680   cat conftest.$ac_ext >&5
681   ac_cv_prog_cc_works=no
682 fi
683 rm -fr conftest*
684 ac_ext=c
685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
686 ac_cpp='$CPP $CPPFLAGS'
687 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
688 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
689 cross_compiling=$ac_cv_prog_cc_cross
690
691 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
692 if test $ac_cv_prog_cc_works = no; then
693   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
694 fi
695 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
696 echo "configure:697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
697 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
698 cross_compiling=$ac_cv_prog_cc_cross
699
700 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
701 echo "configure:702: checking whether we are using GNU C" >&5
702 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
703   echo $ac_n "(cached) $ac_c" 1>&6
704 else
705   cat > conftest.c <<EOF
706 #ifdef __GNUC__
707   yes;
708 #endif
709 EOF
710 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
711   ac_cv_prog_gcc=yes
712 else
713   ac_cv_prog_gcc=no
714 fi
715 fi
716
717 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
718
719 if test $ac_cv_prog_gcc = yes; then
720   GCC=yes
721 else
722   GCC=
723 fi
724
725 ac_test_CFLAGS="${CFLAGS+set}"
726 ac_save_CFLAGS="$CFLAGS"
727 CFLAGS=
728 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
729 echo "configure:730: checking whether ${CC-cc} accepts -g" >&5
730 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
731   echo $ac_n "(cached) $ac_c" 1>&6
732 else
733   echo 'void f(){}' > conftest.c
734 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
735   ac_cv_prog_cc_g=yes
736 else
737   ac_cv_prog_cc_g=no
738 fi
739 rm -f conftest*
740
741 fi
742
743 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
744 if test "$ac_test_CFLAGS" = set; then
745   CFLAGS="$ac_save_CFLAGS"
746 elif test $ac_cv_prog_cc_g = yes; then
747   if test "$GCC" = yes; then
748     CFLAGS="-g -O2"
749   else
750     CFLAGS="-g"
751   fi
752 else
753   if test "$GCC" = yes; then
754     CFLAGS="-O2"
755   else
756     CFLAGS=
757   fi
758 fi
759
760 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
761 echo "configure:762: checking whether ln -s works" >&5
762 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
763   echo $ac_n "(cached) $ac_c" 1>&6
764 else
765   rm -f conftestdata
766 if ln -s X conftestdata 2>/dev/null
767 then
768   rm -f conftestdata
769   ac_cv_prog_LN_S="ln -s"
770 else
771   ac_cv_prog_LN_S=ln
772 fi
773 fi
774 LN_S="$ac_cv_prog_LN_S"
775 if test "$ac_cv_prog_LN_S" = "ln -s"; then
776   echo "$ac_t""yes" 1>&6
777 else
778   echo "$ac_t""no" 1>&6
779 fi
780
781 # Extract the first word of "ranlib", so it can be a program name with args.
782 set dummy ranlib; ac_word=$2
783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784 echo "configure:785: checking for $ac_word" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
786   echo $ac_n "(cached) $ac_c" 1>&6
787 else
788   if test -n "$RANLIB"; then
789   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
790 else
791   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
792   ac_dummy="$PATH"
793   for ac_dir in $ac_dummy; do
794     test -z "$ac_dir" && ac_dir=.
795     if test -f $ac_dir/$ac_word; then
796       ac_cv_prog_RANLIB="ranlib"
797       break
798     fi
799   done
800   IFS="$ac_save_ifs"
801   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
802 fi
803 fi
804 RANLIB="$ac_cv_prog_RANLIB"
805 if test -n "$RANLIB"; then
806   echo "$ac_t""$RANLIB" 1>&6
807 else
808   echo "$ac_t""no" 1>&6
809 fi
810
811
812
813  
814   echo $ac_n "checking whether your make is GNU make""... $ac_c" 1>&6
815 echo "configure:816: checking whether your make is GNU make" >&5
816   foundGNUmake='nope, assuming sysv make.' ;
817   EXEC_DEPENDENCY=\$\$\@.o ;
818   if ( make --version nothing 2> /dev/null | grep GNU > /dev/null ) ;  then
819      foundGNUmake='yes, it is.' ;
820      EXEC_DEPENDENCY='%: %.o' ;
821   fi
822   echo "$ac_t""$foundGNUmake" 1>&6
823   
824
825
826 # Check whether --with-pvm or --without-pvm was given.
827 if test "${with_pvm+set}" = set; then
828   withval="$with_pvm"
829   case $with_pvm in
830    yes)  echo 'Configuring for PVM'
831          PVMLIBDIR="-L${PVM_ROOT}/lib/${PVM_ARCH}"
832          PVMINCDIR="-I${PVM_ROOT}/include"
833          PVMFLAG="-DHMMER_PVM"
834          PVMPROGS="hmmcalibrate-pvm hmmpfam-pvm hmmsearch-pvm"
835          PVMLIBS="-lpvm3"
836          ;;
837    no)   ;;
838    *)    echo "Ignoring unknown argument to --with-pvm: $with_pvm"
839          ;;
840 esac
841 fi
842
843
844 ac_aux_dir=
845 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
846   if test -f $ac_dir/install-sh; then
847     ac_aux_dir=$ac_dir
848     ac_install_sh="$ac_aux_dir/install-sh -c"
849     break
850   elif test -f $ac_dir/install.sh; then
851     ac_aux_dir=$ac_dir
852     ac_install_sh="$ac_aux_dir/install.sh -c"
853     break
854   fi
855 done
856 if test -z "$ac_aux_dir"; then
857   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
858 fi
859 ac_config_guess=$ac_aux_dir/config.guess
860 ac_config_sub=$ac_aux_dir/config.sub
861 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
862
863
864 # Make sure we can run config.sub.
865 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
866 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
867 fi
868
869 echo $ac_n "checking host system type""... $ac_c" 1>&6
870 echo "configure:871: checking host system type" >&5
871
872 host_alias=$host
873 case "$host_alias" in
874 NONE)
875   case $nonopt in
876   NONE)
877     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
878     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
879     fi ;;
880   *) host_alias=$nonopt ;;
881   esac ;;
882 esac
883
884 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
885 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
886 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
887 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
888 echo "$ac_t""$host" 1>&6
889
890 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
891 echo "configure:892: checking how to run the C preprocessor" >&5
892 # On Suns, sometimes $CPP names a directory.
893 if test -n "$CPP" && test -d "$CPP"; then
894   CPP=
895 fi
896 if test -z "$CPP"; then
897 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
898   echo $ac_n "(cached) $ac_c" 1>&6
899 else
900     # This must be in double quotes, not single quotes, because CPP may get
901   # substituted into the Makefile and "${CC-cc}" will confuse make.
902   CPP="${CC-cc} -E"
903   # On the NeXT, cc -E runs the code through the compiler's parser,
904   # not just through cpp.
905   cat > conftest.$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
908 #include <assert.h>
909 Syntax Error
910 EOF
911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
912 { (eval echo configure:913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
914 if test -z "$ac_err"; then
915   :
916 else
917   echo "$ac_err" >&5
918   echo "configure: failed program was:" >&5
919   cat conftest.$ac_ext >&5
920   rm -rf conftest*
921   CPP="${CC-cc} -E -traditional-cpp"
922   cat > conftest.$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
925 #include <assert.h>
926 Syntax Error
927 EOF
928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
929 { (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
931 if test -z "$ac_err"; then
932   :
933 else
934   echo "$ac_err" >&5
935   echo "configure: failed program was:" >&5
936   cat conftest.$ac_ext >&5
937   rm -rf conftest*
938   CPP="${CC-cc} -nologo -E"
939   cat > conftest.$ac_ext <<EOF
940 #line 941 "configure"
941 #include "confdefs.h"
942 #include <assert.h>
943 Syntax Error
944 EOF
945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
946 { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
948 if test -z "$ac_err"; then
949   :
950 else
951   echo "$ac_err" >&5
952   echo "configure: failed program was:" >&5
953   cat conftest.$ac_ext >&5
954   rm -rf conftest*
955   CPP=/lib/cpp
956 fi
957 rm -f conftest*
958 fi
959 rm -f conftest*
960 fi
961 rm -f conftest*
962   ac_cv_prog_CPP="$CPP"
963 fi
964   CPP="$ac_cv_prog_CPP"
965 else
966   ac_cv_prog_CPP="$CPP"
967 fi
968 echo "$ac_t""$CPP" 1>&6
969
970 # Check whether --enable-threads or --disable-threads was given.
971 if test "${enable_threads+set}" = set; then
972   enableval="$enable_threads"
973   case $enable_threads in 
974    yes) echo "Enabling POSIX threads support"
975         
976
977 acx_pthread_ok=no
978
979 # First, check if the POSIX threads header, pthread.h, is available.
980 # If it isn't, don't bother looking for the threads libraries.
981 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
982 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
983 echo "configure:984: checking for pthread.h" >&5
984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
985   echo $ac_n "(cached) $ac_c" 1>&6
986 else
987   cat > conftest.$ac_ext <<EOF
988 #line 989 "configure"
989 #include "confdefs.h"
990 #include <pthread.h>
991 EOF
992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
993 { (eval echo configure:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
995 if test -z "$ac_err"; then
996   rm -rf conftest*
997   eval "ac_cv_header_$ac_safe=yes"
998 else
999   echo "$ac_err" >&5
1000   echo "configure: failed program was:" >&5
1001   cat conftest.$ac_ext >&5
1002   rm -rf conftest*
1003   eval "ac_cv_header_$ac_safe=no"
1004 fi
1005 rm -f conftest*
1006 fi
1007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1008   echo "$ac_t""yes" 1>&6
1009   :
1010 else
1011   echo "$ac_t""no" 1>&6
1012 acx_pthread_ok=noheader
1013 fi
1014
1015
1016 # We must check for the threads library under a number of different
1017 # names; the ordering is very important because some systems
1018 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
1019 # libraries is broken (non-POSIX).
1020
1021 # First of all, check if the user has set any of the PTHREAD_LIBS,
1022 # etcetera environment variables, and if threads linking works using
1023 # them:
1024 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
1025         save_CFLAGS="$CFLAGS"
1026         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1027         save_LIBS="$LIBS"
1028         LIBS="$PTHREAD_LIBS $LIBS"
1029         echo $ac_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS""... $ac_c" 1>&6
1030 echo "configure:1031: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
1031         cat > conftest.$ac_ext <<EOF
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1034 /* Override any gcc2 internal prototype to avoid an error.  */
1035 /* We use char because int might match the return type of a gcc2
1036     builtin and then its argument prototype would still apply.  */
1037 char pthread_join();
1038
1039 int main() {
1040 pthread_join()
1041 ; return 0; }
1042 EOF
1043 if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1044   rm -rf conftest*
1045   acx_pthread_ok=yes
1046 else
1047   echo "configure: failed program was:" >&5
1048   cat conftest.$ac_ext >&5
1049 fi
1050 rm -f conftest*
1051         echo "$ac_t""$acx_pthread_ok" 1>&6
1052         if test x"$acx_pthread_ok" = xno; then
1053        PTHREAD_LIBS=""
1054        PTHREAD_CFLAGS=""
1055         fi
1056         LIBS="$save_LIBS"
1057         CFLAGS="$save_CFLAGS"
1058 fi
1059
1060 # Create a list of thread flags to try.  Items starting with a "-" are
1061 # C compiler flags, and other items are library names, except for "none"
1062 # which indicates that we try without any flags at all.
1063
1064 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
1065
1066 # The ordering *is* (sometimes) important.  Some notes on the
1067 # individual items follow:
1068
1069 # pthreads: AIX (must check this before -lpthread)
1070 # none: in case threads are in libc; should be tried before -Kthread and
1071 #       other compiler flags to prevent continual compiler warnings
1072 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
1073 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
1074 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
1075 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
1076 # -pthreads: Solaris/gcc
1077 # -mthreads: Mingw32/gcc, Lynx/gcc
1078 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
1079 #      doesn't hurt to check since this sometimes defines pthreads too;
1080 #      also defines -D_REENTRANT)
1081 # pthread: Linux, etcetera
1082 # --thread-safe: KAI C++
1083
1084 case "${host_cpu}-${host_os}" in
1085         *solaris*)
1086
1087         # On Solaris (at least, for some versions), libc contains stubbed
1088         # (non-functional) versions of the pthreads routines, so link-based
1089         # tests will erroneously succeed.  (We need to link with -pthread or
1090         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
1091         # a function called by this macro, so we could check for that, but
1092         # who knows whether they'll stub that too in a future libc.)  So,
1093         # we'll just look for -pthreads and -lpthread first:
1094
1095         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
1096         ;;
1097 esac
1098
1099 if test x"$acx_pthread_ok" = xno; then
1100 for flag in $acx_pthread_flags; do
1101
1102         case $flag in
1103        none)
1104        echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
1105 echo "configure:1106: checking whether pthreads work without any flags" >&5
1106        ;;
1107
1108        -*)
1109        echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
1110 echo "configure:1111: checking whether pthreads work with $flag" >&5
1111        PTHREAD_CFLAGS="$flag"
1112        ;;
1113
1114        *)
1115        echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
1116 echo "configure:1117: checking for the pthreads library -l$flag" >&5
1117        PTHREAD_LIBS="-l$flag"
1118        ;;
1119         esac
1120
1121         save_LIBS="$LIBS"
1122         save_CFLAGS="$CFLAGS"
1123         LIBS="$PTHREAD_LIBS $LIBS"
1124         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1125
1126         # Check for various functions.  We must include pthread.h,
1127         # since some functions may be macros.  (On the Sequent, we
1128         # need a special flag -Kthread to make this header compile.)
1129         # We check for pthread_join because it is in -lpthread on IRIX
1130         # while pthread_create is in libc.  We check for pthread_attr_init
1131         # due to DEC craziness with -lpthreads.  We check for
1132         # pthread_cleanup_push because it is one of the few pthread
1133         # functions on Solaris that doesn't have a non-functional libc stub.
1134         # We try pthread_create on general principles.
1135         cat > conftest.$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1138 #include <pthread.h>
1139 int main() {
1140 pthread_t th; pthread_join(th, 0);
1141    pthread_attr_init(0); pthread_cleanup_push(0, 0);
1142    pthread_create(0,0,0,0); pthread_cleanup_pop(0); 
1143 ; return 0; }
1144 EOF
1145 if { (eval echo configure:1146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1146   rm -rf conftest*
1147   acx_pthread_ok=yes
1148 else
1149   echo "configure: failed program was:" >&5
1150   cat conftest.$ac_ext >&5
1151 fi
1152 rm -f conftest*
1153
1154         LIBS="$save_LIBS"
1155         CFLAGS="$save_CFLAGS"
1156
1157         echo "$ac_t""$acx_pthread_ok" 1>&6
1158         if test "x$acx_pthread_ok" = xyes; then
1159        break;
1160         fi
1161
1162         PTHREAD_LIBS=""
1163         PTHREAD_CFLAGS=""
1164 done
1165 fi
1166
1167 # Various other checks:
1168 if test "x$acx_pthread_ok" = xyes; then
1169         save_LIBS="$LIBS"
1170         LIBS="$PTHREAD_LIBS $LIBS"
1171         save_CFLAGS="$CFLAGS"
1172         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1173
1174         # Detect AIX lossage: threads are created detached by default
1175         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
1176         echo $ac_n "checking for joinable pthread attribute""... $ac_c" 1>&6
1177 echo "configure:1178: checking for joinable pthread attribute" >&5
1178         cat > conftest.$ac_ext <<EOF
1179 #line 1180 "configure"
1180 #include "confdefs.h"
1181 #include <pthread.h>
1182 int main() {
1183 int attr=PTHREAD_CREATE_JOINABLE;
1184 ; return 0; }
1185 EOF
1186 if { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1187   rm -rf conftest*
1188   ok=PTHREAD_CREATE_JOINABLE
1189 else
1190   echo "configure: failed program was:" >&5
1191   cat conftest.$ac_ext >&5
1192   rm -rf conftest*
1193   ok=unknown
1194 fi
1195 rm -f conftest*
1196         if test x"$ok" = xunknown; then
1197        cat > conftest.$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1200 #include <pthread.h>
1201 int main() {
1202 int attr=PTHREAD_CREATE_UNDETACHED;
1203 ; return 0; }
1204 EOF
1205 if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1206   rm -rf conftest*
1207   ok=PTHREAD_CREATE_UNDETACHED
1208 else
1209   echo "configure: failed program was:" >&5
1210   cat conftest.$ac_ext >&5
1211   rm -rf conftest*
1212   ok=unknown
1213 fi
1214 rm -f conftest*
1215         fi
1216         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
1217        cat >> confdefs.h <<\EOF
1218 #define PTHREAD_CREATE_JOINABLE $ok
1219 EOF
1220
1221         fi
1222         echo "$ac_t""${ok}" 1>&6
1223         if test x"$ok" = xunknown; then
1224        echo "configure: warning: we do not know how to create joinable pthreads" 1>&2
1225         fi
1226
1227         echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
1228 echo "configure:1229: checking if more special flags are required for pthreads" >&5
1229         flag=no
1230         case "${host_cpu}-${host_os}" in
1231        *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
1232        *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
1233         esac
1234         echo "$ac_t""${flag}" 1>&6
1235         if test "x$flag" != xno; then
1236        PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
1237         fi
1238
1239         LIBS="$save_LIBS"
1240         CFLAGS="$save_CFLAGS"
1241
1242         # More AIX lossage: must compile with cc_r
1243         # Extract the first word of "cc_r", so it can be a program name with args.
1244 set dummy cc_r; ac_word=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_PTHREAD_CC'+set}'`\" = set"; then
1248   echo $ac_n "(cached) $ac_c" 1>&6
1249 else
1250   if test -n "$PTHREAD_CC"; then
1251   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
1252 else
1253   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1254   ac_dummy="$PATH"
1255   for ac_dir in $ac_dummy; do
1256     test -z "$ac_dir" && ac_dir=.
1257     if test -f $ac_dir/$ac_word; then
1258       ac_cv_prog_PTHREAD_CC="cc_r"
1259       break
1260     fi
1261   done
1262   IFS="$ac_save_ifs"
1263   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
1264 fi
1265 fi
1266 PTHREAD_CC="$ac_cv_prog_PTHREAD_CC"
1267 if test -n "$PTHREAD_CC"; then
1268   echo "$ac_t""$PTHREAD_CC" 1>&6
1269 else
1270   echo "$ac_t""no" 1>&6
1271 fi
1272
1273 else
1274         PTHREAD_CC="$CC"
1275 fi
1276
1277
1278
1279
1280
1281 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
1282 if test x"$acx_pthread_ok" = xyes; then
1283         MDEFS="${MDEFS} -DHMMER_THREADS"
1284         :
1285 else
1286         acx_pthread_ok=no
1287         
1288 fi
1289
1290
1291         ;;
1292    no)  echo "POSIX threads support disabled"
1293         ;;
1294    *)   echo "Ignoring unknown argument to --disable-threads: $enable_threads"
1295         ;;
1296 esac
1297 else
1298   
1299    echo "   Trying to enable default POSIX threads support"
1300    
1301
1302 acx_pthread_ok=no
1303
1304 # First, check if the POSIX threads header, pthread.h, is available.
1305 # If it isn't, don't bother looking for the threads libraries.
1306 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1307 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1308 echo "configure:1309: checking for pthread.h" >&5
1309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1310   echo $ac_n "(cached) $ac_c" 1>&6
1311 else
1312   cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1315 #include <pthread.h>
1316 EOF
1317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1318 { (eval echo configure:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1320 if test -z "$ac_err"; then
1321   rm -rf conftest*
1322   eval "ac_cv_header_$ac_safe=yes"
1323 else
1324   echo "$ac_err" >&5
1325   echo "configure: failed program was:" >&5
1326   cat conftest.$ac_ext >&5
1327   rm -rf conftest*
1328   eval "ac_cv_header_$ac_safe=no"
1329 fi
1330 rm -f conftest*
1331 fi
1332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1333   echo "$ac_t""yes" 1>&6
1334   :
1335 else
1336   echo "$ac_t""no" 1>&6
1337 acx_pthread_ok=noheader
1338 fi
1339
1340
1341 # We must check for the threads library under a number of different
1342 # names; the ordering is very important because some systems
1343 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
1344 # libraries is broken (non-POSIX).
1345
1346 # First of all, check if the user has set any of the PTHREAD_LIBS,
1347 # etcetera environment variables, and if threads linking works using
1348 # them:
1349 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
1350         save_CFLAGS="$CFLAGS"
1351         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1352         save_LIBS="$LIBS"
1353         LIBS="$PTHREAD_LIBS $LIBS"
1354         echo $ac_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS""... $ac_c" 1>&6
1355 echo "configure:1356: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
1356         cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1359 /* Override any gcc2 internal prototype to avoid an error.  */
1360 /* We use char because int might match the return type of a gcc2
1361     builtin and then its argument prototype would still apply.  */
1362 char pthread_join();
1363
1364 int main() {
1365 pthread_join()
1366 ; return 0; }
1367 EOF
1368 if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1369   rm -rf conftest*
1370   acx_pthread_ok=yes
1371 else
1372   echo "configure: failed program was:" >&5
1373   cat conftest.$ac_ext >&5
1374 fi
1375 rm -f conftest*
1376         echo "$ac_t""$acx_pthread_ok" 1>&6
1377         if test x"$acx_pthread_ok" = xno; then
1378        PTHREAD_LIBS=""
1379        PTHREAD_CFLAGS=""
1380         fi
1381         LIBS="$save_LIBS"
1382         CFLAGS="$save_CFLAGS"
1383 fi
1384
1385 # Create a list of thread flags to try.  Items starting with a "-" are
1386 # C compiler flags, and other items are library names, except for "none"
1387 # which indicates that we try without any flags at all.
1388
1389 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
1390
1391 # The ordering *is* (sometimes) important.  Some notes on the
1392 # individual items follow:
1393
1394 # pthreads: AIX (must check this before -lpthread)
1395 # none: in case threads are in libc; should be tried before -Kthread and
1396 #       other compiler flags to prevent continual compiler warnings
1397 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
1398 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
1399 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
1400 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
1401 # -pthreads: Solaris/gcc
1402 # -mthreads: Mingw32/gcc, Lynx/gcc
1403 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
1404 #      doesn't hurt to check since this sometimes defines pthreads too;
1405 #      also defines -D_REENTRANT)
1406 # pthread: Linux, etcetera
1407 # --thread-safe: KAI C++
1408
1409 case "${host_cpu}-${host_os}" in
1410         *solaris*)
1411
1412         # On Solaris (at least, for some versions), libc contains stubbed
1413         # (non-functional) versions of the pthreads routines, so link-based
1414         # tests will erroneously succeed.  (We need to link with -pthread or
1415         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
1416         # a function called by this macro, so we could check for that, but
1417         # who knows whether they'll stub that too in a future libc.)  So,
1418         # we'll just look for -pthreads and -lpthread first:
1419
1420         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
1421         ;;
1422 esac
1423
1424 if test x"$acx_pthread_ok" = xno; then
1425 for flag in $acx_pthread_flags; do
1426
1427         case $flag in
1428        none)
1429        echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
1430 echo "configure:1431: checking whether pthreads work without any flags" >&5
1431        ;;
1432
1433        -*)
1434        echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
1435 echo "configure:1436: checking whether pthreads work with $flag" >&5
1436        PTHREAD_CFLAGS="$flag"
1437        ;;
1438
1439        *)
1440        echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
1441 echo "configure:1442: checking for the pthreads library -l$flag" >&5
1442        PTHREAD_LIBS="-l$flag"
1443        ;;
1444         esac
1445
1446         save_LIBS="$LIBS"
1447         save_CFLAGS="$CFLAGS"
1448         LIBS="$PTHREAD_LIBS $LIBS"
1449         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1450
1451         # Check for various functions.  We must include pthread.h,
1452         # since some functions may be macros.  (On the Sequent, we
1453         # need a special flag -Kthread to make this header compile.)
1454         # We check for pthread_join because it is in -lpthread on IRIX
1455         # while pthread_create is in libc.  We check for pthread_attr_init
1456         # due to DEC craziness with -lpthreads.  We check for
1457         # pthread_cleanup_push because it is one of the few pthread
1458         # functions on Solaris that doesn't have a non-functional libc stub.
1459         # We try pthread_create on general principles.
1460         cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1463 #include <pthread.h>
1464 int main() {
1465 pthread_t th; pthread_join(th, 0);
1466    pthread_attr_init(0); pthread_cleanup_push(0, 0);
1467    pthread_create(0,0,0,0); pthread_cleanup_pop(0); 
1468 ; return 0; }
1469 EOF
1470 if { (eval echo configure:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1471   rm -rf conftest*
1472   acx_pthread_ok=yes
1473 else
1474   echo "configure: failed program was:" >&5
1475   cat conftest.$ac_ext >&5
1476 fi
1477 rm -f conftest*
1478
1479         LIBS="$save_LIBS"
1480         CFLAGS="$save_CFLAGS"
1481
1482         echo "$ac_t""$acx_pthread_ok" 1>&6
1483         if test "x$acx_pthread_ok" = xyes; then
1484        break;
1485         fi
1486
1487         PTHREAD_LIBS=""
1488         PTHREAD_CFLAGS=""
1489 done
1490 fi
1491
1492 # Various other checks:
1493 if test "x$acx_pthread_ok" = xyes; then
1494         save_LIBS="$LIBS"
1495         LIBS="$PTHREAD_LIBS $LIBS"
1496         save_CFLAGS="$CFLAGS"
1497         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1498
1499         # Detect AIX lossage: threads are created detached by default
1500         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
1501         echo $ac_n "checking for joinable pthread attribute""... $ac_c" 1>&6
1502 echo "configure:1503: checking for joinable pthread attribute" >&5
1503         cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1506 #include <pthread.h>
1507 int main() {
1508 int attr=PTHREAD_CREATE_JOINABLE;
1509 ; return 0; }
1510 EOF
1511 if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1512   rm -rf conftest*
1513   ok=PTHREAD_CREATE_JOINABLE
1514 else
1515   echo "configure: failed program was:" >&5
1516   cat conftest.$ac_ext >&5
1517   rm -rf conftest*
1518   ok=unknown
1519 fi
1520 rm -f conftest*
1521         if test x"$ok" = xunknown; then
1522        cat > conftest.$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1525 #include <pthread.h>
1526 int main() {
1527 int attr=PTHREAD_CREATE_UNDETACHED;
1528 ; return 0; }
1529 EOF
1530 if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1531   rm -rf conftest*
1532   ok=PTHREAD_CREATE_UNDETACHED
1533 else
1534   echo "configure: failed program was:" >&5
1535   cat conftest.$ac_ext >&5
1536   rm -rf conftest*
1537   ok=unknown
1538 fi
1539 rm -f conftest*
1540         fi
1541         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
1542        cat >> confdefs.h <<\EOF
1543 #define PTHREAD_CREATE_JOINABLE $ok
1544 EOF
1545
1546         fi
1547         echo "$ac_t""${ok}" 1>&6
1548         if test x"$ok" = xunknown; then
1549        echo "configure: warning: we do not know how to create joinable pthreads" 1>&2
1550         fi
1551
1552         echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
1553 echo "configure:1554: checking if more special flags are required for pthreads" >&5
1554         flag=no
1555         case "${host_cpu}-${host_os}" in
1556        *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
1557        *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
1558         esac
1559         echo "$ac_t""${flag}" 1>&6
1560         if test "x$flag" != xno; then
1561        PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
1562         fi
1563
1564         LIBS="$save_LIBS"
1565         CFLAGS="$save_CFLAGS"
1566
1567         # More AIX lossage: must compile with cc_r
1568         # Extract the first word of "cc_r", so it can be a program name with args.
1569 set dummy cc_r; ac_word=$2
1570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1571 echo "configure:1572: checking for $ac_word" >&5
1572 if eval "test \"`echo '$''{'ac_cv_prog_PTHREAD_CC'+set}'`\" = set"; then
1573   echo $ac_n "(cached) $ac_c" 1>&6
1574 else
1575   if test -n "$PTHREAD_CC"; then
1576   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
1577 else
1578   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1579   ac_dummy="$PATH"
1580   for ac_dir in $ac_dummy; do
1581     test -z "$ac_dir" && ac_dir=.
1582     if test -f $ac_dir/$ac_word; then
1583       ac_cv_prog_PTHREAD_CC="cc_r"
1584       break
1585     fi
1586   done
1587   IFS="$ac_save_ifs"
1588   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
1589 fi
1590 fi
1591 PTHREAD_CC="$ac_cv_prog_PTHREAD_CC"
1592 if test -n "$PTHREAD_CC"; then
1593   echo "$ac_t""$PTHREAD_CC" 1>&6
1594 else
1595   echo "$ac_t""no" 1>&6
1596 fi
1597
1598 else
1599         PTHREAD_CC="$CC"
1600 fi
1601
1602
1603
1604
1605
1606 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
1607 if test x"$acx_pthread_ok" = xyes; then
1608         MDEFS="${MDEFS} -DHMMER_THREADS"
1609         :
1610 else
1611         acx_pthread_ok=no
1612         
1613 fi
1614
1615
1616
1617 fi
1618
1619
1620
1621 for ac_func in pthread_setconcurrency
1622 do
1623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1624 echo "configure:1625: checking for $ac_func" >&5
1625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1626   echo $ac_n "(cached) $ac_c" 1>&6
1627 else
1628   cat > conftest.$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1631 /* System header to define __stub macros and hopefully few prototypes,
1632     which can conflict with char $ac_func(); below.  */
1633 #include <assert.h>
1634 /* Override any gcc2 internal prototype to avoid an error.  */
1635 /* We use char because int might match the return type of a gcc2
1636     builtin and then its argument prototype would still apply.  */
1637 char $ac_func();
1638
1639 int main() {
1640
1641 /* The GNU C library defines this for functions which it implements
1642     to always fail with ENOSYS.  Some functions are actually named
1643     something starting with __ and the normal name is an alias.  */
1644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1645 choke me
1646 #else
1647 $ac_func();
1648 #endif
1649
1650 ; return 0; }
1651 EOF
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1653   rm -rf conftest*
1654   eval "ac_cv_func_$ac_func=yes"
1655 else
1656   echo "configure: failed program was:" >&5
1657   cat conftest.$ac_ext >&5
1658   rm -rf conftest*
1659   eval "ac_cv_func_$ac_func=no"
1660 fi
1661 rm -f conftest*
1662 fi
1663
1664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1665   echo "$ac_t""yes" 1>&6
1666     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1667   cat >> confdefs.h <<EOF
1668 #define $ac_tr_func 1
1669 EOF
1670  
1671 else
1672   echo "$ac_t""no" 1>&6
1673 fi
1674 done
1675
1676 for ac_func in pthread_attr_setscope
1677 do
1678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $ac_func" >&5
1680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1681   echo $ac_n "(cached) $ac_c" 1>&6
1682 else
1683   cat > conftest.$ac_ext <<EOF
1684 #line 1685 "configure"
1685 #include "confdefs.h"
1686 /* System header to define __stub macros and hopefully few prototypes,
1687     which can conflict with char $ac_func(); below.  */
1688 #include <assert.h>
1689 /* Override any gcc2 internal prototype to avoid an error.  */
1690 /* We use char because int might match the return type of a gcc2
1691     builtin and then its argument prototype would still apply.  */
1692 char $ac_func();
1693
1694 int main() {
1695
1696 /* The GNU C library defines this for functions which it implements
1697     to always fail with ENOSYS.  Some functions are actually named
1698     something starting with __ and the normal name is an alias.  */
1699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1700 choke me
1701 #else
1702 $ac_func();
1703 #endif
1704
1705 ; return 0; }
1706 EOF
1707 if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1708   rm -rf conftest*
1709   eval "ac_cv_func_$ac_func=yes"
1710 else
1711   echo "configure: failed program was:" >&5
1712   cat conftest.$ac_ext >&5
1713   rm -rf conftest*
1714   eval "ac_cv_func_$ac_func=no"
1715 fi
1716 rm -f conftest*
1717 fi
1718
1719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1720   echo "$ac_t""yes" 1>&6
1721     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1722   cat >> confdefs.h <<EOF
1723 #define $ac_tr_func 1
1724 EOF
1725  
1726 else
1727   echo "$ac_t""no" 1>&6
1728 fi
1729 done
1730
1731
1732 for ac_func in ntohs
1733 do
1734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1735 echo "configure:1736: checking for $ac_func" >&5
1736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1737   echo $ac_n "(cached) $ac_c" 1>&6
1738 else
1739   cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1742 /* System header to define __stub macros and hopefully few prototypes,
1743     which can conflict with char $ac_func(); below.  */
1744 #include <assert.h>
1745 /* Override any gcc2 internal prototype to avoid an error.  */
1746 /* We use char because int might match the return type of a gcc2
1747     builtin and then its argument prototype would still apply.  */
1748 char $ac_func();
1749
1750 int main() {
1751
1752 /* The GNU C library defines this for functions which it implements
1753     to always fail with ENOSYS.  Some functions are actually named
1754     something starting with __ and the normal name is an alias.  */
1755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1756 choke me
1757 #else
1758 $ac_func();
1759 #endif
1760
1761 ; return 0; }
1762 EOF
1763 if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1764   rm -rf conftest*
1765   eval "ac_cv_func_$ac_func=yes"
1766 else
1767   echo "configure: failed program was:" >&5
1768   cat conftest.$ac_ext >&5
1769   rm -rf conftest*
1770   eval "ac_cv_func_$ac_func=no"
1771 fi
1772 rm -f conftest*
1773 fi
1774
1775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1776   echo "$ac_t""yes" 1>&6
1777     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1778   cat >> confdefs.h <<EOF
1779 #define $ac_tr_func 1
1780 EOF
1781  
1782 else
1783   echo "$ac_t""no" 1>&6
1784 echo $ac_n "checking for ntohs in -lsocket""... $ac_c" 1>&6
1785 echo "configure:1786: checking for ntohs in -lsocket" >&5
1786 ac_lib_var=`echo socket'_'ntohs | sed 'y%./+-%__p_%'`
1787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1788   echo $ac_n "(cached) $ac_c" 1>&6
1789 else
1790   ac_save_LIBS="$LIBS"
1791 LIBS="-lsocket  $LIBS"
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 /* Override any gcc2 internal prototype to avoid an error.  */
1796 /* We use char because int might match the return type of a gcc2
1797     builtin and then its argument prototype would still apply.  */
1798 char ntohs();
1799
1800 int main() {
1801 ntohs()
1802 ; return 0; }
1803 EOF
1804 if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1805   rm -rf conftest*
1806   eval "ac_cv_lib_$ac_lib_var=yes"
1807 else
1808   echo "configure: failed program was:" >&5
1809   cat conftest.$ac_ext >&5
1810   rm -rf conftest*
1811   eval "ac_cv_lib_$ac_lib_var=no"
1812 fi
1813 rm -f conftest*
1814 LIBS="$ac_save_LIBS"
1815
1816 fi
1817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1818   echo "$ac_t""yes" 1>&6
1819     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1820     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1821   cat >> confdefs.h <<EOF
1822 #define $ac_tr_lib 1
1823 EOF
1824
1825   LIBS="-lsocket $LIBS"
1826
1827 else
1828   echo "$ac_t""no" 1>&6
1829 fi
1830
1831 fi
1832 done
1833
1834 for ac_func in ntohl
1835 do
1836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_func" >&5
1838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1839   echo $ac_n "(cached) $ac_c" 1>&6
1840 else
1841   cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 /* System header to define __stub macros and hopefully few prototypes,
1845     which can conflict with char $ac_func(); below.  */
1846 #include <assert.h>
1847 /* Override any gcc2 internal prototype to avoid an error.  */
1848 /* We use char because int might match the return type of a gcc2
1849     builtin and then its argument prototype would still apply.  */
1850 char $ac_func();
1851
1852 int main() {
1853
1854 /* The GNU C library defines this for functions which it implements
1855     to always fail with ENOSYS.  Some functions are actually named
1856     something starting with __ and the normal name is an alias.  */
1857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1858 choke me
1859 #else
1860 $ac_func();
1861 #endif
1862
1863 ; return 0; }
1864 EOF
1865 if { (eval echo configure:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1866   rm -rf conftest*
1867   eval "ac_cv_func_$ac_func=yes"
1868 else
1869   echo "configure: failed program was:" >&5
1870   cat conftest.$ac_ext >&5
1871   rm -rf conftest*
1872   eval "ac_cv_func_$ac_func=no"
1873 fi
1874 rm -f conftest*
1875 fi
1876
1877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1878   echo "$ac_t""yes" 1>&6
1879     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1880   cat >> confdefs.h <<EOF
1881 #define $ac_tr_func 1
1882 EOF
1883  
1884 else
1885   echo "$ac_t""no" 1>&6
1886 echo $ac_n "checking for ntohl in -lsocket""... $ac_c" 1>&6
1887 echo "configure:1888: checking for ntohl in -lsocket" >&5
1888 ac_lib_var=`echo socket'_'ntohl | sed 'y%./+-%__p_%'`
1889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1890   echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892   ac_save_LIBS="$LIBS"
1893 LIBS="-lsocket  $LIBS"
1894 cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 /* Override any gcc2 internal prototype to avoid an error.  */
1898 /* We use char because int might match the return type of a gcc2
1899     builtin and then its argument prototype would still apply.  */
1900 char ntohl();
1901
1902 int main() {
1903 ntohl()
1904 ; return 0; }
1905 EOF
1906 if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1907   rm -rf conftest*
1908   eval "ac_cv_lib_$ac_lib_var=yes"
1909 else
1910   echo "configure: failed program was:" >&5
1911   cat conftest.$ac_ext >&5
1912   rm -rf conftest*
1913   eval "ac_cv_lib_$ac_lib_var=no"
1914 fi
1915 rm -f conftest*
1916 LIBS="$ac_save_LIBS"
1917
1918 fi
1919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1920   echo "$ac_t""yes" 1>&6
1921     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1922     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1923   cat >> confdefs.h <<EOF
1924 #define $ac_tr_lib 1
1925 EOF
1926
1927   LIBS="-lsocket $LIBS"
1928
1929 else
1930   echo "$ac_t""no" 1>&6
1931 fi
1932
1933 fi
1934 done
1935
1936 for ac_func in htons
1937 do
1938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_func" >&5
1940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1941   echo $ac_n "(cached) $ac_c" 1>&6
1942 else
1943   cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 /* System header to define __stub macros and hopefully few prototypes,
1947     which can conflict with char $ac_func(); below.  */
1948 #include <assert.h>
1949 /* Override any gcc2 internal prototype to avoid an error.  */
1950 /* We use char because int might match the return type of a gcc2
1951     builtin and then its argument prototype would still apply.  */
1952 char $ac_func();
1953
1954 int main() {
1955
1956 /* The GNU C library defines this for functions which it implements
1957     to always fail with ENOSYS.  Some functions are actually named
1958     something starting with __ and the normal name is an alias.  */
1959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1960 choke me
1961 #else
1962 $ac_func();
1963 #endif
1964
1965 ; return 0; }
1966 EOF
1967 if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1968   rm -rf conftest*
1969   eval "ac_cv_func_$ac_func=yes"
1970 else
1971   echo "configure: failed program was:" >&5
1972   cat conftest.$ac_ext >&5
1973   rm -rf conftest*
1974   eval "ac_cv_func_$ac_func=no"
1975 fi
1976 rm -f conftest*
1977 fi
1978
1979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1980   echo "$ac_t""yes" 1>&6
1981     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1982   cat >> confdefs.h <<EOF
1983 #define $ac_tr_func 1
1984 EOF
1985  
1986 else
1987   echo "$ac_t""no" 1>&6
1988 echo $ac_n "checking for htons in -lsocket""... $ac_c" 1>&6
1989 echo "configure:1990: checking for htons in -lsocket" >&5
1990 ac_lib_var=`echo socket'_'htons | sed 'y%./+-%__p_%'`
1991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1992   echo $ac_n "(cached) $ac_c" 1>&6
1993 else
1994   ac_save_LIBS="$LIBS"
1995 LIBS="-lsocket  $LIBS"
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
1999 /* Override any gcc2 internal prototype to avoid an error.  */
2000 /* We use char because int might match the return type of a gcc2
2001     builtin and then its argument prototype would still apply.  */
2002 char htons();
2003
2004 int main() {
2005 htons()
2006 ; return 0; }
2007 EOF
2008 if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2009   rm -rf conftest*
2010   eval "ac_cv_lib_$ac_lib_var=yes"
2011 else
2012   echo "configure: failed program was:" >&5
2013   cat conftest.$ac_ext >&5
2014   rm -rf conftest*
2015   eval "ac_cv_lib_$ac_lib_var=no"
2016 fi
2017 rm -f conftest*
2018 LIBS="$ac_save_LIBS"
2019
2020 fi
2021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2022   echo "$ac_t""yes" 1>&6
2023     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2024     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2025   cat >> confdefs.h <<EOF
2026 #define $ac_tr_lib 1
2027 EOF
2028
2029   LIBS="-lsocket $LIBS"
2030
2031 else
2032   echo "$ac_t""no" 1>&6
2033 fi
2034
2035 fi
2036 done
2037
2038 for ac_func in htonl
2039 do
2040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_func" >&5
2042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2043   echo $ac_n "(cached) $ac_c" 1>&6
2044 else
2045   cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2048 /* System header to define __stub macros and hopefully few prototypes,
2049     which can conflict with char $ac_func(); below.  */
2050 #include <assert.h>
2051 /* Override any gcc2 internal prototype to avoid an error.  */
2052 /* We use char because int might match the return type of a gcc2
2053     builtin and then its argument prototype would still apply.  */
2054 char $ac_func();
2055
2056 int main() {
2057
2058 /* The GNU C library defines this for functions which it implements
2059     to always fail with ENOSYS.  Some functions are actually named
2060     something starting with __ and the normal name is an alias.  */
2061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2062 choke me
2063 #else
2064 $ac_func();
2065 #endif
2066
2067 ; return 0; }
2068 EOF
2069 if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2070   rm -rf conftest*
2071   eval "ac_cv_func_$ac_func=yes"
2072 else
2073   echo "configure: failed program was:" >&5
2074   cat conftest.$ac_ext >&5
2075   rm -rf conftest*
2076   eval "ac_cv_func_$ac_func=no"
2077 fi
2078 rm -f conftest*
2079 fi
2080
2081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2082   echo "$ac_t""yes" 1>&6
2083     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2084   cat >> confdefs.h <<EOF
2085 #define $ac_tr_func 1
2086 EOF
2087  
2088 else
2089   echo "$ac_t""no" 1>&6
2090 echo $ac_n "checking for htonl in -lsocket""... $ac_c" 1>&6
2091 echo "configure:2092: checking for htonl in -lsocket" >&5
2092 ac_lib_var=`echo socket'_'htonl | sed 'y%./+-%__p_%'`
2093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2094   echo $ac_n "(cached) $ac_c" 1>&6
2095 else
2096   ac_save_LIBS="$LIBS"
2097 LIBS="-lsocket  $LIBS"
2098 cat > conftest.$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2101 /* Override any gcc2 internal prototype to avoid an error.  */
2102 /* We use char because int might match the return type of a gcc2
2103     builtin and then its argument prototype would still apply.  */
2104 char htonl();
2105
2106 int main() {
2107 htonl()
2108 ; return 0; }
2109 EOF
2110 if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2111   rm -rf conftest*
2112   eval "ac_cv_lib_$ac_lib_var=yes"
2113 else
2114   echo "configure: failed program was:" >&5
2115   cat conftest.$ac_ext >&5
2116   rm -rf conftest*
2117   eval "ac_cv_lib_$ac_lib_var=no"
2118 fi
2119 rm -f conftest*
2120 LIBS="$ac_save_LIBS"
2121
2122 fi
2123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2124   echo "$ac_t""yes" 1>&6
2125     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2126     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2127   cat >> confdefs.h <<EOF
2128 #define $ac_tr_lib 1
2129 EOF
2130
2131   LIBS="-lsocket $LIBS"
2132
2133 else
2134   echo "$ac_t""no" 1>&6
2135 fi
2136
2137 fi
2138 done
2139
2140
2141 subdirs="squid"
2142
2143
2144 echo "   Configuration complete. Writing Makefiles and such..."
2145 trap '' 1 2 15
2146 cat > confcache <<\EOF
2147 # This file is a shell script that caches the results of configure
2148 # tests run on this system so they can be shared between configure
2149 # scripts and configure runs.  It is not useful on other systems.
2150 # If it contains results you don't want to keep, you may remove or edit it.
2151 #
2152 # By default, configure uses ./config.cache as the cache file,
2153 # creating it if it does not exist already.  You can give configure
2154 # the --cache-file=FILE option to use a different cache file; that is
2155 # what configure does when it calls configure scripts in
2156 # subdirectories, so they share the cache.
2157 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2158 # config.status only pays attention to the cache file if you give it the
2159 # --recheck option to rerun configure.
2160 #
2161 EOF
2162 # The following way of writing the cache mishandles newlines in values,
2163 # but we know of no workaround that is simple, portable, and efficient.
2164 # So, don't put newlines in cache variables' values.
2165 # Ultrix sh set writes to stderr and can't be redirected directly,
2166 # and sets the high bit in the cache file unless we assign to the vars.
2167 (set) 2>&1 |
2168   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2169   *ac_space=\ *)
2170     # `set' does not quote correctly, so add quotes (double-quote substitution
2171     # turns \\\\ into \\, and sed turns \\ into \).
2172     sed -n \
2173       -e "s/'/'\\\\''/g" \
2174       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2175     ;;
2176   *)
2177     # `set' quotes correctly as required by POSIX, so do not add quotes.
2178     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2179     ;;
2180   esac >> confcache
2181 if cmp -s $cache_file confcache; then
2182   :
2183 else
2184   if test -w $cache_file; then
2185     echo "updating cache $cache_file"
2186     cat confcache > $cache_file
2187   else
2188     echo "not updating unwritable cache $cache_file"
2189   fi
2190 fi
2191 rm -f confcache
2192
2193 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2194
2195 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2196 # Let make expand exec_prefix.
2197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2198
2199 # Any assignment to VPATH causes Sun make to only execute
2200 # the first set of double-colon rules, so remove it if not needed.
2201 # If there is a colon in the path, we need to keep it.
2202 if test "x$srcdir" = x.; then
2203   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2204 fi
2205
2206 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2207
2208 # Transform confdefs.h into DEFS.
2209 # Protect against shell expansion while executing Makefile rules.
2210 # Protect against Makefile macro expansion.
2211 cat > conftest.defs <<\EOF
2212 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2213 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2214 s%\[%\\&%g
2215 s%\]%\\&%g
2216 s%\$%$$%g
2217 EOF
2218 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2219 rm -f conftest.defs
2220
2221
2222 # Without the "./", some shells look in PATH for config.status.
2223 : ${CONFIG_STATUS=./config.status}
2224
2225 echo creating $CONFIG_STATUS
2226 rm -f $CONFIG_STATUS
2227 cat > $CONFIG_STATUS <<EOF
2228 #! /bin/sh
2229 # Generated automatically by configure.
2230 # Run this file to recreate the current configuration.
2231 # This directory was configured as follows,
2232 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2233 #
2234 # $0 $ac_configure_args
2235 #
2236 # Compiler output produced by configure, useful for debugging
2237 # configure, is in ./config.log if it exists.
2238
2239 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2240 for ac_option
2241 do
2242   case "\$ac_option" in
2243   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2244     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2245     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2246   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2247     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2248     exit 0 ;;
2249   -help | --help | --hel | --he | --h)
2250     echo "\$ac_cs_usage"; exit 0 ;;
2251   *) echo "\$ac_cs_usage"; exit 1 ;;
2252   esac
2253 done
2254
2255 ac_given_srcdir=$srcdir
2256
2257 trap 'rm -fr `echo "Makefile src/Makefile testsuite/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2258 EOF
2259 cat >> $CONFIG_STATUS <<EOF
2260
2261 # Protect against being on the right side of a sed subst in config.status.
2262 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2263  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2264 $ac_vpsub
2265 $extrasub
2266 s%@SHELL@%$SHELL%g
2267 s%@CFLAGS@%$CFLAGS%g
2268 s%@CPPFLAGS@%$CPPFLAGS%g
2269 s%@CXXFLAGS@%$CXXFLAGS%g
2270 s%@FFLAGS@%$FFLAGS%g
2271 s%@DEFS@%$DEFS%g
2272 s%@LDFLAGS@%$LDFLAGS%g
2273 s%@LIBS@%$LIBS%g
2274 s%@exec_prefix@%$exec_prefix%g
2275 s%@prefix@%$prefix%g
2276 s%@program_transform_name@%$program_transform_name%g
2277 s%@bindir@%$bindir%g
2278 s%@sbindir@%$sbindir%g
2279 s%@libexecdir@%$libexecdir%g
2280 s%@datadir@%$datadir%g
2281 s%@sysconfdir@%$sysconfdir%g
2282 s%@sharedstatedir@%$sharedstatedir%g
2283 s%@localstatedir@%$localstatedir%g
2284 s%@libdir@%$libdir%g
2285 s%@includedir@%$includedir%g
2286 s%@oldincludedir@%$oldincludedir%g
2287 s%@infodir@%$infodir%g
2288 s%@mandir@%$mandir%g
2289 s%@MDEFS@%$MDEFS%g
2290 s%@PVMLIBDIR@%$PVMLIBDIR%g
2291 s%@PVMINCDIR@%$PVMINCDIR%g
2292 s%@PVMFLAG@%$PVMFLAG%g
2293 s%@PVMPROGS@%$PVMPROGS%g
2294 s%@PVMLIBS@%$PVMLIBS%g
2295 s%@CC@%$CC%g
2296 s%@LN_S@%$LN_S%g
2297 s%@RANLIB@%$RANLIB%g
2298 s%@EXEC_DEPENDENCY@%$EXEC_DEPENDENCY%g
2299 s%@host@%$host%g
2300 s%@host_alias@%$host_alias%g
2301 s%@host_cpu@%$host_cpu%g
2302 s%@host_vendor@%$host_vendor%g
2303 s%@host_os@%$host_os%g
2304 s%@CPP@%$CPP%g
2305 s%@PTHREAD_CC@%$PTHREAD_CC%g
2306 s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
2307 s%@PTHREAD_CFLAGS@%$PTHREAD_CFLAGS%g
2308 s%@subdirs@%$subdirs%g
2309
2310 CEOF
2311 EOF
2312
2313 cat >> $CONFIG_STATUS <<\EOF
2314
2315 # Split the substitutions into bite-sized pieces for seds with
2316 # small command number limits, like on Digital OSF/1 and HP-UX.
2317 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2318 ac_file=1 # Number of current file.
2319 ac_beg=1 # First line for current file.
2320 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2321 ac_more_lines=:
2322 ac_sed_cmds=""
2323 while $ac_more_lines; do
2324   if test $ac_beg -gt 1; then
2325     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2326   else
2327     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2328   fi
2329   if test ! -s conftest.s$ac_file; then
2330     ac_more_lines=false
2331     rm -f conftest.s$ac_file
2332   else
2333     if test -z "$ac_sed_cmds"; then
2334       ac_sed_cmds="sed -f conftest.s$ac_file"
2335     else
2336       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2337     fi
2338     ac_file=`expr $ac_file + 1`
2339     ac_beg=$ac_end
2340     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2341   fi
2342 done
2343 if test -z "$ac_sed_cmds"; then
2344   ac_sed_cmds=cat
2345 fi
2346 EOF
2347
2348 cat >> $CONFIG_STATUS <<EOF
2349
2350 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile testsuite/Makefile"}
2351 EOF
2352 cat >> $CONFIG_STATUS <<\EOF
2353 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2354   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2355   case "$ac_file" in
2356   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2357        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2358   *) ac_file_in="${ac_file}.in" ;;
2359   esac
2360
2361   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2362
2363   # Remove last slash and all that follows it.  Not all systems have dirname.
2364   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2365   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2366     # The file is in a subdirectory.
2367     test ! -d "$ac_dir" && mkdir "$ac_dir"
2368     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2369     # A "../" for each directory in $ac_dir_suffix.
2370     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2371   else
2372     ac_dir_suffix= ac_dots=
2373   fi
2374
2375   case "$ac_given_srcdir" in
2376   .)  srcdir=.
2377       if test -z "$ac_dots"; then top_srcdir=.
2378       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2379   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2380   *) # Relative path.
2381     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2382     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2383   esac
2384
2385
2386   echo creating "$ac_file"
2387   rm -f "$ac_file"
2388   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2389   case "$ac_file" in
2390   *Makefile*) ac_comsub="1i\\
2391 # $configure_input" ;;
2392   *) ac_comsub= ;;
2393   esac
2394
2395   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2396   sed -e "$ac_comsub
2397 s%@configure_input@%$configure_input%g
2398 s%@srcdir@%$srcdir%g
2399 s%@top_srcdir@%$top_srcdir%g
2400 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2401 fi; done
2402 rm -f conftest.s*
2403
2404 EOF
2405 cat >> $CONFIG_STATUS <<EOF
2406
2407 EOF
2408 cat >> $CONFIG_STATUS <<\EOF
2409
2410 exit 0
2411 EOF
2412 chmod +x $CONFIG_STATUS
2413 rm -fr confdefs* $ac_clean_files
2414 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2415
2416 if test "$no_recursion" != yes; then
2417
2418   # Remove --cache-file and --srcdir arguments so they do not pile up.
2419   ac_sub_configure_args=
2420   ac_prev=
2421   for ac_arg in $ac_configure_args; do
2422     if test -n "$ac_prev"; then
2423       ac_prev=
2424       continue
2425     fi
2426     case "$ac_arg" in
2427     -cache-file | --cache-file | --cache-fil | --cache-fi \
2428     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2429       ac_prev=cache_file ;;
2430     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2431     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2432       ;;
2433     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2434       ac_prev=srcdir ;;
2435     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2436       ;;
2437     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2438     esac
2439   done
2440
2441   for ac_config_dir in squid; do
2442
2443     # Do not complain, so a configure script can configure whichever
2444     # parts of a large source tree are present.
2445     if test ! -d $srcdir/$ac_config_dir; then
2446       continue
2447     fi
2448
2449     echo configuring in $ac_config_dir
2450
2451     case "$srcdir" in
2452     .) ;;
2453     *)
2454       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2455       else
2456         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2457       fi
2458       ;;
2459     esac
2460
2461     ac_popdir=`pwd`
2462     cd $ac_config_dir
2463
2464       # A "../" for each directory in /$ac_config_dir.
2465       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2466
2467     case "$srcdir" in
2468     .) # No --srcdir option.  We are building in place.
2469       ac_sub_srcdir=$srcdir ;;
2470     /*) # Absolute path.
2471       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2472     *) # Relative path.
2473       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2474     esac
2475
2476     # Check for guested configure; otherwise get Cygnus style configure.
2477     if test -f $ac_sub_srcdir/configure; then
2478       ac_sub_configure=$ac_sub_srcdir/configure
2479     elif test -f $ac_sub_srcdir/configure.in; then
2480       ac_sub_configure=$ac_configure
2481     else
2482       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2483       ac_sub_configure=
2484     fi
2485
2486     # The recursion is here.
2487     if test -n "$ac_sub_configure"; then
2488
2489       # Make the cache file name correct relative to the subdirectory.
2490       case "$cache_file" in
2491       /*) ac_sub_cache_file=$cache_file ;;
2492       *) # Relative path.
2493         ac_sub_cache_file="$ac_dots$cache_file" ;;
2494       esac
2495
2496       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2497       # The eval makes quoting arguments work.
2498       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2499       then :
2500       else
2501         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2502       fi
2503     fi
2504
2505     cd $ac_popdir
2506   done
2507 fi
2508
2509