5 AC_DEFUN([PSICONV_INIT],[
7 AC_SUBST(PSICONV_CFLAGS)
9 AC_ARG_WITH(psiconv-includes,
10 [ --with-psiconv-includes Specify location of Psiconv headers],[
11 psiconv_cflags="-I$withval"
14 AC_ARG_WITH(psiconv-libs,
15 [ --with-psiconv-libs Specify location of Psiconv libs],[
16 psiconv_libs="-L$withval"
20 [ --with-psiconv Enable/disable Psiconv support],
21 if test x$withval = xyes; then
24 if test "x$withval" = xno; then
33 if test "$want_psiconv" = "yes"; then
34 ac_save_CFLAGS="$CFLAGS"
36 CFLAGS="$CFLAGS $psiconv_cflags"
37 LIBS="$LIBS $psiconv_libs"
38 AC_CHECK_LIB(psiconv,psiconv_parse,want_psiconv=yes,want_psiconv=no)
39 CFLAGS="$ac_save_CFLAGS"
43 if test "$want_psiconv" = "yes"; then
44 PSICONV_LIBS="${psiconv_libs} -lpsiconv"
45 PSICONV_CFLAGS="$psiconv_cflags"
52 AM_CONDITIONAL(WITH_PSICONV,$with_psiconv)