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