ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libcpjit/configure.ac
Revision: 1.6
Committed: Sat Oct 15 00:00:59 2005 UTC (18 years, 8 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +6 -0 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 # -*- Autoconf -*-
2     # Process this file with autoconf to produce a configure script.
3    
4     AC_PREREQ(2.59)
5     AC_INIT(libcpjit, 0, libcpjit@schmorp.de)
6     AC_CONFIG_SRCDIR([cpjit.h])
7     AC_CONFIG_HEADER([config.h])
8    
9     # Checks for programs.
10 root 1.2 AC_PROG_CXX
11 root 1.1
12     # Checks for header files.
13    
14     # Checks for typedefs, structures, and compiler characteristics.
15    
16     AC_CONFIG_FILES(Makefile)
17    
18 root 1.4 AH_BOTTOM([
19    
20     #if SIZEOF_CHAR == 1
21     # define TYPE_INT8 char
22     #else
23     # error no 8-bit type found
24     #endif
25    
26     #if SIZEOF_SHORT == 2
27     # define TYPE_INT16 short
28     #elif SIZEOF_INT == 2
29     # define TYPE_INT16 int
30     #else
31     # error no 16-bit type found
32     #endif
33    
34     #if SIZEOF_INT == 4
35     # define TYPE_INT32 int
36     #elif SIZEOF_LONG == 4
37     # define TYPE_INT32 long
38     #else
39     # error no 32-bit type found
40     #endif
41    
42     #if SIZEOF_INT == 8
43     # define TYPE_INT64 short
44     #elif SIZEOF_LONG == 8
45     # define TYPE_INT64 long
46     #elif SIZEOF_LONG_LONG == 8
47     # define TYPE_INT64 long long
48     #else
49     # error no 64-bit type found
50     #endif
51    
52     ])
53    
54     AC_CHECK_SIZEOF(char)
55     AC_CHECK_SIZEOF(short)
56     AC_CHECK_SIZEOF(int)
57     AC_CHECK_SIZEOF(long)
58     AC_CHECK_SIZEOF(long long)
59    
60 root 1.6 AC_DEFINE_UNQUOTED(CC,"$CC",[The C compiler to use])
61     AC_DEFINE_UNQUOTED(CFLAGS,"-O6 -c",[Compiler flags])
62     AC_DEFINE_UNQUOTED(LD,"$CC",[The linker to use])
63     AC_DEFINE_UNQUOTED(LFLAGS,"-O -nostdlib -lgcc -shared",[Linker flags])
64     AC_DEFINE_UNQUOTED(LD_R,"ld -r",[How to combine object files])
65    
66 root 1.1 # Checks for library functions.
67     AC_OUTPUT