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
e1e03cae
Commit
e1e03cae
authored
Feb 05, 2014
by
vysheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #60 from antma/master
minor configure.ac simplifications
parents
12e8e5c7
c0d616cc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
18 deletions
+22
-18
Makefile.in
Makefile.in
+1
-1
config.h
config.h
+3
-3
config.h.in
config.h.in
+3
-3
configure
configure
+8
-4
configure.ac
configure.ac
+2
-4
main.c
main.c
+5
-3
No files found.
Makefile.in
View file @
e1e03cae
...
@@ -6,7 +6,7 @@ CPPFLAGS=@CPPFLAGS@
...
@@ -6,7 +6,7 @@ CPPFLAGS=@CPPFLAGS@
DEFS
=
@DEFS@
DEFS
=
@DEFS@
COMPILE_FLAGS
=
${
CFLAGS
}
${
CPPFLAGS
}
${
DEFS
}
-Wall
-Wextra
-Werror
-Wno-deprecated
-fno-strict-aliasing
-fno-omit-frame-pointer
-ggdb
COMPILE_FLAGS
=
${
CFLAGS
}
${
CPPFLAGS
}
${
DEFS
}
-Wall
-Wextra
-Werror
-Wno-deprecated
-fno-strict-aliasing
-fno-omit-frame-pointer
-ggdb
EXTRA_LIBS
=
-lssl
@LIBS@ @EXTRA_LIBS@
EXTRA_LIBS
=
@LIBS@ @EXTRA_LIBS@
LOCAL_LDFLAGS
=
-rdynamic
-ggdb
${
EXTRA_LIBS
}
LOCAL_LDFLAGS
=
-rdynamic
-ggdb
${
EXTRA_LIBS
}
LINK_FLAGS
=
${
LDFLAGS
}
${
LOCAL_LDFLAGS
}
LINK_FLAGS
=
${
LDFLAGS
}
${
LOCAL_LDFLAGS
}
...
...
config.h
View file @
e1e03cae
/* config.h. Generated from config.h.in by configure. */
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* enable libconfig */
#define ENABLE_LIBCONFIG 1
/* Define to 1 if you have the `alarm' function. */
/* Define to 1 if you have the `alarm' function. */
#define HAVE_ALARM 1
#define HAVE_ALARM 1
...
@@ -25,6 +22,9 @@
...
@@ -25,6 +22,9 @@
/* Define to 1 if you have the <lauxlib.h> header file. */
/* Define to 1 if you have the <lauxlib.h> header file. */
#define HAVE_LAUXLIB_H 1
#define HAVE_LAUXLIB_H 1
/* Define to 1 if you have the `config' library (-lconfig). */
#define HAVE_LIBCONFIG 1
/* Define to 1 if you have the `crypto' library (-lcrypto). */
/* Define to 1 if you have the `crypto' library (-lcrypto). */
#define HAVE_LIBCRYPTO 1
#define HAVE_LIBCRYPTO 1
...
...
config.h.in
View file @
e1e03cae
/* config.h.in. Generated from configure.ac by autoheader. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* enable libconfig */
#undef ENABLE_LIBCONFIG
/* Define to 1 if you have the `alarm' function. */
/* Define to 1 if you have the `alarm' function. */
#undef HAVE_ALARM
#undef HAVE_ALARM
...
@@ -24,6 +21,9 @@
...
@@ -24,6 +21,9 @@
/* Define to 1 if you have the <lauxlib.h> header file. */
/* Define to 1 if you have the <lauxlib.h> header file. */
#undef HAVE_LAUXLIB_H
#undef HAVE_LAUXLIB_H
/* Define to 1 if you have the `config' library (-lconfig). */
#undef HAVE_LIBCONFIG
/* Define to 1 if you have the `crypto' library (-lcrypto). */
/* Define to 1 if you have the `crypto' library (-lcrypto). */
#undef HAVE_LIBCRYPTO
#undef HAVE_LIBCRYPTO
...
...
configure
View file @
e1e03cae
...
@@ -3562,14 +3562,16 @@ fi
...
@@ -3562,14 +3562,16 @@ fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_config_config_init
"
>
&5
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_config_config_init
"
>
&5
$as_echo
"
$ac_cv_lib_config_config_init
"
>
&6
;
}
$as_echo
"
$ac_cv_lib_config_config_init
"
>
&6
;
}
if
test
"x
$ac_cv_lib_config_config_init
"
=
xyes
;
then
:
if
test
"x
$ac_cv_lib_config_config_init
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBCONFIG 1
_ACEOF
$as_echo
"#define ENABLE_LIBCONFIG 1"
>>
confdefs.h
LIBS
=
"-lconfig
$LIBS
"
else
else
as_fn_error
$?
"No libconfig found. Try --disable-libconfig"
"
$LINENO
"
5
as_fn_error
$?
"No libconfig found. Try --disable-libconfig"
"
$LINENO
"
5
fi
fi
EXTRA_LIBS
=
"
${
EXTRA_LIBS
}
-lconfig"
;
fi
fi
else
else
...
@@ -3613,14 +3615,16 @@ fi
...
@@ -3613,14 +3615,16 @@ fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_config_config_init
"
>
&5
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_config_config_init
"
>
&5
$as_echo
"
$ac_cv_lib_config_config_init
"
>
&6
;
}
$as_echo
"
$ac_cv_lib_config_config_init
"
>
&6
;
}
if
test
"x
$ac_cv_lib_config_config_init
"
=
xyes
;
then
:
if
test
"x
$ac_cv_lib_config_config_init
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBCONFIG 1
_ACEOF
$as_echo
"#define ENABLE_LIBCONFIG 1"
>>
confdefs.h
LIBS
=
"-lconfig
$LIBS
"
else
else
as_fn_error
$?
"No libconfig found. Try --disable-libconfig"
"
$LINENO
"
5
as_fn_error
$?
"No libconfig found. Try --disable-libconfig"
"
$LINENO
"
5
fi
fi
EXTRA_LIBS
=
"
${
EXTRA_LIBS
}
-lconfig"
;
fi
fi
...
...
configure.ac
View file @
e1e03cae
...
@@ -35,13 +35,11 @@ AC_ARG_ENABLE(libconfig,[--enable-libconfig/--disable-libconfig],
...
@@ -35,13 +35,11 @@ AC_ARG_ENABLE(libconfig,[--enable-libconfig/--disable-libconfig],
AC_MSG_RESULT([disabled])
AC_MSG_RESULT([disabled])
else
else
AC_MSG_RESULT([enabled])
AC_MSG_RESULT([enabled])
AC_CHECK_LIB([config],[config_init],AC_DEFINE(ENABLE_LIBCONFIG,1,[enable libconfig]),AC_MSG_ERROR([No libconfig found. Try --disable-libconfig]))
AC_CHECK_LIB([config],[config_init],[],AC_MSG_ERROR([No libconfig found. Try --disable-libconfig]))
[EXTRA_LIBS="${EXTRA_LIBS} -lconfig" ; ]
fi
fi
],[
],[
AC_MSG_RESULT([enabled])
AC_MSG_RESULT([enabled])
AC_CHECK_LIB([config],[config_init],AC_DEFINE(ENABLE_LIBCONFIG,1,[enable libconfig]),AC_MSG_ERROR([No libconfig found. Try --disable-libconfig]))
AC_CHECK_LIB([config],[config_init],[],AC_MSG_ERROR([No libconfig found. Try --disable-libconfig]))
[EXTRA_LIBS="${EXTRA_LIBS} -lconfig" ; ]
])
])
AC_MSG_CHECKING([for liblua])
AC_MSG_CHECKING([for liblua])
...
...
main.c
View file @
e1e03cae
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
#include <execinfo.h>
#include <execinfo.h>
#endif
#endif
#include <signal.h>
#include <signal.h>
#ifdef
ENABL
E_LIBCONFIG
#ifdef
HAV
E_LIBCONFIG
#include <libconfig.h>
#include <libconfig.h>
#endif
#endif
...
@@ -247,7 +247,7 @@ void running_for_first_time (void) {
...
@@ -247,7 +247,7 @@ void running_for_first_time (void) {
}
}
}
}
#ifdef
ENABL
E_LIBCONFIG
#ifdef
HAV
E_LIBCONFIG
void
parse_config_val
(
config_t
*
conf
,
char
**
s
,
char
*
param_name
,
const
char
*
default_name
,
const
char
*
path
)
{
void
parse_config_val
(
config_t
*
conf
,
char
**
s
,
char
*
param_name
,
const
char
*
default_name
,
const
char
*
path
)
{
static
char
buf
[
1000
];
static
char
buf
[
1000
];
int
l
=
0
;
int
l
=
0
;
...
@@ -433,7 +433,9 @@ void print_backtrace (void) {
...
@@ -433,7 +433,9 @@ void print_backtrace (void) {
}
}
#else
#else
void
print_backtrace
(
void
)
{
void
print_backtrace
(
void
)
{
write
(
1
,
"No libexec. Backtrace disabled
\n
"
,
32
);
if
(
write
(
1
,
"No libexec. Backtrace disabled
\n
"
,
32
)
<
0
)
{
// Sad thing
}
}
}
#endif
#endif
...
...
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