chiark / gitweb /
final tidyings for 1.0.5
[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 vsnprintf
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 <sys/types.h>
1158 #include <sys/wait.h>
1159 #ifdef WCOREDUMP
1160  yes
1161 #endif
1162
1163 EOF
1164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1165   egrep "yes" >/dev/null 2>&1; then
1166   rm -rf conftest*
1167   userv_cv_hdr_wcoredump=yes
1168 else
1169   rm -rf conftest*
1170   userv_cv_hdr_wcoredump=no
1171 fi
1172 rm -f conftest*
1173
1174 fi
1175
1176 echo "$ac_t""$userv_cv_hdr_wcoredump" 1>&6
1177 if test $userv_cv_hdr_wcoredump = yes
1178 then
1179         cat >> confdefs.h <<\EOF
1180 #define HAVE_WCOREDUMP 1
1181 EOF
1182
1183 fi
1184
1185
1186 if test "${GCC-no}" = yes; then
1187  OPTIMISE=-O2
1188 else
1189  OPTIMISE=-O
1190 fi
1191
1192
1193
1194
1195  echo $ac_n "checking your C compiler""... $ac_c" 1>&6
1196 echo "configure:1197: checking your C compiler" >&5
1197  if eval "test \"`echo '$''{'dpkg_cv_c_works'+set}'`\" = set"; then
1198   echo $ac_n "(cached) $ac_c" 1>&6
1199 else
1200   
1201   cat > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1204 #include <string.h>
1205 int main() {
1206 strcmp("a","b")
1207 ; return 0; }
1208 EOF
1209 if { (eval echo configure:1210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1210   rm -rf conftest*
1211   dpkg_cv_c_works=yes
1212 else
1213   echo "configure: failed program was:" >&5
1214   cat conftest.$ac_ext >&5
1215   rm -rf conftest*
1216   dpkg_cv_c_works=no
1217 fi
1218 rm -f conftest*
1219  
1220 fi
1221
1222  if test "x$dpkg_cv_c_works" = xyes; then
1223   true
1224   echo "$ac_t""works" 1>&6
1225  else
1226   true
1227   echo "$ac_t""broken" 1>&6
1228  { echo "configure: error: C compiler is broken" 1>&2; exit 1; }
1229  fi
1230
1231
1232
1233  echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6
1234 echo "configure:1235: checking __attribute__((,,))" >&5
1235  if eval "test \"`echo '$''{'dpkg_cv_c_attribute_supported'+set}'`\" = set"; then
1236   echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238   
1239   cat > conftest.$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1242
1243 int main() {
1244 extern int testfunction(int x) __attribute__((,,))
1245 ; return 0; }
1246 EOF
1247 if { (eval echo configure:1248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1248   rm -rf conftest*
1249   dpkg_cv_c_attribute_supported=yes
1250 else
1251   echo "configure: failed program was:" >&5
1252   cat conftest.$ac_ext >&5
1253   rm -rf conftest*
1254   dpkg_cv_c_attribute_supported=no
1255 fi
1256 rm -f conftest*
1257  
1258 fi
1259
1260  if test "x$dpkg_cv_c_attribute_supported" = xyes; then
1261   true
1262   echo "$ac_t""yes" 1>&6
1263  cat >> confdefs.h <<\EOF
1264 #define HAVE_GNUC25_ATTRIB 1
1265 EOF
1266
1267   
1268  echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6
1269 echo "configure:1270: checking __attribute__((noreturn))" >&5
1270  if eval "test \"`echo '$''{'dpkg_cv_c_attribute_noreturn'+set}'`\" = set"; then
1271   echo $ac_n "(cached) $ac_c" 1>&6
1272 else
1273   
1274   cat > conftest.$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1277
1278 int main() {
1279 extern int testfunction(int x) __attribute__((noreturn))
1280 ; return 0; }
1281 EOF
1282 if { (eval echo configure:1283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1283   rm -rf conftest*
1284   dpkg_cv_c_attribute_noreturn=yes
1285 else
1286   echo "configure: failed program was:" >&5
1287   cat conftest.$ac_ext >&5
1288   rm -rf conftest*
1289   dpkg_cv_c_attribute_noreturn=no
1290 fi
1291 rm -f conftest*
1292  
1293 fi
1294
1295  if test "x$dpkg_cv_c_attribute_noreturn" = xyes; then
1296   true
1297   echo "$ac_t""yes" 1>&6
1298    cat >> confdefs.h <<\EOF
1299 #define HAVE_GNUC25_NORETURN 1
1300 EOF
1301
1302  else
1303   true
1304   echo "$ac_t""no" 1>&6
1305  fi
1306
1307   
1308  echo $ac_n "checking __attribute__((unused))""... $ac_c" 1>&6
1309 echo "configure:1310: checking __attribute__((unused))" >&5
1310  if eval "test \"`echo '$''{'dpkg_cv_c_attribute_unused'+set}'`\" = set"; then
1311   echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313   
1314   cat > conftest.$ac_ext <<EOF
1315 #line 1316 "configure"
1316 #include "confdefs.h"
1317
1318 int main() {
1319 extern int testfunction(int x) __attribute__((unused))
1320 ; return 0; }
1321 EOF
1322 if { (eval echo configure:1323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1323   rm -rf conftest*
1324   dpkg_cv_c_attribute_unused=yes
1325 else
1326   echo "configure: failed program was:" >&5
1327   cat conftest.$ac_ext >&5
1328   rm -rf conftest*
1329   dpkg_cv_c_attribute_unused=no
1330 fi
1331 rm -f conftest*
1332  
1333 fi
1334
1335  if test "x$dpkg_cv_c_attribute_unused" = xyes; then
1336   true
1337   echo "$ac_t""yes" 1>&6
1338    cat >> confdefs.h <<\EOF
1339 #define HAVE_GNUC25_UNUSED 1
1340 EOF
1341
1342  else
1343   true
1344   echo "$ac_t""no" 1>&6
1345  fi
1346
1347   
1348  echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6
1349 echo "configure:1350: checking __attribute__((format...))" >&5
1350  if eval "test \"`echo '$''{'dpkg_cv_attribute_format'+set}'`\" = set"; then
1351   echo $ac_n "(cached) $ac_c" 1>&6
1352 else
1353   
1354   cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357
1358 int main() {
1359 extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))
1360 ; return 0; }
1361 EOF
1362 if { (eval echo configure:1363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1363   rm -rf conftest*
1364   dpkg_cv_attribute_format=yes
1365 else
1366   echo "configure: failed program was:" >&5
1367   cat conftest.$ac_ext >&5
1368   rm -rf conftest*
1369   dpkg_cv_attribute_format=no
1370 fi
1371 rm -f conftest*
1372  
1373 fi
1374
1375  if test "x$dpkg_cv_attribute_format" = xyes; then
1376   true
1377   echo "$ac_t""yes" 1>&6
1378    cat >> confdefs.h <<\EOF
1379 #define HAVE_GNUC25_PRINTFFORMAT 1
1380 EOF
1381
1382  else
1383   true
1384   echo "$ac_t""no" 1>&6
1385  fi
1386
1387  else
1388   true
1389   echo "$ac_t""no" 1>&6
1390  fi
1391
1392
1393
1394 CWARNS=""
1395
1396
1397
1398
1399  echo $ac_n "checking GCC warning flag(s) -Wall -Wno-implicit""... $ac_c" 1>&6
1400 echo "configure:1401: checking GCC warning flag(s) -Wall -Wno-implicit" >&5
1401  if test "${GCC-no}" = yes
1402  then
1403   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_all'+set}'`\" = set"; then
1404   echo $ac_n "(cached) $ac_c" 1>&6
1405 else
1406   
1407    oldcflags="${CFLAGS-}"
1408    CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Wno-implicit -Werror"
1409    cat > conftest.$ac_ext <<EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1412
1413 #include <string.h>
1414 #include <stdio.h>
1415
1416 int main() {
1417
1418     strcmp("a","b"); fprintf(stdout,"test ok\n");
1419
1420 ; return 0; }
1421 EOF
1422 if { (eval echo configure:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1423   rm -rf conftest*
1424   dpkg_cv_c_gcc_warn_all=yes
1425 else
1426   echo "configure: failed program was:" >&5
1427   cat conftest.$ac_ext >&5
1428   rm -rf conftest*
1429   dpkg_cv_c_gcc_warn_all=no
1430 fi
1431 rm -f conftest*
1432    CFLAGS="${oldcflags}"
1433 fi
1434
1435   if test "x$dpkg_cv_c_gcc_warn_all" = xyes; then
1436    CWARNS="${CWARNS} -Wall -Wno-implicit"
1437    echo "$ac_t""ok" 1>&6
1438   else
1439    dpkg_cv_c_gcc_warn_all=''
1440    echo "$ac_t""no" 1>&6
1441   fi
1442  else
1443   echo "$ac_t""no" 1>&6
1444  fi
1445
1446
1447  echo $ac_n "checking GCC warning flag(s) -Wwrite-strings""... $ac_c" 1>&6
1448 echo "configure:1449: checking GCC warning flag(s) -Wwrite-strings" >&5
1449  if test "${GCC-no}" = yes
1450  then
1451   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_writestrings'+set}'`\" = set"; then
1452   echo $ac_n "(cached) $ac_c" 1>&6
1453 else
1454   
1455    oldcflags="${CFLAGS-}"
1456    CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
1457    cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460
1461 #include <string.h>
1462 #include <stdio.h>
1463
1464 int main() {
1465
1466     strcmp("a","b"); fprintf(stdout,"test ok\n");
1467
1468 ; return 0; }
1469 EOF
1470 if { (eval echo configure:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1471   rm -rf conftest*
1472   dpkg_cv_c_gcc_warn_writestrings=yes
1473 else
1474   echo "configure: failed program was:" >&5
1475   cat conftest.$ac_ext >&5
1476   rm -rf conftest*
1477   dpkg_cv_c_gcc_warn_writestrings=no
1478 fi
1479 rm -f conftest*
1480    CFLAGS="${oldcflags}"
1481 fi
1482
1483   if test "x$dpkg_cv_c_gcc_warn_writestrings" = xyes; then
1484    CWARNS="${CWARNS} -Wwrite-strings"
1485    echo "$ac_t""ok" 1>&6
1486   else
1487    dpkg_cv_c_gcc_warn_writestrings=''
1488    echo "$ac_t""no" 1>&6
1489   fi
1490  else
1491   echo "$ac_t""no" 1>&6
1492  fi
1493
1494
1495  echo $ac_n "checking GCC warning flag(s) -Wpointer-arith""... $ac_c" 1>&6
1496 echo "configure:1497: checking GCC warning flag(s) -Wpointer-arith" >&5
1497  if test "${GCC-no}" = yes
1498  then
1499   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_pointerarith'+set}'`\" = set"; then
1500   echo $ac_n "(cached) $ac_c" 1>&6
1501 else
1502   
1503    oldcflags="${CFLAGS-}"
1504    CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
1505    cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508
1509 #include <string.h>
1510 #include <stdio.h>
1511
1512 int main() {
1513
1514     strcmp("a","b"); fprintf(stdout,"test ok\n");
1515
1516 ; return 0; }
1517 EOF
1518 if { (eval echo configure:1519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1519   rm -rf conftest*
1520   dpkg_cv_c_gcc_warn_pointerarith=yes
1521 else
1522   echo "configure: failed program was:" >&5
1523   cat conftest.$ac_ext >&5
1524   rm -rf conftest*
1525   dpkg_cv_c_gcc_warn_pointerarith=no
1526 fi
1527 rm -f conftest*
1528    CFLAGS="${oldcflags}"
1529 fi
1530
1531   if test "x$dpkg_cv_c_gcc_warn_pointerarith" = xyes; then
1532    CWARNS="${CWARNS} -Wpointer-arith"
1533    echo "$ac_t""ok" 1>&6
1534   else
1535    dpkg_cv_c_gcc_warn_pointerarith=''
1536    echo "$ac_t""no" 1>&6
1537   fi
1538  else
1539   echo "$ac_t""no" 1>&6
1540  fi
1541
1542
1543  echo $ac_n "checking GCC warning flag(s) -Wimplicit -Wnested-externs""... $ac_c" 1>&6
1544 echo "configure:1545: checking GCC warning flag(s) -Wimplicit -Wnested-externs" >&5
1545  if test "${GCC-no}" = yes
1546  then
1547   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_implicit'+set}'`\" = set"; then
1548   echo $ac_n "(cached) $ac_c" 1>&6
1549 else
1550   
1551    oldcflags="${CFLAGS-}"
1552    CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
1553    cat > conftest.$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1556
1557 #include <string.h>
1558 #include <stdio.h>
1559
1560 int main() {
1561
1562     strcmp("a","b"); fprintf(stdout,"test ok\n");
1563
1564 ; return 0; }
1565 EOF
1566 if { (eval echo configure:1567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1567   rm -rf conftest*
1568   dpkg_cv_c_gcc_warn_implicit=yes
1569 else
1570   echo "configure: failed program was:" >&5
1571   cat conftest.$ac_ext >&5
1572   rm -rf conftest*
1573   dpkg_cv_c_gcc_warn_implicit=no
1574 fi
1575 rm -f conftest*
1576    CFLAGS="${oldcflags}"
1577 fi
1578
1579   if test "x$dpkg_cv_c_gcc_warn_implicit" = xyes; then
1580    CWARNS="${CWARNS} -Wimplicit -Wnested-externs"
1581    echo "$ac_t""ok" 1>&6
1582   else
1583    dpkg_cv_c_gcc_warn_implicit=''
1584    echo "$ac_t""no" 1>&6
1585   fi
1586  else
1587   echo "$ac_t""no" 1>&6
1588  fi
1589
1590
1591 if test "${GCC-no}" = yes; then
1592  CWARNS="${CWARNS} -Wmissing-prototypes -Wstrict-prototypes"
1593 fi
1594 CFLAGS="`echo $CFLAGS $CWARNS | sed -e 's/-O[0-9]*/$(OPTIMISE)/'`"
1595
1596
1597 VERSION="`sed -n '/^userv (.*)/!d; s/^userv (//; s/).*//; p; q' debian/changelog`"
1598 echo will build version $VERSION
1599
1600 trap '' 1 2 15
1601 cat > confcache <<\EOF
1602 # This file is a shell script that caches the results of configure
1603 # tests run on this system so they can be shared between configure
1604 # scripts and configure runs.  It is not useful on other systems.
1605 # If it contains results you don't want to keep, you may remove or edit it.
1606 #
1607 # By default, configure uses ./config.cache as the cache file,
1608 # creating it if it does not exist already.  You can give configure
1609 # the --cache-file=FILE option to use a different cache file; that is
1610 # what configure does when it calls configure scripts in
1611 # subdirectories, so they share the cache.
1612 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1613 # config.status only pays attention to the cache file if you give it the
1614 # --recheck option to rerun configure.
1615 #
1616 EOF
1617 # The following way of writing the cache mishandles newlines in values,
1618 # but we know of no workaround that is simple, portable, and efficient.
1619 # So, don't put newlines in cache variables' values.
1620 # Ultrix sh set writes to stderr and can't be redirected directly,
1621 # and sets the high bit in the cache file unless we assign to the vars.
1622 (set) 2>&1 |
1623   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1624   *ac_space=\ *)
1625     # `set' does not quote correctly, so add quotes (double-quote substitution
1626     # turns \\\\ into \\, and sed turns \\ into \).
1627     sed -n \
1628       -e "s/'/'\\\\''/g" \
1629       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1630     ;;
1631   *)
1632     # `set' quotes correctly as required by POSIX, so do not add quotes.
1633     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1634     ;;
1635   esac >> confcache
1636 if cmp -s $cache_file confcache; then
1637   :
1638 else
1639   if test -w $cache_file; then
1640     echo "updating cache $cache_file"
1641     cat confcache > $cache_file
1642   else
1643     echo "not updating unwritable cache $cache_file"
1644   fi
1645 fi
1646 rm -f confcache
1647
1648 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1649
1650 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1651 # Let make expand exec_prefix.
1652 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1653
1654 # Any assignment to VPATH causes Sun make to only execute
1655 # the first set of double-colon rules, so remove it if not needed.
1656 # If there is a colon in the path, we need to keep it.
1657 if test "x$srcdir" = x.; then
1658   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1659 fi
1660
1661 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1662
1663 DEFS=-DHAVE_CONFIG_H
1664
1665 # Without the "./", some shells look in PATH for config.status.
1666 : ${CONFIG_STATUS=./config.status}
1667
1668 echo creating $CONFIG_STATUS
1669 rm -f $CONFIG_STATUS
1670 cat > $CONFIG_STATUS <<EOF
1671 #! /bin/sh
1672 # Generated automatically by configure.
1673 # Run this file to recreate the current configuration.
1674 # This directory was configured as follows,
1675 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1676 #
1677 # $0 $ac_configure_args
1678 #
1679 # Compiler output produced by configure, useful for debugging
1680 # configure, is in ./config.log if it exists.
1681
1682 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1683 for ac_option
1684 do
1685   case "\$ac_option" in
1686   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1687     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1688     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1689   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1690     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1691     exit 0 ;;
1692   -help | --help | --hel | --he | --h)
1693     echo "\$ac_cs_usage"; exit 0 ;;
1694   *) echo "\$ac_cs_usage"; exit 1 ;;
1695   esac
1696 done
1697
1698 ac_given_srcdir=$srcdir
1699 ac_given_INSTALL="$INSTALL"
1700
1701 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1702 EOF
1703 cat >> $CONFIG_STATUS <<EOF
1704
1705 # Protect against being on the right side of a sed subst in config.status.
1706 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1707  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1708 $ac_vpsub
1709 $extrasub
1710 s%@SHELL@%$SHELL%g
1711 s%@CFLAGS@%$CFLAGS%g
1712 s%@CPPFLAGS@%$CPPFLAGS%g
1713 s%@CXXFLAGS@%$CXXFLAGS%g
1714 s%@FFLAGS@%$FFLAGS%g
1715 s%@DEFS@%$DEFS%g
1716 s%@LDFLAGS@%$LDFLAGS%g
1717 s%@LIBS@%$LIBS%g
1718 s%@exec_prefix@%$exec_prefix%g
1719 s%@prefix@%$prefix%g
1720 s%@program_transform_name@%$program_transform_name%g
1721 s%@bindir@%$bindir%g
1722 s%@sbindir@%$sbindir%g
1723 s%@libexecdir@%$libexecdir%g
1724 s%@datadir@%$datadir%g
1725 s%@sysconfdir@%$sysconfdir%g
1726 s%@sharedstatedir@%$sharedstatedir%g
1727 s%@localstatedir@%$localstatedir%g
1728 s%@libdir@%$libdir%g
1729 s%@includedir@%$includedir%g
1730 s%@oldincludedir@%$oldincludedir%g
1731 s%@infodir@%$infodir%g
1732 s%@mandir@%$mandir%g
1733 s%@DEBUGDEFS@%$DEBUGDEFS%g
1734 s%@DEBUGLIBS@%$DEBUGLIBS%g
1735 s%@CC@%$CC%g
1736 s%@CPP@%$CPP%g
1737 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1738 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1739 s%@INSTALL_DATA@%$INSTALL_DATA%g
1740 s%@MD5SUM_SIMPLE@%$MD5SUM_SIMPLE%g
1741 s%@OPTIMISE@%$OPTIMISE%g
1742 s%@CWARNS@%$CWARNS%g
1743 s%@VERSION@%$VERSION%g
1744
1745 CEOF
1746 EOF
1747
1748 cat >> $CONFIG_STATUS <<\EOF
1749
1750 # Split the substitutions into bite-sized pieces for seds with
1751 # small command number limits, like on Digital OSF/1 and HP-UX.
1752 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1753 ac_file=1 # Number of current file.
1754 ac_beg=1 # First line for current file.
1755 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1756 ac_more_lines=:
1757 ac_sed_cmds=""
1758 while $ac_more_lines; do
1759   if test $ac_beg -gt 1; then
1760     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1761   else
1762     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1763   fi
1764   if test ! -s conftest.s$ac_file; then
1765     ac_more_lines=false
1766     rm -f conftest.s$ac_file
1767   else
1768     if test -z "$ac_sed_cmds"; then
1769       ac_sed_cmds="sed -f conftest.s$ac_file"
1770     else
1771       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1772     fi
1773     ac_file=`expr $ac_file + 1`
1774     ac_beg=$ac_end
1775     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1776   fi
1777 done
1778 if test -z "$ac_sed_cmds"; then
1779   ac_sed_cmds=cat
1780 fi
1781 EOF
1782
1783 cat >> $CONFIG_STATUS <<EOF
1784
1785 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1786 EOF
1787 cat >> $CONFIG_STATUS <<\EOF
1788 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1789   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1790   case "$ac_file" in
1791   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1792        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1793   *) ac_file_in="${ac_file}.in" ;;
1794   esac
1795
1796   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1797
1798   # Remove last slash and all that follows it.  Not all systems have dirname.
1799   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1800   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1801     # The file is in a subdirectory.
1802     test ! -d "$ac_dir" && mkdir "$ac_dir"
1803     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1804     # A "../" for each directory in $ac_dir_suffix.
1805     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1806   else
1807     ac_dir_suffix= ac_dots=
1808   fi
1809
1810   case "$ac_given_srcdir" in
1811   .)  srcdir=.
1812       if test -z "$ac_dots"; then top_srcdir=.
1813       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1814   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1815   *) # Relative path.
1816     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1817     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1818   esac
1819
1820   case "$ac_given_INSTALL" in
1821   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1822   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1823   esac
1824
1825   echo creating "$ac_file"
1826   rm -f "$ac_file"
1827   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1828   case "$ac_file" in
1829   *Makefile*) ac_comsub="1i\\
1830 # $configure_input" ;;
1831   *) ac_comsub= ;;
1832   esac
1833
1834   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1835   sed -e "$ac_comsub
1836 s%@configure_input@%$configure_input%g
1837 s%@srcdir@%$srcdir%g
1838 s%@top_srcdir@%$top_srcdir%g
1839 s%@INSTALL@%$INSTALL%g
1840 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1841 fi; done
1842 rm -f conftest.s*
1843
1844 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1845 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1846 #
1847 # ac_d sets the value in "#define NAME VALUE" lines.
1848 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1849 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1850 ac_dC='\3'
1851 ac_dD='%g'
1852 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1853 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1854 ac_uB='\([      ]\)%\1#\2define\3'
1855 ac_uC=' '
1856 ac_uD='\4%g'
1857 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1858 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1859 ac_eB='$%\1#\2define\3'
1860 ac_eC=' '
1861 ac_eD='%g'
1862
1863 if test "${CONFIG_HEADERS+set}" != set; then
1864 EOF
1865 cat >> $CONFIG_STATUS <<EOF
1866   CONFIG_HEADERS="config.h"
1867 EOF
1868 cat >> $CONFIG_STATUS <<\EOF
1869 fi
1870 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1871   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1872   case "$ac_file" in
1873   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1874        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1875   *) ac_file_in="${ac_file}.in" ;;
1876   esac
1877
1878   echo creating $ac_file
1879
1880   rm -f conftest.frag conftest.in conftest.out
1881   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1882   cat $ac_file_inputs > conftest.in
1883
1884 EOF
1885
1886 # Transform confdefs.h into a sed script conftest.vals that substitutes
1887 # the proper values into config.h.in to produce config.h.  And first:
1888 # Protect against being on the right side of a sed subst in config.status.
1889 # Protect against being in an unquoted here document in config.status.
1890 rm -f conftest.vals
1891 cat > conftest.hdr <<\EOF
1892 s/[\\&%]/\\&/g
1893 s%[\\$`]%\\&%g
1894 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1895 s%ac_d%ac_u%gp
1896 s%ac_u%ac_e%gp
1897 EOF
1898 sed -n -f conftest.hdr confdefs.h > conftest.vals
1899 rm -f conftest.hdr
1900
1901 # This sed command replaces #undef with comments.  This is necessary, for
1902 # example, in the case of _POSIX_SOURCE, which is predefined and required
1903 # on some systems where configure will not decide to define it.
1904 cat >> conftest.vals <<\EOF
1905 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1906 EOF
1907
1908 # Break up conftest.vals because some shells have a limit on
1909 # the size of here documents, and old seds have small limits too.
1910
1911 rm -f conftest.tail
1912 while :
1913 do
1914   ac_lines=`grep -c . conftest.vals`
1915   # grep -c gives empty output for an empty file on some AIX systems.
1916   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1917   # Write a limited-size here document to conftest.frag.
1918   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1919   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1920   echo 'CEOF
1921   sed -f conftest.frag conftest.in > conftest.out
1922   rm -f conftest.in
1923   mv conftest.out conftest.in
1924 ' >> $CONFIG_STATUS
1925   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1926   rm -f conftest.vals
1927   mv conftest.tail conftest.vals
1928 done
1929 rm -f conftest.vals
1930
1931 cat >> $CONFIG_STATUS <<\EOF
1932   rm -f conftest.frag conftest.h
1933   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1934   cat conftest.in >> conftest.h
1935   rm -f conftest.in
1936   if cmp -s $ac_file conftest.h 2>/dev/null; then
1937     echo "$ac_file is unchanged"
1938     rm -f conftest.h
1939   else
1940     # Remove last slash and all that follows it.  Not all systems have dirname.
1941       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1942       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1943       # The file is in a subdirectory.
1944       test ! -d "$ac_dir" && mkdir "$ac_dir"
1945     fi
1946     rm -f $ac_file
1947     mv conftest.h $ac_file
1948   fi
1949 fi; done
1950
1951 EOF
1952 cat >> $CONFIG_STATUS <<EOF
1953
1954 EOF
1955 cat >> $CONFIG_STATUS <<\EOF
1956
1957 exit 0
1958 EOF
1959 chmod +x $CONFIG_STATUS
1960 rm -fr confdefs* $ac_clean_files
1961 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1962