Remove the old platform code from the bindist configure.ac
[ghc-hetmet.git] / distrib / configure-bin.ac
1 dnl
2 dnl Binary distribution configure script
3 dnl
4 #!/bin/sh
5 #
6
7 # Is it there?
8 AC_INIT(mk/config.mk.in)
9
10 FP_FIND_ROOT
11
12 dnl--------------------------------------------------------------------
13 dnl * Deal with arguments telling us gmp is somewhere odd
14 dnl--------------------------------------------------------------------
15
16 FP_ARG_GMP
17
18 GMP_INCLUDE_DIRS=
19 GMP_LIB_DIRS=
20 if test "x$gmp_libraries" != "xNONE"; then
21   LDFLAGS="-L$gmp_libraries $LDFLAGS"
22   GMP_LIB_DIRS=$gmp_libraries
23 fi
24 if test "x$gmp_includes" != "xNONE"; then
25   CPPFLAGS="-I$gmp_includes $CPPFLAGS"
26   GMP_INCLUDE_DIRS=$gmp_includes
27 fi
28 AC_SUBST(GMP_INCLUDE_DIRS)
29 AC_SUBST(GMP_LIB_DIRS)
30
31 #
32 dnl ** Check Perl installation **
33 #
34 AC_PATH_PROG(PerlCmd,perl)
35 if test -z "$PerlCmd"; then
36    echo "You must install perl before you can continue"
37    echo "Perhaps it is already installed, but not in your PATH?"
38    exit 1
39 fi
40 FPTOOLS_SHEBANG_PERL
41
42 #
43 dnl ** figure out how to do a BSD-ish install **
44 #
45 AC_PROG_INSTALL
46
47 #
48 dnl ** how to do symlinks **
49 #
50 AC_PROG_LN_S()
51
52 #
53 dnl ** how to invoke `ar' and `ranlib'
54 #
55 FP_PROG_AR_NEEDS_RANLIB
56
57 #
58 dnl ** Find the path to sed **
59 #
60 AC_PATH_PROG(SedCmd,sed)
61
62 #
63 dnl ** How to invoke cpp directly **
64 #
65 FP_HAVE_GCC
66 AC_PROG_CPP
67
68 #
69 dnl ** Check gcc version and flags we need to pass it **
70 #
71 FP_GCC_EXTRA_FLAGS
72
73 #
74 AC_CONFIG_FILES(extra-gcc-opts mk/config.mk mk/install.mk)
75 AC_OUTPUT
76
77 echo "****************************************************"
78 echo "Configuration done, ready to 'make install'"
79 echo "(see README and INSTALL files for more info.)"
80 echo "****************************************************"