Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
79c18b03
Commit
79c18b03
authored
Mar 14, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: small rework
parent
eea3cea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
configure.ac
configure.ac
+17
-12
No files found.
configure.ac
View file @
79c18b03
...
...
@@ -16,14 +16,17 @@ AC_C_INLINE
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
dnl default CFLAGS
CFLAGS="${CFLAGS} -Wall -Werror --std=gnu99 -D_GNU_SOURCE"
CFLAGS="${CFLAGS} -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
dnl store CFLAGS from user
CFLAGS_save="${CFLAGS}"
dnl add features to CFLAGS
CFLAGS_dist="-Wall -Werror --std=gnu99 -D_GNU_SOURCE"
CFLAGS_dist="${CFLAGS_dist} -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
dnl check the operating system
case "${target_os}" in
darwin*)
CFLAGS
="${CFLAGS
} -no-cpp-precomp"
CFLAGS
_dist="${CFLAGS_dist
} -no-cpp-precomp"
;;
esac
...
...
@@ -37,10 +40,9 @@ AC_ARG_ENABLE(debug,
esac],[debug=false])
if test "$debug" = "true"
then
CFLAGS
="${CFLAGS
} -g -ggdb3"
CFLAGS
_dist="${CFLAGS_dist
} -g -ggdb3"
fi
dnl --enable-release
AC_ARG_ENABLE(release,
[ --enable-release Enable release mode (default disabled)],
...
...
@@ -49,13 +51,13 @@ AC_ARG_ENABLE(release,
no) release=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-release) ;;
esac],[release=false])
if test "$release" = "true"
then
CFLAGS="${CFLAGS} -O6"
else
CFLAGS="${CFLAGS} -O2 -DDVBPSI_DIST"
if test "$release" != "true"; then
CFLAGS_dist="${CFLAGS_dist} -DDVBPSI_DIST"
fi
dnl compile feature tests
CFLAGS="${CFLAGS_save} ${CFLAGS_dist}"
dnl Check for headers
AC_CHECK_HEADERS(stdbool.h stdint.h inttypes.h getopt.h strings.h sys/time.h)
dnl AC_CHECK_FUNCS([gettimeofday])
...
...
@@ -76,6 +78,9 @@ if test "${ac_cv_cpp_variadic_macros}" != "no"; then
AC_DEFINE(HAVE_VARIADIC_MACROS, 1, Support for variadic macros)
fi
dnl
dnl Generate Makefiles and other output files
dnl
AC_OUTPUT([Makefile
src/Makefile
examples/Makefile
...
...
@@ -92,5 +97,5 @@ libdvbpsi configuration
libdvbpsi version : ${VERSION}
debug : ${debug}
release : ${release}
compile flags : ${CFLAGS}
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment