From f6b333c29926fba9141491d078c5bd0a85c83172 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Sun, 28 Oct 2007 18:26:04 +0000 Subject: Firmware object file building does not depend anymore on another object to be linked into the same module. That dependency existed solely for checking target binary properties in make_firmware_object . Those properties are now checked in autoconf. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3198 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 6ee7523..5ef2cbd 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,14 @@ AC_PROG_INSTALL AC_PROG_LN_S AST_CHECK_GNU_MAKE +test_obj=conftest.o +AC_COMPILE_IFELSE(AC_LANG_SOURCE(),[ + BDFNAME=`LANG=C objdump -f $test_obj | grep -e "$test_obj:" | sed "s/.*file format \(.*\)/\1/"` + BDFARCH=`LANG=C objdump -f $test_obj | grep -e "architecture:" | sed "s/.*ture: \(.*\),.*/\1/"` +],[]) +AC_SUBST(BDFNAME) +AC_SUBST(BDFARCH) + # Set the default value of HOSTCC from CC if --host was not provided: HOSTCC=${HOSTCC:=${CC}} AC_SUBST(HOSTCC) @@ -116,8 +124,9 @@ esac AC_SUBST(PPPD_VERSION) -AC_CONFIG_FILES([build_tools/menuselect-deps makeopts]) +AC_CONFIG_FILES([build_tools/menuselect-deps makeopts build_tools/make_firmware_object]) AC_OUTPUT +chmod a+x build_tools/make_firmware_object AC_MSG_NOTICE(*** Zaptel build successfully configured ***) -- cgit v1.2.3