configure.ac revision 72c51a9e4d6b56f5454e53a6fc9b5c1bd923f227
1ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_PREREQ(2.60) 2586fc304d85b2a31ae764377b4ddfb64cc9f221cLucas De MarchiAC_INIT([libkmod], 3586fc304d85b2a31ae764377b4ddfb64cc9f221cLucas De Marchi [0.1], 4586fc304d85b2a31ae764377b4ddfb64cc9f221cLucas De Marchi [], 5586fc304d85b2a31ae764377b4ddfb64cc9f221cLucas De Marchi [libkmod], 6586fc304d85b2a31ae764377b4ddfb64cc9f221cLucas De Marchi [http://git.profusion.mobi/cgit.cgi/lucas/libkmod/]) 7586fc304d85b2a31ae764377b4ddfb64cc9f221cLucas De Marchi 8586fc304d85b2a31ae764377b4ddfb64cc9f221cLucas De MarchiAC_CONFIG_SRCDIR([libkmod/libkmod.c]) 9ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_CONFIG_AUX_DIR([build-aux]) 10822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut BarbieriAM_INIT_AUTOMAKE([check-news foreign 1.11 silent-rules tar-pax dist-bzip2 subdir-objects]) 11ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_PROG_CC_STDC 12ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_USE_SYSTEM_EXTENSIONS 13ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_SYS_LARGEFILE 14ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_CONFIG_MACRO_DIR([m4]) 15ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAM_SILENT_RULES([yes]) 16ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiLT_INIT([disable-static pic-only]) 17ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_PREFIX_DEFAULT([/usr]) 18ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi 19648a842bfdb8b3b37122581aebdc9328d2fdfc60Lucas De MarchiAC_PROG_CC 20648a842bfdb8b3b37122581aebdc9328d2fdfc60Lucas De MarchiAC_PROG_CC_C99 21648a842bfdb8b3b37122581aebdc9328d2fdfc60Lucas De MarchiAC_C_TYPEOF 22648a842bfdb8b3b37122581aebdc9328d2fdfc60Lucas De MarchiAM_PROG_CC_C_O 23648a842bfdb8b3b37122581aebdc9328d2fdfc60Lucas De MarchiAC_PROG_GCC_TRADITIONAL 24648a842bfdb8b3b37122581aebdc9328d2fdfc60Lucas De Marchi 2572c51a9e4d6b56f5454e53a6fc9b5c1bd923f227Gustavo Sverzut BarbieriAC_ARG_ENABLE([tools], 2672c51a9e4d6b56f5454e53a6fc9b5c1bd923f227Gustavo Sverzut Barbieri AS_HELP_STRING([--disable-tools], [disable building tools that provide same functionality as module-init-tools @<:@default=enabled@:>@]), 2772c51a9e4d6b56f5454e53a6fc9b5c1bd923f227Gustavo Sverzut Barbieri [], enable_tools=yes) 2872c51a9e4d6b56f5454e53a6fc9b5c1bd923f227Gustavo Sverzut BarbieriAM_CONDITIONAL([BUILD_TOOLS], [test "x$enable_tools" = "xyes"]) 2972c51a9e4d6b56f5454e53a6fc9b5c1bd923f227Gustavo Sverzut Barbieri 30ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_ARG_ENABLE([logging], 31ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]), 32ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi [], enable_logging=yes) 33ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAS_IF([test "x$enable_logging" = "xyes"], [ 34ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi AC_DEFINE(ENABLE_LOGGING, [1], [System logging.]) 35ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi]) 36ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi 37ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_ARG_ENABLE([debug], 38ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]), 39ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi [], [enable_debug=no]) 40ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAS_IF([test "x$enable_debug" = "xyes"], [ 41ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.]) 42ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi]) 43ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi 44822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut BarbieriCC_CHECK_CFLAGS_APPEND([ \ 45822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -pipe \ 46822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wall \ 47822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -W \ 48822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wextra \ 49822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wno-inline \ 50822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wvla \ 51822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wundef \ 52822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wformat=2 \ 53822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wlogical-op \ 54822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wsign-compare \ 55822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wformat-security \ 56822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wmissing-include-dirs \ 57822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wformat-nonliteral \ 58822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wold-style-definition \ 59822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wpointer-arith \ 60822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Winit-self \ 61822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wdeclaration-after-statement \ 62822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wfloat-equal \ 63822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wmissing-prototypes \ 64822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wstrict-prototypes \ 65822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wredundant-decls \ 66822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wmissing-declarations \ 67822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wmissing-noreturn \ 68822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wshadow \ 69822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wendif-labels \ 70822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wcast-align \ 71822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wstrict-aliasing=2 \ 72822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wwrite-strings \ 73822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wno-long-long \ 74822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wno-overlength-strings \ 75822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wno-unused-parameter \ 76822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wno-missing-field-initializers \ 77822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wno-unused-result \ 78822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wp,-D_FORTIFY_SOURCE=2 \ 79822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -ffast-math \ 80822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -fno-common \ 81822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -fdiagnostics-show-option \ 82822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -fno-strict-aliasing \ 83822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -fvisibility=hidden \ 84822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -ffunction-sections \ 85822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -fdata-sections \ 86822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wl,--as-needed \ 87822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri -Wl,--gc-sections]) 88822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri 89822ce2344d6ad36ce0f186e48c120f939a7915b6Gustavo Sverzut Barbieri 90ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_CONFIG_HEADERS(config.h) 91ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_CONFIG_FILES([ 92ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi Makefile 93586fc304d85b2a31ae764377b4ddfb64cc9f221cLucas De Marchi libkmod/libkmod.pc 94ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi]) 95ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi 96ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_OUTPUT 97ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De MarchiAC_MSG_RESULT([ 98ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi $PACKAGE $VERSION 99ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi ======== 100ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi 101ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi prefix: ${prefix} 102ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi sysconfdir: ${sysconfdir} 103ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi libdir: ${libdir} 104ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi includedir: ${includedir} 10572c51a9e4d6b56f5454e53a6fc9b5c1bd923f227Gustavo Sverzut Barbieri bindir: ${bindir} 106ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi 107ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi compiler: ${CC} 108ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi cflags: ${CFLAGS} 109ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi ldflags: ${LDFLAGS} 110ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi 11172c51a9e4d6b56f5454e53a6fc9b5c1bd923f227Gustavo Sverzut Barbieri tools: ${enable_tools} 112ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi logging: ${enable_logging} 113ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi debug: ${enable_debug} 114ecd40ee4992009e8b49f2f8088dd9ab896802ecLucas De Marchi]) 115