1997-09-22 22:49:02 +00:00
|
|
|
#
|
|
|
|
# config.site
|
|
|
|
#
|
|
|
|
# GNUstep site configuration. This allows Autoconf packages to
|
|
|
|
# be installed within the GNUstep directory structure.
|
|
|
|
#
|
|
|
|
# Copyright (C) 1997 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
|
|
|
#
|
|
|
|
# This file is part of the GNUstep Makefile Package.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
2007-10-30 14:18:41 +00:00
|
|
|
# as published by the Free Software Foundation; either version 3
|
1997-09-22 22:49:02 +00:00
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public
|
2007-07-13 10:11:48 +00:00
|
|
|
# License along with this library; see the file COPYING.
|
1997-09-22 22:49:02 +00:00
|
|
|
# If not, write to the Free Software Foundation,
|
2005-05-22 03:20:14 +00:00
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
1997-09-22 22:49:02 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
echo Processing GNUstep site configuration
|
|
|
|
|
|
|
|
# Determine the target
|
2001-10-09 14:51:37 +00:00
|
|
|
if test -z "$target" -o "$target" = NONE; then
|
|
|
|
# The user did not specify one so the target is the host
|
1997-09-22 22:49:02 +00:00
|
|
|
GNUSTEP_TARGET=$GNUSTEP_HOST
|
|
|
|
GNUSTEP_TARGET_CPU=$GNUSTEP_HOST_CPU
|
|
|
|
GNUSTEP_TARGET_VENDOR=$GNUSTEP_HOST_VENDOR
|
|
|
|
GNUSTEP_TARGET_OS=$GNUSTEP_HOST_OS
|
|
|
|
else
|
|
|
|
# The user did specify a target, so canonicalize and clean
|
2003-04-28 02:29:49 +00:00
|
|
|
GNUSTEP_TARGET=`$GNUSTEP_MAKEFILES/config.sub $target`
|
|
|
|
GNUSTEP_TARGET_CPU=`$GNUSTEP_MAKEFILES/cpu.sh $GNUSTEP_TARGET`
|
|
|
|
GNUSTEP_TARGET_VENDOR=`$GNUSTEP_MAKEFILES/vendor.sh $GNUSTEP_TARGET`
|
|
|
|
GNUSTEP_TARGET_OS=`$GNUSTEP_MAKEFILES/os.sh $GNUSTEP_TARGET`
|
1997-09-22 22:49:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Clean the target
|
2003-04-28 02:29:49 +00:00
|
|
|
GNUSTEP_TARGET_OS=`$GNUSTEP_MAKEFILES/clean_os.sh $GNUSTEP_TARGET_OS`
|
|
|
|
GNUSTEP_TARGET_VENDOR=`$GNUSTEP_MAKEFILES/clean_vendor.sh $GNUSTEP_TARGET_VENDOR`
|
|
|
|
GNUSTEP_TARGET_CPU=`$GNUSTEP_MAKEFILES/clean_cpu.sh $GNUSTEP_TARGET_CPU`
|
1997-09-22 22:49:02 +00:00
|
|
|
|
|
|
|
# Set the installation prefix
|
|
|
|
if test "$prefix" = NONE ; then
|
|
|
|
prefix="${GNUSTEP_SYSTEM_ROOT}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Change the binary directory default
|
|
|
|
if test "$bindir" = "\${exec_prefix}/bin" ; then
|
2006-10-02 15:54:56 +00:00
|
|
|
if [ "$GNUSTEP_IS_FLATTENED" = "no" ]; then
|
2001-05-29 03:37:46 +00:00
|
|
|
bindir="\${exec_prefix}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}"
|
|
|
|
else
|
|
|
|
bindir="\${exec_prefix}/Tools"
|
|
|
|
fi
|
1997-11-14 01:03:10 +00:00
|
|
|
bindirtop="\${exec_prefix}/Tools"
|
1997-09-22 22:49:02 +00:00
|
|
|
fi
|
|
|
|
if test "$DIR_BIN" = "/usr/local/bin" ; then
|
2006-10-02 15:54:56 +00:00
|
|
|
if [ "$GNUSTEP_IS_FLATTENED" = "no" ]; then
|
2001-05-29 03:37:46 +00:00
|
|
|
DIR_BIN="\${prefix}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}"
|
|
|
|
else
|
|
|
|
DIR_BIN="\${exec_prefix}/Tools"
|
|
|
|
fi
|
1997-11-14 01:03:10 +00:00
|
|
|
bindirtop="\${exec_prefix}/Tools"
|
1997-09-22 22:49:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# xxx What about sbin?
|
|
|
|
# xxx What about libexec?
|
|
|
|
|
|
|
|
# Change the data directory default
|
|
|
|
if test "$datadir" = "\${prefix}/share" ; then
|
2003-04-28 02:29:49 +00:00
|
|
|
datadir="\${prefix}/Library/Libraries/share"
|
1997-09-22 22:49:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# xxx What about sysconfdir?
|
|
|
|
# xxx What about sharedstatedir?
|
|
|
|
# xxx What about localstatedir?
|
|
|
|
|
|
|
|
# Change the library directory default
|
|
|
|
if test "$libdir" = "\${exec_prefix}/lib" ; then
|
2006-10-02 15:54:56 +00:00
|
|
|
if [ "$GNUSTEP_IS_FLATTENED" = "no" ]; then
|
2003-04-28 02:29:49 +00:00
|
|
|
libdir="\${exec_prefix}/Library/Libraries/${GNUSTEP_TARGET_CPU}/${GNUSTEP_TARGET_OS}"
|
2001-05-29 03:37:46 +00:00
|
|
|
else
|
2003-04-28 02:29:49 +00:00
|
|
|
libdir="\${exec_prefix}/Library/Libraries"
|
2001-05-29 03:37:46 +00:00
|
|
|
fi
|
1997-09-22 22:49:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Change the include directory default
|
|
|
|
if test "$includedir" = "\${prefix}/include" ; then
|
2006-10-02 15:54:56 +00:00
|
|
|
if [ "$GNUSTEP_IS_FLATTENED" = "no" ]; then
|
2003-09-07 12:22:15 +00:00
|
|
|
includedir="\${prefix}/Library/Headers/${LIBRARY_COMBO}"
|
2003-07-29 11:56:20 +00:00
|
|
|
else
|
2003-09-07 12:22:15 +00:00
|
|
|
includedir="\${prefix}/Library/Headers"
|
2003-07-29 11:56:20 +00:00
|
|
|
fi
|
1997-09-22 22:49:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# xxx What about oldincludedir?
|
|
|
|
|
|
|
|
# Change the info directory default
|
|
|
|
if test "$infodir" = "\${prefix}/info" ; then
|
2003-04-28 02:29:49 +00:00
|
|
|
infodir="\${prefix}/Library/Documentation/info"
|
1997-09-22 22:49:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Change the man directory default
|
|
|
|
if test "$mandir" = "\${prefix}/man" ; then
|
2003-04-28 02:29:49 +00:00
|
|
|
mandir="\${prefix}/Library/Documentation/man"
|
1997-09-22 22:49:02 +00:00
|
|
|
fi
|
|
|
|
|