1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
|
Description: Support the GNU Hurd too.
Author: Francesco Paolo Lovergine <frankie@debian.org>
--- /dev/null
+++ b/config/GNU.mak
@@ -0,0 +1,109 @@
+# Copyright (C) 2001 Her Majesty the Queen in Right of Canada.
+# Permission to use, copy, modify and distribute this software and
+# its documentation for any purpose and without fee is hereby granted,
+# provided that the above copyright notice appear in all copies, that
+# both the copyright notice and this permission notice appear in
+# supporting documentation, and that the name of Her Majesty the Queen
+# in Right of Canada not be used in advertising or publicity pertaining
+# to distribution of the software without specific, written prior
+# permission. Her Majesty the Queen in Right of Canada makes no
+# representations about the suitability of this software for any purpose.
+# It is provided "as is" without express or implied warranty.
+
+# Generic unix configuration file, processed by configure to make
+# platform specific.
+
+#
+# Read in the configuration common to all Unix
+#
+include /config/unix.mak
+
+#
+# platform specific Symbols
+#
+PLATFORM=
+_SOLARIS= 1
+USE_TERMIO= -DUSE_TERMIO
+
+#
+# platform specific tools
+#
+AR= ar cr
+
+
+#
+# Compilation and linking flags
+#
+SHLIB_CFLAGS= -fPIC
+COMMON_CFLAGS= -Wall -O2 -Wall -DUNIX=1
+
+SHLIB_LDFLAGS= -shared
+COMMON_LDFLAGS =
+
+RPC_INCLUDES = -DHAVE_STD_RPC_INCLUDES
+
+UCB_STATICLIB =
+
+TCL_INCLUDE = -I/usr/include/tcl
+TCL_LINKLIB =
+
+#
+#Install Locations
+#
+prefix= /usr
+exec_prefix =
+INST_INCLUDE= /include
+INST_LIB= /lib
+INST_BIN= /bin
+
+#
+# platform specific file locations
+#
+#RPC_LINKLIB= -lrpcsvc -lnsl -lsocket
+#RPC_LINKLIB=-ldl -ldbmalloc
+RPC_LINKLIB=-ldl
+
+#
+# Endian definition, could be little or big
+#
+BIG_ENDIAN = 0
+
+#
+# Handle internal/external PROJ.4 library usage.
+#
+
+PROJ_SETTING=external
+
+ifeq (,external)
+PROJ_INCLUDE :=-I/usr/include
+PROJ_STATICLIB := -lproj
+endif
+
+#
+# Handle internal/external ZLIB library usage.
+#
+
+ZLIB_SETTING=external
+
+ifeq (,external)
+ZLIB_INCLUDE :=-I/usr/include
+ZLIB_LINKLIB := -lz
+endif
+
+#
+# Handle internal/external/disabled "Expat" library handling.
+#
+
+EXPAT_SETTING=external
+
+ifeq (,external)
+EXPAT_INCLUDE := -I/usr/include
+EXPAT_LINKLIB := -lexpat
+endif
+
+ifeq (,disabled)
+EXPAT_INCLUDE := -DEXPAT_DISABLED
+EXPAT_LINKLIB :=
+endif
+
+
--- a/config/common.mak.in
+++ b/config/common.mak.in
@@ -55,6 +55,9 @@ TARGET = $(shell uname)
ifeq ($(TARGET), GNU/kFreeBSD)
TARGET = Linux
endif
+ifeq ($(TARGET), GNU)
+TARGET = Linux
+endif
endif
#
--- a/configure
+++ b/configure
@@ -5879,4 +5879,7 @@ target=`uname`
if test "$target" = "GNU/kFreeBSD" ; then
target=Linux
fi
+if test "$target" = "GNU" ; then
+ target=Linux
+fi
mv config/generic.mak config/$target.mak
--- a/configure.in
+++ b/configure.in
@@ -352,4 +352,7 @@ target=`uname`
if test "$target" = "GNU/kFreeBSD" ; then
target=Linux
fi
+if test "$target" = "GNU" ; then
+ target=Linux
+fi
mv config/generic.mak config/$target.mak
|