summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-25 10:12:52 +0100
committerVolker Lendecke <vlendec@samba.org>2011-03-25 16:35:30 +0100
commit26253e04604d2ac6c747a87433a87476f834ac4f (patch)
tree74dec0bcf18fa184ca7ee98d4aaabe2777eb105c /source3
parent273e7cbb9989fd1f2ae4d871369232a2be8656f7 (diff)
downloadsamba-26253e04604d2ac6c747a87433a87476f834ac4f.tar.gz
samba-26253e04604d2ac6c747a87433a87476f834ac4f.tar.bz2
samba-26253e04604d2ac6c747a87433a87476f834ac4f.zip
s3: Compile IDL files in autogen, some configure tests need this
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Mar 25 16:35:30 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rwxr-xr-xsource3/autogen.sh11
-rw-r--r--source3/tests/preproc-dummy.c1
2 files changed, 12 insertions, 0 deletions
diff --git a/source3/autogen.sh b/source3/autogen.sh
index 8f8cd2ca7a..d9f6030900 100755
--- a/source3/autogen.sh
+++ b/source3/autogen.sh
@@ -75,6 +75,17 @@ $AUTOCONF $IPATHS || exit 1
rm -rf autom4te*.cache
+if gcc -E tests/preproc-dummy.c -o /dev/null ;
+then
+ PIDL_OUTPUTDIR="librpc/gen_ndr" CPP="gcc -E" PIDL=../pidl/pidl \
+ srcdir=. ../librpc/build_idl.sh ../librpc/idl/*.idl
+ PIDL_OUTPUTDIR="librpc/gen_ndr" CPP="gcc -E" PIDL=../pidl/pidl \
+ srcdir=. script/build_idl.sh librpc/idl/*.idl
+else
+ echo "Warning: Could not compile idl files in autogen, "
+ echo "some autconf tests might not work properly"
+fi
+
echo "Now run ./configure (or ./configure.developer) and then make."
exit 0
diff --git a/source3/tests/preproc-dummy.c b/source3/tests/preproc-dummy.c
new file mode 100644
index 0000000000..78f2de106c
--- /dev/null
+++ b/source3/tests/preproc-dummy.c
@@ -0,0 +1 @@
+int main(void) { return 0; }