X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.in;h=6eaed9afd4689a9ca1f59c5a66854c84157929b1;hb=51afadde2f0ec0b80a1e901b732b681ccf509b6e;hp=6f07d0772477ad89209d423b7070a785ff2ad249;hpb=cc0a715a575c1dee75540a519dded3756a75f72c;p=ghc-hetmet.git diff --git a/configure.in b/configure.in index 6f07d07..6eaed9a 100644 --- a/configure.in +++ b/configure.in @@ -164,6 +164,15 @@ i[[3456]]86-*-netbsd*) HostVendor_CPP='unknown' HostOS_CPP='netbsd' ;; +i[[3456]]86-*-openbsd*) + HostPlatform=i386-unknown-openbsd # hack again + TargetPlatform=i386-unknown-openbsd + BuildPlatform=i386-unknown-openbsd + HostPlatform_CPP='i386_unknown_openbsd' + HostArch_CPP='i386' + HostVendor_CPP='unknown' + HostOS_CPP='openbsd' + ;; i[[3456]]86-*-solaris2*) HostPlatform=i386-unknown-solaris2 # hack again TargetPlatform=i386-unknown-solaris2 @@ -322,7 +331,17 @@ dnl AC_SUBST(TargetVendor_CPP) AC_SUBST(exeext) -AC_PATH_PROG(GHC,ghc) +if test "$GHC" = ""; then + AC_PATH_PROG(GHC,ghc) +fi +if test "$GHC" != ""; then + FPTOOLS_GHC_VERSION([GhcVersion], [GhcMajVersion], [GhcMinVersion], [GhcPatchLevel])dnl + AC_SUBST(GhcVersion)dnl + AC_SUBST(GhcMajVersion)dnl + AC_SUBST(GhcMinVersion)dnl + AC_SUBST(GhcPatchLevel)dnl +fi + AC_PATH_PROGS(NHC,nhc nhc98) AC_PATH_PROG(HBC,hbc) @@ -491,7 +510,7 @@ AC_PATH_PROGS(CompressCmd,gzip compress,gzip) dnl ** check for jade/openjade & determine a working catalog AC_PATH_PROGS(JadeCmd,openjade jade,jade) FPTOOLS_DOCBOOK_CATALOG(Catalog, $JadeCmd, docs/fptools-both.dsl, - /usr/share/sgml/CATALOG.docbkdsl $hardtop/glafp-utils/docbook/CATALOG*) + /etc/sgml.catalog /usr/share/sgml/CATALOG.docbkdsl $hardtop/glafp-utils/docbook/CATALOG*) if test -z "$Catalog"; then AC_MSG_RESULT([Warning: You will not be able to build the documentation.]) fi @@ -714,13 +733,16 @@ AC_CHECK_FUNCS(pclose _pclose ) dnl ** check for specific library functions that we are interested in AC_CHECK_FUNCS(access ftime getclock getpagesize getrusage gettimeofday mktime mprotect readlink setitimer stat symlink sysconf timelocal times vadvise vfork) -dnl ** check whether this machine has gmp2 installed -AC_CHECK_LIB(gmp, mpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp, - AC_CHECK_LIB(gmp2, mpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp2, +dnl ** check whether this machine has gmp3 installed +AC_CHECK_LIB(gmp, __gmpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp, + AC_CHECK_LIB(gmp3, __gmpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp3, HaveLibGmp=No; LibGmp=not-installed)) AC_SUBST(HaveLibGmp) AC_SUBST(LibGmp) +dnl ** check whether this machine has GNU regex in libc. +FPTOOLS_REGEX_IN_LIBC + dnl ** check whether this machine has BFD and liberty installed (used for debugging) dnl the order of these tests matters: bfd needs liberty AC_CHECK_LIB(iberty, xmalloc)