Merging the Tracepoint changes back into the Trunk:
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
c62d1274
ILT
1#! /bin/sh
2
2ce30166
GN
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304# Do all the work for Automake. This macro actually does too much --
305# some checks are only needed if your package does certain things.
306# But this isn't really a big deal.
307
308# serial 1
309
310
311
312
313
314# serial 1
315
316
317
318#
319# Check to make sure that the build environment is sane.
320#
321
322
323
324
325
326
327# serial 25 AM_PROG_LIBTOOL
328
329
330# AM_ENABLE_SHARED - implement the --enable-shared flag
331# Usage: AM_ENABLE_SHARED[(DEFAULT)]
332# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
333# `yes'.
334
335
336# AM_DISABLE_SHARED - set the default shared flag to --disable-shared
337
338
339# AM_DISABLE_STATIC - set the default static flag to --disable-static
340
341
342# AM_ENABLE_STATIC - implement the --enable-static flag
343# Usage: AM_ENABLE_STATIC[(DEFAULT)]
344# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
345# `yes'.
346
347
348
349# AM_PROG_LD - find the path to the GNU or non-GNU linker
350
351
352
353
354# AM_PROG_NM - find the path to a BSD-compatible name lister
355
356
357# AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
358
359
360# Like AC_CONFIG_HEADER, but automatically create stamp file.
361
362
363
364# Add --enable-maintainer-mode option to configure.
365# From Jim Meyering
366
367# serial 1
368
369
370
371# Check to see if we're running under Cygwin32, without using
372# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
373# Otherwise set it to "no".
374
375
376
377# Check to see if we're running under Win32, without using
378# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
379# Otherwise set it to "".
380
381
382
383# Check to see if we're running under Mingw, without using
384# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes".
385# Otherwise set it to "no".
386
387
388
389# This file is derived from `gettext.m4'. The difference is that the
390# included macros assume Cygnus-style source and build trees.
391
392# Macro to add for using GNU gettext.
393# Ulrich Drepper <drepper@cygnus.com>, 1995.
394#
395# This file file be copied and used freely without restrictions. It can
396# be used in projects which are not available under the GNU Public License
397# but which still want to provide support for the GNU gettext functionality.
398# Please note that the actual code is *not* freely available.
399
400# serial 3
401
402
403
404
405
406# Search path for a program which passes the given test.
407# Ulrich Drepper <drepper@cygnus.com>, 1996.
408#
409# This file file be copied and used freely without restrictions. It can
410# be used in projects which are not available under the GNU Public License
411# but which still want to provide support for the GNU gettext functionality.
412# Please note that the actual code is *not* freely available.
413
414# serial 1
415
416
417
418# Check whether LC_MESSAGES is available in <locale.h>.
419# Ulrich Drepper <drepper@cygnus.com>, 1995.
420#
421# This file file be copied and used freely without restrictions. It can
422# be used in projects which are not available under the GNU Public License
423# but which still want to provide support for the GNU gettext functionality.
424# Please note that the actual code is *not* freely available.
425
426# serial 1
427
428
429
430# Define a conditional.
431
432
433
c62d1274 434# Guess values for system-dependent variables and create Makefiles.
2ce30166 435# Generated automatically using autoconf version 2.12.2
e3659cbf 436# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
c62d1274
ILT
437#
438# This configure script is free software; the Free Software Foundation
439# gives unlimited permission to copy, distribute and modify it.
440
441# Defaults:
442ac_help=
443ac_default_prefix=/usr/local
444# Any additions from configure.in:
445ac_help="$ac_help
69ad8cac 446 --enable-shared[=PKGS] build shared libraries [default=no]"
1daed53f 447ac_help="$ac_help
69ad8cac 448 --enable-static[=PKGS] build static libraries [default=yes]"
e0bf1022 449ac_help="$ac_help
bd4a69c3 450 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
1daed53f
ILT
451ac_help="$ac_help
452 --enable-targets alternative target configurations"
e0bf1022
ILT
453ac_help="$ac_help
454 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
784492b5
ILT
455ac_help="$ac_help
456 --enable-maintainer-mode enable make rules and dependencies not useful
457 (and sometimes confusing) to the casual installer"
072aa625
NC
458ac_help="$ac_help
459 --disable-nls do not use Native Language Support"
460ac_help="$ac_help
461 --with-included-gettext use the GNU gettext library included here"
69ad8cac 462ac_help="$ac_help
2ce30166 463 --enable-cgen-maint[=dir] build cgen generated files"
c62d1274
ILT
464
465# Initialize some variables set by options.
466# The variables have the same names as the options, with
467# dashes changed to underlines.
468build=NONE
469cache_file=./config.cache
470exec_prefix=NONE
471host=NONE
472no_create=
473nonopt=NONE
474no_recursion=
475prefix=NONE
476program_prefix=NONE
477program_suffix=NONE
478program_transform_name=s,x,x,
479silent=
480site=
481srcdir=
482target=NONE
483verbose=
484x_includes=NONE
485x_libraries=NONE
00103dfa
ILT
486bindir='${exec_prefix}/bin'
487sbindir='${exec_prefix}/sbin'
488libexecdir='${exec_prefix}/libexec'
489datadir='${prefix}/share'
490sysconfdir='${prefix}/etc'
491sharedstatedir='${prefix}/com'
492localstatedir='${prefix}/var'
493libdir='${exec_prefix}/lib'
494includedir='${prefix}/include'
495oldincludedir='/usr/include'
496infodir='${prefix}/info'
497mandir='${prefix}/man'
c62d1274
ILT
498
499# Initialize some other variables.
500subdirs=
00103dfa 501MFLAGS= MAKEFLAGS=
cd66558c 502SHELL=${CONFIG_SHELL-/bin/sh}
9c03036a
DE
503# Maximum number of lines to put in a shell here document.
504ac_max_here_lines=12
c62d1274
ILT
505
506ac_prev=
507for ac_option
508do
509
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 case "$ac_option" in
518 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
519 *) ac_optarg= ;;
520 esac
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case "$ac_option" in
525
00103dfa
ILT
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir="$ac_optarg" ;;
530
531 -build | --build | --buil | --bui | --bu)
c62d1274 532 ac_prev=build ;;
00103dfa 533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c62d1274
ILT
534 build="$ac_optarg" ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file="$ac_optarg" ;;
542
00103dfa
ILT
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir="$ac_optarg" ;;
548
c62d1274
ILT
549 -disable-* | --disable-*)
550 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
551 # Reject names that are not valid shell variable names.
552 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
553 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
554 fi
555 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
556 eval "enable_${ac_feature}=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
560 # Reject names that are not valid shell variable names.
561 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
562 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
563 fi
564 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
565 case "$ac_option" in
566 *=*) ;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_${ac_feature}='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix="$ac_optarg" ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he)
585 # Omit some internal or obsolete options to make the list less imposing.
586 # This message is too long to be a string in the A/UX 3.1 sh.
587 cat << EOF
588Usage: configure [options] [host]
589Options: [defaults in brackets after descriptions]
590Configuration:
591 --cache-file=FILE cache test results in FILE
592 --help print this message
593 --no-create do not create output files
594 --quiet, --silent do not print \`checking...' messages
595 --version print the version of autoconf that created configure
596Directory and file names:
597 --prefix=PREFIX install architecture-independent files in PREFIX
598 [$ac_default_prefix]
00103dfa 599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
c62d1274 600 [same as prefix]
00103dfa
ILT
601 --bindir=DIR user executables in DIR [EPREFIX/bin]
602 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
603 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
604 --datadir=DIR read-only architecture-independent data in DIR
605 [PREFIX/share]
606 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
607 --sharedstatedir=DIR modifiable architecture-independent data in DIR
608 [PREFIX/com]
609 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
610 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
611 --includedir=DIR C header files in DIR [PREFIX/include]
612 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
613 --infodir=DIR info documentation in DIR [PREFIX/info]
614 --mandir=DIR man documentation in DIR [PREFIX/man]
c62d1274
ILT
615 --srcdir=DIR find the sources in DIR [configure dir or ..]
616 --program-prefix=PREFIX prepend PREFIX to installed program names
617 --program-suffix=SUFFIX append SUFFIX to installed program names
00103dfa
ILT
618 --program-transform-name=PROGRAM
619 run sed PROGRAM on installed program names
620EOF
621 cat << EOF
c62d1274
ILT
622Host type:
623 --build=BUILD configure for building on BUILD [BUILD=HOST]
624 --host=HOST configure for HOST [guessed]
625 --target=TARGET configure for TARGET [TARGET=HOST]
626Features and packages:
627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
631 --x-includes=DIR X include files are in DIR
632 --x-libraries=DIR X library files are in DIR
c62d1274 633EOF
00103dfa
ILT
634 if test -n "$ac_help"; then
635 echo "--enable and --with options recognized:$ac_help"
636 fi
c62d1274
ILT
637 exit 0 ;;
638
639 -host | --host | --hos | --ho)
640 ac_prev=host ;;
641 -host=* | --host=* | --hos=* | --ho=*)
642 host="$ac_optarg" ;;
643
00103dfa
ILT
644 -includedir | --includedir | --includedi | --included | --include \
645 | --includ | --inclu | --incl | --inc)
646 ac_prev=includedir ;;
647 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
648 | --includ=* | --inclu=* | --incl=* | --inc=*)
649 includedir="$ac_optarg" ;;
650
651 -infodir | --infodir | --infodi | --infod | --info | --inf)
652 ac_prev=infodir ;;
653 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
654 infodir="$ac_optarg" ;;
655
656 -libdir | --libdir | --libdi | --libd)
657 ac_prev=libdir ;;
658 -libdir=* | --libdir=* | --libdi=* | --libd=*)
659 libdir="$ac_optarg" ;;
660
661 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
662 | --libexe | --libex | --libe)
663 ac_prev=libexecdir ;;
664 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
665 | --libexe=* | --libex=* | --libe=*)
666 libexecdir="$ac_optarg" ;;
667
668 -localstatedir | --localstatedir | --localstatedi | --localstated \
669 | --localstate | --localstat | --localsta | --localst \
670 | --locals | --local | --loca | --loc | --lo)
671 ac_prev=localstatedir ;;
672 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
673 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
674 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
675 localstatedir="$ac_optarg" ;;
676
677 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
678 ac_prev=mandir ;;
679 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
680 mandir="$ac_optarg" ;;
681
c62d1274
ILT
682 -nfp | --nfp | --nf)
683 # Obsolete; use --without-fp.
684 with_fp=no ;;
685
686 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
687 | --no-cr | --no-c)
688 no_create=yes ;;
689
690 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
691 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
692 no_recursion=yes ;;
693
00103dfa
ILT
694 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
695 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
696 | --oldin | --oldi | --old | --ol | --o)
697 ac_prev=oldincludedir ;;
698 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
699 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
700 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
701 oldincludedir="$ac_optarg" ;;
702
c62d1274
ILT
703 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
704 ac_prev=prefix ;;
705 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
706 prefix="$ac_optarg" ;;
707
708 -program-prefix | --program-prefix | --program-prefi | --program-pref \
709 | --program-pre | --program-pr | --program-p)
710 ac_prev=program_prefix ;;
711 -program-prefix=* | --program-prefix=* | --program-prefi=* \
712 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
713 program_prefix="$ac_optarg" ;;
714
715 -program-suffix | --program-suffix | --program-suffi | --program-suff \
716 | --program-suf | --program-su | --program-s)
717 ac_prev=program_suffix ;;
718 -program-suffix=* | --program-suffix=* | --program-suffi=* \
719 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
720 program_suffix="$ac_optarg" ;;
721
722 -program-transform-name | --program-transform-name \
723 | --program-transform-nam | --program-transform-na \
724 | --program-transform-n | --program-transform- \
725 | --program-transform | --program-transfor \
726 | --program-transfo | --program-transf \
727 | --program-trans | --program-tran \
728 | --progr-tra | --program-tr | --program-t)
729 ac_prev=program_transform_name ;;
730 -program-transform-name=* | --program-transform-name=* \
731 | --program-transform-nam=* | --program-transform-na=* \
732 | --program-transform-n=* | --program-transform-=* \
733 | --program-transform=* | --program-transfor=* \
734 | --program-transfo=* | --program-transf=* \
735 | --program-trans=* | --program-tran=* \
736 | --progr-tra=* | --program-tr=* | --program-t=*)
737 program_transform_name="$ac_optarg" ;;
738
739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
740 | -silent | --silent | --silen | --sile | --sil)
741 silent=yes ;;
742
00103dfa
ILT
743 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
744 ac_prev=sbindir ;;
745 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
746 | --sbi=* | --sb=*)
747 sbindir="$ac_optarg" ;;
748
749 -sharedstatedir | --sharedstatedir | --sharedstatedi \
750 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
751 | --sharedst | --shareds | --shared | --share | --shar \
752 | --sha | --sh)
753 ac_prev=sharedstatedir ;;
754 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
755 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
756 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
757 | --sha=* | --sh=*)
758 sharedstatedir="$ac_optarg" ;;
759
c62d1274
ILT
760 -site | --site | --sit)
761 ac_prev=site ;;
762 -site=* | --site=* | --sit=*)
763 site="$ac_optarg" ;;
764
765 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
766 ac_prev=srcdir ;;
767 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
768 srcdir="$ac_optarg" ;;
769
00103dfa
ILT
770 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
771 | --syscon | --sysco | --sysc | --sys | --sy)
772 ac_prev=sysconfdir ;;
773 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
774 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
775 sysconfdir="$ac_optarg" ;;
776
c62d1274
ILT
777 -target | --target | --targe | --targ | --tar | --ta | --t)
778 ac_prev=target ;;
779 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
780 target="$ac_optarg" ;;
781
782 -v | -verbose | --verbose | --verbos | --verbo | --verb)
783 verbose=yes ;;
784
785 -version | --version | --versio | --versi | --vers)
2ce30166 786 echo "configure generated by autoconf version 2.12.2"
c62d1274
ILT
787 exit 0 ;;
788
789 -with-* | --with-*)
790 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
791 # Reject names that are not valid shell variable names.
792 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
793 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
794 fi
795 ac_package=`echo $ac_package| sed 's/-/_/g'`
796 case "$ac_option" in
797 *=*) ;;
798 *) ac_optarg=yes ;;
799 esac
800 eval "with_${ac_package}='$ac_optarg'" ;;
801
802 -without-* | --without-*)
803 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
804 # Reject names that are not valid shell variable names.
805 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
806 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
807 fi
808 ac_package=`echo $ac_package| sed 's/-/_/g'`
809 eval "with_${ac_package}=no" ;;
810
811 --x)
812 # Obsolete; use --with-x.
813 with_x=yes ;;
814
815 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
816 | --x-incl | --x-inc | --x-in | --x-i)
817 ac_prev=x_includes ;;
818 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
819 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
820 x_includes="$ac_optarg" ;;
821
822 -x-libraries | --x-libraries | --x-librarie | --x-librari \
823 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
824 ac_prev=x_libraries ;;
825 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
826 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
827 x_libraries="$ac_optarg" ;;
828
829 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
830 ;;
831
00103dfa 832 *)
c62d1274
ILT
833 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
834 echo "configure: warning: $ac_option: invalid host type" 1>&2
835 fi
836 if test "x$nonopt" != xNONE; then
837 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
838 fi
839 nonopt="$ac_option"
840 ;;
841
842 esac
843done
844
845if test -n "$ac_prev"; then
846 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
847fi
848
849trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
850
851# File descriptor usage:
852# 0 standard input
853# 1 file creation
854# 2 errors and warnings
855# 3 some systems may open it to /dev/tty
856# 4 used on the Kubota Titan
857# 6 checking for... messages and results
858# 5 compiler messages saved in config.log
859if test "$silent" = yes; then
860 exec 6>/dev/null
861else
862 exec 6>&1
863fi
864exec 5>./config.log
865
866echo "\
867This file contains any messages produced by compilers while
868running configure, to aid debugging if configure makes a mistake.
869" 1>&5
870
871# Strip out --no-create and --no-recursion so they do not pile up.
872# Also quote any args containing shell metacharacters.
873ac_configure_args=
874for ac_arg
875do
876 case "$ac_arg" in
877 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
878 | --no-cr | --no-c) ;;
879 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
880 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
881 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
882 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
883 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
884 esac
885done
886
887# NLS nuisances.
9c03036a
DE
888# Only set these to C if already set. These must not be set unconditionally
889# because not all systems understand e.g. LANG=C (notably SCO).
890# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
891# Non-C LC_CTYPE values break the ctype check.
c62d1274 892if test "${LANG+set}" = set; then LANG=C; export LANG; fi
9c03036a
DE
893if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
894if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
895if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
c62d1274
ILT
896
897# confdefs.h avoids OS command line length limits that DEFS can exceed.
898rm -rf conftest* confdefs.h
899# AIX cpp loses on an empty file, so make sure it contains at least a newline.
900echo > confdefs.h
901
902# A filename unique to this package, relative to the directory that
903# configure is in, which we can look for to find out if srcdir is correct.
904ac_unique_file=z8k-dis.c
905
906# Find the source files, if location was not specified.
907if test -z "$srcdir"; then
908 ac_srcdir_defaulted=yes
909 # Try the directory containing this script, then its parent.
910 ac_prog=$0
911 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
912 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
913 srcdir=$ac_confdir
914 if test ! -r $srcdir/$ac_unique_file; then
915 srcdir=..
916 fi
917else
918 ac_srcdir_defaulted=no
919fi
920if test ! -r $srcdir/$ac_unique_file; then
921 if test "$ac_srcdir_defaulted" = yes; then
922 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
923 else
924 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
925 fi
926fi
927srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
928
929# Prefer explicitly selected file to automatically selected ones.
930if test -z "$CONFIG_SITE"; then
931 if test "x$prefix" != xNONE; then
932 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
933 else
934 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
935 fi
936fi
937for ac_site_file in $CONFIG_SITE; do
938 if test -r "$ac_site_file"; then
939 echo "loading site script $ac_site_file"
940 . "$ac_site_file"
941 fi
942done
943
1daed53f
ILT
944if test -r "$cache_file"; then
945 echo "loading cache $cache_file"
946 . $cache_file
947else
948 echo "creating cache $cache_file"
949 > $cache_file
950fi
951
952ac_ext=c
953# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
954ac_cpp='$CPP $CPPFLAGS'
955ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2ce30166 956ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1daed53f
ILT
957cross_compiling=$ac_cv_prog_cc_cross
958
2ce30166
GN
959ac_exeext=
960ac_objext=o
1daed53f
ILT
961if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
962 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
963 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
964 ac_n= ac_c='
965' ac_t=' '
966 else
967 ac_n=-n ac_c= ac_t=
968 fi
969else
970 ac_n= ac_c='\c' ac_t=
971fi
972
973
974
975ac_aux_dir=
976for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
977 if test -f $ac_dir/install-sh; then
978 ac_aux_dir=$ac_dir
979 ac_install_sh="$ac_aux_dir/install-sh -c"
980 break
981 elif test -f $ac_dir/install.sh; then
982 ac_aux_dir=$ac_dir
983 ac_install_sh="$ac_aux_dir/install.sh -c"
984 break
985 fi
986done
987if test -z "$ac_aux_dir"; then
988 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
989fi
990ac_config_guess=$ac_aux_dir/config.guess
991ac_config_sub=$ac_aux_dir/config.sub
992ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
993
994
995# Do some error checking and defaulting for the host and target type.
996# The inputs are:
997# configure --host=HOST --target=TARGET --build=BUILD NONOPT
998#
999# The rules are:
1000# 1. You are not allowed to specify --host, --target, and nonopt at the
1001# same time.
1002# 2. Host defaults to nonopt.
1003# 3. If nonopt is not specified, then host defaults to the current host,
1004# as determined by config.guess.
1005# 4. Target and build default to nonopt.
1006# 5. If nonopt is not specified, then target and build default to host.
1007
1008# The aliases save the names the user supplied, while $host etc.
1009# will get canonicalized.
1010case $host---$target---$nonopt in
1011NONE---*---* | *---NONE---* | *---*---NONE) ;;
1012*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1013esac
1014
1015
1016# Make sure we can run config.sub.
a3515171 1017if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1daed53f
ILT
1018else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019fi
1020
1021echo $ac_n "checking host system type""... $ac_c" 1>&6
2ce30166 1022echo "configure:1023: checking host system type" >&5
1daed53f
ILT
1023
1024host_alias=$host
1025case "$host_alias" in
1026NONE)
1027 case $nonopt in
1028 NONE)
a3515171 1029 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1daed53f
ILT
1030 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1031 fi ;;
1032 *) host_alias=$nonopt ;;
1033 esac ;;
1034esac
1035
a3515171 1036host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1daed53f
ILT
1037host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040echo "$ac_t""$host" 1>&6
1041
1042echo $ac_n "checking target system type""... $ac_c" 1>&6
2ce30166 1043echo "configure:1044: checking target system type" >&5
1daed53f
ILT
1044
1045target_alias=$target
1046case "$target_alias" in
1047NONE)
1048 case $nonopt in
1049 NONE) target_alias=$host_alias ;;
1050 *) target_alias=$nonopt ;;
1051 esac ;;
1052esac
1053
a3515171 1054target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1daed53f
ILT
1055target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058echo "$ac_t""$target" 1>&6
1059
1060echo $ac_n "checking build system type""... $ac_c" 1>&6
2ce30166 1061echo "configure:1062: checking build system type" >&5
1daed53f
ILT
1062
1063build_alias=$build
1064case "$build_alias" in
1065NONE)
1066 case $nonopt in
1067 NONE) build_alias=$host_alias ;;
1068 *) build_alias=$nonopt ;;
1069 esac ;;
1070esac
1071
a3515171 1072build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1daed53f
ILT
1073build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076echo "$ac_t""$build" 1>&6
1077
1078test "$host_alias" != "$target_alias" &&
1079 test "$program_prefix$program_suffix$program_transform_name" = \
1080 NONENONEs,x,x, &&
1081 program_prefix=${target_alias}-
1082
784492b5
ILT
1083# Extract the first word of "gcc", so it can be a program name with args.
1084set dummy gcc; ac_word=$2
1085echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 1086echo "configure:1087: checking for $ac_word" >&5
784492b5
ILT
1087if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1089else
1090 if test -n "$CC"; then
1091 ac_cv_prog_CC="$CC" # Let the user override the test.
1092else
2ce30166
GN
1093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1094 ac_dummy="$PATH"
1095 for ac_dir in $ac_dummy; do
784492b5
ILT
1096 test -z "$ac_dir" && ac_dir=.
1097 if test -f $ac_dir/$ac_word; then
1098 ac_cv_prog_CC="gcc"
1099 break
1100 fi
1101 done
1102 IFS="$ac_save_ifs"
1103fi
1104fi
1105CC="$ac_cv_prog_CC"
1106if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1108else
1109 echo "$ac_t""no" 1>&6
1110fi
1111
1112if test -z "$CC"; then
1113 # Extract the first word of "cc", so it can be a program name with args.
1114set dummy cc; ac_word=$2
1115echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 1116echo "configure:1117: checking for $ac_word" >&5
784492b5
ILT
1117if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1119else
1120 if test -n "$CC"; then
1121 ac_cv_prog_CC="$CC" # Let the user override the test.
1122else
2ce30166 1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
784492b5 1124 ac_prog_rejected=no
2ce30166
GN
1125 ac_dummy="$PATH"
1126 for ac_dir in $ac_dummy; do
784492b5
ILT
1127 test -z "$ac_dir" && ac_dir=.
1128 if test -f $ac_dir/$ac_word; then
1129 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1130 ac_prog_rejected=yes
1131 continue
1132 fi
1133 ac_cv_prog_CC="cc"
1134 break
1135 fi
1136 done
1137 IFS="$ac_save_ifs"
1138if test $ac_prog_rejected = yes; then
1139 # We found a bogon in the path, so make sure we never use it.
1140 set dummy $ac_cv_prog_CC
1141 shift
1142 if test $# -gt 0; then
1143 # We chose a different compiler from the bogus one.
1144 # However, it has the same basename, so the bogon will be chosen
1145 # first if we set CC to just the basename; use the full file name.
1146 shift
1147 set dummy "$ac_dir/$ac_word" "$@"
1148 shift
1149 ac_cv_prog_CC="$@"
1150 fi
1151fi
1152fi
1153fi
1154CC="$ac_cv_prog_CC"
1155if test -n "$CC"; then
1156 echo "$ac_t""$CC" 1>&6
1157else
1158 echo "$ac_t""no" 1>&6
1159fi
1160
2ce30166
GN
1161 if test -z "$CC"; then
1162 case "`uname -s`" in
1163 *win32* | *WIN32*)
1164 # Extract the first word of "cl", so it can be a program name with args.
1165set dummy cl; ac_word=$2
1166echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167echo "configure:1168: checking for $ac_word" >&5
1168if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1170else
1171 if test -n "$CC"; then
1172 ac_cv_prog_CC="$CC" # Let the user override the test.
1173else
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1175 ac_dummy="$PATH"
1176 for ac_dir in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir=.
1178 if test -f $ac_dir/$ac_word; then
1179 ac_cv_prog_CC="cl"
1180 break
1181 fi
1182 done
1183 IFS="$ac_save_ifs"
1184fi
1185fi
1186CC="$ac_cv_prog_CC"
1187if test -n "$CC"; then
1188 echo "$ac_t""$CC" 1>&6
1189else
1190 echo "$ac_t""no" 1>&6
1191fi
1192 ;;
1193 esac
1194 fi
784492b5
ILT
1195 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1196fi
1197
1198echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2ce30166 1199echo "configure:1200: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
784492b5
ILT
1200
1201ac_ext=c
1202# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1203ac_cpp='$CPP $CPPFLAGS'
1204ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2ce30166 1205ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
784492b5
ILT
1206cross_compiling=$ac_cv_prog_cc_cross
1207
2ce30166
GN
1208cat > conftest.$ac_ext << EOF
1209
1210#line 1211 "configure"
784492b5 1211#include "confdefs.h"
2ce30166 1212
784492b5
ILT
1213main(){return(0);}
1214EOF
2ce30166 1215if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
784492b5
ILT
1216 ac_cv_prog_cc_works=yes
1217 # If we can't run a trivial program, we are probably using a cross compiler.
1218 if (./conftest; exit) 2>/dev/null; then
1219 ac_cv_prog_cc_cross=no
1220 else
1221 ac_cv_prog_cc_cross=yes
1222 fi
1223else
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1226 ac_cv_prog_cc_works=no
1227fi
1228rm -fr conftest*
2ce30166
GN
1229ac_ext=c
1230# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1231ac_cpp='$CPP $CPPFLAGS'
1232ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1233ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1234cross_compiling=$ac_cv_prog_cc_cross
784492b5
ILT
1235
1236echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1237if test $ac_cv_prog_cc_works = no; then
1238 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1239fi
1240echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2ce30166 1241echo "configure:1242: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784492b5
ILT
1242echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1243cross_compiling=$ac_cv_prog_cc_cross
1244
1245echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2ce30166 1246echo "configure:1247: checking whether we are using GNU C" >&5
784492b5
ILT
1247if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1249else
1250 cat > conftest.c <<EOF
1251#ifdef __GNUC__
1252 yes;
1253#endif
1254EOF
2ce30166 1255if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
784492b5
ILT
1256 ac_cv_prog_gcc=yes
1257else
1258 ac_cv_prog_gcc=no
1259fi
1260fi
1261
1262echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1263
1264if test $ac_cv_prog_gcc = yes; then
1265 GCC=yes
2ce30166
GN
1266else
1267 GCC=
1268fi
1269
1270ac_test_CFLAGS="${CFLAGS+set}"
1271ac_save_CFLAGS="$CFLAGS"
1272CFLAGS=
1273echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1274echo "configure:1275: checking whether ${CC-cc} accepts -g" >&5
784492b5
ILT
1275if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1277else
1278 echo 'void f(){}' > conftest.c
1279if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1280 ac_cv_prog_cc_g=yes
1281else
1282 ac_cv_prog_cc_g=no
1283fi
1284rm -f conftest*
1285
1286fi
1287
1288echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2ce30166
GN
1289if test "$ac_test_CFLAGS" = set; then
1290 CFLAGS="$ac_save_CFLAGS"
1291elif test $ac_cv_prog_cc_g = yes; then
1292 if test "$GCC" = yes; then
784492b5
ILT
1293 CFLAGS="-g -O2"
1294 else
2ce30166 1295 CFLAGS="-g"
784492b5
ILT
1296 fi
1297else
2ce30166
GN
1298 if test "$GCC" = yes; then
1299 CFLAGS="-O2"
1300 else
1301 CFLAGS=
1302 fi
784492b5
ILT
1303fi
1304
1305echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2ce30166 1306echo "configure:1307: checking for POSIXized ISC" >&5
784492b5
ILT
1307if test -d /etc/conf/kconfig.d &&
1308 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1309then
1310 echo "$ac_t""yes" 1>&6
1311 ISC=yes # If later tests want to check for ISC.
1312 cat >> confdefs.h <<\EOF
1313#define _POSIX_SOURCE 1
1314EOF
1315
1316 if test "$GCC" = yes; then
1317 CC="$CC -posix"
1318 else
1319 CC="$CC -Xp"
1320 fi
1321else
1322 echo "$ac_t""no" 1>&6
1323 ISC=
1324fi
1325
1daed53f 1326
ef3c03a4
ILT
1327# We currently only use the version number for the name of any shared
1328# library. For user convenience, we always use the same version
1329# number that BFD is using.
1330BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
1331
1daed53f
ILT
1332# Find a good install program. We prefer a C program (faster),
1333# so one script is as good as another. But avoid the broken or
1334# incompatible versions:
1335# SysV /etc/install, /usr/sbin/install
1336# SunOS /usr/etc/install
1337# IRIX /sbin/install
1338# AIX /bin/install
cd66558c 1339# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1daed53f
ILT
1340# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1341# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1342# ./install, which can be erroneously created by make from ./install.sh.
1343echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2ce30166 1344echo "configure:1345: checking for a BSD compatible install" >&5
1daed53f
ILT
1345if test -z "$INSTALL"; then
1346if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348else
2ce30166 1349 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1daed53f
ILT
1350 for ac_dir in $PATH; do
1351 # Account for people who put trailing slashes in PATH elements.
1352 case "$ac_dir/" in
1353 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1354 *)
1355 # OSF1 and SCO ODT 3.0 have their own names for install.
cd66558c
NC
1356 # Don't use installbsd from OSF since it installs stuff as root
1357 # by default.
1358 for ac_prog in ginstall scoinst install; do
1daed53f
ILT
1359 if test -f $ac_dir/$ac_prog; then
1360 if test $ac_prog = install &&
1361 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1362 # AIX install. It has an incompatible calling convention.
1daed53f
ILT
1363 :
1364 else
1365 ac_cv_path_install="$ac_dir/$ac_prog -c"
1366 break 2
1367 fi
1368 fi
1369 done
1370 ;;
1371 esac
1372 done
1373 IFS="$ac_save_IFS"
1374
1375fi
1376 if test "${ac_cv_path_install+set}" = set; then
1377 INSTALL="$ac_cv_path_install"
1378 else
1379 # As a last resort, use the slow shell script. We don't cache a
1380 # path for INSTALL within a source directory, because that will
1381 # break other packages using the cache if that directory is
1382 # removed, or if the path is relative.
1383 INSTALL="$ac_install_sh"
1384 fi
1385fi
1386echo "$ac_t""$INSTALL" 1>&6
1387
1388# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1389# It thinks the first close brace ends the variable substitution.
1390test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1391
2ce30166
GN
1392test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1393
1daed53f
ILT
1394test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1395
1396
1397test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1398
1daed53f 1399echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
2ce30166 1400echo "configure:1401: checking whether build environment is sane" >&5
1daed53f
ILT
1401# Just in case
1402sleep 1
1403echo timestamp > conftestfile
1404# Do `set' in a subshell so we don't clobber the current shell's
1405# arguments. Must try -L first in case configure is actually a
1406# symlink; some systems play weird games with the mod time of symlinks
1407# (eg FreeBSD returns the mod time of the symlink's containing
1408# directory).
1409if (
1410 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
bd4a69c3 1411 if test "$*" = "X"; then
1daed53f
ILT
1412 # -L didn't work.
1413 set X `ls -t $srcdir/configure conftestfile`
1414 fi
bd4a69c3
ILT
1415 if test "$*" != "X $srcdir/configure conftestfile" \
1416 && test "$*" != "X conftestfile $srcdir/configure"; then
1417
1418 # If neither matched, then we have a broken ls. This can happen
1419 # if, for instance, CONFIG_SHELL is bash and it inherits a
1420 # broken ls alias from the environment. This has actually
1421 # happened. Such a system could not be considered "sane".
1422 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1423alias in your environment" 1>&2; exit 1; }
1424 fi
1425
1daed53f
ILT
1426 test "$2" = conftestfile
1427 )
1428then
1429 # Ok.
1430 :
1431else
1432 { echo "configure: error: newly created file is older than distributed files!
1433Check your system clock" 1>&2; exit 1; }
1434fi
1435rm -f conftest*
1436echo "$ac_t""yes" 1>&6
1437if test "$program_transform_name" = s,x,x,; then
1438 program_transform_name=
1439else
1440 # Double any \ or $. echo might interpret backslashes.
1441 cat <<\EOF_SED > conftestsed
1442s,\\,\\\\,g; s,\$,$$,g
1443EOF_SED
1444 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1445 rm -f conftestsed
1446fi
1447test "$program_prefix" != NONE &&
1448 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1449# Use a double $ so make ignores it.
1450test "$program_suffix" != NONE &&
1451 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1452
1453# sed with no file args requires a program.
1454test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1455
bd4a69c3 1456echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2ce30166 1457echo "configure:1458: checking whether ${MAKE-make} sets \${MAKE}" >&5
bd4a69c3
ILT
1458set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1459if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461else
1462 cat > conftestmake <<\EOF
1463all:
1464 @echo 'ac_maketemp="${MAKE}"'
1465EOF
1466# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1467eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1468if test -n "$ac_maketemp"; then
1469 eval ac_cv_prog_make_${ac_make}_set=yes
1470else
1471 eval ac_cv_prog_make_${ac_make}_set=no
1472fi
1473rm -f conftestmake
1474fi
1475if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1477 SET_MAKE=
1478else
1479 echo "$ac_t""no" 1>&6
1480 SET_MAKE="MAKE=${MAKE-make}"
1481fi
1482
1483
1484PACKAGE=opcodes
1485
1486VERSION=${BFD_VERSION}
1487
1488if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1489 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1490fi
1491cat >> confdefs.h <<EOF
1492#define PACKAGE "$PACKAGE"
1493EOF
1494
1495cat >> confdefs.h <<EOF
1496#define VERSION "$VERSION"
1497EOF
1498
1499
1500
1daed53f
ILT
1501missing_dir=`cd $ac_aux_dir && pwd`
1502echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2ce30166 1503echo "configure:1504: checking for working aclocal" >&5
1daed53f
ILT
1504# Run test in a subshell; some versions of sh will print an error if
1505# an executable is not found, even if stderr is redirected.
1506# Redirect stdin to placate older versions of autoconf. Sigh.
1507if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1508 ACLOCAL=aclocal
1509 echo "$ac_t""found" 1>&6
1510else
1511 ACLOCAL="$missing_dir/missing aclocal"
1512 echo "$ac_t""missing" 1>&6
1513fi
1514
1515echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2ce30166 1516echo "configure:1517: checking for working autoconf" >&5
1daed53f
ILT
1517# Run test in a subshell; some versions of sh will print an error if
1518# an executable is not found, even if stderr is redirected.
1519# Redirect stdin to placate older versions of autoconf. Sigh.
1520if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1521 AUTOCONF=autoconf
1522 echo "$ac_t""found" 1>&6
1523else
1524 AUTOCONF="$missing_dir/missing autoconf"
1525 echo "$ac_t""missing" 1>&6
1526fi
1527
1528echo $ac_n "checking for working automake""... $ac_c" 1>&6
2ce30166 1529echo "configure:1530: checking for working automake" >&5
1daed53f
ILT
1530# Run test in a subshell; some versions of sh will print an error if
1531# an executable is not found, even if stderr is redirected.
1532# Redirect stdin to placate older versions of autoconf. Sigh.
1533if (automake --version) < /dev/null > /dev/null 2>&1; then
1534 AUTOMAKE=automake
1535 echo "$ac_t""found" 1>&6
1536else
1537 AUTOMAKE="$missing_dir/missing automake"
1538 echo "$ac_t""missing" 1>&6
1539fi
1540
1541echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2ce30166 1542echo "configure:1543: checking for working autoheader" >&5
1daed53f
ILT
1543# Run test in a subshell; some versions of sh will print an error if
1544# an executable is not found, even if stderr is redirected.
1545# Redirect stdin to placate older versions of autoconf. Sigh.
1546if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1547 AUTOHEADER=autoheader
1548 echo "$ac_t""found" 1>&6
1549else
1550 AUTOHEADER="$missing_dir/missing autoheader"
1551 echo "$ac_t""missing" 1>&6
1552fi
1553
1554echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2ce30166 1555echo "configure:1556: checking for working makeinfo" >&5
1daed53f
ILT
1556# Run test in a subshell; some versions of sh will print an error if
1557# an executable is not found, even if stderr is redirected.
1558# Redirect stdin to placate older versions of autoconf. Sigh.
1559if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1560 MAKEINFO=makeinfo
1561 echo "$ac_t""found" 1>&6
1562else
1563 MAKEINFO="$missing_dir/missing makeinfo"
1564 echo "$ac_t""missing" 1>&6
1565fi
1566
1daed53f
ILT
1567
1568
cd66558c
NC
1569if test $host != $build; then
1570 ac_tool_prefix=${host_alias}-
1571else
1572 ac_tool_prefix=
1573fi
1574
1575# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1576set dummy ${ac_tool_prefix}ar; ac_word=$2
1577echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 1578echo "configure:1579: checking for $ac_word" >&5
cd66558c
NC
1579if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1581else
1582 if test -n "$AR"; then
1583 ac_cv_prog_AR="$AR" # Let the user override the test.
1584else
2ce30166
GN
1585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1586 ac_dummy="$PATH"
1587 for ac_dir in $ac_dummy; do
cd66558c
NC
1588 test -z "$ac_dir" && ac_dir=.
1589 if test -f $ac_dir/$ac_word; then
1590 ac_cv_prog_AR="${ac_tool_prefix}ar"
1591 break
1592 fi
1593 done
1594 IFS="$ac_save_ifs"
1595 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1596fi
1597fi
1598AR="$ac_cv_prog_AR"
1599if test -n "$AR"; then
1600 echo "$ac_t""$AR" 1>&6
1601else
1602 echo "$ac_t""no" 1>&6
1603fi
1604
1605
1606
1607# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1608set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1609echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 1610echo "configure:1611: checking for $ac_word" >&5
cd66558c
NC
1611if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1613else
1614 if test -n "$RANLIB"; then
1615 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1616else
2ce30166
GN
1617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1618 ac_dummy="$PATH"
1619 for ac_dir in $ac_dummy; do
cd66558c
NC
1620 test -z "$ac_dir" && ac_dir=.
1621 if test -f $ac_dir/$ac_word; then
1622 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1623 break
1624 fi
1625 done
1626 IFS="$ac_save_ifs"
1627fi
1628fi
1629RANLIB="$ac_cv_prog_RANLIB"
1630if test -n "$RANLIB"; then
1631 echo "$ac_t""$RANLIB" 1>&6
1632else
1633 echo "$ac_t""no" 1>&6
1634fi
1635
1636
1637if test -z "$ac_cv_prog_RANLIB"; then
1638if test -n "$ac_tool_prefix"; then
1639 # Extract the first word of "ranlib", so it can be a program name with args.
1640set dummy ranlib; ac_word=$2
1641echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 1642echo "configure:1643: checking for $ac_word" >&5
cd66558c
NC
1643if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645else
1646 if test -n "$RANLIB"; then
1647 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1648else
2ce30166
GN
1649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1650 ac_dummy="$PATH"
1651 for ac_dir in $ac_dummy; do
cd66558c
NC
1652 test -z "$ac_dir" && ac_dir=.
1653 if test -f $ac_dir/$ac_word; then
1654 ac_cv_prog_RANLIB="ranlib"
1655 break
1656 fi
1657 done
1658 IFS="$ac_save_ifs"
1659 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1660fi
1661fi
1662RANLIB="$ac_cv_prog_RANLIB"
1663if test -n "$RANLIB"; then
1664 echo "$ac_t""$RANLIB" 1>&6
1665else
1666 echo "$ac_t""no" 1>&6
1667fi
1668
1669else
1670 RANLIB=":"
1671fi
1672fi
1673
1674
bd4a69c3
ILT
1675# Check whether --enable-shared or --disable-shared was given.
1676if test "${enable_shared+set}" = set; then
1677 enableval="$enable_shared"
1678 p=${PACKAGE-default}
1679case "$enableval" in
1680yes) enable_shared=yes ;;
1681no) enable_shared=no ;;
1682*)
1683 enable_shared=no
1684 # Look at the argument we got. We use all the common list separators.
1685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1686 for pkg in $enableval; do
1687 if test "X$pkg" = "X$p"; then
1688 enable_shared=yes
1689 fi
1690 done
1691 IFS="$ac_save_ifs"
1692 ;;
1693esac
1694else
1695 enable_shared=no
1696fi
1697
1698
1699# Check whether --enable-static or --disable-static was given.
1700if test "${enable_static+set}" = set; then
1701 enableval="$enable_static"
1702 p=${PACKAGE-default}
1703case "$enableval" in
1704yes) enable_static=yes ;;
1705no) enable_static=no ;;
1706*)
1707 enable_static=no
1708 # Look at the argument we got. We use all the common list separators.
1709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1710 for pkg in $enableval; do
1711 if test "X$pkg" = "X$p"; then
1712 enable_static=yes
1713 fi
1714 done
1715 IFS="$ac_save_ifs"
1716 ;;
1717esac
1718else
1719 enable_static=yes
1720fi
788e3f91
ILT
1721
1722# Extract the first word of "ranlib", so it can be a program name with args.
1723set dummy ranlib; ac_word=$2
1724echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 1725echo "configure:1726: checking for $ac_word" >&5
788e3f91
ILT
1726if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1728else
1729 if test -n "$RANLIB"; then
1730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1731else
2ce30166
GN
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1733 ac_dummy="$PATH"
1734 for ac_dir in $ac_dummy; do
788e3f91
ILT
1735 test -z "$ac_dir" && ac_dir=.
1736 if test -f $ac_dir/$ac_word; then
1737 ac_cv_prog_RANLIB="ranlib"
1738 break
1739 fi
1740 done
1741 IFS="$ac_save_ifs"
1742 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1743fi
1744fi
1745RANLIB="$ac_cv_prog_RANLIB"
1746if test -n "$RANLIB"; then
1747 echo "$ac_t""$RANLIB" 1>&6
1748else
1749 echo "$ac_t""no" 1>&6
1750fi
1751
784492b5
ILT
1752# Check whether --with-gnu-ld or --without-gnu-ld was given.
1753if test "${with_gnu_ld+set}" = set; then
1754 withval="$with_gnu_ld"
1755 test "$withval" = no || with_gnu_ld=yes
1daed53f 1756else
784492b5
ILT
1757 with_gnu_ld=no
1758fi
1759
1760
1761ac_prog=ld
1762if test "$ac_cv_prog_gcc" = yes; then
1763 # Check if gcc -print-prog-name=ld gives a path.
1764 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2ce30166 1765echo "configure:1766: checking for ld used by GCC" >&5
784492b5
ILT
1766 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1767 case "$ac_prog" in
1768 # Accept absolute paths.
f113ea6b 1769 /* | [A-Za-z]:\\*)
784492b5
ILT
1770 test -z "$LD" && LD="$ac_prog"
1771 ;;
1772 "")
1773 # If it fails, then pretend we aren't using GCC.
1774 ac_prog=ld
1775 ;;
1776 *)
1777 # If it is relative, then search for the first ld in PATH.
1778 with_gnu_ld=unknown
1779 ;;
1780 esac
1781elif test "$with_gnu_ld" = yes; then
1782 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2ce30166 1783echo "configure:1784: checking for GNU ld" >&5
784492b5
ILT
1784else
1785 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2ce30166 1786echo "configure:1787: checking for non-GNU ld" >&5
784492b5
ILT
1787fi
1788if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1daed53f 1790else
784492b5 1791 if test -z "$LD"; then
1daed53f
ILT
1792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1793 for ac_dir in $PATH; do
1794 test -z "$ac_dir" && ac_dir=.
784492b5
ILT
1795 if test -f "$ac_dir/$ac_prog"; then
1796 ac_cv_path_LD="$ac_dir/$ac_prog"
1797 # Check to see if the program is GNU ld. I'd rather use --version,
1798 # but apparently some GNU ld's only accept -v.
1799 # Break only if it was the GNU/non-GNU ld that we prefer.
1800 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1801 test "$with_gnu_ld" != no && break
1802 else
1803 test "$with_gnu_ld" != yes && break
1804 fi
1daed53f
ILT
1805 fi
1806 done
1807 IFS="$ac_save_ifs"
784492b5
ILT
1808else
1809 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1daed53f
ILT
1810fi
1811fi
784492b5
ILT
1812
1813LD="$ac_cv_path_LD"
1814if test -n "$LD"; then
1815 echo "$ac_t""$LD" 1>&6
1daed53f
ILT
1816else
1817 echo "$ac_t""no" 1>&6
1818fi
784492b5 1819test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1daed53f 1820
788e3f91 1821echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2ce30166 1822echo "configure:1823: checking if the linker ($LD) is GNU ld" >&5
1daed53f
ILT
1823if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1825else
1826 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
788e3f91 1827if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1daed53f
ILT
1828 ac_cv_prog_gnu_ld=yes
1829else
1830 ac_cv_prog_gnu_ld=no
1831fi
1832fi
1833
1834echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1835
1836
788e3f91 1837echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2ce30166 1838echo "configure:1839: checking for BSD-compatible nm" >&5
788e3f91
ILT
1839if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1841else
69ad8cac
ILT
1842 if test -n "$NM"; then
1843 # Let the user override the test.
1844 ac_cv_path_NM="$NM"
1845else
788e3f91
ILT
1846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1847 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
bd4a69c3 1848 test -z "$ac_dir" && ac_dir=.
788e3f91
ILT
1849 if test -f $ac_dir/nm; then
1850 # Check to see if the nm accepts a BSD-compat flag.
bd4a69c3 1851 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
788e3f91 1852 # nm: unknown option "B" ignored
bd4a69c3 1853 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
788e3f91 1854 ac_cv_path_NM="$ac_dir/nm -B"
bd4a69c3 1855 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
788e3f91
ILT
1856 ac_cv_path_NM="$ac_dir/nm -p"
1857 else
1858 ac_cv_path_NM="$ac_dir/nm"
1859 fi
1860 break
1861 fi
1862 done
1863 IFS="$ac_save_ifs"
1864 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
f113ea6b 1865fi
788e3f91
ILT
1866fi
1867
1868NM="$ac_cv_path_NM"
1869echo "$ac_t""$NM" 1>&6
1870
1871
1daed53f 1872echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2ce30166 1873echo "configure:1874: checking whether ln -s works" >&5
1daed53f
ILT
1874if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1876else
1877 rm -f conftestdata
1878if ln -s X conftestdata 2>/dev/null
1879then
1880 rm -f conftestdata
1881 ac_cv_prog_LN_S="ln -s"
1882else
1883 ac_cv_prog_LN_S=ln
1884fi
1885fi
1886LN_S="$ac_cv_prog_LN_S"
1887if test "$ac_cv_prog_LN_S" = "ln -s"; then
1888 echo "$ac_t""yes" 1>&6
1889else
1890 echo "$ac_t""no" 1>&6
1891fi
1892
1daed53f 1893# Always use our own libtool.
bfc10abe 1894LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1daed53f 1895
bd4a69c3
ILT
1896# Check for any special flags to pass to ltconfig.
1897libtool_flags=
1898test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1899test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1daed53f
ILT
1900test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1901test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1902test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1903
1904# Some flags need to be propagated to the compiler or linker for good
1905# libtool support.
1906case "$host" in
bd4a69c3 1907*-*-irix6*)
ef3c03a4 1908 # Find out which ABI we are using.
2ce30166
GN
1909 echo '#line 1910 "configure"' > conftest.$ac_ext
1910 if { (eval echo configure:1911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ef3c03a4
ILT
1911 case "`/usr/bin/file conftest.o`" in
1912 *32-bit*)
1913 LD="${LD-ld} -32"
788e3f91 1914 ;;
ef3c03a4
ILT
1915 *N32*)
1916 LD="${LD-ld} -n32"
1917 ;;
1918 *64-bit*)
1919 LD="${LD-ld} -64"
788e3f91
ILT
1920 ;;
1921 esac
ef3c03a4
ILT
1922 fi
1923 rm -rf conftest*
1daed53f
ILT
1924 ;;
1925
1926*-*-sco3.2v5*)
1927 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1928 CFLAGS="$CFLAGS -belf"
1929 ;;
f113ea6b
NC
1930
1931*-*-cygwin32*)
1932 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1933set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1934echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 1935echo "configure:1936: checking for $ac_word" >&5
f113ea6b
NC
1936if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1938else
1939 if test -n "$DLLTOOL"; then
1940 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1941else
2ce30166
GN
1942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1943 ac_dummy="$PATH"
1944 for ac_dir in $ac_dummy; do
f113ea6b
NC
1945 test -z "$ac_dir" && ac_dir=.
1946 if test -f $ac_dir/$ac_word; then
1947 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1948 break
1949 fi
1950 done
1951 IFS="$ac_save_ifs"
1952fi
1953fi
1954DLLTOOL="$ac_cv_prog_DLLTOOL"
1955if test -n "$DLLTOOL"; then
1956 echo "$ac_t""$DLLTOOL" 1>&6
1957else
1958 echo "$ac_t""no" 1>&6
1959fi
1960
1961
1962if test -z "$ac_cv_prog_DLLTOOL"; then
1963if test -n "$ac_tool_prefix"; then
1964 # Extract the first word of "dlltool", so it can be a program name with args.
1965set dummy dlltool; ac_word=$2
1966echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 1967echo "configure:1968: checking for $ac_word" >&5
f113ea6b
NC
1968if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1970else
1971 if test -n "$DLLTOOL"; then
1972 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1973else
2ce30166
GN
1974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1975 ac_dummy="$PATH"
1976 for ac_dir in $ac_dummy; do
f113ea6b
NC
1977 test -z "$ac_dir" && ac_dir=.
1978 if test -f $ac_dir/$ac_word; then
1979 ac_cv_prog_DLLTOOL="dlltool"
1980 break
1981 fi
1982 done
1983 IFS="$ac_save_ifs"
1984 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1985fi
1986fi
1987DLLTOOL="$ac_cv_prog_DLLTOOL"
1988if test -n "$DLLTOOL"; then
1989 echo "$ac_t""$DLLTOOL" 1>&6
1990else
1991 echo "$ac_t""no" 1>&6
1992fi
1993
1994else
1995 DLLTOOL="false"
1996fi
1997fi
1998
1999# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2000set dummy ${ac_tool_prefix}as; ac_word=$2
2001echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 2002echo "configure:2003: checking for $ac_word" >&5
f113ea6b
NC
2003if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2005else
2006 if test -n "$AS"; then
2007 ac_cv_prog_AS="$AS" # Let the user override the test.
2008else
2ce30166
GN
2009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2010 ac_dummy="$PATH"
2011 for ac_dir in $ac_dummy; do
f113ea6b
NC
2012 test -z "$ac_dir" && ac_dir=.
2013 if test -f $ac_dir/$ac_word; then
2014 ac_cv_prog_AS="${ac_tool_prefix}as"
2015 break
2016 fi
2017 done
2018 IFS="$ac_save_ifs"
2019fi
2020fi
2021AS="$ac_cv_prog_AS"
2022if test -n "$AS"; then
2023 echo "$ac_t""$AS" 1>&6
2024else
2025 echo "$ac_t""no" 1>&6
2026fi
2027
2028
2029if test -z "$ac_cv_prog_AS"; then
2030if test -n "$ac_tool_prefix"; then
2031 # Extract the first word of "as", so it can be a program name with args.
2032set dummy as; ac_word=$2
2033echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 2034echo "configure:2035: checking for $ac_word" >&5
f113ea6b
NC
2035if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2037else
2038 if test -n "$AS"; then
2039 ac_cv_prog_AS="$AS" # Let the user override the test.
2040else
2ce30166
GN
2041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2042 ac_dummy="$PATH"
2043 for ac_dir in $ac_dummy; do
f113ea6b
NC
2044 test -z "$ac_dir" && ac_dir=.
2045 if test -f $ac_dir/$ac_word; then
2046 ac_cv_prog_AS="as"
2047 break
2048 fi
2049 done
2050 IFS="$ac_save_ifs"
2051 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2052fi
2053fi
2054AS="$ac_cv_prog_AS"
2055if test -n "$AS"; then
2056 echo "$ac_t""$AS" 1>&6
2057else
2058 echo "$ac_t""no" 1>&6
2059fi
2060
2061else
2062 AS="false"
2063fi
2064fi
2065
2066
2067 ;;
2068
784492b5
ILT
2069esac
2070
2071# Actually configure libtool. ac_aux_dir is where install-sh is found.
2072CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2073LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
f113ea6b 2074DLLTOOL="$DLLTOOL" AS="$AS" \
69ad8cac 2075${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
784492b5
ILT
2076$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2077|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2078
69ad8cac
ILT
2079# Redirect the config.log output again, so that the ltconfig log is not
2080# clobbered by the next message.
2081exec 5>>./config.log
2082
784492b5
ILT
2083
2084# Check whether --enable-targets or --disable-targets was given.
2085if test "${enable_targets+set}" = set; then
2086 enableval="$enable_targets"
2087 case "${enableval}" in
2088 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2089 ;;
2090 no) enable_targets= ;;
2091 *) enable_targets=$enableval ;;
2092esac
2093fi
2094# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2095if test "${enable_commonbfdlib+set}" = set; then
2096 enableval="$enable_commonbfdlib"
2097 case "${enableval}" in
2098 yes) commonbfdlib=true ;;
2099 no) commonbfdlib=false ;;
2100 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2101esac
2102fi
2103
2104
2105
2106
2107
2108if test -z "$target" ; then
2109 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2110fi
2111if test "$program_transform_name" = s,x,x,; then
2112 program_transform_name=
2113else
2114 # Double any \ or $. echo might interpret backslashes.
46bcd2ec
ILT
2115 cat <<\EOF_SED > conftestsed
2116s,\\,\\\\,g; s,\$,$$,g
2117EOF_SED
2118 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2119 rm -f conftestsed
2120fi
2121test "$program_prefix" != NONE &&
2122 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2123# Use a double $ so make ignores it.
2124test "$program_suffix" != NONE &&
2125 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2126
2127# sed with no file args requires a program.
2128test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2129
824155e8 2130
784492b5 2131echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2ce30166 2132echo "configure:2133: checking whether to enable maintainer-specific portions of Makefiles" >&5
784492b5
ILT
2133 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2134if test "${enable_maintainer_mode+set}" = set; then
2135 enableval="$enable_maintainer_mode"
2136 USE_MAINTAINER_MODE=$enableval
2137else
2138 USE_MAINTAINER_MODE=no
072aa625 2139fi
784492b5
ILT
2140
2141 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2142 if test $USE_MAINTAINER_MODE = yes; then
2143 MAINT=
2144 else
2145 MAINT='#M#'
2146 fi
2147
2148
2149echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
2ce30166 2150echo "configure:2151: checking for Cygwin32 environment" >&5
784492b5 2151if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
072aa625 2152 echo $ac_n "(cached) $ac_c" 1>&6
1daed53f 2153else
072aa625 2154 cat > conftest.$ac_ext <<EOF
2ce30166 2155#line 2156 "configure"
072aa625 2156#include "confdefs.h"
784492b5
ILT
2157
2158int main() {
2159return __CYGWIN32__;
2160; return 0; }
072aa625 2161EOF
2ce30166 2162if { (eval echo configure:2163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
072aa625 2163 rm -rf conftest*
784492b5 2164 am_cv_cygwin32=yes
072aa625 2165else
072aa625
NC
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 rm -rf conftest*
784492b5 2169 am_cv_cygwin32=no
072aa625
NC
2170fi
2171rm -f conftest*
072aa625 2172rm -f conftest*
072aa625 2173fi
1daed53f 2174
784492b5
ILT
2175echo "$ac_t""$am_cv_cygwin32" 1>&6
2176CYGWIN32=
2177test "$am_cv_cygwin32" = yes && CYGWIN32=yes
2178echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
2ce30166 2179echo "configure:2180: checking for Mingw32 environment" >&5
784492b5 2180if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1daed53f
ILT
2181 echo $ac_n "(cached) $ac_c" 1>&6
2182else
2183 cat > conftest.$ac_ext <<EOF
2ce30166 2184#line 2185 "configure"
1daed53f 2185#include "confdefs.h"
784492b5
ILT
2186
2187int main() {
2188return __MINGW32__;
2189; return 0; }
1daed53f 2190EOF
2ce30166 2191if { (eval echo configure:2192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1daed53f 2192 rm -rf conftest*
784492b5 2193 am_cv_mingw32=yes
1daed53f
ILT
2194else
2195 echo "configure: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2197 rm -rf conftest*
784492b5 2198 am_cv_mingw32=no
e0bf1022 2199fi
1daed53f
ILT
2200rm -f conftest*
2201rm -f conftest*
2202fi
2203
784492b5
ILT
2204echo "$ac_t""$am_cv_mingw32" 1>&6
2205MINGW32=
2206test "$am_cv_mingw32" = yes && MINGW32=yes
072aa625 2207
072aa625 2208
784492b5 2209echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2ce30166 2210echo "configure:2211: checking for executable suffix" >&5
784492b5
ILT
2211if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
072aa625 2213else
784492b5
ILT
2214 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
2215am_cv_exeext=.exe
072aa625 2216else
784492b5
ILT
2217cat > am_c_test.c << 'EOF'
2218int main() {
2219/* Nothing needed here */
2220}
2221EOF
2222${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
2223am_cv_exeext=
2224for file in am_c_test.*; do
2225 case $file in
2226 *.c) ;;
2227 *.o) ;;
2228 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
2229 esac
2230done
2231rm -f am_c_test*
072aa625
NC
2232fi
2233
784492b5 2234test x"${am_cv_exeext}" = x && am_cv_exeext=no
072aa625 2235fi
784492b5
ILT
2236EXEEXT=""
2237test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
2238echo "$ac_t""${am_cv_exeext}" 1>&6
072aa625 2239
072aa625 2240
784492b5 2241# host-specific stuff:
072aa625 2242
784492b5
ILT
2243# Extract the first word of "gcc", so it can be a program name with args.
2244set dummy gcc; ac_word=$2
2245echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 2246echo "configure:2247: checking for $ac_word" >&5
784492b5 2247if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
af36ce35
ILT
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249else
784492b5
ILT
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
af36ce35 2252else
2ce30166
GN
2253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2254 ac_dummy="$PATH"
2255 for ac_dir in $ac_dummy; do
784492b5
ILT
2256 test -z "$ac_dir" && ac_dir=.
2257 if test -f $ac_dir/$ac_word; then
2258 ac_cv_prog_CC="gcc"
2259 break
2260 fi
2261 done
2262 IFS="$ac_save_ifs"
af36ce35 2263fi
af36ce35 2264fi
784492b5
ILT
2265CC="$ac_cv_prog_CC"
2266if test -n "$CC"; then
2267 echo "$ac_t""$CC" 1>&6
2268else
2269 echo "$ac_t""no" 1>&6
072aa625 2270fi
2b0c643b 2271
784492b5
ILT
2272if test -z "$CC"; then
2273 # Extract the first word of "cc", so it can be a program name with args.
2274set dummy cc; ac_word=$2
2275echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 2276echo "configure:2277: checking for $ac_word" >&5
784492b5 2277if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1daed53f
ILT
2278 echo $ac_n "(cached) $ac_c" 1>&6
2279else
784492b5
ILT
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282else
2ce30166 2283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
784492b5 2284 ac_prog_rejected=no
2ce30166
GN
2285 ac_dummy="$PATH"
2286 for ac_dir in $ac_dummy; do
784492b5
ILT
2287 test -z "$ac_dir" && ac_dir=.
2288 if test -f $ac_dir/$ac_word; then
2289 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2290 ac_prog_rejected=yes
2291 continue
2292 fi
2293 ac_cv_prog_CC="cc"
2294 break
2295 fi
2296 done
2297 IFS="$ac_save_ifs"
2298if test $ac_prog_rejected = yes; then
2299 # We found a bogon in the path, so make sure we never use it.
2300 set dummy $ac_cv_prog_CC
2301 shift
2302 if test $# -gt 0; then
2303 # We chose a different compiler from the bogus one.
2304 # However, it has the same basename, so the bogon will be chosen
2305 # first if we set CC to just the basename; use the full file name.
2306 shift
2307 set dummy "$ac_dir/$ac_word" "$@"
2308 shift
2309 ac_cv_prog_CC="$@"
2310 fi
2311fi
2312fi
2313fi
2314CC="$ac_cv_prog_CC"
2315if test -n "$CC"; then
2316 echo "$ac_t""$CC" 1>&6
2317else
2318 echo "$ac_t""no" 1>&6
2319fi
072aa625 2320
2ce30166
GN
2321 if test -z "$CC"; then
2322 case "`uname -s`" in
2323 *win32* | *WIN32*)
2324 # Extract the first word of "cl", so it can be a program name with args.
2325set dummy cl; ac_word=$2
2326echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327echo "configure:2328: checking for $ac_word" >&5
2328if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330else
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2333else
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2335 ac_dummy="$PATH"
2336 for ac_dir in $ac_dummy; do
2337 test -z "$ac_dir" && ac_dir=.
2338 if test -f $ac_dir/$ac_word; then
2339 ac_cv_prog_CC="cl"
2340 break
2341 fi
2342 done
2343 IFS="$ac_save_ifs"
2344fi
2345fi
2346CC="$ac_cv_prog_CC"
2347if test -n "$CC"; then
2348 echo "$ac_t""$CC" 1>&6
2349else
2350 echo "$ac_t""no" 1>&6
2351fi
2352 ;;
2353 esac
2354 fi
784492b5
ILT
2355 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2356fi
2357
2358echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2ce30166 2359echo "configure:2360: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
784492b5
ILT
2360
2361ac_ext=c
2362# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2363ac_cpp='$CPP $CPPFLAGS'
2364ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2ce30166 2365ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
784492b5
ILT
2366cross_compiling=$ac_cv_prog_cc_cross
2367
2ce30166
GN
2368cat > conftest.$ac_ext << EOF
2369
2370#line 2371 "configure"
784492b5 2371#include "confdefs.h"
2ce30166 2372
784492b5 2373main(){return(0);}
1daed53f 2374EOF
2ce30166 2375if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
784492b5
ILT
2376 ac_cv_prog_cc_works=yes
2377 # If we can't run a trivial program, we are probably using a cross compiler.
2378 if (./conftest; exit) 2>/dev/null; then
2379 ac_cv_prog_cc_cross=no
2380 else
2381 ac_cv_prog_cc_cross=yes
2382 fi
072aa625
NC
2383else
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
784492b5 2386 ac_cv_prog_cc_works=no
1daed53f 2387fi
784492b5 2388rm -fr conftest*
2ce30166
GN
2389ac_ext=c
2390# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2391ac_cpp='$CPP $CPPFLAGS'
2392ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2393ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2394cross_compiling=$ac_cv_prog_cc_cross
1daed53f 2395
784492b5
ILT
2396echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2397if test $ac_cv_prog_cc_works = no; then
2398 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1daed53f 2399fi
784492b5 2400echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2ce30166 2401echo "configure:2402: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784492b5
ILT
2402echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2403cross_compiling=$ac_cv_prog_cc_cross
1daed53f 2404
784492b5 2405echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2ce30166 2406echo "configure:2407: checking whether we are using GNU C" >&5
784492b5 2407if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
00103dfa
ILT
2408 echo $ac_n "(cached) $ac_c" 1>&6
2409else
784492b5
ILT
2410 cat > conftest.c <<EOF
2411#ifdef __GNUC__
2412 yes;
072aa625
NC
2413#endif
2414EOF
2ce30166 2415if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
784492b5 2416 ac_cv_prog_gcc=yes
00103dfa 2417else
784492b5 2418 ac_cv_prog_gcc=no
00103dfa
ILT
2419fi
2420fi
072aa625 2421
784492b5 2422echo "$ac_t""$ac_cv_prog_gcc" 1>&6
00103dfa 2423
784492b5
ILT
2424if test $ac_cv_prog_gcc = yes; then
2425 GCC=yes
2ce30166
GN
2426else
2427 GCC=
2428fi
2429
2430ac_test_CFLAGS="${CFLAGS+set}"
2431ac_save_CFLAGS="$CFLAGS"
2432CFLAGS=
2433echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2434echo "configure:2435: checking whether ${CC-cc} accepts -g" >&5
784492b5 2435if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7919b9ec
ILT
2436 echo $ac_n "(cached) $ac_c" 1>&6
2437else
784492b5
ILT
2438 echo 'void f(){}' > conftest.c
2439if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2440 ac_cv_prog_cc_g=yes
7919b9ec 2441else
784492b5 2442 ac_cv_prog_cc_g=no
7919b9ec 2443fi
072aa625
NC
2444rm -f conftest*
2445
7919b9ec 2446fi
072aa625 2447
784492b5 2448echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2ce30166
GN
2449if test "$ac_test_CFLAGS" = set; then
2450 CFLAGS="$ac_save_CFLAGS"
2451elif test $ac_cv_prog_cc_g = yes; then
2452 if test "$GCC" = yes; then
784492b5
ILT
2453 CFLAGS="-g -O2"
2454 else
2ce30166 2455 CFLAGS="-g"
784492b5
ILT
2456 fi
2457else
2ce30166
GN
2458 if test "$GCC" = yes; then
2459 CFLAGS="-O2"
2460 else
2461 CFLAGS=
2462 fi
7919b9ec 2463fi
072aa625 2464
784492b5
ILT
2465
2466ALL_LINGUAS=
2467echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2ce30166 2468echo "configure:2469: checking how to run the C preprocessor" >&5
784492b5
ILT
2469# On Suns, sometimes $CPP names a directory.
2470if test -n "$CPP" && test -d "$CPP"; then
2471 CPP=
2472fi
2473if test -z "$CPP"; then
2474if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
072aa625
NC
2475 echo $ac_n "(cached) $ac_c" 1>&6
2476else
784492b5
ILT
2477 # This must be in double quotes, not single quotes, because CPP may get
2478 # substituted into the Makefile and "${CC-cc}" will confuse make.
2479 CPP="${CC-cc} -E"
2480 # On the NeXT, cc -E runs the code through the compiler's parser,
2481 # not just through cpp.
072aa625 2482 cat > conftest.$ac_ext <<EOF
2ce30166 2483#line 2484 "configure"
072aa625 2484#include "confdefs.h"
784492b5
ILT
2485#include <assert.h>
2486Syntax Error
072aa625 2487EOF
784492b5 2488ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2ce30166
GN
2489{ (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
784492b5
ILT
2491if test -z "$ac_err"; then
2492 :
2493else
2494 echo "$ac_err" >&5
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
072aa625 2497 rm -rf conftest*
784492b5
ILT
2498 CPP="${CC-cc} -E -traditional-cpp"
2499 cat > conftest.$ac_ext <<EOF
2ce30166
GN
2500#line 2501 "configure"
2501#include "confdefs.h"
2502#include <assert.h>
2503Syntax Error
2504EOF
2505ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2506{ (eval echo configure:2507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2507ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2508if test -z "$ac_err"; then
2509 :
2510else
2511 echo "$ac_err" >&5
2512 echo "configure: failed program was:" >&5
2513 cat conftest.$ac_ext >&5
2514 rm -rf conftest*
2515 CPP="${CC-cc} -nologo -E"
2516 cat > conftest.$ac_ext <<EOF
2517#line 2518 "configure"
784492b5
ILT
2518#include "confdefs.h"
2519#include <assert.h>
2520Syntax Error
2521EOF
2522ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2ce30166
GN
2523{ (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2524ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
784492b5
ILT
2525if test -z "$ac_err"; then
2526 :
072aa625 2527else
784492b5 2528 echo "$ac_err" >&5
072aa625
NC
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2531 rm -rf conftest*
784492b5 2532 CPP=/lib/cpp
072aa625
NC
2533fi
2534rm -f conftest*
2535fi
2ce30166
GN
2536rm -f conftest*
2537fi
784492b5
ILT
2538rm -f conftest*
2539 ac_cv_prog_CPP="$CPP"
072aa625 2540fi
784492b5
ILT
2541 CPP="$ac_cv_prog_CPP"
2542else
2543 ac_cv_prog_CPP="$CPP"
2544fi
2545echo "$ac_t""$CPP" 1>&6
072aa625 2546
784492b5 2547echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2ce30166 2548echo "configure:2549: checking for ANSI C header files" >&5
784492b5 2549if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
072aa625
NC
2550 echo $ac_n "(cached) $ac_c" 1>&6
2551else
2552 cat > conftest.$ac_ext <<EOF
2ce30166 2553#line 2554 "configure"
072aa625 2554#include "confdefs.h"
784492b5
ILT
2555#include <stdlib.h>
2556#include <stdarg.h>
2557#include <string.h>
2558#include <float.h>
072aa625 2559EOF
784492b5 2560ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2ce30166
GN
2561{ (eval echo configure:2562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2562ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
784492b5 2563if test -z "$ac_err"; then
072aa625 2564 rm -rf conftest*
784492b5 2565 ac_cv_header_stdc=yes
072aa625 2566else
784492b5 2567 echo "$ac_err" >&5
072aa625
NC
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2570 rm -rf conftest*
784492b5 2571 ac_cv_header_stdc=no
072aa625
NC
2572fi
2573rm -f conftest*
072aa625 2574
784492b5
ILT
2575if test $ac_cv_header_stdc = yes; then
2576 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2577cat > conftest.$ac_ext <<EOF
2ce30166 2578#line 2579 "configure"
784492b5
ILT
2579#include "confdefs.h"
2580#include <string.h>
072aa625 2581EOF
784492b5
ILT
2582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2583 egrep "memchr" >/dev/null 2>&1; then
2584 :
2585else
2586 rm -rf conftest*
2587 ac_cv_header_stdc=no
2588fi
2589rm -f conftest*
072aa625
NC
2590
2591fi
2592
784492b5
ILT
2593if test $ac_cv_header_stdc = yes; then
2594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2595cat > conftest.$ac_ext <<EOF
2ce30166 2596#line 2597 "configure"
784492b5
ILT
2597#include "confdefs.h"
2598#include <stdlib.h>
072aa625 2599EOF
784492b5
ILT
2600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2601 egrep "free" >/dev/null 2>&1; then
2602 :
2603else
2604 rm -rf conftest*
2605 ac_cv_header_stdc=no
2606fi
2607rm -f conftest*
072aa625 2608
784492b5 2609fi
072aa625 2610
784492b5
ILT
2611if test $ac_cv_header_stdc = yes; then
2612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2613if test "$cross_compiling" = yes; then
2614 :
072aa625
NC
2615else
2616 cat > conftest.$ac_ext <<EOF
2ce30166 2617#line 2618 "configure"
072aa625 2618#include "confdefs.h"
784492b5
ILT
2619#include <ctype.h>
2620#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2621#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2622#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2623int main () { int i; for (i = 0; i < 256; i++)
2624if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2625exit (0); }
072aa625
NC
2626
2627EOF
2ce30166 2628if { (eval echo configure:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
784492b5
ILT
2629then
2630 :
072aa625 2631else
784492b5
ILT
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 rm -fr conftest*
2635 ac_cv_header_stdc=no
2636fi
2637rm -fr conftest*
072aa625 2638fi
072aa625 2639
784492b5 2640fi
072aa625
NC
2641fi
2642
784492b5
ILT
2643echo "$ac_t""$ac_cv_header_stdc" 1>&6
2644if test $ac_cv_header_stdc = yes; then
2645 cat >> confdefs.h <<\EOF
2646#define STDC_HEADERS 1
2647EOF
2648
2649fi
2650
2651echo $ac_n "checking for working const""... $ac_c" 1>&6
2ce30166 2652echo "configure:2653: checking for working const" >&5
784492b5 2653if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
072aa625
NC
2654 echo $ac_n "(cached) $ac_c" 1>&6
2655else
2656 cat > conftest.$ac_ext <<EOF
2ce30166 2657#line 2658 "configure"
072aa625 2658#include "confdefs.h"
072aa625
NC
2659
2660int main() {
2661
784492b5
ILT
2662/* Ultrix mips cc rejects this. */
2663typedef int charset[2]; const charset x;
2664/* SunOS 4.1.1 cc rejects this. */
2665char const *const *ccp;
2666char **p;
2667/* NEC SVR4.0.2 mips cc rejects this. */
2668struct point {int x, y;};
2669static struct point const zero = {0,0};
2670/* AIX XL C 1.02.0.0 rejects this.
2671 It does not let you subtract one const X* pointer from another in an arm
2672 of an if-expression whose if-part is not a constant expression */
2673const char *g = "string";
2674ccp = &g + (g ? g-g : 0);
2675/* HPUX 7.0 cc rejects these. */
2676++ccp;
2677p = (char**) ccp;
2678ccp = (char const *const *) p;
2679{ /* SCO 3.2v4 cc rejects this. */
2680 char *t;
2681 char const *s = 0 ? (char *) 0 : (char const *) 0;
2682
2683 *t++ = 0;
2684}
2685{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2686 int x[] = {25, 17};
2687 const int *foo = &x[0];
2688 ++foo;
2689}
2690{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2691 typedef const int *iptr;
2692 iptr p = 0;
2693 ++p;
2694}
2695{ /* AIX XL C 1.02.0.0 rejects this saying
2696 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2697 struct s { int j; const int *ap[3]; };
2698 struct s *b; b->j = 5;
2699}
2700{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2701 const int foo = 10;
2702}
072aa625
NC
2703
2704; return 0; }
2705EOF
2ce30166 2706if { (eval echo configure:2707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
072aa625 2707 rm -rf conftest*
784492b5 2708 ac_cv_c_const=yes
072aa625
NC
2709else
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2712 rm -rf conftest*
784492b5 2713 ac_cv_c_const=no
072aa625
NC
2714fi
2715rm -f conftest*
2716fi
2717
784492b5
ILT
2718echo "$ac_t""$ac_cv_c_const" 1>&6
2719if test $ac_cv_c_const = no; then
2720 cat >> confdefs.h <<\EOF
2721#define const
072aa625
NC
2722EOF
2723
072aa625
NC
2724fi
2725
784492b5 2726echo $ac_n "checking for inline""... $ac_c" 1>&6
2ce30166 2727echo "configure:2728: checking for inline" >&5
784492b5 2728if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
072aa625
NC
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730else
784492b5
ILT
2731 ac_cv_c_inline=no
2732for ac_kw in inline __inline__ __inline; do
072aa625 2733 cat > conftest.$ac_ext <<EOF
2ce30166 2734#line 2735 "configure"
072aa625 2735#include "confdefs.h"
784492b5
ILT
2736
2737int main() {
2738} $ac_kw foo() {
2739; return 0; }
072aa625 2740EOF
2ce30166 2741if { (eval echo configure:2742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784492b5
ILT
2742 rm -rf conftest*
2743 ac_cv_c_inline=$ac_kw; break
072aa625
NC
2744else
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
072aa625 2747fi
784492b5
ILT
2748rm -f conftest*
2749done
072aa625
NC
2750
2751fi
2752
784492b5
ILT
2753echo "$ac_t""$ac_cv_c_inline" 1>&6
2754case "$ac_cv_c_inline" in
2755 inline | yes) ;;
2756 no) cat >> confdefs.h <<\EOF
2757#define inline
072aa625 2758EOF
784492b5
ILT
2759 ;;
2760 *) cat >> confdefs.h <<EOF
2761#define inline $ac_cv_c_inline
2762EOF
2763 ;;
2764esac
2765
2766echo $ac_n "checking for off_t""... $ac_c" 1>&6
2ce30166 2767echo "configure:2768: checking for off_t" >&5
784492b5 2768if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
072aa625
NC
2769 echo $ac_n "(cached) $ac_c" 1>&6
2770else
2771 cat > conftest.$ac_ext <<EOF
2ce30166 2772#line 2773 "configure"
072aa625 2773#include "confdefs.h"
784492b5
ILT
2774#include <sys/types.h>
2775#if STDC_HEADERS
2776#include <stdlib.h>
2777#include <stddef.h>
2778#endif
072aa625 2779EOF
784492b5 2780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2ce30166 2781 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
072aa625 2782 rm -rf conftest*
784492b5 2783 ac_cv_type_off_t=yes
072aa625 2784else
072aa625 2785 rm -rf conftest*
784492b5 2786 ac_cv_type_off_t=no
072aa625
NC
2787fi
2788rm -f conftest*
784492b5 2789
072aa625 2790fi
784492b5
ILT
2791echo "$ac_t""$ac_cv_type_off_t" 1>&6
2792if test $ac_cv_type_off_t = no; then
2793 cat >> confdefs.h <<\EOF
2794#define off_t long
072aa625 2795EOF
784492b5 2796
072aa625 2797fi
072aa625 2798
784492b5 2799echo $ac_n "checking for size_t""... $ac_c" 1>&6
2ce30166 2800echo "configure:2801: checking for size_t" >&5
784492b5 2801if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
072aa625
NC
2802 echo $ac_n "(cached) $ac_c" 1>&6
2803else
2804 cat > conftest.$ac_ext <<EOF
2ce30166 2805#line 2806 "configure"
072aa625 2806#include "confdefs.h"
784492b5
ILT
2807#include <sys/types.h>
2808#if STDC_HEADERS
2809#include <stdlib.h>
2810#include <stddef.h>
072aa625 2811#endif
072aa625 2812EOF
784492b5 2813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2ce30166 2814 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
072aa625 2815 rm -rf conftest*
784492b5 2816 ac_cv_type_size_t=yes
072aa625 2817else
072aa625 2818 rm -rf conftest*
784492b5 2819 ac_cv_type_size_t=no
072aa625
NC
2820fi
2821rm -f conftest*
072aa625 2822
784492b5
ILT
2823fi
2824echo "$ac_t""$ac_cv_type_size_t" 1>&6
2825if test $ac_cv_type_size_t = no; then
2826 cat >> confdefs.h <<\EOF
2827#define size_t unsigned
072aa625 2828EOF
784492b5 2829
072aa625 2830fi
072aa625 2831
784492b5
ILT
2832# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2833# for constant arguments. Useless!
2834echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2ce30166 2835echo "configure:2836: checking for working alloca.h" >&5
784492b5 2836if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
072aa625 2837 echo $ac_n "(cached) $ac_c" 1>&6
072aa625
NC
2838else
2839 cat > conftest.$ac_ext <<EOF
2ce30166 2840#line 2841 "configure"
072aa625 2841#include "confdefs.h"
784492b5
ILT
2842#include <alloca.h>
2843int main() {
2844char *p = alloca(2 * sizeof(int));
2845; return 0; }
072aa625 2846EOF
2ce30166 2847if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
784492b5
ILT
2848 rm -rf conftest*
2849 ac_cv_header_alloca_h=yes
072aa625
NC
2850else
2851 echo "configure: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
784492b5
ILT
2853 rm -rf conftest*
2854 ac_cv_header_alloca_h=no
072aa625 2855fi
784492b5 2856rm -f conftest*
072aa625
NC
2857fi
2858
784492b5
ILT
2859echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2860if test $ac_cv_header_alloca_h = yes; then
072aa625 2861 cat >> confdefs.h <<\EOF
784492b5 2862#define HAVE_ALLOCA_H 1
072aa625
NC
2863EOF
2864
2865fi
2866
784492b5 2867echo $ac_n "checking for alloca""... $ac_c" 1>&6
2ce30166 2868echo "configure:2869: checking for alloca" >&5
784492b5 2869if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
072aa625
NC
2870 echo $ac_n "(cached) $ac_c" 1>&6
2871else
2872 cat > conftest.$ac_ext <<EOF
2ce30166 2873#line 2874 "configure"
072aa625 2874#include "confdefs.h"
784492b5
ILT
2875
2876#ifdef __GNUC__
2877# define alloca __builtin_alloca
2878#else
2ce30166
GN
2879# ifdef _MSC_VER
2880# include <malloc.h>
2881# define alloca _alloca
784492b5 2882# else
2ce30166
GN
2883# if HAVE_ALLOCA_H
2884# include <alloca.h>
784492b5 2885# else
2ce30166
GN
2886# ifdef _AIX
2887 #pragma alloca
2888# else
2889# ifndef alloca /* predefined by HP cc +Olibcalls */
784492b5 2890char *alloca ();
2ce30166 2891# endif
784492b5
ILT
2892# endif
2893# endif
2894# endif
2895#endif
2896
2897int main() {
2898char *p = (char *) alloca(1);
2899; return 0; }
072aa625 2900EOF
2ce30166 2901if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
072aa625 2902 rm -rf conftest*
784492b5 2903 ac_cv_func_alloca_works=yes
072aa625 2904else
072aa625
NC
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2907 rm -rf conftest*
784492b5 2908 ac_cv_func_alloca_works=no
072aa625
NC
2909fi
2910rm -f conftest*
2911fi
784492b5
ILT
2912
2913echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2914if test $ac_cv_func_alloca_works = yes; then
2915 cat >> confdefs.h <<\EOF
2916#define HAVE_ALLOCA 1
072aa625 2917EOF
784492b5 2918
072aa625 2919fi
072aa625 2920
784492b5
ILT
2921if test $ac_cv_func_alloca_works = no; then
2922 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2923 # that cause trouble. Some versions do not even contain alloca or
2924 # contain a buggy version. If you still want to use their alloca,
2925 # use ar to extract alloca.o from them instead of compiling alloca.c.
2ce30166 2926 ALLOCA=alloca.${ac_objext}
784492b5
ILT
2927 cat >> confdefs.h <<\EOF
2928#define C_ALLOCA 1
2929EOF
2930
2931
2932echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2ce30166 2933echo "configure:2934: checking whether alloca needs Cray hooks" >&5
784492b5 2934if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
072aa625
NC
2935 echo $ac_n "(cached) $ac_c" 1>&6
2936else
2937 cat > conftest.$ac_ext <<EOF
2ce30166 2938#line 2939 "configure"
072aa625 2939#include "confdefs.h"
784492b5
ILT
2940#if defined(CRAY) && ! defined(CRAY2)
2941webecray
072aa625 2942#else
784492b5 2943wenotbecray
072aa625
NC
2944#endif
2945
072aa625 2946EOF
784492b5
ILT
2947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2948 egrep "webecray" >/dev/null 2>&1; then
072aa625 2949 rm -rf conftest*
784492b5 2950 ac_cv_os_cray=yes
072aa625 2951else
072aa625 2952 rm -rf conftest*
784492b5 2953 ac_cv_os_cray=no
072aa625
NC
2954fi
2955rm -f conftest*
072aa625 2956
072aa625 2957fi
072aa625 2958
784492b5
ILT
2959echo "$ac_t""$ac_cv_os_cray" 1>&6
2960if test $ac_cv_os_cray = yes; then
2961for ac_func in _getb67 GETB67 getb67; do
2962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2ce30166 2963echo "configure:2964: checking for $ac_func" >&5
072aa625
NC
2964if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2966else
2967 cat > conftest.$ac_ext <<EOF
2ce30166 2968#line 2969 "configure"
072aa625
NC
2969#include "confdefs.h"
2970/* System header to define __stub macros and hopefully few prototypes,
2971 which can conflict with char $ac_func(); below. */
2972#include <assert.h>
2973/* Override any gcc2 internal prototype to avoid an error. */
2974/* We use char because int might match the return type of a gcc2
2975 builtin and then its argument prototype would still apply. */
2976char $ac_func();
2977
2978int main() {
2979
2980/* The GNU C library defines this for functions which it implements
2981 to always fail with ENOSYS. Some functions are actually named
2982 something starting with __ and the normal name is an alias. */
2983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2984choke me
2985#else
2986$ac_func();
2987#endif
2988
2989; return 0; }
2990EOF
2ce30166 2991if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
072aa625
NC
2992 rm -rf conftest*
2993 eval "ac_cv_func_$ac_func=yes"
2994else
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2997 rm -rf conftest*
2998 eval "ac_cv_func_$ac_func=no"
2999fi
3000rm -f conftest*
3001fi
3002
3003if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3004 echo "$ac_t""yes" 1>&6
072aa625 3005 cat >> confdefs.h <<EOF
784492b5 3006#define CRAY_STACKSEG_END $ac_func
072aa625 3007EOF
784492b5
ILT
3008
3009 break
072aa625
NC
3010else
3011 echo "$ac_t""no" 1>&6
3012fi
072aa625 3013
784492b5
ILT
3014done
3015fi
072aa625 3016
784492b5 3017echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2ce30166 3018echo "configure:3019: checking stack direction for C alloca" >&5
784492b5 3019if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
072aa625 3020 echo $ac_n "(cached) $ac_c" 1>&6
784492b5
ILT
3021else
3022 if test "$cross_compiling" = yes; then
3023 ac_cv_c_stack_direction=0
072aa625
NC
3024else
3025 cat > conftest.$ac_ext <<EOF
2ce30166 3026#line 3027 "configure"
072aa625 3027#include "confdefs.h"
784492b5
ILT
3028find_stack_direction ()
3029{
3030 static char *addr = 0;
3031 auto char dummy;
3032 if (addr == 0)
3033 {
3034 addr = &dummy;
3035 return find_stack_direction ();
3036 }
3037 else
3038 return (&dummy > addr) ? 1 : -1;
3039}
3040main ()
3041{
3042 exit (find_stack_direction() < 0);
3043}
072aa625 3044EOF
2ce30166 3045if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
784492b5
ILT
3046then
3047 ac_cv_c_stack_direction=1
072aa625
NC
3048else
3049 echo "configure: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
784492b5
ILT
3051 rm -fr conftest*
3052 ac_cv_c_stack_direction=-1
072aa625 3053fi
784492b5 3054rm -fr conftest*
072aa625
NC
3055fi
3056
072aa625
NC
3057fi
3058
784492b5
ILT
3059echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3060cat >> confdefs.h <<EOF
3061#define STACK_DIRECTION $ac_cv_c_stack_direction
072aa625
NC
3062EOF
3063
072aa625
NC
3064fi
3065
784492b5
ILT
3066for ac_hdr in unistd.h
3067do
3068ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3069echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2ce30166 3070echo "configure:3071: checking for $ac_hdr" >&5
072aa625
NC
3071if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3073else
3074 cat > conftest.$ac_ext <<EOF
2ce30166 3075#line 3076 "configure"
072aa625 3076#include "confdefs.h"
784492b5 3077#include <$ac_hdr>
072aa625
NC
3078EOF
3079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2ce30166
GN
3080{ (eval echo configure:3081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3081ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
072aa625
NC
3082if test -z "$ac_err"; then
3083 rm -rf conftest*
3084 eval "ac_cv_header_$ac_safe=yes"
3085else
3086 echo "$ac_err" >&5
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3089 rm -rf conftest*
3090 eval "ac_cv_header_$ac_safe=no"
3091fi
3092rm -f conftest*
3093fi
3094if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
784492b5
ILT
3096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3097 cat >> confdefs.h <<EOF
3098#define $ac_tr_hdr 1
072aa625 3099EOF
784492b5 3100
072aa625 3101else
784492b5 3102 echo "$ac_t""no" 1>&6
072aa625 3103fi
784492b5
ILT
3104done
3105
3106for ac_func in getpagesize
3107do
3108echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2ce30166 3109echo "configure:3110: checking for $ac_func" >&5
784492b5 3110if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
072aa625
NC
3111 echo $ac_n "(cached) $ac_c" 1>&6
3112else
784492b5 3113 cat > conftest.$ac_ext <<EOF
2ce30166 3114#line 3115 "configure"
072aa625 3115#include "confdefs.h"
784492b5
ILT
3116/* System header to define __stub macros and hopefully few prototypes,
3117 which can conflict with char $ac_func(); below. */
3118#include <assert.h>
072aa625
NC
3119/* Override any gcc2 internal prototype to avoid an error. */
3120/* We use char because int might match the return type of a gcc2
3121 builtin and then its argument prototype would still apply. */
784492b5 3122char $ac_func();
072aa625
NC
3123
3124int main() {
784492b5
ILT
3125
3126/* The GNU C library defines this for functions which it implements
3127 to always fail with ENOSYS. Some functions are actually named
3128 something starting with __ and the normal name is an alias. */
3129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3130choke me
3131#else
3132$ac_func();
3133#endif
3134
072aa625
NC
3135; return 0; }
3136EOF
2ce30166 3137if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
072aa625 3138 rm -rf conftest*
784492b5 3139 eval "ac_cv_func_$ac_func=yes"
072aa625
NC
3140else
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3143 rm -rf conftest*
784492b5 3144 eval "ac_cv_func_$ac_func=no"
072aa625
NC
3145fi
3146rm -f conftest*
072aa625 3147fi
784492b5
ILT
3148
3149if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
072aa625 3150 echo "$ac_t""yes" 1>&6
784492b5
ILT
3151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3152 cat >> confdefs.h <<EOF
3153#define $ac_tr_func 1
3154EOF
3155
3156else
3157 echo "$ac_t""no" 1>&6
3158fi
3159done
3160
3161echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2ce30166 3162echo "configure:3163: checking for working mmap" >&5
784492b5 3163if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
072aa625 3164 echo $ac_n "(cached) $ac_c" 1>&6
784492b5
ILT
3165else
3166 if test "$cross_compiling" = yes; then
3167 ac_cv_func_mmap_fixed_mapped=no
072aa625
NC
3168else
3169 cat > conftest.$ac_ext <<EOF
2ce30166 3170#line 3171 "configure"
072aa625
NC
3171#include "confdefs.h"
3172
784492b5
ILT
3173/* Thanks to Mike Haertel and Jim Avera for this test.
3174 Here is a matrix of mmap possibilities:
3175 mmap private not fixed
3176 mmap private fixed at somewhere currently unmapped
3177 mmap private fixed at somewhere already mapped
3178 mmap shared not fixed
3179 mmap shared fixed at somewhere currently unmapped
3180 mmap shared fixed at somewhere already mapped
3181 For private mappings, we should verify that changes cannot be read()
3182 back from the file, nor mmap's back from the file at a different
3183 address. (There have been systems where private was not correctly
3184 implemented like the infamous i386 svr4.0, and systems where the
3185 VM page cache was not coherent with the filesystem buffer cache
3186 like early versions of FreeBSD and possibly contemporary NetBSD.)
3187 For shared mappings, we should conversely verify that changes get
3188 propogated back to all the places they're supposed to be.
3189
3190 Grep wants private fixed already mapped.
3191 The main things grep needs to know about mmap are:
3192 * does it exist and is it safe to write into the mmap'd area
3193 * how to use it (BSD variants) */
3194#include <sys/types.h>
3195#include <fcntl.h>
3196#include <sys/mman.h>
3197
3198/* This mess was copied from the GNU getpagesize.h. */
3199#ifndef HAVE_GETPAGESIZE
3200# ifdef HAVE_UNISTD_H
3201# include <unistd.h>
3202# endif
3203
3204/* Assume that all systems that can run configure have sys/param.h. */
3205# ifndef HAVE_SYS_PARAM_H
3206# define HAVE_SYS_PARAM_H 1
3207# endif
3208
3209# ifdef _SC_PAGESIZE
3210# define getpagesize() sysconf(_SC_PAGESIZE)
3211# else /* no _SC_PAGESIZE */
3212# ifdef HAVE_SYS_PARAM_H
3213# include <sys/param.h>
3214# ifdef EXEC_PAGESIZE
3215# define getpagesize() EXEC_PAGESIZE
3216# else /* no EXEC_PAGESIZE */
3217# ifdef NBPG
3218# define getpagesize() NBPG * CLSIZE
3219# ifndef CLSIZE
3220# define CLSIZE 1
3221# endif /* no CLSIZE */
3222# else /* no NBPG */
3223# ifdef NBPC
3224# define getpagesize() NBPC
3225# else /* no NBPC */
3226# ifdef PAGESIZE
3227# define getpagesize() PAGESIZE
3228# endif /* PAGESIZE */
3229# endif /* no NBPC */
3230# endif /* no NBPG */
3231# endif /* no EXEC_PAGESIZE */
3232# else /* no HAVE_SYS_PARAM_H */
3233# define getpagesize() 8192 /* punt totally */
3234# endif /* no HAVE_SYS_PARAM_H */
3235# endif /* no _SC_PAGESIZE */
3236
3237#endif /* no HAVE_GETPAGESIZE */
3238
3239#ifdef __cplusplus
3240extern "C" { void *malloc(unsigned); }
3241#else
3242char *malloc();
3243#endif
3244
3245int
3246main()
3247{
3248 char *data, *data2, *data3;
3249 int i, pagesize;
3250 int fd;
3251
3252 pagesize = getpagesize();
3253
3254 /*
3255 * First, make a file with some known garbage in it.
3256 */
3257 data = malloc(pagesize);
3258 if (!data)
3259 exit(1);
3260 for (i = 0; i < pagesize; ++i)
3261 *(data + i) = rand();
3262 umask(0);
3263 fd = creat("conftestmmap", 0600);
3264 if (fd < 0)
3265 exit(1);
3266 if (write(fd, data, pagesize) != pagesize)
3267 exit(1);
3268 close(fd);
3269
3270 /*
3271 * Next, try to mmap the file at a fixed address which
3272 * already has something else allocated at it. If we can,
3273 * also make sure that we see the same garbage.
3274 */
3275 fd = open("conftestmmap", O_RDWR);
3276 if (fd < 0)
3277 exit(1);
3278 data2 = malloc(2 * pagesize);
3279 if (!data2)
3280 exit(1);
3281 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3282 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3283 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3284 exit(1);
3285 for (i = 0; i < pagesize; ++i)
3286 if (*(data + i) != *(data2 + i))
3287 exit(1);
3288
3289 /*
3290 * Finally, make sure that changes to the mapped area
3291 * do not percolate back to the file as seen by read().
3292 * (This is a bug on some variants of i386 svr4.0.)
3293 */
3294 for (i = 0; i < pagesize; ++i)
3295 *(data2 + i) = *(data2 + i) + 1;
3296 data3 = malloc(pagesize);
3297 if (!data3)
3298 exit(1);
3299 if (read(fd, data3, pagesize) != pagesize)
3300 exit(1);
3301 for (i = 0; i < pagesize; ++i)
3302 if (*(data + i) != *(data3 + i))
3303 exit(1);
3304 close(fd);
3305 unlink("conftestmmap");
3306 exit(0);
3307}
3308
072aa625 3309EOF
2ce30166 3310if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
784492b5
ILT
3311then
3312 ac_cv_func_mmap_fixed_mapped=yes
072aa625
NC
3313else
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
784492b5
ILT
3316 rm -fr conftest*
3317 ac_cv_func_mmap_fixed_mapped=no
072aa625 3318fi
784492b5 3319rm -fr conftest*
072aa625
NC
3320fi
3321
072aa625
NC
3322fi
3323
784492b5
ILT
3324echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3325if test $ac_cv_func_mmap_fixed_mapped = yes; then
3326 cat >> confdefs.h <<\EOF
3327#define HAVE_MMAP 1
072aa625
NC
3328EOF
3329
784492b5
ILT
3330fi
3331
3332
3333 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3334unistd.h values.h sys/param.h
3335do
3336ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3337echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2ce30166 3338echo "configure:3339: checking for $ac_hdr" >&5
784492b5 3339if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
072aa625
NC
3340 echo $ac_n "(cached) $ac_c" 1>&6
3341else
784492b5 3342 cat > conftest.$ac_ext <<EOF
2ce30166 3343#line 3344 "configure"
784492b5
ILT
3344#include "confdefs.h"
3345#include <$ac_hdr>
3346EOF
3347ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2ce30166
GN
3348{ (eval echo configure:3349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3349ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
784492b5
ILT
3350if test -z "$ac_err"; then
3351 rm -rf conftest*
3352 eval "ac_cv_header_$ac_safe=yes"
3353else
3354 echo "$ac_err" >&5
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3357 rm -rf conftest*
3358 eval "ac_cv_header_$ac_safe=no"
072aa625 3359fi
784492b5
ILT
3360rm -f conftest*
3361fi
3362if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3363 echo "$ac_t""yes" 1>&6
3364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3365 cat >> confdefs.h <<EOF
3366#define $ac_tr_hdr 1
3367EOF
3368
072aa625
NC
3369else
3370 echo "$ac_t""no" 1>&6
3371fi
784492b5
ILT
3372done
3373
3374 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3375__argz_count __argz_stringify __argz_next
072aa625
NC
3376do
3377echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2ce30166 3378echo "configure:3379: checking for $ac_func" >&5
072aa625
NC
3379if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3381else
3382 cat > conftest.$ac_ext <<EOF
2ce30166 3383#line 3384 "configure"
072aa625
NC
3384#include "confdefs.h"
3385/* System header to define __stub macros and hopefully few prototypes,
3386 which can conflict with char $ac_func(); below. */
3387#include <assert.h>
3388/* Override any gcc2 internal prototype to avoid an error. */
3389/* We use char because int might match the return type of a gcc2
3390 builtin and then its argument prototype would still apply. */
3391char $ac_func();
3392
3393int main() {
3394
3395/* The GNU C library defines this for functions which it implements
3396 to always fail with ENOSYS. Some functions are actually named
3397 something starting with __ and the normal name is an alias. */
3398#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3399choke me
3400#else
3401$ac_func();
3402#endif
3403
3404; return 0; }
3405EOF
2ce30166 3406if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
072aa625
NC
3407 rm -rf conftest*
3408 eval "ac_cv_func_$ac_func=yes"
3409else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 eval "ac_cv_func_$ac_func=no"
3414fi
3415rm -f conftest*
3416fi
3417
3418if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3419 echo "$ac_t""yes" 1>&6
3420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3421 cat >> confdefs.h <<EOF
3422#define $ac_tr_func 1
3423EOF
3424
3425else
3426 echo "$ac_t""no" 1>&6
3427fi
3428done
3429
072aa625 3430
784492b5
ILT
3431 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3432 for ac_func in stpcpy
3433do
3434echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2ce30166 3435echo "configure:3436: checking for $ac_func" >&5
784492b5 3436if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
072aa625
NC
3437 echo $ac_n "(cached) $ac_c" 1>&6
3438else
784492b5 3439 cat > conftest.$ac_ext <<EOF
2ce30166 3440#line 3441 "configure"
072aa625 3441#include "confdefs.h"
784492b5
ILT
3442/* System header to define __stub macros and hopefully few prototypes,
3443 which can conflict with char $ac_func(); below. */
3444#include <assert.h>
3445/* Override any gcc2 internal prototype to avoid an error. */
3446/* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3448char $ac_func();
072aa625
NC
3449
3450int main() {
784492b5
ILT
3451
3452/* The GNU C library defines this for functions which it implements
3453 to always fail with ENOSYS. Some functions are actually named
3454 something starting with __ and the normal name is an alias. */
3455#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3456choke me
3457#else
3458$ac_func();
3459#endif
3460
072aa625
NC
3461; return 0; }
3462EOF
2ce30166 3463if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
072aa625 3464 rm -rf conftest*
784492b5 3465 eval "ac_cv_func_$ac_func=yes"
072aa625
NC
3466else
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3469 rm -rf conftest*
784492b5 3470 eval "ac_cv_func_$ac_func=no"
072aa625
NC
3471fi
3472rm -f conftest*
072aa625
NC
3473fi
3474
784492b5
ILT
3475if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3478 cat >> confdefs.h <<EOF
3479#define $ac_tr_func 1
3480EOF
3481
072aa625
NC
3482else
3483 echo "$ac_t""no" 1>&6
3484fi
784492b5 3485done
072aa625 3486
784492b5
ILT
3487 fi
3488 if test "${ac_cv_func_stpcpy}" = "yes"; then
3489 cat >> confdefs.h <<\EOF
3490#define HAVE_STPCPY 1
3491EOF
072aa625 3492
784492b5
ILT
3493 fi
3494
3495 if test $ac_cv_header_locale_h = yes; then
3496 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2ce30166 3497echo "configure:3498: checking for LC_MESSAGES" >&5
784492b5 3498if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
072aa625
NC
3499 echo $ac_n "(cached) $ac_c" 1>&6
3500else
784492b5 3501 cat > conftest.$ac_ext <<EOF
2ce30166 3502#line 3503 "configure"
784492b5
ILT
3503#include "confdefs.h"
3504#include <locale.h>
3505int main() {
3506return LC_MESSAGES
3507; return 0; }
3508EOF
2ce30166 3509if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
784492b5
ILT
3510 rm -rf conftest*
3511 am_cv_val_LC_MESSAGES=yes
072aa625 3512else
784492b5
ILT
3513 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3515 rm -rf conftest*
3516 am_cv_val_LC_MESSAGES=no
3517fi
3518rm -f conftest*
072aa625
NC
3519fi
3520
784492b5
ILT
3521echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3522 if test $am_cv_val_LC_MESSAGES = yes; then
3523 cat >> confdefs.h <<\EOF
3524#define HAVE_LC_MESSAGES 1
3525EOF
072aa625 3526
072aa625 3527 fi
784492b5
ILT
3528 fi
3529 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2ce30166 3530echo "configure:3531: checking whether NLS is requested" >&5
784492b5
ILT
3531 # Check whether --enable-nls or --disable-nls was given.
3532if test "${enable_nls+set}" = set; then
3533 enableval="$enable_nls"
3534 USE_NLS=$enableval
3535else
3536 USE_NLS=yes
3537fi
072aa625 3538
784492b5
ILT
3539 echo "$ac_t""$USE_NLS" 1>&6
3540
072aa625 3541
784492b5 3542 USE_INCLUDED_LIBINTL=no
072aa625 3543
784492b5
ILT
3544 if test "$USE_NLS" = "yes"; then
3545 cat >> confdefs.h <<\EOF
3546#define ENABLE_NLS 1
3547EOF
072aa625 3548
784492b5 3549 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2ce30166 3550echo "configure:3551: checking whether included gettext is requested" >&5
784492b5
ILT
3551 # Check whether --with-included-gettext or --without-included-gettext was given.
3552if test "${with_included_gettext+set}" = set; then
3553 withval="$with_included_gettext"
3554 nls_cv_force_use_gnu_gettext=$withval
3555else
3556 nls_cv_force_use_gnu_gettext=no
3557fi
072aa625 3558
784492b5 3559 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
072aa625 3560
784492b5
ILT
3561 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3562 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3563 nls_cv_header_intl=
3564 nls_cv_header_libgt=
3565 CATOBJEXT=NONE
072aa625 3566
784492b5
ILT
3567 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3568echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2ce30166 3569echo "configure:3570: checking for libintl.h" >&5
072aa625
NC
3570if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3572else
3573 cat > conftest.$ac_ext <<EOF
2ce30166 3574#line 3575 "configure"
072aa625 3575#include "confdefs.h"
784492b5 3576#include <libintl.h>
072aa625
NC
3577EOF
3578ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2ce30166
GN
3579{ (eval echo configure:3580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3580ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
072aa625
NC
3581if test -z "$ac_err"; then
3582 rm -rf conftest*
3583 eval "ac_cv_header_$ac_safe=yes"
3584else
3585 echo "$ac_err" >&5
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 rm -rf conftest*
3589 eval "ac_cv_header_$ac_safe=no"
3590fi
3591rm -f conftest*
3592fi
3593if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
784492b5 3595 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2ce30166 3596echo "configure:3597: checking for gettext in libc" >&5
784492b5
ILT
3597if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
072aa625 3599else
784492b5 3600 cat > conftest.$ac_ext <<EOF
2ce30166 3601#line 3602 "configure"
784492b5
ILT
3602#include "confdefs.h"
3603#include <libintl.h>
3604int main() {
3605return (int) gettext ("")
3606; return 0; }
3607EOF
2ce30166 3608if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
784492b5
ILT
3609 rm -rf conftest*
3610 gt_cv_func_gettext_libc=yes
3611else
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3614 rm -rf conftest*
3615 gt_cv_func_gettext_libc=no
3616fi
3617rm -f conftest*
072aa625
NC
3618fi
3619
784492b5 3620echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
072aa625 3621
784492b5
ILT
3622 if test "$gt_cv_func_gettext_libc" != "yes"; then
3623 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2ce30166 3624echo "configure:3625: checking for bindtextdomain in -lintl" >&5
784492b5
ILT
3625ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3626if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3628else
3629 ac_save_LIBS="$LIBS"
3630LIBS="-lintl $LIBS"
3631cat > conftest.$ac_ext <<EOF
2ce30166 3632#line 3633 "configure"
784492b5
ILT
3633#include "confdefs.h"
3634/* Override any gcc2 internal prototype to avoid an error. */
3635/* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3637char bindtextdomain();
072aa625 3638
784492b5
ILT
3639int main() {
3640bindtextdomain()
3641; return 0; }
3642EOF
2ce30166 3643if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
784492b5
ILT
3644 rm -rf conftest*
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3646else
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3649 rm -rf conftest*
3650 eval "ac_cv_lib_$ac_lib_var=no"
3651fi
3652rm -f conftest*
3653LIBS="$ac_save_LIBS"
072aa625 3654
784492b5
ILT
3655fi
3656if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2ce30166 3659echo "configure:3660: checking for gettext in libintl" >&5
784492b5
ILT
3660if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3662else
3663 cat > conftest.$ac_ext <<EOF
2ce30166 3664#line 3665 "configure"
784492b5 3665#include "confdefs.h"
072aa625 3666
784492b5
ILT
3667int main() {
3668return (int) gettext ("")
3669; return 0; }
3670EOF
2ce30166 3671if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
784492b5
ILT
3672 rm -rf conftest*
3673 gt_cv_func_gettext_libintl=yes
3674else
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 rm -rf conftest*
3678 gt_cv_func_gettext_libintl=no
3679fi
3680rm -f conftest*
3681fi
072aa625 3682
784492b5
ILT
3683echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3684else
3685 echo "$ac_t""no" 1>&6
3686fi
072aa625 3687
784492b5
ILT
3688 fi
3689
3690 if test "$gt_cv_func_gettext_libc" = "yes" \
3691 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3692 cat >> confdefs.h <<\EOF
3693#define HAVE_GETTEXT 1
3694EOF
3695
3696 # Extract the first word of "msgfmt", so it can be a program name with args.
3697set dummy msgfmt; ac_word=$2
3698echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 3699echo "configure:3700: checking for $ac_word" >&5
784492b5
ILT
3700if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3702else
3703 case "$MSGFMT" in
3704 /*)
3705 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3706 ;;
3707 *)
3708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3709 for ac_dir in $PATH; do
3710 test -z "$ac_dir" && ac_dir=.
3711 if test -f $ac_dir/$ac_word; then
3712 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3713 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3714 break
3715 fi
3716 fi
3717 done
3718 IFS="$ac_save_ifs"
3719 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3720 ;;
3721esac
3722fi
3723MSGFMT="$ac_cv_path_MSGFMT"
3724if test -n "$MSGFMT"; then
3725 echo "$ac_t""$MSGFMT" 1>&6
072aa625 3726else
784492b5 3727 echo "$ac_t""no" 1>&6
072aa625 3728fi
784492b5
ILT
3729 if test "$MSGFMT" != "no"; then
3730 for ac_func in dcgettext
3731do
3732echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2ce30166 3733echo "configure:3734: checking for $ac_func" >&5
784492b5 3734if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
072aa625
NC
3735 echo $ac_n "(cached) $ac_c" 1>&6
3736else
3737 cat > conftest.$ac_ext <<EOF
2ce30166 3738#line 3739 "configure"
072aa625 3739#include "confdefs.h"
784492b5
ILT
3740/* System header to define __stub macros and hopefully few prototypes,
3741 which can conflict with char $ac_func(); below. */
3742#include <assert.h>
3743/* Override any gcc2 internal prototype to avoid an error. */
3744/* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3746char $ac_func();
072aa625
NC
3747
3748int main() {
784492b5
ILT
3749
3750/* The GNU C library defines this for functions which it implements
3751 to always fail with ENOSYS. Some functions are actually named
3752 something starting with __ and the normal name is an alias. */
3753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3754choke me
3755#else
3756$ac_func();
3757#endif
3758
072aa625
NC
3759; return 0; }
3760EOF
2ce30166 3761if { (eval echo configure:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
072aa625 3762 rm -rf conftest*
784492b5 3763 eval "ac_cv_func_$ac_func=yes"
072aa625
NC
3764else
3765 echo "configure: failed program was:" >&5
3766 cat conftest.$ac_ext >&5
3767 rm -rf conftest*
784492b5 3768 eval "ac_cv_func_$ac_func=no"
072aa625
NC
3769fi
3770rm -f conftest*
072aa625
NC
3771fi
3772
784492b5
ILT
3773if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3774 echo "$ac_t""yes" 1>&6
3775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3776 cat >> confdefs.h <<EOF
3777#define $ac_tr_func 1
3778EOF
3779
3780else
3781 echo "$ac_t""no" 1>&6
3782fi
3783done
3784
3785 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3786set dummy gmsgfmt; ac_word=$2
3787echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 3788echo "configure:3789: checking for $ac_word" >&5
784492b5 3789if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
072aa625
NC
3790 echo $ac_n "(cached) $ac_c" 1>&6
3791else
784492b5
ILT
3792 case "$GMSGFMT" in
3793 /*)
3794 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3795 ;;
3796 ?:/*)
3797 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3798 ;;
3799 *)
2ce30166
GN
3800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3801 ac_dummy="$PATH"
3802 for ac_dir in $ac_dummy; do
784492b5
ILT
3803 test -z "$ac_dir" && ac_dir=.
3804 if test -f $ac_dir/$ac_word; then
3805 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3806 break
3807 fi
3808 done
3809 IFS="$ac_save_ifs"
3810 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3811 ;;
3812esac
3813fi
3814GMSGFMT="$ac_cv_path_GMSGFMT"
3815if test -n "$GMSGFMT"; then
3816 echo "$ac_t""$GMSGFMT" 1>&6
3817else
3818 echo "$ac_t""no" 1>&6
3819fi
3820
3821 # Extract the first word of "xgettext", so it can be a program name with args.
3822set dummy xgettext; ac_word=$2
3823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 3824echo "configure:3825: checking for $ac_word" >&5
784492b5
ILT
3825if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827else
3828 case "$XGETTEXT" in
3829 /*)
3830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3831 ;;
3832 *)
3833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3834 for ac_dir in $PATH; do
3835 test -z "$ac_dir" && ac_dir=.
3836 if test -f $ac_dir/$ac_word; then
3837 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3838 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3839 break
3840 fi
3841 fi
3842 done
3843 IFS="$ac_save_ifs"
3844 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3845 ;;
3846esac
3847fi
3848XGETTEXT="$ac_cv_path_XGETTEXT"
3849if test -n "$XGETTEXT"; then
3850 echo "$ac_t""$XGETTEXT" 1>&6
3851else
3852 echo "$ac_t""no" 1>&6
3853fi
3854
3855 cat > conftest.$ac_ext <<EOF
2ce30166 3856#line 3857 "configure"
072aa625
NC
3857#include "confdefs.h"
3858
3859int main() {
784492b5
ILT
3860extern int _nl_msg_cat_cntr;
3861 return _nl_msg_cat_cntr
072aa625
NC
3862; return 0; }
3863EOF
2ce30166 3864if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
072aa625 3865 rm -rf conftest*
784492b5
ILT
3866 CATOBJEXT=.gmo
3867 DATADIRNAME=share
072aa625
NC
3868else
3869 echo "configure: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3871 rm -rf conftest*
784492b5
ILT
3872 CATOBJEXT=.mo
3873 DATADIRNAME=lib
072aa625
NC
3874fi
3875rm -f conftest*
784492b5
ILT
3876 INSTOBJEXT=.mo
3877 fi
3878 fi
3879
3880else
3881 echo "$ac_t""no" 1>&6
072aa625
NC
3882fi
3883
072aa625 3884
784492b5
ILT
3885
3886 if test "$CATOBJEXT" = "NONE"; then
3887 nls_cv_use_gnu_gettext=yes
3888 fi
3889 fi
072aa625 3890
784492b5
ILT
3891 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3892 INTLOBJS="\$(GETTOBJS)"
3893 # Extract the first word of "msgfmt", so it can be a program name with args.
3894set dummy msgfmt; ac_word=$2
3895echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 3896echo "configure:3897: checking for $ac_word" >&5
784492b5 3897if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
072aa625
NC
3898 echo $ac_n "(cached) $ac_c" 1>&6
3899else
784492b5
ILT
3900 case "$MSGFMT" in
3901 /*)
3902 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3903 ;;
3904 *)
3905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3906 for ac_dir in $PATH; do
3907 test -z "$ac_dir" && ac_dir=.
3908 if test -f $ac_dir/$ac_word; then
3909 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3910 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3911 break
3912 fi
3913 fi
3914 done
3915 IFS="$ac_save_ifs"
3916 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3917 ;;
3918esac
072aa625 3919fi
784492b5
ILT
3920MSGFMT="$ac_cv_path_MSGFMT"
3921if test -n "$MSGFMT"; then
3922 echo "$ac_t""$MSGFMT" 1>&6
3923else
3924 echo "$ac_t""no" 1>&6
072aa625 3925fi
072aa625 3926
784492b5
ILT
3927 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3928set dummy gmsgfmt; ac_word=$2
072aa625 3929echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 3930echo "configure:3931: checking for $ac_word" >&5
784492b5 3931if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
072aa625
NC
3932 echo $ac_n "(cached) $ac_c" 1>&6
3933else
784492b5
ILT
3934 case "$GMSGFMT" in
3935 /*)
3936 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3937 ;;
3938 ?:/*)
3939 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3940 ;;
3941 *)
2ce30166
GN
3942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3943 ac_dummy="$PATH"
3944 for ac_dir in $ac_dummy; do
072aa625
NC
3945 test -z "$ac_dir" && ac_dir=.
3946 if test -f $ac_dir/$ac_word; then
784492b5 3947 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
072aa625
NC
3948 break
3949 fi
3950 done
3951 IFS="$ac_save_ifs"
784492b5
ILT
3952 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3953 ;;
3954esac
072aa625 3955fi
784492b5
ILT
3956GMSGFMT="$ac_cv_path_GMSGFMT"
3957if test -n "$GMSGFMT"; then
3958 echo "$ac_t""$GMSGFMT" 1>&6
072aa625
NC
3959else
3960 echo "$ac_t""no" 1>&6
3961fi
3962
784492b5
ILT
3963 # Extract the first word of "xgettext", so it can be a program name with args.
3964set dummy xgettext; ac_word=$2
072aa625 3965echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2ce30166 3966echo "configure:3967: checking for $ac_word" >&5
784492b5 3967if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
072aa625
NC
3968 echo $ac_n "(cached) $ac_c" 1>&6
3969else
784492b5
ILT
3970 case "$XGETTEXT" in
3971 /*)
3972 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3973 ;;
3974 *)
072aa625 3975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
072aa625
NC
3976 for ac_dir in $PATH; do
3977 test -z "$ac_dir" && ac_dir=.
3978 if test -f $ac_dir/$ac_word; then
784492b5
ILT
3979 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3980 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3981 break
072aa625 3982 fi
072aa625
NC
3983 fi
3984 done
3985 IFS="$ac_save_ifs"
784492b5
ILT
3986 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3987 ;;
3988esac
072aa625 3989fi
784492b5
ILT
3990XGETTEXT="$ac_cv_path_XGETTEXT"
3991if test -n "$XGETTEXT"; then
3992 echo "$ac_t""$XGETTEXT" 1>&6
7919b9ec
ILT
3993else
3994 echo "$ac_t""no" 1>&6
3995fi
3996
784492b5
ILT
3997
3998 USE_INCLUDED_LIBINTL=yes
3999 CATOBJEXT=.gmo
4000 INSTOBJEXT=.mo
4001 DATADIRNAME=share
4002 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4003 INTLLIBS=$INTLDEPS
4004 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4005 nls_cv_header_intl=libintl.h
4006 nls_cv_header_libgt=libgettext.h
4007 fi
c62d1274 4008
784492b5
ILT
4009 if test "$XGETTEXT" != ":"; then
4010 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4011 : ;
4012 else
4013 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4014 XGETTEXT=":"
4015 fi
4016 fi
9c03036a 4017
784492b5
ILT
4018 # We need to process the po/ directory.
4019 POSUB=po
4020 else
4021 DATADIRNAME=share
4022 nls_cv_header_intl=libintl.h
4023 nls_cv_header_libgt=libgettext.h
4024 fi
9c03036a 4025
784492b5
ILT
4026 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4027 # because some of the sources are only built for this goal.
4028 if test "$PACKAGE" = gettext; then
4029 USE_NLS=yes
4030 USE_INCLUDED_LIBINTL=yes
4031 fi
4032
4033 for lang in $ALL_LINGUAS; do
4034 GMOFILES="$GMOFILES $lang.gmo"
4035 POFILES="$POFILES $lang.po"
4036 done
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051 if test "x$CATOBJEXT" != "x"; then
4052 if test "x$ALL_LINGUAS" = "x"; then
4053 LINGUAS=
4054 else
4055 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2ce30166 4056echo "configure:4057: checking for catalogs to be installed" >&5
784492b5
ILT
4057 NEW_LINGUAS=
4058 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4059 case "$ALL_LINGUAS" in
4060 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4061 esac
4062 done
4063 LINGUAS=$NEW_LINGUAS
4064 echo "$ac_t""$LINGUAS" 1>&6
4065 fi
4066
4067 if test -n "$LINGUAS"; then
4068 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4069 fi
4070 fi
4071
4072 if test $ac_cv_header_locale_h = yes; then
4073 INCLUDE_LOCALE_H="#include <locale.h>"
4074 else
4075 INCLUDE_LOCALE_H="\
4076/* The system does not provide the header <locale.h>. Take care yourself. */"
4077 fi
4078
4079
4080 if test -f $srcdir/po2tbl.sed.in; then
4081 if test "$CATOBJEXT" = ".cat"; then
4082 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4083echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2ce30166 4084echo "configure:4085: checking for linux/version.h" >&5
784492b5
ILT
4085if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4087else
4088 cat > conftest.$ac_ext <<EOF
2ce30166 4089#line 4090 "configure"
9c03036a 4090#include "confdefs.h"
784492b5 4091#include <linux/version.h>
9c03036a 4092EOF
784492b5 4093ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2ce30166
GN
4094{ (eval echo configure:4095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4095ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
784492b5
ILT
4096if test -z "$ac_err"; then
4097 rm -rf conftest*
4098 eval "ac_cv_header_$ac_safe=yes"
9c03036a 4099else
784492b5 4100 echo "$ac_err" >&5
9c03036a
DE
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
784492b5
ILT
4103 rm -rf conftest*
4104 eval "ac_cv_header_$ac_safe=no"
9c03036a 4105fi
784492b5 4106rm -f conftest*
9c03036a 4107fi
784492b5
ILT
4108if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4110 msgformat=linux
00103dfa 4111else
784492b5
ILT
4112 echo "$ac_t""no" 1>&6
4113msgformat=xopen
00103dfa
ILT
4114fi
4115
9c03036a 4116
784492b5
ILT
4117 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4118 fi
4119 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4120 $srcdir/po2tbl.sed.in > po2tbl.sed
4121 fi
00103dfa 4122
784492b5
ILT
4123 if test "$PACKAGE" = "gettext"; then
4124 GT_NO="#NO#"
4125 GT_YES=
4126 else
4127 GT_NO=
4128 GT_YES="#YES#"
4129 fi
4130
4131
00103dfa 4132
784492b5
ILT
4133 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4134
4135
4136 l=
4137
9b65d522 4138
784492b5
ILT
4139 if test -d $srcdir/po; then
4140 test -d po || mkdir po
4141 if test "x$srcdir" != "x."; then
4142 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4143 posrcprefix="$srcdir/"
4144 else
4145 posrcprefix="../$srcdir/"
4146 fi
4147 else
4148 posrcprefix="../"
4149 fi
4150 rm -f po/POTFILES
4151 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4152 < $srcdir/po/POTFILES.in > po/POTFILES
4153 fi
4154
9b65d522 4155
46bcd2ec
ILT
4156. ${srcdir}/../bfd/configure.host
4157
40db6118 4158
7919b9ec 4159
1daed53f 4160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
e3659cbf 4161
e7c50cef 4162
9c03036a 4163for ac_hdr in string.h strings.h stdlib.h
c62d1274 4164do
9c03036a 4165ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c62d1274 4166echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2ce30166 4167echo "configure:4168: checking for $ac_hdr" >&5
c62d1274
ILT
4168if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4170else
4171 cat > conftest.$ac_ext <<EOF
2ce30166 4172#line 4173 "configure"
c62d1274
ILT
4173#include "confdefs.h"
4174#include <$ac_hdr>
4175EOF
7919b9ec 4176ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2ce30166
GN
4177{ (eval echo configure:4178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4178ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c62d1274
ILT
4179if test -z "$ac_err"; then
4180 rm -rf conftest*
4181 eval "ac_cv_header_$ac_safe=yes"
4182else
4183 echo "$ac_err" >&5
9c03036a
DE
4184 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
c62d1274
ILT
4186 rm -rf conftest*
4187 eval "ac_cv_header_$ac_safe=no"
4188fi
4189rm -f conftest*
4190fi
4191if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
9c03036a 4193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c62d1274
ILT
4194 cat >> confdefs.h <<EOF
4195#define $ac_tr_hdr 1
4196EOF
4197
4198else
4199 echo "$ac_t""no" 1>&6
4200fi
4201done
4202
4203
bfc10abe 4204# start-sanitize-cygnus
69ad8cac 4205cgen_maint=no
2ce30166
GN
4206# Default is to use one in build tree.
4207cgen=../cgen/cgen
4208cgendir='$(srcdir)/../cgen'
69ad8cac 4209# Having --enable-maintainer-mode take arguments is another way to go.
2ce30166
GN
4210# ??? One can argue --with is more appropriate if one wants to specify
4211# a directory name, but what we're doing here is an enable/disable kind
4212# of thing and specifying both --enable and --with is klunky.
4213# If you reeely want this to be --with, go ahead and change it.
69ad8cac
ILT
4214# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
4215if test "${enable_cgen_maint+set}" = set; then
4216 enableval="$enable_cgen_maint"
4217 case "${enableval}" in
2ce30166
GN
4218 yes) cgen_maint=yes ;;
4219 no) cgen_maint=no ;;
4220 *)
4221 # argument is cgen install directory (not implemented yet).
4222 # Having a `share' directory might be more appropriate for the .scm,
4223 # .cpu, etc. files.
4224 cgen_maint=yes
4225 cgendir=${cgen_maint}/lib/cgen
4226 cgen=${cgendir}/bin/cgen
4227 ;;
69ad8cac
ILT
4228esac
4229fi
4230
4231
4232if test x${cgen_maint} = xyes; then
4233 CGEN_MAINT_TRUE=
4234 CGEN_MAINT_FALSE='#'
4235else
4236 CGEN_MAINT_TRUE='#'
4237 CGEN_MAINT_FALSE=
4238fi
bfc10abe 4239
2ce30166 4240
bfc10abe
DE
4241# end-sanitize-cygnus
4242
072aa625
NC
4243# Horrible hacks to build DLLs on Windows.
4244WIN32LDFLAGS=
4245WIN32LIBADD=
4246case "${host}" in
2ce30166 4247*-*-cygwin*)
072aa625
NC
4248 if test "$enable_shared" = "yes"; then
4249 WIN32LDFLAGS="-no-undefined"
69ad8cac 4250 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
072aa625
NC
4251 fi
4252 ;;
4253esac
4254
4255
4256
c62d1274
ILT
4257# target-specific stuff:
4258
4259# Canonicalize the secondary target names.
4260if test -n "$enable_targets" ; then
4261 for targ in `echo $enable_targets | sed 's/,/ /g'`
4262 do
1daed53f 4263 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
c62d1274
ILT
4264 if test -n "$result" ; then
4265 canon_targets="$canon_targets $result"
4266 else
4267 # Allow targets that config.sub doesn't recognize, like "all".
4268 canon_targets="$canon_targets $targ"
4269 fi
4270 done
4271fi
4272
4273all_targets=false
4274selarchs=
4275for targ in $target $canon_targets
4276do
4277 if test "x$targ" = "xall" ; then
4278 all_targets=true
4279 else
4280 . $srcdir/../bfd/config.bfd
4281 selarchs="$selarchs $targ_archs"
4282 fi
4283done
4284
9c03036a
DE
4285# Utility var, documents generic cgen support files.
4286
1daed53f 4287cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
9c03036a 4288
c62d1274
ILT
4289# We don't do any links based on the target system, just makefile config.
4290
4291if test x${all_targets} = xfalse ; then
4292
4293 # Target architecture .o files.
4294 ta=
4295
4296 for arch in $selarchs
4297 do
4298 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4299 archdefs="$archdefs -DARCH_$ad"
4300 case "$arch" in
1daed53f 4301 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
00103dfa 4302 bfd_alliant_arch) ;;
1daed53f 4303 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
1daed53f 4304 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
1daed53f 4305 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
00103dfa 4306 bfd_convex_arch) ;;
1daed53f 4307 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
1daed53f 4308 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
1daed53f
ILT
4309 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
4310 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
4311 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
4312 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
f98c3369 4313 bfd_i860_arch) ;;
1daed53f
ILT
4314 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
4315 bfd_m32r_arch) ta="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;;
4316 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
4317 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
4318 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4319 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
4320 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
4321 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
4322 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
00103dfa
ILT
4323 bfd_pyramid_arch) ;;
4324 bfd_romp_arch) ;;
1daed53f
ILT
4325 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4326 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
4327 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
00103dfa 4328 bfd_tahoe_arch) ;;
788e3f91 4329 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
b2e3f844 4330# start-sanitize-tic80
1daed53f 4331 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
b2e3f844 4332# end-sanitize-tic80
80c396f6 4333# start-sanitize-sky
37130f11 4334 bfd_dvp_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
80c396f6 4335# end-sanitize-sky
1daed53f 4336 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
a3515171
CP
4337# start-sanitize-v850e
4338 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
cd66558c 4339 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
a3515171 4340# end-sanitize-v850e
69ad8cac 4341 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
1daed53f 4342 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
c62d1274 4343 bfd_we32k_arch) ;;
1daed53f 4344 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
c62d1274
ILT
4345
4346 "") ;;
4347 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4348 esac
4349 done
4350
4351 # Weed out duplicate .o files.
4352 f=""
4353 for i in $ta ; do
4354 case " $f " in
4355 *" $i "*) ;;
4356 *) f="$f $i" ;;
4357 esac
4358 done
4359 ta="$f"
4360
4361 # And duplicate -D flags.
4362 f=""
4363 for i in $archdefs ; do
4364 case " $f " in
4365 *" $i "*) ;;
4366 *) f="$f $i" ;;
4367 esac
4368 done
4369 archdefs="$f"
4370
4371 BFD_MACHINES="$ta"
4372
4373else # all_targets is true
4374 archdefs=-DARCH_all
4375 BFD_MACHINES='$(ALL_MACHINES)'
4376fi
4377
4378
4379
4380
c62d1274
ILT
4381trap '' 1 2 15
4382cat > confcache <<\EOF
4383# This file is a shell script that caches the results of configure
4384# tests run on this system so they can be shared between configure
4385# scripts and configure runs. It is not useful on other systems.
4386# If it contains results you don't want to keep, you may remove or edit it.
4387#
4388# By default, configure uses ./config.cache as the cache file,
4389# creating it if it does not exist already. You can give configure
4390# the --cache-file=FILE option to use a different cache file; that is
4391# what configure does when it calls configure scripts in
4392# subdirectories, so they share the cache.
4393# Giving --cache-file=/dev/null disables caching, for debugging configure.
4394# config.status only pays attention to the cache file if you give it the
4395# --recheck option to rerun configure.
4396#
4397EOF
9c03036a
DE
4398# The following way of writing the cache mishandles newlines in values,
4399# but we know of no workaround that is simple, portable, and efficient.
4400# So, don't put newlines in cache variables' values.
c62d1274
ILT
4401# Ultrix sh set writes to stderr and can't be redirected directly,
4402# and sets the high bit in the cache file unless we assign to the vars.
4403(set) 2>&1 |
2ce30166 4404 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9c03036a
DE
4405 *ac_space=\ *)
4406 # `set' does not quote correctly, so add quotes (double-quote substitution
4407 # turns \\\\ into \\, and sed turns \\ into \).
4408 sed -n \
4409 -e "s/'/'\\\\''/g" \
4410 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4411 ;;
4412 *)
4413 # `set' quotes correctly as required by POSIX, so do not add quotes.
4414 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4415 ;;
4416 esac >> confcache
c62d1274
ILT
4417if cmp -s $cache_file confcache; then
4418 :
4419else
4420 if test -w $cache_file; then
4421 echo "updating cache $cache_file"
4422 cat confcache > $cache_file
4423 else
4424 echo "not updating unwritable cache $cache_file"
4425 fi
4426fi
4427rm -f confcache
4428
4429trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4430
4431test "x$prefix" = xNONE && prefix=$ac_default_prefix
4432# Let make expand exec_prefix.
4433test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4434
4435# Any assignment to VPATH causes Sun make to only execute
4436# the first set of double-colon rules, so remove it if not needed.
4437# If there is a colon in the path, we need to keep it.
4438if test "x$srcdir" = x.; then
4439 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4440fi
4441
4442trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4443
4444DEFS=-DHAVE_CONFIG_H
4445
4446# Without the "./", some shells look in PATH for config.status.
4447: ${CONFIG_STATUS=./config.status}
4448
4449echo creating $CONFIG_STATUS
4450rm -f $CONFIG_STATUS
4451cat > $CONFIG_STATUS <<EOF
4452#! /bin/sh
4453# Generated automatically by configure.
4454# Run this file to recreate the current configuration.
4455# This directory was configured as follows,
4456# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4457#
4458# $0 $ac_configure_args
4459#
4460# Compiler output produced by configure, useful for debugging
4461# configure, is in ./config.log if it exists.
4462
4463ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4464for ac_option
4465do
4466 case "\$ac_option" in
4467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4468 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4469 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4470 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2ce30166 4471 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
c62d1274
ILT
4472 exit 0 ;;
4473 -help | --help | --hel | --he | --h)
4474 echo "\$ac_cs_usage"; exit 0 ;;
4475 *) echo "\$ac_cs_usage"; exit 1 ;;
4476 esac
4477done
4478
4479ac_given_srcdir=$srcdir
9b65d522 4480ac_given_INSTALL="$INSTALL"
c62d1274 4481
072aa625 4482trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
e0bf1022
ILT
4483EOF
4484cat >> $CONFIG_STATUS <<EOF
c62d1274 4485
00103dfa 4486# Protect against being on the right side of a sed subst in config.status.
e0bf1022
ILT
4487sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4488 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
c62d1274
ILT
4489$ac_vpsub
4490$extrasub
cd66558c 4491s%@SHELL@%$SHELL%g
c62d1274
ILT
4492s%@CFLAGS@%$CFLAGS%g
4493s%@CPPFLAGS@%$CPPFLAGS%g
4494s%@CXXFLAGS@%$CXXFLAGS%g
2ce30166 4495s%@FFLAGS@%$FFLAGS%g
c62d1274
ILT
4496s%@DEFS@%$DEFS%g
4497s%@LDFLAGS@%$LDFLAGS%g
4498s%@LIBS@%$LIBS%g
4499s%@exec_prefix@%$exec_prefix%g
4500s%@prefix@%$prefix%g
4501s%@program_transform_name@%$program_transform_name%g
00103dfa
ILT
4502s%@bindir@%$bindir%g
4503s%@sbindir@%$sbindir%g
4504s%@libexecdir@%$libexecdir%g
4505s%@datadir@%$datadir%g
4506s%@sysconfdir@%$sysconfdir%g
4507s%@sharedstatedir@%$sharedstatedir%g
4508s%@localstatedir@%$localstatedir%g
4509s%@libdir@%$libdir%g
4510s%@includedir@%$includedir%g
4511s%@oldincludedir@%$oldincludedir%g
4512s%@infodir@%$infodir%g
4513s%@mandir@%$mandir%g
c62d1274
ILT
4514s%@host@%$host%g
4515s%@host_alias@%$host_alias%g
4516s%@host_cpu@%$host_cpu%g
4517s%@host_vendor@%$host_vendor%g
4518s%@host_os@%$host_os%g
4519s%@target@%$target%g
4520s%@target_alias@%$target_alias%g
4521s%@target_cpu@%$target_cpu%g
4522s%@target_vendor@%$target_vendor%g
4523s%@target_os@%$target_os%g
4524s%@build@%$build%g
4525s%@build_alias@%$build_alias%g
4526s%@build_cpu@%$build_cpu%g
4527s%@build_vendor@%$build_vendor%g
4528s%@build_os@%$build_os%g
784492b5 4529s%@CC@%$CC%g
1daed53f 4530s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1daed53f 4531s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2ce30166 4532s%@INSTALL_DATA@%$INSTALL_DATA%g
1daed53f
ILT
4533s%@PACKAGE@%$PACKAGE%g
4534s%@VERSION@%$VERSION%g
4535s%@ACLOCAL@%$ACLOCAL%g
4536s%@AUTOCONF@%$AUTOCONF%g
4537s%@AUTOMAKE@%$AUTOMAKE%g
4538s%@AUTOHEADER@%$AUTOHEADER%g
4539s%@MAKEINFO@%$MAKEINFO%g
4540s%@SET_MAKE@%$SET_MAKE%g
cd66558c 4541s%@AR@%$AR%g
1daed53f
ILT
4542s%@RANLIB@%$RANLIB%g
4543s%@LD@%$LD%g
788e3f91 4544s%@NM@%$NM%g
1daed53f
ILT
4545s%@LN_S@%$LN_S%g
4546s%@LIBTOOL@%$LIBTOOL%g
f113ea6b
NC
4547s%@DLLTOOL@%$DLLTOOL%g
4548s%@AS@%$AS%g
784492b5
ILT
4549s%@MAINT@%$MAINT%g
4550s%@EXEEXT@%$EXEEXT%g
072aa625
NC
4551s%@CPP@%$CPP%g
4552s%@ALLOCA@%$ALLOCA%g
4553s%@USE_NLS@%$USE_NLS%g
4554s%@MSGFMT@%$MSGFMT%g
4555s%@GMSGFMT@%$GMSGFMT%g
4556s%@XGETTEXT@%$XGETTEXT%g
4557s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4558s%@CATALOGS@%$CATALOGS%g
4559s%@CATOBJEXT@%$CATOBJEXT%g
4560s%@DATADIRNAME@%$DATADIRNAME%g
4561s%@GMOFILES@%$GMOFILES%g
4562s%@INSTOBJEXT@%$INSTOBJEXT%g
4563s%@INTLDEPS@%$INTLDEPS%g
4564s%@INTLLIBS@%$INTLLIBS%g
4565s%@INTLOBJS@%$INTLOBJS%g
4566s%@POFILES@%$POFILES%g
4567s%@POSUB@%$POSUB%g
4568s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4569s%@GT_NO@%$GT_NO%g
4570s%@GT_YES@%$GT_YES%g
4571s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4572s%@l@%$l%g
824155e8 4573s%@HDEFINES@%$HDEFINES%g
69ad8cac
ILT
4574s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4575s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
2ce30166
GN
4576s%@cgendir@%$cgendir%g
4577s%@cgen@%$cgen%g
072aa625
NC
4578s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4579s%@WIN32LIBADD@%$WIN32LIBADD%g
c62d1274
ILT
4580s%@archdefs@%$archdefs%g
4581s%@BFD_MACHINES@%$BFD_MACHINES%g
4582
4583CEOF
4584EOF
9c03036a
DE
4585
4586cat >> $CONFIG_STATUS <<\EOF
4587
4588# Split the substitutions into bite-sized pieces for seds with
4589# small command number limits, like on Digital OSF/1 and HP-UX.
4590ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4591ac_file=1 # Number of current file.
4592ac_beg=1 # First line for current file.
4593ac_end=$ac_max_sed_cmds # Line after last line for current file.
4594ac_more_lines=:
4595ac_sed_cmds=""
4596while $ac_more_lines; do
4597 if test $ac_beg -gt 1; then
4598 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4599 else
4600 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4601 fi
4602 if test ! -s conftest.s$ac_file; then
4603 ac_more_lines=false
4604 rm -f conftest.s$ac_file
4605 else
4606 if test -z "$ac_sed_cmds"; then
4607 ac_sed_cmds="sed -f conftest.s$ac_file"
4608 else
4609 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4610 fi
4611 ac_file=`expr $ac_file + 1`
4612 ac_beg=$ac_end
4613 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4614 fi
4615done
4616if test -z "$ac_sed_cmds"; then
4617 ac_sed_cmds=cat
4618fi
4619EOF
4620
c62d1274
ILT
4621cat >> $CONFIG_STATUS <<EOF
4622
072aa625 4623CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
c62d1274
ILT
4624EOF
4625cat >> $CONFIG_STATUS <<\EOF
4626for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9c03036a 4627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c62d1274 4628 case "$ac_file" in
9c03036a 4629 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
c62d1274
ILT
4630 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4631 *) ac_file_in="${ac_file}.in" ;;
4632 esac
4633
9c03036a 4634 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
c62d1274
ILT
4635
4636 # Remove last slash and all that follows it. Not all systems have dirname.
4637 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4638 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4639 # The file is in a subdirectory.
4640 test ! -d "$ac_dir" && mkdir "$ac_dir"
4641 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4642 # A "../" for each directory in $ac_dir_suffix.
4643 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4644 else
4645 ac_dir_suffix= ac_dots=
4646 fi
4647
4648 case "$ac_given_srcdir" in
4649 .) srcdir=.
4650 if test -z "$ac_dots"; then top_srcdir=.
4651 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4652 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4653 *) # Relative path.
4654 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4655 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4656 esac
4657
9b65d522
ILT
4658 case "$ac_given_INSTALL" in
4659 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4660 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4661 esac
9c03036a 4662
c62d1274
ILT
4663 echo creating "$ac_file"
4664 rm -f "$ac_file"
4665 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4666 case "$ac_file" in
4667 *Makefile*) ac_comsub="1i\\
4668# $configure_input" ;;
4669 *) ac_comsub= ;;
4670 esac
9c03036a
DE
4671
4672 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
c62d1274
ILT
4673 sed -e "$ac_comsub
4674s%@configure_input@%$configure_input%g
4675s%@srcdir@%$srcdir%g
4676s%@top_srcdir@%$top_srcdir%g
9b65d522 4677s%@INSTALL@%$INSTALL%g
9c03036a 4678" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
c62d1274 4679fi; done
9c03036a 4680rm -f conftest.s*
c62d1274
ILT
4681
4682# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4683# NAME is the cpp macro being defined and VALUE is the value it is being given.
4684#
4685# ac_d sets the value in "#define NAME VALUE" lines.
4686ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4687ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4688ac_dC='\3'
4689ac_dD='%g'
4690# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4691ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4692ac_uB='\([ ]\)%\1#\2define\3'
4693ac_uC=' '
4694ac_uD='\4%g'
4695# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4696ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4697ac_eB='$%\1#\2define\3'
4698ac_eC=' '
4699ac_eD='%g'
4700
9c03036a
DE
4701if test "${CONFIG_HEADERS+set}" != set; then
4702EOF
4703cat >> $CONFIG_STATUS <<EOF
4704 CONFIG_HEADERS="config.h:config.in"
4705EOF
4706cat >> $CONFIG_STATUS <<\EOF
4707fi
c62d1274 4708for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9c03036a 4709 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c62d1274 4710 case "$ac_file" in
9c03036a 4711 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
c62d1274
ILT
4712 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4713 *) ac_file_in="${ac_file}.in" ;;
4714 esac
4715
4716 echo creating $ac_file
4717
4718 rm -f conftest.frag conftest.in conftest.out
9c03036a
DE
4719 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4720 cat $ac_file_inputs > conftest.in
c62d1274
ILT
4721
4722EOF
4723
4724# Transform confdefs.h into a sed script conftest.vals that substitutes
4725# the proper values into config.h.in to produce config.h. And first:
00103dfa 4726# Protect against being on the right side of a sed subst in config.status.
c62d1274
ILT
4727# Protect against being in an unquoted here document in config.status.
4728rm -f conftest.vals
4729cat > conftest.hdr <<\EOF
4730s/[\\&%]/\\&/g
4731s%[\\$`]%\\&%g
e3659cbf 4732s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
c62d1274
ILT
4733s%ac_d%ac_u%gp
4734s%ac_u%ac_e%gp
4735EOF
4736sed -n -f conftest.hdr confdefs.h > conftest.vals
4737rm -f conftest.hdr
4738
4739# This sed command replaces #undef with comments. This is necessary, for
4740# example, in the case of _POSIX_SOURCE, which is predefined and required
4741# on some systems where configure will not decide to define it.
4742cat >> conftest.vals <<\EOF
4743s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4744EOF
4745
4746# Break up conftest.vals because some shells have a limit on
4747# the size of here documents, and old seds have small limits too.
c62d1274
ILT
4748
4749rm -f conftest.tail
4750while :
4751do
4752 ac_lines=`grep -c . conftest.vals`
4753 # grep -c gives empty output for an empty file on some AIX systems.
4754 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4755 # Write a limited-size here document to conftest.frag.
4756 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4757 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4758 echo 'CEOF
4759 sed -f conftest.frag conftest.in > conftest.out
4760 rm -f conftest.in
4761 mv conftest.out conftest.in
4762' >> $CONFIG_STATUS
4763 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4764 rm -f conftest.vals
4765 mv conftest.tail conftest.vals
4766done
4767rm -f conftest.vals
4768
4769cat >> $CONFIG_STATUS <<\EOF
4770 rm -f conftest.frag conftest.h
4771 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4772 cat conftest.in >> conftest.h
4773 rm -f conftest.in
4774 if cmp -s $ac_file conftest.h 2>/dev/null; then
4775 echo "$ac_file is unchanged"
4776 rm -f conftest.h
4777 else
e3659cbf
MH
4778 # Remove last slash and all that follows it. Not all systems have dirname.
4779 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4780 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4781 # The file is in a subdirectory.
4782 test ! -d "$ac_dir" && mkdir "$ac_dir"
4783 fi
c62d1274
ILT
4784 rm -f $ac_file
4785 mv conftest.h $ac_file
4786 fi
4787fi; done
4788
9c03036a
DE
4789EOF
4790cat >> $CONFIG_STATUS <<EOF
c62d1274 4791
a3515171 4792
9c03036a
DE
4793EOF
4794cat >> $CONFIG_STATUS <<\EOF
1daed53f 4795test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
072aa625 4796sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
c62d1274
ILT
4797exit 0
4798EOF
4799chmod +x $CONFIG_STATUS
4800rm -fr confdefs* $ac_clean_files
4801test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4802
This page took 0.336534 seconds and 4 git commands to generate.