Modify Autotools scripts
Modify Autotools scripts to output shared library.
This commit is contained in:
parent
35560c46ea
commit
34cd6fdc58
6 changed files with 38 additions and 20 deletions
14
configure.ac
14
configure.ac
|
|
@ -30,12 +30,12 @@ AM_INIT_AUTOMAKE([\
|
|||
])
|
||||
|
||||
# Option to enable extras.
|
||||
AC_ARG_ENABLE([extra],
|
||||
AS_HELP_STRING([--enable-extra], [Enable features]))
|
||||
AS_IF([test "x$enable_extra" = "xyes"], [
|
||||
AC_DEFINE([EXTRA], [1], [Enable extra features.])
|
||||
AM_CONDITIONAL([EXTRA], [test "x$enable_extra" = "xyes"])
|
||||
])
|
||||
#AC_ARG_ENABLE([extra],
|
||||
# AS_HELP_STRING([--enable-extra], [Enable features]))
|
||||
#AS_IF([test "x$enable_extra" = "xyes"], [
|
||||
# AC_DEFINE([EXTRA], [1], [Enable extra features.])
|
||||
# AM_CONDITIONAL([EXTRA], [test "x$enable_extra" = "xyes"])
|
||||
#])
|
||||
|
||||
# Locations of generated Makefiles.
|
||||
AC_CONFIG_FILES([\
|
||||
|
|
@ -47,7 +47,7 @@ AC_CONFIG_FILES([\
|
|||
AC_CONFIG_SRCDIR([src/main.c])
|
||||
|
||||
|
||||
CFLAGS="$CFLAGS -std=c89 -pedantic-errors -Wall -Wold-style-definition -Wextra \
|
||||
CFLAGS="$CFLAGS -std=c11 -pedantic-errors -Wall -Wold-style-definition -Wextra \
|
||||
-Wmissing-prototypes -Wstrict-prototypes" # Compile to C89
|
||||
# without
|
||||
# GNU extensions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue