spielwiese
Last change
on this file since 9a738f was
9a738f,
checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
|
migrated reporter to automake
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | # -*- Autoconf -*- |
---|
2 | # Process this file with autoconf to produce a configure script. |
---|
3 | |
---|
4 | AC_PREREQ(2.61) |
---|
5 | AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) |
---|
6 | AM_INIT_AUTOMAKE |
---|
7 | AC_CONFIG_SRCDIR([reporter.h]) |
---|
8 | AC_CONFIG_HEADER([config.h]) |
---|
9 | |
---|
10 | # Checks for programs. |
---|
11 | AC_PROG_CXX |
---|
12 | AC_PROG_CC |
---|
13 | AC_PROG_LN_S |
---|
14 | AC_PROG_INSTALL |
---|
15 | AC_PROG_RANLIB |
---|
16 | |
---|
17 | # Checks for libraries. |
---|
18 | |
---|
19 | # Checks for header files. |
---|
20 | AC_HEADER_STDC |
---|
21 | AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h]) |
---|
22 | |
---|
23 | # Checks for typedefs, structures, and compiler characteristics. |
---|
24 | AC_C_CONST |
---|
25 | AC_C_INLINE |
---|
26 | |
---|
27 | # Checks for library functions. |
---|
28 | AC_FUNC_VPRINTF |
---|
29 | AC_CHECK_FUNC([vsnprintf], [AC_DEFINE([HAVE_VSNPRINTF], [1], |
---|
30 | [Define if vsnprintf exists.])]) |
---|
31 | |
---|
32 | # check whether the compiler accepts -pipe |
---|
33 | if test x$ac_cv_c_cpp = xgcc2 -o x$ac_cv_c_cpp = xgcc3 |
---|
34 | then |
---|
35 | AC_MSG_CHECKING(whether compiler accepts -pipe) |
---|
36 | temp_cflags="${CFLAGS}" |
---|
37 | CFLAGS="${CFLAGS} -pipe" |
---|
38 | AC_CACHE_VAL(ac_cv_cxx_have_pipe, |
---|
39 | AC_TRY_COMPILE(,,ac_cv_cxx_have_pipe=yes,ac_cv_cxx_have_pipe=no)) |
---|
40 | AC_MSG_RESULT(${ac_cv_cxx_have_pipe}) |
---|
41 | CFLAGS=${temp_cflags} |
---|
42 | else |
---|
43 | ac_cv_cxx_have_pipe="no" |
---|
44 | fi |
---|
45 | |
---|
46 | if test "${ac_cv_cxx_have_pipe}" != yes; then |
---|
47 | PIPE= |
---|
48 | else |
---|
49 | PIPE="-pipe" |
---|
50 | fi |
---|
51 | AC_SUBST(PIPE) |
---|
52 | |
---|
53 | AC_CONFIG_FILES([Makefile]) |
---|
54 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.