summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-11-23 06:44:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:02 -0500
commitfa69031d00f914aa8d642a2731db8c81f74bc8d9 (patch)
treed1e8557eacfa773f98f44702a5d81e2a35a77459 /examples
parent23795be8b429d4423263e60ce80f454e2e42cae7 (diff)
downloadsamba-fa69031d00f914aa8d642a2731db8c81f74bc8d9.tar.gz
samba-fa69031d00f914aa8d642a2731db8c81f74bc8d9.tar.xz
samba-fa69031d00f914aa8d642a2731db8c81f74bc8d9.zip
r19852: Fix the build for the VFS examples. Fixes bugzilla #3931.
Diffstat (limited to 'examples')
-rw-r--r--examples/VFS/Makefile.in10
-rw-r--r--examples/VFS/configure.in11
2 files changed, 17 insertions, 4 deletions
diff --git a/examples/VFS/Makefile.in b/examples/VFS/Makefile.in
index caf8f030aa4..4c0f119dcde 100644
--- a/examples/VFS/Makefile.in
+++ b/examples/VFS/Makefile.in
@@ -7,7 +7,15 @@ INSTALLCMD = @INSTALL@
SAMBA_SOURCE = @SAMBA_SOURCE@
SHLIBEXT = @SHLIBEXT@
OBJEXT = @OBJEXT@
-FLAGS = $(CFLAGS) -Iinclude -I$(SAMBA_SOURCE)/include -I$(SAMBA_SOURCE)/popt -I$(SAMBA_SOURCE)/smbwrapper -I. $(CPPFLAGS) -I$(SAMBA_SOURCE) -fPIC
+FLAGS = $(CFLAGS) $(CPPFLAGS) -fPIC \
+ -Iinclude -I$(SAMBA_SOURCE)/include \
+ -I$(SAMBA_SOURCE)/popt \
+ -I$(SAMBA_SOURCE)/lib/replace \
+ -I$(SAMBA_SOURCE)/lib/talloc \
+ -I$(SAMBA_SOURCE)/tdb/include \
+ -I$(SAMBA_SOURCE)/smbwrapper \
+ -I$(SAMBA_SOURCE)/librpc \
+ -I$(SAMBA_SOURCE) -I.
prefix = @prefix@
diff --git a/examples/VFS/configure.in b/examples/VFS/configure.in
index 515d43f0096..e96101b0910 100644
--- a/examples/VFS/configure.in
+++ b/examples/VFS/configure.in
@@ -5,14 +5,14 @@ dnl We must use autotools 2.53 or above
AC_PREREQ(2.53)
AC_INIT(Makefile.in)
-#dnl Uncomment this if you want to use your own define's too
-#AC_CONFIG_HEADER(module_config.h)
+AC_CONFIG_HEADER(module_config.h)
#dnl To make sure that didn't get #define PACKAGE_* in modules_config.h
#echo "" > confdefs.h
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
+AC_CANONICAL_HOST
#################################################
# Directory handling stuff to support both the
@@ -309,6 +309,11 @@ if test "$enable_shared" = "yes"; then
BLDSHARED="false"
LDSHFLAGS=""
;;
+ *darwin*)
+ BLDSHARED="true"
+ LDSHFLAGS="-bundle -flat_namespace -undefined suppress"
+ SHLIBEXT="dylib"
+ ;;
*)
;;
esac
@@ -328,7 +333,7 @@ AC_CACHE_CHECK([whether building shared libraries actually works],
ac_cv_shlib_works=no
# try building a trivial shared library
if test "$PICSUFFIX" = "po"; then
- $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
+ $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.po ${srcdir-.}/../../source/tests/shlib.c &&
$CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" shlib.po &&
ac_cv_shlib_works=yes
else