]> Git Repo - binutils.git/blob - gas/configure.in
Wed Jan 31 14:03:17 1996 Richard Henderson <[email protected]>
[binutils.git] / gas / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
3 dnl And be careful when changing it!  If you must add tests with square
4 dnl brackets, be sure changequote invocations surround it.
5 dnl
6 dnl
7 AC_PREREQ(2.3)dnl We only need 2.0, but pre-2.3 loses on some AIX version.
8 AC_INIT(as.h)dnl
9 dnl
10 user_bfd_gas=
11 AC_ARG_ENABLE(bfd-assembler,
12 [  --enable-bfd-assembler  use BFD back end for writing object files],
13 [case "${enableval}" in
14   yes) need_bfd=yes user_bfd_gas=yes ;;
15   no)  user_bfd_gas=no ;;
16   *)   AC_MSG_ERROR(bad value ${enableval} given for bfd-assembler option) ;;
17 esac])dnl
18 AC_ARG_ENABLE(targets,
19 [    targets            alternative target configurations besides the primary],
20 [case "${enableval}" in
21   yes | "") AC_ERROR(enable-targets option must specify target names or 'all')
22             ;;
23   no)       enable_targets= ;;
24   *)        enable_targets=$enableval ;;
25 esac])dnl
26
27 # Generate a header file -- gets more post-processing by Makefile later.
28 AC_CONFIG_HEADER(conf)
29
30 dnl For recursion to work right, this must be an absolute pathname.
31 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
32 AC_CANONICAL_SYSTEM
33 AC_ARG_PROGRAM
34
35 te_file=generic
36
37 # assign cpu type
38
39 # check for architecture variants
40 case ${target_cpu} in
41   armeb)        cpu_type=arm endian=big ;;
42   arm*)         cpu_type=arm endian=little ;;
43   hppa*)        cpu_type=hppa ;;
44 changequote(,)dnl
45   i[45]86)      cpu_type=i386 ;;
46   m680[012346]0) cpu_type=m68k ;;
47   m68008)       cpu_type=m68k ;;
48   m683??)       cpu_type=m68k ;;
49 changequote([,])dnl
50   m8*)          cpu_type=m88k ;;
51   mips*el)      cpu_type=mips endian=little;;
52   mips*)        cpu_type=mips endian=big ;;
53   powerpcle*)   cpu_type=ppc endian=little ;;
54   powerpc*)     cpu_type=ppc endian=big ;;
55   rs6000*)      cpu_type=ppc ;;
56   sparc64)      cpu_type=sparc
57                 AC_DEFINE(SPARC_V9) ;;
58   sparclite*)   cpu_type=sparc ;;
59   *)            cpu_type=${target_cpu} ;;
60 esac
61
62 # do we need the opcodes library?
63 case ${cpu_type} in
64   alpha | vax)
65     ;;
66   *)
67     OPCODES_LIB="../opcodes/libopcodes.a"
68     ;;
69 esac
70 AC_SUBST(OPCODES_LIB)
71
72 gas_target=${cpu_type}
73 this_target=${generic_target}
74
75 canon_targets=""
76 if test -n "$enable_targets" ; then
77   for t in `echo $enable_targets | sed 's/,/ /g'`; do
78     result=`$ac_config_sub $t 2>/dev/null`
79     if test -n "$result" ; then
80       canon_targets="$canon_targets $result"
81 #    else
82 #      # Permit "all", etc.  We don't support it yet though.
83 #      canon_targets="$canon_targets $t"
84     fi
85   done
86   GAS_UNIQ(canon_targets)
87 fi
88
89 emulations=""
90
91 for this_target in $target $canon_targets ; do
92
93     eval `echo $this_target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
94
95     # check for architecture variants
96     case ${cpu} in
97       hppa*)            cpu_type=hppa ;;
98 changequote(,)dnl
99       i[45]86)          cpu_type=i386 ;;
100       m680[012346]0)    cpu_type=m68k ;;
101       m68008)           cpu_type=m68k ;;
102       m683??)           cpu_type=m68k ;;
103 changequote([,])dnl
104       m8*)              cpu_type=m88k ;;
105       mips*el)          cpu_type=mips endian=little;;
106       mips*)            cpu_type=mips endian=big ;;
107       powerpcle*)       cpu_type=ppc endian=little ;;
108       powerpc*)         cpu_type=ppc endian=big ;;
109       rs6000*)          cpu_type=ppc ;;
110       sparc64)          cpu_type=sparc want_sparc_v9=true ;;
111       sparclite*)       cpu_type=sparc ;;
112       *)                cpu_type=${cpu} ;;
113     esac
114
115     if test ${this_target} = $target ; then
116       target_cpu_type=${cpu_type}
117     elif test ${target_cpu_type} != ${cpu_type} ; then
118       continue
119     fi
120
121     targ=${cpu_type}
122     generic_target=${cpu_type}-$vendor-$os
123     dev=no
124     bfd_gas=no
125     em=generic
126
127     # assign object format
128     case ${generic_target} in
129       a29k-amd-udi)         fmt=coff targ=ebmon29k ;;
130       a29k-amd-ebmon)       fmt=coff targ=ebmon29k ;;
131       a29k-nyu-sym1)        fmt=coff targ=ebmon29k ;;
132       a29k-*-vxworks*)      fmt=coff ;;
133
134       alpha-*-netware*)     fmt=ecoff ;;
135       alpha-*-osf*)         fmt=ecoff ;;
136       alpha-*-linux*)       fmt=ecoff ;;
137
138 # start-sanitize-arc
139       arc-*-elf*)           fmt=elf bfd_gas=yes ;;
140 # end-sanitize-arc
141
142       arm-*-riscix*)        fmt=aout targ=arm-lit ;;
143       arm-*-aout)           fmt=aout
144                             case "$endian" in
145                               big)      targ=arm-big ;;
146                               *)        targ=arm-lit ;;
147                             esac
148                             ;;
149       arm-*-coff)           fmt=coff ;;
150       arm-*-riscix*)        fmt=aout ;;
151       arm-*-pe)             fmt=coff targ=armcoff em=pe ;;
152
153       hppa-*-*elf*)         fmt=elf em=hppa ;;
154       hppa-*-lites*)        fmt=elf em=hppa ;;
155       hppa-*-osf*)          fmt=som em=hppa ;;
156       hppa-*-hpux*)         fmt=som em=hppa ;;
157       hppa-*-bsd*)          fmt=som em=hppa ;;
158       hppa-*-hiux*)         fmt=som em=hppa ;;
159
160       h8300-*-coff)         fmt=coff ;;
161
162       i386-ibm-aix*)        fmt=coff targ=i386coff
163                              em=i386aix ;;
164       i386-*-bsd*)          fmt=aout em=386bsd ;;
165       i386-*-netbsd0.8)     fmt=aout em=386bsd ;;
166       i386-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes;;
167       i386-*-linux*aout* | i386-*-linuxoldld)   fmt=aout em=linux ;;
168       i386-*-linux*coff*)   fmt=coff em=linux
169                              targ=i386coff ;;
170       i386-*-linux*)        fmt=elf em=linux ;;
171       i386-*-lynxos*)       fmt=coff targ=i386coff
172                              em=lynx ;;
173       i386-*-sysv4* | i386-*-solaris* | i386-*-elf)
174                             fmt=elf ;;
175       i386-*-sco*elf*)      fmt=elf targ=sco5 ;;
176       i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*)
177                             fmt=coff targ=i386coff ;;
178       i386-*-vsta)          fmt=aout ;;
179       i386-*-go32)          fmt=coff targ=i386coff ;;
180       i386-*-gnu*)          fmt=elf ;;
181       i386-*-mach*)
182                             fmt=aout em=mach bfd_gas=yes ;;
183       i386-*-msdos*)        fmt=aout ;;
184       i386-*-moss*)         fmt=elf ;;
185       i386-*-pe)            fmt=coff targ=i386coff em=pe ;;
186       i386-*-win32)         fmt=coff targ=i386coff em=pe ;;
187       i386-*-*nt)           fmt=coff targ=i386coff em=pe ;;
188       i960-*-bout)          fmt=bout ;;
189       i960-*-coff)          fmt=coff em=ic960 targ=ic960coff ;;
190       i960-*-nindy*)        fmt=bout ;;
191       i960-*-vxworks4*)     fmt=bout ;;
192       i960-*-vxworks5.0)    fmt=bout ;;
193       i960-*-vxworks5.*)    fmt=coff em=ic960 targ=ic960coff ;;
194       i960-*-vxworks*)      fmt=bout ;;
195
196       m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
197                             fmt=aout em=sun3 ;;
198       m68k-motorola-sysv*)  fmt=coff targ=m68kcoff em=delta ;;
199       m68k-bull-sysv3*)     fmt=coff targ=m68kcoff em=dpx2 ;;
200       m68k-apollo-*)        fmt=coff targ=apollo em=apollo ;;
201       m68k-*-sysv4 | m68k-*-elf) # must be before -sysv*
202                             fmt=elf ;;
203       m68k-*-coff | m68k-*-sysv*)
204                             fmt=coff targ=m68kcoff ;;
205       m68k-*-hpux*)         fmt=hp300 em=hp300 ;;
206       m68k-*-lynxos*)       fmt=coff targ=m68kcoff
207                              em=lynx ;;
208       m68k-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes ;;
209       m68*-apple-aux*)      fmt=coff targ=m68kcoff em=aux ;;
210
211       m88k-motorola-sysv3*) fmt=coff targ=m88kcoff em=delt88 ;;
212       m88k-*-coff*)         fmt=coff targ=m88kcoff ;;
213
214       # don't change em like *-*-bsd does
215       mips-dec-netbsd*)     fmt=elf targ=mips-lit endian=little ;;
216       mips-dec-bsd*)        fmt=aout targ=mips-lit ;;
217       mips-sony-bsd*)       fmt=ecoff targ=mips-big ;;
218       mips-*-bsd*)          AC_MSG_ERROR(Unknown vendor for mips-bsd configuration.) ;;
219       mips-*-ultrix*)       fmt=ecoff targ=mips-lit endian=little ;;
220       mips-*-ecoff*)        fmt=ecoff 
221                             case "$endian" in
222                             big) targ=mips-big ;;
223                             *)   targ=mips-lit ;;
224                             esac
225                             ;;
226       mips-*-ecoff*)        fmt=ecoff targ=mips-big ;;
227       mips-*-gnu*)          fmt=aout
228                             case "$endian" in
229                             big) targ=mips-big ;;
230                             *)   targ=mips-lit ;;
231                             esac
232                             ;;
233       mips-*-irix5*)        fmt=elf targ=mips-big ;;
234       mips-*-irix*)         fmt=ecoff targ=mips-big ;;
235       mips-*-riscos*)       fmt=ecoff targ=mips-big ;;
236       mips-*-sysv*)         fmt=ecoff targ=mips-big ;;
237       mips-*-elf*)          fmt=elf 
238                             case "$endian" in
239                             big) targ=mips-big ;;
240                             *)   targ=mips-lit ;;
241                             esac
242                             ;;
243       ppc-*-pe)             fmt=coff em=pe 
244                             case "$endian" in
245                             big) targ=ppc-big ;;
246                             *)   targ=ppc-lit ;;
247                             esac
248                             ;;
249       ppc-*-winnt*)         fmt=coff em=pe 
250                             case "$endian" in
251                             big) targ=ppc-big ;;
252                             *)   targ=ppc-lit ;;
253                             esac
254                             ;;
255       ppc-*-aix*)           fmt=coff ;;
256       ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
257                             fmt=elf
258                             case "$endian" in
259                             big)  targ=ppc-big ;;
260                             *)    targ=ppc-lit ;;
261                             esac
262                             ;;
263       ppc-*-macos* | ppc-*-mpw*)
264                             fmt=coff em=macos ;;
265       ppc-*-netware*)       fmt=elf em=ppcnw ;;
266
267       sh-*-coff)            fmt=coff ;;
268
269 # start-sanitize-rce
270       rce-*-aout)           fmt=aout ;;
271 # end-sanitize-rce
272
273       ns32k-pc532-mach* | ns32k-pc532-ux*)    fmt=aout em=pc532mach ;;
274       ns32k-pc532-netbsd* | ns32k-pc532-lites*)  fmt=aout em=nbsd532 ;;
275
276       sparc-*-sunos4*)      fmt=aout em=sun3 ;;
277       sparc-*-aout | sparc*-*-vxworks)
278                             fmt=aout ;;
279       sparc-*-coff)         fmt=coff ;;
280       sparc-*-lynxos*)      fmt=coff em=lynx ;;
281       sparc-fujitsu-none)   fmt=aout ;;
282       sparc-*-elf | sparc*-*-solaris*)
283                             fmt=elf ;;
284       sparc-*-netbsd*)      fmt=aout em=nbsd bfd_gas=yes ;;
285
286       vax-*-bsd* | vax-*-ultrix*)
287                             fmt=aout ;;
288       vax-*-vms)            fmt=vms ;;
289
290       z8k-*-coff | z8k-*-sim)
291                             fmt=coff ;;
292
293       w65-*-*)              fmt=coff ;;
294
295       *-*-aout | *-*-scout)
296                             fmt=aout ;;
297       *-*-nindy*)
298                             fmt=bout ;;
299       *-*-bsd*)
300                             fmt=aout em=sun3 ;;
301       *-*-generic)          fmt=generic ;;
302       *-*-xray | *-*-hms)   fmt=coff ;;
303       *-*-sim)              fmt=coff ;;
304       *-*-elf | *-*-sysv4* | *-*-solaris*)
305                             AC_MSG_WARN(GAS support for ${generic_target} is incomplete.)
306                             fmt=elf dev=yes ;;
307       *-*-vxworks)          fmt=aout ;;
308       *-*-netware)          fmt=elf ;;
309     esac
310
311     case ${cpu_type}-${fmt} in
312       arm-*)    bfd_gas=yes ;;
313     # not yet
314     # i386-aout)        bfd_gas=preferred ;;
315       mips-*)   bfd_gas=yes ;;
316       ns32k-*)  bfd_gas=yes ;;
317       ppc-*)    bfd_gas=yes ;;
318       sparc-*)  bfd_gas=yes ;;
319       *-elf)    bfd_gas=yes ;;
320       *-ecoff)  bfd_gas=yes ;;
321       *-som)    bfd_gas=yes ;;
322       *)                ;;
323     esac
324
325 # Other random stuff.
326
327     test -n "$want_sparc_v9" && AC_DEFINE(SPARC_V9)
328
329     case ${cpu}-${vendor}-${os} in
330       sparc64-*-elf*) AC_DEFINE(SPARC_ARCH64) ;;
331     esac
332
333     case ${cpu_type} in
334       m68k) extra_objects="$extra_objects m68k-parse.o" ;;
335     esac
336
337 # See if we really can support this configuration with the emulation code.
338
339     if test $this_target = $target ; then
340       primary_bfd_gas=$bfd_gas
341       obj_format=$fmt
342       gas_target=$targ
343       te_file=$em
344
345       if test $bfd_gas = no ; then
346         # Can't support other configurations this way.
347         break
348       fi
349     elif test $bfd_gas = no ; then
350       # Can't support this configuration.
351       break
352     fi
353
354 # From target name and format, produce a list of supported emulations.
355
356     case ${generic_target}-${fmt} in
357       mips-*-irix5*-*)  emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
358       mips-*-*-ecoff)   case "$endian" in
359                         big)    emulation="mipsbecoff mipslecoff mipsecoff" ;;
360                         *)      emulation="mipslecoff mipsbecoff mipsecoff" ;;
361                         esac ;;
362       mips-*-*-elf)     case "$endian" in
363                         big)    emulation="mipsbelf mipslelf mipself" ;;
364                         *)      emulation="mipslelf mipsbelf mipself" ;;
365                         esac ;;
366     esac
367
368     emulations="$emulations $emulation"
369
370 done
371
372 # Assign floating point type.  Most processors with FP support
373 # IEEE FP.  On those that don't support FP at all, usually IEEE
374 # is emulated.
375 case ${target_cpu} in
376   vax | tahoe ) atof=${target_cpu} ;;
377   *)            atof=ieee ;;
378 esac
379
380 case "${obj_format}" in
381   "") AC_MSG_ERROR(GAS does not know what format to use for target ${target}) ;;
382 esac
383
384 dnl
385 dnl Make sure the desired support files exist.
386 dnl
387
388 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
389   AC_MSG_ERROR(GAS does not support target CPU ${target_cpu_type})
390 fi
391
392 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
393   AC_MSG_ERROR(GAS does not have support for object file format ${obj_format})
394 fi
395
396 # and target makefile frag
397
398 target_frag=${srcdir}/config/${gas_target}.mt
399 if test ! -r ${target_frag}; then
400   target_frag=/dev/null # ick! but subst_file can't be conditionalized
401 fi
402 AC_SUBST_FILE(target_frag)
403
404 case ${user_bfd_gas}-${primary_bfd_gas} in
405   yes-yes | no-no)
406     # We didn't override user's choice.
407     ;;
408   no-yes)
409     AC_MSG_WARN(Use of BFD is required for ${target}; overriding config options.)
410     ;;
411   no-preferred)
412     primary_bfd_gas=no
413     ;;
414   *-preferred)
415     primary_bfd_gas=yes
416     ;;
417   yes-*)
418     primary_bfd_gas=yes
419     ;;
420   -*)
421     # User specified nothing.
422     ;;
423 esac
424
425 # Some COFF configurations want these random other flags set.
426 case ${obj_format} in
427   coff)
428     case ${target_cpu_type} in
429       i386) AC_DEFINE(I386COFF) ;;
430       m68k) AC_DEFINE(M68KCOFF) ;;
431       m88k) AC_DEFINE(M88KCOFF) ;;
432     esac
433     ;;
434 esac
435
436 # Getting this done right is going to be a bitch.  Each configuration specified
437 # with --enable-targets=... should be checked for environment, format, cpu, and
438 # bfd_gas setting.
439 #
440 # For each configuration, the necessary object file support code must be linked
441 # in.  This might be only one, it might be up to four.  The necessary emulation
442 # code needs to be provided, too.
443 #
444 # And then there's "--enable-targets=all"....
445 #
446 # For now, just always do it for MIPS ELF or ECOFF configurations.  Sigh.
447
448 formats="${obj_format}"
449 emfiles=""
450 EMULATIONS=""
451 GAS_UNIQ(emulations)
452 for em in . $emulations ; do
453   case $em in
454     .)  continue ;;
455     mipsbelf | mipslelf)
456         fmt=elf   file=mipself ;;
457     mipsbecoff | mipslecoff)
458         fmt=ecoff file=mipsecoff ;;
459   esac
460   formats="$formats $fmt"
461   emfiles="$emfiles e-$file.o"
462   EMULATIONS="$EMULATIONS &$em,"
463 done
464 GAS_UNIQ(formats)
465 GAS_UNIQ(emfiles)
466 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
467   for fmt in $formats ; do
468     case $fmt in
469       aout)     AC_DEFINE(OBJ_MAYBE_AOUT)    ;;
470       bout)     AC_DEFINE(OBJ_MAYBE_BOUT)    ;;
471       coff)     AC_DEFINE(OBJ_MAYBE_COFF)    ;;
472       ecoff)    AC_DEFINE(OBJ_MAYBE_ECOFF)   ;;
473       elf)      AC_DEFINE(OBJ_MAYBE_ELF)     ;;
474       generic)  AC_DEFINE(OBJ_MAYBE_GENERIC) ;;
475       hp300)    AC_DEFINE(OBJ_MAYBE_HP300)   ;;
476       ieee)     AC_DEFINE(OBJ_MAYBE_IEEE)    ;;
477       som)      AC_DEFINE(OBJ_MAYBE_SOM)     ;;
478       vms)      AC_DEFINE(OBJ_MAYBE_VMS)     ;;
479     esac
480     extra_objects="$extra_objects obj-$fmt.o"
481   done
482   obj_format=multi
483 fi
484 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
485   te_file=multi
486   extra_objects="$extra_objects $emfiles"
487   DEFAULT_EMULATION=`set . $emulations ; echo $2`
488   AC_DEFINE(USE_EMULATIONS)
489 fi
490 AC_SUBST(extra_objects)
491 AC_DEFINE_UNQUOTED(EMULATIONS, $EMULATIONS)
492 AC_DEFINE_UNQUOTED(DEFAULT_EMULATION, "$DEFAULT_EMULATION")
493
494 files="config/tc-${target_cpu_type}.c config/tc-${target_cpu_type}.h \
495         config/obj-${obj_format}.h config/obj-${obj_format}.c \
496         config/te-${te_file}.h config/atof-${atof}.c \
497         $extra_files"
498 links="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c \
499         $extra_links"
500
501 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
502   yes-*-coff)   need_bfd=yes ;;
503   no-*-coff)    need_bfd=yes
504                 AC_DEFINE(MANY_SEGMENTS) ;;
505 esac
506
507 reject_dev_configs=yes
508
509 case ${reject_dev_configs}-${dev} in
510   yes-yes) # Oops.
511     AC_MSG_ERROR(GAS does not support the ${generic_target} configuration.)
512     ;;
513 esac
514
515 AC_SUBST(target_cpu_type)
516 AC_SUBST(obj_format)
517 AC_SUBST(atof)
518 dnl AC_SUBST(emulation)
519
520 AC_LINK_FILES($files, $links)
521
522 case "${primary_bfd_gas}" in
523   yes)  AC_DEFINE(BFD_ASSEMBLER)
524         need_bfd=yes ;;
525 esac
526
527 case "${need_bfd}" in
528   yes)  BFDLIB=../bfd/libbfd.a
529         ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
530         ;;
531 esac
532 AC_SUBST(BFDLIB)
533 AC_SUBST(ALL_OBJ_DEPS)
534
535 AC_DEFINE_UNQUOTED(TARGET_ALIAS,        "${target_alias}")
536 AC_DEFINE_UNQUOTED(TARGET_CANONICAL,    "${target}")
537 AC_DEFINE_UNQUOTED(TARGET_CPU,          "${target_cpu}")
538 AC_DEFINE_UNQUOTED(TARGET_VENDOR,       "${target_vendor}")
539 AC_DEFINE_UNQUOTED(TARGET_OS,           "${target_os}")
540
541 AC_PROG_CC
542 AC_PROG_INSTALL
543
544 AC_CHECK_HEADERS(string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h)
545
546 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
547 # people who are not cross-compiling but are compiling cross-assemblers.
548 AC_MSG_CHECKING(whether compiling a cross-assembler)
549 if test "${host}" = "${target}"; then
550   cross_gas=no
551 else
552   cross_gas=yes
553   AC_DEFINE(CROSS_COMPILE)
554 fi
555 AC_MSG_RESULT($cross_gas)
556
557 dnl ansidecl.h will deal with const
558 dnl AC_CONST
559 AC_FUNC_ALLOCA
560 AC_C_INLINE
561
562 # VMS doesn't have unlink.
563 AC_CHECK_FUNCS(unlink remove, break)
564
565 # Some systems don't have sbrk().
566 AC_CHECK_FUNCS(sbrk)
567
568 # Some non-ANSI preprocessors botch requoting inside strings.  That's bad
569 # enough, but on some of those systems, the assert macro relies on requoting
570 # working properly!
571 GAS_WORKING_ASSERT
572
573 # On some systems, the system header files may not declare malloc, realloc,
574 # and free.  There are places where gas needs these functions to have been
575 # declared -- such as when taking their addresses.
576 gas_test_headers="
577 #ifdef HAVE_MEMORY_H
578 #include <memory.h>
579 #endif
580 #ifdef HAVE_STRING_H
581 #include <string.h>
582 #endif
583 #ifdef HAVE_STDLIB_H
584 #include <stdlib.h>
585 #endif
586 #ifdef HAVE_UNISTD_H
587 #include <unistd.h>
588 #endif
589 "
590 GAS_CHECK_DECL_NEEDED(malloc, f, char *(*f)(), $gas_test_headers)
591 GAS_CHECK_DECL_NEEDED(free, f, void (*f)(), $gas_test_headers)
592
593 # Does errno.h declare errno, or do we have to add a separate declaration
594 # for it?
595 GAS_CHECK_DECL_NEEDED(errno, f, int f, [
596 #ifdef HAVE_ERRNO_H
597 #include <errno.h>
598 #endif
599 ])
600
601 dnl This must come last.
602 AC_OUTPUT(Makefile doc/Makefile .gdbinit:gdbinit.in)
This page took 0.060141 seconds and 4 git commands to generate.