s3: Compile IDL files in autogen, some configure tests need this
authorVolker Lendecke <vl@samba.org>
Fri, 25 Mar 2011 09:12:52 +0000 (10:12 +0100)
committerVolker Lendecke <vlendec@samba.org>
Fri, 25 Mar 2011 15:35:30 +0000 (16:35 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Mar 25 16:35:30 CET 2011 on sn-devel-104

source3/autogen.sh
source3/tests/preproc-dummy.c [new file with mode: 0644]

index 8f8cd2ca7a9673acede13232ef3c5b3b23f993c0..d9f603090029b6e71cb6d297c428ed7230084112 100755 (executable)
@@ -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 (file)
index 0000000..78f2de1
--- /dev/null
@@ -0,0 +1 @@
+int main(void) { return 0; }