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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14
15# Initialize some variables set by options.
16# The variables have the same names as the options, with
17# dashes changed to underlines.
18build=NONE
19exec_prefix=NONE
20host=NONE
21no_create=
22nonopt=NONE
23no_recursion=
24prefix=NONE
25program_prefix=NONE
26program_suffix=NONE
27program_transform_name=s,x,x,
28silent=
29site=
30srcdir=
31target=NONE
32verbose=
33x_includes=NONE
34x_libraries=NONE
35bindir='${exec_prefix}/bin'
36sbindir='${exec_prefix}/sbin'
37libexecdir='${exec_prefix}/libexec'
38datadir='${prefix}/share'
39sysconfdir='${prefix}/etc'
40sharedstatedir='${prefix}/com'
41localstatedir='${prefix}/var'
42libdir='${exec_prefix}/lib'
43includedir='${prefix}/include'
44oldincludedir='/usr/include'
45infodir='${prefix}/info'
46mandir='${prefix}/man'
47
48# Initialize some other variables.
49subdirs=
50MFLAGS= MAKEFLAGS=
51SHELL=${CONFIG_SHELL-/bin/sh}
52# Maximum number of lines to put in a shell here document.
53ac_max_here_lines=12
54
55ac_prev=
56for ac_option
57do
58
59  # If the previous option needs an argument, assign it.
60  if test -n "$ac_prev"; then
61    eval "$ac_prev=\$ac_option"
62    ac_prev=
63    continue
64  fi
65
66  case "$ac_option" in
67  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
68  *) ac_optarg= ;;
69  esac
70
71  # Accept the important Cygnus configure options, so we can diagnose typos.
72
73  case "$ac_option" in
74
75  -bindir | --bindir | --bindi | --bind | --bin | --bi)
76    ac_prev=bindir ;;
77  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78    bindir="$ac_optarg" ;;
79
80  -build | --build | --buil | --bui | --bu)
81    ac_prev=build ;;
82  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
83    build="$ac_optarg" ;;
84
85  -cache-file | --cache-file | --cache-fil | --cache-fi \
86  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
87    ac_prev=cache_file ;;
88  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90    cache_file="$ac_optarg" ;;
91
92  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
93    ac_prev=datadir ;;
94  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
95  | --da=*)
96    datadir="$ac_optarg" ;;
97
98  -disable-* | --disable-*)
99    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
100    # Reject names that are not valid shell variable names.
101    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
103    fi
104    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105    eval "enable_${ac_feature}=no" ;;
106
107  -enable-* | --enable-*)
108    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109    # Reject names that are not valid shell variable names.
110    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112    fi
113    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114    case "$ac_option" in
115      *=*) ;;
116      *) ac_optarg=yes ;;
117    esac
118    eval "enable_${ac_feature}='$ac_optarg'" ;;
119
120  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
122  | --exec | --exe | --ex)
123    ac_prev=exec_prefix ;;
124  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126  | --exec=* | --exe=* | --ex=*)
127    exec_prefix="$ac_optarg" ;;
128
129  -gas | --gas | --ga | --g)
130    # Obsolete; use --with-gas.
131    with_gas=yes ;;
132
133  -help | --help | --hel | --he)
134    # Omit some internal or obsolete options to make the list less imposing.
135    # This message is too long to be a string in the A/UX 3.1 sh.
136    cat << EOF
137Usage: configure [options] [host]
138Options: [defaults in brackets after descriptions]
139Configuration:
140  --cache-file=FILE       cache test results in FILE
141  --help                  print this message
142  --no-create             do not create output files
143  --quiet, --silent       do not print \`checking...' messages
144  --version               print the version of autoconf that created configure
145Directory and file names:
146  --prefix=PREFIX         install architecture-independent files in PREFIX
147                          [$ac_default_prefix]
148  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
149                          [same as prefix]
150  --bindir=DIR            user executables in DIR [EPREFIX/bin]
151  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
152  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
153  --datadir=DIR           read-only architecture-independent data in DIR
154                          [PREFIX/share]
155  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
156  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
157                          [PREFIX/com]
158  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
159  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
160  --includedir=DIR        C header files in DIR [PREFIX/include]
161  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
162  --infodir=DIR           info documentation in DIR [PREFIX/info]
163  --mandir=DIR            man documentation in DIR [PREFIX/man]
164  --srcdir=DIR            find the sources in DIR [configure dir or ..]
165  --program-prefix=PREFIX prepend PREFIX to installed program names
166  --program-suffix=SUFFIX append SUFFIX to installed program names
167  --program-transform-name=PROGRAM
168                          run sed PROGRAM on installed program names
169EOF
170    cat << EOF
171Host type:
172  --build=BUILD           configure for building on BUILD [BUILD=HOST]
173  --host=HOST             configure for HOST [guessed]
174  --target=TARGET         configure for TARGET [TARGET=HOST]
175Features and packages:
176  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
177  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
178  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
179  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
180  --x-includes=DIR        X include files are in DIR
181  --x-libraries=DIR       X library files are in DIR
182EOF
183    if test -n "$ac_help"; then
184      echo "--enable and --with options recognized:$ac_help"
185    fi
186    exit 0 ;;
187
188  -host | --host | --hos | --ho)
189    ac_prev=host ;;
190  -host=* | --host=* | --hos=* | --ho=*)
191    host="$ac_optarg" ;;
192
193  -includedir | --includedir | --includedi | --included | --include \
194  | --includ | --inclu | --incl | --inc)
195    ac_prev=includedir ;;
196  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197  | --includ=* | --inclu=* | --incl=* | --inc=*)
198    includedir="$ac_optarg" ;;
199
200  -infodir | --infodir | --infodi | --infod | --info | --inf)
201    ac_prev=infodir ;;
202  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203    infodir="$ac_optarg" ;;
204
205  -libdir | --libdir | --libdi | --libd)
206    ac_prev=libdir ;;
207  -libdir=* | --libdir=* | --libdi=* | --libd=*)
208    libdir="$ac_optarg" ;;
209
210  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211  | --libexe | --libex | --libe)
212    ac_prev=libexecdir ;;
213  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214  | --libexe=* | --libex=* | --libe=*)
215    libexecdir="$ac_optarg" ;;
216
217  -localstatedir | --localstatedir | --localstatedi | --localstated \
218  | --localstate | --localstat | --localsta | --localst \
219  | --locals | --local | --loca | --loc | --lo)
220    ac_prev=localstatedir ;;
221  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
223  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224    localstatedir="$ac_optarg" ;;
225
226  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
227    ac_prev=mandir ;;
228  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229    mandir="$ac_optarg" ;;
230
231  -nfp | --nfp | --nf)
232    # Obsolete; use --without-fp.
233    with_fp=no ;;
234
235  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
236  | --no-cr | --no-c)
237    no_create=yes ;;
238
239  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
240  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
241    no_recursion=yes ;;
242
243  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
244  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
245  | --oldin | --oldi | --old | --ol | --o)
246    ac_prev=oldincludedir ;;
247  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250    oldincludedir="$ac_optarg" ;;
251
252  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
253    ac_prev=prefix ;;
254  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255    prefix="$ac_optarg" ;;
256
257  -program-prefix | --program-prefix | --program-prefi | --program-pref \
258  | --program-pre | --program-pr | --program-p)
259    ac_prev=program_prefix ;;
260  -program-prefix=* | --program-prefix=* | --program-prefi=* \
261  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262    program_prefix="$ac_optarg" ;;
263
264  -program-suffix | --program-suffix | --program-suffi | --program-suff \
265  | --program-suf | --program-su | --program-s)
266    ac_prev=program_suffix ;;
267  -program-suffix=* | --program-suffix=* | --program-suffi=* \
268  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269    program_suffix="$ac_optarg" ;;
270
271  -program-transform-name | --program-transform-name \
272  | --program-transform-nam | --program-transform-na \
273  | --program-transform-n | --program-transform- \
274  | --program-transform | --program-transfor \
275  | --program-transfo | --program-transf \
276  | --program-trans | --program-tran \
277  | --progr-tra | --program-tr | --program-t)
278    ac_prev=program_transform_name ;;
279  -program-transform-name=* | --program-transform-name=* \
280  | --program-transform-nam=* | --program-transform-na=* \
281  | --program-transform-n=* | --program-transform-=* \
282  | --program-transform=* | --program-transfor=* \
283  | --program-transfo=* | --program-transf=* \
284  | --program-trans=* | --program-tran=* \
285  | --progr-tra=* | --program-tr=* | --program-t=*)
286    program_transform_name="$ac_optarg" ;;
287
288  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
289  | -silent | --silent | --silen | --sile | --sil)
290    silent=yes ;;
291
292  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
293    ac_prev=sbindir ;;
294  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
295  | --sbi=* | --sb=*)
296    sbindir="$ac_optarg" ;;
297
298  -sharedstatedir | --sharedstatedir | --sharedstatedi \
299  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
300  | --sharedst | --shareds | --shared | --share | --shar \
301  | --sha | --sh)
302    ac_prev=sharedstatedir ;;
303  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
304  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
306  | --sha=* | --sh=*)
307    sharedstatedir="$ac_optarg" ;;
308
309  -site | --site | --sit)
310    ac_prev=site ;;
311  -site=* | --site=* | --sit=*)
312    site="$ac_optarg" ;;
313
314  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
315    ac_prev=srcdir ;;
316  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317    srcdir="$ac_optarg" ;;
318
319  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320  | --syscon | --sysco | --sysc | --sys | --sy)
321    ac_prev=sysconfdir ;;
322  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324    sysconfdir="$ac_optarg" ;;
325
326  -target | --target | --targe | --targ | --tar | --ta | --t)
327    ac_prev=target ;;
328  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329    target="$ac_optarg" ;;
330
331  -v | -verbose | --verbose | --verbos | --verbo | --verb)
332    verbose=yes ;;
333
334  -version | --version | --versio | --versi | --vers)
335    echo "configure generated by autoconf version 2.13"
336    exit 0 ;;
337
338  -with-* | --with-*)
339    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340    # Reject names that are not valid shell variable names.
341    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
343    fi
344    ac_package=`echo $ac_package| sed 's/-/_/g'`
345    case "$ac_option" in
346      *=*) ;;
347      *) ac_optarg=yes ;;
348    esac
349    eval "with_${ac_package}='$ac_optarg'" ;;
350
351  -without-* | --without-*)
352    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
353    # Reject names that are not valid shell variable names.
354    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356    fi
357    ac_package=`echo $ac_package| sed 's/-/_/g'`
358    eval "with_${ac_package}=no" ;;
359
360  --x)
361    # Obsolete; use --with-x.
362    with_x=yes ;;
363
364  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
365  | --x-incl | --x-inc | --x-in | --x-i)
366    ac_prev=x_includes ;;
367  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369    x_includes="$ac_optarg" ;;
370
371  -x-libraries | --x-libraries | --x-librarie | --x-librari \
372  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373    ac_prev=x_libraries ;;
374  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376    x_libraries="$ac_optarg" ;;
377
378  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
379    ;;
380
381  *)
382    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383      echo "configure: warning: $ac_option: invalid host type" 1>&2
384    fi
385    if test "x$nonopt" != xNONE; then
386      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
387    fi
388    nonopt="$ac_option"
389    ;;
390
391  esac
392done
393
394if test -n "$ac_prev"; then
395  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
396fi
397
398trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
399
400# File descriptor usage:
401# 0 standard input
402# 1 file creation
403# 2 errors and warnings
404# 3 some systems may open it to /dev/tty
405# 4 used on the Kubota Titan
406# 6 checking for... messages and results
407# 5 compiler messages saved in config.log
408if test "$silent" = yes; then
409  exec 6>/dev/null
410else
411  exec 6>&1
412fi
413exec 5>./config.log
414
415echo "\
416This file contains any messages produced by compilers while
417running configure, to aid debugging if configure makes a mistake.
418" 1>&5
419
420# Strip out --no-create and --no-recursion so they do not pile up.
421# Also quote any args containing shell metacharacters.
422ac_configure_args=
423for ac_arg
424do
425  case "$ac_arg" in
426  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427  | --no-cr | --no-c) ;;
428  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
429  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
433  esac
434done
435
436# NLS nuisances.
437# Only set these to C if already set.  These must not be set unconditionally
438# because not all systems understand e.g. LANG=C (notably SCO).
439# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440# Non-C LC_CTYPE values break the ctype check.
441if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
442if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
443if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
444if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
445
446# confdefs.h avoids OS command line length limits that DEFS can exceed.
447rm -rf conftest* confdefs.h
448# AIX cpp loses on an empty file, so make sure it contains at least a newline.
449echo > confdefs.h
450
451# A filename unique to this package, relative to the directory that
452# configure is in, which we can look for to find out if srcdir is correct.
453ac_unique_file=pathload_snd.h
454
455# Find the source files, if location was not specified.
456if test -z "$srcdir"; then
457  ac_srcdir_defaulted=yes
458  # Try the directory containing this script, then its parent.
459  ac_prog=$0
460  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
462  srcdir=$ac_confdir
463  if test ! -r $srcdir/$ac_unique_file; then
464    srcdir=..
465  fi
466else
467  ac_srcdir_defaulted=no
468fi
469if test ! -r $srcdir/$ac_unique_file; then
470  if test "$ac_srcdir_defaulted" = yes; then
471    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
472  else
473    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
474  fi
475fi
476srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
477
478ac_ext=c
479# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
480ac_cpp='$CPP $CPPFLAGS'
481ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
482ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
483cross_compiling=$ac_cv_prog_cc_cross
484
485ac_exeext=
486ac_objext=o
487if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
488  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
489  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
490    ac_n= ac_c='
491' ac_t='	'
492  else
493    ac_n=-n ac_c= ac_t=
494  fi
495else
496  ac_n= ac_c='\c' ac_t=
497fi
498
499
500
501# Extract the first word of "gcc", so it can be a program name with args.
502set dummy gcc; ac_word=$2
503echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
504echo "configure:529: checking for $ac_word" >&5
505if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
506  echo $ac_n "(cached) $ac_c" 1>&6
507else
508  if test -n "$CC"; then
509  ac_cv_prog_CC="$CC" # Let the user override the test.
510else
511  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
512  ac_dummy="$PATH"
513  for ac_dir in $ac_dummy; do
514    test -z "$ac_dir" && ac_dir=.
515    if test -f $ac_dir/$ac_word; then
516      ac_cv_prog_CC="gcc"
517      break
518    fi
519  done
520  IFS="$ac_save_ifs"
521fi
522fi
523CC="$ac_cv_prog_CC"
524if test -n "$CC"; then
525  echo "$ac_t""$CC" 1>&6
526else
527  echo "$ac_t""no" 1>&6
528fi
529
530if test -z "$CC"; then
531  # Extract the first word of "cc", so it can be a program name with args.
532set dummy cc; ac_word=$2
533echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
534echo "configure:559: checking for $ac_word" >&5
535if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
536  echo $ac_n "(cached) $ac_c" 1>&6
537else
538  if test -n "$CC"; then
539  ac_cv_prog_CC="$CC" # Let the user override the test.
540else
541  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
542  ac_prog_rejected=no
543  ac_dummy="$PATH"
544  for ac_dir in $ac_dummy; do
545    test -z "$ac_dir" && ac_dir=.
546    if test -f $ac_dir/$ac_word; then
547      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
548        ac_prog_rejected=yes
549	continue
550      fi
551      ac_cv_prog_CC="cc"
552      break
553    fi
554  done
555  IFS="$ac_save_ifs"
556if test $ac_prog_rejected = yes; then
557  # We found a bogon in the path, so make sure we never use it.
558  set dummy $ac_cv_prog_CC
559  shift
560  if test $# -gt 0; then
561    # We chose a different compiler from the bogus one.
562    # However, it has the same basename, so the bogon will be chosen
563    # first if we set CC to just the basename; use the full file name.
564    shift
565    set dummy "$ac_dir/$ac_word" "$@"
566    shift
567    ac_cv_prog_CC="$@"
568  fi
569fi
570fi
571fi
572CC="$ac_cv_prog_CC"
573if test -n "$CC"; then
574  echo "$ac_t""$CC" 1>&6
575else
576  echo "$ac_t""no" 1>&6
577fi
578
579  if test -z "$CC"; then
580    case "`uname -s`" in
581    *win32* | *WIN32*)
582      # Extract the first word of "cl", so it can be a program name with args.
583set dummy cl; ac_word=$2
584echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
585echo "configure:610: checking for $ac_word" >&5
586if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
587  echo $ac_n "(cached) $ac_c" 1>&6
588else
589  if test -n "$CC"; then
590  ac_cv_prog_CC="$CC" # Let the user override the test.
591else
592  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
593  ac_dummy="$PATH"
594  for ac_dir in $ac_dummy; do
595    test -z "$ac_dir" && ac_dir=.
596    if test -f $ac_dir/$ac_word; then
597      ac_cv_prog_CC="cl"
598      break
599    fi
600  done
601  IFS="$ac_save_ifs"
602fi
603fi
604CC="$ac_cv_prog_CC"
605if test -n "$CC"; then
606  echo "$ac_t""$CC" 1>&6
607else
608  echo "$ac_t""no" 1>&6
609fi
610 ;;
611    esac
612  fi
613  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
614fi
615
616echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
617echo "configure:642: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
618
619ac_ext=c
620# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
621ac_cpp='$CPP $CPPFLAGS'
622ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
623ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
624cross_compiling=$ac_cv_prog_cc_cross
625
626cat > conftest.$ac_ext << EOF
627
628#line 653 "configure"
629#include "confdefs.h"
630
631main(){return(0);}
632EOF
633if { (eval echo configure:658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
634  ac_cv_prog_cc_works=yes
635  # If we can't run a trivial program, we are probably using a cross compiler.
636  if (./conftest; exit) 2>/dev/null; then
637    ac_cv_prog_cc_cross=no
638  else
639    ac_cv_prog_cc_cross=yes
640  fi
641else
642  echo "configure: failed program was:" >&5
643  cat conftest.$ac_ext >&5
644  ac_cv_prog_cc_works=no
645fi
646rm -fr conftest*
647ac_ext=c
648# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
649ac_cpp='$CPP $CPPFLAGS'
650ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
651ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
652cross_compiling=$ac_cv_prog_cc_cross
653
654echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
655if test $ac_cv_prog_cc_works = no; then
656  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
657fi
658echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
659echo "configure:684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
660echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
661cross_compiling=$ac_cv_prog_cc_cross
662
663echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
664echo "configure:689: checking whether we are using GNU C" >&5
665if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
666  echo $ac_n "(cached) $ac_c" 1>&6
667else
668  cat > conftest.c <<EOF
669#ifdef __GNUC__
670  yes;
671#endif
672EOF
673if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
674  ac_cv_prog_gcc=yes
675else
676  ac_cv_prog_gcc=no
677fi
678fi
679
680echo "$ac_t""$ac_cv_prog_gcc" 1>&6
681
682if test $ac_cv_prog_gcc = yes; then
683  GCC=yes
684else
685  GCC=
686fi
687
688ac_test_CFLAGS="${CFLAGS+set}"
689ac_save_CFLAGS="$CFLAGS"
690CFLAGS=
691echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
692echo "configure:717: checking whether ${CC-cc} accepts -g" >&5
693if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
694  echo $ac_n "(cached) $ac_c" 1>&6
695else
696  echo 'void f(){}' > conftest.c
697if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
698  ac_cv_prog_cc_g=yes
699else
700  ac_cv_prog_cc_g=no
701fi
702rm -f conftest*
703
704fi
705
706echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
707if test "$ac_test_CFLAGS" = set; then
708  CFLAGS="$ac_save_CFLAGS"
709elif test $ac_cv_prog_cc_g = yes; then
710  if test "$GCC" = yes; then
711    CFLAGS="-g -O2"
712  else
713    CFLAGS="-g"
714  fi
715else
716  if test "$GCC" = yes; then
717    CFLAGS="-O2"
718  else
719    CFLAGS=
720  fi
721fi
722
723
724ac_aux_dir=
725for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
726  if test -f $ac_dir/README; then
727    ac_aux_dir=$ac_dir
728    ac_install_sh="$ac_aux_dir/install-sh -c"
729    break
730  fi
731done
732if test -z "$ac_aux_dir"; then
733  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
734fi
735ac_config_guess=$ac_aux_dir/config.guess
736ac_config_sub=$ac_aux_dir/config.sub
737ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
738
739
740# Make sure we can run config.sub.
741if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
742else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
743fi
744
745echo $ac_n "checking host system type""... $ac_c" 1>&6
746echo "configure:775: checking host system type" >&5
747
748host_alias=$host
749case "$host_alias" in
750NONE)
751  case $nonopt in
752  NONE)
753    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
754    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
755    fi ;;
756  *) host_alias=$nonopt ;;
757  esac ;;
758esac
759
760host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
761host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
764echo "$ac_t""$host" 1>&6
765
766
767
768
769ac_ext=c
770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771ac_cpp='$CPP $CPPFLAGS'
772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
773ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
774cross_compiling=$ac_cv_prog_cc_cross
775
776acx_pthread_ok=no
777
778# We used to check for pthread.h first, but this fails if pthread.h
779# requires special compiler flags (e.g. on True64 or Sequent).
780# It gets checked for in the link test anyway.
781
782# First of all, check if the user has set any of the PTHREAD_LIBS,
783# etcetera environment variables, and if threads linking works using
784# them:
785if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
786        save_CFLAGS="$CFLAGS"
787        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
788        save_LIBS="$LIBS"
789        LIBS="$PTHREAD_LIBS $LIBS"
790        echo $ac_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS""... $ac_c" 1>&6
791echo "configure:820: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
792        cat > conftest.$ac_ext <<EOF
793#line 822 "configure"
794#include "confdefs.h"
795/* Override any gcc2 internal prototype to avoid an error.  */
796/* We use char because int might match the return type of a gcc2
797    builtin and then its argument prototype would still apply.  */
798char pthread_join();
799
800int main() {
801pthread_join()
802; return 0; }
803EOF
804if { (eval echo configure:833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
805  rm -rf conftest*
806  acx_pthread_ok=yes
807else
808  echo "configure: failed program was:" >&5
809  cat conftest.$ac_ext >&5
810fi
811rm -f conftest*
812        echo "$ac_t""$acx_pthread_ok" 1>&6
813        if test x"$acx_pthread_ok" = xno; then
814                PTHREAD_LIBS=""
815                PTHREAD_CFLAGS=""
816        fi
817        LIBS="$save_LIBS"
818        CFLAGS="$save_CFLAGS"
819fi
820
821# We must check for the threads library under a number of different
822# names; the ordering is very important because some systems
823# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
824# libraries is broken (non-POSIX).
825
826# Create a list of thread flags to try.  Items starting with a "-" are
827# C compiler flags, and other items are library names, except for "none"
828# which indicates that we try without any flags at all.
829
830acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
831
832# The ordering *is* (sometimes) important.  Some notes on the
833# individual items follow:
834
835# pthreads: AIX (must check this before -lpthread)
836# none: in case threads are in libc; should be tried before -Kthread and
837#       other compiler flags to prevent continual compiler warnings
838# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
839# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
840# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
841# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
842# -pthreads: Solaris/gcc
843# -mthreads: Mingw32/gcc, Lynx/gcc
844# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
845#      doesn't hurt to check since this sometimes defines pthreads too;
846#      also defines -D_REENTRANT)
847# pthread: Linux, etcetera
848# --thread-safe: KAI C++
849
850case "${host_cpu}-${host_os}" in
851        *solaris*)
852
853        # On Solaris (at least, for some versions), libc contains stubbed
854        # (non-functional) versions of the pthreads routines, so link-based
855        # tests will erroneously succeed.  (We need to link with -pthread or
856        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
857        # a function called by this macro, so we could check for that, but
858        # who knows whether they'll stub that too in a future libc.)  So,
859        # we'll just look for -pthreads and -lpthread first:
860
861        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
862        ;;
863esac
864
865if test x"$acx_pthread_ok" = xno; then
866for flag in $acx_pthread_flags; do
867
868        case $flag in
869                none)
870                echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
871echo "configure:900: checking whether pthreads work without any flags" >&5
872                ;;
873
874                -*)
875                echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
876echo "configure:905: checking whether pthreads work with $flag" >&5
877                PTHREAD_CFLAGS="$flag"
878                ;;
879
880                *)
881                echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
882echo "configure:911: checking for the pthreads library -l$flag" >&5
883                PTHREAD_LIBS="-l$flag"
884                ;;
885        esac
886
887        save_LIBS="$LIBS"
888        save_CFLAGS="$CFLAGS"
889        LIBS="$PTHREAD_LIBS $LIBS"
890        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
891
892        # Check for various functions.  We must include pthread.h,
893        # since some functions may be macros.  (On the Sequent, we
894        # need a special flag -Kthread to make this header compile.)
895        # We check for pthread_join because it is in -lpthread on IRIX
896        # while pthread_create is in libc.  We check for pthread_attr_init
897        # due to DEC craziness with -lpthreads.  We check for
898        # pthread_cleanup_push because it is one of the few pthread
899        # functions on Solaris that doesn't have a non-functional libc stub.
900        # We try pthread_create on general principles.
901        cat > conftest.$ac_ext <<EOF
902#line 931 "configure"
903#include "confdefs.h"
904#include <pthread.h>
905int main() {
906pthread_t th; pthread_join(th, 0);
907                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
908                     pthread_create(0,0,0,0); pthread_cleanup_pop(0); 
909; return 0; }
910EOF
911if { (eval echo configure:940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
912  rm -rf conftest*
913  acx_pthread_ok=yes
914else
915  echo "configure: failed program was:" >&5
916  cat conftest.$ac_ext >&5
917fi
918rm -f conftest*
919
920        LIBS="$save_LIBS"
921        CFLAGS="$save_CFLAGS"
922
923        echo "$ac_t""$acx_pthread_ok" 1>&6
924        if test "x$acx_pthread_ok" = xyes; then
925                break;
926        fi
927
928        PTHREAD_LIBS=""
929        PTHREAD_CFLAGS=""
930done
931fi
932
933# Various other checks:
934if test "x$acx_pthread_ok" = xyes; then
935        save_LIBS="$LIBS"
936        LIBS="$PTHREAD_LIBS $LIBS"
937        save_CFLAGS="$CFLAGS"
938        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
939
940        # Detect AIX lossage: threads are created detached by default
941        # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
942        echo $ac_n "checking for joinable pthread attribute""... $ac_c" 1>&6
943echo "configure:972: checking for joinable pthread attribute" >&5
944        cat > conftest.$ac_ext <<EOF
945#line 974 "configure"
946#include "confdefs.h"
947#include <pthread.h>
948int main() {
949int attr=PTHREAD_CREATE_JOINABLE;
950; return 0; }
951EOF
952if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
953  rm -rf conftest*
954  ok=PTHREAD_CREATE_JOINABLE
955else
956  echo "configure: failed program was:" >&5
957  cat conftest.$ac_ext >&5
958  rm -rf conftest*
959  ok=unknown
960fi
961rm -f conftest*
962        if test x"$ok" = xunknown; then
963                cat > conftest.$ac_ext <<EOF
964#line 993 "configure"
965#include "confdefs.h"
966#include <pthread.h>
967int main() {
968int attr=PTHREAD_CREATE_UNDETACHED;
969; return 0; }
970EOF
971if { (eval echo configure:1000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
972  rm -rf conftest*
973  ok=PTHREAD_CREATE_UNDETACHED
974else
975  echo "configure: failed program was:" >&5
976  cat conftest.$ac_ext >&5
977  rm -rf conftest*
978  ok=unknown
979fi
980rm -f conftest*
981        fi
982        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
983                cat >> confdefs.h <<\EOF
984#define PTHREAD_CREATE_JOINABLE $ok
985EOF
986
987        fi
988        echo "$ac_t""${ok}" 1>&6
989        if test x"$ok" = xunknown; then
990                echo "configure: warning: we do not know how to create joinable pthreads" 1>&2
991        fi
992
993        echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
994echo "configure:1023: checking if more special flags are required for pthreads" >&5
995        flag=no
996        case "${host_cpu}-${host_os}" in
997                *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
998                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
999        esac
1000        echo "$ac_t""${flag}" 1>&6
1001        if test "x$flag" != xno; then
1002                PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
1003        fi
1004
1005        LIBS="$save_LIBS"
1006        CFLAGS="$save_CFLAGS"
1007
1008        # More AIX lossage: must compile with cc_r
1009        # Extract the first word of "cc_r", so it can be a program name with args.
1010set dummy cc_r; ac_word=$2
1011echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1012echo "configure:1041: checking for $ac_word" >&5
1013if eval "test \"`echo '$''{'ac_cv_prog_PTHREAD_CC'+set}'`\" = set"; then
1014  echo $ac_n "(cached) $ac_c" 1>&6
1015else
1016  if test -n "$PTHREAD_CC"; then
1017  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
1018else
1019  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1020  ac_dummy="$PATH"
1021  for ac_dir in $ac_dummy; do
1022    test -z "$ac_dir" && ac_dir=.
1023    if test -f $ac_dir/$ac_word; then
1024      ac_cv_prog_PTHREAD_CC="cc_r"
1025      break
1026    fi
1027  done
1028  IFS="$ac_save_ifs"
1029  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
1030fi
1031fi
1032PTHREAD_CC="$ac_cv_prog_PTHREAD_CC"
1033if test -n "$PTHREAD_CC"; then
1034  echo "$ac_t""$PTHREAD_CC" 1>&6
1035else
1036  echo "$ac_t""no" 1>&6
1037fi
1038
1039else
1040        PTHREAD_CC="$CC"
1041fi
1042
1043
1044
1045
1046
1047# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
1048if test x"$acx_pthread_ok" = xyes; then
1049        cat >> confdefs.h <<\EOF
1050#define HAVE_PTHREAD 1
1051EOF
1052
1053        THRLIB="-DTHRLIB"
1054else
1055        acx_pthread_ok=no
1056        echo ;
1057        echo "ERROR :: No thread library found. Exiting...";
1058fi
1059ac_ext=c
1060# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1061ac_cpp='$CPP $CPPFLAGS'
1062ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1063ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1064cross_compiling=$ac_cv_prog_cc_cross
1065
1066
1067echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1068echo "configure:1096: checking for main in -lm" >&5
1069ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1070if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1071  echo $ac_n "(cached) $ac_c" 1>&6
1072else
1073  ac_save_LIBS="$LIBS"
1074LIBS="-lm  $LIBS"
1075cat > conftest.$ac_ext <<EOF
1076#line 1104 "configure"
1077#include "confdefs.h"
1078
1079int main() {
1080main()
1081; return 0; }
1082EOF
1083if { (eval echo configure:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1084  rm -rf conftest*
1085  eval "ac_cv_lib_$ac_lib_var=yes"
1086else
1087  echo "configure: failed program was:" >&5
1088  cat conftest.$ac_ext >&5
1089  rm -rf conftest*
1090  eval "ac_cv_lib_$ac_lib_var=no"
1091fi
1092rm -f conftest*
1093LIBS="$ac_save_LIBS"
1094
1095fi
1096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1097  echo "$ac_t""yes" 1>&6
1098    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1099    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1100  cat >> confdefs.h <<EOF
1101#define $ac_tr_lib 1
1102EOF
1103
1104  LIBS="-lm $LIBS"
1105
1106else
1107  echo "$ac_t""no" 1>&6
1108fi
1109
1110echo $ac_n "checking for main in -lposix4""... $ac_c" 1>&6
1111echo "configure:1139: checking for main in -lposix4" >&5
1112ac_lib_var=`echo posix4'_'main | sed 'y%./+-%__p_%'`
1113if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1114  echo $ac_n "(cached) $ac_c" 1>&6
1115else
1116  ac_save_LIBS="$LIBS"
1117LIBS="-lposix4  $LIBS"
1118cat > conftest.$ac_ext <<EOF
1119#line 1147 "configure"
1120#include "confdefs.h"
1121
1122int main() {
1123main()
1124; return 0; }
1125EOF
1126if { (eval echo configure:1154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1127  rm -rf conftest*
1128  eval "ac_cv_lib_$ac_lib_var=yes"
1129else
1130  echo "configure: failed program was:" >&5
1131  cat conftest.$ac_ext >&5
1132  rm -rf conftest*
1133  eval "ac_cv_lib_$ac_lib_var=no"
1134fi
1135rm -f conftest*
1136LIBS="$ac_save_LIBS"
1137
1138fi
1139if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1140  echo "$ac_t""yes" 1>&6
1141    ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1142    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1143  cat >> confdefs.h <<EOF
1144#define $ac_tr_lib 1
1145EOF
1146
1147  LIBS="-lposix4 $LIBS"
1148
1149else
1150  echo "$ac_t""no" 1>&6
1151fi
1152
1153echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1154echo "configure:1182: checking for socket in -lsocket" >&5
1155ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1156if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1157  echo $ac_n "(cached) $ac_c" 1>&6
1158else
1159  ac_save_LIBS="$LIBS"
1160LIBS="-lsocket  $LIBS"
1161cat > conftest.$ac_ext <<EOF
1162#line 1190 "configure"
1163#include "confdefs.h"
1164/* Override any gcc2 internal prototype to avoid an error.  */
1165/* We use char because int might match the return type of a gcc2
1166    builtin and then its argument prototype would still apply.  */
1167char socket();
1168
1169int main() {
1170socket()
1171; return 0; }
1172EOF
1173if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1174  rm -rf conftest*
1175  eval "ac_cv_lib_$ac_lib_var=yes"
1176else
1177  echo "configure: failed program was:" >&5
1178  cat conftest.$ac_ext >&5
1179  rm -rf conftest*
1180  eval "ac_cv_lib_$ac_lib_var=no"
1181fi
1182rm -f conftest*
1183LIBS="$ac_save_LIBS"
1184
1185fi
1186if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1187  echo "$ac_t""yes" 1>&6
1188    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1189    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1190  cat >> confdefs.h <<EOF
1191#define $ac_tr_lib 1
1192EOF
1193
1194  LIBS="-lsocket $LIBS"
1195
1196else
1197  echo "$ac_t""no" 1>&6
1198fi
1199
1200echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1201echo "configure:1229: checking for gethostbyname in -lnsl" >&5
1202ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1203if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1204  echo $ac_n "(cached) $ac_c" 1>&6
1205else
1206  ac_save_LIBS="$LIBS"
1207LIBS="-lnsl  $LIBS"
1208cat > conftest.$ac_ext <<EOF
1209#line 1237 "configure"
1210#include "confdefs.h"
1211/* Override any gcc2 internal prototype to avoid an error.  */
1212/* We use char because int might match the return type of a gcc2
1213    builtin and then its argument prototype would still apply.  */
1214char gethostbyname();
1215
1216int main() {
1217gethostbyname()
1218; return 0; }
1219EOF
1220if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1221  rm -rf conftest*
1222  eval "ac_cv_lib_$ac_lib_var=yes"
1223else
1224  echo "configure: failed program was:" >&5
1225  cat conftest.$ac_ext >&5
1226  rm -rf conftest*
1227  eval "ac_cv_lib_$ac_lib_var=no"
1228fi
1229rm -f conftest*
1230LIBS="$ac_save_LIBS"
1231
1232fi
1233if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1234  echo "$ac_t""yes" 1>&6
1235    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1236    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1237  cat >> confdefs.h <<EOF
1238#define $ac_tr_lib 1
1239EOF
1240
1241  LIBS="-lnsl $LIBS"
1242
1243else
1244  echo "$ac_t""no" 1>&6
1245fi
1246
1247
1248echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1249echo "configure:1277: checking how to run the C preprocessor" >&5
1250# On Suns, sometimes $CPP names a directory.
1251if test -n "$CPP" && test -d "$CPP"; then
1252  CPP=
1253fi
1254if test -z "$CPP"; then
1255if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1256  echo $ac_n "(cached) $ac_c" 1>&6
1257else
1258    # This must be in double quotes, not single quotes, because CPP may get
1259  # substituted into the Makefile and "${CC-cc}" will confuse make.
1260  CPP="${CC-cc} -E"
1261  # On the NeXT, cc -E runs the code through the compiler's parser,
1262  # not just through cpp.
1263  cat > conftest.$ac_ext <<EOF
1264#line 1292 "configure"
1265#include "confdefs.h"
1266#include <assert.h>
1267Syntax Error
1268EOF
1269ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1270{ (eval echo configure:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1271ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1272if test -z "$ac_err"; then
1273  :
1274else
1275  echo "$ac_err" >&5
1276  echo "configure: failed program was:" >&5
1277  cat conftest.$ac_ext >&5
1278  rm -rf conftest*
1279  CPP="${CC-cc} -E -traditional-cpp"
1280  cat > conftest.$ac_ext <<EOF
1281#line 1309 "configure"
1282#include "confdefs.h"
1283#include <assert.h>
1284Syntax Error
1285EOF
1286ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1287{ (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1288ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1289if test -z "$ac_err"; then
1290  :
1291else
1292  echo "$ac_err" >&5
1293  echo "configure: failed program was:" >&5
1294  cat conftest.$ac_ext >&5
1295  rm -rf conftest*
1296  CPP="${CC-cc} -nologo -E"
1297  cat > conftest.$ac_ext <<EOF
1298#line 1326 "configure"
1299#include "confdefs.h"
1300#include <assert.h>
1301Syntax Error
1302EOF
1303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1304{ (eval echo configure:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1306if test -z "$ac_err"; then
1307  :
1308else
1309  echo "$ac_err" >&5
1310  echo "configure: failed program was:" >&5
1311  cat conftest.$ac_ext >&5
1312  rm -rf conftest*
1313  CPP=/lib/cpp
1314fi
1315rm -f conftest*
1316fi
1317rm -f conftest*
1318fi
1319rm -f conftest*
1320  ac_cv_prog_CPP="$CPP"
1321fi
1322  CPP="$ac_cv_prog_CPP"
1323else
1324  ac_cv_prog_CPP="$CPP"
1325fi
1326echo "$ac_t""$CPP" 1>&6
1327
1328echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1329echo "configure:1357: checking for ANSI C header files" >&5
1330if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1331  echo $ac_n "(cached) $ac_c" 1>&6
1332else
1333  cat > conftest.$ac_ext <<EOF
1334#line 1362 "configure"
1335#include "confdefs.h"
1336#include <stdlib.h>
1337#include <stdarg.h>
1338#include <string.h>
1339#include <float.h>
1340EOF
1341ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1342{ (eval echo configure:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1343ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1344if test -z "$ac_err"; then
1345  rm -rf conftest*
1346  ac_cv_header_stdc=yes
1347else
1348  echo "$ac_err" >&5
1349  echo "configure: failed program was:" >&5
1350  cat conftest.$ac_ext >&5
1351  rm -rf conftest*
1352  ac_cv_header_stdc=no
1353fi
1354rm -f conftest*
1355
1356if test $ac_cv_header_stdc = yes; then
1357  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1358cat > conftest.$ac_ext <<EOF
1359#line 1387 "configure"
1360#include "confdefs.h"
1361#include <string.h>
1362EOF
1363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1364  egrep "memchr" >/dev/null 2>&1; then
1365  :
1366else
1367  rm -rf conftest*
1368  ac_cv_header_stdc=no
1369fi
1370rm -f conftest*
1371
1372fi
1373
1374if test $ac_cv_header_stdc = yes; then
1375  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1376cat > conftest.$ac_ext <<EOF
1377#line 1405 "configure"
1378#include "confdefs.h"
1379#include <stdlib.h>
1380EOF
1381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1382  egrep "free" >/dev/null 2>&1; then
1383  :
1384else
1385  rm -rf conftest*
1386  ac_cv_header_stdc=no
1387fi
1388rm -f conftest*
1389
1390fi
1391
1392if test $ac_cv_header_stdc = yes; then
1393  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1394if test "$cross_compiling" = yes; then
1395  :
1396else
1397  cat > conftest.$ac_ext <<EOF
1398#line 1426 "configure"
1399#include "confdefs.h"
1400#include <ctype.h>
1401#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1402#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1403#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1404int main () { int i; for (i = 0; i < 256; i++)
1405if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1406exit (0); }
1407
1408EOF
1409if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1410then
1411  :
1412else
1413  echo "configure: failed program was:" >&5
1414  cat conftest.$ac_ext >&5
1415  rm -fr conftest*
1416  ac_cv_header_stdc=no
1417fi
1418rm -fr conftest*
1419fi
1420
1421fi
1422fi
1423
1424echo "$ac_t""$ac_cv_header_stdc" 1>&6
1425if test $ac_cv_header_stdc = yes; then
1426  cat >> confdefs.h <<\EOF
1427#define STDC_HEADERS 1
1428EOF
1429
1430fi
1431
1432for ac_hdr in fcntl.h strings.h sys/time.h unistd.h
1433do
1434ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1435echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1436echo "configure:1464: checking for $ac_hdr" >&5
1437if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1438  echo $ac_n "(cached) $ac_c" 1>&6
1439else
1440  cat > conftest.$ac_ext <<EOF
1441#line 1469 "configure"
1442#include "confdefs.h"
1443#include <$ac_hdr>
1444EOF
1445ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1446{ (eval echo configure:1474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1447ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1448if test -z "$ac_err"; then
1449  rm -rf conftest*
1450  eval "ac_cv_header_$ac_safe=yes"
1451else
1452  echo "$ac_err" >&5
1453  echo "configure: failed program was:" >&5
1454  cat conftest.$ac_ext >&5
1455  rm -rf conftest*
1456  eval "ac_cv_header_$ac_safe=no"
1457fi
1458rm -f conftest*
1459fi
1460if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1461  echo "$ac_t""yes" 1>&6
1462    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1463  cat >> confdefs.h <<EOF
1464#define $ac_tr_hdr 1
1465EOF
1466
1467else
1468  echo "$ac_t""no" 1>&6
1469fi
1470done
1471
1472
1473echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1474echo "configure:1502: checking whether time.h and sys/time.h may both be included" >&5
1475if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1476  echo $ac_n "(cached) $ac_c" 1>&6
1477else
1478  cat > conftest.$ac_ext <<EOF
1479#line 1507 "configure"
1480#include "confdefs.h"
1481#include <sys/types.h>
1482#include <sys/time.h>
1483#include <time.h>
1484int main() {
1485struct tm *tp;
1486; return 0; }
1487EOF
1488if { (eval echo configure:1516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1489  rm -rf conftest*
1490  ac_cv_header_time=yes
1491else
1492  echo "configure: failed program was:" >&5
1493  cat conftest.$ac_ext >&5
1494  rm -rf conftest*
1495  ac_cv_header_time=no
1496fi
1497rm -f conftest*
1498fi
1499
1500echo "$ac_t""$ac_cv_header_time" 1>&6
1501if test $ac_cv_header_time = yes; then
1502  cat >> confdefs.h <<\EOF
1503#define TIME_WITH_SYS_TIME 1
1504EOF
1505
1506fi
1507
1508echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1509echo "configure:1537: checking whether struct tm is in sys/time.h or time.h" >&5
1510if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1511  echo $ac_n "(cached) $ac_c" 1>&6
1512else
1513  cat > conftest.$ac_ext <<EOF
1514#line 1542 "configure"
1515#include "confdefs.h"
1516#include <sys/types.h>
1517#include <time.h>
1518int main() {
1519struct tm *tp; tp->tm_sec;
1520; return 0; }
1521EOF
1522if { (eval echo configure:1550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1523  rm -rf conftest*
1524  ac_cv_struct_tm=time.h
1525else
1526  echo "configure: failed program was:" >&5
1527  cat conftest.$ac_ext >&5
1528  rm -rf conftest*
1529  ac_cv_struct_tm=sys/time.h
1530fi
1531rm -f conftest*
1532fi
1533
1534echo "$ac_t""$ac_cv_struct_tm" 1>&6
1535if test $ac_cv_struct_tm = sys/time.h; then
1536  cat >> confdefs.h <<\EOF
1537#define TM_IN_SYS_TIME 1
1538EOF
1539
1540fi
1541
1542echo $ac_n "checking size of int""... $ac_c" 1>&6
1543echo "configure:1572: checking size of int" >&5
1544if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1545  echo $ac_n "(cached) $ac_c" 1>&6
1546else
1547  if test "$cross_compiling" = yes; then
1548    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1549else
1550  cat > conftest.$ac_ext <<EOF
1551#line 1580 "configure"
1552#include "confdefs.h"
1553#include <stdio.h>
1554int main()
1555{
1556  FILE *f=fopen("conftestval", "w");
1557  if (!f) return(1);
1558  fprintf(f, "%d\n", sizeof(int));
1559  return(0);
1560}
1561EOF
1562if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1563then
1564  ac_cv_sizeof_int=`cat conftestval`
1565else
1566  echo "configure: failed program was:" >&5
1567  cat conftest.$ac_ext >&5
1568  rm -fr conftest*
1569  ac_cv_sizeof_int=0
1570fi
1571rm -fr conftest*
1572fi
1573
1574fi
1575echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1576cat >> confdefs.h <<EOF
1577#define SIZEOF_INT $ac_cv_sizeof_int
1578EOF
1579
1580
1581echo $ac_n "checking size of long""... $ac_c" 1>&6
1582echo "configure:1611: checking size of long" >&5
1583if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1584  echo $ac_n "(cached) $ac_c" 1>&6
1585else
1586  if test "$cross_compiling" = yes; then
1587    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1588else
1589  cat > conftest.$ac_ext <<EOF
1590#line 1619 "configure"
1591#include "confdefs.h"
1592#include <stdio.h>
1593int main()
1594{
1595  FILE *f=fopen("conftestval", "w");
1596  if (!f) return(1);
1597  fprintf(f, "%d\n", sizeof(long));
1598  return(0);
1599}
1600EOF
1601if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1602then
1603  ac_cv_sizeof_long=`cat conftestval`
1604else
1605  echo "configure: failed program was:" >&5
1606  cat conftest.$ac_ext >&5
1607  rm -fr conftest*
1608  ac_cv_sizeof_long=0
1609fi
1610rm -fr conftest*
1611fi
1612
1613fi
1614echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1615cat >> confdefs.h <<EOF
1616#define SIZEOF_LONG $ac_cv_sizeof_long
1617EOF
1618
1619
1620
1621
1622echo $ac_n "checking for strftime""... $ac_c" 1>&6
1623echo "configure:1572: checking for strftime" >&5
1624if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
1625  echo $ac_n "(cached) $ac_c" 1>&6
1626else
1627  cat > conftest.$ac_ext <<EOF
1628#line 1577 "configure"
1629#include "confdefs.h"
1630/* System header to define __stub macros and hopefully few prototypes,
1631    which can conflict with char strftime(); below.  */
1632#include <assert.h>
1633/* Override any gcc2 internal prototype to avoid an error.  */
1634/* We use char because int might match the return type of a gcc2
1635    builtin and then its argument prototype would still apply.  */
1636char strftime();
1637
1638int main() {
1639
1640/* The GNU C library defines this for functions which it implements
1641    to always fail with ENOSYS.  Some functions are actually named
1642    something starting with __ and the normal name is an alias.  */
1643#if defined (__stub_strftime) || defined (__stub___strftime)
1644choke me
1645#else
1646strftime();
1647#endif
1648
1649; return 0; }
1650EOF
1651if { (eval echo configure:1600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1652  rm -rf conftest*
1653  eval "ac_cv_func_strftime=yes"
1654else
1655  echo "configure: failed program was:" >&5
1656  cat conftest.$ac_ext >&5
1657  rm -rf conftest*
1658  eval "ac_cv_func_strftime=no"
1659fi
1660rm -f conftest*
1661fi
1662
1663if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
1664  echo "$ac_t""yes" 1>&6
1665  cat >> confdefs.h <<\EOF
1666#define HAVE_STRFTIME 1
1667EOF
1668
1669else
1670  echo "$ac_t""no" 1>&6
1671# strftime is in -lintl on SCO UNIX.
1672echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
1673echo "configure:1622: checking for strftime in -lintl" >&5
1674ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
1675if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1676  echo $ac_n "(cached) $ac_c" 1>&6
1677else
1678  ac_save_LIBS="$LIBS"
1679LIBS="-lintl  $LIBS"
1680cat > conftest.$ac_ext <<EOF
1681#line 1630 "configure"
1682#include "confdefs.h"
1683/* Override any gcc2 internal prototype to avoid an error.  */
1684/* We use char because int might match the return type of a gcc2
1685    builtin and then its argument prototype would still apply.  */
1686char strftime();
1687
1688int main() {
1689strftime()
1690; return 0; }
1691EOF
1692if { (eval echo configure:1641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1693  rm -rf conftest*
1694  eval "ac_cv_lib_$ac_lib_var=yes"
1695else
1696  echo "configure: failed program was:" >&5
1697  cat conftest.$ac_ext >&5
1698  rm -rf conftest*
1699  eval "ac_cv_lib_$ac_lib_var=no"
1700fi
1701rm -f conftest*
1702LIBS="$ac_save_LIBS"
1703
1704fi
1705if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1706  echo "$ac_t""yes" 1>&6
1707  cat >> confdefs.h <<\EOF
1708#define HAVE_STRFTIME 1
1709EOF
1710
1711LIBS="-lintl $LIBS"
1712else
1713  echo "$ac_t""no" 1>&6
1714fi
1715
1716fi
1717
1718for ac_func in gethostname gettimeofday socket
1719do
1720echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1721echo "configure:1670: checking for $ac_func" >&5
1722if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1723  echo $ac_n "(cached) $ac_c" 1>&6
1724else
1725  cat > conftest.$ac_ext <<EOF
1726#line 1675 "configure"
1727#include "confdefs.h"
1728/* System header to define __stub macros and hopefully few prototypes,
1729    which can conflict with char $ac_func(); below.  */
1730#include <assert.h>
1731/* Override any gcc2 internal prototype to avoid an error.  */
1732/* We use char because int might match the return type of a gcc2
1733    builtin and then its argument prototype would still apply.  */
1734char $ac_func();
1735
1736int main() {
1737
1738/* The GNU C library defines this for functions which it implements
1739    to always fail with ENOSYS.  Some functions are actually named
1740    something starting with __ and the normal name is an alias.  */
1741#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1742choke me
1743#else
1744$ac_func();
1745#endif
1746
1747; return 0; }
1748EOF
1749if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1750  rm -rf conftest*
1751  eval "ac_cv_func_$ac_func=yes"
1752else
1753  echo "configure: failed program was:" >&5
1754  cat conftest.$ac_ext >&5
1755  rm -rf conftest*
1756  eval "ac_cv_func_$ac_func=no"
1757fi
1758rm -f conftest*
1759fi
1760
1761if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1762  echo "$ac_t""yes" 1>&6
1763    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1764  cat >> confdefs.h <<EOF
1765#define $ac_tr_func 1
1766EOF
1767
1768else
1769  echo "$ac_t""no" 1>&6
1770fi
1771done
1772
1773trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1774
1775test "x$prefix" = xNONE && prefix=$ac_default_prefix
1776# Let make expand exec_prefix.
1777test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1778
1779# Any assignment to VPATH causes Sun make to only execute
1780# the first set of double-colon rules, so remove it if not needed.
1781# If there is a colon in the path, we need to keep it.
1782if test "x$srcdir" = x.; then
1783  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
1784fi
1785
1786trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1787
1788# Transform confdefs.h into DEFS.
1789# Protect against shell expansion while executing Makefile rules.
1790# Protect against Makefile macro expansion.
1791cat > conftest.defs <<\EOF
1792s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1793s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
1794s%\[%\\&%g
1795s%\]%\\&%g
1796s%\$%$$%g
1797EOF
1798DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1799rm -f conftest.defs
1800
1801
1802# Without the "./", some shells look in PATH for config.status.
1803: ${CONFIG_STATUS=./config.status}
1804
1805echo creating $CONFIG_STATUS
1806rm -f $CONFIG_STATUS
1807cat > $CONFIG_STATUS <<EOF
1808#! /bin/sh
1809# Generated automatically by configure.
1810# Run this file to recreate the current configuration.
1811# This directory was configured as follows,
1812# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1813#
1814# $0 $ac_configure_args
1815#
1816# Compiler output produced by configure, useful for debugging
1817# configure, is in ./config.log if it exists.
1818
1819ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1820for ac_option
1821do
1822  case "\$ac_option" in
1823  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1824    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1825    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1826  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1827    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1828    exit 0 ;;
1829  -help | --help | --hel | --he | --h)
1830    echo "\$ac_cs_usage"; exit 0 ;;
1831  *) echo "\$ac_cs_usage"; exit 1 ;;
1832  esac
1833done
1834
1835ac_given_srcdir=$srcdir
1836
1837trap 'rm -fr `echo "makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1838EOF
1839cat >> $CONFIG_STATUS <<EOF
1840
1841# Protect against being on the right side of a sed subst in config.status.
1842sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1843 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1844$ac_vpsub
1845$extrasub
1846s%@SHELL@%$SHELL%g
1847s%@CFLAGS@%$CFLAGS%g
1848s%@CPPFLAGS@%$CPPFLAGS%g
1849s%@CXXFLAGS@%$CXXFLAGS%g
1850s%@FFLAGS@%$FFLAGS%g
1851s%@DEFS@%$DEFS%g
1852s%@LDFLAGS@%$LDFLAGS%g
1853s%@LIBS@%$LIBS%g
1854s%@exec_prefix@%$exec_prefix%g
1855s%@prefix@%$prefix%g
1856s%@program_transform_name@%$program_transform_name%g
1857s%@bindir@%$bindir%g
1858s%@sbindir@%$sbindir%g
1859s%@libexecdir@%$libexecdir%g
1860s%@datadir@%$datadir%g
1861s%@sysconfdir@%$sysconfdir%g
1862s%@sharedstatedir@%$sharedstatedir%g
1863s%@localstatedir@%$localstatedir%g
1864s%@libdir@%$libdir%g
1865s%@includedir@%$includedir%g
1866s%@oldincludedir@%$oldincludedir%g
1867s%@infodir@%$infodir%g
1868s%@mandir@%$mandir%g
1869s%@CC@%$CC%g
1870s%@host@%$host%g
1871s%@host_alias@%$host_alias%g
1872s%@host_cpu@%$host_cpu%g
1873s%@host_vendor@%$host_vendor%g
1874s%@host_os@%$host_os%g
1875s%@PTHREAD_CC@%$PTHREAD_CC%g
1876s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
1877s%@PTHREAD_CFLAGS@%$PTHREAD_CFLAGS%g
1878s%@CPP@%$CPP%g
1879s%@SIZEOF_LONG@%$SIZEOF_LONG%g
1880s%@SIZEOF_INT@%$SIZEOF_INT%g
1881s%@THRLIB@%$THRLIB%g
1882
1883CEOF
1884EOF
1885
1886cat >> $CONFIG_STATUS <<\EOF
1887
1888# Split the substitutions into bite-sized pieces for seds with
1889# small command number limits, like on Digital OSF/1 and HP-UX.
1890ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1891ac_file=1 # Number of current file.
1892ac_beg=1 # First line for current file.
1893ac_end=$ac_max_sed_cmds # Line after last line for current file.
1894ac_more_lines=:
1895ac_sed_cmds=""
1896while $ac_more_lines; do
1897  if test $ac_beg -gt 1; then
1898    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1899  else
1900    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1901  fi
1902  if test ! -s conftest.s$ac_file; then
1903    ac_more_lines=false
1904    rm -f conftest.s$ac_file
1905  else
1906    if test -z "$ac_sed_cmds"; then
1907      ac_sed_cmds="sed -f conftest.s$ac_file"
1908    else
1909      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1910    fi
1911    ac_file=`expr $ac_file + 1`
1912    ac_beg=$ac_end
1913    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1914  fi
1915done
1916if test -z "$ac_sed_cmds"; then
1917  ac_sed_cmds=cat
1918fi
1919EOF
1920
1921cat >> $CONFIG_STATUS <<EOF
1922
1923CONFIG_FILES=\${CONFIG_FILES-"makefile"}
1924EOF
1925cat >> $CONFIG_STATUS <<\EOF
1926for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1927  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1928  case "$ac_file" in
1929  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1930       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1931  *) ac_file_in="${ac_file}.in" ;;
1932  esac
1933
1934  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1935
1936  # Remove last slash and all that follows it.  Not all systems have dirname.
1937  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1938  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1939    # The file is in a subdirectory.
1940    test ! -d "$ac_dir" && mkdir "$ac_dir"
1941    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1942    # A "../" for each directory in $ac_dir_suffix.
1943    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1944  else
1945    ac_dir_suffix= ac_dots=
1946  fi
1947
1948  case "$ac_given_srcdir" in
1949  .)  srcdir=.
1950      if test -z "$ac_dots"; then top_srcdir=.
1951      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1952  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1953  *) # Relative path.
1954    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1955    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1956  esac
1957
1958
1959  echo creating "$ac_file"
1960  rm -f "$ac_file"
1961  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1962  case "$ac_file" in
1963  *Makefile*) ac_comsub="1i\\
1964# $configure_input" ;;
1965  *) ac_comsub= ;;
1966  esac
1967
1968  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1969  sed -e "$ac_comsub
1970s%@configure_input@%$configure_input%g
1971s%@srcdir@%$srcdir%g
1972s%@top_srcdir@%$top_srcdir%g
1973" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1974fi; done
1975rm -f conftest.s*
1976
1977EOF
1978cat >> $CONFIG_STATUS <<EOF
1979
1980EOF
1981cat >> $CONFIG_STATUS <<\EOF
1982
1983exit 0
1984EOF
1985chmod +x $CONFIG_STATUS
1986rm -fr confdefs* $ac_clean_files
1987test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1988
1989