]> andersk Git - moira.git/blame - configure
Abstract out flags we need to build shared objects.
[moira.git] / configure
CommitLineData
ea0caf4a 1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
ee85084d 4# Generated automatically using autoconf version 2.13
ea0caf4a 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-athena Enable Athena-specific policy decisions"
7f7f279f 16ac_help="$ac_help
17 --with-com_err=PREFIX Specify location of com_err"
ea0caf4a 18ac_help="$ac_help
19 --with-krb4=PREFIX Specify location of krb4"
33567bea 20ac_help="$ac_help
7f7f279f 21 --with-krb5=PREFIX Specify location of krb5 (for reg_svr)"
ea0caf4a 22ac_help="$ac_help
23 --with-hesiod=PREFIX Specify location of Hesiod"
24ac_help="$ac_help
25 --with-zephyr=PREFIX Specify location of Zephyr"
33567bea 26ac_help="$ac_help
27 --with-rsaref=PREFIX Specify location of RSAREF"
ea0caf4a 28ac_help="$ac_help
29 --with-oracle=PREFIX Specify location of Oracle (for server)"
3595c6c0 30ac_help="$ac_help
31 --with-java=PREFIX Specify location of Java libs and headers"
9b1f5e48 32ac_help="$ac_help
33 --with-ldap=PREFIX Specify location of LDAP libs (for server)"
ea0caf4a 34ac_help="$ac_help
35 --with-afs=PREFIX Specify location of AFS libs (for server)"
36ac_help="$ac_help
37 --with-readline=PREFIX Specify location of GNU readline"
38
39# Initialize some variables set by options.
40# The variables have the same names as the options, with
41# dashes changed to underlines.
42build=NONE
43cache_file=./config.cache
44exec_prefix=NONE
45host=NONE
46no_create=
47nonopt=NONE
48no_recursion=
49prefix=NONE
50program_prefix=NONE
51program_suffix=NONE
52program_transform_name=s,x,x,
53silent=
54site=
55srcdir=
56target=NONE
57verbose=
58x_includes=NONE
59x_libraries=NONE
60bindir='${exec_prefix}/bin'
61sbindir='${exec_prefix}/sbin'
62libexecdir='${exec_prefix}/libexec'
63datadir='${prefix}/share'
64sysconfdir='${prefix}/etc'
65sharedstatedir='${prefix}/com'
66localstatedir='${prefix}/var'
67libdir='${exec_prefix}/lib'
68includedir='${prefix}/include'
69oldincludedir='/usr/include'
70infodir='${prefix}/info'
71mandir='${prefix}/man'
72
73# Initialize some other variables.
74subdirs=
75MFLAGS= MAKEFLAGS=
ee85084d 76SHELL=${CONFIG_SHELL-/bin/sh}
ea0caf4a 77# Maximum number of lines to put in a shell here document.
78ac_max_here_lines=12
79
80ac_prev=
81for ac_option
82do
83
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
87 ac_prev=
88 continue
89 fi
90
91 case "$ac_option" in
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 *) ac_optarg= ;;
94 esac
95
96 # Accept the important Cygnus configure options, so we can diagnose typos.
97
98 case "$ac_option" in
99
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 ac_prev=bindir ;;
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
104
105 -build | --build | --buil | --bui | --bu)
106 ac_prev=build ;;
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
109
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
116
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 ac_prev=datadir ;;
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 | --da=*)
121 datadir="$ac_optarg" ;;
122
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 fi
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
131
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 fi
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 case "$ac_option" in
140 *=*) ;;
141 *) ac_optarg=yes ;;
142 esac
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
144
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
153
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
156 with_gas=yes ;;
157
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
161 cat << EOF
162Usage: configure [options] [host]
163Options: [defaults in brackets after descriptions]
164Configuration:
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
172 [$ac_default_prefix]
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 [same as prefix]
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
179 [PREFIX/share]
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 [PREFIX/com]
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
194EOF
195 cat << EOF
196Host type:
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
207EOF
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
210 fi
211 exit 0 ;;
212
213 -host | --host | --hos | --ho)
214 ac_prev=host ;;
215 -host=* | --host=* | --hos=* | --ho=*)
216 host="$ac_optarg" ;;
217
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
224
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 ac_prev=infodir ;;
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
229
230 -libdir | --libdir | --libdi | --libd)
231 ac_prev=libdir ;;
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
234
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
241
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
250
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 ac_prev=mandir ;;
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
255
256 -nfp | --nfp | --nf)
257 # Obsolete; use --without-fp.
258 with_fp=no ;;
259
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 | --no-cr | --no-c)
262 no_create=yes ;;
263
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 no_recursion=yes ;;
267
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
276
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 ac_prev=prefix ;;
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
281
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
288
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
295
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
312
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
315 silent=yes ;;
316
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 ac_prev=sbindir ;;
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 | --sbi=* | --sb=*)
321 sbindir="$ac_optarg" ;;
322
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
326 | --sha | --sh)
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 | --sha=* | --sh=*)
332 sharedstatedir="$ac_optarg" ;;
333
334 -site | --site | --sit)
335 ac_prev=site ;;
336 -site=* | --site=* | --sit=*)
337 site="$ac_optarg" ;;
338
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 ac_prev=srcdir ;;
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
343
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
350
351 -target | --target | --targe | --targ | --tar | --ta | --t)
352 ac_prev=target ;;
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
355
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 verbose=yes ;;
358
359 -version | --version | --versio | --versi | --vers)
ee85084d 360 echo "configure generated by autoconf version 2.13"
ea0caf4a 361 exit 0 ;;
362
363 -with-* | --with-*)
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 fi
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 case "$ac_option" in
371 *=*) ;;
372 *) ac_optarg=yes ;;
373 esac
374 eval "with_${ac_package}='$ac_optarg'" ;;
375
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 fi
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
384
385 --x)
386 # Obsolete; use --with-x.
387 with_x=yes ;;
388
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
395
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
402
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 ;;
405
406 *)
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 fi
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 fi
413 nonopt="$ac_option"
414 ;;
415
416 esac
417done
418
419if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421fi
422
423trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424
425# File descriptor usage:
426# 0 standard input
427# 1 file creation
428# 2 errors and warnings
429# 3 some systems may open it to /dev/tty
430# 4 used on the Kubota Titan
431# 6 checking for... messages and results
432# 5 compiler messages saved in config.log
433if test "$silent" = yes; then
434 exec 6>/dev/null
435else
436 exec 6>&1
437fi
438exec 5>./config.log
439
440echo "\
441This file contains any messages produced by compilers while
442running configure, to aid debugging if configure makes a mistake.
443" 1>&5
444
445# Strip out --no-create and --no-recursion so they do not pile up.
446# Also quote any args containing shell metacharacters.
447ac_configure_args=
448for ac_arg
449do
450 case "$ac_arg" in
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 esac
459done
460
461# NLS nuisances.
462# Only set these to C if already set. These must not be set unconditionally
463# because not all systems understand e.g. LANG=C (notably SCO).
464# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465# Non-C LC_CTYPE values break the ctype check.
466if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
470
471# confdefs.h avoids OS command line length limits that DEFS can exceed.
472rm -rf conftest* confdefs.h
473# AIX cpp loses on an empty file, so make sure it contains at least a newline.
474echo > confdefs.h
475
476# A filename unique to this package, relative to the directory that
477# configure is in, which we can look for to find out if srcdir is correct.
478ac_unique_file=patchlevel.h
479
480# Find the source files, if location was not specified.
481if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
484 ac_prog=$0
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 srcdir=$ac_confdir
488 if test ! -r $srcdir/$ac_unique_file; then
489 srcdir=..
490 fi
491else
492 ac_srcdir_defaulted=no
493fi
494if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 else
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 fi
500fi
501srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502
503# Prefer explicitly selected file to automatically selected ones.
504if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 else
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509 fi
510fi
511for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
514 . "$ac_site_file"
515 fi
516done
517
518if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
520 . $cache_file
521else
522 echo "creating cache $cache_file"
523 > $cache_file
524fi
525
526ac_ext=c
527# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528ac_cpp='$CPP $CPPFLAGS'
529ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ee85084d 530ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
ea0caf4a 531cross_compiling=$ac_cv_prog_cc_cross
532
ee85084d 533ac_exeext=
534ac_objext=o
ea0caf4a 535if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='
539' ac_t=' '
540 else
541 ac_n=-n ac_c= ac_t=
542 fi
543else
544 ac_n= ac_c='\c' ac_t=
545fi
546
547
548
549
550
3595c6c0 551ac_aux_dir=
552for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
553 if test -f $ac_dir/install-sh; then
554 ac_aux_dir=$ac_dir
555 ac_install_sh="$ac_aux_dir/install-sh -c"
556 break
557 elif test -f $ac_dir/install.sh; then
558 ac_aux_dir=$ac_dir
559 ac_install_sh="$ac_aux_dir/install.sh -c"
560 break
561 fi
562done
563if test -z "$ac_aux_dir"; then
564 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
565fi
566ac_config_guess=$ac_aux_dir/config.guess
567ac_config_sub=$ac_aux_dir/config.sub
568ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
569
570
571# Make sure we can run config.sub.
572if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
573else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
574fi
575
576echo $ac_n "checking host system type""... $ac_c" 1>&6
577echo "configure:578: checking host system type" >&5
578
579host_alias=$host
580case "$host_alias" in
581NONE)
582 case $nonopt in
583 NONE)
584 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
585 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
586 fi ;;
587 *) host_alias=$nonopt ;;
588 esac ;;
589esac
590
591host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
592host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
593host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
594host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
595echo "$ac_t""$host" 1>&6
596
597case $host_os in
598solaris*)
599 short_os=solaris
600 ;;
601irix*)
602 short_os=irix
603 ;;
604linux*)
605 short_os=linux
606 ;;
607esac
608
ea0caf4a 609
610
611
612
613
614
615# Extract the first word of "gcc", so it can be a program name with args.
616set dummy gcc; ac_word=$2
617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3595c6c0 618echo "configure:619: checking for $ac_word" >&5
ea0caf4a 619if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
620 echo $ac_n "(cached) $ac_c" 1>&6
621else
622 if test -n "$CC"; then
623 ac_cv_prog_CC="$CC" # Let the user override the test.
624else
ee85084d 625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
626 ac_dummy="$PATH"
627 for ac_dir in $ac_dummy; do
ea0caf4a 628 test -z "$ac_dir" && ac_dir=.
629 if test -f $ac_dir/$ac_word; then
630 ac_cv_prog_CC="gcc"
631 break
632 fi
633 done
634 IFS="$ac_save_ifs"
635fi
636fi
637CC="$ac_cv_prog_CC"
638if test -n "$CC"; then
639 echo "$ac_t""$CC" 1>&6
640else
641 echo "$ac_t""no" 1>&6
642fi
643
644if test -z "$CC"; then
645 # Extract the first word of "cc", so it can be a program name with args.
646set dummy cc; ac_word=$2
647echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3595c6c0 648echo "configure:649: checking for $ac_word" >&5
ea0caf4a 649if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
651else
652 if test -n "$CC"; then
653 ac_cv_prog_CC="$CC" # Let the user override the test.
654else
ee85084d 655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ea0caf4a 656 ac_prog_rejected=no
ee85084d 657 ac_dummy="$PATH"
658 for ac_dir in $ac_dummy; do
ea0caf4a 659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
661 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
662 ac_prog_rejected=yes
663 continue
664 fi
665 ac_cv_prog_CC="cc"
666 break
667 fi
668 done
669 IFS="$ac_save_ifs"
670if test $ac_prog_rejected = yes; then
671 # We found a bogon in the path, so make sure we never use it.
672 set dummy $ac_cv_prog_CC
673 shift
674 if test $# -gt 0; then
675 # We chose a different compiler from the bogus one.
676 # However, it has the same basename, so the bogon will be chosen
677 # first if we set CC to just the basename; use the full file name.
678 shift
679 set dummy "$ac_dir/$ac_word" "$@"
680 shift
681 ac_cv_prog_CC="$@"
682 fi
683fi
684fi
685fi
686CC="$ac_cv_prog_CC"
687if test -n "$CC"; then
688 echo "$ac_t""$CC" 1>&6
689else
690 echo "$ac_t""no" 1>&6
691fi
692
ee85084d 693 if test -z "$CC"; then
694 case "`uname -s`" in
695 *win32* | *WIN32*)
696 # Extract the first word of "cl", so it can be a program name with args.
697set dummy cl; ac_word=$2
698echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3595c6c0 699echo "configure:700: checking for $ac_word" >&5
ee85084d 700if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
702else
703 if test -n "$CC"; then
704 ac_cv_prog_CC="$CC" # Let the user override the test.
705else
706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
707 ac_dummy="$PATH"
708 for ac_dir in $ac_dummy; do
709 test -z "$ac_dir" && ac_dir=.
710 if test -f $ac_dir/$ac_word; then
711 ac_cv_prog_CC="cl"
712 break
713 fi
714 done
715 IFS="$ac_save_ifs"
716fi
717fi
718CC="$ac_cv_prog_CC"
719if test -n "$CC"; then
720 echo "$ac_t""$CC" 1>&6
721else
722 echo "$ac_t""no" 1>&6
723fi
724 ;;
725 esac
726 fi
ea0caf4a 727 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
728fi
729
730echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3595c6c0 731echo "configure:732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ea0caf4a 732
733ac_ext=c
734# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
735ac_cpp='$CPP $CPPFLAGS'
736ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ee85084d 737ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
ea0caf4a 738cross_compiling=$ac_cv_prog_cc_cross
739
ee85084d 740cat > conftest.$ac_ext << EOF
741
3595c6c0 742#line 743 "configure"
ea0caf4a 743#include "confdefs.h"
ee85084d 744
ea0caf4a 745main(){return(0);}
746EOF
3595c6c0 747if { (eval echo configure:748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 748 ac_cv_prog_cc_works=yes
749 # If we can't run a trivial program, we are probably using a cross compiler.
750 if (./conftest; exit) 2>/dev/null; then
751 ac_cv_prog_cc_cross=no
752 else
753 ac_cv_prog_cc_cross=yes
754 fi
755else
756 echo "configure: failed program was:" >&5
757 cat conftest.$ac_ext >&5
758 ac_cv_prog_cc_works=no
759fi
760rm -fr conftest*
ee85084d 761ac_ext=c
762# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
763ac_cpp='$CPP $CPPFLAGS'
764ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
765ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
766cross_compiling=$ac_cv_prog_cc_cross
ea0caf4a 767
768echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
769if test $ac_cv_prog_cc_works = no; then
770 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
771fi
772echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3595c6c0 773echo "configure:774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
ea0caf4a 774echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
775cross_compiling=$ac_cv_prog_cc_cross
776
777echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3595c6c0 778echo "configure:779: checking whether we are using GNU C" >&5
ea0caf4a 779if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781else
782 cat > conftest.c <<EOF
783#ifdef __GNUC__
784 yes;
785#endif
786EOF
3595c6c0 787if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ea0caf4a 788 ac_cv_prog_gcc=yes
789else
790 ac_cv_prog_gcc=no
791fi
792fi
793
794echo "$ac_t""$ac_cv_prog_gcc" 1>&6
795
796if test $ac_cv_prog_gcc = yes; then
797 GCC=yes
ee85084d 798else
799 GCC=
800fi
801
802ac_test_CFLAGS="${CFLAGS+set}"
803ac_save_CFLAGS="$CFLAGS"
804CFLAGS=
805echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3595c6c0 806echo "configure:807: checking whether ${CC-cc} accepts -g" >&5
ea0caf4a 807if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
809else
810 echo 'void f(){}' > conftest.c
811if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
812 ac_cv_prog_cc_g=yes
813else
814 ac_cv_prog_cc_g=no
815fi
816rm -f conftest*
817
818fi
819
820echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
ee85084d 821if test "$ac_test_CFLAGS" = set; then
822 CFLAGS="$ac_save_CFLAGS"
823elif test $ac_cv_prog_cc_g = yes; then
824 if test "$GCC" = yes; then
ea0caf4a 825 CFLAGS="-g -O2"
826 else
ee85084d 827 CFLAGS="-g"
ea0caf4a 828 fi
829else
ee85084d 830 if test "$GCC" = yes; then
831 CFLAGS="-O2"
832 else
833 CFLAGS=
834 fi
ea0caf4a 835fi
836
ea0caf4a 837# Find a good install program. We prefer a C program (faster),
838# so one script is as good as another. But avoid the broken or
839# incompatible versions:
840# SysV /etc/install, /usr/sbin/install
841# SunOS /usr/etc/install
842# IRIX /sbin/install
843# AIX /bin/install
ee85084d 844# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ea0caf4a 845# AFS /usr/afsws/bin/install, which mishandles nonexistent args
846# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
847# ./install, which can be erroneously created by make from ./install.sh.
848echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3595c6c0 849echo "configure:850: checking for a BSD compatible install" >&5
ea0caf4a 850if test -z "$INSTALL"; then
851if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853else
ee85084d 854 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
ea0caf4a 855 for ac_dir in $PATH; do
856 # Account for people who put trailing slashes in PATH elements.
857 case "$ac_dir/" in
858 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
859 *)
860 # OSF1 and SCO ODT 3.0 have their own names for install.
ee85084d 861 # Don't use installbsd from OSF since it installs stuff as root
862 # by default.
863 for ac_prog in ginstall scoinst install; do
ea0caf4a 864 if test -f $ac_dir/$ac_prog; then
865 if test $ac_prog = install &&
866 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
867 # AIX install. It has an incompatible calling convention.
ea0caf4a 868 :
869 else
870 ac_cv_path_install="$ac_dir/$ac_prog -c"
871 break 2
872 fi
873 fi
874 done
875 ;;
876 esac
877 done
878 IFS="$ac_save_IFS"
879
880fi
881 if test "${ac_cv_path_install+set}" = set; then
882 INSTALL="$ac_cv_path_install"
883 else
884 # As a last resort, use the slow shell script. We don't cache a
885 # path for INSTALL within a source directory, because that will
886 # break other packages using the cache if that directory is
887 # removed, or if the path is relative.
888 INSTALL="$ac_install_sh"
889 fi
890fi
891echo "$ac_t""$INSTALL" 1>&6
892
893# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
894# It thinks the first close brace ends the variable substitution.
895test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
896
ee85084d 897test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
898
ea0caf4a 899test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
900
901# Extract the first word of "ranlib", so it can be a program name with args.
902set dummy ranlib; ac_word=$2
903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3595c6c0 904echo "configure:905: checking for $ac_word" >&5
ea0caf4a 905if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
907else
908 if test -n "$RANLIB"; then
909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
910else
ee85084d 911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
912 ac_dummy="$PATH"
913 for ac_dir in $ac_dummy; do
ea0caf4a 914 test -z "$ac_dir" && ac_dir=.
915 if test -f $ac_dir/$ac_word; then
916 ac_cv_prog_RANLIB="ranlib"
917 break
918 fi
919 done
920 IFS="$ac_save_ifs"
921 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
922fi
923fi
924RANLIB="$ac_cv_prog_RANLIB"
925if test -n "$RANLIB"; then
926 echo "$ac_t""$RANLIB" 1>&6
927else
928 echo "$ac_t""no" 1>&6
929fi
930
931echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3595c6c0 932echo "configure:933: checking whether ${MAKE-make} sets \${MAKE}" >&5
ea0caf4a 933set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
934if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
936else
937 cat > conftestmake <<\EOF
938all:
939 @echo 'ac_maketemp="${MAKE}"'
940EOF
941# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
942eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
943if test -n "$ac_maketemp"; then
944 eval ac_cv_prog_make_${ac_make}_set=yes
945else
946 eval ac_cv_prog_make_${ac_make}_set=no
947fi
948rm -f conftestmake
949fi
950if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
951 echo "$ac_t""yes" 1>&6
952 SET_MAKE=
953else
954 echo "$ac_t""no" 1>&6
955 SET_MAKE="MAKE=${MAKE-make}"
956fi
957
958
959if test "$athena" = true; then
960 enable_athena=yes
65cda191 961 prefix=/afs/.athena.mit.edu/system/moira
ea0caf4a 962 bindir=$prefix/arch/$ATHENA_SYS/bin
963 sbindir=$bindir
618b3834 964
965
966 case $CPPFLAGS in
967 *-I/usr/athena/include*) ;;
968 *) CPPFLAGS=-I/usr/athena/include\ $CPPFLAGS ;;
969 esac
970
971
972 case $PRO_C_INCLUDES in
973 *INCLUDE=/usr/athena/include*) ;;
974 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include\ $PRO_C_INCLUDES ;;
975 esac
976
977
978
979
980 case $CPPFLAGS in
981 *-I/usr/athena/include/kerberosIV*) ;;
982 *) CPPFLAGS=-I/usr/athena/include/kerberosIV\ $CPPFLAGS ;;
983 esac
984
985
986 case $PRO_C_INCLUDES in
987 *INCLUDE=/usr/athena/include/kerberosIV*) ;;
988 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include/kerberosIV\ $PRO_C_INCLUDES ;;
989 esac
990
991
992
993 case $LIBPATH in
994 *-L/usr/athena/lib*) ;;
995 *) LIBPATH=-L/usr/athena/lib\ $LIBPATH ;;
996 esac
997
ea0caf4a 998fi
999
1000# We currently just don't support changing this
1001mrbindir=/moira/bin
1002
1003
1004# Athena-local policy decisions
1005echo $ac_n "checking for Athena""... $ac_c" 1>&6
3595c6c0 1006echo "configure:1007: checking for Athena" >&5
ea0caf4a 1007# Check whether --enable-athena or --disable-athena was given.
1008if test "${enable_athena+set}" = set; then
1009 enableval="$enable_athena"
1010 :
1011else
1012 if test "$athena" = true; then
1013 enableval=yes
1014 else
1015 enableval=no
1016 fi
1017fi
1018
1019echo "$ac_t""$enableval" 1>&6
1020if test "$enableval" = yes; then
1021
1022 cat >> confdefs.h <<\EOF
1023#define ATHENA 1
1024EOF
1025
1026
1027 case $PRO_C_DEFS in
1028 *DEFINE=ATHENA*) ;;
1029 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
1030 esac
1031
1032
1033fi
1034
1035# Networking libraries
1036echo "checking network libraries..." 1>&6
3595c6c0 1037echo "configure:1038: checking network libraries..." >&5
ea0caf4a 1038echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3595c6c0 1039echo "configure:1040: checking for gethostbyname" >&5
ea0caf4a 1040if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1042else
1043 cat > conftest.$ac_ext <<EOF
3595c6c0 1044#line 1045 "configure"
ea0caf4a 1045#include "confdefs.h"
1046/* System header to define __stub macros and hopefully few prototypes,
1047 which can conflict with char gethostbyname(); below. */
1048#include <assert.h>
1049/* Override any gcc2 internal prototype to avoid an error. */
1050/* We use char because int might match the return type of a gcc2
1051 builtin and then its argument prototype would still apply. */
1052char gethostbyname();
1053
1054int main() {
1055
1056/* The GNU C library defines this for functions which it implements
1057 to always fail with ENOSYS. Some functions are actually named
1058 something starting with __ and the normal name is an alias. */
1059#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1060choke me
1061#else
1062gethostbyname();
1063#endif
1064
1065; return 0; }
1066EOF
3595c6c0 1067if { (eval echo configure:1068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1068 rm -rf conftest*
1069 eval "ac_cv_func_gethostbyname=yes"
1070else
1071 echo "configure: failed program was:" >&5
1072 cat conftest.$ac_ext >&5
1073 rm -rf conftest*
1074 eval "ac_cv_func_gethostbyname=no"
1075fi
1076rm -f conftest*
1077fi
1078
1079if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1080 echo "$ac_t""yes" 1>&6
1081 :
1082else
1083 echo "$ac_t""no" 1>&6
1084echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3595c6c0 1085echo "configure:1086: checking for gethostbyname in -lnsl" >&5
ea0caf4a 1086ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1087if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1089else
1090 ac_save_LIBS="$LIBS"
1091LIBS="-lnsl $LIBS"
1092cat > conftest.$ac_ext <<EOF
3595c6c0 1093#line 1094 "configure"
ea0caf4a 1094#include "confdefs.h"
1095/* Override any gcc2 internal prototype to avoid an error. */
1096/* We use char because int might match the return type of a gcc2
1097 builtin and then its argument prototype would still apply. */
1098char gethostbyname();
1099
1100int main() {
1101gethostbyname()
1102; return 0; }
1103EOF
3595c6c0 1104if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1105 rm -rf conftest*
1106 eval "ac_cv_lib_$ac_lib_var=yes"
1107else
1108 echo "configure: failed program was:" >&5
1109 cat conftest.$ac_ext >&5
1110 rm -rf conftest*
1111 eval "ac_cv_lib_$ac_lib_var=no"
1112fi
1113rm -f conftest*
1114LIBS="$ac_save_LIBS"
1115
1116fi
1117if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1118 echo "$ac_t""yes" 1>&6
1119 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1121 cat >> confdefs.h <<EOF
1122#define $ac_tr_lib 1
1123EOF
1124
1125 LIBS="-lnsl $LIBS"
1126
1127else
1128 echo "$ac_t""no" 1>&6
1129echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3595c6c0 1130echo "configure:1131: checking for gethostbyname in -lresolv" >&5
ea0caf4a 1131ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1132if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1134else
1135 ac_save_LIBS="$LIBS"
1136LIBS="-lresolv $LIBS"
1137cat > conftest.$ac_ext <<EOF
3595c6c0 1138#line 1139 "configure"
ea0caf4a 1139#include "confdefs.h"
1140/* Override any gcc2 internal prototype to avoid an error. */
1141/* We use char because int might match the return type of a gcc2
1142 builtin and then its argument prototype would still apply. */
1143char gethostbyname();
1144
1145int main() {
1146gethostbyname()
1147; return 0; }
1148EOF
3595c6c0 1149if { (eval echo configure:1150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1150 rm -rf conftest*
1151 eval "ac_cv_lib_$ac_lib_var=yes"
1152else
1153 echo "configure: failed program was:" >&5
1154 cat conftest.$ac_ext >&5
1155 rm -rf conftest*
1156 eval "ac_cv_lib_$ac_lib_var=no"
1157fi
1158rm -f conftest*
1159LIBS="$ac_save_LIBS"
1160
1161fi
1162if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1163 echo "$ac_t""yes" 1>&6
1164 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1165 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1166 cat >> confdefs.h <<EOF
1167#define $ac_tr_lib 1
1168EOF
1169
1170 LIBS="-lresolv $LIBS"
1171
1172else
1173 echo "$ac_t""no" 1>&6
1174fi
1175
1176fi
1177
1178fi
1179
1180echo $ac_n "checking for socket""... $ac_c" 1>&6
3595c6c0 1181echo "configure:1182: checking for socket" >&5
ea0caf4a 1182if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1184else
1185 cat > conftest.$ac_ext <<EOF
3595c6c0 1186#line 1187 "configure"
ea0caf4a 1187#include "confdefs.h"
1188/* System header to define __stub macros and hopefully few prototypes,
1189 which can conflict with char socket(); below. */
1190#include <assert.h>
1191/* Override any gcc2 internal prototype to avoid an error. */
1192/* We use char because int might match the return type of a gcc2
1193 builtin and then its argument prototype would still apply. */
1194char socket();
1195
1196int main() {
1197
1198/* The GNU C library defines this for functions which it implements
1199 to always fail with ENOSYS. Some functions are actually named
1200 something starting with __ and the normal name is an alias. */
1201#if defined (__stub_socket) || defined (__stub___socket)
1202choke me
1203#else
1204socket();
1205#endif
1206
1207; return 0; }
1208EOF
3595c6c0 1209if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1210 rm -rf conftest*
1211 eval "ac_cv_func_socket=yes"
1212else
1213 echo "configure: failed program was:" >&5
1214 cat conftest.$ac_ext >&5
1215 rm -rf conftest*
1216 eval "ac_cv_func_socket=no"
1217fi
1218rm -f conftest*
1219fi
1220
1221if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1223 :
1224else
1225 echo "$ac_t""no" 1>&6
1226echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3595c6c0 1227echo "configure:1228: checking for socket in -lsocket" >&5
ea0caf4a 1228ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1229if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1231else
1232 ac_save_LIBS="$LIBS"
1233LIBS="-lsocket $LIBS"
1234cat > conftest.$ac_ext <<EOF
3595c6c0 1235#line 1236 "configure"
ea0caf4a 1236#include "confdefs.h"
1237/* Override any gcc2 internal prototype to avoid an error. */
1238/* We use char because int might match the return type of a gcc2
1239 builtin and then its argument prototype would still apply. */
1240char socket();
1241
1242int main() {
1243socket()
1244; return 0; }
1245EOF
3595c6c0 1246if { (eval echo configure:1247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1247 rm -rf conftest*
1248 eval "ac_cv_lib_$ac_lib_var=yes"
1249else
1250 echo "configure: failed program was:" >&5
1251 cat conftest.$ac_ext >&5
1252 rm -rf conftest*
1253 eval "ac_cv_lib_$ac_lib_var=no"
1254fi
1255rm -f conftest*
1256LIBS="$ac_save_LIBS"
1257
1258fi
1259if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1260 echo "$ac_t""yes" 1>&6
1261 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1263 cat >> confdefs.h <<EOF
1264#define $ac_tr_lib 1
1265EOF
1266
1267 LIBS="-lsocket $LIBS"
1268
1269else
1270 echo "$ac_t""no" 1>&6
1271echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3595c6c0 1272echo "configure:1273: checking for socket in -lsocket" >&5
ea0caf4a 1273ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1274if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1276else
1277 ac_save_LIBS="$LIBS"
1278LIBS="-lsocket -lnsl $LIBS"
1279cat > conftest.$ac_ext <<EOF
3595c6c0 1280#line 1281 "configure"
ea0caf4a 1281#include "confdefs.h"
1282/* Override any gcc2 internal prototype to avoid an error. */
1283/* We use char because int might match the return type of a gcc2
1284 builtin and then its argument prototype would still apply. */
1285char socket();
1286
1287int main() {
1288socket()
1289; return 0; }
1290EOF
3595c6c0 1291if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1292 rm -rf conftest*
1293 eval "ac_cv_lib_$ac_lib_var=yes"
1294else
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1297 rm -rf conftest*
1298 eval "ac_cv_lib_$ac_lib_var=no"
1299fi
1300rm -f conftest*
1301LIBS="$ac_save_LIBS"
1302
1303fi
1304if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1305 echo "$ac_t""yes" 1>&6
1306 LIBS="-lsocket -lnsl $LIBS"
1307else
1308 echo "$ac_t""no" 1>&6
1309:
1310fi
1311
1312fi
1313
1314fi
1315
1316
7f7f279f 1317# com_err (required, but can be built)
1318echo $ac_n "checking for com_err""... $ac_c" 1>&6
3595c6c0 1319echo "configure:1320: checking for com_err" >&5
7f7f279f 1320# Check whether --with-com_err or --without-com_err was given.
1321if test "${with_com_err+set}" = set; then
1322 withval="$with_com_err"
1323 echo "$ac_t""$withval" 1>&6
1324 if test $withval = "no"; then
1325 { echo "configure: error: com_err is required for Moira" 1>&2; exit 1; }
1326 fi
1327 if test $withval != "yes"; then
1328
1329
1330 case $CPPFLAGS in
1331 *-I$withval/include*) ;;
1332 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
1333 esac
1334
1335
1336 case $PRO_C_INCLUDES in
1337 *INCLUDE=$withval/include*) ;;
1338 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
1339 esac
1340
1341
1342
1343 case $LIBPATH in
1344 *-L$withval/lib*) ;;
1345 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
1346 esac
1347
1348 fi
1349 COMPILE_ET=compile_et
1350else
1351 echo "$ac_t""util/et" 1>&6
1352 COM_ERR_SUBDIR=util/et;
1353
1354
1355 case $CPPFLAGS in
1356 *-I`pwd`/util/et*) ;;
1357 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
1358 esac
1359
1360
1361 case $PRO_C_INCLUDES in
1362 *INCLUDE=`pwd`/util/et*) ;;
1363 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
1364 esac
1365
1366
1367
1368 case $LIBPATH in
1369 *-L`pwd`/util/et*) ;;
1370 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
1371 esac
1372
1373 COMPILE_ET=`pwd`/util/et/compile_et
1374 subdirs="$COM_ERR_SUBDIR"
1375
1376fi
1377
1378
1379
1380
1381# Kerberos (Kerberos 4 required, Kerberos 5 optional for reg_svr)
ea0caf4a 1382echo $ac_n "checking for Kerberos 4""... $ac_c" 1>&6
3595c6c0 1383echo "configure:1384: checking for Kerberos 4" >&5
ea0caf4a 1384# Check whether --with-krb4 or --without-krb4 was given.
1385if test "${with_krb4+set}" = set; then
1386 withval="$with_krb4"
1387 krb4="$withval"
1388else
1389 krb4=no
1390fi
1391
1392echo "$ac_t""$krb4" 1>&6
1393if test $krb4 = "no"; then
1394 { echo "configure: error: Kerberos is required for Moira" 1>&2; exit 1; }
1395fi
1396if test "$krb4" != yes; then
1397
1398
1399 case $CPPFLAGS in
1400 *-I$krb4/include*) ;;
1401 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
1402 esac
1403
1404
1405 case $PRO_C_INCLUDES in
1406 *INCLUDE=$krb4/include*) ;;
1407 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
1408 esac
1409
1410
1411 if test -d "$krb4/include/kerberosIV"; then
1412
1413
1414 case $CPPFLAGS in
1415 *-I$krb4/include/kerberosIV*) ;;
1416 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
1417 esac
1418
1419
1420 case $PRO_C_INCLUDES in
1421 *INCLUDE=$krb4/include/kerberosIV*) ;;
1422 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
1423 esac
1424
1425
1426 fi
1427
1428 case $LIBPATH in
1429 *-L$krb4/lib*) ;;
1430 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
1431 esac
1432
1433elif test -d /usr/include/kerberosIV; then
1434
1435
1436 case $CPPFLAGS in
1437 *-I/usr/include/kerberosIV*) ;;
1438 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
1439 esac
1440
1441
1442 case $PRO_C_INCLUDES in
1443 *INCLUDE=/usr/include/kerberosIV*) ;;
1444 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
1445 esac
1446
1447
1448fi
a96aec98 1449echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
3595c6c0 1450echo "configure:1451: checking for main in -lcrypto" >&5
a96aec98 1451ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
1452if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1454else
1455 ac_save_LIBS="$LIBS"
1456LIBS="-lcrypto $LIBS"
1457cat > conftest.$ac_ext <<EOF
3595c6c0 1458#line 1459 "configure"
a96aec98 1459#include "confdefs.h"
1460
1461int main() {
1462main()
1463; return 0; }
1464EOF
3595c6c0 1465if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a96aec98 1466 rm -rf conftest*
1467 eval "ac_cv_lib_$ac_lib_var=yes"
1468else
1469 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5
1471 rm -rf conftest*
1472 eval "ac_cv_lib_$ac_lib_var=no"
1473fi
1474rm -f conftest*
1475LIBS="$ac_save_LIBS"
1476
1477fi
1478if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1479 echo "$ac_t""yes" 1>&6
1480 crypto="crypto"
1481else
1482 echo "$ac_t""no" 1>&6
1483echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
3595c6c0 1484echo "configure:1485: checking for main in -lk5crypto" >&5
a96aec98 1485ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-%__p_%'`
1486if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1488else
1489 ac_save_LIBS="$LIBS"
1490LIBS="-lk5crypto $LIBS"
1491cat > conftest.$ac_ext <<EOF
3595c6c0 1492#line 1493 "configure"
a96aec98 1493#include "confdefs.h"
1494
1495int main() {
1496main()
1497; return 0; }
1498EOF
3595c6c0 1499if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a96aec98 1500 rm -rf conftest*
1501 eval "ac_cv_lib_$ac_lib_var=yes"
1502else
1503 echo "configure: failed program was:" >&5
1504 cat conftest.$ac_ext >&5
1505 rm -rf conftest*
1506 eval "ac_cv_lib_$ac_lib_var=no"
1507fi
1508rm -f conftest*
1509LIBS="$ac_save_LIBS"
1510
1511fi
1512if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1513 echo "$ac_t""yes" 1>&6
1514 crypto="k5crypto"
1515else
1516 echo "$ac_t""no" 1>&6
1517fi
1518
1519fi
1520
ea0caf4a 1521echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3595c6c0 1522echo "configure:1523: checking for krb_rd_req in -lkrb4" >&5
ea0caf4a 1523ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
1524if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1526else
1527 ac_save_LIBS="$LIBS"
a96aec98 1528LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err $LIBS"
ea0caf4a 1529cat > conftest.$ac_ext <<EOF
3595c6c0 1530#line 1531 "configure"
ea0caf4a 1531#include "confdefs.h"
1532/* Override any gcc2 internal prototype to avoid an error. */
1533/* We use char because int might match the return type of a gcc2
1534 builtin and then its argument prototype would still apply. */
1535char krb_rd_req();
1536
1537int main() {
1538krb_rd_req()
1539; return 0; }
1540EOF
3595c6c0 1541if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1542 rm -rf conftest*
1543 eval "ac_cv_lib_$ac_lib_var=yes"
1544else
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1547 rm -rf conftest*
1548 eval "ac_cv_lib_$ac_lib_var=no"
1549fi
1550rm -f conftest*
1551LIBS="$ac_save_LIBS"
1552
1553fi
1554if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1555 echo "$ac_t""yes" 1>&6
a96aec98 1556 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -l${crypto}"
ea0caf4a 1557else
1558 echo "$ac_t""no" 1>&6
1559echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3595c6c0 1560echo "configure:1561: checking for krb_rd_req in -lkrb" >&5
ea0caf4a 1561ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
1562if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564else
1565 ac_save_LIBS="$LIBS"
1566LIBS="-lkrb $LIBPATH -ldes $LIBS"
1567cat > conftest.$ac_ext <<EOF
3595c6c0 1568#line 1569 "configure"
ea0caf4a 1569#include "confdefs.h"
1570/* Override any gcc2 internal prototype to avoid an error. */
1571/* We use char because int might match the return type of a gcc2
1572 builtin and then its argument prototype would still apply. */
1573char krb_rd_req();
1574
1575int main() {
1576krb_rd_req()
1577; return 0; }
1578EOF
3595c6c0 1579if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1580 rm -rf conftest*
1581 eval "ac_cv_lib_$ac_lib_var=yes"
1582else
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1585 rm -rf conftest*
1586 eval "ac_cv_lib_$ac_lib_var=no"
1587fi
1588rm -f conftest*
1589LIBS="$ac_save_LIBS"
1590
1591fi
1592if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1593 echo "$ac_t""yes" 1>&6
1594 KRB4_LIBS="-lkrb -ldes"
1595else
1596 echo "$ac_t""no" 1>&6
1597{ echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
1598fi
1599
1600fi
1601
1602
7f7f279f 1603echo $ac_n "checking for Kerberos 5""... $ac_c" 1>&6
3595c6c0 1604echo "configure:1605: checking for Kerberos 5" >&5
7f7f279f 1605# Check whether --with-krb5 or --without-krb5 was given.
1606if test "${with_krb5+set}" = set; then
1607 withval="$with_krb5"
1608 krb5="$withval"
33567bea 1609else
7f7f279f 1610 krb5=no
1611fi
33567bea 1612
7f7f279f 1613echo "$ac_t""$krb5" 1>&6
1614if test "$krb5" != no; then
1615 REG_SVR_DEFS=-DKRB5
1616 if test "$krb5" != yes; then
1617 REG_SVR_INCLUDES=-I$krb5/include
1618 REG_SVR_LIBS=-L$krb5/lib
1619 fi
a96aec98 1620 REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -ldyn -lkrb4 -ldes425 -lkrb5 -l${crypto}"
7f7f279f 1621else
1622 REG_SVR_DEFS=-DKRB4
1c1c45eb 1623 REG_SVR_LIBS=-lkadm
33567bea 1624fi
1625
1626
1627
1628
ea0caf4a 1629# Hesiod support
1630echo $ac_n "checking for Hesiod""... $ac_c" 1>&6
3595c6c0 1631echo "configure:1632: checking for Hesiod" >&5
ea0caf4a 1632# Check whether --with-hesiod or --without-hesiod was given.
1633if test "${with_hesiod+set}" = set; then
1634 withval="$with_hesiod"
1635 hesiod="$withval"
1636else
1637 hesiod=no
1638fi
1639
1640echo "$ac_t""$hesiod" 1>&6
1641if test "$hesiod" != no; then
1642 if test "$hesiod" != yes; then
1643
1644
1645 case $CPPFLAGS in
1646 *-I$hesiod/include*) ;;
1647 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
1648 esac
1649
1650
1651 case $PRO_C_INCLUDES in
1652 *INCLUDE=$hesiod/include*) ;;
1653 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
1654 esac
1655
1656
1657
1658 case $LIBPATH in
1659 *-L$hesiod/lib*) ;;
1660 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
1661 esac
1662
1663 fi
1664 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3595c6c0 1665echo "configure:1666: checking for res_send" >&5
ea0caf4a 1666if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1668else
1669 cat > conftest.$ac_ext <<EOF
3595c6c0 1670#line 1671 "configure"
ea0caf4a 1671#include "confdefs.h"
1672/* System header to define __stub macros and hopefully few prototypes,
1673 which can conflict with char res_send(); below. */
1674#include <assert.h>
1675/* Override any gcc2 internal prototype to avoid an error. */
1676/* We use char because int might match the return type of a gcc2
1677 builtin and then its argument prototype would still apply. */
1678char res_send();
1679
1680int main() {
1681
1682/* The GNU C library defines this for functions which it implements
1683 to always fail with ENOSYS. Some functions are actually named
1684 something starting with __ and the normal name is an alias. */
1685#if defined (__stub_res_send) || defined (__stub___res_send)
1686choke me
1687#else
1688res_send();
1689#endif
1690
1691; return 0; }
1692EOF
3595c6c0 1693if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1694 rm -rf conftest*
1695 eval "ac_cv_func_res_send=yes"
1696else
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1699 rm -rf conftest*
1700 eval "ac_cv_func_res_send=no"
1701fi
1702rm -f conftest*
1703fi
1704
1705if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
1706 echo "$ac_t""yes" 1>&6
1707 :
1708else
1709 echo "$ac_t""no" 1>&6
1710echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3595c6c0 1711echo "configure:1712: checking for res_send in -lresolv" >&5
ea0caf4a 1712ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
1713if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1715else
1716 ac_save_LIBS="$LIBS"
1717LIBS="-lresolv $LIBS"
1718cat > conftest.$ac_ext <<EOF
3595c6c0 1719#line 1720 "configure"
ea0caf4a 1720#include "confdefs.h"
1721/* Override any gcc2 internal prototype to avoid an error. */
1722/* We use char because int might match the return type of a gcc2
1723 builtin and then its argument prototype would still apply. */
1724char res_send();
1725
1726int main() {
1727res_send()
1728; return 0; }
1729EOF
3595c6c0 1730if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1731 rm -rf conftest*
1732 eval "ac_cv_lib_$ac_lib_var=yes"
1733else
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1736 rm -rf conftest*
1737 eval "ac_cv_lib_$ac_lib_var=no"
1738fi
1739rm -f conftest*
1740LIBS="$ac_save_LIBS"
1741
1742fi
1743if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1744 echo "$ac_t""yes" 1>&6
1745 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1746 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1747 cat >> confdefs.h <<EOF
1748#define $ac_tr_lib 1
1749EOF
1750
1751 LIBS="-lresolv $LIBS"
1752
1753else
1754 echo "$ac_t""no" 1>&6
1755fi
1756
1757fi
1758
1759 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3595c6c0 1760echo "configure:1761: checking for hes_resolve in -lhesiod" >&5
ea0caf4a 1761ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
1762if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1764else
1765 ac_save_LIBS="$LIBS"
1766LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
1767cat > conftest.$ac_ext <<EOF
3595c6c0 1768#line 1769 "configure"
ea0caf4a 1769#include "confdefs.h"
1770/* Override any gcc2 internal prototype to avoid an error. */
1771/* We use char because int might match the return type of a gcc2
1772 builtin and then its argument prototype would still apply. */
1773char hes_resolve();
1774
1775int main() {
1776hes_resolve()
1777; return 0; }
1778EOF
3595c6c0 1779if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1780 rm -rf conftest*
1781 eval "ac_cv_lib_$ac_lib_var=yes"
1782else
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1785 rm -rf conftest*
1786 eval "ac_cv_lib_$ac_lib_var=no"
1787fi
1788rm -f conftest*
1789LIBS="$ac_save_LIBS"
1790
1791fi
1792if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1793 echo "$ac_t""yes" 1>&6
1794 :
1795else
1796 echo "$ac_t""no" 1>&6
1797{ echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
1798fi
1799
1800
1801 cat >> confdefs.h <<\EOF
1802#define HAVE_HESIOD 1
1803EOF
1804
1805
1806 case $PRO_C_DEFS in
1807 *DEFINE=HAVE_HESIOD*) ;;
1808 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
1809 esac
1810
1811
1812fi
1813
1814# Zephyr support
1815echo $ac_n "checking for Zephyr""... $ac_c" 1>&6
3595c6c0 1816echo "configure:1817: checking for Zephyr" >&5
ea0caf4a 1817# Check whether --with-zephyr or --without-zephyr was given.
1818if test "${with_zephyr+set}" = set; then
1819 withval="$with_zephyr"
1820 zephyr="$withval"
1821else
1822 zephyr=no
1823fi
1824
1825echo "$ac_t""$zephyr" 1>&6
1826if test "$zephyr" != no; then
1827 if test "$zephyr" != yes; then
1828
1829
1830 case $CPPFLAGS in
1831 *-I$zephyr/include*) ;;
1832 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
1833 esac
1834
1835
1836 case $PRO_C_INCLUDES in
1837 *INCLUDE=$zephyr/include*) ;;
1838 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
1839 esac
1840
1841
1842
1843 case $LIBPATH in
1844 *-L$zephyr/lib*) ;;
1845 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
1846 esac
1847
1848 fi
1849 echo $ac_n "checking for ZInitialize in -lzephyr""... $ac_c" 1>&6
3595c6c0 1850echo "configure:1851: checking for ZInitialize in -lzephyr" >&5
ea0caf4a 1851ac_lib_var=`echo zephyr'_'ZInitialize | sed 'y%./+-%__p_%'`
1852if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1854else
1855 ac_save_LIBS="$LIBS"
1856LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS"
1857cat > conftest.$ac_ext <<EOF
3595c6c0 1858#line 1859 "configure"
ea0caf4a 1859#include "confdefs.h"
1860/* Override any gcc2 internal prototype to avoid an error. */
1861/* We use char because int might match the return type of a gcc2
1862 builtin and then its argument prototype would still apply. */
1863char ZInitialize();
1864
1865int main() {
1866ZInitialize()
1867; return 0; }
1868EOF
3595c6c0 1869if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 1870 rm -rf conftest*
1871 eval "ac_cv_lib_$ac_lib_var=yes"
1872else
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1875 rm -rf conftest*
1876 eval "ac_cv_lib_$ac_lib_var=no"
1877fi
1878rm -f conftest*
1879LIBS="$ac_save_LIBS"
1880
1881fi
1882if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1883 echo "$ac_t""yes" 1>&6
1884 :
1885else
1886 echo "$ac_t""no" 1>&6
1887{ echo "configure: error: Zephyr library not found" 1>&2; exit 1; }
1888fi
1889
1890
1891 cat >> confdefs.h <<\EOF
1892#define HAVE_ZEPHYR 1
1893EOF
1894
1895
1896 case $PRO_C_DEFS in
1897 *DEFINE=HAVE_ZEPHYR*) ;;
1898 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
1899 esac
1900
1901
1902fi
1903
33567bea 1904# RSAREF support (default: build util/rsaref if present)
1905echo $ac_n "checking for RSAREF""... $ac_c" 1>&6
3595c6c0 1906echo "configure:1907: checking for RSAREF" >&5
33567bea 1907# Check whether --with-rsaref or --without-rsaref was given.
1908if test "${with_rsaref+set}" = set; then
1909 withval="$with_rsaref"
1910 rsaref="$withval"
1911 RSAREF_CPPFLAGS="-I$rsaref/include"
1912 RSAREF_LIBS="$rsaref/lib/rsaref.a"
1913else
1914 RSAREF_SUBDIRS=reg_svr
1915 if test -d $srcdir/util/rsaref; then
1916 rsaref=$srcdir/util/rsaref
1917 RSAREF_SUBDIRS="util/rsaref reg_svr"
1918 RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
1919 # autoconf can't deal with creating util/rsaref if util doesn't exist
1920 if test ! -d util; then
1921 mkdir util
1922 fi
3fb6166b 1923 RSAREF_CPPFLAGS='-I$(SRCTOP)/util/rsaref'
33567bea 1924 RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
3fb6166b 1925 RSAREF_LIBDEP='$(BUILDTOP)/util/rsaref/rsaref.a'
33567bea 1926 else
1927 rsaref=no
1928 fi
1929fi
1930
1931echo "$ac_t""$rsaref" 1>&6
1932if test "$rsaref" != no; then
1933
1934 cat >> confdefs.h <<\EOF
1935#define HAVE_RSAREF 1
1936EOF
1937
1938
1939 case $PRO_C_DEFS in
1940 *DEFINE=HAVE_RSAREF*) ;;
1941 *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
1942 esac
1943
1944
1945fi
1946
1947
1948
1949
3fb6166b 1950
bbdb0564 1951# Oracle (default: yes, if $ORACLE_HOME is set)
ea0caf4a 1952echo $ac_n "checking for Oracle""... $ac_c" 1>&6
3595c6c0 1953echo "configure:1954: checking for Oracle" >&5
ea0caf4a 1954# Check whether --with-oracle or --without-oracle was given.
1955if test "${with_oracle+set}" = set; then
1956 withval="$with_oracle"
1957 oracle="$withval"
1958else
bbdb0564 1959 if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
1960 oracle=$ORACLE_HOME
ea0caf4a 1961 else
1962 oracle=no
1963 fi
1964fi
1965
1966echo "$ac_t""$oracle" 1>&6
1967if test "$oracle" != no; then
cd357ef5 1968 echo $ac_n "checking Pro*C version""... $ac_c" 1>&6
3595c6c0 1969echo "configure:1970: checking Pro*C version" >&5
cd357ef5 1970 ORACLE_HOME=$oracle release=`$ORACLE_HOME/bin/proc | awk '/Release/ {print $3;}'`
1971 echo "$ac_t""$release" 1>&6
1972 case $release in
1973 2.0.6.0.0)
1974 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
1975 ;;
1976 *)
1977 SQL_LIBS="-L$oracle/lib -lclntsh -lxa -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 `cat $oracle/rdbms/lib/sysliblist` -lm -lthread"
1978 ;;
1979 esac
ea0caf4a 1980 SVRSUBDIRS='$(SVRDIRS)'
9b1f5e48 1981 SERVER_OUTPUT_FILES="db/Makefile server/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile incremental/Makefile reg_svr/Makefile regtape/Makefile"
ea0caf4a 1982 PRO_C=$oracle/bin/proc
1983 PRO_C_OPTS=CODE=ANSI_C
cd357ef5 1984 PRO_C_DEFS="DEFINE=_PROC_ $PRO_C_DEFS"
ea0caf4a 1985fi
1986
1987
1988
1989
1990
1991
1992
3595c6c0 1993# Java support, for webmoira
1994echo $ac_n "checking for Java""... $ac_c" 1>&6
1995echo "configure:1996: checking for Java" >&5
1996# Check whether --with-java or --without-java was given.
1997if test "${with_java+set}" = set; then
1998 withval="$with_java"
1999 java="$withval"
2000else
2001 if test -n "$JAVA_HOME" -a -d "$JAVA_HOME"; then
2002 java=$JAVA_HOME
2003 else
2004 java=no
2005 fi
2006fi
2007
2008echo "$ac_t""$java" 1>&6
2009if test "$java" != no; then
2010 if test "$java" != yes; then
2011 JAVA_CPPFLAGS="-I$java/include -I$java/include/$short_os"
2012 fi
2013
2014 cat >> confdefs.h <<\EOF
2015#define HAVE_JAVA 1
2016EOF
2017
2018
2019 case $PRO_C_DEFS in
2020 *DEFINE=HAVE_JAVA*) ;;
2021 *) PRO_C_DEFS=DEFINE=HAVE_JAVA\ $PRO_C_DEFS ;;
2022 esac
2023
2024
2025
2026 WEBMOIRA_SUBDIRS="webmoira"
2027 WEBMOIRA_OUTPUT_FILES="webmoira/Makefile"
2028fi
2029
2030
9b1f5e48 2031# LDAP support
2032echo $ac_n "checking for LDAP""... $ac_c" 1>&6
3595c6c0 2033echo "configure:2034: checking for LDAP" >&5
9b1f5e48 2034# Check whether --with-ldap or --without-ldap was given.
2035if test "${with_ldap+set}" = set; then
2036 withval="$with_ldap"
2037 ldap="$withval"
2038else
2039 if test -n "$LDAP_HOME" -a -d "$LDAP_HOME"; then
2040 ldap=$LDAP_HOME
2041 else
2042 ldap=no
2043 fi
2044fi
2045
2046echo "$ac_t""$ldap" 1>&6
2047if test "$ldap" != no -a "$oracle" != no; then
2048 if test "$ldap" != yes; then
2049 LDAP_CPPFLAGS="-I$ldap/include"
2050 LDAP_LIBS="-L$ldap/lib"
2051 fi
2052
2053 cat >> confdefs.h <<\EOF
2054#define HAVE_LDAP 1
2055EOF
2056
2057
2058 case $PRO_C_DEFS in
2059 *DEFINE=HAVE_LDAP*) ;;
2060 *) PRO_C_DEFS=DEFINE=HAVE_LDAP\ $PRO_C_DEFS ;;
2061 esac
2062
2063
2064
2065 WINAD_SUBDIRS="winad"
2066 WINAD_OUTPUT_FILES="incremental/winad/Makefile"
2067fi
2068
2069
2070
2071
ea0caf4a 2072# AFS support
2073echo $ac_n "checking for AFS""... $ac_c" 1>&6
3595c6c0 2074echo "configure:2075: checking for AFS" >&5
ea0caf4a 2075# Check whether --with-afs or --without-afs was given.
2076if test "${with_afs+set}" = set; then
2077 withval="$with_afs"
2078 afs="$withval"
2079else
2080 afs=no
2081fi
2082
2083echo "$ac_t""$afs" 1>&6
2084if test "$afs" != no -a "$oracle" != no; then
2085 if test "$afs" != yes; then
2086 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
2087 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
2088 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
2089 AFS_DIR=$afs
2090 fi
2091 echo $ac_n "checking for insque""... $ac_c" 1>&6
3595c6c0 2092echo "configure:2093: checking for insque" >&5
ea0caf4a 2093if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2095else
2096 cat > conftest.$ac_ext <<EOF
3595c6c0 2097#line 2098 "configure"
ea0caf4a 2098#include "confdefs.h"
2099/* System header to define __stub macros and hopefully few prototypes,
2100 which can conflict with char insque(); below. */
2101#include <assert.h>
2102/* Override any gcc2 internal prototype to avoid an error. */
2103/* We use char because int might match the return type of a gcc2
2104 builtin and then its argument prototype would still apply. */
2105char insque();
2106
2107int main() {
2108
2109/* The GNU C library defines this for functions which it implements
2110 to always fail with ENOSYS. Some functions are actually named
2111 something starting with __ and the normal name is an alias. */
2112#if defined (__stub_insque) || defined (__stub___insque)
2113choke me
2114#else
2115insque();
2116#endif
2117
2118; return 0; }
2119EOF
3595c6c0 2120if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 2121 rm -rf conftest*
2122 eval "ac_cv_func_insque=yes"
2123else
2124 echo "configure: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2126 rm -rf conftest*
2127 eval "ac_cv_func_insque=no"
2128fi
2129rm -f conftest*
2130fi
2131
2132if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then
2133 echo "$ac_t""yes" 1>&6
2134 :
2135else
2136 echo "$ac_t""no" 1>&6
2137echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6
3595c6c0 2138echo "configure:2139: checking for insque in -lcompat" >&5
ea0caf4a 2139ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'`
2140if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2142else
2143 ac_save_LIBS="$LIBS"
2144LIBS="-lcompat $LIBS"
2145cat > conftest.$ac_ext <<EOF
3595c6c0 2146#line 2147 "configure"
ea0caf4a 2147#include "confdefs.h"
2148/* Override any gcc2 internal prototype to avoid an error. */
2149/* We use char because int might match the return type of a gcc2
2150 builtin and then its argument prototype would still apply. */
2151char insque();
2152
2153int main() {
2154insque()
2155; return 0; }
2156EOF
3595c6c0 2157if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 2158 rm -rf conftest*
2159 eval "ac_cv_lib_$ac_lib_var=yes"
2160else
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2163 rm -rf conftest*
2164 eval "ac_cv_lib_$ac_lib_var=no"
2165fi
2166rm -f conftest*
2167LIBS="$ac_save_LIBS"
2168
2169fi
2170if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2171 echo "$ac_t""yes" 1>&6
2172 AFS_EXTRA_LIBS="-lcompat"
2173else
2174 echo "$ac_t""no" 1>&6
2175{ echo "configure: error: insque not found" 1>&2; exit 1; }
2176fi
2177
2178fi
2179
2180 echo $ac_n "checking for sigvec""... $ac_c" 1>&6
3595c6c0 2181echo "configure:2182: checking for sigvec" >&5
ea0caf4a 2182if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184else
2185 cat > conftest.$ac_ext <<EOF
3595c6c0 2186#line 2187 "configure"
ea0caf4a 2187#include "confdefs.h"
2188/* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char sigvec(); below. */
2190#include <assert.h>
2191/* Override any gcc2 internal prototype to avoid an error. */
2192/* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2194char sigvec();
2195
2196int main() {
2197
2198/* The GNU C library defines this for functions which it implements
2199 to always fail with ENOSYS. Some functions are actually named
2200 something starting with __ and the normal name is an alias. */
2201#if defined (__stub_sigvec) || defined (__stub___sigvec)
2202choke me
2203#else
2204sigvec();
2205#endif
2206
2207; return 0; }
2208EOF
3595c6c0 2209if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 2210 rm -rf conftest*
2211 eval "ac_cv_func_sigvec=yes"
2212else
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2215 rm -rf conftest*
2216 eval "ac_cv_func_sigvec=no"
2217fi
2218rm -f conftest*
2219fi
2220
2221if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
2222 echo "$ac_t""yes" 1>&6
2223 :
2224else
2225 echo "$ac_t""no" 1>&6
2226echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6
3595c6c0 2227echo "configure:2228: checking for sigvec in -lucb" >&5
ea0caf4a 2228ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'`
2229if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2231else
2232 ac_save_LIBS="$LIBS"
2233LIBS="-lucb -L/usr/ucblib $LIBS"
2234cat > conftest.$ac_ext <<EOF
3595c6c0 2235#line 2236 "configure"
ea0caf4a 2236#include "confdefs.h"
2237/* Override any gcc2 internal prototype to avoid an error. */
2238/* We use char because int might match the return type of a gcc2
2239 builtin and then its argument prototype would still apply. */
2240char sigvec();
2241
2242int main() {
2243sigvec()
2244; return 0; }
2245EOF
3595c6c0 2246if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 2247 rm -rf conftest*
2248 eval "ac_cv_lib_$ac_lib_var=yes"
2249else
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2252 rm -rf conftest*
2253 eval "ac_cv_lib_$ac_lib_var=no"
2254fi
2255rm -f conftest*
2256LIBS="$ac_save_LIBS"
2257
2258fi
2259if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2260 echo "$ac_t""yes" 1>&6
2261 AFS_EXTRA_LIBS="$AFS_EXTRA_LIBS -L/usr/ucblib -lc -lucb"
2262else
2263 echo "$ac_t""no" 1>&6
2264:
2265fi
2266
2267fi
2268
2269 echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6
3595c6c0 2270echo "configure:2271: checking for pioctl in -lsys" >&5
ea0caf4a 2271ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'`
2272if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2274else
2275 ac_save_LIBS="$LIBS"
2276LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys $AFS_EXTRA_LIBS $LIBS"
2277cat > conftest.$ac_ext <<EOF
3595c6c0 2278#line 2279 "configure"
ea0caf4a 2279#include "confdefs.h"
2280/* Override any gcc2 internal prototype to avoid an error. */
2281/* We use char because int might match the return type of a gcc2
2282 builtin and then its argument prototype would still apply. */
2283char pioctl();
2284
2285int main() {
2286pioctl()
2287; return 0; }
2288EOF
3595c6c0 2289if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 2290 rm -rf conftest*
2291 eval "ac_cv_lib_$ac_lib_var=yes"
2292else
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2295 rm -rf conftest*
2296 eval "ac_cv_lib_$ac_lib_var=no"
2297fi
2298rm -f conftest*
2299LIBS="$ac_save_LIBS"
2300
2301fi
2302if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2303 echo "$ac_t""yes" 1>&6
2304 :
2305else
2306 echo "$ac_t""no" 1>&6
2307{ echo "configure: error: AFS libraries not found" 1>&2; exit 1; }
2308fi
2309
2310
2311 cat >> confdefs.h <<\EOF
2312#define HAVE_AFS 1
2313EOF
2314
2315
2316 case $PRO_C_DEFS in
2317 *DEFINE=HAVE_AFS*) ;;
2318 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
2319 esac
2320
2321
9ed720ef 2322
9b1f5e48 2323 AFS_SUBDIRS="afs"
2324 AFS_OUTPUT_FILES="incremental/afs/Makefile"
9ed720ef 2325 if test -d $srcdir/afssync; then
9b1f5e48 2326 AFS_SYNCDIR="afssync"
9ed720ef 2327 AFS_OUTPUT_FILES="$AFS_OUTPUT_FILES afssync/Makefile"
2328 fi
ea0caf4a 2329fi
2330
2331
2332
2333
2334
2335
9ed720ef 2336
9b1f5e48 2337
ea0caf4a 2338# GNU readline
2339echo "checking for GNU readline..." 1>&6
3595c6c0 2340echo "configure:2341: checking for GNU readline..." >&5
ea0caf4a 2341# Check whether --with-readline or --without-readline was given.
2342if test "${with_readline+set}" = set; then
2343 withval="$with_readline"
ee85084d 2344 readline="$withval"; echo "$ac_t""$withval" 1>&6
ea0caf4a 2345else
2346 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3595c6c0 2347echo "configure:2348: checking for readline in -lreadline" >&5
ea0caf4a 2348ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2349if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2351else
2352 ac_save_LIBS="$LIBS"
2353LIBS="-lreadline -ltermcap $LIBS"
2354cat > conftest.$ac_ext <<EOF
3595c6c0 2355#line 2356 "configure"
ea0caf4a 2356#include "confdefs.h"
2357/* Override any gcc2 internal prototype to avoid an error. */
2358/* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2360char readline();
2361
2362int main() {
2363readline()
2364; return 0; }
2365EOF
3595c6c0 2366if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 2367 rm -rf conftest*
2368 eval "ac_cv_lib_$ac_lib_var=yes"
2369else
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 rm -rf conftest*
2373 eval "ac_cv_lib_$ac_lib_var=no"
2374fi
2375rm -f conftest*
2376LIBS="$ac_save_LIBS"
2377
2378fi
2379if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 readline=yes
2382else
2383 echo "$ac_t""no" 1>&6
ee85084d 2384if test "$athena" = true; then
2385 unset ac_cv_lib_readline_readline
2386 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3595c6c0 2387echo "configure:2388: checking for readline in -lreadline" >&5
ee85084d 2388ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2389if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2391else
2392 ac_save_LIBS="$LIBS"
2393LIBS="-lreadline -L/mit/gnu/lib -ltermcap $LIBS"
2394cat > conftest.$ac_ext <<EOF
3595c6c0 2395#line 2396 "configure"
ee85084d 2396#include "confdefs.h"
2397/* Override any gcc2 internal prototype to avoid an error. */
2398/* We use char because int might match the return type of a gcc2
2399 builtin and then its argument prototype would still apply. */
2400char readline();
2401
2402int main() {
2403readline()
2404; return 0; }
2405EOF
3595c6c0 2406if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ee85084d 2407 rm -rf conftest*
2408 eval "ac_cv_lib_$ac_lib_var=yes"
2409else
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2412 rm -rf conftest*
2413 eval "ac_cv_lib_$ac_lib_var=no"
2414fi
2415rm -f conftest*
2416LIBS="$ac_save_LIBS"
2417
2418fi
2419if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2420 echo "$ac_t""yes" 1>&6
2421 readline=/mit/gnu
2422else
2423 echo "$ac_t""no" 1>&6
ea0caf4a 2424:
2425fi
2426
ee85084d 2427 fi
2428fi
2429
ea0caf4a 2430fi
2431
2432if test "$readline" != no; then
2433 if test "$readline" != yes; then
c5c5a18d 2434 READLINE_CPPFLAGS="-I$readline/include"
ee85084d 2435 READLINE_LIBS="-L$readline/lib"
ea0caf4a 2436 fi
ee85084d 2437 READLINE_CPPFLAGS="$READLINE_CPPFLAGS -DHAVE_READLINE"
2438 READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
ea0caf4a 2439fi
2440
2441
2442
2443# Curses
2444curses=curses
2445echo "checking for curses" 1>&6
3595c6c0 2446echo "configure:2447: checking for curses" >&5
ea0caf4a 2447echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
3595c6c0 2448echo "configure:2449: checking for main in -lcurses" >&5
ea0caf4a 2449ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2450if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2452else
2453 ac_save_LIBS="$LIBS"
2454LIBS="-lcurses $LIBS"
2455cat > conftest.$ac_ext <<EOF
3595c6c0 2456#line 2457 "configure"
ea0caf4a 2457#include "confdefs.h"
2458
2459int main() {
2460main()
2461; return 0; }
2462EOF
3595c6c0 2463if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 2464 rm -rf conftest*
2465 eval "ac_cv_lib_$ac_lib_var=yes"
2466else
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2469 rm -rf conftest*
2470 eval "ac_cv_lib_$ac_lib_var=no"
2471fi
2472rm -f conftest*
2473LIBS="$ac_save_LIBS"
2474
2475fi
2476if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2478 :
2479else
2480 echo "$ac_t""no" 1>&6
2481echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
3595c6c0 2482echo "configure:2483: checking for main in -lncurses" >&5
ea0caf4a 2483ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2484if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2486else
2487 ac_save_LIBS="$LIBS"
2488LIBS="-lncurses $LIBS"
2489cat > conftest.$ac_ext <<EOF
3595c6c0 2490#line 2491 "configure"
ea0caf4a 2491#include "confdefs.h"
2492
2493int main() {
2494main()
2495; return 0; }
2496EOF
3595c6c0 2497if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 2498 rm -rf conftest*
2499 eval "ac_cv_lib_$ac_lib_var=yes"
2500else
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2503 rm -rf conftest*
2504 eval "ac_cv_lib_$ac_lib_var=no"
2505fi
2506rm -f conftest*
2507LIBS="$ac_save_LIBS"
2508
2509fi
2510if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2511 echo "$ac_t""yes" 1>&6
2512 curses=ncurses
2513else
2514 echo "$ac_t""no" 1>&6
2515fi
2516
2517fi
2518
2519if test -n "$curses"; then
2520 OLDLIBS=$LIBS
2521 LIBS=-l$curses
2522 echo "checking if curses needs termcap" 1>&6
3595c6c0 2523echo "configure:2524: checking if curses needs termcap" >&5
ea0caf4a 2524 if test "$cross_compiling" = yes; then
2525 :
2526else
2527 cat > conftest.$ac_ext <<EOF
3595c6c0 2528#line 2529 "configure"
ea0caf4a 2529#include "confdefs.h"
2530#include <curses.h>
2531 main(int argc, char **argv)
2532 {
2533 initscr();
2534 endwin();
2535 return 0;
2536 }
2537EOF
3595c6c0 2538if { (eval echo configure:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
ea0caf4a 2539then
2540 CURSES_LIBS="-l$curses"
2541else
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2544 rm -fr conftest*
2545 LIBS="-l$curses -ltermcap"
2546 if test "$cross_compiling" = yes; then
2547 :
2548else
2549 cat > conftest.$ac_ext <<EOF
3595c6c0 2550#line 2551 "configure"
ea0caf4a 2551#include "confdefs.h"
2552#include <curses.h>
2553 main(int argc, char **argv)
2554 {
2555 initscr();
2556 endwin();
2557 return 0;
2558 }
2559EOF
3595c6c0 2560if { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
ea0caf4a 2561then
2562 CURSES_LIBS="-l$curses -ltermcap"
2563else
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2566 rm -fr conftest*
2567 :
2568fi
2569rm -fr conftest*
2570fi
2571
2572fi
2573rm -fr conftest*
2574fi
2575
2576 LIBS=$OLDLIBS
2577fi
2578if test -n "$CURSES_LIBS"; then
2579 OLDLIBS=$LIBS
2580 LIBS=$CURSES_LIBS
2581 cat > conftest.$ac_ext <<EOF
3595c6c0 2582#line 2583 "configure"
ea0caf4a 2583#include "confdefs.h"
2584#include <curses.h>
2585int main() {
2586WINDOW *w; getmaxx(w);
2587; return 0; }
2588EOF
3595c6c0 2589if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 2590 rm -rf conftest*
2591 :
2592else
2593 echo "configure: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2595 rm -rf conftest*
2596 cat > conftest.$ac_ext <<EOF
3595c6c0 2597#line 2598 "configure"
ea0caf4a 2598#include "confdefs.h"
2599#include <curses.h>
2600int main() {
2601WINDOW *w; w->_maxx;
2602; return 0; }
2603EOF
3595c6c0 2604if { (eval echo configure:2605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ea0caf4a 2605 rm -rf conftest*
2606 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
2607else
2608 echo "configure: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2610 rm -rf conftest*
2611 CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
2612fi
2613rm -f conftest*
2614fi
4753fa79 2615rm -f conftest*
2616 cat > conftest.$ac_ext <<EOF
3595c6c0 2617#line 2618 "configure"
4753fa79 2618#include "confdefs.h"
2619#include <curses.h>
2620int main() {
2621newterm(NULL, NULL, NULL);
2622; return 0; }
2623EOF
3595c6c0 2624if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4753fa79 2625 rm -rf conftest*
2626 CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM"
2627else
2628 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2630fi
ea0caf4a 2631rm -f conftest*
2632 LIBS=$OLDLIBS
2633 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
2634 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
2635else
2636 echo "configure: warning: Couldn't find -lcurses" 1>&2
2637fi
2638
2639
2640
2641
2642
533bacb3 2643for ac_func in getusershell strlcpy strlcat uname
ea0caf4a 2644do
2645echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3595c6c0 2646echo "configure:2647: checking for $ac_func" >&5
ea0caf4a 2647if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2649else
2650 cat > conftest.$ac_ext <<EOF
3595c6c0 2651#line 2652 "configure"
ea0caf4a 2652#include "confdefs.h"
2653/* System header to define __stub macros and hopefully few prototypes,
2654 which can conflict with char $ac_func(); below. */
2655#include <assert.h>
2656/* Override any gcc2 internal prototype to avoid an error. */
2657/* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2659char $ac_func();
2660
2661int main() {
2662
2663/* The GNU C library defines this for functions which it implements
2664 to always fail with ENOSYS. Some functions are actually named
2665 something starting with __ and the normal name is an alias. */
2666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2667choke me
2668#else
2669$ac_func();
2670#endif
2671
2672; return 0; }
2673EOF
3595c6c0 2674if { (eval echo configure:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ea0caf4a 2675 rm -rf conftest*
2676 eval "ac_cv_func_$ac_func=yes"
2677else
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2680 rm -rf conftest*
2681 eval "ac_cv_func_$ac_func=no"
2682fi
2683rm -f conftest*
2684fi
2685
2686if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2687 echo "$ac_t""yes" 1>&6
2688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2689 cat >> confdefs.h <<EOF
2690#define $ac_tr_func 1
2691EOF
2692
2693else
2694 echo "$ac_t""no" 1>&6
2695fi
2696done
2697
2698
533bacb3 2699echo $ac_n "checking for sigaction""... $ac_c" 1>&6
3595c6c0 2700echo "configure:2701: checking for sigaction" >&5
533bacb3 2701if eval "test \"`echo '$''{'ac_cv_func_sigaction'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2703else
2704 cat > conftest.$ac_ext <<EOF
3595c6c0 2705#line 2706 "configure"
533bacb3 2706#include "confdefs.h"
2707/* System header to define __stub macros and hopefully few prototypes,
2708 which can conflict with char sigaction(); below. */
2709#include <assert.h>
2710/* Override any gcc2 internal prototype to avoid an error. */
2711/* We use char because int might match the return type of a gcc2
2712 builtin and then its argument prototype would still apply. */
2713char sigaction();
2714
2715int main() {
2716
2717/* The GNU C library defines this for functions which it implements
2718 to always fail with ENOSYS. Some functions are actually named
2719 something starting with __ and the normal name is an alias. */
2720#if defined (__stub_sigaction) || defined (__stub___sigaction)
2721choke me
2722#else
2723sigaction();
2724#endif
2725
2726; return 0; }
2727EOF
3595c6c0 2728if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
533bacb3 2729 rm -rf conftest*
2730 eval "ac_cv_func_sigaction=yes"
2731else
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2734 rm -rf conftest*
2735 eval "ac_cv_func_sigaction=no"
2736fi
2737rm -f conftest*
2738fi
2739
2740if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 cat >> confdefs.h <<\EOF
2743#define HAVE_POSIX_SIGNALS 1
2744EOF
2745
2746else
2747 echo "$ac_t""no" 1>&6
2748fi
2749
2750
2751echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3595c6c0 2752echo "configure:2753: checking how to run the C preprocessor" >&5
533bacb3 2753# On Suns, sometimes $CPP names a directory.
2754if test -n "$CPP" && test -d "$CPP"; then
2755 CPP=
2756fi
2757if test -z "$CPP"; then
2758if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2760else
2761 # This must be in double quotes, not single quotes, because CPP may get
2762 # substituted into the Makefile and "${CC-cc}" will confuse make.
2763 CPP="${CC-cc} -E"
2764 # On the NeXT, cc -E runs the code through the compiler's parser,
2765 # not just through cpp.
2766 cat > conftest.$ac_ext <<EOF
3595c6c0 2767#line 2768 "configure"
533bacb3 2768#include "confdefs.h"
2769#include <assert.h>
2770Syntax Error
2771EOF
2772ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3595c6c0 2773{ (eval echo configure:2774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
533bacb3 2774ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2775if test -z "$ac_err"; then
2776 :
2777else
2778 echo "$ac_err" >&5
2779 echo "configure: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2781 rm -rf conftest*
2782 CPP="${CC-cc} -E -traditional-cpp"
2783 cat > conftest.$ac_ext <<EOF
3595c6c0 2784#line 2785 "configure"
533bacb3 2785#include "confdefs.h"
2786#include <assert.h>
2787Syntax Error
2788EOF
2789ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3595c6c0 2790{ (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
533bacb3 2791ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2792if test -z "$ac_err"; then
2793 :
2794else
2795 echo "$ac_err" >&5
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2798 rm -rf conftest*
2799 CPP="${CC-cc} -nologo -E"
2800 cat > conftest.$ac_ext <<EOF
3595c6c0 2801#line 2802 "configure"
533bacb3 2802#include "confdefs.h"
2803#include <assert.h>
2804Syntax Error
2805EOF
2806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3595c6c0 2807{ (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
533bacb3 2808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2809if test -z "$ac_err"; then
2810 :
2811else
2812 echo "$ac_err" >&5
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 rm -rf conftest*
2816 CPP=/lib/cpp
2817fi
2818rm -f conftest*
2819fi
2820rm -f conftest*
2821fi
2822rm -f conftest*
2823 ac_cv_prog_CPP="$CPP"
2824fi
2825 CPP="$ac_cv_prog_CPP"
2826else
2827 ac_cv_prog_CPP="$CPP"
2828fi
2829echo "$ac_t""$CPP" 1>&6
2830
7674bbe4 2831for ac_hdr in unistd.h getopt.h
533bacb3 2832do
2833ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2834echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3595c6c0 2835echo "configure:2836: checking for $ac_hdr" >&5
533bacb3 2836if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2838else
2839 cat > conftest.$ac_ext <<EOF
3595c6c0 2840#line 2841 "configure"
533bacb3 2841#include "confdefs.h"
2842#include <$ac_hdr>
2843EOF
2844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3595c6c0 2845{ (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
533bacb3 2846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2847if test -z "$ac_err"; then
2848 rm -rf conftest*
2849 eval "ac_cv_header_$ac_safe=yes"
2850else
2851 echo "$ac_err" >&5
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2854 rm -rf conftest*
2855 eval "ac_cv_header_$ac_safe=no"
2856fi
2857rm -f conftest*
2858fi
2859if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2860 echo "$ac_t""yes" 1>&6
2861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2862 cat >> confdefs.h <<EOF
2863#define $ac_tr_hdr 1
2864EOF
2865
2866else
2867 echo "$ac_t""no" 1>&6
2868fi
2869done
2870
2871
7674bbe4 2872ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
2873echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
3595c6c0 2874echo "configure:2875: checking for netinet/in.h" >&5
7674bbe4 2875if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2877else
2878 cat > conftest.$ac_ext <<EOF
3595c6c0 2879#line 2880 "configure"
7674bbe4 2880#include "confdefs.h"
2881#include <netinet/in.h>
2882EOF
2883ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3595c6c0 2884{ (eval echo configure:2885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7674bbe4 2885ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2886if test -z "$ac_err"; then
2887 rm -rf conftest*
2888 eval "ac_cv_header_$ac_safe=yes"
2889else
2890 echo "$ac_err" >&5
2891 echo "configure: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2893 rm -rf conftest*
2894 eval "ac_cv_header_$ac_safe=no"
2895fi
2896rm -f conftest*
2897fi
2898if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 cat >> confdefs.h <<\EOF
2901#define HAVE_NETINET_IN_H 1
2902EOF
2903
2904else
2905 echo "$ac_t""no" 1>&6
2906no_netinet_in=yes
2907fi
2908
2909
2910if test "$no_netinet_in" != "yes"; then
2911 echo $ac_n "checking for in_addr_t defined in netinet/in.h""... $ac_c" 1>&6
3595c6c0 2912echo "configure:2913: checking for in_addr_t defined in netinet/in.h" >&5
7674bbe4 2913 cat > conftest.$ac_ext <<EOF
3595c6c0 2914#line 2915 "configure"
7674bbe4 2915#include "confdefs.h"
2916#include <netinet/in.h>
2917EOF
2918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 egrep "in_addr_t" >/dev/null 2>&1; then
2920 rm -rf conftest*
2921 ac_cv_type_in_addr_t=yes
2922else
2923 rm -rf conftest*
2924 ac_cv_type_in_addr_t=no
2925fi
2926rm -f conftest*
2927
2928 echo "$ac_t""$ac_cv_type_in_addr_t" 1>&6
2929fi
2930
2931if test "$ac_cv_type_in_addr_t" != "yes"; then
2932 cat >> confdefs.h <<\EOF
2933#define in_addr_t uint32_t
2934EOF
2935
2936fi
2937
ea0caf4a 2938
25f58600 2939 case $PRO_C_INCLUDES in
2940 *INCLUDE='$(srcdir)'*) ;;
2941 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2942 esac
2943
2944
ea0caf4a 2945
2946 case $CPPFLAGS in
2947 *-I'$(SRCTOP)/include'*) ;;
2948 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
2949 esac
2950
2951
2952 case $PRO_C_INCLUDES in
2953 *INCLUDE='$(SRCTOP)/include'*) ;;
2954 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
2955 esac
2956
2957
2958
2959
25f58600 2960 case $CPPFLAGS in
2961 *-I'$(SRCTOP)/lib'*) ;;
2962 *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
2963 esac
2964
2965
2966 case $PRO_C_INCLUDES in
2967 *INCLUDE='$(SRCTOP)/lib'*) ;;
2968 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
2969 esac
2970
2971
2972
2973
ea0caf4a 2974 case $CPPFLAGS in
2975 *-I'$(BUILDTOP)/lib'*) ;;
2976 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
2977 esac
2978
2979
2980 case $PRO_C_INCLUDES in
2981 *INCLUDE='$(BUILDTOP)/lib'*) ;;
2982 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
2983 esac
2984
2985
2986
2987
2988 case $CPPFLAGS in
2989 *-I'$(BUILDTOP)/db'*) ;;
2990 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
2991 esac
2992
2993
2994 case $PRO_C_INCLUDES in
2995 *INCLUDE='$(BUILDTOP)/db'*) ;;
2996 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
2997 esac
2998
2999
9976f5e9 3000
3001
3002 case $CPPFLAGS in
3003 *-I'$(srcdir)'*) ;;
3004 *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
3005 esac
3006
3007
3008 case $PRO_C_INCLUDES in
3009 *INCLUDE='$(srcdir)'*) ;;
3010 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
3011 esac
3012
3013
ea0caf4a 3014LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
3015KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS"
3016LIBS="-lmoira $KLIBS"
3017
3018
3fb6166b 3019MR_LIBDEP='$(BUILDTOP)/lib/libmoira.a'
3020
3021
ea0caf4a 3022trap '' 1 2 15
3023cat > confcache <<\EOF
3024# This file is a shell script that caches the results of configure
3025# tests run on this system so they can be shared between configure
3026# scripts and configure runs. It is not useful on other systems.
3027# If it contains results you don't want to keep, you may remove or edit it.
3028#
3029# By default, configure uses ./config.cache as the cache file,
3030# creating it if it does not exist already. You can give configure
3031# the --cache-file=FILE option to use a different cache file; that is
3032# what configure does when it calls configure scripts in
3033# subdirectories, so they share the cache.
3034# Giving --cache-file=/dev/null disables caching, for debugging configure.
3035# config.status only pays attention to the cache file if you give it the
3036# --recheck option to rerun configure.
3037#
3038EOF
3039# The following way of writing the cache mishandles newlines in values,
3040# but we know of no workaround that is simple, portable, and efficient.
3041# So, don't put newlines in cache variables' values.
3042# Ultrix sh set writes to stderr and can't be redirected directly,
3043# and sets the high bit in the cache file unless we assign to the vars.
3044(set) 2>&1 |
ee85084d 3045 case `(ac_space=' '; set | grep ac_space) 2>&1` in
ea0caf4a 3046 *ac_space=\ *)
3047 # `set' does not quote correctly, so add quotes (double-quote substitution
3048 # turns \\\\ into \\, and sed turns \\ into \).
3049 sed -n \
3050 -e "s/'/'\\\\''/g" \
3051 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3052 ;;
3053 *)
3054 # `set' quotes correctly as required by POSIX, so do not add quotes.
3055 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3056 ;;
3057 esac >> confcache
3058if cmp -s $cache_file confcache; then
3059 :
3060else
3061 if test -w $cache_file; then
3062 echo "updating cache $cache_file"
3063 cat confcache > $cache_file
3064 else
3065 echo "not updating unwritable cache $cache_file"
3066 fi
3067fi
3068rm -f confcache
3069
3070trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3071
3072test "x$prefix" = xNONE && prefix=$ac_default_prefix
3073# Let make expand exec_prefix.
3074test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3075
3076# Any assignment to VPATH causes Sun make to only execute
3077# the first set of double-colon rules, so remove it if not needed.
3078# If there is a colon in the path, we need to keep it.
3079if test "x$srcdir" = x.; then
3080 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3081fi
3082
3083trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3084
3085# Transform confdefs.h into DEFS.
3086# Protect against shell expansion while executing Makefile rules.
3087# Protect against Makefile macro expansion.
3088cat > conftest.defs <<\EOF
3089s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3090s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3091s%\[%\\&%g
3092s%\]%\\&%g
3093s%\$%$$%g
3094EOF
3095DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3096rm -f conftest.defs
3097
3098
3099# Without the "./", some shells look in PATH for config.status.
3100: ${CONFIG_STATUS=./config.status}
3101
3102echo creating $CONFIG_STATUS
3103rm -f $CONFIG_STATUS
3104cat > $CONFIG_STATUS <<EOF
3105#! /bin/sh
3106# Generated automatically by configure.
3107# Run this file to recreate the current configuration.
3108# This directory was configured as follows,
3109# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3110#
3111# $0 $ac_configure_args
3112#
3113# Compiler output produced by configure, useful for debugging
3114# configure, is in ./config.log if it exists.
3115
3116ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3117for ac_option
3118do
3119 case "\$ac_option" in
3120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3121 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3122 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3123 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
ee85084d 3124 echo "$CONFIG_STATUS generated by autoconf version 2.13"
ea0caf4a 3125 exit 0 ;;
3126 -help | --help | --hel | --he | --h)
3127 echo "\$ac_cs_usage"; exit 0 ;;
3128 *) echo "\$ac_cs_usage"; exit 1 ;;
3129 esac
3130done
3131
3132ac_given_srcdir=$srcdir
3133ac_given_INSTALL="$INSTALL"
3134
3135trap 'rm -fr `echo "Makefile lib/Makefile include/Makefile clients/Makefile \
ee85084d 3136 clients/lib/Makefile clients/addusr/Makefile \
5e99c83e 3137 clients/blanche/Makefile clients/chfn/Makefile \
3138 clients/chpobox/Makefile clients/chsh/Makefile \
3139 clients/mailmaint/Makefile clients/moira/Makefile \
3140 clients/mrcheck/Makefile clients/mrtest/Makefile \
3595c6c0 3141 clients/stanley/Makefile clients/stella/Makefile \
3142 update/Makefile man/Makefile $WEBMOIRA_OUTPUT_FILES \
9b1f5e48 3143 $SERVER_OUTPUT_FILES $WINAD_OUTPUT_FILES $AFS_OUTPUT_FILES \
3144 $RSAREF_OUTPUT_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
ea0caf4a 3145EOF
3146cat >> $CONFIG_STATUS <<EOF
3147
3148# Protect against being on the right side of a sed subst in config.status.
3149sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3150 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3151$ac_vpsub
3152$extrasub
ee85084d 3153s%@SHELL@%$SHELL%g
ea0caf4a 3154s%@CFLAGS@%$CFLAGS%g
3155s%@CPPFLAGS@%$CPPFLAGS%g
3156s%@CXXFLAGS@%$CXXFLAGS%g
ee85084d 3157s%@FFLAGS@%$FFLAGS%g
ea0caf4a 3158s%@DEFS@%$DEFS%g
3159s%@LDFLAGS@%$LDFLAGS%g
3160s%@LIBS@%$LIBS%g
3161s%@exec_prefix@%$exec_prefix%g
3162s%@prefix@%$prefix%g
3163s%@program_transform_name@%$program_transform_name%g
3164s%@bindir@%$bindir%g
3165s%@sbindir@%$sbindir%g
3166s%@libexecdir@%$libexecdir%g
3167s%@datadir@%$datadir%g
3168s%@sysconfdir@%$sysconfdir%g
3169s%@sharedstatedir@%$sharedstatedir%g
3170s%@localstatedir@%$localstatedir%g
3171s%@libdir@%$libdir%g
3172s%@includedir@%$includedir%g
3173s%@oldincludedir@%$oldincludedir%g
3174s%@infodir@%$infodir%g
3175s%@mandir@%$mandir%g
3595c6c0 3176s%@host@%$host%g
3177s%@host_alias@%$host_alias%g
3178s%@host_cpu@%$host_cpu%g
3179s%@host_vendor@%$host_vendor%g
3180s%@host_os@%$host_os%g
ea0caf4a 3181s%@CC@%$CC%g
3182s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
ee85084d 3183s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
ea0caf4a 3184s%@INSTALL_DATA@%$INSTALL_DATA%g
3185s%@RANLIB@%$RANLIB%g
3186s%@SET_MAKE@%$SET_MAKE%g
3187s%@mrbindir@%$mrbindir%g
3188s%@subdirs@%$subdirs%g
3189s%@COM_ERR_SUBDIR@%$COM_ERR_SUBDIR%g
3190s%@COMPILE_ET@%$COMPILE_ET%g
7f7f279f 3191s%@REG_SVR_DEFS@%$REG_SVR_DEFS%g
3192s%@REG_SVR_INCLUDES@%$REG_SVR_INCLUDES%g
3193s%@REG_SVR_LIBS@%$REG_SVR_LIBS%g
33567bea 3194s%@RSAREF_CPPFLAGS@%$RSAREF_CPPFLAGS%g
3195s%@RSAREF_LIBS@%$RSAREF_LIBS%g
3196s%@RSAREF_SUBDIRS@%$RSAREF_SUBDIRS%g
3fb6166b 3197s%@RSAREF_LIBDEP@%$RSAREF_LIBDEP%g
ea0caf4a 3198s%@PRO_C@%$PRO_C%g
3199s%@PRO_C_DEFS@%$PRO_C_DEFS%g
3200s%@PRO_C_INCLUDES@%$PRO_C_INCLUDES%g
3201s%@PRO_C_OPTS@%$PRO_C_OPTS%g
3202s%@SQL_LIBS@%$SQL_LIBS%g
3203s%@SVRSUBDIRS@%$SVRSUBDIRS%g
3595c6c0 3204s%@JAVA_CPPFLAGS@%$JAVA_CPPFLAGS%g
9b1f5e48 3205s%@LDAP_CPPFLAGS@%$LDAP_CPPFLAGS%g
3206s%@LDAP_LIBS@%$LDAP_LIBS%g
3207s%@WINAD_SUBDIRS@%$WINAD_SUBDIRS%g
ea0caf4a 3208s%@AFS_CPPFLAGS@%$AFS_CPPFLAGS%g
3209s%@AFS_PRO_C_INCLUDES@%$AFS_PRO_C_INCLUDES%g
3210s%@AFS_LIBS@%$AFS_LIBS%g
3211s%@AFS_EXTRA_LIBS@%$AFS_EXTRA_LIBS%g
3212s%@AFS_DIR@%$AFS_DIR%g
9ed720ef 3213s%@AFS_SUBDIRS@%$AFS_SUBDIRS%g
9b1f5e48 3214s%@AFS_SYNCDIR@%$AFS_SYNCDIR%g
ea0caf4a 3215s%@READLINE_CPPFLAGS@%$READLINE_CPPFLAGS%g
3216s%@READLINE_LIBS@%$READLINE_LIBS%g
3217s%@CURSES_CPPFLAGS@%$CURSES_CPPFLAGS%g
3218s%@CURSES_LIBS@%$CURSES_LIBS%g
3219s%@CURSES_SUBDIRS@%$CURSES_SUBDIRS%g
533bacb3 3220s%@CPP@%$CPP%g
ea0caf4a 3221s%@KLIBS@%$KLIBS%g
3fb6166b 3222s%@MR_LIBDEP@%$MR_LIBDEP%g
ea0caf4a 3223
3224CEOF
3225EOF
3226
3227cat >> $CONFIG_STATUS <<\EOF
3228
3229# Split the substitutions into bite-sized pieces for seds with
3230# small command number limits, like on Digital OSF/1 and HP-UX.
3231ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3232ac_file=1 # Number of current file.
3233ac_beg=1 # First line for current file.
3234ac_end=$ac_max_sed_cmds # Line after last line for current file.
3235ac_more_lines=:
3236ac_sed_cmds=""
3237while $ac_more_lines; do
3238 if test $ac_beg -gt 1; then
3239 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3240 else
3241 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3242 fi
3243 if test ! -s conftest.s$ac_file; then
3244 ac_more_lines=false
3245 rm -f conftest.s$ac_file
3246 else
3247 if test -z "$ac_sed_cmds"; then
3248 ac_sed_cmds="sed -f conftest.s$ac_file"
3249 else
3250 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3251 fi
3252 ac_file=`expr $ac_file + 1`
3253 ac_beg=$ac_end
3254 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3255 fi
3256done
3257if test -z "$ac_sed_cmds"; then
3258 ac_sed_cmds=cat
3259fi
3260EOF
3261
3262cat >> $CONFIG_STATUS <<EOF
3263
3264CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile include/Makefile clients/Makefile \
ee85084d 3265 clients/lib/Makefile clients/addusr/Makefile \
5e99c83e 3266 clients/blanche/Makefile clients/chfn/Makefile \
3267 clients/chpobox/Makefile clients/chsh/Makefile \
3268 clients/mailmaint/Makefile clients/moira/Makefile \
3269 clients/mrcheck/Makefile clients/mrtest/Makefile \
3595c6c0 3270 clients/stanley/Makefile clients/stella/Makefile \
3271 update/Makefile man/Makefile $WEBMOIRA_OUTPUT_FILES \
9b1f5e48 3272 $SERVER_OUTPUT_FILES $WINAD_OUTPUT_FILES $AFS_OUTPUT_FILES \
3273 $RSAREF_OUTPUT_FILES"}
ea0caf4a 3274EOF
3275cat >> $CONFIG_STATUS <<\EOF
3276for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3278 case "$ac_file" in
3279 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3280 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3281 *) ac_file_in="${ac_file}.in" ;;
3282 esac
3283
3284 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3285
3286 # Remove last slash and all that follows it. Not all systems have dirname.
3287 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3288 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3289 # The file is in a subdirectory.
3290 test ! -d "$ac_dir" && mkdir "$ac_dir"
3291 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3292 # A "../" for each directory in $ac_dir_suffix.
3293 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3294 else
3295 ac_dir_suffix= ac_dots=
3296 fi
3297
3298 case "$ac_given_srcdir" in
3299 .) srcdir=.
3300 if test -z "$ac_dots"; then top_srcdir=.
3301 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3302 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3303 *) # Relative path.
3304 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3305 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3306 esac
3307
3308 case "$ac_given_INSTALL" in
3309 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3310 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3311 esac
3312
3313 echo creating "$ac_file"
3314 rm -f "$ac_file"
3315 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3316 case "$ac_file" in
3317 *Makefile*) ac_comsub="1i\\
3318# $configure_input" ;;
3319 *) ac_comsub= ;;
3320 esac
3321
3322 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3323 sed -e "$ac_comsub
3324s%@configure_input@%$configure_input%g
3325s%@srcdir@%$srcdir%g
3326s%@top_srcdir@%$top_srcdir%g
3327s%@INSTALL@%$INSTALL%g
3328" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3329fi; done
3330rm -f conftest.s*
3331
3332EOF
3333cat >> $CONFIG_STATUS <<EOF
3334
3335EOF
3336cat >> $CONFIG_STATUS <<\EOF
3337
3338exit 0
3339EOF
3340chmod +x $CONFIG_STATUS
3341rm -fr confdefs* $ac_clean_files
3342test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3343
3344if test "$no_recursion" != yes; then
3345
3346 # Remove --cache-file and --srcdir arguments so they do not pile up.
3347 ac_sub_configure_args=
3348 ac_prev=
3349 for ac_arg in $ac_configure_args; do
3350 if test -n "$ac_prev"; then
3351 ac_prev=
3352 continue
3353 fi
3354 case "$ac_arg" in
3355 -cache-file | --cache-file | --cache-fil | --cache-fi \
3356 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3357 ac_prev=cache_file ;;
3358 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3359 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3360 ;;
3361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3362 ac_prev=srcdir ;;
3363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3364 ;;
3365 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3366 esac
3367 done
3368
3369 for ac_config_dir in $COM_ERR_SUBDIR; do
3370
3371 # Do not complain, so a configure script can configure whichever
3372 # parts of a large source tree are present.
3373 if test ! -d $srcdir/$ac_config_dir; then
3374 continue
3375 fi
3376
3377 echo configuring in $ac_config_dir
3378
3379 case "$srcdir" in
3380 .) ;;
3381 *)
3382 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3383 else
3384 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3385 fi
3386 ;;
3387 esac
3388
3389 ac_popdir=`pwd`
3390 cd $ac_config_dir
3391
3392 # A "../" for each directory in /$ac_config_dir.
3393 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3394
3395 case "$srcdir" in
3396 .) # No --srcdir option. We are building in place.
3397 ac_sub_srcdir=$srcdir ;;
3398 /*) # Absolute path.
3399 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3400 *) # Relative path.
3401 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3402 esac
3403
3404 # Check for guested configure; otherwise get Cygnus style configure.
3405 if test -f $ac_sub_srcdir/configure; then
3406 ac_sub_configure=$ac_sub_srcdir/configure
3407 elif test -f $ac_sub_srcdir/configure.in; then
3408 ac_sub_configure=$ac_configure
3409 else
3410 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3411 ac_sub_configure=
3412 fi
3413
3414 # The recursion is here.
3415 if test -n "$ac_sub_configure"; then
3416
3417 # Make the cache file name correct relative to the subdirectory.
3418 case "$cache_file" in
3419 /*) ac_sub_cache_file=$cache_file ;;
3420 *) # Relative path.
3421 ac_sub_cache_file="$ac_dots$cache_file" ;;
3422 esac
3423 case "$ac_given_INSTALL" in
3424 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3425 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3426 esac
3427
3428 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3429 # The eval makes quoting arguments work.
3430 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3431 then :
3432 else
3433 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3434 fi
3435 fi
3436
3437 cd $ac_popdir
3438 done
3439fi
3440
This page took 0.560214 seconds and 5 git commands to generate.