Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20070917202146

Diff

Diff from 1.22 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc/configure.ac

Annotated File View

pj
1.1
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.59)
ragge
1.18
5 AC_INIT([pcc], [0.9.8], BUG-REPORT-ADDRESS)
pj
1.1
6 AC_CONFIG_HEADER([config.h])
7
ragge
1.3
8 AC_PROG_MAKE_SET
9 AC_PROG_INSTALL
pj
1.7
10 AC_CANONICAL_TARGET
ragge
1.2
11
12
ragge
1.8
13 case "$target_os" in
14     netbsd*)
ragge
1.2
15         targos=netbsd
ragge
1.8
16         case "$target_cpu" in
17             i?86) targmach=x86 ;;
18         esac
ragge
1.2
19         ;;
ragge
1.19
20     openbsd*)
21         targos=openbsd
22         case "$target_cpu" in
23             i?86) targmach=x86 ;;
24         esac
25         ;;
ragge
1.20
26     dragonfly*)
27         targos=dragonfly
28         case "$target_cpu" in
29             i?86) targmach=x86 ;;
30         esac
31         ;;
ragge
1.21
32     darwin*)
33       targos=darwin
34         case "$target_cpu" in
35             i?86) targmach=x86 ;;
36         esac
37         ;;
38
ragge
1.22
39     freebsd*)
40       targos=freebsd
41         case "$target_cpu" in
42             i386) targmach=x86 ;;
43         esac
44         ;;
45
ragge
1.8
46     linux*)
pj
1.7
47         targos=linux
ragge
1.8
48         case "$target_cpu" in
49             i?86) targmach=x86 ;;
50         esac
pj
1.7
51         ;;
ragge
1.8
52     *)
53         targos="$target_os"
54         case "$target_cpu" in
55             m16c) targmach=m16c ;;
ragge
1.15
56             nova) targmach=nova ;;
ragge
1.8
57         esac
pj
1.5
58         ;;
pj
1.7
59 esac
ragge
1.8
60    
ragge
1.2
61 if test "X$targos" = X -o "X$targmach" = X ; then
pj
1.7
62         AC_MSG_ERROR(['$target' is not (yet) supported by pcc.])
ragge
1.2
63 fi
pj
1.1
64
65 # Checks for programs.
66 AC_PROG_CC
ragge
1.3
67 AC_PROG_LEX
pj
1.1
68 AC_PROG_YACC
69
ragge
1.2
70 AC_CHECK_PROG(strip,strip,yes,no)
71
pj
1.1
72 # Checks for libraries.
73
74 # Checks for header files.
ragge
1.2
75 # AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
pj
1.6
76 AC_CHECK_HEADERS([string.h alloca.h])
pj
1.1
77
ragge
1.2
78 # Checks for library functions.
pj
1.6
79 AC_FUNC_ALLOCA
ragge
1.2
80 ##  AC_FUNC_STRTOD
81 # AC_FUNC_VPRINTF
82 # AC_CHECK_FUNCS([memset strchr strdup strrchr strtol])
ragge
1.3
83 AC_CHECK_FUNCS(mkstemp)
ragge
1.2
84
85 AC_SUBST(targos)
86 AC_SUBST(targmach)
87 AC_SUBST(prefix)
88 AC_SUBST(exec_prefix)
89 AC_SUBST(libexecdir)
ragge
1.16
90 AC_SUBST(includedir)
ragge
1.2
91 AC_SUBST(strip)
pj
1.1
92
ragge
1.11
93 pcc_major=`echo $PACKAGE_VERSION | awk -F. '{print $1}'`
94 pcc_minor=`echo $PACKAGE_VERSION | awk -F. '{print $2}'`
95 pcc_minorminor=`echo $PACKAGE_VERSION | awk -F. '{print $3}'`
ragge
1.12
96 versstr="\"$PACKAGE_STRING for $target, $USER@`hostname` `date`\""
ragge
1.11
97
ragge
1.2
98 AC_DEFINE_UNQUOTED(TARGOS, $targos)
ragge
1.11
99 AC_DEFINE_UNQUOTED(PCC_MAJOR, $pcc_major)
100 AC_DEFINE_UNQUOTED(PCC_MINOR, $pcc_minor)
101 AC_DEFINE_UNQUOTED(PCC_MINORMINOR, $pcc_minorminor)
102 AC_DEFINE_UNQUOTED(VERSSTR, $versstr)
ragge
1.17
103 if test "$LEX" = flex ; then
104         AC_DEFINE_UNQUOTED(ISFLEX, 1)
105 fi
pj
1.1
106
107 AC_CONFIG_FILES([Makefile
ragge
1.10
108                 cc/Makefile
109                 cc/cc/Makefile
110                 cc/cpp/Makefile
111                 cc/ccom/Makefile
112                 f77/Makefile
113                 f77/f77/Makefile
114                 f77/fcom/Makefile
115 ])
pj
1.1
116 AC_OUTPUT
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-10-31 20:24 +0100