ports/print/ghostscript9/files/patch-base-configure.ac
Hiroki Sato 17219d2777 - Fix build when WITHOUT_X11=yes.
- Fix CONFLICTS.
- Build and install a dynamic module X11.so when !WITHOUT_X11.
2011-06-10 09:10:53 +00:00

25 lines
775 B
Text

--- base/configure.ac.orig 2011-03-30 15:48:01.000000000 +0900
+++ base/configure.ac 2011-06-10 14:36:19.000000000 +0900
@@ -1019,7 +1019,7 @@
X_DEVS=""
X_LIBS=""
-if test x$no_x != xyes; then
+if test x$with_x != xno; then
if test "$x_libraries" = "/usr/lib"; then
echo "Ignoring X library directory \"$x_libraries\" requested by configure."
x_libraries="NONE"
@@ -1412,7 +1412,12 @@
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS"
;;
*BSD)
- DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so"
+ if test "x$X_DEVS" != x; then
+ DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so"
+ INSTALL_SHARED="install-shared"
+ else
+ DYNAMIC_DEVS=""
+ fi
DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\""
X11_DEVS=""
OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS"