X-Git-Url: http://git.indexdata.com/?p=m4-moved-to-github.git;a=blobdiff_plain;f=usemarcon.m4;fp=usemarcon.m4;h=8c7fb45e1c6cf89cf4759022152bdfa09e253ed8;hp=cebfa4606d8be6b21f07ec86dceffab2cdbb5e93;hb=58092fa51c66ace9beb4b058854266c7134f18a6;hpb=3afa7c85416989b7cc2f5210107013ef43c20801 diff --git a/usemarcon.m4 b/usemarcon.m4 index cebfa46..8c7fb45 100644 --- a/usemarcon.m4 +++ b/usemarcon.m4 @@ -6,9 +6,7 @@ AC_DEFUN([USEMARCON_INIT], usemarconpath=NONE AC_ARG_WITH(usemarcon, [ --with-usemarcon=DIR usemarcon-config in DIR (example /home/usemarcon145)], [usemarconpath=$withval]) - if test "x$usemarconpath" != "xNONE"; then - usemarconconfig=$usemarconpath/usemarcon-config - else + if test "$usemarconpath" = "NONE"; then if test "x$srcdir" = "x"; then usemarconsrcdir=. else @@ -24,6 +22,8 @@ AC_DEFUN([USEMARCON_INIT], if test "x$usemarconconfig" = "xNONE"; then AC_PATH_PROG(usemarconconfig, usemarcon-config, NONE) fi + elif test "$usemarconpath" != "no"; then + usemarconconfig=$usemarconpath/usemarcon-config fi AC_MSG_CHECKING(for USEMARCON) @@ -32,7 +32,7 @@ AC_DEFUN([USEMARCON_INIT], USEMARCONINC=`$usemarconconfig --cflags $1` USEMARCONVERSION=`$usemarconconfig --version` AC_MSG_RESULT($usemarconconfig) - AC_DEFINE(HAVE_USEMARCON) + AC_DEFINE([HAVE_USEMARCON],[1],[Define to 1 if USEMARCON is used]) else AC_MSG_RESULT(Not found) USEMARCONVERSION=NONE