summaryrefslogtreecommitdiff
path: root/ghc/rts/gmp/configure.in
blob: 9febef232f769ab17e38a35c93e9d1bbd2281303 (plain)
1
2
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
# This file is a shell script fragment that supplies the information
# necessary for a configure script to process the program in
# this directory.  For more information, look at ../configure.
AC_INIT(Makefile.in)

configdirs="mpn mpz mpf mpq mpbsd"
srctrigger=gmp-impl.h
srcname="GNU Multi-Precision library"

CFLAGS="-O"

# per-target:

case "${target}" in
  sparc8* | microsparc*)
    if [ x$with_gcc != xno ]
    then
      target_makefile_frag=config/mt-sprc8-gcc
    fi
    ;;
  supersparc*)
    if [ x$with_gcc != xno ]
    then
      target_makefile_frag=config/mt-supspc-gcc
    fi
    ;;
  m888110*)
    if [ x$with_gcc != xno ]
    then
      target_makefile_frag=config/mt-m88110
    fi
    ;;
  *-*-linux*)
    target_makefile_frag=config/mt-linux ;;
  *-*-mingw32)
    CFLAGS="-mno-cygwin -O"
    ;;
esac

AC_SUBST(CFLAGS)
AC_OUTPUT(Makefile)