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