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