1
# configure.in for mframe software
2
# Process this file with autoconf to produce a configure script.
4
# Copyright (C) 1998 Free Software Foundation, Inc.
6
# Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
8
# This file is part of the GNUstep project
10
# This library is free software; you can redistribute it and/or
11
# modify it under the terms of the GNU Lesser General Public
12
# License as published by the Free Software Foundation; either
13
# version 2 of the License, or (at your option) any later version.
15
# This library is distributed in the hope that it will be useful,
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
# Library General Public License for more details.
20
# You should have received a copy of the GNU Lesser General Public
21
# License along with this library; if not, write to the Free
22
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
24
AC_CONFIG_SRCDIR([mframe.head])
26
#--------------------------------------------------------------------
27
# Use config.guess, config.sub and install-sh provided by gnustep-make
28
#--------------------------------------------------------------------
29
AC_CONFIG_AUX_DIR($GNUSTEP_MAKEFILES)
31
#--------------------------------------------------------------------
32
# Determine the host, build, and target systems
33
#--------------------------------------------------------------------
34
AC_CANONICAL_TARGET([])
36
dnl Checking CPU and Operating-System information for mframe.h
39
alpha*) target_cpu=alpha;;
40
hppa*) target_cpu=hppa;;
41
i[[3456]]86*) target_cpu=i386;;
42
sparc*) target_cpu=sparc;;
46
freebsd*) target_os=freebsd;;
47
openbsd*) target_os=openbsd;;
48
darwin*) target_os=darwin;;
52
if test -d $target_cpu -a "`echo $target_cpu/*`" != "$target_cpu/*"
56
echo '*************** Warning ****************'
57
echo The 'mframe' software has not been ported to $target_cpu.
58
echo Using information from unknown.
59
echo '****************************************'
63
if test -f $my_dir/$target_os
65
my_path=$my_dir/$target_os
66
echo Using information from $my_path.
68
echo '*************** Warning ****************'
69
echo The 'mframe' software has not been ported to $target_cpu-$target_os.
70
echo Using information from $my_dir/generic.
71
echo '****************************************'
72
my_path=$my_dir/generic
76
echo "/***************** WARNING ****************" > mframe.h
77
echo "* DO NOT EDIT THIS FILE DIRECTLY - IT IS *" >> mframe.h
78
echo "* GENERATED AUTOMATICALLY BY THE CONFIG *" >> mframe.h
79
echo "* PROCESS IN THE 'mframe' SUBDIRECTORY. *" >> mframe.h
80
echo "****************** WARNING ***************/" >> mframe.h
81
cat mframe.head $my_path mframe.foot >> mframe.h