1 |
|
dnl Process this file with autoconf to create configure. |
2 |
|
|
3 |
|
AC_INIT(longer_file_name_hello.c) |
4 |
|
AM_INIT_AUTOMAKE(hell,1.0) |
5 |
|
|
6 |
|
AC_PROG_CC |
7 |
|
AC_C_CONST |
8 |
|
AC_EXEEXT |
9 |
|
AC_LIBTOOL_DLOPEN |
10 |
|
AM_PROG_LIBTOOL |
11 |
|
AC_SUBST(LIBTOOL_DEPS) |
12 |
|
|
13 |
|
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then |
14 |
|
STATIC=-static |
15 |
|
else |
16 |
|
STATIC= |
17 |
|
fi |
18 |
|
AC_SUBST(STATIC) |
19 |
|
|
20 |
|
AM_CONDITIONAL(BINARY_HELLDL, [dnl |
21 |
|
grep '^global_symbol_pipe=..*$' ./libtool >/dev/null]) |
22 |
|
|
23 |
|
AC_CHECK_HEADERS(string.h math.h) |
24 |
|
|
25 |
|
AC_CHECK_LIBM |
26 |
|
AC_SUBST(LIBM) |
27 |
|
|
28 |
|
dnl Output the makefile |
29 |
|
AC_OUTPUT(Makefile) |