Commit | Line | Data |
---|---|---|
119a5f4e C |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.3 | |
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 | ||
15 | # Initialize some variables set by options. | |
16 | # The variables have the same names as the options, with | |
17 | # dashes changed to underlines. | |
18 | build=NONE | |
19 | cache_file=./config.cache | |
20 | exec_prefix=NONE | |
21 | host=NONE | |
22 | no_create= | |
23 | nonopt=NONE | |
24 | no_recursion= | |
25 | prefix=NONE | |
26 | program_prefix=NONE | |
27 | program_suffix=NONE | |
28 | program_transform_name=s,x,x, | |
29 | silent= | |
30 | site= | |
31 | srcdir= | |
32 | target=NONE | |
33 | verbose= | |
34 | x_includes=NONE | |
35 | x_libraries=NONE | |
36 | ||
37 | # Initialize some other variables. | |
38 | subdirs= | |
39 | ||
40 | ac_prev= | |
41 | for ac_option | |
42 | do | |
43 | ||
44 | # If the previous option needs an argument, assign it. | |
45 | if test -n "$ac_prev"; then | |
46 | eval "$ac_prev=\$ac_option" | |
47 | ac_prev= | |
48 | continue | |
49 | fi | |
50 | ||
51 | case "$ac_option" in | |
52 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
53 | *) ac_optarg= ;; | |
54 | esac | |
55 | ||
56 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
57 | ||
58 | case "$ac_option" in | |
59 | ||
60 | -build | --build | --buil | --bui | --bu | --b) | |
61 | ac_prev=build ;; | |
62 | -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) | |
63 | build="$ac_optarg" ;; | |
64 | ||
65 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
66 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
67 | ac_prev=cache_file ;; | |
68 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
69 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
70 | cache_file="$ac_optarg" ;; | |
71 | ||
72 | -disable-* | --disable-*) | |
73 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
74 | # Reject names that are not valid shell variable names. | |
75 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
76 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
77 | fi | |
78 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
79 | eval "enable_${ac_feature}=no" ;; | |
80 | ||
81 | -enable-* | --enable-*) | |
82 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
83 | # Reject names that are not valid shell variable names. | |
84 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
85 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
86 | fi | |
87 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
88 | case "$ac_option" in | |
89 | *=*) ;; | |
90 | *) ac_optarg=yes ;; | |
91 | esac | |
92 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
93 | ||
94 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
95 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
96 | | --exec | --exe | --ex) | |
97 | ac_prev=exec_prefix ;; | |
98 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
99 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
100 | | --exec=* | --exe=* | --ex=*) | |
101 | exec_prefix="$ac_optarg" ;; | |
102 | ||
103 | -gas | --gas | --ga | --g) | |
104 | # Obsolete; use --with-gas. | |
105 | with_gas=yes ;; | |
106 | ||
107 | -help | --help | --hel | --he) | |
108 | # Omit some internal or obsolete options to make the list less imposing. | |
109 | # This message is too long to be a string in the A/UX 3.1 sh. | |
110 | cat << EOF | |
111 | Usage: configure [options] [host] | |
112 | Options: [defaults in brackets after descriptions] | |
113 | Configuration: | |
114 | --cache-file=FILE cache test results in FILE | |
115 | --help print this message | |
116 | --no-create do not create output files | |
117 | --quiet, --silent do not print \`checking...' messages | |
118 | --version print the version of autoconf that created configure | |
119 | Directory and file names: | |
120 | --prefix=PREFIX install architecture-independent files in PREFIX | |
121 | [$ac_default_prefix] | |
122 | --exec-prefix=PREFIX install architecture-dependent files in PREFIX | |
123 | [same as prefix] | |
124 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
125 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
126 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
127 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
128 | Host type: | |
129 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
130 | --host=HOST configure for HOST [guessed] | |
131 | --target=TARGET configure for TARGET [TARGET=HOST] | |
132 | Features and packages: | |
133 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
134 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
135 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
136 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
137 | --x-includes=DIR X include files are in DIR | |
138 | --x-libraries=DIR X library files are in DIR | |
139 | --enable and --with options recognized:$ac_help | |
140 | EOF | |
141 | exit 0 ;; | |
142 | ||
143 | -host | --host | --hos | --ho) | |
144 | ac_prev=host ;; | |
145 | -host=* | --host=* | --hos=* | --ho=*) | |
146 | host="$ac_optarg" ;; | |
147 | ||
148 | -nfp | --nfp | --nf) | |
149 | # Obsolete; use --without-fp. | |
150 | with_fp=no ;; | |
151 | ||
152 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
153 | | --no-cr | --no-c) | |
154 | no_create=yes ;; | |
155 | ||
156 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
157 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
158 | no_recursion=yes ;; | |
159 | ||
160 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
161 | ac_prev=prefix ;; | |
162 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
163 | prefix="$ac_optarg" ;; | |
164 | ||
165 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
166 | | --program-pre | --program-pr | --program-p) | |
167 | ac_prev=program_prefix ;; | |
168 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
169 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
170 | program_prefix="$ac_optarg" ;; | |
171 | ||
172 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
173 | | --program-suf | --program-su | --program-s) | |
174 | ac_prev=program_suffix ;; | |
175 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
176 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
177 | program_suffix="$ac_optarg" ;; | |
178 | ||
179 | -program-transform-name | --program-transform-name \ | |
180 | | --program-transform-nam | --program-transform-na \ | |
181 | | --program-transform-n | --program-transform- \ | |
182 | | --program-transform | --program-transfor \ | |
183 | | --program-transfo | --program-transf \ | |
184 | | --program-trans | --program-tran \ | |
185 | | --progr-tra | --program-tr | --program-t) | |
186 | ac_prev=program_transform_name ;; | |
187 | -program-transform-name=* | --program-transform-name=* \ | |
188 | | --program-transform-nam=* | --program-transform-na=* \ | |
189 | | --program-transform-n=* | --program-transform-=* \ | |
190 | | --program-transform=* | --program-transfor=* \ | |
191 | | --program-transfo=* | --program-transf=* \ | |
192 | | --program-trans=* | --program-tran=* \ | |
193 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
194 | program_transform_name="$ac_optarg" ;; | |
195 | ||
196 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
197 | | -silent | --silent | --silen | --sile | --sil) | |
198 | silent=yes ;; | |
199 | ||
200 | -site | --site | --sit) | |
201 | ac_prev=site ;; | |
202 | -site=* | --site=* | --sit=*) | |
203 | site="$ac_optarg" ;; | |
204 | ||
205 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
206 | ac_prev=srcdir ;; | |
207 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
208 | srcdir="$ac_optarg" ;; | |
209 | ||
210 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
211 | ac_prev=target ;; | |
212 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
213 | target="$ac_optarg" ;; | |
214 | ||
215 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
216 | verbose=yes ;; | |
217 | ||
218 | -version | --version | --versio | --versi | --vers) | |
219 | echo "configure generated by autoconf version 2.3" | |
220 | exit 0 ;; | |
221 | ||
222 | -with-* | --with-*) | |
223 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
224 | # Reject names that are not valid shell variable names. | |
225 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
226 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
227 | fi | |
228 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
229 | case "$ac_option" in | |
230 | *=*) ;; | |
231 | *) ac_optarg=yes ;; | |
232 | esac | |
233 | eval "with_${ac_package}='$ac_optarg'" ;; | |
234 | ||
235 | -without-* | --without-*) | |
236 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
237 | # Reject names that are not valid shell variable names. | |
238 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
239 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
240 | fi | |
241 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
242 | eval "with_${ac_package}=no" ;; | |
243 | ||
244 | --x) | |
245 | # Obsolete; use --with-x. | |
246 | with_x=yes ;; | |
247 | ||
248 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
249 | | --x-incl | --x-inc | --x-in | --x-i) | |
250 | ac_prev=x_includes ;; | |
251 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
252 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
253 | x_includes="$ac_optarg" ;; | |
254 | ||
255 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
256 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
257 | ac_prev=x_libraries ;; | |
258 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
259 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
260 | x_libraries="$ac_optarg" ;; | |
261 | ||
262 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
263 | ;; | |
264 | ||
265 | *) | |
266 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
267 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
268 | fi | |
269 | if test "x$nonopt" != xNONE; then | |
270 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
271 | fi | |
272 | nonopt="$ac_option" | |
273 | ;; | |
274 | ||
275 | esac | |
276 | done | |
277 | ||
278 | if test -n "$ac_prev"; then | |
279 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
280 | fi | |
281 | ||
282 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
283 | ||
284 | # File descriptor usage: | |
285 | # 0 standard input | |
286 | # 1 file creation | |
287 | # 2 errors and warnings | |
288 | # 3 some systems may open it to /dev/tty | |
289 | # 4 used on the Kubota Titan | |
290 | # 6 checking for... messages and results | |
291 | # 5 compiler messages saved in config.log | |
292 | if test "$silent" = yes; then | |
293 | exec 6>/dev/null | |
294 | else | |
295 | exec 6>&1 | |
296 | fi | |
297 | exec 5>./config.log | |
298 | ||
299 | echo "\ | |
300 | This file contains any messages produced by compilers while | |
301 | running configure, to aid debugging if configure makes a mistake. | |
302 | " 1>&5 | |
303 | ||
304 | # Strip out --no-create and --no-recursion so they do not pile up. | |
305 | # Also quote any args containing shell metacharacters. | |
306 | ac_configure_args= | |
307 | for ac_arg | |
308 | do | |
309 | case "$ac_arg" in | |
310 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
311 | | --no-cr | --no-c) ;; | |
312 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
313 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
314 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
315 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
316 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
317 | esac | |
318 | done | |
319 | ||
320 | # NLS nuisances. | |
321 | # Only set LANG and LC_ALL to C if already set. | |
322 | # These must not be set unconditionally because not all systems understand | |
323 | # e.g. LANG=C (notably SCO). | |
324 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
325 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
326 | ||
327 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
328 | rm -rf conftest* confdefs.h | |
329 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
330 | echo > confdefs.h | |
331 | ||
332 | # A filename unique to this package, relative to the directory that | |
333 | # configure is in, which we can look for to find out if srcdir is correct. | |
334 | ac_unique_file=gdbserve.c | |
335 | ||
336 | # Find the source files, if location was not specified. | |
337 | if test -z "$srcdir"; then | |
338 | ac_srcdir_defaulted=yes | |
339 | # Try the directory containing this script, then its parent. | |
340 | ac_prog=$0 | |
341 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
342 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
343 | srcdir=$ac_confdir | |
344 | if test ! -r $srcdir/$ac_unique_file; then | |
345 | srcdir=.. | |
346 | fi | |
347 | else | |
348 | ac_srcdir_defaulted=no | |
349 | fi | |
350 | if test ! -r $srcdir/$ac_unique_file; then | |
351 | if test "$ac_srcdir_defaulted" = yes; then | |
352 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
353 | else | |
354 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
355 | fi | |
356 | fi | |
357 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
358 | ||
359 | # Prefer explicitly selected file to automatically selected ones. | |
360 | if test -z "$CONFIG_SITE"; then | |
361 | if test "x$prefix" != xNONE; then | |
362 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
363 | else | |
364 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
365 | fi | |
366 | fi | |
367 | for ac_site_file in $CONFIG_SITE; do | |
368 | if test -r "$ac_site_file"; then | |
369 | echo "loading site script $ac_site_file" | |
370 | . "$ac_site_file" | |
371 | fi | |
372 | done | |
373 | ||
374 | if test -r "$cache_file"; then | |
375 | echo "loading cache $cache_file" | |
376 | . $cache_file | |
377 | else | |
378 | echo "creating cache $cache_file" | |
379 | > $cache_file | |
380 | fi | |
381 | ||
382 | ac_ext=c | |
383 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
384 | ac_cpp='$CPP $CPPFLAGS' | |
385 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' | |
386 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | |
387 | ||
388 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
389 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
390 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
391 | ac_n= ac_c=' | |
392 | ' ac_t=' ' | |
393 | else | |
394 | ac_n=-n ac_c= ac_t= | |
395 | fi | |
396 | else | |
397 | ac_n= ac_c='\c' ac_t= | |
398 | fi | |
399 | ||
400 | ||
401 | ||
402 | ac_aux_dir= | |
403 | for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do | |
404 | if test -f $ac_dir/install-sh; then | |
405 | ac_aux_dir=$ac_dir | |
406 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
407 | break | |
408 | elif test -f $ac_dir/install.sh; then | |
409 | ac_aux_dir=$ac_dir | |
410 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
411 | break | |
412 | fi | |
413 | done | |
414 | if test -z "$ac_aux_dir"; then | |
415 | { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; } | |
416 | fi | |
417 | ac_config_guess=$ac_aux_dir/config.guess | |
418 | ac_config_sub=$ac_aux_dir/config.sub | |
419 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
420 | ||
421 | ||
422 | # Do some error checking and defaulting for the host and target type. | |
423 | # The inputs are: | |
424 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
425 | # | |
426 | # The rules are: | |
427 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
428 | # same time. | |
429 | # 2. Host defaults to nonopt. | |
430 | # 3. If nonopt is not specified, then host defaults to the current host, | |
431 | # as determined by config.guess. | |
432 | # 4. Target and build default to nonopt. | |
433 | # 5. If nonopt is not specified, then target and build default to host. | |
434 | ||
435 | # The aliases save the names the user supplied, while $host etc. | |
436 | # will get canonicalized. | |
437 | case $host---$target---$nonopt in | |
438 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
439 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
440 | esac | |
441 | ||
442 | ||
443 | # Make sure we can run config.sub. | |
444 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
445 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
446 | fi | |
447 | ||
448 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
449 | ||
450 | host_alias=$host | |
451 | case "$host_alias" in | |
452 | NONE) | |
453 | case $nonopt in | |
454 | NONE) | |
455 | if host_alias=`$ac_config_guess`; then : | |
456 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
457 | fi ;; | |
458 | *) host_alias=$nonopt ;; | |
459 | esac ;; | |
460 | esac | |
461 | ||
462 | host=`$ac_config_sub $host_alias` | |
463 | host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
464 | host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
465 | host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
466 | echo "$ac_t""$host" 1>&6 | |
467 | ||
468 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
469 | ||
470 | target_alias=$target | |
471 | case "$target_alias" in | |
472 | NONE) | |
473 | case $nonopt in | |
474 | NONE) target_alias=$host_alias ;; | |
475 | *) target_alias=$nonopt ;; | |
476 | esac ;; | |
477 | esac | |
478 | ||
479 | target=`$ac_config_sub $target_alias` | |
480 | target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
481 | target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
482 | target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
483 | echo "$ac_t""$target" 1>&6 | |
484 | ||
485 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
486 | ||
487 | build_alias=$build | |
488 | case "$build_alias" in | |
489 | NONE) | |
490 | case $nonopt in | |
491 | NONE) build_alias=$host_alias ;; | |
492 | *) build_alias=$nonopt ;; | |
493 | esac ;; | |
494 | esac | |
495 | ||
496 | build=`$ac_config_sub $build_alias` | |
497 | build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
498 | build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
499 | build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
500 | echo "$ac_t""$build" 1>&6 | |
501 | ||
502 | test "$host_alias" != "$target_alias" && | |
503 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
504 | NONENONEs,x,x, && | |
505 | program_prefix=${target_alias}- | |
506 | ||
507 | if test "$program_transform_name" = s,x,x,; then | |
508 | program_transform_name= | |
509 | else | |
510 | # Double any \ or $. | |
511 | echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed | |
512 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
513 | rm -f conftestsed | |
514 | fi | |
515 | test "$program_prefix" != NONE && | |
516 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
517 | # Use a double $ so make ignores it. | |
518 | test "$program_suffix" != NONE && | |
519 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
520 | ||
521 | # sed with no file args requires a program. | |
522 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
523 | ||
524 | ||
525 | # Find a good install program. We prefer a C program (faster), | |
526 | # so one script is as good as another. But avoid the broken or | |
527 | # incompatible versions: | |
528 | # SysV /etc/install, /usr/sbin/install | |
529 | # SunOS /usr/etc/install | |
530 | # IRIX /sbin/install | |
531 | # AIX /bin/install | |
532 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
533 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
534 | # ./install, which can be erroneously created by make from ./install.sh. | |
535 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
536 | if test -z "$INSTALL"; then | |
537 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
538 | echo $ac_n "(cached) $ac_c" 1>&6 | |
539 | else | |
540 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
541 | for ac_dir in $PATH; do | |
542 | # Account for people who put trailing slashes in PATH elements. | |
543 | case "$ac_dir/" in | |
544 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
545 | *) | |
546 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
547 | for ac_prog in ginstall installbsd scoinst install; do | |
548 | if test -f $ac_dir/$ac_prog; then | |
549 | if test $ac_prog = install && | |
550 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
551 | # AIX install. It has an incompatible calling convention. | |
552 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
553 | : | |
554 | else | |
555 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
556 | break 2 | |
557 | fi | |
558 | fi | |
559 | done | |
560 | ;; | |
561 | esac | |
562 | done | |
563 | IFS="$ac_save_ifs" | |
564 | # As a last resort, use the slow shell script. | |
565 | test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh" | |
566 | fi | |
567 | INSTALL="$ac_cv_path_install" | |
568 | fi | |
569 | echo "$ac_t""$INSTALL" 1>&6 | |
570 | ||
571 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
572 | # It thinks the first close brace ends the variable substitution. | |
573 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
574 | ||
575 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
576 | ||
577 | ||
578 | # Map target cpu into the config cpu subdirectory name. | |
579 | # The default is $target_cpu. | |
580 | case "${target_cpu}" in | |
581 | alpha) gdb_target_cpu=alpha ;; | |
582 | c[12]) gdb_target_cpu=convex ;; | |
583 | hppa*) gdb_target_cpu=pa ;; | |
584 | i[345]86) gdb_target_cpu=i386 ;; | |
585 | m68*) gdb_target_cpu=m68k ;; | |
586 | np1) gdb_target_cpu=gould ;; | |
587 | pn) gdb_target_cpu=gould ;; | |
588 | pyramid) gdb_target_cpu=pyr ;; | |
589 | sparc*) gdb_target_cpu=sparc ;; | |
590 | *) gdb_target_cpu=$target_cpu ;; | |
591 | esac | |
592 | ||
593 | target_makefile_frag=${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt | |
594 | if ! -f ${target_makefile_frag} ; then | |
595 | { echo "configure: error: "*** GDBSERVE does not support target ${target}"" 1>&2; exit 1; } | |
596 | fi | |
597 | ||
598 | target_makefile_frag_path=$target_makefile_frag | |
599 | ||
600 | ||
601 | ||
602 | cpufile=`sed -n ' | |
603 | s/CPU_FILE *= *\(^ *\)/\1/p | |
604 | ' ${target_makefile_frag} | |
605 | ||
606 | files= | |
607 | links= | |
608 | rm -f cpu.h | |
609 | if "${cpufile}" != "" ; then | |
610 | files="${files} ${cpufile}.h" | |
611 | links="${links} cpu.h" | |
612 | fi | |
613 | ||
614 | ||
615 | trap '' 1 2 15 | |
616 | cat > confcache <<\EOF | |
617 | # This file is a shell script that caches the results of configure | |
618 | # tests run on this system so they can be shared between configure | |
619 | # scripts and configure runs. It is not useful on other systems. | |
620 | # If it contains results you don't want to keep, you may remove or edit it. | |
621 | # | |
622 | # By default, configure uses ./config.cache as the cache file, | |
623 | # creating it if it does not exist already. You can give configure | |
624 | # the --cache-file=FILE option to use a different cache file; that is | |
625 | # what configure does when it calls configure scripts in | |
626 | # subdirectories, so they share the cache. | |
627 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
628 | # config.status only pays attention to the cache file if you give it the | |
629 | # --recheck option to rerun configure. | |
630 | # | |
631 | EOF | |
632 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
633 | # and sets the high bit in the cache file unless we assign to the vars. | |
634 | (set) 2>&1 | | |
635 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ | |
636 | >> confcache | |
637 | if cmp -s $cache_file confcache; then | |
638 | : | |
639 | else | |
640 | if test -w $cache_file; then | |
641 | echo "updating cache $cache_file" | |
642 | cat confcache > $cache_file | |
643 | else | |
644 | echo "not updating unwritable cache $cache_file" | |
645 | fi | |
646 | fi | |
647 | rm -f confcache | |
648 | ||
649 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
650 | ||
651 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
652 | # Let make expand exec_prefix. | |
653 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
654 | ||
655 | # Any assignment to VPATH causes Sun make to only execute | |
656 | # the first set of double-colon rules, so remove it if not needed. | |
657 | # If there is a colon in the path, we need to keep it. | |
658 | if test "x$srcdir" = x.; then | |
659 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
660 | fi | |
661 | ||
662 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
663 | ||
664 | # Transform confdefs.h into DEFS. | |
665 | # Protect against shell expansion while executing Makefile rules. | |
666 | # Protect against Makefile macro expansion. | |
667 | cat > conftest.defs <<\EOF | |
668 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g | |
669 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
670 | s%\[%\\&%g | |
671 | s%\]%\\&%g | |
672 | s%\$%$$%g | |
673 | EOF | |
674 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
675 | rm -f conftest.defs | |
676 | ||
677 | ||
678 | # Without the "./", some shells look in PATH for config.status. | |
679 | : ${CONFIG_STATUS=./config.status} | |
680 | ||
681 | echo creating $CONFIG_STATUS | |
682 | rm -f $CONFIG_STATUS | |
683 | cat > $CONFIG_STATUS <<EOF | |
684 | #! /bin/sh | |
685 | # Generated automatically by configure. | |
686 | # Run this file to recreate the current configuration. | |
687 | # This directory was configured as follows, | |
688 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
689 | # | |
690 | # $0 $ac_configure_args | |
691 | # | |
692 | # Compiler output produced by configure, useful for debugging | |
693 | # configure, is in ./config.log if it exists. | |
694 | ||
695 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
696 | for ac_option | |
697 | do | |
698 | case "\$ac_option" in | |
699 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
700 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
701 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
702 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
703 | echo "$CONFIG_STATUS generated by autoconf version 2.3" | |
704 | exit 0 ;; | |
705 | -help | --help | --hel | --he | --h) | |
706 | echo "\$ac_cs_usage"; exit 0 ;; | |
707 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
708 | esac | |
709 | done | |
710 | ||
711 | ac_given_srcdir=$srcdir | |
712 | ac_given_INSTALL="$INSTALL" | |
713 | ||
714 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
715 | ||
716 | # Protect against being on the right side of a sed subst in config.status. | |
717 | sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; | |
718 | s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF | |
719 | $ac_vpsub | |
720 | $extrasub | |
721 | s%@CFLAGS@%$CFLAGS%g | |
722 | s%@CPPFLAGS@%$CPPFLAGS%g | |
723 | s%@CXXFLAGS@%$CXXFLAGS%g | |
724 | s%@DEFS@%$DEFS%g | |
725 | s%@LDFLAGS@%$LDFLAGS%g | |
726 | s%@LIBS@%$LIBS%g | |
727 | s%@exec_prefix@%$exec_prefix%g | |
728 | s%@prefix@%$prefix%g | |
729 | s%@program_transform_name@%$program_transform_name%g | |
730 | s%@host@%$host%g | |
731 | s%@host_alias@%$host_alias%g | |
732 | s%@host_cpu@%$host_cpu%g | |
733 | s%@host_vendor@%$host_vendor%g | |
734 | s%@host_os@%$host_os%g | |
735 | s%@target@%$target%g | |
736 | s%@target_alias@%$target_alias%g | |
737 | s%@target_cpu@%$target_cpu%g | |
738 | s%@target_vendor@%$target_vendor%g | |
739 | s%@target_os@%$target_os%g | |
740 | s%@build@%$build%g | |
741 | s%@build_alias@%$build_alias%g | |
742 | s%@build_cpu@%$build_cpu%g | |
743 | s%@build_vendor@%$build_vendor%g | |
744 | s%@build_os@%$build_os%g | |
745 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
746 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
747 | s%@target_makefile_frag_path@%$target_makefile_frag_path%g | |
748 | /@target_makefile_frag@/r $target_makefile_frag | |
749 | s%@target_makefile_frag@%%g | |
750 | ||
751 | CEOF | |
752 | EOF | |
753 | cat >> $CONFIG_STATUS <<EOF | |
754 | ||
755 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
756 | EOF | |
757 | cat >> $CONFIG_STATUS <<\EOF | |
758 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
759 | # Support "outfile[:infile]", defaulting infile="outfile.in". | |
760 | case "$ac_file" in | |
761 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
762 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
763 | *) ac_file_in="${ac_file}.in" ;; | |
764 | esac | |
765 | ||
766 | # Adjust relative srcdir, etc. for subdirectories. | |
767 | ||
768 | # Remove last slash and all that follows it. Not all systems have dirname. | |
769 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
770 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
771 | # The file is in a subdirectory. | |
772 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
773 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
774 | # A "../" for each directory in $ac_dir_suffix. | |
775 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
776 | else | |
777 | ac_dir_suffix= ac_dots= | |
778 | fi | |
779 | ||
780 | case "$ac_given_srcdir" in | |
781 | .) srcdir=. | |
782 | if test -z "$ac_dots"; then top_srcdir=. | |
783 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
784 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
785 | *) # Relative path. | |
786 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
787 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
788 | esac | |
789 | ||
790 | case "$ac_given_INSTALL" in | |
791 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
792 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
793 | esac | |
794 | echo creating "$ac_file" | |
795 | rm -f "$ac_file" | |
796 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
797 | case "$ac_file" in | |
798 | *Makefile*) ac_comsub="1i\\ | |
799 | # $configure_input" ;; | |
800 | *) ac_comsub= ;; | |
801 | esac | |
802 | sed -e "$ac_comsub | |
803 | s%@configure_input@%$configure_input%g | |
804 | s%@srcdir@%$srcdir%g | |
805 | s%@top_srcdir@%$top_srcdir%g | |
806 | s%@INSTALL@%$INSTALL%g | |
807 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file | |
808 | fi; done | |
809 | rm -f conftest.subs | |
810 | ||
811 | EOF | |
812 | ||
813 | cat >> $CONFIG_STATUS <<EOF | |
814 | ac_sources="$files" | |
815 | ac_dests="$links" | |
816 | EOF | |
817 | ||
818 | cat >> $CONFIG_STATUS <<\EOF | |
819 | srcdir=$ac_given_srcdir | |
820 | while test -n "$ac_sources"; do | |
821 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
822 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
823 | ||
824 | echo "linking $srcdir/$ac_source to $ac_dest" | |
825 | ||
826 | if test ! -r $srcdir/$ac_source; then | |
827 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
828 | fi | |
829 | rm -f $ac_dest | |
830 | ||
831 | # Make relative symlinks. | |
832 | # Remove last slash and all that follows it. Not all systems have dirname. | |
833 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
834 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
835 | # The dest file is in a subdirectory. | |
836 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
837 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
838 | # A "../" for each directory in $ac_dest_dir_suffix. | |
839 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
840 | else | |
841 | ac_dest_dir_suffix= ac_dots= | |
842 | fi | |
843 | ||
844 | case "$srcdir" in | |
845 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
846 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
847 | esac | |
848 | ||
849 | # Make a symlink if possible; otherwise try a hard link. | |
850 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
851 | ln $srcdir/$ac_source $ac_dest; then : | |
852 | else | |
853 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
854 | fi | |
855 | done | |
856 | ||
857 | ||
858 | exit 0 | |
859 | EOF | |
860 | chmod +x $CONFIG_STATUS | |
861 | rm -fr confdefs* $ac_clean_files | |
862 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
863 | ||
864 |