/[gentoo-alt]/trunk/toolchain-prefix-wrapper/configure.ac
Gentoo

Contents of /trunk/toolchain-prefix-wrapper/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1620 - (show annotations) (download)
Mon Apr 14 15:13:26 2008 UTC (6 years, 5 months ago) by grobian
File size: 2327 byte(s)
No reason to exclude Panther (10.3), as it probably still works for a large part.
1 # Copyright 2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # Author: Michael Haubenwallner <haubi@gentoo.org>
4
5 AC_INIT(toolchain-prefix-wrapper,0.3.svnversion)
6 AC_CONFIG_AUX_DIR([build-aux])
7 AC_PROG_INSTALL
8 AC_CONFIG_SRCDIR(ld/ldwrapper.c)
9 AC_PREREQ(2.52)
10 AC_CANONICAL_HOST
11 AM_INIT_AUTOMAKE
12 AC_CONFIG_HEADERS(config.h)
13 AC_CONFIG_FILES(utils/Makefile ld/Makefile ld/create-ldwrapper Makefile)
14
15 AC_PROG_CC
16
17 AC_PROG_RANLIB
18
19 AC_DEFINE_UNQUOTED([CHOST], ["${ac_cv_host}"], [host the wrapper is running on])
20
21 AC_MSG_CHECKING([for gentoo portage eprefix])
22 AC_ARG_WITH([gentoo-portage-eprefix],
23 [AC_HELP_STRING(
24 [--with-gentoo-portage-eprefix],
25 [the gentoo portage eprefix, fex '/opt/gentoo' for '/opt/gentoo/usr']
26 )],
27 [GENTOO_PORTAGE_EPREFIX=$withval],
28 [GENTOO_PORTAGE_EPREFIX=yes]
29 )
30 case "x${GENTOO_PORTAGE_EPREFIX}" in
31 xyes)
32 GENTOO_PORTAGE_EPREFIX=$prefix
33 if test "x${GENTOO_PORTAGE_EPREFIX}" = xNONE; then
34 GENTOO_PORTAGE_EPREFIX=
35 else
36 GENTOO_PORTAGE_EPREFIX=`echo "${GENTOO_PORTAGE_EPREFIX}" | sed 's,/usr/*$,,'`
37 fi
38 ;;
39 xno) GENTOO_PORTAGE_EPREFIX= ;;
40 x/*) ;;
41 *) AC_ERROR([need yes, no, or absolute path for --with-gentoo-portage-eprefix])
42 ;;
43 esac
44 case "x${GENTOO_PORTAGE_EPREFIX}" in
45 x*/) GENTOO_PORTAGE_EPREFIX=`echo "${GENTOO_PORTAGE_EPREFIX}" | sed 's,/*$,,'` ;;
46 esac
47 AC_MSG_RESULT(['${GENTOO_PORTAGE_EPREFIX}'])
48 AC_DEFINE_UNQUOTED(
49 [GENTOO_PORTAGE_EPREFIX], ["${GENTOO_PORTAGE_EPREFIX}"],
50 [gentoo portage eprefix]
51 )
52 AC_SUBST(GENTOO_PORTAGE_EPREFIX)
53
54 AC_MSG_CHECKING([for Mac OS X minimum deployment target])
55 AC_ARG_WITH([macosx-version-min],
56 [AC_HELP_STRING(
57 [--with-macosx-version-min],
58 [the minimum deployment target on Mac OS X, such as 10.4]
59 )],
60 [MIN_OSX_TARGET=$withval],
61 [MIN_OSX_TARGET=yes]
62 )
63 case $ac_cv_host in
64 *-darwin*)
65 case "x${MIN_OSX_TARGET}" in
66 x10.[[345]]) ;;
67 xno)
68 AC_ERROR([--with-macosx-version-min must be given on Mac OS X hosts])
69 ;;
70 *)
71 AC_ERROR([need an explicit Mac OS X version number with --with-macosx-version-min])
72 ;;
73 esac
74 AC_MSG_RESULT(['${MIN_OSX_TARGET}'])
75 ;;
76 *)
77 MIN_OSX_TARGET="you shouldn't use this"
78 AC_MSG_RESULT([irrelevant for $ac_cv_host])
79 ;;
80 esac
81 AC_DEFINE_UNQUOTED(
82 [MIN_OSX_TARGET], ["${MIN_OSX_TARGET}"],
83 [macosx_version_min]
84 )
85 AC_SUBST(MIN_OSX_TARGET)
86
87 AC_OUTPUT

  ViewVC Help
Powered by ViewVC 1.1.20