/[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 1591 - (show annotations) (download)
Fri Nov 2 10:58:02 2007 UTC (7 years ago) by haubi
File size: 2067 byte(s)
initial import of toolchain-prefix-wrapper

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.autoversion)
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_TARGET
11 AM_INIT_AUTOMAKE
12 AC_CONFIG_HEADERS(config.h)
13 AC_CONFIG_FILES(utils/Makefile ld/Makefile ./Makefile)
14
15 AC_PROG_CC
16
17 AC_PROG_RANLIB
18
19 AC_MSG_CHECKING([for gentoo portage eprefix])
20 AC_ARG_WITH([gentoo-portage-eprefix],
21 [AC_HELP_STRING(
22 [--with-gentoo-portage-eprefix],
23 [the gentoo portage eprefix, fex '/opt/gentoo' for '/opt/gentoo/usr']
24 )],
25 [GENTOO_PORTAGE_EPREFIX=$withval],
26 [GENTOO_PORTAGE_EPREFIX=yes]
27 )dnl
28 case "x${GENTOO_PORTAGE_EPREFIX}" in
29 xyes)
30 GENTOO_PORTAGE_EPREFIX=$prefix
31 if test "x${GENTOO_PORTAGE_EPREFIX}" = xNONE; then
32 GENTOO_PORTAGE_EPREFIX=
33 else
34 GENTOO_PORTAGE_EPREFIX=`echo "${GENTOO_PORTAGE_EPREFIX}" | sed 's,/usr/*$,,'`
35 fi
36 ;;
37 xno) GENTOO_PORTAGE_EPREFIX= ;;
38 /*) ;;
39 *) AC_ERROR([need yes, no, or absolute path for --with-gentoo-portage-eprefix])
40 ;;
41 esac
42 case "x${GENTOO_ALT_EPREFIX}" in
43 x*/) GENTOO_ALT_EPREFIX=`echo "${GENTOO_ALT_EPREFIX}" | sed 's,/*$,,'` ;;
44 esac
45 AC_MSG_RESULT(['${GENTOO_PORTAGE_EPREFIX}'])
46 AC_DEFINE_UNQUOTED(
47 [GENTOO_PORTAGE_EPREFIX], ["${GENTOO_PORTAGE_EPREFIX}"],
48 [gentoo portage eprefix]
49 )
50
51 AC_MSG_CHECKING([for wrapper plugin])
52 LDPLUGIN=
53 case "${host_os}" in
54 darwin*) LDPLUGIN=darwinplugin ;;
55 aix*) LDPLUGIN=aixplugin ;;
56 hpux*) LDPLUGIN=hpuxplugin ;;
57 linux*|solaris*|interix*) LDPLUGIN=gnuplugin ;;
58 esac
59 if test "x${LDPLUGIN}" = x; then
60 AC_MSG_RESULT([none])
61 else
62 AC_DEFINE_UNQUOTED([PLUGIN], [${LDPLUGIN}], [which plugin to use])
63 AC_MSG_RESULT([$LDPLUGIN])
64 fi
65 AM_CONDITIONAL([WANT_DARWINPLUGIN], [test "x${LDPLUGIN}" = xdarwinplugin])
66 AM_CONDITIONAL([WANT_AIXPLUGIN], [test "x${LDPLUGIN}" = xaixplugin])
67 AM_CONDITIONAL([WANT_HPUXPLUGIN], [test "x${LDPLUGIN}" = xhpuxplugin])
68 AM_CONDITIONAL([WANT_GNUPLUGIN], [test "x${LDPLUGIN}" = xgnuplugin])
69
70 # 3333
71 AC_OUTPUT

  ViewVC Help
Powered by ViewVC 1.1.20