[Kst] branches/kst/hfi_calib/kst
George Staikos
staikos at kde.org
Sun May 28 14:48:12 CEST 2006
SVN commit 545810 by staikos:
add the libnad check
M +30 -0 configure.in.in
--- branches/kst/hfi_calib/kst/configure.in.in #545809:545810
@@ -46,6 +46,36 @@
AM_CONDITIONAL(include_piolib, test -n "$PIOLIBS")
+# LIBNAD Test
+ac_nad_includes=""
+ac_nad_libraries=""
+AC_ARG_WITH(nad,
+ AC_HELP_STRING([--with-nad=DIR],[where the root of NAD is installed ]),
+ [ ac_nad_includes="-I$withval"
+ ac_nad_libraries="-L$withval"
+ ])
+
+all_includes_save="$all_includes"
+all_includes="$all_includes $ac_nad_includes"
+KDE_CHECK_HEADER(nad.h, AC_DEFINE(HAVE_NAD_H, 1, [If we have nad headers]) have_nad_h=yes NADINCLUDES="$ac_nad_includes", , )
+all_includes="$all_includes_save"
+
+ldflags_save="$LDFLAGS"
+LDFLAGS="$LDFLAGS $ac_nad_libraries"
+KDE_CHECK_LIB(nad, NADVERSION, NADLIBS="$ac_nad_libraries -lnad -lcurl $NADLIBS", , -lm -lpthread -ldl -lcurl -lqt-mt)
+LDFLAGS="$ldflags_save"
+
+if test "x$ac_cv_lib_nad_NADVERSION" = "xyes"; then
+ if test "x$have_nad_h" = "xyes"; then
+ AC_SUBST(NADLIBS)
+ AC_SUBST(NADINCLUDES)
+ AC_DEFINE(KST_HAVE_NAD, 1, [If we have the NAD libraries.])
+ fi
+fi
+
+AM_CONDITIONAL(include_nad, test -n "$NADLIBS")
+
+
# Transfer function test
ac_transfunc_includes=""
ac_transfunc_libraries=""
More information about the Kst
mailing list