Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
77081999
Commit
77081999
authored
May 17, 2015
by
Vincent Castellano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to autotools for python detection
parent
d001bcd2
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
228 additions
and
255 deletions
+228
-255
Makefile.in
Makefile.in
+1
-2
autotools.sh
autotools.sh
+0
-1
ax_python.m4
ax_python.m4
+11
-1
bootstrap
bootstrap
+6
-0
config.h.in
config.h.in
+3
-3
configure
configure
+172
-224
configure.ac
configure.ac
+35
-24
No files found.
Makefile.in
View file @
77081999
...
@@ -4,8 +4,7 @@ CFLAGS=@CFLAGS@
...
@@ -4,8 +4,7 @@ CFLAGS=@CFLAGS@
LDFLAGS
=
@LDFLAGS@ @OPENSSL_LDFLAGS@
LDFLAGS
=
@LDFLAGS@ @OPENSSL_LDFLAGS@
CPPFLAGS
=
@CPPFLAGS@ @OPENSSL_INCLUDES@
CPPFLAGS
=
@CPPFLAGS@ @OPENSSL_INCLUDES@
DEFS
=
@DEFS@
DEFS
=
@DEFS@
COMPILE_FLAGS
=
${
CFLAGS
}
${
CPFLAGS
}
${
CPPFLAGS
}
${
DEFS
}
-Wall
-Wextra
-Wno-deprecated-declarations
-fno-strict-aliasing
-fno-omit-frame-pointer
-ggdb
-Wno-unused-parameter
-fPIC
COMPILE_FLAGS
=
${
CFLAGS
}
${
CPFLAGS
}
${
CPPFLAGS
}
${
DEFS
}
-Wall
-Werror
-Wextra
-Wno-deprecated-declarations
-fno-strict-aliasing
-fno-omit-frame-pointer
-ggdb
-Wno-unused-parameter
-fPIC
#TODO re-add -Werror
EXTRA_LIBS
=
@LIBS@ @EXTRA_LIBS@ @OPENSSL_LIBS@
EXTRA_LIBS
=
@LIBS@ @EXTRA_LIBS@ @OPENSSL_LIBS@
LOCAL_LDFLAGS
=
-rdynamic
-ggdb
-levent
${
EXTRA_LIBS
}
LOCAL_LDFLAGS
=
-rdynamic
-ggdb
-levent
${
EXTRA_LIBS
}
LINK_FLAGS
=
${
LDFLAGS
}
${
LOCAL_LDFLAGS
}
LINK_FLAGS
=
${
LDFLAGS
}
${
LOCAL_LDFLAGS
}
...
...
autotools.sh
deleted
100755 → 0
View file @
d001bcd2
aclocal
;
autoheader
;
automake
;
autoconf
ax_python.m4
View file @
77081999
...
@@ -56,7 +56,8 @@
...
@@ -56,7 +56,8 @@
AC_DEFUN([AX_PYTHON],
AC_DEFUN([AX_PYTHON],
[AC_MSG_CHECKING(for python build information)
[AC_MSG_CHECKING(for python build information)
AC_MSG_RESULT([])
AC_MSG_RESULT([])
for python in python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
for python in python3.4 python3.3 python3.2 python3.1 python2.7 python2.6 python3, python2, python; do
AC_CHECK_PROGS(PYTHON_BIN, [$python])
AC_CHECK_PROGS(PYTHON_BIN, [$python])
ax_python_bin=$PYTHON_BIN
ax_python_bin=$PYTHON_BIN
if test x$ax_python_bin != x; then
if test x$ax_python_bin != x; then
...
@@ -87,12 +88,21 @@ AC_MSG_RESULT([ Binary: $ax_python_bin])
...
@@ -87,12 +88,21 @@ AC_MSG_RESULT([ Binary: $ax_python_bin])
AC_MSG_RESULT([ Library: $ax_python_lib])
AC_MSG_RESULT([ Library: $ax_python_lib])
AC_MSG_RESULT([ Include Dir: $ax_python_header])
AC_MSG_RESULT([ Include Dir: $ax_python_header])
PYTHON_FOUND=yes
if test x$ax_python_header != xno; then
if test x$ax_python_header != xno; then
PYTHON_INCLUDE_DIR=$ax_python_header
PYTHON_INCLUDE_DIR=$ax_python_header
AC_SUBST(PYTHON_INCLUDE_DIR)
AC_SUBST(PYTHON_INCLUDE_DIR)
else
PYTHON_FOUND=no
fi
fi
if test x$ax_python_lib != xno; then
if test x$ax_python_lib != xno; then
PYTHON_LIB=$ax_python_lib
PYTHON_LIB=$ax_python_lib
AC_SUBST(PYTHON_LIB)
AC_SUBST(PYTHON_LIB)
else
PYTHON_FOUND=no
fi
fi
AC_SUBST(PYTHON_FOUND)
])dnl
])dnl
bootstrap
0 → 100755
View file @
77081999
#! /bin/sh
aclocal
autoheader
automake
--gnu
--add-missing
autoconf
config.h.in
View file @
77081999
...
@@ -164,12 +164,12 @@
...
@@ -164,12 +164,12 @@
/* use lua */
/* use lua */
#undef USE_LUA
#undef USE_LUA
/* fixed for correct valgrind work */
#undef VALGRIND_FIXES
/* use python */
/* use python */
#undef USE_PYTHON
#undef USE_PYTHON
/* fixed for correct valgrind work */
#undef VALGRIND_FIXES
/* Define to `int' if <sys/types.h> doesn't define. */
/* Define to `int' if <sys/types.h> doesn't define. */
#undef gid_t
#undef gid_t
...
...
configure
View file @
77081999
This diff is collapsed.
Click to expand it.
configure.ac
View file @
77081999
...
@@ -94,20 +94,45 @@ AC_ARG_ENABLE(liblua,[--enable-liblua/--disable-liblua],
...
@@ -94,20 +94,45 @@ AC_ARG_ENABLE(liblua,[--enable-liblua/--disable-liblua],
AC_MSG_ERROR([No lua found. Try --disable-liblua])
AC_MSG_ERROR([No lua found. Try --disable-liblua])
])
])
])
])
AC_MSG_CHECKING([for python])
AC_ARG_ENABLE(python,[--enable-python/--disable-python],
AC_ARG_ENABLE(python,[--enable-python/--disable-python],
[
[
if test "x$enableval" = "xno" ; then
AC_MSG_RESULT([disabled])
else
AC_MSG_RESULT([enabled])
AX_PYTHON()
AX_PYTHON()
dnl python checks (you can change the required python version bellow)
AC_SUBST([PYTHON_FOUND])
AM_PATH_PYTHON(2.7.0)
if test $PYTHON_FOUND = no ; then
PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
AC_MSG_ERROR([No supported python lib version found. Try --disable-python])
else
AC_SUBST([PYTHON_LIBS])
AC_SUBST([PYTHON_LIBS])
AC_SUBST([PYTHON_CFLAGS])
AC_SUBST([PYTHON_CFLAGS])
EXTRA_LIBS="${EXTRA_LIBS} -l${PYTHON_LIB}"
EXTRA_LIBS="${EXTRA_LIBS} -l${PYTHON_LIB}"
CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE_DIR}"
CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE_DIR}"
AC_DEFINE(USE_PYTHON,1,[use python])
fi
fi
],[
AC_MSG_RESULT([enabled])
AX_PYTHON()
AC_SUBST([PYTHON_FOUND])
if test $PYTHON_FOUND = no ; then
AC_MSG_ERROR([No supported python lib version found. Try --disable-python])
else
AC_SUBST([PYTHON_LIBS])
AC_SUBST([PYTHON_CFLAGS])
EXTRA_LIBS="${EXTRA_LIBS} -l${PYTHON_LIB}"
CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE_DIR}"
AC_DEFINE(USE_PYTHON,1,[use python])
AC_DEFINE(USE_PYTHON,1,[use python])
fi
])
])
AC_MSG_CHECKING([for libjansson])
AC_MSG_CHECKING([for libjansson])
AC_ARG_ENABLE(json,[--enable-json/--disable-json],
AC_ARG_ENABLE(json,[--enable-json/--disable-json],
[
[
...
@@ -124,20 +149,6 @@ AC_ARG_ENABLE(json,[--enable-json/--disable-json],
...
@@ -124,20 +149,6 @@ AC_ARG_ENABLE(json,[--enable-json/--disable-json],
AC_DEFINE(USE_JSON,1,[use json])
AC_DEFINE(USE_JSON,1,[use json])
])
])
AC_ARG_ENABLE(python,[--enable-python/--disable-python],
[
AX_PYTHON()
dnl python checks (you can change the required python version bellow)
AM_PATH_PYTHON(2.7.0)
PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
AC_SUBST([PYTHON_LIBS])
AC_SUBST([PYTHON_CFLAGS])
EXTRA_LIBS="${EXTRA_LIBS} -l${PYTHON_LIB}"
CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE_DIR}"
AC_DEFINE(USE_PYTHON,1,[use python])
])
#check for custom prog name
#check for custom prog name
AC_MSG_CHECKING([progname])
AC_MSG_CHECKING([progname])
AC_ARG_WITH(progname,[--with-progname=<name>],
AC_ARG_WITH(progname,[--with-progname=<name>],
...
...
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