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