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