Check for windres and opag
parent
1de364bbd1
commit
1a4c4a8294
|
@ -20,7 +20,7 @@ AC_HEADER_STDC
|
|||
# AC_LIBTOOL_WIN32_DLL
|
||||
# AC_PROG_LIBTOOL
|
||||
AC_PROG_INSTALL
|
||||
MOO_AC_PROG_WINDRES
|
||||
MOO_AC_PROGS
|
||||
|
||||
AC_SUBST(ACLOCAL_FLAGS)
|
||||
|
||||
|
|
|
@ -9,10 +9,10 @@ EXTRA_DIST = \
|
|||
moo-gtkhtml.m4 \
|
||||
moo-os.m4 \
|
||||
moo-pcre.m4 \
|
||||
moo-progs.m4 \
|
||||
moo-pygtk.m4 \
|
||||
moo-python.m4 \
|
||||
moo-reloc.m4 \
|
||||
moo-version.m4 \
|
||||
moo-windres.m4 \
|
||||
moo-xdgmime.m4 \
|
||||
moo-xml.m4
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
##############################################################################
|
||||
# MOO_AC_PROGS
|
||||
# checks for prgoams needed
|
||||
#
|
||||
AC_DEFUN([MOO_AC_PROGS],[
|
||||
AC_ARG_VAR([WINDRES], [windres])
|
||||
AC_CHECK_TOOL(WINDRES, windres, :)
|
||||
AC_ARG_VAR([OPAG], [opag])
|
||||
AC_CHECK_PROG(OPAG, opag, opag)
|
||||
])
|
|
@ -1,28 +0,0 @@
|
|||
##############################################################################
|
||||
# MOO_AC_PROG_WINDRES
|
||||
# checks whether windres is available, pretty broken
|
||||
#
|
||||
AC_DEFUN([MOO_AC_PROG_WINDRES],[
|
||||
case $host in
|
||||
*-*-mingw*|*-*-cygwin*)
|
||||
AC_MSG_CHECKING([for windres])
|
||||
found=
|
||||
if test -z $WINDRES; then
|
||||
if test "x$CC" != "x"; then
|
||||
WINDRES=`echo $CC | sed "s/gcc$//"`windres
|
||||
else
|
||||
WINDRES=windres
|
||||
fi
|
||||
fi
|
||||
found=`$WINDRES --version 2>/dev/null`
|
||||
if test "x$found" != "x"; then
|
||||
AC_MSG_RESULT([found $WINDRES])
|
||||
AC_SUBST(WINDRES)
|
||||
else
|
||||
AC_MSG_RESULT([not found])
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
])
|
Loading…
Reference in New Issue