Created
November 26, 2018 02:46
-
-
Save misuchiru03/186475d0f571c9743600f900fc5ad9f0 to your computer and use it in GitHub Desktop.
Moloch check for glib2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check whether --with-glib2 was given. | |
if test "${with_glib2+set}" = set; then : | |
withval=$with_glib2; case "$withval" in | |
yes|no) | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | |
;; | |
*) | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | |
$as_echo "$withval" >&6; } | |
if test -f $withval/glib/glib.h -a -f $withval/glib/.libs/libglib-2.0.a; then | |
owd=`pwd` | |
if cd $withval; then | |
withval=`pwd`; | |
cd $owd; | |
fi | |
GLIB2_CFLAGS="-I$withval/glib -I$withval -I$withval/gmodule -I$withval/gobject" | |
GLIB2_LIBS="$withval/glib/.libs/libglib-2.0.a $withval/gio/.libs/libgio-2.0.a $withval/gobject/.libs/libgobject-2.0.a $withval/gthread/.libs/libgthread-2.0.a $withval/gmodule/.libs/libgmodule-2.0.a $withval/glib/.libs/libglib-2.0.a" | |
else | |
as_fn_error $? "glib.h or libglib-2.0.a not found in $withval" "$LINENO" 5 | |
fi | |
;; | |
esac | |
else | |
GLIB2_CFLAGS=`pkg-config gio-2.0 gobject-2.0 gthread-2.0 glib-2.0 gmodule-2.0 --cflags` | |
GLIB2_LIBS=`pkg-config gio-2.0 gobject-2.0 gthread-2.0 glib-2.0 gmodule-2.0 --libs` | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
$as_echo "yes" >&6; } | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment