Commit | Line | Data |
---|---|---|
5436fc65 C |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
a2b63bbd | 4 | # Generated automatically using autoconf version 2.4 |
5436fc65 C |
5 | # Copyright (C) 1992, 1993, 1994 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-netrom " | |
16 | ac_help="$ac_help | |
17 | --enable-gdbtk " | |
18 | ac_help="$ac_help | |
19 | --with-x use the X Window System" | |
20 | ||
21 | # Initialize some variables set by options. | |
22 | # The variables have the same names as the options, with | |
23 | # dashes changed to underlines. | |
24 | build=NONE | |
25 | cache_file=./config.cache | |
26 | exec_prefix=NONE | |
27 | host=NONE | |
28 | no_create= | |
29 | nonopt=NONE | |
30 | no_recursion= | |
31 | prefix=NONE | |
32 | program_prefix=NONE | |
33 | program_suffix=NONE | |
34 | program_transform_name=s,x,x, | |
35 | silent= | |
36 | site= | |
37 | srcdir= | |
38 | target=NONE | |
39 | verbose= | |
40 | x_includes=NONE | |
41 | x_libraries=NONE | |
42 | ||
43 | # Initialize some other variables. | |
44 | subdirs= | |
45 | ||
46 | ac_prev= | |
47 | for ac_option | |
48 | do | |
49 | ||
50 | # If the previous option needs an argument, assign it. | |
51 | if test -n "$ac_prev"; then | |
52 | eval "$ac_prev=\$ac_option" | |
53 | ac_prev= | |
54 | continue | |
55 | fi | |
56 | ||
57 | case "$ac_option" in | |
58 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
59 | *) ac_optarg= ;; | |
60 | esac | |
61 | ||
62 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
63 | ||
64 | case "$ac_option" in | |
65 | ||
a2b63bbd | 66 | -build | --build | --buil | --bui | --bu | --b) |
5436fc65 | 67 | ac_prev=build ;; |
a2b63bbd | 68 | -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) |
5436fc65 C |
69 | build="$ac_optarg" ;; |
70 | ||
71 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
72 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
73 | ac_prev=cache_file ;; | |
74 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
75 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
76 | cache_file="$ac_optarg" ;; | |
77 | ||
78 | -disable-* | --disable-*) | |
79 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
80 | # Reject names that are not valid shell variable names. | |
81 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
82 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
83 | fi | |
84 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
85 | eval "enable_${ac_feature}=no" ;; | |
86 | ||
87 | -enable-* | --enable-*) | |
88 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
89 | # Reject names that are not valid shell variable names. | |
90 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
91 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
92 | fi | |
93 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
94 | case "$ac_option" in | |
95 | *=*) ;; | |
96 | *) ac_optarg=yes ;; | |
97 | esac | |
98 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
99 | ||
100 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
101 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
102 | | --exec | --exe | --ex) | |
103 | ac_prev=exec_prefix ;; | |
104 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
105 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
106 | | --exec=* | --exe=* | --ex=*) | |
107 | exec_prefix="$ac_optarg" ;; | |
108 | ||
109 | -gas | --gas | --ga | --g) | |
110 | # Obsolete; use --with-gas. | |
111 | with_gas=yes ;; | |
112 | ||
113 | -help | --help | --hel | --he) | |
114 | # Omit some internal or obsolete options to make the list less imposing. | |
115 | # This message is too long to be a string in the A/UX 3.1 sh. | |
116 | cat << EOF | |
117 | Usage: configure [options] [host] | |
118 | Options: [defaults in brackets after descriptions] | |
119 | Configuration: | |
120 | --cache-file=FILE cache test results in FILE | |
121 | --help print this message | |
122 | --no-create do not create output files | |
123 | --quiet, --silent do not print \`checking...' messages | |
124 | --version print the version of autoconf that created configure | |
125 | Directory and file names: | |
126 | --prefix=PREFIX install architecture-independent files in PREFIX | |
127 | [$ac_default_prefix] | |
a2b63bbd | 128 | --exec-prefix=PREFIX install architecture-dependent files in PREFIX |
5436fc65 C |
129 | [same as prefix] |
130 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
131 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
132 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
133 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
134 | Host type: | |
135 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
136 | --host=HOST configure for HOST [guessed] | |
137 | --target=TARGET configure for TARGET [TARGET=HOST] | |
138 | Features and packages: | |
139 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
140 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
141 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
142 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
143 | --x-includes=DIR X include files are in DIR | |
144 | --x-libraries=DIR X library files are in DIR | |
145 | --enable and --with options recognized:$ac_help | |
146 | EOF | |
147 | exit 0 ;; | |
148 | ||
149 | -host | --host | --hos | --ho) | |
150 | ac_prev=host ;; | |
151 | -host=* | --host=* | --hos=* | --ho=*) | |
152 | host="$ac_optarg" ;; | |
153 | ||
154 | -nfp | --nfp | --nf) | |
155 | # Obsolete; use --without-fp. | |
156 | with_fp=no ;; | |
157 | ||
158 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
159 | | --no-cr | --no-c) | |
160 | no_create=yes ;; | |
161 | ||
162 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
163 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
164 | no_recursion=yes ;; | |
165 | ||
166 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
167 | ac_prev=prefix ;; | |
168 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
169 | prefix="$ac_optarg" ;; | |
170 | ||
171 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
172 | | --program-pre | --program-pr | --program-p) | |
173 | ac_prev=program_prefix ;; | |
174 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
175 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
176 | program_prefix="$ac_optarg" ;; | |
177 | ||
178 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
179 | | --program-suf | --program-su | --program-s) | |
180 | ac_prev=program_suffix ;; | |
181 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
182 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
183 | program_suffix="$ac_optarg" ;; | |
184 | ||
185 | -program-transform-name | --program-transform-name \ | |
186 | | --program-transform-nam | --program-transform-na \ | |
187 | | --program-transform-n | --program-transform- \ | |
188 | | --program-transform | --program-transfor \ | |
189 | | --program-transfo | --program-transf \ | |
190 | | --program-trans | --program-tran \ | |
191 | | --progr-tra | --program-tr | --program-t) | |
192 | ac_prev=program_transform_name ;; | |
193 | -program-transform-name=* | --program-transform-name=* \ | |
194 | | --program-transform-nam=* | --program-transform-na=* \ | |
195 | | --program-transform-n=* | --program-transform-=* \ | |
196 | | --program-transform=* | --program-transfor=* \ | |
197 | | --program-transfo=* | --program-transf=* \ | |
198 | | --program-trans=* | --program-tran=* \ | |
199 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
200 | program_transform_name="$ac_optarg" ;; | |
201 | ||
202 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
203 | | -silent | --silent | --silen | --sile | --sil) | |
204 | silent=yes ;; | |
205 | ||
206 | -site | --site | --sit) | |
207 | ac_prev=site ;; | |
208 | -site=* | --site=* | --sit=*) | |
209 | site="$ac_optarg" ;; | |
210 | ||
211 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
212 | ac_prev=srcdir ;; | |
213 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
214 | srcdir="$ac_optarg" ;; | |
215 | ||
216 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
217 | ac_prev=target ;; | |
218 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
219 | target="$ac_optarg" ;; | |
220 | ||
221 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
222 | verbose=yes ;; | |
223 | ||
224 | -version | --version | --versio | --versi | --vers) | |
a2b63bbd | 225 | echo "configure generated by autoconf version 2.4" |
5436fc65 C |
226 | exit 0 ;; |
227 | ||
228 | -with-* | --with-*) | |
229 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
230 | # Reject names that are not valid shell variable names. | |
231 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
232 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
233 | fi | |
234 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
235 | case "$ac_option" in | |
236 | *=*) ;; | |
237 | *) ac_optarg=yes ;; | |
238 | esac | |
239 | eval "with_${ac_package}='$ac_optarg'" ;; | |
240 | ||
241 | -without-* | --without-*) | |
242 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
243 | # Reject names that are not valid shell variable names. | |
244 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
245 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
246 | fi | |
247 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
248 | eval "with_${ac_package}=no" ;; | |
249 | ||
250 | --x) | |
251 | # Obsolete; use --with-x. | |
252 | with_x=yes ;; | |
253 | ||
254 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
255 | | --x-incl | --x-inc | --x-in | --x-i) | |
256 | ac_prev=x_includes ;; | |
257 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
258 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
259 | x_includes="$ac_optarg" ;; | |
260 | ||
261 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
262 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
263 | ac_prev=x_libraries ;; | |
264 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
265 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
266 | x_libraries="$ac_optarg" ;; | |
267 | ||
268 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
269 | ;; | |
270 | ||
271 | *) | |
272 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
273 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
274 | fi | |
275 | if test "x$nonopt" != xNONE; then | |
276 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
277 | fi | |
278 | nonopt="$ac_option" | |
279 | ;; | |
280 | ||
281 | esac | |
282 | done | |
283 | ||
284 | if test -n "$ac_prev"; then | |
285 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
286 | fi | |
287 | ||
288 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
289 | ||
290 | # File descriptor usage: | |
291 | # 0 standard input | |
292 | # 1 file creation | |
293 | # 2 errors and warnings | |
294 | # 3 some systems may open it to /dev/tty | |
295 | # 4 used on the Kubota Titan | |
296 | # 6 checking for... messages and results | |
297 | # 5 compiler messages saved in config.log | |
298 | if test "$silent" = yes; then | |
299 | exec 6>/dev/null | |
300 | else | |
301 | exec 6>&1 | |
302 | fi | |
303 | exec 5>./config.log | |
304 | ||
305 | echo "\ | |
306 | This file contains any messages produced by compilers while | |
307 | running configure, to aid debugging if configure makes a mistake. | |
308 | " 1>&5 | |
309 | ||
310 | # Strip out --no-create and --no-recursion so they do not pile up. | |
311 | # Also quote any args containing shell metacharacters. | |
312 | ac_configure_args= | |
313 | for ac_arg | |
314 | do | |
315 | case "$ac_arg" in | |
316 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
317 | | --no-cr | --no-c) ;; | |
318 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
319 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
320 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
321 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
322 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
323 | esac | |
324 | done | |
325 | ||
326 | # NLS nuisances. | |
327 | # Only set LANG and LC_ALL to C if already set. | |
328 | # These must not be set unconditionally because not all systems understand | |
329 | # e.g. LANG=C (notably SCO). | |
330 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
331 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
332 | ||
333 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
334 | rm -rf conftest* confdefs.h | |
335 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
336 | echo > confdefs.h | |
337 | ||
338 | # A filename unique to this package, relative to the directory that | |
339 | # configure is in, which we can look for to find out if srcdir is correct. | |
340 | ac_unique_file=main.c | |
341 | ||
342 | # Find the source files, if location was not specified. | |
343 | if test -z "$srcdir"; then | |
344 | ac_srcdir_defaulted=yes | |
345 | # Try the directory containing this script, then its parent. | |
346 | ac_prog=$0 | |
347 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
348 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
349 | srcdir=$ac_confdir | |
350 | if test ! -r $srcdir/$ac_unique_file; then | |
351 | srcdir=.. | |
352 | fi | |
353 | else | |
354 | ac_srcdir_defaulted=no | |
355 | fi | |
356 | if test ! -r $srcdir/$ac_unique_file; then | |
357 | if test "$ac_srcdir_defaulted" = yes; then | |
358 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
359 | else | |
360 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
361 | fi | |
362 | fi | |
363 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
364 | ||
365 | # Prefer explicitly selected file to automatically selected ones. | |
366 | if test -z "$CONFIG_SITE"; then | |
367 | if test "x$prefix" != xNONE; then | |
368 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
369 | else | |
370 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
371 | fi | |
372 | fi | |
373 | for ac_site_file in $CONFIG_SITE; do | |
374 | if test -r "$ac_site_file"; then | |
375 | echo "loading site script $ac_site_file" | |
376 | . "$ac_site_file" | |
377 | fi | |
378 | done | |
379 | ||
380 | if test -r "$cache_file"; then | |
381 | echo "loading cache $cache_file" | |
382 | . $cache_file | |
383 | else | |
384 | echo "creating cache $cache_file" | |
385 | > $cache_file | |
386 | fi | |
387 | ||
388 | ac_ext=c | |
389 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
a2b63bbd JM |
390 | ac_cpp='$CPP $CPPFLAGS' |
391 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' | |
392 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | |
5436fc65 C |
393 | |
394 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
395 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
396 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
397 | ac_n= ac_c=' | |
398 | ' ac_t=' ' | |
399 | else | |
400 | ac_n=-n ac_c= ac_t= | |
401 | fi | |
402 | else | |
403 | ac_n= ac_c='\c' ac_t= | |
404 | fi | |
405 | ||
406 | ||
407 | ||
408 | CC=${CC-cc} | |
409 | # Extract the first word of "gcc", so it can be a program name with args. | |
410 | set dummy gcc; ac_word=$2 | |
411 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
412 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
414 | else | |
415 | if test -n "$CC"; then | |
416 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
417 | else | |
418 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
419 | for ac_dir in $PATH; do | |
420 | test -z "$ac_dir" && ac_dir=. | |
421 | if test -f $ac_dir/$ac_word; then | |
422 | ac_cv_prog_CC="gcc" | |
423 | break | |
424 | fi | |
425 | done | |
426 | IFS="$ac_save_ifs" | |
427 | test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" | |
428 | fi | |
429 | fi | |
430 | CC="$ac_cv_prog_CC" | |
431 | if test -n "$CC"; then | |
432 | echo "$ac_t""$CC" 1>&6 | |
433 | else | |
434 | echo "$ac_t""no" 1>&6 | |
435 | fi | |
436 | ||
437 | ||
438 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
439 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
441 | else | |
442 | cat > conftest.c <<EOF | |
443 | #ifdef __GNUC__ | |
444 | yes; | |
445 | #endif | |
446 | EOF | |
447 | if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then | |
448 | ac_cv_prog_gcc=yes | |
449 | else | |
450 | ac_cv_prog_gcc=no | |
451 | fi | |
452 | fi | |
453 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
454 | if test $ac_cv_prog_gcc = yes; then | |
455 | GCC=yes | |
456 | if test "${CFLAGS+set}" != set; then | |
457 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
458 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then | |
459 | echo $ac_n "(cached) $ac_c" 1>&6 | |
460 | else | |
461 | echo 'void f(){}' > conftest.c | |
462 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
463 | ac_cv_prog_gcc_g=yes | |
464 | else | |
465 | ac_cv_prog_gcc_g=no | |
466 | fi | |
467 | rm -f conftest* | |
468 | ||
469 | fi | |
a2b63bbd | 470 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 |
5436fc65 C |
471 | if test $ac_cv_prog_gcc_g = yes; then |
472 | CFLAGS="-g -O" | |
473 | else | |
474 | CFLAGS="-O" | |
475 | fi | |
476 | fi | |
477 | else | |
478 | GCC= | |
479 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
480 | fi | |
481 | ||
482 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
483 | # On Suns, sometimes $CPP names a directory. | |
484 | if test -n "$CPP" && test -d "$CPP"; then | |
485 | CPP= | |
486 | fi | |
487 | if test -z "$CPP"; then | |
488 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
490 | else | |
491 | # This must be in double quotes, not single quotes, because CPP may get | |
492 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
493 | CPP="${CC-cc} -E" | |
494 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
495 | # not just through cpp. | |
496 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 497 | #line 498 "configure" |
5436fc65 C |
498 | #include "confdefs.h" |
499 | #include <assert.h> | |
500 | Syntax Error | |
501 | EOF | |
502 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
503 | ac_err=`grep -v '^ *+' conftest.out` | |
504 | if test -z "$ac_err"; then | |
505 | : | |
506 | else | |
507 | echo "$ac_err" >&5 | |
508 | rm -rf conftest* | |
509 | CPP="${CC-cc} -E -traditional-cpp" | |
510 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 511 | #line 512 "configure" |
5436fc65 C |
512 | #include "confdefs.h" |
513 | #include <assert.h> | |
514 | Syntax Error | |
515 | EOF | |
516 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
517 | ac_err=`grep -v '^ *+' conftest.out` | |
518 | if test -z "$ac_err"; then | |
519 | : | |
520 | else | |
521 | echo "$ac_err" >&5 | |
522 | rm -rf conftest* | |
523 | CPP=/lib/cpp | |
524 | fi | |
525 | rm -f conftest* | |
526 | fi | |
527 | rm -f conftest* | |
528 | ac_cv_prog_CPP="$CPP" | |
529 | fi | |
dedcc91d SC |
530 | CPP="$ac_cv_prog_CPP" |
531 | else | |
532 | ac_cv_prog_CPP="$CPP" | |
5436fc65 | 533 | fi |
5436fc65 C |
534 | echo "$ac_t""$CPP" 1>&6 |
535 | ||
536 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 | |
537 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 538 | #line 539 "configure" |
5436fc65 C |
539 | #include "confdefs.h" |
540 | #ifdef _AIX | |
541 | yes | |
542 | #endif | |
543 | ||
544 | EOF | |
545 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
546 | egrep "yes" >/dev/null 2>&1; then | |
547 | rm -rf conftest* | |
548 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | |
549 | #define _ALL_SOURCE 1 | |
550 | EOF | |
551 | ||
552 | else | |
553 | rm -rf conftest* | |
554 | echo "$ac_t""no" 1>&6 | |
555 | fi | |
556 | rm -f conftest* | |
557 | ||
558 | ||
559 | ac_safe=`echo "minix/config.h" | tr './\055' '___'` | |
560 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 | |
561 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
563 | else | |
564 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 565 | #line 566 "configure" |
5436fc65 C |
566 | #include "confdefs.h" |
567 | #include <minix/config.h> | |
568 | EOF | |
569 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
570 | ac_err=`grep -v '^ *+' conftest.out` | |
571 | if test -z "$ac_err"; then | |
572 | rm -rf conftest* | |
573 | eval "ac_cv_header_$ac_safe=yes" | |
574 | else | |
575 | echo "$ac_err" >&5 | |
576 | rm -rf conftest* | |
577 | eval "ac_cv_header_$ac_safe=no" | |
578 | fi | |
579 | rm -f conftest* | |
580 | fi | |
581 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
582 | echo "$ac_t""yes" 1>&6 | |
583 | MINIX=yes | |
584 | else | |
585 | echo "$ac_t""no" 1>&6 | |
586 | MINIX= | |
587 | fi | |
588 | ||
589 | if test "$MINIX" = yes; then | |
590 | cat >> confdefs.h <<\EOF | |
591 | #define _POSIX_SOURCE 1 | |
592 | EOF | |
593 | ||
594 | cat >> confdefs.h <<\EOF | |
595 | #define _POSIX_1_SOURCE 2 | |
596 | EOF | |
597 | ||
598 | cat >> confdefs.h <<\EOF | |
599 | #define _MINIX 1 | |
600 | EOF | |
601 | ||
602 | fi | |
603 | ||
604 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | |
605 | if test -d /etc/conf/kconfig.d && | |
606 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | |
607 | then | |
608 | echo "$ac_t""yes" 1>&6 | |
609 | ISC=yes # If later tests want to check for ISC. | |
610 | cat >> confdefs.h <<\EOF | |
611 | #define _POSIX_SOURCE 1 | |
612 | EOF | |
613 | ||
614 | if test "$GCC" = yes; then | |
615 | CC="$CC -posix" | |
616 | else | |
617 | CC="$CC -Xp" | |
618 | fi | |
619 | else | |
620 | echo "$ac_t""no" 1>&6 | |
621 | ISC= | |
622 | fi | |
623 | ||
624 | ||
625 | ac_aux_dir= | |
626 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
627 | if test -f $ac_dir/install-sh; then | |
628 | ac_aux_dir=$ac_dir | |
629 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
630 | break | |
631 | elif test -f $ac_dir/install.sh; then | |
632 | ac_aux_dir=$ac_dir | |
633 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
634 | break | |
635 | fi | |
636 | done | |
637 | if test -z "$ac_aux_dir"; then | |
638 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
639 | fi | |
640 | ac_config_guess=$ac_aux_dir/config.guess | |
641 | ac_config_sub=$ac_aux_dir/config.sub | |
642 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
643 | ||
644 | # Find a good install program. We prefer a C program (faster), | |
645 | # so one script is as good as another. But avoid the broken or | |
646 | # incompatible versions: | |
647 | # SysV /etc/install, /usr/sbin/install | |
648 | # SunOS /usr/etc/install | |
649 | # IRIX /sbin/install | |
650 | # AIX /bin/install | |
651 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
652 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
653 | # ./install, which can be erroneously created by make from ./install.sh. | |
654 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
655 | if test -z "$INSTALL"; then | |
656 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
657 | echo $ac_n "(cached) $ac_c" 1>&6 | |
658 | else | |
659 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
660 | for ac_dir in $PATH; do | |
661 | # Account for people who put trailing slashes in PATH elements. | |
662 | case "$ac_dir/" in | |
663 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
664 | *) | |
665 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
666 | for ac_prog in ginstall installbsd scoinst install; do | |
667 | if test -f $ac_dir/$ac_prog; then | |
668 | if test $ac_prog = install && | |
669 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
670 | # AIX install. It has an incompatible calling convention. | |
671 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
672 | : | |
673 | else | |
674 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
675 | break 2 | |
676 | fi | |
677 | fi | |
678 | done | |
679 | ;; | |
680 | esac | |
681 | done | |
682 | IFS="$ac_save_ifs" | |
a2b63bbd JM |
683 | # As a last resort, use the slow shell script. |
684 | test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh" | |
5436fc65 | 685 | fi |
a2b63bbd | 686 | INSTALL="$ac_cv_path_install" |
5436fc65 C |
687 | fi |
688 | echo "$ac_t""$INSTALL" 1>&6 | |
689 | ||
690 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
691 | # It thinks the first close brace ends the variable substitution. | |
692 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
693 | ||
694 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
695 | ||
696 | # Extract the first word of "ranlib", so it can be a program name with args. | |
697 | set dummy ranlib; ac_word=$2 | |
698 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
699 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
700 | echo $ac_n "(cached) $ac_c" 1>&6 | |
701 | else | |
702 | if test -n "$RANLIB"; then | |
703 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
704 | else | |
705 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
706 | for ac_dir in $PATH; do | |
707 | test -z "$ac_dir" && ac_dir=. | |
708 | if test -f $ac_dir/$ac_word; then | |
709 | ac_cv_prog_RANLIB="ranlib" | |
710 | break | |
711 | fi | |
712 | done | |
713 | IFS="$ac_save_ifs" | |
714 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
715 | fi | |
716 | fi | |
717 | RANLIB="$ac_cv_prog_RANLIB" | |
718 | if test -n "$RANLIB"; then | |
719 | echo "$ac_t""$RANLIB" 1>&6 | |
720 | else | |
721 | echo "$ac_t""no" 1>&6 | |
722 | fi | |
723 | ||
204c8825 FF |
724 | for ac_prog in 'bison -y' byacc |
725 | do | |
726 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
727 | set dummy $ac_prog; ac_word=$2 | |
728 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
729 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
730 | echo $ac_n "(cached) $ac_c" 1>&6 | |
731 | else | |
732 | if test -n "$YACC"; then | |
733 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
734 | else | |
735 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
736 | for ac_dir in $PATH; do | |
737 | test -z "$ac_dir" && ac_dir=. | |
738 | if test -f $ac_dir/$ac_word; then | |
739 | ac_cv_prog_YACC="$ac_prog" | |
740 | break | |
741 | fi | |
742 | done | |
743 | IFS="$ac_save_ifs" | |
744 | fi | |
745 | fi | |
746 | YACC="$ac_cv_prog_YACC" | |
747 | if test -n "$YACC"; then | |
748 | echo "$ac_t""$YACC" 1>&6 | |
749 | else | |
750 | echo "$ac_t""no" 1>&6 | |
751 | fi | |
752 | ||
753 | test -n "$YACC" && break | |
754 | done | |
755 | test -n "$YACC" || YACC="yacc" | |
756 | ||
5436fc65 C |
757 | |
758 | ac_aux_dir= | |
759 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
760 | if test -f $ac_dir/install-sh; then | |
761 | ac_aux_dir=$ac_dir | |
762 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
763 | break | |
764 | elif test -f $ac_dir/install.sh; then | |
765 | ac_aux_dir=$ac_dir | |
766 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
767 | break | |
768 | fi | |
769 | done | |
770 | if test -z "$ac_aux_dir"; then | |
771 | { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; } | |
772 | fi | |
773 | ac_config_guess=$ac_aux_dir/config.guess | |
774 | ac_config_sub=$ac_aux_dir/config.sub | |
775 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
776 | ||
777 | ||
778 | # Do some error checking and defaulting for the host and target type. | |
779 | # The inputs are: | |
780 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
781 | # | |
782 | # The rules are: | |
783 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
784 | # same time. | |
785 | # 2. Host defaults to nonopt. | |
786 | # 3. If nonopt is not specified, then host defaults to the current host, | |
787 | # as determined by config.guess. | |
788 | # 4. Target and build default to nonopt. | |
789 | # 5. If nonopt is not specified, then target and build default to host. | |
790 | ||
791 | # The aliases save the names the user supplied, while $host etc. | |
792 | # will get canonicalized. | |
793 | case $host---$target---$nonopt in | |
794 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
795 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
796 | esac | |
797 | ||
798 | ||
799 | # Make sure we can run config.sub. | |
800 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
801 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
802 | fi | |
803 | ||
804 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
805 | ||
806 | host_alias=$host | |
807 | case "$host_alias" in | |
808 | NONE) | |
809 | case $nonopt in | |
810 | NONE) | |
811 | if host_alias=`$ac_config_guess`; then : | |
812 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
813 | fi ;; | |
814 | *) host_alias=$nonopt ;; | |
815 | esac ;; | |
816 | esac | |
817 | ||
818 | host=`$ac_config_sub $host_alias` | |
819 | host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
820 | host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
821 | host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
822 | echo "$ac_t""$host" 1>&6 | |
823 | ||
824 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
825 | ||
826 | target_alias=$target | |
827 | case "$target_alias" in | |
828 | NONE) | |
829 | case $nonopt in | |
830 | NONE) target_alias=$host_alias ;; | |
831 | *) target_alias=$nonopt ;; | |
832 | esac ;; | |
833 | esac | |
834 | ||
835 | target=`$ac_config_sub $target_alias` | |
836 | target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
837 | target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
838 | target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
839 | echo "$ac_t""$target" 1>&6 | |
840 | ||
841 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
842 | ||
843 | build_alias=$build | |
844 | case "$build_alias" in | |
845 | NONE) | |
846 | case $nonopt in | |
847 | NONE) build_alias=$host_alias ;; | |
848 | *) build_alias=$nonopt ;; | |
849 | esac ;; | |
850 | esac | |
851 | ||
852 | build=`$ac_config_sub $build_alias` | |
853 | build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
854 | build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
855 | build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
856 | echo "$ac_t""$build" 1>&6 | |
857 | ||
858 | test "$host_alias" != "$target_alias" && | |
859 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
860 | NONENONEs,x,x, && | |
861 | program_prefix=${target_alias}- | |
862 | ||
863 | if test "$program_transform_name" = s,x,x,; then | |
864 | program_transform_name= | |
865 | else | |
866 | # Double any \ or $. | |
867 | echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed | |
868 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
869 | rm -f conftestsed | |
870 | fi | |
871 | test "$program_prefix" != NONE && | |
872 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
873 | # Use a double $ so make ignores it. | |
874 | test "$program_suffix" != NONE && | |
875 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
876 | ||
877 | # sed with no file args requires a program. | |
878 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
879 | ||
880 | ||
2b576293 C |
881 | # If we cannot run a trivial program, we must be cross compiling. |
882 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 | |
883 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then | |
884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
885 | else | |
886 | if test "$cross_compiling" = yes; then | |
887 | ac_cv_c_cross=yes | |
888 | else | |
889 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 890 | #line 891 "configure" |
2b576293 C |
891 | #include "confdefs.h" |
892 | main(){return(0);} | |
893 | EOF | |
894 | eval $ac_link | |
895 | if test -s conftest && (./conftest; exit) 2>/dev/null; then | |
896 | ac_cv_c_cross=no | |
897 | else | |
898 | ac_cv_c_cross=yes | |
899 | fi | |
900 | fi | |
901 | rm -fr conftest* | |
902 | fi | |
0694bce6 | 903 | cross_compiling=$ac_cv_c_cross |
a2b63bbd | 904 | echo "$ac_t""$ac_cv_c_cross" 1>&6 |
2b576293 C |
905 | |
906 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
907 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
909 | else | |
910 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 911 | #line 912 "configure" |
2b576293 C |
912 | #include "confdefs.h" |
913 | #include <stdlib.h> | |
914 | #include <stdarg.h> | |
915 | #include <string.h> | |
916 | #include <float.h> | |
917 | EOF | |
918 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
919 | ac_err=`grep -v '^ *+' conftest.out` | |
920 | if test -z "$ac_err"; then | |
921 | rm -rf conftest* | |
922 | ac_cv_header_stdc=yes | |
923 | else | |
924 | echo "$ac_err" >&5 | |
925 | rm -rf conftest* | |
926 | ac_cv_header_stdc=no | |
927 | fi | |
928 | rm -f conftest* | |
929 | ||
930 | if test $ac_cv_header_stdc = yes; then | |
931 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
932 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 933 | #line 934 "configure" |
2b576293 C |
934 | #include "confdefs.h" |
935 | #include <string.h> | |
936 | EOF | |
937 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
938 | egrep "memchr" >/dev/null 2>&1; then | |
939 | : | |
940 | else | |
941 | rm -rf conftest* | |
942 | ac_cv_header_stdc=no | |
943 | fi | |
944 | rm -f conftest* | |
945 | ||
946 | fi | |
947 | ||
948 | if test $ac_cv_header_stdc = yes; then | |
949 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
950 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 951 | #line 952 "configure" |
2b576293 C |
952 | #include "confdefs.h" |
953 | #include <stdlib.h> | |
954 | EOF | |
955 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
956 | egrep "free" >/dev/null 2>&1; then | |
957 | : | |
958 | else | |
959 | rm -rf conftest* | |
960 | ac_cv_header_stdc=no | |
961 | fi | |
962 | rm -f conftest* | |
963 | ||
964 | fi | |
965 | ||
966 | if test $ac_cv_header_stdc = yes; then | |
967 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
968 | if test "$cross_compiling" = yes; then | |
969 | ac_cv_header_stdc=no | |
970 | else | |
971 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 972 | #line 973 "configure" |
2b576293 C |
973 | #include "confdefs.h" |
974 | #include <ctype.h> | |
975 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
976 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
977 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
978 | int main () { int i; for (i = 0; i < 256; i++) | |
979 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
980 | exit (0); } | |
981 | ||
982 | EOF | |
983 | eval $ac_link | |
984 | if test -s conftest && (./conftest; exit) 2>/dev/null; then | |
985 | : | |
986 | else | |
987 | ac_cv_header_stdc=no | |
988 | fi | |
989 | fi | |
990 | rm -fr conftest* | |
991 | fi | |
992 | fi | |
993 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
994 | if test $ac_cv_header_stdc = yes; then | |
995 | cat >> confdefs.h <<\EOF | |
996 | #define STDC_HEADERS 1 | |
997 | EOF | |
998 | ||
999 | fi | |
1000 | ||
dedcc91d | 1001 | for ac_hdr in memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h |
1a494973 C |
1002 | do |
1003 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` | |
1004 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1005 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1007 | else | |
1008 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1009 | #line 1010 "configure" |
1a494973 C |
1010 | #include "confdefs.h" |
1011 | #include <$ac_hdr> | |
1012 | EOF | |
1013 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1014 | ac_err=`grep -v '^ *+' conftest.out` | |
1015 | if test -z "$ac_err"; then | |
1016 | rm -rf conftest* | |
1017 | eval "ac_cv_header_$ac_safe=yes" | |
1018 | else | |
1019 | echo "$ac_err" >&5 | |
1020 | rm -rf conftest* | |
1021 | eval "ac_cv_header_$ac_safe=no" | |
1022 | fi | |
1023 | rm -f conftest* | |
1024 | fi | |
1025 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1026 | echo "$ac_t""yes" 1>&6 | |
a2b63bbd | 1027 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` |
1a494973 C |
1028 | cat >> confdefs.h <<EOF |
1029 | #define $ac_tr_hdr 1 | |
1030 | EOF | |
1031 | ||
1032 | else | |
1033 | echo "$ac_t""no" 1>&6 | |
1034 | fi | |
1035 | done | |
1036 | ||
2b576293 C |
1037 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
1038 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then | |
1039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1040 | else | |
1041 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1042 | #line 1043 "configure" |
2b576293 C |
1043 | #include "confdefs.h" |
1044 | #include <sys/types.h> | |
1045 | #include <sys/stat.h> | |
1046 | ||
1047 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
1048 | # if S_ISBLK (S_IFDIR) | |
1049 | You lose. | |
1050 | # endif | |
1051 | #endif | |
1052 | ||
1053 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
1054 | # if S_ISBLK (S_IFCHR) | |
1055 | You lose. | |
1056 | # endif | |
1057 | #endif | |
1058 | ||
1059 | #if defined(S_ISLNK) && defined(S_IFREG) | |
1060 | # if S_ISLNK (S_IFREG) | |
1061 | You lose. | |
1062 | # endif | |
1063 | #endif | |
1064 | ||
1065 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
1066 | # if S_ISSOCK (S_IFREG) | |
1067 | You lose. | |
1068 | # endif | |
1069 | #endif | |
1070 | ||
1071 | EOF | |
1072 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1073 | egrep "You lose" >/dev/null 2>&1; then | |
1074 | rm -rf conftest* | |
1075 | ac_cv_header_stat_broken=yes | |
1076 | else | |
1077 | rm -rf conftest* | |
1078 | ac_cv_header_stat_broken=no | |
1079 | fi | |
1080 | rm -f conftest* | |
1081 | ||
1082 | fi | |
1083 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 | |
1084 | if test $ac_cv_header_stat_broken = yes; then | |
1085 | cat >> confdefs.h <<\EOF | |
1086 | #define STAT_MACROS_BROKEN 1 | |
1087 | EOF | |
1088 | ||
1089 | fi | |
1090 | ||
1091 | ||
1092 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
1093 | if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then | |
1094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1095 | else | |
1096 | if test "$cross_compiling" = yes; then | |
1097 | ac_cv_func_mmap=no | |
1098 | else | |
1099 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1100 | #line 1101 "configure" |
2b576293 C |
1101 | #include "confdefs.h" |
1102 | ||
1103 | /* Thanks to Mike Haertel and Jim Avera for this test. */ | |
1104 | #include <sys/types.h> | |
1105 | #include <fcntl.h> | |
1106 | #include <sys/mman.h> | |
1107 | ||
1108 | #ifdef BSD | |
1109 | # ifndef BSD4_1 | |
1110 | # define HAVE_GETPAGESIZE | |
1111 | # endif | |
1112 | #endif | |
1113 | ||
1114 | #ifndef HAVE_GETPAGESIZE | |
1115 | # include <sys/param.h> | |
1116 | # ifdef EXEC_PAGESIZE | |
1117 | # define getpagesize() EXEC_PAGESIZE | |
1118 | # else | |
1119 | # ifdef NBPG | |
1120 | # define getpagesize() NBPG * CLSIZE | |
1121 | # ifndef CLSIZE | |
1122 | # define CLSIZE 1 | |
1123 | # endif | |
1124 | # else | |
1125 | # ifdef NBPC | |
1126 | # define getpagesize() NBPC | |
1127 | # else | |
1128 | # define getpagesize() PAGESIZE /* SVR4 */ | |
1129 | # endif | |
1130 | # endif | |
1131 | # endif | |
1132 | #endif | |
1133 | ||
1134 | #ifdef __osf__ | |
1135 | # define valloc malloc | |
1136 | #endif | |
1137 | ||
1138 | #ifdef __cplusplus | |
1139 | extern "C" { void *valloc(unsigned), *malloc(unsigned); } | |
1140 | #else | |
1141 | char *valloc(), *malloc(); | |
1142 | #endif | |
1143 | ||
1144 | int | |
1145 | main() | |
1146 | { | |
1147 | char *buf1, *buf2, *buf3; | |
1148 | int i = getpagesize(), j; | |
1149 | int i2 = getpagesize()*2; | |
1150 | int fd; | |
1151 | ||
1152 | buf1 = (char *)valloc(i2); | |
1153 | buf2 = (char *)valloc(i); | |
1154 | buf3 = (char *)malloc(i2); | |
1155 | for (j = 0; j < i2; ++j) | |
1156 | *(buf1 + j) = rand(); | |
1157 | fd = open("conftestmmap", O_CREAT | O_RDWR, 0666); | |
1158 | write(fd, buf1, i2); | |
1159 | mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0); | |
1160 | for (j = 0; j < i; ++j) | |
1161 | if (*(buf1 + j) != *(buf2 + j)) | |
1162 | exit(1); | |
1163 | lseek(fd, (long)i, 0); | |
1164 | read(fd, buf2, i); /* read into mapped memory -- file should not change */ | |
1165 | /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */ | |
1166 | lseek(fd, (long)0, 0); | |
1167 | read(fd, buf3, i2); | |
1168 | for (j = 0; j < i2; ++j) | |
1169 | if (*(buf1 + j) != *(buf3 + j)) | |
1170 | exit(1); | |
1171 | exit(0); | |
1172 | } | |
1173 | ||
1174 | EOF | |
1175 | eval $ac_link | |
1176 | if test -s conftest && (./conftest; exit) 2>/dev/null; then | |
1177 | ac_cv_func_mmap=yes | |
1178 | else | |
1179 | ac_cv_func_mmap=no | |
1180 | fi | |
1181 | fi | |
1182 | rm -fr conftest* | |
1183 | fi | |
1184 | echo "$ac_t""$ac_cv_func_mmap" 1>&6 | |
1185 | if test $ac_cv_func_mmap = yes; then | |
1186 | cat >> confdefs.h <<\EOF | |
1187 | #define HAVE_MMAP 1 | |
1188 | EOF | |
1189 | ||
1190 | fi | |
1191 | ||
5436fc65 C |
1192 | |
1193 | ENABLE_CFLAGS= | |
1194 | ENABLE_CLIBS= | |
1195 | ENABLE_OBS= | |
1196 | ||
1197 | # Check whether --enable-netrom or --disable-netrom was given. | |
a2b63bbd JM |
1198 | enableval="$enable_netrom" |
1199 | if test -n "$enableval"; then | |
5436fc65 C |
1200 | case "${enableval}" in |
1201 | yes) enable_netrom=yes ;; | |
1202 | no) enable_netrom=no ;; | |
1203 | *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;; | |
1204 | esac | |
1205 | fi | |
1206 | ||
1207 | ||
1208 | if test "${enable_netrom}" = "yes"; then | |
1209 | ENABLE_OBS="${ENABLE_OBS} remote-nrom.o" | |
1210 | fi | |
1211 | ||
1212 | # start-sanitize-gdbtk | |
1213 | ENABLE_GDBTK= | |
1214 | ||
1215 | # Check whether --enable-gdbtk or --disable-gdbtk was given. | |
a2b63bbd JM |
1216 | enableval="$enable_gdbtk" |
1217 | if test -n "$enableval"; then | |
5436fc65 C |
1218 | case "${enableval}" in |
1219 | yes) enable_gdbtk=yes ;; | |
1220 | no) enable_gdbtk=no ;; | |
1221 | *) { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;; | |
1222 | esac | |
1223 | fi | |
1224 | ||
1225 | ||
1226 | if test "${enable_gdbtk}" = "yes"; then | |
a2b63bbd | 1227 | # If we find X, set shell vars x_includes and x_libraries to the |
5436fc65 C |
1228 | # paths, otherwise set no_x=yes. |
1229 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
1230 | # --without-x overrides everything else, but does not touch the cache. | |
1231 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
1232 | ||
1233 | # Check whether --with-x or --without-x was given. | |
a2b63bbd JM |
1234 | withval="$with_x" |
1235 | if test -n "$withval"; then | |
5436fc65 C |
1236 | : |
1237 | fi | |
1238 | ||
1239 | if test "x$with_x" = xno; then | |
1240 | no_x=yes | |
1241 | else | |
1242 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
1243 | no_x= | |
1244 | else | |
1245 | if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then | |
1246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1247 | else | |
1248 | # One or both of the vars are not set, and there is no cached value. | |
1249 | no_x=yes | |
1250 | rm -fr conftestdir | |
1251 | if mkdir conftestdir; then | |
1252 | cd conftestdir | |
1253 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
1254 | cat > Imakefile <<'EOF' | |
1255 | acfindx: | |
1256 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
1257 | EOF | |
1258 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
1259 | no_x= | |
1260 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1261 | eval `make acfindx 2>/dev/null | grep -v make` | |
1262 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
dedcc91d SC |
1263 | for ac_extension in a so sl; do |
1264 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
1265 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
1266 | ac_im_usrlibdir=$ac_im_libdir; break | |
1267 | fi | |
1268 | done | |
5436fc65 C |
1269 | # Screen out bogus values from the imake configuration. |
1270 | case "$ac_im_incroot" in | |
1271 | /usr/include) ;; | |
1272 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
1273 | esac | |
1274 | case "$ac_im_usrlibdir" in | |
1275 | /usr/lib | /lib) ;; | |
1276 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
1277 | esac | |
1278 | fi | |
1279 | cd .. | |
1280 | rm -fr conftestdir | |
1281 | fi | |
1282 | ||
1283 | if test "$no_x" = yes; then | |
1284 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
1285 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
1286 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
1287 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1288 | #line 1289 "configure" |
5436fc65 C |
1289 | #include "confdefs.h" |
1290 | #include <$x_direct_test_include> | |
1291 | EOF | |
1292 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1293 | ac_err=`grep -v '^ *+' conftest.out` | |
1294 | if test -z "$ac_err"; then | |
1295 | rm -rf conftest* | |
1296 | no_x= ac_x_includes= | |
1297 | else | |
1298 | echo "$ac_err" >&5 | |
1299 | rm -rf conftest* | |
1300 | for ac_dir in \ | |
1301 | /usr/X11R6/include \ | |
1302 | /usr/X11R5/include \ | |
1303 | /usr/X11R4/include \ | |
1304 | \ | |
1305 | /usr/include/X11R6 \ | |
1306 | /usr/include/X11R5 \ | |
1307 | /usr/include/X11R4 \ | |
1308 | \ | |
1309 | /usr/local/X11R6/include \ | |
1310 | /usr/local/X11R5/include \ | |
1311 | /usr/local/X11R4/include \ | |
1312 | \ | |
1313 | /usr/local/include/X11R6 \ | |
1314 | /usr/local/include/X11R5 \ | |
1315 | /usr/local/include/X11R4 \ | |
1316 | \ | |
1317 | /usr/X11/include \ | |
1318 | /usr/include/X11 \ | |
1319 | /usr/local/X11/include \ | |
1320 | /usr/local/include/X11 \ | |
1321 | \ | |
1322 | /usr/X386/include \ | |
1323 | /usr/x386/include \ | |
1324 | /usr/XFree86/include/X11 \ | |
1325 | \ | |
1326 | /usr/include \ | |
1327 | /usr/local/include \ | |
1328 | /usr/unsupported/include \ | |
1329 | /usr/athena/include \ | |
1330 | /usr/local/x11r5/include \ | |
1331 | /usr/lpp/Xamples/include \ | |
1332 | \ | |
1333 | /usr/openwin/include \ | |
1334 | /usr/openwin/share/include \ | |
1335 | ; \ | |
1336 | do | |
1337 | if test -r "$ac_dir/$x_direct_test_include"; then | |
1338 | no_x= ac_x_includes=$ac_dir | |
1339 | break | |
1340 | fi | |
1341 | done | |
1342 | fi | |
1343 | rm -f conftest* | |
1344 | ||
1345 | # Check for the libraries. | |
1346 | # See if we find them without any special options. | |
1347 | # Don't add to $LIBS permanently. | |
1348 | ac_save_LIBS="$LIBS" | |
1349 | LIBS="-l$x_direct_test_library $LIBS" | |
1350 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1351 | #line 1352 "configure" |
5436fc65 C |
1352 | #include "confdefs.h" |
1353 | ||
1354 | int main() { return 0; } | |
1355 | int t() { | |
1356 | ${x_direct_test_function}() | |
1357 | ; return 0; } | |
1358 | EOF | |
1359 | if eval $ac_link; then | |
1360 | rm -rf conftest* | |
1361 | LIBS="$ac_save_LIBS" no_x= ac_x_libraries= | |
1362 | else | |
1363 | rm -rf conftest* | |
1364 | LIBS="$ac_save_LIBS" | |
1365 | # First see if replacing the include by lib works. | |
1366 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
1367 | /usr/X11R6/lib \ | |
1368 | /usr/X11R5/lib \ | |
1369 | /usr/X11R4/lib \ | |
1370 | \ | |
1371 | /usr/lib/X11R6 \ | |
1372 | /usr/lib/X11R5 \ | |
1373 | /usr/lib/X11R4 \ | |
1374 | \ | |
1375 | /usr/local/X11R6/lib \ | |
1376 | /usr/local/X11R5/lib \ | |
1377 | /usr/local/X11R4/lib \ | |
1378 | \ | |
1379 | /usr/local/lib/X11R6 \ | |
1380 | /usr/local/lib/X11R5 \ | |
1381 | /usr/local/lib/X11R4 \ | |
1382 | \ | |
1383 | /usr/X11/lib \ | |
1384 | /usr/lib/X11 \ | |
1385 | /usr/local/X11/lib \ | |
1386 | /usr/local/lib/X11 \ | |
1387 | \ | |
1388 | /usr/X386/lib \ | |
1389 | /usr/x386/lib \ | |
1390 | /usr/XFree86/lib/X11 \ | |
1391 | \ | |
1392 | /usr/lib \ | |
1393 | /usr/local/lib \ | |
1394 | /usr/unsupported/lib \ | |
1395 | /usr/athena/lib \ | |
1396 | /usr/local/x11r5/lib \ | |
1397 | /usr/lpp/Xamples/lib \ | |
1398 | \ | |
1399 | /usr/openwin/lib \ | |
1400 | /usr/openwin/share/lib \ | |
1401 | ; \ | |
1402 | do | |
1403 | for ac_extension in a so sl; do | |
1404 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
1405 | no_x= ac_x_libraries=$ac_dir | |
1406 | break 2 | |
1407 | fi | |
1408 | done | |
1409 | done | |
1410 | fi | |
1411 | rm -f conftest* | |
1412 | ||
1413 | fi | |
1414 | if test "$no_x" = yes; then | |
1415 | ac_cv_path_x="no_x=yes" | |
1416 | else | |
1417 | ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
1418 | fi | |
1419 | fi | |
1420 | fi | |
1421 | eval "$ac_cv_path_x" | |
1422 | fi # $with_x != no | |
1423 | ||
1424 | if test "$no_x" = yes; then | |
1425 | echo "$ac_t""no" 1>&6 | |
1426 | else | |
1427 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
1428 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
1429 | ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
1430 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
1431 | fi | |
1432 | ||
a2b63bbd | 1433 | if test "$no_x" = yes; then |
5436fc65 C |
1434 | # Not all programs may use this symbol, but it does not hurt to define it. |
1435 | X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING" | |
1436 | else | |
1437 | if test -n "$x_includes"; then | |
1438 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
1439 | fi | |
1440 | ||
1441 | # It would be nice to have a more robust check for the -R ld option than | |
1442 | # just checking for Solaris. | |
1443 | # It would also be nice to do this for all -L options, not just this one. | |
1444 | if test -n "$x_libraries"; then | |
1445 | X_LIBS="$X_LIBS -L$x_libraries" | |
1446 | if test "`(uname) 2>/dev/null`" = SunOS && | |
1447 | uname -r | grep '^5' >/dev/null; then | |
1448 | X_LIBS="$X_LIBS -R$x_libraries" | |
1449 | fi | |
1450 | fi | |
1451 | ||
1452 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
1453 | ||
1454 | ac_save_LDFLAGS="$LDFLAGS" | |
1455 | LDFLAGS="$LDFLAGS -L$x_libraries" | |
1456 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
1457 | # check for ICE first), but we must link in the order -lSM -lICE or | |
1458 | # we get undefined symbols. So assume we have SM if we have ICE. | |
1459 | # These have to be linked with before -lX11, unlike the other | |
1460 | # libraries we check for below, so use a different variable. | |
1461 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
1462 | echo $ac_n "checking for -lICE""... $ac_c" 1>&6 | |
a2b63bbd | 1463 | if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then |
5436fc65 C |
1464 | echo $ac_n "(cached) $ac_c" 1>&6 |
1465 | else | |
1466 | ac_save_LIBS="$LIBS" | |
1467 | LIBS="-lICE $LIBS" | |
1468 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1469 | #line 1470 "configure" |
5436fc65 C |
1470 | #include "confdefs.h" |
1471 | ||
1472 | int main() { return 0; } | |
1473 | int t() { | |
1474 | IceConnectionNumber() | |
1475 | ; return 0; } | |
1476 | EOF | |
1477 | if eval $ac_link; then | |
1478 | rm -rf conftest* | |
a2b63bbd | 1479 | eval "ac_cv_lib_ICE=yes" |
5436fc65 C |
1480 | else |
1481 | rm -rf conftest* | |
a2b63bbd | 1482 | eval "ac_cv_lib_ICE=no" |
5436fc65 C |
1483 | fi |
1484 | rm -f conftest* | |
1485 | LIBS="$ac_save_LIBS" | |
1486 | ||
1487 | fi | |
a2b63bbd | 1488 | if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then |
5436fc65 C |
1489 | echo "$ac_t""yes" 1>&6 |
1490 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
1491 | else | |
1492 | echo "$ac_t""no" 1>&6 | |
1493 | fi | |
1494 | ||
1495 | LDFLAGS="$ac_save_LDFLAGS" | |
1496 | ||
1497 | # Check for system-dependent libraries X programs must link with. | |
1498 | ||
1499 | if test "$ISC" = yes; then | |
1500 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
1501 | else | |
1502 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
1503 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
1504 | # the Alpha needs dnet_stub (dnet does not exist). | |
1505 | echo $ac_n "checking for -ldnet""... $ac_c" 1>&6 | |
a2b63bbd | 1506 | if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then |
5436fc65 C |
1507 | echo $ac_n "(cached) $ac_c" 1>&6 |
1508 | else | |
1509 | ac_save_LIBS="$LIBS" | |
1510 | LIBS="-ldnet $LIBS" | |
1511 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1512 | #line 1513 "configure" |
5436fc65 C |
1513 | #include "confdefs.h" |
1514 | ||
1515 | int main() { return 0; } | |
1516 | int t() { | |
1517 | dnet_ntoa() | |
1518 | ; return 0; } | |
1519 | EOF | |
1520 | if eval $ac_link; then | |
1521 | rm -rf conftest* | |
a2b63bbd | 1522 | eval "ac_cv_lib_dnet=yes" |
5436fc65 C |
1523 | else |
1524 | rm -rf conftest* | |
a2b63bbd | 1525 | eval "ac_cv_lib_dnet=no" |
5436fc65 C |
1526 | fi |
1527 | rm -f conftest* | |
1528 | LIBS="$ac_save_LIBS" | |
1529 | ||
1530 | fi | |
a2b63bbd | 1531 | if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then |
5436fc65 C |
1532 | echo "$ac_t""yes" 1>&6 |
1533 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
1534 | else | |
1535 | echo "$ac_t""no" 1>&6 | |
1536 | fi | |
1537 | ||
1538 | if test $ac_cv_lib_dnet = no; then | |
1539 | echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6 | |
a2b63bbd | 1540 | if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then |
5436fc65 C |
1541 | echo $ac_n "(cached) $ac_c" 1>&6 |
1542 | else | |
1543 | ac_save_LIBS="$LIBS" | |
1544 | LIBS="-ldnet_stub $LIBS" | |
1545 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1546 | #line 1547 "configure" |
5436fc65 C |
1547 | #include "confdefs.h" |
1548 | ||
1549 | int main() { return 0; } | |
1550 | int t() { | |
1551 | dnet_ntoa() | |
1552 | ; return 0; } | |
1553 | EOF | |
1554 | if eval $ac_link; then | |
1555 | rm -rf conftest* | |
a2b63bbd | 1556 | eval "ac_cv_lib_dnet_stub=yes" |
5436fc65 C |
1557 | else |
1558 | rm -rf conftest* | |
a2b63bbd | 1559 | eval "ac_cv_lib_dnet_stub=no" |
5436fc65 C |
1560 | fi |
1561 | rm -f conftest* | |
1562 | LIBS="$ac_save_LIBS" | |
1563 | ||
1564 | fi | |
a2b63bbd | 1565 | if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then |
5436fc65 C |
1566 | echo "$ac_t""yes" 1>&6 |
1567 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
1568 | else | |
1569 | echo "$ac_t""no" 1>&6 | |
1570 | fi | |
1571 | ||
1572 | fi | |
1573 | ||
1574 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
1575 | # to get the SysV transport functions. | |
1576 | # Not sure which flavor of 386 UNIX this is, but it seems harmless to | |
1577 | # check for it. | |
1578 | echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 | |
a2b63bbd | 1579 | if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then |
5436fc65 C |
1580 | echo $ac_n "(cached) $ac_c" 1>&6 |
1581 | else | |
1582 | ac_save_LIBS="$LIBS" | |
1583 | LIBS="-lnsl $LIBS" | |
1584 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1585 | #line 1586 "configure" |
5436fc65 C |
1586 | #include "confdefs.h" |
1587 | ||
1588 | int main() { return 0; } | |
1589 | int t() { | |
1590 | t_accept() | |
1591 | ; return 0; } | |
1592 | EOF | |
1593 | if eval $ac_link; then | |
1594 | rm -rf conftest* | |
a2b63bbd | 1595 | eval "ac_cv_lib_nsl=yes" |
5436fc65 C |
1596 | else |
1597 | rm -rf conftest* | |
a2b63bbd | 1598 | eval "ac_cv_lib_nsl=no" |
5436fc65 C |
1599 | fi |
1600 | rm -f conftest* | |
1601 | LIBS="$ac_save_LIBS" | |
1602 | ||
1603 | fi | |
a2b63bbd | 1604 | if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then |
5436fc65 C |
1605 | echo "$ac_t""yes" 1>&6 |
1606 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
1607 | else | |
1608 | echo "$ac_t""no" 1>&6 | |
1609 | fi | |
1610 | ||
1611 | ||
1612 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
1613 | # socket/setsockopt and other routines are undefined under SCO ODT 2.0. | |
1614 | # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch. | |
1615 | if test "`(uname) 2>/dev/null`" != IRIX; then | |
1616 | echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 | |
a2b63bbd | 1617 | if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then |
5436fc65 C |
1618 | echo $ac_n "(cached) $ac_c" 1>&6 |
1619 | else | |
1620 | ac_save_LIBS="$LIBS" | |
1621 | LIBS="-lsocket $LIBS" | |
1622 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1623 | #line 1624 "configure" |
5436fc65 C |
1624 | #include "confdefs.h" |
1625 | ||
1626 | int main() { return 0; } | |
1627 | int t() { | |
1628 | socket() | |
1629 | ; return 0; } | |
1630 | EOF | |
1631 | if eval $ac_link; then | |
1632 | rm -rf conftest* | |
a2b63bbd | 1633 | eval "ac_cv_lib_socket=yes" |
5436fc65 C |
1634 | else |
1635 | rm -rf conftest* | |
a2b63bbd | 1636 | eval "ac_cv_lib_socket=no" |
5436fc65 C |
1637 | fi |
1638 | rm -f conftest* | |
1639 | LIBS="$ac_save_LIBS" | |
1640 | ||
1641 | fi | |
a2b63bbd | 1642 | if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then |
5436fc65 C |
1643 | echo "$ac_t""yes" 1>&6 |
1644 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket" | |
1645 | else | |
1646 | echo "$ac_t""no" 1>&6 | |
1647 | fi | |
1648 | ||
1649 | fi | |
1650 | fi | |
1651 | fi | |
1652 | ||
1653 | ||
a2b63bbd | 1654 | |
5436fc65 C |
1655 | # |
1656 | # Ok, lets find the tk source trees so we can use the headers | |
1657 | # If the directory (presumably symlink) named "tk" exists, use that one | |
1658 | # in preference to any others. Same logic is used when choosing library | |
1659 | # and again with Tcl. | |
1660 | # | |
1661 | echo "checking for Tk source directory" 1>&6 | |
1662 | TKHDIR="" | |
1663 | for i in `ls -d ${srcdir}/../tk* 2>/dev/null` ${srcdir}/../tk ; do | |
1664 | if test -f $i/tk.h ; then | |
1665 | TKHDIR="-I$i" | |
1666 | fi | |
1667 | done | |
1668 | # if we can't find it, see if one is installed | |
1669 | if test x"$TKHDIR" = x ; then | |
1670 | installed=0 | |
1671 | if test -f $prefix/include/tk.h; then | |
1672 | installed=1 TKHDIR="-I$prefix/include" | |
1673 | else | |
1674 | ac_safe=`echo "tk.h" | tr './\055' '___'` | |
1675 | echo $ac_n "checking for tk.h""... $ac_c" 1>&6 | |
1676 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1678 | else | |
1679 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1680 | #line 1681 "configure" |
5436fc65 C |
1681 | #include "confdefs.h" |
1682 | #include <tk.h> | |
1683 | EOF | |
1684 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1685 | ac_err=`grep -v '^ *+' conftest.out` | |
1686 | if test -z "$ac_err"; then | |
1687 | rm -rf conftest* | |
1688 | eval "ac_cv_header_$ac_safe=yes" | |
1689 | else | |
1690 | echo "$ac_err" >&5 | |
1691 | rm -rf conftest* | |
1692 | eval "ac_cv_header_$ac_safe=no" | |
1693 | fi | |
1694 | rm -f conftest* | |
1695 | fi | |
1696 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1697 | echo "$ac_t""yes" 1>&6 | |
1698 | installed=1 | |
1699 | else | |
1700 | echo "$ac_t""no" 1>&6 | |
1701 | fi | |
1702 | ||
1703 | fi | |
1704 | if test $installed -eq 0 ; then | |
1705 | TKHDIR="# no Tk directory found" | |
1706 | echo "configure: warning: Can't find Tk directory" 1>&2 | |
1707 | fi | |
1708 | fi | |
1709 | if test x"$TKHDIR" != x ; then | |
1710 | echo "$ac_t""Setting TKHDIR to be $i" 1>&6 | |
1711 | fi | |
1712 | ||
1713 | # | |
1714 | # Ok, lets find the tk library | |
1715 | # First, look for one uninstalled. | |
1716 | # | |
1717 | TKLIB="" | |
1718 | echo "checking for Tk library" 1>&6 | |
1719 | for i in `ls -d ../tk* 2>/dev/null` ../tk ; do | |
1720 | if test -f "$i/Makefile" ; then | |
1721 | TKLIB=$i/libtk.a | |
1722 | fi | |
1723 | done | |
1724 | # If not found, look for installed version | |
1725 | if test x"$TKLIB" = x ; then | |
1726 | if test -f $prefix/lib/libtk.a; then | |
1727 | installed=1 | |
1728 | else | |
1729 | installed=0 | |
1730 | fi | |
1731 | if test $installed -eq 1 ; then | |
1732 | TKLIB="-ltk" | |
1733 | fi | |
1734 | fi | |
1735 | ||
1736 | # If still not found, assume Tk simply hasn't been built yet | |
1737 | if test x"$TKLIB" = x ; then | |
1738 | for i in `ls -d ../tk* 2>/dev/null` ../tk ; do | |
1739 | if test -f "$i/tk.h" ; then | |
1740 | TKLIB=$i/libtk.a | |
1741 | fi | |
1742 | done | |
1743 | fi | |
1744 | ||
1745 | if test x"$TKLIB" = x ; then | |
1746 | TKLIB="# no Tk library found" | |
1747 | echo "configure: warning: Can't find Tk library" 1>&2 | |
1748 | else | |
1749 | echo "$ac_t""setting TKLIB to be $TKLIB" 1>&6 | |
1750 | no_tk= | |
1751 | fi | |
1752 | ||
1753 | ||
1754 | ||
1755 | ||
a2b63bbd | 1756 | |
5436fc65 C |
1757 | # |
1758 | # Ok, lets find the tcl source trees so we can use the headers | |
1759 | # | |
1760 | # Warning: transition of version 9 to 10 will break this algorithm | |
1761 | # because 10 sorts before 9. | |
1762 | # | |
1763 | echo "checking for Tcl source directory" 1>&6 | |
1764 | TCLHDIR="" | |
1765 | for i in `ls -d ${srcdir}/../tcl* 2>/dev/null` ${srcdir}/../tcl ; do | |
1766 | if test -f $i/tclInt.h ; then | |
1767 | TCLHDIR="-I$i" | |
1768 | fi | |
1769 | done | |
1770 | # if we can't find it, see if one is installed | |
1771 | if test x"$TCLHDIR" = x ; then | |
1772 | installed=0 | |
1773 | if test -f $prefix/include/tclInt.h; then | |
1774 | installed=1 TCLHDIR="-I$prefix/include" | |
1775 | else | |
1776 | ac_safe=`echo "tclInt.h" | tr './\055' '___'` | |
1777 | echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6 | |
1778 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1780 | else | |
1781 | cat > conftest.$ac_ext <<EOF | |
a2b63bbd | 1782 | #line 1783 "configure" |
5436fc65 C |
1783 | #include "confdefs.h" |
1784 | #include <tclInt.h> | |
1785 | EOF | |
1786 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1787 | ac_err=`grep -v '^ *+' conftest.out` | |
1788 | if test -z "$ac_err"; then | |
1789 | rm -rf conftest* | |
1790 | eval "ac_cv_header_$ac_safe=yes" | |
1791 | else | |
1792 | echo "$ac_err" >&5 | |
1793 | rm -rf conftest* | |
1794 | eval "ac_cv_header_$ac_safe=no" | |
1795 | fi | |
1796 | rm -f conftest* | |
1797 | fi | |
1798 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1799 | echo "$ac_t""yes" 1>&6 | |
1800 | installed=1 | |
1801 | else | |
1802 | echo "$ac_t""no" 1>&6 | |
1803 | fi | |
1804 | ||
1805 | fi | |
1806 | if test $installed -eq 0 ; then | |
1807 | TCLHDIR="# no Tcl directory found" | |
1808 | echo "configure: warning: Can't find Tcl directory" 1>&2 | |
1809 | fi | |
1810 | else | |
1811 | echo "$ac_t""setting TCLHDIR to be $i" 1>&6 | |
1812 | fi | |
1813 | ||
1814 | # | |
1815 | # Ok, lets find the tcl library | |
1816 | # First, look for the latest uninstalled | |
1817 | # | |
1818 | TCLLIB="" | |
1819 | echo "checking for Tcl library" 1>&6 | |
1820 | for i in `ls -d ../tcl* 2>/dev/null` ../tcl ; do | |
1821 | if test -f "$i/Makefile" ; then | |
1822 | TCLLIB=$i/libtcl.a | |
1823 | fi | |
1824 | done | |
1825 | # If not found, look for installed version | |
1826 | if test x"$TCLLIB" = x ; then | |
1827 | if test -f $prefix/lib/libtcl.a; then installed=1; else installed=0; fi | |
1828 | if test $installed -eq 1 ; then | |
1829 | TCLLIB="-ltcl" | |
1830 | fi | |
1831 | fi | |
1832 | # If still not found, assume Tcl simply hasn't been built yet | |
1833 | if test x"$TCLLIB" = x ; then | |
1834 | for i in `ls -d ../tcl* 2>/dev/null` ../tcl ; do | |
1835 | if test -f "$i/tcl.h" ; then | |
1836 | TCLLIB=$i/libtcl.a | |
1837 | fi | |
1838 | done | |
1839 | fi | |
1840 | ||
1841 | if test x"$TCLLIB" = x ; then | |
1842 | TCLLIB="# no Tcl library found" | |
1843 | echo "configure: warning: Can't find Tcl library" 1>&2 | |
1844 | else | |
1845 | echo "$ac_t""setting TCLLIB to be $TCLLIB" 1>&6 | |
1846 | fi | |
1847 | ||
1848 | ||
1849 | ||
1850 | ||
1851 | ||
a2b63bbd | 1852 | ENABLE_GDBTK=1 |
66efdff9 | 1853 | |
a2b63bbd JM |
1854 | if test "x$no_x" != "xyes"; then |
1855 | if test "x$x_includes" != "x" ; | |
1856 | then | |
1857 | X_CFLAGS="-I$x_includes" | |
1858 | else | |
1859 | X_CFLAGS="" | |
1860 | fi | |
1861 | ||
1862 | if test "x$x_libraries" != "x" ; | |
1863 | then | |
1864 | X_LDFLAGS="-L$x_libraries" | |
1865 | else | |
1866 | X_LDFLAGS="" | |
1867 | fi | |
1868 | ||
1869 | case "$host" in | |
1870 | # | |
1871 | # gdb linked statically w/ Solaris iff GCC is used, otherwise dynamic | |
1872 | # | |
1873 | sparc-sun-solaris2*) | |
1874 | if test "x$GCC" = "xyes"; | |
1875 | then | |
1876 | X_LIBS="-Wl,-Bstatic -lX11 -lXext -lX11 -Wl,-Bdynamic" | |
1877 | else | |
1878 | if test "x$x_libraries" != "x" ; | |
1879 | then | |
1880 | X_LDFLAGS="$X_LDFLAGS -R$x_libraries" | |
1881 | fi | |
1882 | X_LIBS="-lX11 -lXext -lX11" | |
1883 | fi ;; | |
1884 | # | |
1885 | # gdb linked statically w/ SunOS or HPUX | |
1886 | # | |
1887 | m68k-hp-hpux*|hppa*-hp-hpux*|sparc-sun-sunos*) | |
1888 | if test "x$x_libraries" != "x" ; | |
1889 | then | |
1890 | X_LIBS="$x_libraries/libX11.a" | |
1891 | else | |
1892 | X_LIBS="/usr/lib/libX11.a" | |
1893 | fi ;; | |
1894 | # | |
1895 | # default is to link dynamically | |
1896 | # | |
1897 | *) | |
1898 | X_LIBS="-lX11" ;; | |
1899 | esac | |
1900 | else | |
1901 | X_LDLAGS="" | |
1902 | X_CFLAGS="" | |
1903 | X_LIBS="" | |
1904 | echo "configure: warning: No X based programs will be built" 1>&2 | |
1905 | fi | |
1906 | ||
1907 | TCL_LIBS='$(TCL) $(TK) $(X11_LDFLAGS) $(X11_LIBS)' | |
1908 | ENABLE_CLIBS="${ENABLE_CLIBS} ${TCL_LIBS} -lm" | |
1909 | ENABLE_OBS="${ENABLE_OBS} gdbtk.o" | |
1910 | fi | |
66efdff9 | 1911 | |
66efdff9 | 1912 | |
5436fc65 | 1913 | |
66efdff9 JM |
1914 | |
1915 | ||
5436fc65 C |
1916 | # end-sanitize-gdbtk |
1917 | ||
1918 | ||
1919 | ||
1920 | ||
1921 | ||
1922 | ||
1923 | configdirs="doc testsuite" | |
1924 | ||
1925 | ||
1926 | # Map host cpu into the config cpu subdirectory name. | |
1927 | # The default is $host_cpu. | |
1928 | ||
1929 | case "${host_cpu}" in | |
1930 | ||
1931 | c[12]) gdb_host_cpu=convex ;; | |
1932 | hppa*) gdb_host_cpu=pa ;; | |
1933 | i[345]86) gdb_host_cpu=i386 ;; | |
1934 | m68*) gdb_host_cpu=m68k ;; | |
1935 | m88*) gdb_host_cpu=m88k ;; | |
1936 | np1) gdb_host_cpu=gould ;; | |
1937 | pyramid) gdb_host_cpu=pyr ;; | |
1938 | powerpc*) gdb_host_cpu=powerpc ;; | |
1939 | *) gdb_host_cpu=$host_cpu ;; | |
1940 | ||
1941 | esac | |
1942 | ||
1943 | # map host info into gdb names. | |
1944 | ||
1945 | case "${host}" in | |
1946 | ||
1947 | a29k-*-*) gdb_host=ultra3 ;; | |
1948 | ||
1949 | alpha-*-osf1*) gdb_host=alpha-osf1 ;; | |
b8ea4fec PS |
1950 | alpha-*-osf2*) gdb_host=alpha-osf2 ;; |
1951 | alpha-*-osf[3456789]*) gdb_host=alpha-osf3 ;; | |
5436fc65 C |
1952 | |
1953 | arm-*-*) gdb_host=arm ;; | |
1954 | ||
1955 | c[12]-*-*) gdb_host=convex ;; | |
1956 | ||
1957 | hppa*-*-bsd*) gdb_host=hppabsd ;; | |
1958 | hppa*-*-hiux*) gdb_host=hppahpux ;; | |
1959 | hppa*-*-hpux*) gdb_host=hppahpux ;; | |
1960 | hppa*-*-osf*) gdb_host=hppaosf ;; | |
1961 | ||
1962 | i[345]86-ncr-*) gdb_host=ncr3000 ;; | |
1963 | i[345]86-sequent-bsd*) gdb_host=symmetry ;; # dynix | |
1964 | i[345]86-sequent-sysv4*) gdb_host=ptx4 ;; | |
1965 | i[345]86-sequent-sysv*) gdb_host=ptx ;; | |
1966 | i[345]86-*-aix*) gdb_host=i386aix ;; | |
1967 | i[345]86-*-bsd*) gdb_host=i386bsd ;; | |
1968 | i[345]86-*-freebsd*) gdb_host=fbsd ;; | |
1969 | i[345]86-*-netbsd*) gdb_host=nbsd ;; | |
1970 | i[345]86-*-go32*) gdb_host=go32 ;; | |
1971 | i[345]86-*-linux*) gdb_host=linux ;; | |
1972 | i[345]86-*-lynxos*) gdb_host=i386lynx ;; | |
1973 | i[345]86-*-mach3*) gdb_host=i386m3 ;; | |
1974 | i[345]86-*-mach*) gdb_host=i386mach ;; | |
1975 | i[345]86-*-osf1mk*) gdb_host=osf1mk ;; | |
1976 | i[345]86-*-sco3.2v4*) gdb_host=i386sco4 ;; | |
1977 | i[345]86-*-sco*) gdb_host=i386sco ;; | |
1978 | i[345]86-*-solaris*) gdb_host=i386sol2 ;; | |
1979 | i[345]86-*-sunos*) gdb_host=sun386 ;; | |
1980 | i[345]86-*-sysv3.2*) gdb_host=i386v32 ;; | |
1981 | i[345]86-*-sysv32*) gdb_host=i386v32 ;; | |
1982 | i[345]86-*-sysv4*) gdb_host=i386v4 ;; | |
1983 | i[345]86-*-unixware) gdb_host=i386v4 ;; | |
1984 | i[345]86-*-sysv*) gdb_host=i386v ;; | |
1985 | i[345]86-*-isc*) gdb_host=i386v32 ;; | |
1986 | i[345]86-*-os9k) gdb_host=i386os9k ;; | |
24e60978 | 1987 | i[345]86-*-win32*) gdb_host=win32 ;; |
5436fc65 C |
1988 | m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;; |
1989 | m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;; | |
1990 | m68030-sony-*) gdb_host=news1000 ;; | |
1991 | ||
1992 | m68*-altos-*) gdb_host=altos ;; | |
1993 | m68*-apollo*-sysv*) gdb_host=apollo68v ;; | |
1994 | m68*-apollo*-bsd*) gdb_host=apollo68b ;; | |
1995 | m68*-att-*) gdb_host=3b1 ;; | |
1996 | m68*-bull*-sysv*) gdb_host=dpx2 ;; | |
1997 | m68*-hp-bsd*) gdb_host=hp300bsd ;; | |
1998 | m68*-hp-hpux*) gdb_host=hp300hpux ;; | |
1999 | m68*-isi-*) gdb_host=isi ;; | |
2000 | m68*-*-lynxos*) gdb_host=m68klynx ;; | |
2001 | m68*-*-sysv4*) gdb_host=m68kv4 ;; | |
2002 | m68*-motorola-*) gdb_host=delta68 ;; | |
2003 | m68*-sony-*) gdb_host=news ;; | |
2004 | m68*-sun-sunos3*) gdb_host=sun3os3 ;; | |
2005 | m68*-sun-sunos4*) gdb_host=sun3os4 ;; | |
2006 | m68*-sun-*) gdb_host=sun3os4 ;; | |
2007 | ||
2008 | m88*-harris-cxux*) gdb_host=cxux ;; | |
2009 | m88*-motorola-sysv4*) gdb_host=delta88v4 ;; | |
2010 | m88*-motorola-sysv*) gdb_host=delta88 ;; | |
2011 | m88*-*-mach3*) gdb_host=mach3 ;; | |
2012 | m88*-*-*) gdb_host=m88k ;; | |
2013 | ||
2014 | mips-dec-mach3*) gdb_host=mach3 ;; | |
2015 | mips-dec-*) gdb_host=decstation ;; | |
2016 | mips-little-*) gdb_host=littlemips ;; | |
2017 | mips-sgi-irix3*) gdb_host=irix3 ;; | |
2018 | mips-sgi-irix4*) gdb_host=irix4 ;; | |
2019 | mips-sgi-irix5*) gdb_host=irix5 ;; | |
2020 | mips-sony-*) gdb_host=news-mips ;; | |
2021 | mips-*-mach3*) gdb_host=mach3 ;; | |
2022 | mips-*-sysv4*) gdb_host=mipsv4 ;; | |
2023 | mips-*-sysv*) gdb_host=riscos ;; | |
2024 | mips-*-riscos*) gdb_host=riscos ;; | |
2025 | ||
2026 | none-*-*) gdb_host=none ;; | |
2027 | ||
2028 | np1-*-*) gdb_host=np1 ;; | |
2029 | ||
2030 | ns32k-*-mach3*) gdb_host=mach3 ;; | |
2031 | ns32k-*-netbsd*) gdb_host=nbsd ;; | |
2032 | ns32k-umax-*) gdb_host=umax ;; | |
2033 | ns32k-utek-sysv*) gdb_host=merlin ;; | |
2034 | ||
fbc3f191 JL |
2035 | powerpc-*-aix*) gdb_host=aix ;; |
2036 | ||
5436fc65 C |
2037 | pn-*-*) gdb_host=pn ;; |
2038 | ||
2039 | pyramid-*-*) gdb_host=pyramid ;; | |
2040 | ||
2041 | romp-*-*) gdb_host=rtbsd ;; | |
2042 | ||
2043 | rs6000-*-lynxos*) gdb_host=rs6000lynx ;; | |
2044 | rs6000-*-*) gdb_host=rs6000 ;; | |
2045 | ||
2046 | sparc-*-lynxos*) gdb_host=sparclynx ;; | |
2047 | sparc-*-netbsd*) gdb_host=nbsd ;; | |
2048 | sparc-*-solaris2*) gdb_host=sun4sol2 ;; | |
2049 | sparc-*-sunos4*) gdb_host=sun4os4 ;; | |
2050 | sparc-*-sunos5*) gdb_host=sun4sol2 ;; | |
2051 | sparc-*-*) gdb_host=sun4os4 ;; | |
2052 | ||
2053 | tahoe-*-*) gdb_host=tahoe ;; | |
2054 | ||
2055 | vax-*-bsd*) gdb_host=vaxbsd ;; | |
2056 | vax-*-ultrix2*) gdb_host=vaxult2 ;; | |
2057 | vax-*-ultrix*) gdb_host=vaxult ;; | |
2058 | ||
2059 | w65-*-*) gdb_host=w65 ;; | |
2060 | ||
2061 | esac | |
2062 | ||
2063 | ||
2064 | # Map target cpu into the config cpu subdirectory name. | |
2065 | # The default is $target_cpu. | |
2066 | ||
2067 | case "${target_cpu}" in | |
2068 | ||
2069 | alpha) gdb_target_cpu=alpha ;; | |
2070 | c[12]) gdb_target_cpu=convex ;; | |
2071 | hppa*) gdb_target_cpu=pa ;; | |
2072 | i[345]86) gdb_target_cpu=i386 ;; | |
2073 | m68*) gdb_target_cpu=m68k ;; | |
2074 | m88*) gdb_target_cpu=m88k ;; | |
2075 | mips*) gdb_target_cpu=mips ;; | |
2076 | np1) gdb_target_cpu=gould ;; | |
2077 | powerpc*) gdb_target_cpu=powerpc ;; | |
2078 | pn) gdb_target_cpu=gould ;; | |
2079 | pyramid) gdb_target_cpu=pyr ;; | |
5436fc65 C |
2080 | sparc*) gdb_target_cpu=sparc ;; |
2081 | *) gdb_target_cpu=$target_cpu ;; | |
2082 | ||
2083 | esac | |
2084 | ||
2085 | # map target info into gdb names. | |
2086 | ||
2087 | case "${target}" in | |
2088 | ||
2089 | a29k-*-aout*) gdb_target=a29k ;; | |
2090 | a29k-*-coff*) gdb_target=a29k ;; | |
2091 | a29k-*-elf*) gdb_target=a29k ;; | |
2092 | a29k-*-ebmon*) gdb_target=a29k ;; | |
2093 | a29k-*-kern*) gdb_target=a29k-kern ;; | |
2094 | a29k-*-none*) gdb_target=a29k ;; | |
2095 | a29k-*-sym1*) gdb_target=ultra3 ;; | |
2096 | a29k-*-udi*) gdb_target=a29k-udi ;; | |
2097 | a29k-*-vxworks*) gdb_target=vx29k ;; | |
2098 | ||
2099 | alpha-*-osf*) gdb_target=alpha-osf1 ;; | |
2100 | ||
2101 | # start-sanitize-arc | |
2102 | arc-*-*) gdb_target=arc ;; | |
2103 | # end-sanitize-arc | |
2104 | ||
2105 | arm-*-*) gdb_target=arm ;; | |
2106 | ||
2107 | c1-*-*) gdb_target=convex ;; | |
2108 | c2-*-*) gdb_target=convex ;; | |
2109 | ||
fb506180 SS |
2110 | h8300-*-*) gdb_target=h8300 ;; |
2111 | h8500-*-*) gdb_target=h8500 ;; | |
5436fc65 C |
2112 | |
2113 | sh-*-*) gdb_target=sh ;; | |
2114 | ||
2115 | # start-sanitize-r16 | |
2116 | r16-*-*) gdb_target=r16 ;; | |
2117 | # end-sanitize-r16 | |
2118 | ||
2119 | hppa*-*-bsd*) gdb_target=hppabsd ;; | |
2120 | hppa*-*-pro*) gdb_target=hppapro ;; | |
2121 | hppa*-*-hpux*) gdb_target=hppahpux ;; | |
2122 | hppa*-*-hiux*) gdb_target=hppahpux ;; | |
2123 | hppa*-*-osf*) gdb_target=hppaosf ;; | |
2124 | ||
2125 | i[345]86-sequent-bsd*) gdb_target=symmetry ;; | |
2126 | i[345]86-sequent-sysv4*) gdb_target=ptx4 ;; | |
2127 | i[345]86-sequent-sysv*) gdb_target=ptx ;; | |
2128 | i[345]86-ncr-*) gdb_target=ncr3000 ;; | |
2129 | i[345]86-*-aout*) gdb_target=i386aout ;; | |
2130 | i[345]86-*-coff*) gdb_target=i386v ;; | |
2131 | i[345]86-*-elf*) gdb_target=i386v ;; | |
2132 | i[345]86-*-aix*) gdb_target=i386aix ;; | |
2133 | i[345]86-*-bsd*) gdb_target=i386bsd ;; | |
2134 | i[345]86-*-freebsd*) gdb_target=fbsd ;; | |
2135 | i[345]86-*-netbsd*) gdb_target=nbsd ;; | |
2136 | i[345]86-*-os9k) gdb_target=i386os9k ;; | |
2137 | i[345]86-*-go32*) gdb_target=i386aout ;; | |
2138 | i[345]86-*-lynxos*) gdb_target=i386lynx | |
2139 | configdirs="${configdirs} gdbserver" ;; | |
2140 | i[345]86-*-solaris*) gdb_target=i386sol2 ;; | |
2141 | i[345]86-*-sunos*) gdb_target=sun386 ;; | |
2142 | i[345]86-*-sysv4*) gdb_target=i386v4 ;; | |
2143 | i[345]86-*-sco*) gdb_target=i386v ;; | |
2144 | i[345]86-*-sysv*) gdb_target=i386v ;; | |
2145 | i[345]86-*-linux*) gdb_target=linux ;; | |
2146 | i[345]86-*-isc*) gdb_target=i386v ;; | |
2147 | i[345]86-*-mach3*) gdb_target=i386m3 ;; | |
2148 | i[345]86-*-mach*) gdb_target=i386mach ;; | |
2149 | i[345]86-*-netware*) gdb_target=i386nw | |
2150 | configdirs="${configdirs} nlm" ;; | |
2151 | i[345]86-*-osf1mk*) gdb_target=i386mk ;; | |
24e60978 | 2152 | i[345]86-*-win32) gdb_target=win32 ;; |
5436fc65 C |
2153 | |
2154 | i960-*-bout*) gdb_target=vxworks960 ;; | |
2155 | i960-*-coff*) gdb_target=nindy960 ;; | |
2156 | i960-*-elf*) gdb_target=nindy960 ;; | |
2157 | ||
2158 | i960-*-nindy*) gdb_target=nindy960 ;; | |
2159 | i960-*-vxworks*) gdb_target=vxworks960 ;; | |
2160 | ||
2161 | m68000-*-sunos3*) gdb_target=sun2os3 ;; | |
2162 | m68000-*-sunos4*) gdb_target=sun2os4 ;; | |
2163 | ||
2164 | m68*-apollo*-bsd*) gdb_target=apollo68b ;; | |
2165 | m68*-bull-sysv*) gdb_target=dpx2 ;; | |
2166 | m68*-hp-bsd*) gdb_target=hp300bsd ;; | |
2167 | m68*-hp-hpux*) gdb_target=hp300hpux ;; | |
2168 | m68*-altos-*) gdb_target=altos ;; | |
2169 | m68*-att-*) gdb_target=3b1 ;; | |
2170 | m68*-cisco*-*) gdb_target=cisco ;; | |
2171 | m68*-ericsson-*) gdb_target=es1800 ;; | |
2172 | m68*-isi-*) gdb_target=isi ;; | |
2173 | m68*-motorola-*) gdb_target=delta68 ;; | |
2174 | m68*-netx-*) gdb_target=vxworks68 ;; | |
2175 | m68*-sony-*) gdb_target=news ;; | |
2176 | m68*-tandem-*) gdb_target=st2000 ;; | |
2177 | m68*-rom68k-*) gdb_target=monitor ;; | |
2178 | m68*-*bug-*) gdb_target=monitor ;; | |
2179 | m68*-monitor-*) gdb_target=monitor ;; | |
949e2bbf | 2180 | m68*-est-*) gdb_target=monitor ;; |
5436fc65 C |
2181 | m68*-*-aout*) gdb_target=monitor ;; |
2182 | m68*-*-coff*) gdb_target=monitor ;; | |
2183 | m68*-*-elf*) gdb_target=monitor ;; | |
2184 | m68*-*-lynxos*) gdb_target=m68klynx | |
2185 | configdirs="${configdirs} gdbserver" ;; | |
2186 | m68*-*-os68k*) gdb_target=os68k ;; | |
2187 | m68*-*-sunos3*) gdb_target=sun3os3 ;; | |
2188 | m68*-*-sunos4*) gdb_target=sun3os4 ;; | |
2189 | m68*-*-sysv4*) gdb_target=m68kv4 ;; | |
2190 | m68*-*-vxworks*) gdb_target=vxworks68 ;; | |
2191 | ||
2192 | m88*-harris-cxux*) gdb_target=cxux ;; | |
2193 | m88*-motorola-sysv4*) gdb_target=delta88v4 ;; | |
2194 | m88*-*-mach3*) gdb_target=mach3 ;; | |
2195 | m88*-motorola-*) gdb_target=delta88 ;; | |
2196 | m88*-*-*) gdb_target=m88k ;; | |
2197 | ||
2198 | mips64*-big-*) gdb_target=bigmips64 ;; | |
2199 | mips*-big-*) gdb_target=bigmips ;; | |
2200 | mips*-dec-mach3*) gdb_target=mach3 ;; | |
2201 | mips*-dec-*) gdb_target=decstation ;; | |
2202 | mips64*el-*-ecoff*) gdb_target=idtl64 ;; | |
2203 | mips64*-idt-ecoff*) gdb_target=idt64 ;; | |
0e3a4b1e JSC |
2204 | mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;; |
2205 | mips64*vr4300*-*-elf*) gdb_target=vr4300 ;; | |
5436fc65 C |
2206 | mips64*el-*-elf*) gdb_target=idtl64 ;; |
2207 | mips64*-*-elf*) gdb_target=idt64 ;; | |
2208 | mips*el-*-ecoff*) gdb_target=idtl ;; | |
2209 | mips*-*-ecoff*) gdb_target=idt ;; | |
2210 | mips*el-*-elf*) gdb_target=idtl ;; | |
2211 | mips*-*-elf*) gdb_target=idt ;; | |
2212 | mips*-little-*) gdb_target=littlemips ;; | |
2213 | mips*-sgi-irix5*) gdb_target=irix5 ;; | |
2214 | mips*-sgi-*) gdb_target=irix3 ;; | |
2215 | mips*-sony-*) gdb_target=bigmips ;; | |
2216 | mips*-*-mach3*) gdb_target=mach3 ;; | |
2217 | mips*-*-sysv4*) gdb_target=mipsv4 ;; | |
2218 | mips*-*-sysv*) gdb_target=bigmips ;; | |
2219 | mips*-*-riscos*) gdb_target=bigmips ;; | |
2220 | ||
2221 | none-*-*) gdb_target=none ;; | |
2222 | ||
2223 | np1-*-*) gdb_target=np1 ;; | |
2224 | ||
2225 | ns32k-*-mach3*) gdb_target=mach3 ;; | |
2226 | ns32k-*-netbsd*) gdb_target=nbsd ;; | |
2227 | ns32k-utek-sysv*) gdb_target=merlin ;; | |
2228 | ns32k-utek-*) gdb_target=umax ;; | |
2229 | ||
2230 | pn-*-*) gdb_target=pn ;; | |
2231 | powerpc-*-netware*) gdb_target=ppc-nw | |
2232 | configdirs="${configdirs} nlm" ;; | |
2233 | ||
65eaea27 | 2234 | powerpc-*-aix4*) gdb_target=aix4 ;; |
fbc3f191 | 2235 | powerpc-*-aix*) gdb_target=aix ;; |
13ba8b69 | 2236 | powerpc-*-eabisim*) gdb_target=ppc-sim ;; |
fbc3f191 | 2237 | powerpc-*-eabi*) gdb_target=ppc-eabi ;; |
13ba8b69 | 2238 | powerpcle-*-eabisim*) gdb_target=ppcle-sim ;; |
fbc3f191 | 2239 | powerpcle-*-eabi*) gdb_target=ppcle-eabi ;; |
5436fc65 C |
2240 | |
2241 | pyramid-*-*) gdb_target=pyramid ;; | |
2242 | ||
2243 | rs6000-*-lynxos*) gdb_target=rs6000lynx ;; | |
65eaea27 | 2244 | rs6000-*-aix4*) gdb_target=aix4 ;; |
5436fc65 C |
2245 | rs6000-*-*) gdb_target=rs6000 ;; |
2246 | ||
2247 | sparc-*-aout*) gdb_target=sparc-em ;; | |
2248 | sparc-*-coff*) gdb_target=sparc-em ;; | |
2249 | sparc-*-elf*) gdb_target=sparc-em ;; | |
2250 | sparc-*-lynxos*) gdb_target=sparclynx | |
2251 | configdirs="${configdirs} gdbserver" ;; | |
2252 | sparc-*-netbsd*) gdb_target=nbsd ;; | |
2253 | sparc-*-solaris2*) gdb_target=sun4sol2 ;; | |
2254 | sparc-*-sunos4*) gdb_target=sun4os4 ;; | |
2255 | sparc-*-sunos5*) gdb_target=sun4sol2 ;; | |
2256 | sparc-*-vxworks*) gdb_target=vxsparc ;; | |
2257 | sparc-*-*) gdb_target=sun4os4 ;; | |
2258 | sparclite*-*-*) gdb_target=sparclite ;; | |
2259 | sparc64-*-*) gdb_target=sp64 ;; | |
2260 | ||
2261 | tahoe-*-*) gdb_target=tahoe ;; | |
2262 | ||
2263 | vax-*-*) gdb_target=vax ;; | |
2264 | ||
2265 | w65-*-*) gdb_target=w65 ;; | |
2266 | ||
fb506180 | 2267 | z8k-*-coff*) gdb_target=z8k ;; |
5436fc65 C |
2268 | |
2269 | esac | |
2270 | ||
2271 | ||
5f107900 | 2272 | frags= |
5436fc65 C |
2273 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
2274 | if test ! -f ${host_makefile_frag}; then | |
2275 | { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; } | |
2276 | fi | |
5f107900 | 2277 | frags="$frags $host_makefile_frag" |
5436fc65 C |
2278 | |
2279 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
2280 | if test ! -f ${target_makefile_frag}; then | |
2281 | { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; } | |
2282 | fi | |
5f107900 | 2283 | frags="$frags $target_makefile_frag" |
5436fc65 C |
2284 | |
2285 | ||
2286 | ||
2287 | ||
2288 | ||
094fd4ae C |
2289 | hostfile=`sed -n ' |
2290 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
2291 | ' ${host_makefile_frag}` | |
5436fc65 | 2292 | |
094fd4ae C |
2293 | targetfile=`sed -n ' |
2294 | s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
2295 | ' ${target_makefile_frag}` | |
5436fc65 C |
2296 | |
2297 | # these really aren't orthogonal true/false values of the same condition, | |
2298 | # but shells are slow enough that I like to reuse the test conditions | |
2299 | # whenever possible | |
2300 | if test "${target}" = "${host}"; then | |
094fd4ae C |
2301 | nativefile=`sed -n ' |
2302 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
2303 | ' ${host_makefile_frag}` | |
5436fc65 C |
2304 | else |
2305 | # GDBserver is only useful in a "native" enviroment | |
2306 | configdirs=`echo $configdirs | sed 's/gdbserver//'` | |
2307 | fi | |
2308 | ||
094fd4ae | 2309 | |
5436fc65 C |
2310 | # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile |
2311 | # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the | |
2312 | # corresponding links. But we have to remove the xm.h files and tm.h | |
2313 | # files anyway, e.g. when switching from "configure host" to | |
2314 | # "configure none". | |
2315 | ||
2316 | files= | |
2317 | links= | |
2318 | rm -f xm.h | |
2319 | if test "${hostfile}" != ""; then | |
2320 | files="${files} config/${gdb_host_cpu}/${hostfile}" | |
2321 | links="${links} xm.h" | |
2322 | fi | |
2323 | rm -f tm.h | |
2324 | if test "${targetfile}" != ""; then | |
2325 | files="${files} config/${gdb_target_cpu}/${targetfile}" | |
2326 | links="${links} tm.h" | |
2327 | fi | |
2328 | rm -f nm.h | |
2329 | if test "${nativefile}" != ""; then | |
2330 | files="${files} config/${gdb_host_cpu}/${nativefile}" | |
2331 | links="${links} nm.h" | |
2332 | else | |
2333 | # A cross-only configuration. | |
2334 | files="${files} config/nm-empty.h" | |
2335 | links="${links} nm.h" | |
2336 | fi | |
2337 | # start-sanitize-gdbtk | |
2338 | ||
2339 | # Make it possible to use the GUI without doing a full install | |
2340 | if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then | |
2341 | files="${files} gdbtk.tcl" | |
2342 | links="${links} gdbtk.tcl" | |
2343 | fi | |
2344 | # end-sanitize-gdbtk | |
2345 | ||
2346 | ||
2347 | ||
2348 | subdirs="$configdirs" | |
2349 | ||
2350 | trap '' 1 2 15 | |
2351 | cat > confcache <<\EOF | |
2352 | # This file is a shell script that caches the results of configure | |
2353 | # tests run on this system so they can be shared between configure | |
2354 | # scripts and configure runs. It is not useful on other systems. | |
2355 | # If it contains results you don't want to keep, you may remove or edit it. | |
2356 | # | |
2357 | # By default, configure uses ./config.cache as the cache file, | |
2358 | # creating it if it does not exist already. You can give configure | |
2359 | # the --cache-file=FILE option to use a different cache file; that is | |
2360 | # what configure does when it calls configure scripts in | |
2361 | # subdirectories, so they share the cache. | |
2362 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2363 | # config.status only pays attention to the cache file if you give it the | |
2364 | # --recheck option to rerun configure. | |
2365 | # | |
2366 | EOF | |
2367 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2368 | # and sets the high bit in the cache file unless we assign to the vars. | |
2369 | (set) 2>&1 | | |
2370 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ | |
2371 | >> confcache | |
2372 | if cmp -s $cache_file confcache; then | |
2373 | : | |
2374 | else | |
2375 | if test -w $cache_file; then | |
2376 | echo "updating cache $cache_file" | |
2377 | cat confcache > $cache_file | |
2378 | else | |
2379 | echo "not updating unwritable cache $cache_file" | |
2380 | fi | |
2381 | fi | |
2382 | rm -f confcache | |
2383 | ||
2384 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2385 | ||
2386 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2387 | # Let make expand exec_prefix. | |
2388 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2389 | ||
2390 | # Any assignment to VPATH causes Sun make to only execute | |
2391 | # the first set of double-colon rules, so remove it if not needed. | |
2392 | # If there is a colon in the path, we need to keep it. | |
2393 | if test "x$srcdir" = x.; then | |
2394 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
2395 | fi | |
2396 | ||
2397 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
2398 | ||
2399 | # Transform confdefs.h into DEFS. | |
2400 | # Protect against shell expansion while executing Makefile rules. | |
2401 | # Protect against Makefile macro expansion. | |
2402 | cat > conftest.defs <<\EOF | |
2403 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g | |
2404 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
2405 | s%\[%\\&%g | |
2406 | s%\]%\\&%g | |
2407 | s%\$%$$%g | |
2408 | EOF | |
2409 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
2410 | rm -f conftest.defs | |
2411 | ||
2412 | ||
2413 | # Without the "./", some shells look in PATH for config.status. | |
2414 | : ${CONFIG_STATUS=./config.status} | |
2415 | ||
2416 | echo creating $CONFIG_STATUS | |
2417 | rm -f $CONFIG_STATUS | |
2418 | cat > $CONFIG_STATUS <<EOF | |
2419 | #! /bin/sh | |
2420 | # Generated automatically by configure. | |
2421 | # Run this file to recreate the current configuration. | |
2422 | # This directory was configured as follows, | |
2423 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
2424 | # | |
2425 | # $0 $ac_configure_args | |
2426 | # | |
2427 | # Compiler output produced by configure, useful for debugging | |
2428 | # configure, is in ./config.log if it exists. | |
2429 | ||
2430 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2431 | for ac_option | |
2432 | do | |
2433 | case "\$ac_option" in | |
2434 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
2435 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
2436 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
2437 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
a2b63bbd | 2438 | echo "$CONFIG_STATUS generated by autoconf version 2.4" |
5436fc65 C |
2439 | exit 0 ;; |
2440 | -help | --help | --hel | --he | --h) | |
2441 | echo "\$ac_cs_usage"; exit 0 ;; | |
2442 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
2443 | esac | |
2444 | done | |
2445 | ||
2446 | ac_given_srcdir=$srcdir | |
2447 | ac_given_INSTALL="$INSTALL" | |
2448 | ||
2449 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
2450 | ||
2451 | # Protect against being on the right side of a sed subst in config.status. | |
2452 | sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; | |
2453 | s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF | |
2454 | $ac_vpsub | |
2455 | $extrasub | |
2456 | s%@CFLAGS@%$CFLAGS%g | |
2457 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2458 | s%@CXXFLAGS@%$CXXFLAGS%g | |
2459 | s%@DEFS@%$DEFS%g | |
2460 | s%@LDFLAGS@%$LDFLAGS%g | |
2461 | s%@LIBS@%$LIBS%g | |
2462 | s%@exec_prefix@%$exec_prefix%g | |
2463 | s%@prefix@%$prefix%g | |
2464 | s%@program_transform_name@%$program_transform_name%g | |
2465 | s%@CC@%$CC%g | |
2466 | s%@CPP@%$CPP%g | |
2467 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2468 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2469 | s%@RANLIB@%$RANLIB%g | |
204c8825 | 2470 | s%@YACC@%$YACC%g |
5436fc65 C |
2471 | s%@host@%$host%g |
2472 | s%@host_alias@%$host_alias%g | |
2473 | s%@host_cpu@%$host_cpu%g | |
2474 | s%@host_vendor@%$host_vendor%g | |
2475 | s%@host_os@%$host_os%g | |
2476 | s%@target@%$target%g | |
2477 | s%@target_alias@%$target_alias%g | |
2478 | s%@target_cpu@%$target_cpu%g | |
2479 | s%@target_vendor@%$target_vendor%g | |
2480 | s%@target_os@%$target_os%g | |
2481 | s%@build@%$build%g | |
2482 | s%@build_alias@%$build_alias%g | |
2483 | s%@build_cpu@%$build_cpu%g | |
2484 | s%@build_vendor@%$build_vendor%g | |
2485 | s%@build_os@%$build_os%g | |
2486 | s%@X_CFLAGS@%$X_CFLAGS%g | |
2487 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
2488 | s%@X_LIBS@%$X_LIBS%g | |
2489 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2490 | s%@TKHDIR@%$TKHDIR%g | |
2491 | s%@TKLIB@%$TKLIB%g | |
2492 | s%@TCLHDIR@%$TCLHDIR%g | |
2493 | s%@TCLLIB@%$TCLLIB%g | |
2494 | s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g | |
a2b63bbd JM |
2495 | s%@X_CLFAGS@%$X_CLFAGS%g |
2496 | s%@X_LDFLAGS@%$X_LDFLAGS%g | |
5436fc65 C |
2497 | s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g |
2498 | s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g | |
2499 | s%@ENABLE_OBS@%$ENABLE_OBS%g | |
5436fc65 C |
2500 | /@host_makefile_frag@/r $host_makefile_frag |
2501 | s%@host_makefile_frag@%%g | |
2502 | /@target_makefile_frag@/r $target_makefile_frag | |
2503 | s%@target_makefile_frag@%%g | |
5f107900 | 2504 | s%@frags@%$frags%g |
5436fc65 C |
2505 | s%@subdirs@%$subdirs%g |
2506 | ||
2507 | CEOF | |
2508 | EOF | |
2509 | cat >> $CONFIG_STATUS <<EOF | |
2510 | ||
2511 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
2512 | EOF | |
2513 | cat >> $CONFIG_STATUS <<\EOF | |
2514 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
2515 | # Support "outfile[:infile]", defaulting infile="outfile.in". | |
2516 | case "$ac_file" in | |
2517 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
2518 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2519 | *) ac_file_in="${ac_file}.in" ;; | |
2520 | esac | |
2521 | ||
2522 | # Adjust relative srcdir, etc. for subdirectories. | |
2523 | ||
2524 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2525 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2526 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2527 | # The file is in a subdirectory. | |
2528 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2529 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
2530 | # A "../" for each directory in $ac_dir_suffix. | |
2531 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
2532 | else | |
2533 | ac_dir_suffix= ac_dots= | |
2534 | fi | |
2535 | ||
2536 | case "$ac_given_srcdir" in | |
2537 | .) srcdir=. | |
2538 | if test -z "$ac_dots"; then top_srcdir=. | |
2539 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
2540 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2541 | *) # Relative path. | |
2542 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2543 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2544 | esac | |
2545 | ||
2546 | case "$ac_given_INSTALL" in | |
2547 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2548 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2549 | esac | |
2550 | echo creating "$ac_file" | |
2551 | rm -f "$ac_file" | |
2552 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
2553 | case "$ac_file" in | |
2554 | *Makefile*) ac_comsub="1i\\ | |
2555 | # $configure_input" ;; | |
2556 | *) ac_comsub= ;; | |
2557 | esac | |
2558 | sed -e "$ac_comsub | |
2559 | s%@configure_input@%$configure_input%g | |
2560 | s%@srcdir@%$srcdir%g | |
2561 | s%@top_srcdir@%$top_srcdir%g | |
2562 | s%@INSTALL@%$INSTALL%g | |
2563 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file | |
2564 | fi; done | |
2565 | rm -f conftest.subs | |
2566 | ||
2567 | EOF | |
2568 | ||
2569 | cat >> $CONFIG_STATUS <<EOF | |
2570 | ac_sources="$files" | |
2571 | ac_dests="$links" | |
2572 | EOF | |
2573 | ||
2574 | cat >> $CONFIG_STATUS <<\EOF | |
2575 | srcdir=$ac_given_srcdir | |
2576 | while test -n "$ac_sources"; do | |
2577 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
2578 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
2579 | ||
2580 | echo "linking $srcdir/$ac_source to $ac_dest" | |
2581 | ||
2582 | if test ! -r $srcdir/$ac_source; then | |
2583 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
2584 | fi | |
2585 | rm -f $ac_dest | |
2586 | ||
2587 | # Make relative symlinks. | |
2588 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2589 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
2590 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
2591 | # The dest file is in a subdirectory. | |
2592 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
2593 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
2594 | # A "../" for each directory in $ac_dest_dir_suffix. | |
2595 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
2596 | else | |
2597 | ac_dest_dir_suffix= ac_dots= | |
2598 | fi | |
2599 | ||
2600 | case "$srcdir" in | |
2601 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
2602 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
2603 | esac | |
2604 | ||
2605 | # Make a symlink if possible; otherwise try a hard link. | |
2606 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
2607 | ln $srcdir/$ac_source $ac_dest; then : | |
2608 | else | |
2609 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
2610 | fi | |
2611 | done | |
0a5a1821 C |
2612 | EOF |
2613 | cat >> $CONFIG_STATUS <<EOF | |
5436fc65 | 2614 | |
0a5a1821 C |
2615 | gdb_host_cpu=$gdb_host_cpu |
2616 | gdb_target_cpu=$gdb_target_cpu | |
2617 | nativefile=$nativefile | |
2618 | ||
2619 | EOF | |
2620 | cat >> $CONFIG_STATUS <<\EOF | |
5436fc65 C |
2621 | |
2622 | if test "${nativefile}" = ""; then | |
2623 | sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \ | |
2624 | < Makefile > Makefile.tem | |
2625 | mv -f Makefile.tem Makefile | |
2626 | fi | |
2627 | ||
2628 | sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, | |
2629 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, | |
2630 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
2631 | mv -f Makefile.tmp Makefile | |
2632 | ||
2633 | case ${srcdir} in | |
2634 | .) | |
2635 | ;; | |
2636 | *) | |
2637 | grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \ | |
2638 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
2639 | esac | |
2640 | ||
2641 | exit 0 | |
2642 | EOF | |
2643 | chmod +x $CONFIG_STATUS | |
2644 | rm -fr confdefs* $ac_clean_files | |
2645 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
2646 | ||
2647 | if test "$no_recursion" != yes; then | |
2648 | ||
2649 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
2650 | ac_sub_configure_args= | |
2651 | ac_prev= | |
2652 | for ac_arg in $ac_configure_args; do | |
2653 | if test -n "$ac_prev"; then | |
2654 | ac_prev= | |
2655 | continue | |
2656 | fi | |
2657 | case "$ac_arg" in | |
2658 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
2659 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
2660 | ac_prev=cache_file ;; | |
2661 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
2662 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
2663 | ;; | |
2664 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
2665 | ac_prev=srcdir ;; | |
2666 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
2667 | ;; | |
2668 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
2669 | esac | |
2670 | done | |
2671 | ||
2672 | for ac_config_dir in $configdirs; do | |
2673 | ||
2674 | # Do not complain, so a configure script can configure whichever | |
2675 | # parts of a large source tree are present. | |
2676 | if test ! -d $srcdir/$ac_config_dir; then | |
2677 | continue | |
2678 | fi | |
2679 | ||
2680 | echo configuring in $ac_config_dir | |
2681 | ||
2682 | case "$srcdir" in | |
2683 | .) ;; | |
2684 | *) | |
2685 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
2686 | else | |
2687 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
2688 | fi | |
2689 | ;; | |
2690 | esac | |
2691 | ||
2692 | ac_popdir=`pwd` | |
2693 | cd $ac_config_dir | |
2694 | ||
2695 | case "$srcdir" in | |
2696 | .) # No --srcdir option. We are building in place. | |
2697 | ac_sub_srcdir=$srcdir ;; | |
2698 | /*) # Absolute path. | |
2699 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2700 | *) # Relative path. | |
2701 | ac_sub_srcdir=../$srcdir/$ac_config_dir ;; | |
2702 | esac | |
2703 | ||
2704 | # Check for guested configure; otherwise get Cygnus style configure. | |
2705 | if test -f $ac_sub_srcdir/configure; then | |
2706 | ac_sub_configure=$ac_sub_srcdir/configure | |
2707 | elif test -f $ac_sub_srcdir/configure.in; then | |
2708 | ac_sub_configure=$ac_configure | |
2709 | else | |
2710 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
2711 | ac_sub_configure= | |
2712 | fi | |
2713 | ||
2714 | # The recursion is here. | |
2715 | if test -n "$ac_sub_configure"; then | |
2716 | ||
2717 | # Make the cache file name correct relative to the subdirectory. | |
2718 | # A "../" for each directory in /$ac_config_dir. | |
2719 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2720 | case "$cache_file" in | |
2721 | /*) ac_sub_cache_file=$cache_file ;; | |
2722 | *) # Relative path. | |
2723 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
2724 | esac | |
2725 | case "$ac_given_INSTALL" in | |
2726 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2727 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2728 | esac | |
2729 | ||
2730 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
2731 | # The eval makes quoting arguments work. | |
2732 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
2733 | then : | |
2734 | else | |
2735 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
2736 | fi | |
2737 | fi | |
2738 | ||
2739 | cd $ac_popdir | |
2740 | done | |
2741 | fi | |
2742 | ||
5e711e7f PS |
2743 | |
2744 | exit 0 |