Skip to content

Commit

Permalink
move some tests up to autogen-time
Browse files Browse the repository at this point in the history
  • Loading branch information
novas0x2a committed Jan 31, 2009
1 parent ec5c943 commit a3e2ec7
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions m4/ax_pkg.m4
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,9 @@ AC_DEFUN([AX_PKG],
AX_LOG([APPEND: ADD_]$1[_LDFLAGS=$ADD_]$1[_LDFLAGS])
fi
if test x"$ENABLE_VERBOSE" = "xyes"; then
if test -z "$6"; then
AC_MSG_CHECKING([for package $1 in current paths])
else
AC_MSG_CHECKING([for package $1 in current paths with functions ($6)])
fi
else
if test -z "$6"; then
AC_MSG_CHECKING([for package $1])
else
AC_MSG_CHECKING([for package $1 with functions ($6)])
fi
fi
m4_ifval([$6],
[AC_MSG_CHECKING([for package $1 with functions ($6)])],
[AC_MSG_CHECKING([for package $1])])
AC_LANG_ASSERT(C++)
Expand Down Expand Up @@ -126,11 +116,9 @@ AC_DEFUN([AX_PKG],
fi
fi
if test -z "$5"; then
TRY_ADD_CPPFLAGS="$TRY_ADD_CPPFLAGS -I$path/${AX_INCLUDE_DIR}"
else
TRY_ADD_CPPFLAGS="$TRY_ADD_CPPFLAGS -I$path/${AX_INCLUDE_DIR}/$5"
fi
m4_ifval([$5],
[TRY_ADD_CPPFLAGS="$TRY_ADD_CPPFLAGS -I$path/${AX_INCLUDE_DIR}/]$5["],
[TRY_ADD_CPPFLAGS="$TRY_ADD_CPPFLAGS -I$path/${AX_INCLUDE_DIR}"])
if test -d $path/${AX_LIBDIR}; then
TRY_ADD_LDFLAGS="$TRY_ADD_LDFLAGS -L$path/${AX_LIBDIR}"
Expand Down

0 comments on commit a3e2ec7

Please sign in to comment.