|
|
|
@ -55,12 +55,26 @@ AM_GNU_GETTEXT_VERSION(0.11.5)
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
|
|
|
|
|
AC_SUBST(OPENWINCE_INC)
|
|
|
|
|
AC_ARG_WITH(include,
|
|
|
|
|
AC_HELP_STRING([--with-include=PATH], [Path to the openwince includes]),
|
|
|
|
|
openwince_inc="$withval",
|
|
|
|
|
openwince_inc="/usr/include/openwince")
|
|
|
|
|
OPENWINCE_INC="-I$openwince_inc -I$openwince_inc/device"
|
|
|
|
|
openwince_inc="$withval")
|
|
|
|
|
|
|
|
|
|
AC_CACHE_CHECK([for the openwince includes], openwince_includes_path, [
|
|
|
|
|
openwince_includes_path="no"
|
|
|
|
|
for openwince_include in $openwince_inc /usr/include/openwince /usr/local/include/openwince; do
|
|
|
|
|
if test -f "$openwince_include/common.h"; then
|
|
|
|
|
openwince_includes_path="$openwince_include"
|
|
|
|
|
break
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
if test "$openwince_includes_path" = "no"; then
|
|
|
|
|
AC_MSG_ERROR([The openwince include package not found.])
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
AC_SUBST(OPENWINCE_INC)
|
|
|
|
|
OPENWINCE_INC="-I$openwince_includes_path -I$openwince_includes_path/device"
|
|
|
|
|
|
|
|
|
|
AC_SEARCH_LIBS([ioperm], [ioperm])
|
|
|
|
|
AC_CHECK_FUNCS(getline getdelim)
|
|
|
|
|