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