[444] | 1 | dnl Copyright (c) 2000-2007 Red Hat, Inc. All rights reserved. |
---|
| 2 | dnl |
---|
| 3 | dnl This copyrighted material is made available to anyone wishing to use, |
---|
| 4 | dnl modify, copy, or redistribute it subject to the terms and conditions of |
---|
| 5 | dnl the BSD License. This program is distributed in the hope that |
---|
| 6 | dnl it will be useful, but WITHOUT ANY WARRANTY expressed or implied, |
---|
| 7 | dnl including the implied warranties of MERCHANTABILITY or FITNESS FOR A |
---|
| 8 | dnl PARTICULAR PURPOSE. A copy of this license is available at |
---|
| 9 | dnl http://www.opensource.org/licenses. Any Red Hat trademarks that are |
---|
| 10 | dnl incorporated in the source code or documentation are not subject to the |
---|
| 11 | dnl BSD License and may only be used or replicated with the express permission |
---|
| 12 | dnl of Red Hat, Inc. |
---|
| 13 | |
---|
| 14 | dnl Process this file with autoconf to produce a configure script. |
---|
| 15 | AC_PREREQ(2.59) |
---|
| 16 | AC_INIT(crt0.S) |
---|
| 17 | |
---|
| 18 | if test "${enable_shared}" = "yes" ; then |
---|
| 19 | echo "Shared libraries not supported for cross compiling, ignored" |
---|
| 20 | fi |
---|
| 21 | |
---|
| 22 | if test "$srcdir" = "." ; then |
---|
| 23 | if test "${with_target_subdir}" != "." ; then |
---|
| 24 | libgloss_topdir="${srcdir}/${with_multisrctop}../../.." |
---|
| 25 | else |
---|
| 26 | libgloss_topdir="${srcdir}/${with_multisrctop}../.." |
---|
| 27 | fi |
---|
| 28 | else |
---|
| 29 | libgloss_topdir="${srcdir}/../.." |
---|
| 30 | fi |
---|
| 31 | AC_CONFIG_AUX_DIR($libgloss_topdir) |
---|
| 32 | |
---|
| 33 | AC_CANONICAL_SYSTEM |
---|
| 34 | AC_ARG_PROGRAM |
---|
| 35 | |
---|
| 36 | AC_PROG_INSTALL |
---|
| 37 | |
---|
| 38 | LIB_AC_PROG_CC |
---|
| 39 | AS=${AS-as} |
---|
| 40 | AC_SUBST(AS) |
---|
| 41 | AR=${AR-ar} |
---|
| 42 | AC_SUBST(AR) |
---|
| 43 | LD=${LD-ld} |
---|
| 44 | AC_SUBST(LD) |
---|
| 45 | AC_PROG_RANLIB |
---|
| 46 | |
---|
| 47 | host_makefile_frag=${srcdir}/../config/default.mh |
---|
| 48 | |
---|
| 49 | dnl We have to assign the same value to other variables because autoconf |
---|
| 50 | dnl doesn't provide a mechanism to substitute a replacement keyword with |
---|
| 51 | dnl arbitrary data or pathnames. |
---|
| 52 | dnl |
---|
| 53 | host_makefile_frag_path=$host_makefile_frag |
---|
| 54 | AC_SUBST(host_makefile_frag_path) |
---|
| 55 | AC_SUBST_FILE(host_makefile_frag) |
---|
| 56 | |
---|
| 57 | AC_CONFIG_FILES([Makefile], |
---|
| 58 | . ${libgloss_topdir}/config-ml.in, |
---|
| 59 | srcdir=${srcdir} |
---|
| 60 | target=${target} |
---|
| 61 | with_multisubdir=${with_multisubdir} |
---|
| 62 | ac_configure_args="${ac_configure_args} --enable-multilib" |
---|
| 63 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 64 | libgloss_topdir=${libgloss_topdir} |
---|
| 65 | ) |
---|
| 66 | AC_OUTPUT |
---|