Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
[deliverable/binutils-gdb.git] / opcodes / configure.in
index b268d705c2dd183397a60b4cc97cd56c591d5028..7c47bb8ec3699a24036a25df90819c79318c8c34 100644 (file)
@@ -5,12 +5,26 @@ AC_PREREQ(2.5)
 AC_INIT(z8k-dis.c)
 
 AC_CANONICAL_SYSTEM
+AC_ISC_POSIX
 
-AM_INIT_AUTOMAKE(opcodes, 2.8.2)
+# We currently only use the version number for the name of any shared
+# library.  For user convenience, we always use the same version
+# number that BFD is using.
+changequote(,)dnl
+BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[         ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
+changequote([,])dnl
+
+AM_INIT_AUTOMAKE(opcodes, ${BFD_VERSION})
+
+dnl These must be called before AM_PROG_LIBTOOL, because it may want
+dnl to call AC_CHECK_PROG.
+AC_CHECK_TOOL(AR, ar)
+AC_CHECK_TOOL(RANLIB, ranlib, :)
 
 dnl Default to a non shared library.  This may be overridden by the
 dnl configure option --enable-shared.
-enable_shared=no
+AM_DISABLE_SHARED
+
 AM_PROG_LIBTOOL
 
 AC_ARG_ENABLE(targets,
@@ -44,15 +58,59 @@ AM_EXEEXT
 
 AC_PROG_CC
 
+ALL_LINGUAS=
+CY_GNU_GETTEXT
+
 . ${srcdir}/../bfd/configure.host
 
 AC_SUBST(HDEFINES)
-AC_CHECK_TOOL(AR, ar)
-AC_CHECK_TOOL(RANLIB, ranlib, :)
 AM_PROG_INSTALL
 
 AC_CHECK_HEADERS(string.h strings.h stdlib.h)
 
+# start-sanitize-cygnus
+cgen_maint=no
+# Default is to use one in build tree.
+cgen=../cgen/cgen
+cgendir='$(srcdir)/../cgen'
+# Having --enable-maintainer-mode take arguments is another way to go.
+# ??? One can argue --with is more appropriate if one wants to specify
+# a directory name, but what we're doing here is an enable/disable kind
+# of thing and specifying both --enable and --with is klunky.
+# If you reeely want this to be --with, go ahead and change it.
+AC_ARG_ENABLE(cgen-maint,
+[  --enable-cgen-maint[=dir]    build cgen generated files],
+[case "${enableval}" in
+  yes) cgen_maint=yes ;;
+  no)  cgen_maint=no ;;
+  *)
+       # argument is cgen install directory (not implemented yet).
+       # Having a `share' directory might be more appropriate for the .scm,
+       # .cpu, etc. files.
+       cgen_maint=yes
+       cgendir=${cgen_maint}/lib/cgen
+       cgen=${cgendir}/bin/cgen
+       ;;
+esac])dnl
+AM_CONDITIONAL(CGEN_MAINT, test x${cgen_maint} = xyes)
+AC_SUBST(cgendir)
+AC_SUBST(cgen)
+# end-sanitize-cygnus
+
+# Horrible hacks to build DLLs on Windows.
+WIN32LDFLAGS=
+WIN32LIBADD=
+case "${host}" in
+*-*-cygwin*)
+  if test "$enable_shared" = "yes"; then
+    WIN32LDFLAGS="-no-undefined"
+    WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
+  fi
+  ;;
+esac
+AC_SUBST(WIN32LDFLAGS)
+AC_SUBST(WIN32LIBADD)
+
 # target-specific stuff:
 
 # Canonicalize the secondary target names.
@@ -104,9 +162,7 @@ if test x${all_targets} = xfalse ; then
        bfd_arm_arch)           ta="$ta arm-dis.lo" ;;
        bfd_convex_arch)        ;;
        bfd_d10v_arch)          ta="$ta d10v-dis.lo d10v-opc.lo" ;;
-# start-sanitize-d30v
        bfd_d30v_arch)          ta="$ta d30v-dis.lo d30v-opc.lo" ;;
-# end-sanitize-d30v
        bfd_h8300_arch)         ta="$ta h8300-dis.lo" ;;
        bfd_h8500_arch)         ta="$ta h8500-dis.lo" ;;
        bfd_hppa_arch)          ta="$ta hppa-dis.lo" ;;
@@ -127,13 +183,19 @@ if test x${all_targets} = xfalse ; then
        bfd_sh_arch)            ta="$ta sh-dis.lo" ;;
        bfd_sparc_arch)         ta="$ta sparc-dis.lo sparc-opc.lo" ;;
        bfd_tahoe_arch)         ;;
+       bfd_tic30_arch)         ta="$ta tic30-dis.lo" ;;
 # start-sanitize-tic80
        bfd_tic80_arch)         ta="$ta tic80-dis.lo tic80-opc.lo" ;;
 # end-sanitize-tic80
-# start-sanitize-v850
+# start-sanitize-sky
+       bfd_dvp_arch)           ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
+# end-sanitize-sky
        bfd_v850_arch)          ta="$ta v850-opc.lo v850-dis.lo" ;;
-# end-sanitize-v850
-       bfd_vax_arch)           ;;
+# start-sanitize-v850e
+       bfd_v850e_arch)         ta="$ta v850-opc.lo v850-dis.lo" ;;
+       bfd_v850ea_arch)        ta="$ta v850-opc.lo v850-dis.lo" ;;
+# end-sanitize-v850e
+       bfd_vax_arch)           ta="$ta vax-dis.lo" ;;
        bfd_w65_arch)           ta="$ta w65-dis.lo" ;;
        bfd_we32k_arch)         ;;
        bfd_z8k_arch)           ta="$ta z8k-dis.lo" ;;
@@ -173,4 +235,5 @@ fi
 AC_SUBST(archdefs)
 AC_SUBST(BFD_MACHINES)
 
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,
+[sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])
This page took 0.024492 seconds and 4 git commands to generate.