fix click compile

git-svn-id: svn://svn.openwrt.org/openwrt/packages@4441 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-08-04 18:58:33 +00:00
parent f8fa91d753
commit d5f9309f9a
2 changed files with 52 additions and 0 deletions

View File

@ -41,9 +41,13 @@ define Package/roofnet
URL:=http://pdos.csail.mit.edu/roofnet/
endef
CONF_OPTS= \
ac_cv_int64_t=no \
ac_cv_sizeof_off_t=4
define Build/Configure
(cd $(PKG_BUILD_DIR); \
$(CONF_OPTS) \
./configure; \
cp include/click/config.h include/click/config-host.h; \
rm -rf config.{cache,status} ; \
@ -52,6 +56,7 @@ define Build/Configure
CFLAGS="-static -MD" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
$(CONF_OPTS) \
./configure \
--prefix=/usr \
--target=$(GNU_TARGET_NAME) \
@ -68,6 +73,7 @@ endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(CONF_OPTS) \
$(MAKE) -C $(PKG_BUILD_DIR) \
BUILD_CXX="g++ -include $(PKG_BUILD_DIR)/include/click/config-host.h" \
tools elementmap.xml

View File

@ -0,0 +1,46 @@
diff -urN click.old/configure click.dev/configure
--- click.old/configure 2006-03-02 17:51:04.000000000 +0100
+++ click.dev/configure 2006-08-04 20:40:20.518827296 +0200
@@ -6689,23 +6689,8 @@
echo "$as_me:$LINENO: result: $ac_cv_uint64_t" >&5
echo "${ECHO_T}$ac_cv_uint64_t" >&6
- have_int64_types=
if test $ac_cv_int64_t = no -o $ac_cv_uint64_t = no; then
- { { echo "$as_me:$LINENO: error:
-=========================================
-
-int64_t types not defined by $inttypes_hdr!
-Compile with '--disable-int64'.
-
-=========================================" >&5
-echo "$as_me: error:
-=========================================
-
-int64_t types not defined by $inttypes_hdr!
-Compile with '--disable-int64'.
-
-=========================================" >&2;}
- { (exit 1); exit 1; }; }
+ have_int64_types=
else
cat >>confdefs.h <<\_ACEOF
diff -urN click.old/m4/click.m4 click.dev/m4/click.m4
--- click.old/m4/click.m4 2006-03-02 17:51:06.000000000 +0100
+++ click.dev/m4/click.m4 2006-08-04 20:40:49.953352568 +0200
@@ -536,13 +536,7 @@
have_int64_types=
if test $ac_cv_int64_t = no -o $ac_cv_uint64_t = no; then
- AC_MSG_ERROR([
-=========================================
-
-int64_t types not defined by $inttypes_hdr!
-Compile with '--disable-int64'.
-
-=========================================])
+ have_int64_types=no
else
AC_DEFINE([HAVE_INT64_TYPES], [1], [Define if 64-bit integer types are enabled.])
have_int64_types=yes