]> err.no Git - sope/blob - gnustep-make/config.site
fixed inline compilation
[sope] / gnustep-make / config.site
1 #
2 #   config.site
3 #
4 #   GNUstep site configuration.  This allows Autoconf packages to
5 #   be installed within the GNUstep directory structure.
6 #
7 #   Copyright (C) 1997 Free Software Foundation, Inc.
8 #
9 #   Author:  Scott Christley <scottc@net-community.com>
10 #
11 #   This file is part of the GNUstep Makefile Package.
12 #
13 #   This library is free software; you can redistribute it and/or
14 #   modify it under the terms of the GNU General Public License
15 #   as published by the Free Software Foundation; either version 2
16 #   of the License, or (at your option) any later version.
17 #   
18 #   You should have received a copy of the GNU General Public
19 #   License along with this library; see the file COPYING.LIB.
20 #   If not, write to the Free Software Foundation,
21 #   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #
23
24 echo Processing GNUstep site configuration
25
26 # Determine the target
27 if test -z "$target" -o "$target" = NONE; then
28    # The user did not specify one so the target is the host
29    GNUSTEP_TARGET=$GNUSTEP_HOST
30    GNUSTEP_TARGET_CPU=$GNUSTEP_HOST_CPU
31    GNUSTEP_TARGET_VENDOR=$GNUSTEP_HOST_VENDOR
32    GNUSTEP_TARGET_OS=$GNUSTEP_HOST_OS
33 else
34    # The user did specify a target, so canonicalize and clean
35    GNUSTEP_TARGET=`$GNUSTEP_MAKEFILES/config.sub $target`
36    GNUSTEP_TARGET_CPU=`$GNUSTEP_MAKEFILES/cpu.sh $GNUSTEP_TARGET`
37    GNUSTEP_TARGET_VENDOR=`$GNUSTEP_MAKEFILES/vendor.sh $GNUSTEP_TARGET`
38    GNUSTEP_TARGET_OS=`$GNUSTEP_MAKEFILES/os.sh $GNUSTEP_TARGET`
39 fi
40
41 # Clean the target
42 GNUSTEP_TARGET_OS=`$GNUSTEP_MAKEFILES/clean_os.sh $GNUSTEP_TARGET_OS`
43 GNUSTEP_TARGET_VENDOR=`$GNUSTEP_MAKEFILES/clean_vendor.sh $GNUSTEP_TARGET_VENDOR`
44 GNUSTEP_TARGET_CPU=`$GNUSTEP_MAKEFILES/clean_cpu.sh $GNUSTEP_TARGET_CPU`
45
46 # Set the installation prefix
47 if test "$prefix" = NONE ; then
48    prefix="${GNUSTEP_SYSTEM_ROOT}"
49 fi
50
51 # Change the binary directory default
52 if test "$bindir" = "\${exec_prefix}/bin" ; then
53    if [ -z "$GNUSTEP_FLATTENED" ]; then
54      bindir="\${exec_prefix}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}"
55    else
56      bindir="\${exec_prefix}/Tools"
57    fi
58    bindirtop="\${exec_prefix}/Tools"
59 fi
60 if test "$DIR_BIN" = "/usr/local/bin" ; then
61    if [ -z "$GNUSTEP_FLATTENED" ]; then
62      DIR_BIN="\${prefix}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}"
63    else
64      DIR_BIN="\${exec_prefix}/Tools"
65    fi
66    bindirtop="\${exec_prefix}/Tools"
67 fi
68
69 # xxx What about sbin?
70 # xxx What about libexec?
71
72 # Change the data directory default
73 if test "$datadir" = "\${prefix}/share" ; then
74    datadir="\${prefix}/Library/Libraries/share"
75 fi
76
77 # xxx What about sysconfdir?
78 # xxx What about sharedstatedir?
79 # xxx What about localstatedir?
80
81 # Change the library directory default
82 if test "$libdir" = "\${exec_prefix}/lib" ; then
83   if [ -z "$GNUSTEP_FLATTENED" ]; then
84      libdir="\${exec_prefix}/Library/Libraries/${GNUSTEP_TARGET_CPU}/${GNUSTEP_TARGET_OS}"
85   else
86      libdir="\${exec_prefix}/Library/Libraries"
87   fi
88 fi
89
90 # Change the include directory default
91 if test "$includedir" = "\${prefix}/include" ; then
92   if [ -z "$GNUSTEP_FLATTENED" ]; then
93    includedir="\${prefix}/Library/Headers/${LIBRARY_COMBO}"
94   else
95    includedir="\${prefix}/Library/Headers"
96   fi
97 fi
98
99 # xxx What about oldincludedir?
100
101 # Change the info directory default
102 if test "$infodir" = "\${prefix}/info" ; then
103    infodir="\${prefix}/Library/Documentation/info"
104 fi
105
106 # Change the man directory default
107 if test "$mandir" = "\${prefix}/man" ; then
108    mandir="\${prefix}/Library/Documentation/man"
109 fi
110