Libraries:
glib
gmodule
+ gthread
EOF
exit $1
}
gmodule)
lib_gmodule=yes
;;
+ gthread)
+ lib_gthread=yes
+ ;;
*)
usage 1 1>&2
;;
echo $exec_prefix
fi
if test "$echo_cflags" = "yes"; then
- echo -I@libdir@/glib/include $includes
+ cflags=""
+ if test "$lib_gthread" = "yes"; then
+ cflags="$cflags @G_THREAD_CFLAGS@"
+ fi
+ echo -I@libdir@/glib/include $includes $cflags
fi
if test "$echo_libs" = "yes"; then
- libs=""
+ libsp=""
+ libsa=""
if test "$lib_glib" = "yes"; then
- libs="$libs -lglib-@LT_RELEASE@"
+ libsp="$libsp -lglib"
+ fi
+ if test "$lib_gthread" = "yes"; then
+ libsp="-lgthread $libsp"
+ libsa="$libsa @G_THREAD_LIBS@"
fi
if test "$lib_gmodule" = "yes"; then
- libs="@G_MODULE_LDFLAGS@ -lgmodule-@LT_RELEASE@ $libs @G_MODULE_LIBS@"
+ libsp="@G_MODULE_LDFLAGS@ -lgmodule $libsp"
+ libsa="$libsa @G_MODULE_LIBS@"
fi
- echo "-L@libdir@ $libs"
+ echo -L@libdir@ $libsp $libsa
fi