]>
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 | |
618b3834 | 865 | |
866 | ||
867 | case $CPPFLAGS in | |
868 | *-I/usr/athena/include*) ;; | |
869 | *) CPPFLAGS=-I/usr/athena/include\ $CPPFLAGS ;; | |
870 | esac | |
871 | ||
872 | ||
873 | case $PRO_C_INCLUDES in | |
874 | *INCLUDE=/usr/athena/include*) ;; | |
875 | *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include\ $PRO_C_INCLUDES ;; | |
876 | esac | |
877 | ||
878 | ||
879 | ||
880 | ||
881 | case $CPPFLAGS in | |
882 | *-I/usr/athena/include/kerberosIV*) ;; | |
883 | *) CPPFLAGS=-I/usr/athena/include/kerberosIV\ $CPPFLAGS ;; | |
884 | esac | |
885 | ||
886 | ||
887 | case $PRO_C_INCLUDES in | |
888 | *INCLUDE=/usr/athena/include/kerberosIV*) ;; | |
889 | *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include/kerberosIV\ $PRO_C_INCLUDES ;; | |
890 | esac | |
891 | ||
892 | ||
893 | ||
894 | case $LIBPATH in | |
895 | *-L/usr/athena/lib*) ;; | |
896 | *) LIBPATH=-L/usr/athena/lib\ $LIBPATH ;; | |
897 | esac | |
898 | ||
ea0caf4a | 899 | fi |
900 | ||
901 | # We currently just don't support changing this | |
902 | mrbindir=/moira/bin | |
903 | ||
904 | ||
905 | # Athena-local policy decisions | |
906 | echo $ac_n "checking for Athena""... $ac_c" 1>&6 | |
618b3834 | 907 | echo "configure:908: checking for Athena" >&5 |
ea0caf4a | 908 | # Check whether --enable-athena or --disable-athena was given. |
909 | if test "${enable_athena+set}" = set; then | |
910 | enableval="$enable_athena" | |
911 | : | |
912 | else | |
913 | if test "$athena" = true; then | |
914 | enableval=yes | |
915 | else | |
916 | enableval=no | |
917 | fi | |
918 | fi | |
919 | ||
920 | echo "$ac_t""$enableval" 1>&6 | |
921 | if test "$enableval" = yes; then | |
922 | ||
923 | cat >> confdefs.h <<\EOF | |
924 | #define ATHENA 1 | |
925 | EOF | |
926 | ||
927 | ||
928 | case $PRO_C_DEFS in | |
929 | *DEFINE=ATHENA*) ;; | |
930 | *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;; | |
931 | esac | |
932 | ||
933 | ||
934 | fi | |
935 | ||
936 | # Networking libraries | |
937 | echo "checking network libraries..." 1>&6 | |
618b3834 | 938 | echo "configure:939: checking network libraries..." >&5 |
ea0caf4a | 939 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
618b3834 | 940 | echo "configure:941: checking for gethostbyname" >&5 |
ea0caf4a | 941 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
943 | else | |
944 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 945 | #line 946 "configure" |
ea0caf4a | 946 | #include "confdefs.h" |
947 | /* System header to define __stub macros and hopefully few prototypes, | |
948 | which can conflict with char gethostbyname(); below. */ | |
949 | #include <assert.h> | |
950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
951 | /* We use char because int might match the return type of a gcc2 | |
952 | builtin and then its argument prototype would still apply. */ | |
953 | char gethostbyname(); | |
954 | ||
955 | int main() { | |
956 | ||
957 | /* The GNU C library defines this for functions which it implements | |
958 | to always fail with ENOSYS. Some functions are actually named | |
959 | something starting with __ and the normal name is an alias. */ | |
960 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
961 | choke me | |
962 | #else | |
963 | gethostbyname(); | |
964 | #endif | |
965 | ||
966 | ; return 0; } | |
967 | EOF | |
618b3834 | 968 | if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 969 | rm -rf conftest* |
970 | eval "ac_cv_func_gethostbyname=yes" | |
971 | else | |
972 | echo "configure: failed program was:" >&5 | |
973 | cat conftest.$ac_ext >&5 | |
974 | rm -rf conftest* | |
975 | eval "ac_cv_func_gethostbyname=no" | |
976 | fi | |
977 | rm -f conftest* | |
978 | fi | |
979 | ||
980 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
981 | echo "$ac_t""yes" 1>&6 | |
982 | : | |
983 | else | |
984 | echo "$ac_t""no" 1>&6 | |
985 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
618b3834 | 986 | echo "configure:987: checking for gethostbyname in -lnsl" >&5 |
ea0caf4a | 987 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
988 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
990 | else | |
991 | ac_save_LIBS="$LIBS" | |
992 | LIBS="-lnsl $LIBS" | |
993 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 994 | #line 995 "configure" |
ea0caf4a | 995 | #include "confdefs.h" |
996 | /* Override any gcc2 internal prototype to avoid an error. */ | |
997 | /* We use char because int might match the return type of a gcc2 | |
998 | builtin and then its argument prototype would still apply. */ | |
999 | char gethostbyname(); | |
1000 | ||
1001 | int main() { | |
1002 | gethostbyname() | |
1003 | ; return 0; } | |
1004 | EOF | |
618b3834 | 1005 | if { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1006 | rm -rf conftest* |
1007 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1008 | else | |
1009 | echo "configure: failed program was:" >&5 | |
1010 | cat conftest.$ac_ext >&5 | |
1011 | rm -rf conftest* | |
1012 | eval "ac_cv_lib_$ac_lib_var=no" | |
1013 | fi | |
1014 | rm -f conftest* | |
1015 | LIBS="$ac_save_LIBS" | |
1016 | ||
1017 | fi | |
1018 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1019 | echo "$ac_t""yes" 1>&6 | |
1020 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ | |
1021 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
1022 | cat >> confdefs.h <<EOF | |
1023 | #define $ac_tr_lib 1 | |
1024 | EOF | |
1025 | ||
1026 | LIBS="-lnsl $LIBS" | |
1027 | ||
1028 | else | |
1029 | echo "$ac_t""no" 1>&6 | |
1030 | echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6 | |
618b3834 | 1031 | echo "configure:1032: checking for gethostbyname in -lresolv" >&5 |
ea0caf4a | 1032 | ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'` |
1033 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1035 | else | |
1036 | ac_save_LIBS="$LIBS" | |
1037 | LIBS="-lresolv $LIBS" | |
1038 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 1039 | #line 1040 "configure" |
ea0caf4a | 1040 | #include "confdefs.h" |
1041 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1042 | /* We use char because int might match the return type of a gcc2 | |
1043 | builtin and then its argument prototype would still apply. */ | |
1044 | char gethostbyname(); | |
1045 | ||
1046 | int main() { | |
1047 | gethostbyname() | |
1048 | ; return 0; } | |
1049 | EOF | |
618b3834 | 1050 | if { (eval echo configure:1051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1051 | rm -rf conftest* |
1052 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1053 | else | |
1054 | echo "configure: failed program was:" >&5 | |
1055 | cat conftest.$ac_ext >&5 | |
1056 | rm -rf conftest* | |
1057 | eval "ac_cv_lib_$ac_lib_var=no" | |
1058 | fi | |
1059 | rm -f conftest* | |
1060 | LIBS="$ac_save_LIBS" | |
1061 | ||
1062 | fi | |
1063 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1064 | echo "$ac_t""yes" 1>&6 | |
1065 | ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \ | |
1066 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
1067 | cat >> confdefs.h <<EOF | |
1068 | #define $ac_tr_lib 1 | |
1069 | EOF | |
1070 | ||
1071 | LIBS="-lresolv $LIBS" | |
1072 | ||
1073 | else | |
1074 | echo "$ac_t""no" 1>&6 | |
1075 | fi | |
1076 | ||
1077 | fi | |
1078 | ||
1079 | fi | |
1080 | ||
1081 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
618b3834 | 1082 | echo "configure:1083: checking for socket" >&5 |
ea0caf4a | 1083 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
1084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1085 | else | |
1086 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 1087 | #line 1088 "configure" |
ea0caf4a | 1088 | #include "confdefs.h" |
1089 | /* System header to define __stub macros and hopefully few prototypes, | |
1090 | which can conflict with char socket(); below. */ | |
1091 | #include <assert.h> | |
1092 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1093 | /* We use char because int might match the return type of a gcc2 | |
1094 | builtin and then its argument prototype would still apply. */ | |
1095 | char socket(); | |
1096 | ||
1097 | int main() { | |
1098 | ||
1099 | /* The GNU C library defines this for functions which it implements | |
1100 | to always fail with ENOSYS. Some functions are actually named | |
1101 | something starting with __ and the normal name is an alias. */ | |
1102 | #if defined (__stub_socket) || defined (__stub___socket) | |
1103 | choke me | |
1104 | #else | |
1105 | socket(); | |
1106 | #endif | |
1107 | ||
1108 | ; return 0; } | |
1109 | EOF | |
618b3834 | 1110 | if { (eval echo configure:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1111 | rm -rf conftest* |
1112 | eval "ac_cv_func_socket=yes" | |
1113 | else | |
1114 | echo "configure: failed program was:" >&5 | |
1115 | cat conftest.$ac_ext >&5 | |
1116 | rm -rf conftest* | |
1117 | eval "ac_cv_func_socket=no" | |
1118 | fi | |
1119 | rm -f conftest* | |
1120 | fi | |
1121 | ||
1122 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
1123 | echo "$ac_t""yes" 1>&6 | |
1124 | : | |
1125 | else | |
1126 | echo "$ac_t""no" 1>&6 | |
1127 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
618b3834 | 1128 | echo "configure:1129: checking for socket in -lsocket" >&5 |
ea0caf4a | 1129 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
1130 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1132 | else | |
1133 | ac_save_LIBS="$LIBS" | |
1134 | LIBS="-lsocket $LIBS" | |
1135 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 1136 | #line 1137 "configure" |
ea0caf4a | 1137 | #include "confdefs.h" |
1138 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1139 | /* We use char because int might match the return type of a gcc2 | |
1140 | builtin and then its argument prototype would still apply. */ | |
1141 | char socket(); | |
1142 | ||
1143 | int main() { | |
1144 | socket() | |
1145 | ; return 0; } | |
1146 | EOF | |
618b3834 | 1147 | if { (eval echo configure:1148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1148 | rm -rf conftest* |
1149 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1150 | else | |
1151 | echo "configure: failed program was:" >&5 | |
1152 | cat conftest.$ac_ext >&5 | |
1153 | rm -rf conftest* | |
1154 | eval "ac_cv_lib_$ac_lib_var=no" | |
1155 | fi | |
1156 | rm -f conftest* | |
1157 | LIBS="$ac_save_LIBS" | |
1158 | ||
1159 | fi | |
1160 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1161 | echo "$ac_t""yes" 1>&6 | |
1162 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ | |
1163 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
1164 | cat >> confdefs.h <<EOF | |
1165 | #define $ac_tr_lib 1 | |
1166 | EOF | |
1167 | ||
1168 | LIBS="-lsocket $LIBS" | |
1169 | ||
1170 | else | |
1171 | echo "$ac_t""no" 1>&6 | |
1172 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
618b3834 | 1173 | echo "configure:1174: checking for socket in -lsocket" >&5 |
ea0caf4a | 1174 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
1175 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1177 | else | |
1178 | ac_save_LIBS="$LIBS" | |
1179 | LIBS="-lsocket -lnsl $LIBS" | |
1180 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 1181 | #line 1182 "configure" |
ea0caf4a | 1182 | #include "confdefs.h" |
1183 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1184 | /* We use char because int might match the return type of a gcc2 | |
1185 | builtin and then its argument prototype would still apply. */ | |
1186 | char socket(); | |
1187 | ||
1188 | int main() { | |
1189 | socket() | |
1190 | ; return 0; } | |
1191 | EOF | |
618b3834 | 1192 | if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1193 | rm -rf conftest* |
1194 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1195 | else | |
1196 | echo "configure: failed program was:" >&5 | |
1197 | cat conftest.$ac_ext >&5 | |
1198 | rm -rf conftest* | |
1199 | eval "ac_cv_lib_$ac_lib_var=no" | |
1200 | fi | |
1201 | rm -f conftest* | |
1202 | LIBS="$ac_save_LIBS" | |
1203 | ||
1204 | fi | |
1205 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1206 | echo "$ac_t""yes" 1>&6 | |
1207 | LIBS="-lsocket -lnsl $LIBS" | |
1208 | else | |
1209 | echo "$ac_t""no" 1>&6 | |
1210 | : | |
1211 | fi | |
1212 | ||
1213 | fi | |
1214 | ||
1215 | fi | |
1216 | ||
1217 | ||
7f7f279f | 1218 | # com_err (required, but can be built) |
1219 | echo $ac_n "checking for com_err""... $ac_c" 1>&6 | |
618b3834 | 1220 | echo "configure:1221: checking for com_err" >&5 |
7f7f279f | 1221 | # Check whether --with-com_err or --without-com_err was given. |
1222 | if test "${with_com_err+set}" = set; then | |
1223 | withval="$with_com_err" | |
1224 | echo "$ac_t""$withval" 1>&6 | |
1225 | if test $withval = "no"; then | |
1226 | { echo "configure: error: com_err is required for Moira" 1>&2; exit 1; } | |
1227 | fi | |
1228 | if test $withval != "yes"; then | |
1229 | ||
1230 | ||
1231 | case $CPPFLAGS in | |
1232 | *-I$withval/include*) ;; | |
1233 | *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;; | |
1234 | esac | |
1235 | ||
1236 | ||
1237 | case $PRO_C_INCLUDES in | |
1238 | *INCLUDE=$withval/include*) ;; | |
1239 | *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;; | |
1240 | esac | |
1241 | ||
1242 | ||
1243 | ||
1244 | case $LIBPATH in | |
1245 | *-L$withval/lib*) ;; | |
1246 | *) LIBPATH=-L$withval/lib\ $LIBPATH ;; | |
1247 | esac | |
1248 | ||
1249 | fi | |
1250 | COMPILE_ET=compile_et | |
1251 | else | |
1252 | echo "$ac_t""util/et" 1>&6 | |
1253 | COM_ERR_SUBDIR=util/et; | |
1254 | ||
1255 | ||
1256 | case $CPPFLAGS in | |
1257 | *-I`pwd`/util/et*) ;; | |
1258 | *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;; | |
1259 | esac | |
1260 | ||
1261 | ||
1262 | case $PRO_C_INCLUDES in | |
1263 | *INCLUDE=`pwd`/util/et*) ;; | |
1264 | *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;; | |
1265 | esac | |
1266 | ||
1267 | ||
1268 | ||
1269 | case $LIBPATH in | |
1270 | *-L`pwd`/util/et*) ;; | |
1271 | *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;; | |
1272 | esac | |
1273 | ||
1274 | COMPILE_ET=`pwd`/util/et/compile_et | |
1275 | subdirs="$COM_ERR_SUBDIR" | |
1276 | ||
1277 | fi | |
1278 | ||
1279 | ||
1280 | ||
1281 | ||
1282 | # Kerberos (Kerberos 4 required, Kerberos 5 optional for reg_svr) | |
ea0caf4a | 1283 | echo $ac_n "checking for Kerberos 4""... $ac_c" 1>&6 |
618b3834 | 1284 | echo "configure:1285: checking for Kerberos 4" >&5 |
ea0caf4a | 1285 | # Check whether --with-krb4 or --without-krb4 was given. |
1286 | if test "${with_krb4+set}" = set; then | |
1287 | withval="$with_krb4" | |
1288 | krb4="$withval" | |
1289 | else | |
1290 | krb4=no | |
1291 | fi | |
1292 | ||
1293 | echo "$ac_t""$krb4" 1>&6 | |
1294 | if test $krb4 = "no"; then | |
1295 | { echo "configure: error: Kerberos is required for Moira" 1>&2; exit 1; } | |
1296 | fi | |
1297 | if test "$krb4" != yes; then | |
1298 | ||
1299 | ||
1300 | case $CPPFLAGS in | |
1301 | *-I$krb4/include*) ;; | |
1302 | *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;; | |
1303 | esac | |
1304 | ||
1305 | ||
1306 | case $PRO_C_INCLUDES in | |
1307 | *INCLUDE=$krb4/include*) ;; | |
1308 | *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;; | |
1309 | esac | |
1310 | ||
1311 | ||
1312 | if test -d "$krb4/include/kerberosIV"; then | |
1313 | ||
1314 | ||
1315 | case $CPPFLAGS in | |
1316 | *-I$krb4/include/kerberosIV*) ;; | |
1317 | *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;; | |
1318 | esac | |
1319 | ||
1320 | ||
1321 | case $PRO_C_INCLUDES in | |
1322 | *INCLUDE=$krb4/include/kerberosIV*) ;; | |
1323 | *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;; | |
1324 | esac | |
1325 | ||
1326 | ||
1327 | fi | |
1328 | ||
1329 | case $LIBPATH in | |
1330 | *-L$krb4/lib*) ;; | |
1331 | *) LIBPATH=-L$krb4/lib\ $LIBPATH ;; | |
1332 | esac | |
1333 | ||
1334 | elif test -d /usr/include/kerberosIV; then | |
1335 | ||
1336 | ||
1337 | case $CPPFLAGS in | |
1338 | *-I/usr/include/kerberosIV*) ;; | |
1339 | *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;; | |
1340 | esac | |
1341 | ||
1342 | ||
1343 | case $PRO_C_INCLUDES in | |
1344 | *INCLUDE=/usr/include/kerberosIV*) ;; | |
1345 | *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;; | |
1346 | esac | |
1347 | ||
1348 | ||
1349 | fi | |
1350 | echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6 | |
618b3834 | 1351 | echo "configure:1352: checking for krb_rd_req in -lkrb4" >&5 |
ea0caf4a | 1352 | ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'` |
1353 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1355 | else | |
1356 | ac_save_LIBS="$LIBS" | |
7f7f279f | 1357 | LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS" |
ea0caf4a | 1358 | cat > conftest.$ac_ext <<EOF |
618b3834 | 1359 | #line 1360 "configure" |
ea0caf4a | 1360 | #include "confdefs.h" |
1361 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1362 | /* We use char because int might match the return type of a gcc2 | |
1363 | builtin and then its argument prototype would still apply. */ | |
1364 | char krb_rd_req(); | |
1365 | ||
1366 | int main() { | |
1367 | krb_rd_req() | |
1368 | ; return 0; } | |
1369 | EOF | |
618b3834 | 1370 | if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1371 | rm -rf conftest* |
1372 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1373 | else | |
1374 | echo "configure: failed program was:" >&5 | |
1375 | cat conftest.$ac_ext >&5 | |
1376 | rm -rf conftest* | |
1377 | eval "ac_cv_lib_$ac_lib_var=no" | |
1378 | fi | |
1379 | rm -f conftest* | |
1380 | LIBS="$ac_save_LIBS" | |
1381 | ||
1382 | fi | |
1383 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1384 | echo "$ac_t""yes" 1>&6 | |
1385 | KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto" | |
1386 | else | |
1387 | echo "$ac_t""no" 1>&6 | |
1388 | echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6 | |
618b3834 | 1389 | echo "configure:1390: checking for krb_rd_req in -lkrb" >&5 |
ea0caf4a | 1390 | ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'` |
1391 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1392 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1393 | else | |
1394 | ac_save_LIBS="$LIBS" | |
1395 | LIBS="-lkrb $LIBPATH -ldes $LIBS" | |
1396 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 1397 | #line 1398 "configure" |
ea0caf4a | 1398 | #include "confdefs.h" |
1399 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1400 | /* We use char because int might match the return type of a gcc2 | |
1401 | builtin and then its argument prototype would still apply. */ | |
1402 | char krb_rd_req(); | |
1403 | ||
1404 | int main() { | |
1405 | krb_rd_req() | |
1406 | ; return 0; } | |
1407 | EOF | |
618b3834 | 1408 | if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1409 | rm -rf conftest* |
1410 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1411 | else | |
1412 | echo "configure: failed program was:" >&5 | |
1413 | cat conftest.$ac_ext >&5 | |
1414 | rm -rf conftest* | |
1415 | eval "ac_cv_lib_$ac_lib_var=no" | |
1416 | fi | |
1417 | rm -f conftest* | |
1418 | LIBS="$ac_save_LIBS" | |
1419 | ||
1420 | fi | |
1421 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1422 | echo "$ac_t""yes" 1>&6 | |
1423 | KRB4_LIBS="-lkrb -ldes" | |
1424 | else | |
1425 | echo "$ac_t""no" 1>&6 | |
1426 | { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; } | |
1427 | fi | |
1428 | ||
1429 | fi | |
1430 | ||
1431 | ||
7f7f279f | 1432 | echo $ac_n "checking for Kerberos 5""... $ac_c" 1>&6 |
618b3834 | 1433 | echo "configure:1434: checking for Kerberos 5" >&5 |
7f7f279f | 1434 | # Check whether --with-krb5 or --without-krb5 was given. |
1435 | if test "${with_krb5+set}" = set; then | |
1436 | withval="$with_krb5" | |
1437 | krb5="$withval" | |
33567bea | 1438 | else |
7f7f279f | 1439 | krb5=no |
1440 | fi | |
33567bea | 1441 | |
7f7f279f | 1442 | echo "$ac_t""$krb5" 1>&6 |
1443 | if test "$krb5" != no; then | |
1444 | REG_SVR_DEFS=-DKRB5 | |
1445 | if test "$krb5" != yes; then | |
1446 | REG_SVR_INCLUDES=-I$krb5/include | |
1447 | REG_SVR_LIBS=-L$krb5/lib | |
1448 | fi | |
1449 | REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -ldyn -lkrb4 -ldes425 -lkrb5 -lcrypto" | |
1450 | else | |
1451 | REG_SVR_DEFS=-DKRB4 | |
1c1c45eb | 1452 | REG_SVR_LIBS=-lkadm |
33567bea | 1453 | fi |
1454 | ||
1455 | ||
1456 | ||
1457 | ||
ea0caf4a | 1458 | # Hesiod support |
1459 | echo $ac_n "checking for Hesiod""... $ac_c" 1>&6 | |
618b3834 | 1460 | echo "configure:1461: checking for Hesiod" >&5 |
ea0caf4a | 1461 | # Check whether --with-hesiod or --without-hesiod was given. |
1462 | if test "${with_hesiod+set}" = set; then | |
1463 | withval="$with_hesiod" | |
1464 | hesiod="$withval" | |
1465 | else | |
1466 | hesiod=no | |
1467 | fi | |
1468 | ||
1469 | echo "$ac_t""$hesiod" 1>&6 | |
1470 | if test "$hesiod" != no; then | |
1471 | if test "$hesiod" != yes; then | |
1472 | ||
1473 | ||
1474 | case $CPPFLAGS in | |
1475 | *-I$hesiod/include*) ;; | |
1476 | *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;; | |
1477 | esac | |
1478 | ||
1479 | ||
1480 | case $PRO_C_INCLUDES in | |
1481 | *INCLUDE=$hesiod/include*) ;; | |
1482 | *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;; | |
1483 | esac | |
1484 | ||
1485 | ||
1486 | ||
1487 | case $LIBPATH in | |
1488 | *-L$hesiod/lib*) ;; | |
1489 | *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;; | |
1490 | esac | |
1491 | ||
1492 | fi | |
1493 | echo $ac_n "checking for res_send""... $ac_c" 1>&6 | |
618b3834 | 1494 | echo "configure:1495: checking for res_send" >&5 |
ea0caf4a | 1495 | if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then |
1496 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1497 | else | |
1498 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 1499 | #line 1500 "configure" |
ea0caf4a | 1500 | #include "confdefs.h" |
1501 | /* System header to define __stub macros and hopefully few prototypes, | |
1502 | which can conflict with char res_send(); below. */ | |
1503 | #include <assert.h> | |
1504 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1505 | /* We use char because int might match the return type of a gcc2 | |
1506 | builtin and then its argument prototype would still apply. */ | |
1507 | char res_send(); | |
1508 | ||
1509 | int main() { | |
1510 | ||
1511 | /* The GNU C library defines this for functions which it implements | |
1512 | to always fail with ENOSYS. Some functions are actually named | |
1513 | something starting with __ and the normal name is an alias. */ | |
1514 | #if defined (__stub_res_send) || defined (__stub___res_send) | |
1515 | choke me | |
1516 | #else | |
1517 | res_send(); | |
1518 | #endif | |
1519 | ||
1520 | ; return 0; } | |
1521 | EOF | |
618b3834 | 1522 | if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1523 | rm -rf conftest* |
1524 | eval "ac_cv_func_res_send=yes" | |
1525 | else | |
1526 | echo "configure: failed program was:" >&5 | |
1527 | cat conftest.$ac_ext >&5 | |
1528 | rm -rf conftest* | |
1529 | eval "ac_cv_func_res_send=no" | |
1530 | fi | |
1531 | rm -f conftest* | |
1532 | fi | |
1533 | ||
1534 | if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then | |
1535 | echo "$ac_t""yes" 1>&6 | |
1536 | : | |
1537 | else | |
1538 | echo "$ac_t""no" 1>&6 | |
1539 | echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6 | |
618b3834 | 1540 | echo "configure:1541: checking for res_send in -lresolv" >&5 |
ea0caf4a | 1541 | ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'` |
1542 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1544 | else | |
1545 | ac_save_LIBS="$LIBS" | |
1546 | LIBS="-lresolv $LIBS" | |
1547 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 1548 | #line 1549 "configure" |
ea0caf4a | 1549 | #include "confdefs.h" |
1550 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1551 | /* We use char because int might match the return type of a gcc2 | |
1552 | builtin and then its argument prototype would still apply. */ | |
1553 | char res_send(); | |
1554 | ||
1555 | int main() { | |
1556 | res_send() | |
1557 | ; return 0; } | |
1558 | EOF | |
618b3834 | 1559 | if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1560 | rm -rf conftest* |
1561 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1562 | else | |
1563 | echo "configure: failed program was:" >&5 | |
1564 | cat conftest.$ac_ext >&5 | |
1565 | rm -rf conftest* | |
1566 | eval "ac_cv_lib_$ac_lib_var=no" | |
1567 | fi | |
1568 | rm -f conftest* | |
1569 | LIBS="$ac_save_LIBS" | |
1570 | ||
1571 | fi | |
1572 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1573 | echo "$ac_t""yes" 1>&6 | |
1574 | ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \ | |
1575 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
1576 | cat >> confdefs.h <<EOF | |
1577 | #define $ac_tr_lib 1 | |
1578 | EOF | |
1579 | ||
1580 | LIBS="-lresolv $LIBS" | |
1581 | ||
1582 | else | |
1583 | echo "$ac_t""no" 1>&6 | |
1584 | fi | |
1585 | ||
1586 | fi | |
1587 | ||
1588 | echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6 | |
618b3834 | 1589 | echo "configure:1590: checking for hes_resolve in -lhesiod" >&5 |
ea0caf4a | 1590 | ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'` |
1591 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1593 | else | |
1594 | ac_save_LIBS="$LIBS" | |
1595 | LIBS="-lhesiod $LIBPATH $LIBS $LIBS" | |
1596 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 1597 | #line 1598 "configure" |
ea0caf4a | 1598 | #include "confdefs.h" |
1599 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1600 | /* We use char because int might match the return type of a gcc2 | |
1601 | builtin and then its argument prototype would still apply. */ | |
1602 | char hes_resolve(); | |
1603 | ||
1604 | int main() { | |
1605 | hes_resolve() | |
1606 | ; return 0; } | |
1607 | EOF | |
618b3834 | 1608 | if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1609 | rm -rf conftest* |
1610 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1611 | else | |
1612 | echo "configure: failed program was:" >&5 | |
1613 | cat conftest.$ac_ext >&5 | |
1614 | rm -rf conftest* | |
1615 | eval "ac_cv_lib_$ac_lib_var=no" | |
1616 | fi | |
1617 | rm -f conftest* | |
1618 | LIBS="$ac_save_LIBS" | |
1619 | ||
1620 | fi | |
1621 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1622 | echo "$ac_t""yes" 1>&6 | |
1623 | : | |
1624 | else | |
1625 | echo "$ac_t""no" 1>&6 | |
1626 | { echo "configure: error: Hesiod library not found" 1>&2; exit 1; } | |
1627 | fi | |
1628 | ||
1629 | ||
1630 | cat >> confdefs.h <<\EOF | |
1631 | #define HAVE_HESIOD 1 | |
1632 | EOF | |
1633 | ||
1634 | ||
1635 | case $PRO_C_DEFS in | |
1636 | *DEFINE=HAVE_HESIOD*) ;; | |
1637 | *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;; | |
1638 | esac | |
1639 | ||
1640 | ||
1641 | fi | |
1642 | ||
1643 | # Zephyr support | |
1644 | echo $ac_n "checking for Zephyr""... $ac_c" 1>&6 | |
618b3834 | 1645 | echo "configure:1646: checking for Zephyr" >&5 |
ea0caf4a | 1646 | # Check whether --with-zephyr or --without-zephyr was given. |
1647 | if test "${with_zephyr+set}" = set; then | |
1648 | withval="$with_zephyr" | |
1649 | zephyr="$withval" | |
1650 | else | |
1651 | zephyr=no | |
1652 | fi | |
1653 | ||
1654 | echo "$ac_t""$zephyr" 1>&6 | |
1655 | if test "$zephyr" != no; then | |
1656 | if test "$zephyr" != yes; then | |
1657 | ||
1658 | ||
1659 | case $CPPFLAGS in | |
1660 | *-I$zephyr/include*) ;; | |
1661 | *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;; | |
1662 | esac | |
1663 | ||
1664 | ||
1665 | case $PRO_C_INCLUDES in | |
1666 | *INCLUDE=$zephyr/include*) ;; | |
1667 | *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;; | |
1668 | esac | |
1669 | ||
1670 | ||
1671 | ||
1672 | case $LIBPATH in | |
1673 | *-L$zephyr/lib*) ;; | |
1674 | *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;; | |
1675 | esac | |
1676 | ||
1677 | fi | |
1678 | echo $ac_n "checking for ZInitialize in -lzephyr""... $ac_c" 1>&6 | |
618b3834 | 1679 | echo "configure:1680: checking for ZInitialize in -lzephyr" >&5 |
ea0caf4a | 1680 | ac_lib_var=`echo zephyr'_'ZInitialize | sed 'y%./+-%__p_%'` |
1681 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1683 | else | |
1684 | ac_save_LIBS="$LIBS" | |
1685 | LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS" | |
1686 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 1687 | #line 1688 "configure" |
ea0caf4a | 1688 | #include "confdefs.h" |
1689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1690 | /* We use char because int might match the return type of a gcc2 | |
1691 | builtin and then its argument prototype would still apply. */ | |
1692 | char ZInitialize(); | |
1693 | ||
1694 | int main() { | |
1695 | ZInitialize() | |
1696 | ; return 0; } | |
1697 | EOF | |
618b3834 | 1698 | if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1699 | rm -rf conftest* |
1700 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1701 | else | |
1702 | echo "configure: failed program was:" >&5 | |
1703 | cat conftest.$ac_ext >&5 | |
1704 | rm -rf conftest* | |
1705 | eval "ac_cv_lib_$ac_lib_var=no" | |
1706 | fi | |
1707 | rm -f conftest* | |
1708 | LIBS="$ac_save_LIBS" | |
1709 | ||
1710 | fi | |
1711 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1712 | echo "$ac_t""yes" 1>&6 | |
1713 | : | |
1714 | else | |
1715 | echo "$ac_t""no" 1>&6 | |
1716 | { echo "configure: error: Zephyr library not found" 1>&2; exit 1; } | |
1717 | fi | |
1718 | ||
1719 | ||
1720 | cat >> confdefs.h <<\EOF | |
1721 | #define HAVE_ZEPHYR 1 | |
1722 | EOF | |
1723 | ||
1724 | ||
1725 | case $PRO_C_DEFS in | |
1726 | *DEFINE=HAVE_ZEPHYR*) ;; | |
1727 | *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;; | |
1728 | esac | |
1729 | ||
1730 | ||
1731 | fi | |
1732 | ||
1733 | # GDSS support (default: build util/gdss if present) | |
1734 | echo $ac_n "checking for GDSS""... $ac_c" 1>&6 | |
618b3834 | 1735 | echo "configure:1736: checking for GDSS" >&5 |
ea0caf4a | 1736 | # Check whether --with-gdss or --without-gdss was given. |
1737 | if test "${with_gdss+set}" = set; then | |
1738 | withval="$with_gdss" | |
1739 | gdss="$withval" | |
71b838ed | 1740 | if test "$gdss" != no; then |
1741 | ||
cd357ef5 | 1742 | |
1743 | case $CPPFLAGS in | |
1744 | *-I"$gdss/include"*) ;; | |
1745 | *) CPPFLAGS=-I"$gdss/include"\ $CPPFLAGS ;; | |
1746 | esac | |
1747 | ||
1748 | ||
1749 | case $PRO_C_INCLUDES in | |
1750 | *INCLUDE="$gdss/include"*) ;; | |
1751 | *) PRO_C_INCLUDES=INCLUDE="$gdss/include"\ $PRO_C_INCLUDES ;; | |
1752 | esac | |
1753 | ||
1754 | ||
71b838ed | 1755 | GDSS_LIBS="-L$gdss/lib -lgdss" |
1756 | fi | |
ea0caf4a | 1757 | else |
1758 | if test -d $srcdir/util/gdss; then | |
1759 | gdss=$srcdir/util/gdss | |
1760 | GDSS_SUBDIR=util/gdss | |
1761 | GDSS_OUTPUT_FILES="util/gdss/Makefile util/gdss/lib/Makefile \ | |
1762 | util/gdss/lib/crypto/Makefile util/gdss/lib/crypto/bignum/Makefile \ | |
1763 | util/gdss/lib/crypto/algorithm/Makefile" | |
1764 | # autoconf can't deal with creating util/gdss if util doesn't exist | |
1765 | if test ! -d util; then | |
1766 | mkdir util | |
1767 | fi | |
3fb6166b | 1768 | |
1769 | ||
1770 | case $CPPFLAGS in | |
cd357ef5 | 1771 | *-I'$(SRCTOP)/util/gdss/include'*) ;; |
1772 | *) CPPFLAGS=-I'$(SRCTOP)/util/gdss/include'\ $CPPFLAGS ;; | |
3fb6166b | 1773 | esac |
1774 | ||
1775 | ||
1776 | case $PRO_C_INCLUDES in | |
cd357ef5 | 1777 | *INCLUDE='$(SRCTOP)/util/gdss/include'*) ;; |
1778 | *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/util/gdss/include'\ $PRO_C_INCLUDES ;; | |
3fb6166b | 1779 | esac |
1780 | ||
1781 | ||
ea0caf4a | 1782 | GDSS_LIBS='-L$(BUILDTOP)/util/gdss/lib -lgdss' |
3fb6166b | 1783 | GDSS_LIBDEP='$(BUILDTOP)/util/gdss/lib/libgdss.a' |
ea0caf4a | 1784 | else |
1785 | gdss=no | |
1786 | fi | |
1787 | fi | |
1788 | ||
1789 | echo "$ac_t""$gdss" 1>&6 | |
1790 | if test "$gdss" != no; then | |
1791 | GDSS_OBJS='$(GDSS_OBJS)' | |
1792 | GDSS_CFILES='$(GDSS_CFILES)' | |
1793 | GDSS_TARGET='$(GDSS_TARGET)' | |
1794 | ||
1795 | cat >> confdefs.h <<\EOF | |
1796 | #define HAVE_GDSS 1 | |
1797 | EOF | |
1798 | ||
1799 | ||
1800 | case $PRO_C_DEFS in | |
1801 | *DEFINE=HAVE_GDSS*) ;; | |
1802 | *) PRO_C_DEFS=DEFINE=HAVE_GDSS\ $PRO_C_DEFS ;; | |
1803 | esac | |
1804 | ||
1805 | ||
1806 | fi | |
1807 | ||
1808 | ||
1809 | ||
1810 | ||
1811 | ||
1812 | ||
1813 | ||
3fb6166b | 1814 | |
33567bea | 1815 | # RSAREF support (default: build util/rsaref if present) |
1816 | echo $ac_n "checking for RSAREF""... $ac_c" 1>&6 | |
618b3834 | 1817 | echo "configure:1818: checking for RSAREF" >&5 |
33567bea | 1818 | # Check whether --with-rsaref or --without-rsaref was given. |
1819 | if test "${with_rsaref+set}" = set; then | |
1820 | withval="$with_rsaref" | |
1821 | rsaref="$withval" | |
1822 | RSAREF_CPPFLAGS="-I$rsaref/include" | |
1823 | RSAREF_LIBS="$rsaref/lib/rsaref.a" | |
1824 | else | |
1825 | RSAREF_SUBDIRS=reg_svr | |
1826 | if test -d $srcdir/util/rsaref; then | |
1827 | rsaref=$srcdir/util/rsaref | |
1828 | RSAREF_SUBDIRS="util/rsaref reg_svr" | |
1829 | RSAREF_OUTPUT_FILES="util/rsaref/Makefile" | |
1830 | # autoconf can't deal with creating util/rsaref if util doesn't exist | |
1831 | if test ! -d util; then | |
1832 | mkdir util | |
1833 | fi | |
3fb6166b | 1834 | RSAREF_CPPFLAGS='-I$(SRCTOP)/util/rsaref' |
33567bea | 1835 | RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a' |
3fb6166b | 1836 | RSAREF_LIBDEP='$(BUILDTOP)/util/rsaref/rsaref.a' |
33567bea | 1837 | else |
1838 | rsaref=no | |
1839 | fi | |
1840 | fi | |
1841 | ||
1842 | echo "$ac_t""$rsaref" 1>&6 | |
1843 | if test "$rsaref" != no; then | |
1844 | ||
1845 | cat >> confdefs.h <<\EOF | |
1846 | #define HAVE_RSAREF 1 | |
1847 | EOF | |
1848 | ||
1849 | ||
1850 | case $PRO_C_DEFS in | |
1851 | *DEFINE=HAVE_RSAREF*) ;; | |
1852 | *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;; | |
1853 | esac | |
1854 | ||
1855 | ||
1856 | fi | |
1857 | ||
1858 | ||
1859 | ||
1860 | ||
3fb6166b | 1861 | |
bbdb0564 | 1862 | # Oracle (default: yes, if $ORACLE_HOME is set) |
ea0caf4a | 1863 | echo $ac_n "checking for Oracle""... $ac_c" 1>&6 |
618b3834 | 1864 | echo "configure:1865: checking for Oracle" >&5 |
ea0caf4a | 1865 | # Check whether --with-oracle or --without-oracle was given. |
1866 | if test "${with_oracle+set}" = set; then | |
1867 | withval="$with_oracle" | |
1868 | oracle="$withval" | |
1869 | else | |
bbdb0564 | 1870 | if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then |
1871 | oracle=$ORACLE_HOME | |
ea0caf4a | 1872 | else |
1873 | oracle=no | |
1874 | fi | |
1875 | fi | |
1876 | ||
1877 | echo "$ac_t""$oracle" 1>&6 | |
1878 | if test "$oracle" != no; then | |
cd357ef5 | 1879 | echo $ac_n "checking Pro*C version""... $ac_c" 1>&6 |
618b3834 | 1880 | echo "configure:1881: checking Pro*C version" >&5 |
cd357ef5 | 1881 | ORACLE_HOME=$oracle release=`$ORACLE_HOME/bin/proc | awk '/Release/ {print $3;}'` |
1882 | echo "$ac_t""$release" 1>&6 | |
1883 | case $release in | |
1884 | 2.0.6.0.0) | |
1885 | SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm" | |
1886 | ;; | |
1887 | *) | |
1888 | 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" | |
1889 | ;; | |
1890 | esac | |
ea0caf4a | 1891 | SVRSUBDIRS='$(SVRDIRS)' |
9ed720ef | 1892 | SERVER_OUTPUT_FILES="db/Makefile server/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile reg_svr/Makefile regtape/Makefile" |
ea0caf4a | 1893 | PRO_C=$oracle/bin/proc |
1894 | PRO_C_OPTS=CODE=ANSI_C | |
cd357ef5 | 1895 | PRO_C_DEFS="DEFINE=_PROC_ $PRO_C_DEFS" |
ea0caf4a | 1896 | fi |
1897 | ||
1898 | ||
1899 | ||
1900 | ||
1901 | ||
1902 | ||
1903 | ||
1904 | # AFS support | |
1905 | echo $ac_n "checking for AFS""... $ac_c" 1>&6 | |
618b3834 | 1906 | echo "configure:1907: checking for AFS" >&5 |
ea0caf4a | 1907 | # Check whether --with-afs or --without-afs was given. |
1908 | if test "${with_afs+set}" = set; then | |
1909 | withval="$with_afs" | |
1910 | afs="$withval" | |
1911 | else | |
1912 | afs=no | |
1913 | fi | |
1914 | ||
1915 | echo "$ac_t""$afs" 1>&6 | |
1916 | if test "$afs" != no -a "$oracle" != no; then | |
1917 | if test "$afs" != yes; then | |
1918 | AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx" | |
1919 | AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx" | |
1920 | AFS_LIBS="-L$afs/lib -L$afs/lib/afs" | |
1921 | AFS_DIR=$afs | |
1922 | fi | |
1923 | echo $ac_n "checking for insque""... $ac_c" 1>&6 | |
618b3834 | 1924 | echo "configure:1925: checking for insque" >&5 |
ea0caf4a | 1925 | if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then |
1926 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1927 | else | |
1928 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 1929 | #line 1930 "configure" |
ea0caf4a | 1930 | #include "confdefs.h" |
1931 | /* System header to define __stub macros and hopefully few prototypes, | |
1932 | which can conflict with char insque(); below. */ | |
1933 | #include <assert.h> | |
1934 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1935 | /* We use char because int might match the return type of a gcc2 | |
1936 | builtin and then its argument prototype would still apply. */ | |
1937 | char insque(); | |
1938 | ||
1939 | int main() { | |
1940 | ||
1941 | /* The GNU C library defines this for functions which it implements | |
1942 | to always fail with ENOSYS. Some functions are actually named | |
1943 | something starting with __ and the normal name is an alias. */ | |
1944 | #if defined (__stub_insque) || defined (__stub___insque) | |
1945 | choke me | |
1946 | #else | |
1947 | insque(); | |
1948 | #endif | |
1949 | ||
1950 | ; return 0; } | |
1951 | EOF | |
618b3834 | 1952 | if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1953 | rm -rf conftest* |
1954 | eval "ac_cv_func_insque=yes" | |
1955 | else | |
1956 | echo "configure: failed program was:" >&5 | |
1957 | cat conftest.$ac_ext >&5 | |
1958 | rm -rf conftest* | |
1959 | eval "ac_cv_func_insque=no" | |
1960 | fi | |
1961 | rm -f conftest* | |
1962 | fi | |
1963 | ||
1964 | if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then | |
1965 | echo "$ac_t""yes" 1>&6 | |
1966 | : | |
1967 | else | |
1968 | echo "$ac_t""no" 1>&6 | |
1969 | echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6 | |
618b3834 | 1970 | echo "configure:1971: checking for insque in -lcompat" >&5 |
ea0caf4a | 1971 | ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'` |
1972 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1974 | else | |
1975 | ac_save_LIBS="$LIBS" | |
1976 | LIBS="-lcompat $LIBS" | |
1977 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 1978 | #line 1979 "configure" |
ea0caf4a | 1979 | #include "confdefs.h" |
1980 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1981 | /* We use char because int might match the return type of a gcc2 | |
1982 | builtin and then its argument prototype would still apply. */ | |
1983 | char insque(); | |
1984 | ||
1985 | int main() { | |
1986 | insque() | |
1987 | ; return 0; } | |
1988 | EOF | |
618b3834 | 1989 | if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 1990 | rm -rf conftest* |
1991 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1992 | else | |
1993 | echo "configure: failed program was:" >&5 | |
1994 | cat conftest.$ac_ext >&5 | |
1995 | rm -rf conftest* | |
1996 | eval "ac_cv_lib_$ac_lib_var=no" | |
1997 | fi | |
1998 | rm -f conftest* | |
1999 | LIBS="$ac_save_LIBS" | |
2000 | ||
2001 | fi | |
2002 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2003 | echo "$ac_t""yes" 1>&6 | |
2004 | AFS_EXTRA_LIBS="-lcompat" | |
2005 | else | |
2006 | echo "$ac_t""no" 1>&6 | |
2007 | { echo "configure: error: insque not found" 1>&2; exit 1; } | |
2008 | fi | |
2009 | ||
2010 | fi | |
2011 | ||
2012 | echo $ac_n "checking for sigvec""... $ac_c" 1>&6 | |
618b3834 | 2013 | echo "configure:2014: checking for sigvec" >&5 |
ea0caf4a | 2014 | if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then |
2015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2016 | else | |
2017 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 2018 | #line 2019 "configure" |
ea0caf4a | 2019 | #include "confdefs.h" |
2020 | /* System header to define __stub macros and hopefully few prototypes, | |
2021 | which can conflict with char sigvec(); below. */ | |
2022 | #include <assert.h> | |
2023 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2024 | /* We use char because int might match the return type of a gcc2 | |
2025 | builtin and then its argument prototype would still apply. */ | |
2026 | char sigvec(); | |
2027 | ||
2028 | int main() { | |
2029 | ||
2030 | /* The GNU C library defines this for functions which it implements | |
2031 | to always fail with ENOSYS. Some functions are actually named | |
2032 | something starting with __ and the normal name is an alias. */ | |
2033 | #if defined (__stub_sigvec) || defined (__stub___sigvec) | |
2034 | choke me | |
2035 | #else | |
2036 | sigvec(); | |
2037 | #endif | |
2038 | ||
2039 | ; return 0; } | |
2040 | EOF | |
618b3834 | 2041 | if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 2042 | rm -rf conftest* |
2043 | eval "ac_cv_func_sigvec=yes" | |
2044 | else | |
2045 | echo "configure: failed program was:" >&5 | |
2046 | cat conftest.$ac_ext >&5 | |
2047 | rm -rf conftest* | |
2048 | eval "ac_cv_func_sigvec=no" | |
2049 | fi | |
2050 | rm -f conftest* | |
2051 | fi | |
2052 | ||
2053 | if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then | |
2054 | echo "$ac_t""yes" 1>&6 | |
2055 | : | |
2056 | else | |
2057 | echo "$ac_t""no" 1>&6 | |
2058 | echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6 | |
618b3834 | 2059 | echo "configure:2060: checking for sigvec in -lucb" >&5 |
ea0caf4a | 2060 | ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'` |
2061 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2063 | else | |
2064 | ac_save_LIBS="$LIBS" | |
2065 | LIBS="-lucb -L/usr/ucblib $LIBS" | |
2066 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 2067 | #line 2068 "configure" |
ea0caf4a | 2068 | #include "confdefs.h" |
2069 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2070 | /* We use char because int might match the return type of a gcc2 | |
2071 | builtin and then its argument prototype would still apply. */ | |
2072 | char sigvec(); | |
2073 | ||
2074 | int main() { | |
2075 | sigvec() | |
2076 | ; return 0; } | |
2077 | EOF | |
618b3834 | 2078 | if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 2079 | rm -rf conftest* |
2080 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2081 | else | |
2082 | echo "configure: failed program was:" >&5 | |
2083 | cat conftest.$ac_ext >&5 | |
2084 | rm -rf conftest* | |
2085 | eval "ac_cv_lib_$ac_lib_var=no" | |
2086 | fi | |
2087 | rm -f conftest* | |
2088 | LIBS="$ac_save_LIBS" | |
2089 | ||
2090 | fi | |
2091 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2092 | echo "$ac_t""yes" 1>&6 | |
2093 | AFS_EXTRA_LIBS="$AFS_EXTRA_LIBS -L/usr/ucblib -lc -lucb" | |
2094 | else | |
2095 | echo "$ac_t""no" 1>&6 | |
2096 | : | |
2097 | fi | |
2098 | ||
2099 | fi | |
2100 | ||
2101 | echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6 | |
618b3834 | 2102 | echo "configure:2103: checking for pioctl in -lsys" >&5 |
ea0caf4a | 2103 | ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'` |
2104 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2106 | else | |
2107 | ac_save_LIBS="$LIBS" | |
2108 | LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys $AFS_EXTRA_LIBS $LIBS" | |
2109 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 2110 | #line 2111 "configure" |
ea0caf4a | 2111 | #include "confdefs.h" |
2112 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2113 | /* We use char because int might match the return type of a gcc2 | |
2114 | builtin and then its argument prototype would still apply. */ | |
2115 | char pioctl(); | |
2116 | ||
2117 | int main() { | |
2118 | pioctl() | |
2119 | ; return 0; } | |
2120 | EOF | |
618b3834 | 2121 | if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 2122 | rm -rf conftest* |
2123 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2124 | else | |
2125 | echo "configure: failed program was:" >&5 | |
2126 | cat conftest.$ac_ext >&5 | |
2127 | rm -rf conftest* | |
2128 | eval "ac_cv_lib_$ac_lib_var=no" | |
2129 | fi | |
2130 | rm -f conftest* | |
2131 | LIBS="$ac_save_LIBS" | |
2132 | ||
2133 | fi | |
2134 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2135 | echo "$ac_t""yes" 1>&6 | |
2136 | : | |
2137 | else | |
2138 | echo "$ac_t""no" 1>&6 | |
2139 | { echo "configure: error: AFS libraries not found" 1>&2; exit 1; } | |
2140 | fi | |
2141 | ||
2142 | ||
2143 | cat >> confdefs.h <<\EOF | |
2144 | #define HAVE_AFS 1 | |
2145 | EOF | |
2146 | ||
2147 | ||
2148 | case $PRO_C_DEFS in | |
2149 | *DEFINE=HAVE_AFS*) ;; | |
2150 | *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;; | |
2151 | esac | |
2152 | ||
2153 | ||
9ed720ef | 2154 | |
2155 | AFS_SUBDIRS="incremental" | |
2156 | AFS_OUTPUT_FILES="incremental/Makefile" | |
2157 | if test -d $srcdir/afssync; then | |
2158 | AFS_SUBDIRS="$AFS_SUBDIRS afssync" | |
2159 | AFS_OUTPUT_FILES="$AFS_OUTPUT_FILES afssync/Makefile" | |
2160 | fi | |
ea0caf4a | 2161 | fi |
2162 | ||
2163 | ||
2164 | ||
2165 | ||
2166 | ||
2167 | ||
9ed720ef | 2168 | |
ea0caf4a | 2169 | # GNU readline |
2170 | echo "checking for GNU readline..." 1>&6 | |
618b3834 | 2171 | echo "configure:2172: checking for GNU readline..." >&5 |
ea0caf4a | 2172 | # Check whether --with-readline or --without-readline was given. |
2173 | if test "${with_readline+set}" = set; then | |
2174 | withval="$with_readline" | |
2175 | readline="$withval" | |
2176 | else | |
2177 | echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 | |
618b3834 | 2178 | echo "configure:2179: checking for readline in -lreadline" >&5 |
ea0caf4a | 2179 | ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` |
2180 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2181 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2182 | else | |
2183 | ac_save_LIBS="$LIBS" | |
2184 | LIBS="-lreadline -ltermcap $LIBS" | |
2185 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 2186 | #line 2187 "configure" |
ea0caf4a | 2187 | #include "confdefs.h" |
2188 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2189 | /* We use char because int might match the return type of a gcc2 | |
2190 | builtin and then its argument prototype would still apply. */ | |
2191 | char readline(); | |
2192 | ||
2193 | int main() { | |
2194 | readline() | |
2195 | ; return 0; } | |
2196 | EOF | |
618b3834 | 2197 | if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 2198 | rm -rf conftest* |
2199 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2200 | else | |
2201 | echo "configure: failed program was:" >&5 | |
2202 | cat conftest.$ac_ext >&5 | |
2203 | rm -rf conftest* | |
2204 | eval "ac_cv_lib_$ac_lib_var=no" | |
2205 | fi | |
2206 | rm -f conftest* | |
2207 | LIBS="$ac_save_LIBS" | |
2208 | ||
2209 | fi | |
2210 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2211 | echo "$ac_t""yes" 1>&6 | |
2212 | readline=yes | |
2213 | else | |
2214 | echo "$ac_t""no" 1>&6 | |
2215 | : | |
2216 | fi | |
2217 | ||
2218 | fi | |
2219 | ||
2220 | if test "$readline" != no; then | |
2221 | if test "$readline" != yes; then | |
49c80e2c | 2222 | READLINE_CPPFLAGS="-I$readline/include -I$readline/include/readline -DHAVE_READLINE" |
ea0caf4a | 2223 | READLINE_LIBS="-L$readline/lib -lreadline -ltermcap" |
2224 | fi | |
2225 | fi | |
2226 | ||
2227 | ||
2228 | ||
2229 | # Curses | |
2230 | curses=curses | |
2231 | echo "checking for curses" 1>&6 | |
618b3834 | 2232 | echo "configure:2233: checking for curses" >&5 |
ea0caf4a | 2233 | echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6 |
618b3834 | 2234 | echo "configure:2235: checking for main in -lcurses" >&5 |
ea0caf4a | 2235 | ac_lib_var=`echo curses'_'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="-lcurses $LIBS" | |
2241 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 2242 | #line 2243 "configure" |
ea0caf4a | 2243 | #include "confdefs.h" |
2244 | ||
2245 | int main() { | |
2246 | main() | |
2247 | ; return 0; } | |
2248 | EOF | |
618b3834 | 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 | : | |
2265 | else | |
2266 | echo "$ac_t""no" 1>&6 | |
2267 | echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6 | |
618b3834 | 2268 | echo "configure:2269: checking for main in -lncurses" >&5 |
ea0caf4a | 2269 | ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'` |
2270 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2271 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2272 | else | |
2273 | ac_save_LIBS="$LIBS" | |
2274 | LIBS="-lncurses $LIBS" | |
2275 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 2276 | #line 2277 "configure" |
ea0caf4a | 2277 | #include "confdefs.h" |
2278 | ||
2279 | int main() { | |
2280 | main() | |
2281 | ; return 0; } | |
2282 | EOF | |
618b3834 | 2283 | if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 2284 | rm -rf conftest* |
2285 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2286 | else | |
2287 | echo "configure: failed program was:" >&5 | |
2288 | cat conftest.$ac_ext >&5 | |
2289 | rm -rf conftest* | |
2290 | eval "ac_cv_lib_$ac_lib_var=no" | |
2291 | fi | |
2292 | rm -f conftest* | |
2293 | LIBS="$ac_save_LIBS" | |
2294 | ||
2295 | fi | |
2296 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2297 | echo "$ac_t""yes" 1>&6 | |
2298 | curses=ncurses | |
2299 | else | |
2300 | echo "$ac_t""no" 1>&6 | |
2301 | fi | |
2302 | ||
2303 | fi | |
2304 | ||
2305 | if test -n "$curses"; then | |
2306 | OLDLIBS=$LIBS | |
2307 | LIBS=-l$curses | |
2308 | echo "checking if curses needs termcap" 1>&6 | |
618b3834 | 2309 | echo "configure:2310: checking if curses needs termcap" >&5 |
ea0caf4a | 2310 | if test "$cross_compiling" = yes; then |
2311 | : | |
2312 | else | |
2313 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 2314 | #line 2315 "configure" |
ea0caf4a | 2315 | #include "confdefs.h" |
2316 | #include <curses.h> | |
2317 | main(int argc, char **argv) | |
2318 | { | |
2319 | initscr(); | |
2320 | endwin(); | |
2321 | return 0; | |
2322 | } | |
2323 | EOF | |
618b3834 | 2324 | if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
ea0caf4a | 2325 | then |
2326 | CURSES_LIBS="-l$curses" | |
2327 | else | |
2328 | echo "configure: failed program was:" >&5 | |
2329 | cat conftest.$ac_ext >&5 | |
2330 | rm -fr conftest* | |
2331 | LIBS="-l$curses -ltermcap" | |
2332 | if test "$cross_compiling" = yes; then | |
2333 | : | |
2334 | else | |
2335 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 2336 | #line 2337 "configure" |
ea0caf4a | 2337 | #include "confdefs.h" |
2338 | #include <curses.h> | |
2339 | main(int argc, char **argv) | |
2340 | { | |
2341 | initscr(); | |
2342 | endwin(); | |
2343 | return 0; | |
2344 | } | |
2345 | EOF | |
618b3834 | 2346 | if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
ea0caf4a | 2347 | then |
2348 | CURSES_LIBS="-l$curses -ltermcap" | |
2349 | else | |
2350 | echo "configure: failed program was:" >&5 | |
2351 | cat conftest.$ac_ext >&5 | |
2352 | rm -fr conftest* | |
2353 | : | |
2354 | fi | |
2355 | rm -fr conftest* | |
2356 | fi | |
2357 | ||
2358 | fi | |
2359 | rm -fr conftest* | |
2360 | fi | |
2361 | ||
2362 | LIBS=$OLDLIBS | |
2363 | fi | |
2364 | if test -n "$CURSES_LIBS"; then | |
2365 | OLDLIBS=$LIBS | |
2366 | LIBS=$CURSES_LIBS | |
2367 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 2368 | #line 2369 "configure" |
ea0caf4a | 2369 | #include "confdefs.h" |
2370 | #include <curses.h> | |
2371 | int main() { | |
2372 | WINDOW *w; getmaxx(w); | |
2373 | ; return 0; } | |
2374 | EOF | |
618b3834 | 2375 | if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 2376 | rm -rf conftest* |
2377 | : | |
2378 | else | |
2379 | echo "configure: failed program was:" >&5 | |
2380 | cat conftest.$ac_ext >&5 | |
2381 | rm -rf conftest* | |
2382 | cat > conftest.$ac_ext <<EOF | |
618b3834 | 2383 | #line 2384 "configure" |
ea0caf4a | 2384 | #include "confdefs.h" |
2385 | #include <curses.h> | |
2386 | int main() { | |
2387 | WINDOW *w; w->_maxx; | |
2388 | ; return 0; } | |
2389 | EOF | |
618b3834 | 2390 | if { (eval echo configure:2391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ea0caf4a | 2391 | rm -rf conftest* |
2392 | CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'" | |
2393 | else | |
2394 | echo "configure: failed program was:" >&5 | |
2395 | cat conftest.$ac_ext >&5 | |
2396 | rm -rf conftest* | |
2397 | CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'" | |
2398 | fi | |
2399 | rm -f conftest* | |
2400 | fi | |
4753fa79 | 2401 | rm -f conftest* |
2402 | cat > conftest.$ac_ext <<EOF | |
2403 | #line 2404 "configure" | |
2404 | #include "confdefs.h" | |
2405 | #include <curses.h> | |
2406 | int main() { | |
2407 | newterm(NULL, NULL, NULL); | |
2408 | ; return 0; } | |
2409 | EOF | |
2410 | if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
2411 | rm -rf conftest* | |
2412 | CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM" | |
2413 | else | |
2414 | echo "configure: failed program was:" >&5 | |
2415 | cat conftest.$ac_ext >&5 | |
2416 | fi | |
ea0caf4a | 2417 | rm -f conftest* |
2418 | LIBS=$OLDLIBS | |
2419 | CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS" | |
2420 | CURSES_SUBDIRS='$(CURSES_SUBDIRS)' | |
2421 | else | |
2422 | echo "configure: warning: Couldn't find -lcurses" 1>&2 | |
2423 | fi | |
2424 | ||
2425 | ||
2426 | ||
2427 | ||
2428 | ||
2429 | for ac_func in getusershell | |
2430 | do | |
2431 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4753fa79 | 2432 | echo "configure:2433: checking for $ac_func" >&5 |
ea0caf4a | 2433 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2435 | else | |
2436 | cat > conftest.$ac_ext <<EOF | |
4753fa79 | 2437 | #line 2438 "configure" |
ea0caf4a | 2438 | #include "confdefs.h" |
2439 | /* System header to define __stub macros and hopefully few prototypes, | |
2440 | which can conflict with char $ac_func(); below. */ | |
2441 | #include <assert.h> | |
2442 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2443 | /* We use char because int might match the return type of a gcc2 | |
2444 | builtin and then its argument prototype would still apply. */ | |
2445 | char $ac_func(); | |
2446 | ||
2447 | int main() { | |
2448 | ||
2449 | /* The GNU C library defines this for functions which it implements | |
2450 | to always fail with ENOSYS. Some functions are actually named | |
2451 | something starting with __ and the normal name is an alias. */ | |
2452 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2453 | choke me | |
2454 | #else | |
2455 | $ac_func(); | |
2456 | #endif | |
2457 | ||
2458 | ; return 0; } | |
2459 | EOF | |
4753fa79 | 2460 | if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 2461 | rm -rf conftest* |
2462 | eval "ac_cv_func_$ac_func=yes" | |
2463 | else | |
2464 | echo "configure: failed program was:" >&5 | |
2465 | cat conftest.$ac_ext >&5 | |
2466 | rm -rf conftest* | |
2467 | eval "ac_cv_func_$ac_func=no" | |
2468 | fi | |
2469 | rm -f conftest* | |
2470 | fi | |
2471 | ||
2472 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2473 | echo "$ac_t""yes" 1>&6 | |
2474 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2475 | cat >> confdefs.h <<EOF | |
2476 | #define $ac_tr_func 1 | |
2477 | EOF | |
2478 | ||
2479 | else | |
2480 | echo "$ac_t""no" 1>&6 | |
2481 | fi | |
2482 | done | |
2483 | ||
2484 | ||
ea0caf4a | 2485 | |
25f58600 | 2486 | case $PRO_C_INCLUDES in |
2487 | *INCLUDE='$(srcdir)'*) ;; | |
2488 | *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;; | |
2489 | esac | |
2490 | ||
2491 | ||
ea0caf4a | 2492 | |
2493 | case $CPPFLAGS in | |
2494 | *-I'$(SRCTOP)/include'*) ;; | |
2495 | *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;; | |
2496 | esac | |
2497 | ||
2498 | ||
2499 | case $PRO_C_INCLUDES in | |
2500 | *INCLUDE='$(SRCTOP)/include'*) ;; | |
2501 | *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;; | |
2502 | esac | |
2503 | ||
2504 | ||
2505 | ||
2506 | ||
25f58600 | 2507 | case $CPPFLAGS in |
2508 | *-I'$(SRCTOP)/lib'*) ;; | |
2509 | *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;; | |
2510 | esac | |
2511 | ||
2512 | ||
2513 | case $PRO_C_INCLUDES in | |
2514 | *INCLUDE='$(SRCTOP)/lib'*) ;; | |
2515 | *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;; | |
2516 | esac | |
2517 | ||
2518 | ||
2519 | ||
2520 | ||
ea0caf4a | 2521 | case $CPPFLAGS in |
2522 | *-I'$(BUILDTOP)/lib'*) ;; | |
2523 | *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;; | |
2524 | esac | |
2525 | ||
2526 | ||
2527 | case $PRO_C_INCLUDES in | |
2528 | *INCLUDE='$(BUILDTOP)/lib'*) ;; | |
2529 | *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;; | |
2530 | esac | |
2531 | ||
2532 | ||
2533 | ||
2534 | ||
2535 | case $CPPFLAGS in | |
2536 | *-I'$(BUILDTOP)/db'*) ;; | |
2537 | *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;; | |
2538 | esac | |
2539 | ||
2540 | ||
2541 | case $PRO_C_INCLUDES in | |
2542 | *INCLUDE='$(BUILDTOP)/db'*) ;; | |
2543 | *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;; | |
2544 | esac | |
2545 | ||
2546 | ||
9976f5e9 | 2547 | |
2548 | ||
2549 | case $CPPFLAGS in | |
2550 | *-I'$(srcdir)'*) ;; | |
2551 | *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;; | |
2552 | esac | |
2553 | ||
2554 | ||
2555 | case $PRO_C_INCLUDES in | |
2556 | *INCLUDE='$(srcdir)'*) ;; | |
2557 | *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;; | |
2558 | esac | |
2559 | ||
2560 | ||
ea0caf4a | 2561 | LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH" |
2562 | KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS" | |
2563 | LIBS="-lmoira $KLIBS" | |
2564 | ||
2565 | ||
3fb6166b | 2566 | MR_LIBDEP='$(BUILDTOP)/lib/libmoira.a' |
2567 | ||
2568 | ||
ea0caf4a | 2569 | trap '' 1 2 15 |
2570 | cat > confcache <<\EOF | |
2571 | # This file is a shell script that caches the results of configure | |
2572 | # tests run on this system so they can be shared between configure | |
2573 | # scripts and configure runs. It is not useful on other systems. | |
2574 | # If it contains results you don't want to keep, you may remove or edit it. | |
2575 | # | |
2576 | # By default, configure uses ./config.cache as the cache file, | |
2577 | # creating it if it does not exist already. You can give configure | |
2578 | # the --cache-file=FILE option to use a different cache file; that is | |
2579 | # what configure does when it calls configure scripts in | |
2580 | # subdirectories, so they share the cache. | |
2581 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2582 | # config.status only pays attention to the cache file if you give it the | |
2583 | # --recheck option to rerun configure. | |
2584 | # | |
2585 | EOF | |
2586 | # The following way of writing the cache mishandles newlines in values, | |
2587 | # but we know of no workaround that is simple, portable, and efficient. | |
2588 | # So, don't put newlines in cache variables' values. | |
2589 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2590 | # and sets the high bit in the cache file unless we assign to the vars. | |
2591 | (set) 2>&1 | | |
2592 | case `(ac_space=' '; set) 2>&1` in | |
2593 | *ac_space=\ *) | |
2594 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2595 | # turns \\\\ into \\, and sed turns \\ into \). | |
2596 | sed -n \ | |
2597 | -e "s/'/'\\\\''/g" \ | |
2598 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2599 | ;; | |
2600 | *) | |
2601 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2602 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2603 | ;; | |
2604 | esac >> confcache | |
2605 | if cmp -s $cache_file confcache; then | |
2606 | : | |
2607 | else | |
2608 | if test -w $cache_file; then | |
2609 | echo "updating cache $cache_file" | |
2610 | cat confcache > $cache_file | |
2611 | else | |
2612 | echo "not updating unwritable cache $cache_file" | |
2613 | fi | |
2614 | fi | |
2615 | rm -f confcache | |
2616 | ||
2617 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2618 | ||
2619 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2620 | # Let make expand exec_prefix. | |
2621 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2622 | ||
2623 | # Any assignment to VPATH causes Sun make to only execute | |
2624 | # the first set of double-colon rules, so remove it if not needed. | |
2625 | # If there is a colon in the path, we need to keep it. | |
2626 | if test "x$srcdir" = x.; then | |
2627 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
2628 | fi | |
2629 | ||
2630 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
2631 | ||
2632 | # Transform confdefs.h into DEFS. | |
2633 | # Protect against shell expansion while executing Makefile rules. | |
2634 | # Protect against Makefile macro expansion. | |
2635 | cat > conftest.defs <<\EOF | |
2636 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
2637 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
2638 | s%\[%\\&%g | |
2639 | s%\]%\\&%g | |
2640 | s%\$%$$%g | |
2641 | EOF | |
2642 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
2643 | rm -f conftest.defs | |
2644 | ||
2645 | ||
2646 | # Without the "./", some shells look in PATH for config.status. | |
2647 | : ${CONFIG_STATUS=./config.status} | |
2648 | ||
2649 | echo creating $CONFIG_STATUS | |
2650 | rm -f $CONFIG_STATUS | |
2651 | cat > $CONFIG_STATUS <<EOF | |
2652 | #! /bin/sh | |
2653 | # Generated automatically by configure. | |
2654 | # Run this file to recreate the current configuration. | |
2655 | # This directory was configured as follows, | |
2656 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
2657 | # | |
2658 | # $0 $ac_configure_args | |
2659 | # | |
2660 | # Compiler output produced by configure, useful for debugging | |
2661 | # configure, is in ./config.log if it exists. | |
2662 | ||
2663 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2664 | for ac_option | |
2665 | do | |
2666 | case "\$ac_option" in | |
2667 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
2668 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
2669 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
2670 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
2671 | echo "$CONFIG_STATUS generated by autoconf version 2.12" | |
2672 | exit 0 ;; | |
2673 | -help | --help | --hel | --he | --h) | |
2674 | echo "\$ac_cs_usage"; exit 0 ;; | |
2675 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
2676 | esac | |
2677 | done | |
2678 | ||
2679 | ac_given_srcdir=$srcdir | |
2680 | ac_given_INSTALL="$INSTALL" | |
2681 | ||
2682 | trap 'rm -fr `echo "Makefile lib/Makefile include/Makefile clients/Makefile \ | |
2683 | clients/addusr/Makefile clients/blanche/Makefile \ | |
2684 | clients/mailmaint/Makefile clients/moira/Makefile \ | |
2685 | clients/mrcheck/Makefile clients/mrtest/Makefile \ | |
1c1c45eb | 2686 | clients/passwd/Makefile update/Makefile man/Makefile \ |
9ed720ef | 2687 | $SERVER_OUTPUT_FILES $AFS_OUTPUT_FILES \ |
2688 | $GDSS_OUTPUT_FILES $RSAREF_OUTPUT_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
ea0caf4a | 2689 | EOF |
2690 | cat >> $CONFIG_STATUS <<EOF | |
2691 | ||
2692 | # Protect against being on the right side of a sed subst in config.status. | |
2693 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
2694 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
2695 | $ac_vpsub | |
2696 | $extrasub | |
2697 | s%@CFLAGS@%$CFLAGS%g | |
2698 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2699 | s%@CXXFLAGS@%$CXXFLAGS%g | |
2700 | s%@DEFS@%$DEFS%g | |
2701 | s%@LDFLAGS@%$LDFLAGS%g | |
2702 | s%@LIBS@%$LIBS%g | |
2703 | s%@exec_prefix@%$exec_prefix%g | |
2704 | s%@prefix@%$prefix%g | |
2705 | s%@program_transform_name@%$program_transform_name%g | |
2706 | s%@bindir@%$bindir%g | |
2707 | s%@sbindir@%$sbindir%g | |
2708 | s%@libexecdir@%$libexecdir%g | |
2709 | s%@datadir@%$datadir%g | |
2710 | s%@sysconfdir@%$sysconfdir%g | |
2711 | s%@sharedstatedir@%$sharedstatedir%g | |
2712 | s%@localstatedir@%$localstatedir%g | |
2713 | s%@libdir@%$libdir%g | |
2714 | s%@includedir@%$includedir%g | |
2715 | s%@oldincludedir@%$oldincludedir%g | |
2716 | s%@infodir@%$infodir%g | |
2717 | s%@mandir@%$mandir%g | |
2718 | s%@CC@%$CC%g | |
2719 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2720 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2721 | s%@RANLIB@%$RANLIB%g | |
2722 | s%@SET_MAKE@%$SET_MAKE%g | |
2723 | s%@mrbindir@%$mrbindir%g | |
2724 | s%@subdirs@%$subdirs%g | |
2725 | s%@COM_ERR_SUBDIR@%$COM_ERR_SUBDIR%g | |
2726 | s%@COMPILE_ET@%$COMPILE_ET%g | |
7f7f279f | 2727 | s%@REG_SVR_DEFS@%$REG_SVR_DEFS%g |
2728 | s%@REG_SVR_INCLUDES@%$REG_SVR_INCLUDES%g | |
2729 | s%@REG_SVR_LIBS@%$REG_SVR_LIBS%g | |
ea0caf4a | 2730 | s%@GDSS_CPPFLAGS@%$GDSS_CPPFLAGS%g |
2731 | s%@GDSS_LIBS@%$GDSS_LIBS%g | |
2732 | s%@GDSS_SUBDIR@%$GDSS_SUBDIR%g | |
2733 | s%@GDSS_OBJS@%$GDSS_OBJS%g | |
2734 | s%@GDSS_CFILES@%$GDSS_CFILES%g | |
2735 | s%@GDSS_TARGET@%$GDSS_TARGET%g | |
3fb6166b | 2736 | s%@GDSS_LIBDEP@%$GDSS_LIBDEP%g |
33567bea | 2737 | s%@RSAREF_CPPFLAGS@%$RSAREF_CPPFLAGS%g |
2738 | s%@RSAREF_LIBS@%$RSAREF_LIBS%g | |
2739 | s%@RSAREF_SUBDIRS@%$RSAREF_SUBDIRS%g | |
3fb6166b | 2740 | s%@RSAREF_LIBDEP@%$RSAREF_LIBDEP%g |
ea0caf4a | 2741 | s%@PRO_C@%$PRO_C%g |
2742 | s%@PRO_C_DEFS@%$PRO_C_DEFS%g | |
2743 | s%@PRO_C_INCLUDES@%$PRO_C_INCLUDES%g | |
2744 | s%@PRO_C_OPTS@%$PRO_C_OPTS%g | |
2745 | s%@SQL_LIBS@%$SQL_LIBS%g | |
2746 | s%@SVRSUBDIRS@%$SVRSUBDIRS%g | |
2747 | s%@AFS_CPPFLAGS@%$AFS_CPPFLAGS%g | |
2748 | s%@AFS_PRO_C_INCLUDES@%$AFS_PRO_C_INCLUDES%g | |
2749 | s%@AFS_LIBS@%$AFS_LIBS%g | |
2750 | s%@AFS_EXTRA_LIBS@%$AFS_EXTRA_LIBS%g | |
2751 | s%@AFS_DIR@%$AFS_DIR%g | |
9ed720ef | 2752 | s%@AFS_SUBDIRS@%$AFS_SUBDIRS%g |
ea0caf4a | 2753 | s%@READLINE_CPPFLAGS@%$READLINE_CPPFLAGS%g |
2754 | s%@READLINE_LIBS@%$READLINE_LIBS%g | |
2755 | s%@CURSES_CPPFLAGS@%$CURSES_CPPFLAGS%g | |
2756 | s%@CURSES_LIBS@%$CURSES_LIBS%g | |
2757 | s%@CURSES_SUBDIRS@%$CURSES_SUBDIRS%g | |
ea0caf4a | 2758 | s%@KLIBS@%$KLIBS%g |
3fb6166b | 2759 | s%@MR_LIBDEP@%$MR_LIBDEP%g |
ea0caf4a | 2760 | |
2761 | CEOF | |
2762 | EOF | |
2763 | ||
2764 | cat >> $CONFIG_STATUS <<\EOF | |
2765 | ||
2766 | # Split the substitutions into bite-sized pieces for seds with | |
2767 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
2768 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
2769 | ac_file=1 # Number of current file. | |
2770 | ac_beg=1 # First line for current file. | |
2771 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
2772 | ac_more_lines=: | |
2773 | ac_sed_cmds="" | |
2774 | while $ac_more_lines; do | |
2775 | if test $ac_beg -gt 1; then | |
2776 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
2777 | else | |
2778 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
2779 | fi | |
2780 | if test ! -s conftest.s$ac_file; then | |
2781 | ac_more_lines=false | |
2782 | rm -f conftest.s$ac_file | |
2783 | else | |
2784 | if test -z "$ac_sed_cmds"; then | |
2785 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
2786 | else | |
2787 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
2788 | fi | |
2789 | ac_file=`expr $ac_file + 1` | |
2790 | ac_beg=$ac_end | |
2791 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
2792 | fi | |
2793 | done | |
2794 | if test -z "$ac_sed_cmds"; then | |
2795 | ac_sed_cmds=cat | |
2796 | fi | |
2797 | EOF | |
2798 | ||
2799 | cat >> $CONFIG_STATUS <<EOF | |
2800 | ||
2801 | CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile include/Makefile clients/Makefile \ | |
2802 | clients/addusr/Makefile clients/blanche/Makefile \ | |
2803 | clients/mailmaint/Makefile clients/moira/Makefile \ | |
2804 | clients/mrcheck/Makefile clients/mrtest/Makefile \ | |
1c1c45eb | 2805 | clients/passwd/Makefile update/Makefile man/Makefile \ |
9ed720ef | 2806 | $SERVER_OUTPUT_FILES $AFS_OUTPUT_FILES \ |
2807 | $GDSS_OUTPUT_FILES $RSAREF_OUTPUT_FILES"} | |
ea0caf4a | 2808 | EOF |
2809 | cat >> $CONFIG_STATUS <<\EOF | |
2810 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
2811 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
2812 | case "$ac_file" in | |
2813 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
2814 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2815 | *) ac_file_in="${ac_file}.in" ;; | |
2816 | esac | |
2817 | ||
2818 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
2819 | ||
2820 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2821 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2822 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2823 | # The file is in a subdirectory. | |
2824 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2825 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
2826 | # A "../" for each directory in $ac_dir_suffix. | |
2827 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
2828 | else | |
2829 | ac_dir_suffix= ac_dots= | |
2830 | fi | |
2831 | ||
2832 | case "$ac_given_srcdir" in | |
2833 | .) srcdir=. | |
2834 | if test -z "$ac_dots"; then top_srcdir=. | |
2835 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
2836 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2837 | *) # Relative path. | |
2838 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2839 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2840 | esac | |
2841 | ||
2842 | case "$ac_given_INSTALL" in | |
2843 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2844 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2845 | esac | |
2846 | ||
2847 | echo creating "$ac_file" | |
2848 | rm -f "$ac_file" | |
2849 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
2850 | case "$ac_file" in | |
2851 | *Makefile*) ac_comsub="1i\\ | |
2852 | # $configure_input" ;; | |
2853 | *) ac_comsub= ;; | |
2854 | esac | |
2855 | ||
2856 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
2857 | sed -e "$ac_comsub | |
2858 | s%@configure_input@%$configure_input%g | |
2859 | s%@srcdir@%$srcdir%g | |
2860 | s%@top_srcdir@%$top_srcdir%g | |
2861 | s%@INSTALL@%$INSTALL%g | |
2862 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
2863 | fi; done | |
2864 | rm -f conftest.s* | |
2865 | ||
2866 | EOF | |
2867 | cat >> $CONFIG_STATUS <<EOF | |
2868 | ||
2869 | EOF | |
2870 | cat >> $CONFIG_STATUS <<\EOF | |
2871 | ||
2872 | exit 0 | |
2873 | EOF | |
2874 | chmod +x $CONFIG_STATUS | |
2875 | rm -fr confdefs* $ac_clean_files | |
2876 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
2877 | ||
2878 | if test "$no_recursion" != yes; then | |
2879 | ||
2880 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
2881 | ac_sub_configure_args= | |
2882 | ac_prev= | |
2883 | for ac_arg in $ac_configure_args; do | |
2884 | if test -n "$ac_prev"; then | |
2885 | ac_prev= | |
2886 | continue | |
2887 | fi | |
2888 | case "$ac_arg" in | |
2889 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
2890 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
2891 | ac_prev=cache_file ;; | |
2892 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
2893 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
2894 | ;; | |
2895 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
2896 | ac_prev=srcdir ;; | |
2897 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
2898 | ;; | |
2899 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
2900 | esac | |
2901 | done | |
2902 | ||
2903 | for ac_config_dir in $COM_ERR_SUBDIR; do | |
2904 | ||
2905 | # Do not complain, so a configure script can configure whichever | |
2906 | # parts of a large source tree are present. | |
2907 | if test ! -d $srcdir/$ac_config_dir; then | |
2908 | continue | |
2909 | fi | |
2910 | ||
2911 | echo configuring in $ac_config_dir | |
2912 | ||
2913 | case "$srcdir" in | |
2914 | .) ;; | |
2915 | *) | |
2916 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
2917 | else | |
2918 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
2919 | fi | |
2920 | ;; | |
2921 | esac | |
2922 | ||
2923 | ac_popdir=`pwd` | |
2924 | cd $ac_config_dir | |
2925 | ||
2926 | # A "../" for each directory in /$ac_config_dir. | |
2927 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2928 | ||
2929 | case "$srcdir" in | |
2930 | .) # No --srcdir option. We are building in place. | |
2931 | ac_sub_srcdir=$srcdir ;; | |
2932 | /*) # Absolute path. | |
2933 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2934 | *) # Relative path. | |
2935 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
2936 | esac | |
2937 | ||
2938 | # Check for guested configure; otherwise get Cygnus style configure. | |
2939 | if test -f $ac_sub_srcdir/configure; then | |
2940 | ac_sub_configure=$ac_sub_srcdir/configure | |
2941 | elif test -f $ac_sub_srcdir/configure.in; then | |
2942 | ac_sub_configure=$ac_configure | |
2943 | else | |
2944 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
2945 | ac_sub_configure= | |
2946 | fi | |
2947 | ||
2948 | # The recursion is here. | |
2949 | if test -n "$ac_sub_configure"; then | |
2950 | ||
2951 | # Make the cache file name correct relative to the subdirectory. | |
2952 | case "$cache_file" in | |
2953 | /*) ac_sub_cache_file=$cache_file ;; | |
2954 | *) # Relative path. | |
2955 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
2956 | esac | |
2957 | case "$ac_given_INSTALL" in | |
2958 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2959 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2960 | esac | |
2961 | ||
2962 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
2963 | # The eval makes quoting arguments work. | |
2964 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
2965 | then : | |
2966 | else | |
2967 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
2968 | fi | |
2969 | fi | |
2970 | ||
2971 | cd $ac_popdir | |
2972 | done | |
2973 | fi | |
2974 |