~ubuntu-branches/ubuntu/karmic/gnustep-base/karmic

« back to all changes in this revision

Viewing changes to Source/mframe/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Eric Heintzmann
  • Date: 2005-04-17 00:14:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050417001438-enf0y07c9tku85z1
Tags: 1.10.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# configure.in for mframe software
 
2
# Process this file with autoconf to produce a configure script.
 
3
#
 
4
#   Copyright (C) 1998 Free Software Foundation, Inc.
 
5
#
 
6
#   Written by:  Richard Frith-Macdonald <richard@brainstorm.co.uk>
 
7
#
 
8
#   This file is part of the GNUstep project
 
9
#
 
10
#   This library is free software; you can redistribute it and/or
 
11
#   modify it under the terms of the GNU Library 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.
 
14
#   
 
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.
 
19
#
 
20
#   You should have received a copy of the GNU Library General Public
 
21
#   License along with this library; if not, write to the Free
 
22
#   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
 
23
AC_INIT
 
24
AC_CONFIG_SRCDIR([mframe.head])
 
25
 
 
26
#--------------------------------------------------------------------
 
27
# Use config.guess, config.sub and install-sh provided by gnustep-make
 
28
#--------------------------------------------------------------------
 
29
AC_CONFIG_AUX_DIR($GNUSTEP_MAKEFILES)
 
30
 
 
31
#--------------------------------------------------------------------
 
32
# Determine the host, build, and target systems
 
33
#--------------------------------------------------------------------
 
34
AC_CANONICAL_TARGET([])
 
35
 
 
36
dnl Checking CPU and Operating-System information for mframe.h
 
37
 
 
38
case "$target_cpu" in
 
39
    alpha*)             target_cpu=alpha;;
 
40
    hppa*)              target_cpu=hppa;;
 
41
    i[[3456]]86*)       target_cpu=i386;;
 
42
    sparc*)             target_cpu=sparc;;
 
43
esac
 
44
 
 
45
case "$target_os" in
 
46
    freebsd*)           target_os=freebsd;;
 
47
    openbsd*)           target_os=openbsd;;
 
48
    darwin*)            target_os=darwin;;
 
49
esac
 
50
 
 
51
 
 
52
if test -d $target_cpu -a "`echo $target_cpu/*`" != "$target_cpu/*"
 
53
then
 
54
    my_dir=$target_cpu
 
55
else
 
56
    echo '*************** Warning ****************'
 
57
    echo The 'mframe' software has not been ported to $target_cpu.
 
58
    echo Using information from unknown.
 
59
    echo '****************************************'
 
60
    my_dir=unknown
 
61
fi
 
62
 
 
63
if test -f $my_dir/$target_os
 
64
then
 
65
    my_path=$my_dir/$target_os
 
66
    echo Using information from $my_path.
 
67
else
 
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
 
73
fi
 
74
 
 
75
rm -f mframe.h
 
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
 
82
 
 
83
AC_OUTPUT