pkanwar | 8ba9c0c | 2017-02-08 19:05:01 -0800 | [diff] [blame] | 1 | dnl Process this file with autoconf to create configure. |
| 2 | |
| 3 | AC_INIT(libnfnetlink, 1.0.1) |
| 4 | AC_CONFIG_AUX_DIR([build-aux]) |
| 5 | AC_CONFIG_MACRO_DIR([m4]) |
| 6 | AC_CANONICAL_HOST |
| 7 | |
| 8 | AM_INIT_AUTOMAKE([-Wall foreign subdir-objects |
| 9 | tar-pax no-dist-gzip dist-bzip2 1.6]) |
| 10 | |
| 11 | dnl kernel style compile messages |
| 12 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
| 13 | |
| 14 | AC_PROG_CC |
| 15 | AM_PROG_CC_C_O |
| 16 | AC_DISABLE_STATIC |
| 17 | AM_PROG_LIBTOOL |
| 18 | |
| 19 | case "$host" in |
| 20 | *-*-linux*) ;; |
| 21 | *) AC_MSG_ERROR([Linux only, dude!]);; |
| 22 | esac |
| 23 | |
| 24 | |
| 25 | dnl-------------------------------- |
| 26 | dnl-------------------------------- |
| 27 | |
| 28 | |
| 29 | dnl Output the makefile |
| 30 | AC_CONFIG_FILES([Makefile src/Makefile include/Makefile |
| 31 | include/libnfnetlink/Makefile utils/Makefile libnfnetlink.pc]) |
| 32 | AC_OUTPUT |