source: trunk/libs/newlib/src/libgloss/xc16x/configure.in @ 546

Last change on this file since 546 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 2.0 KB
Line 
1#
2# Copyright (C) 2006 KPIT Cummins
3# Copyright (C) 2009 Conny Marco Menebröcker
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms is permitted
7# provided that the above copyright notice and following paragraph are
8# duplicated in all such forms.
9#
10# This file is distributed WITHOUT ANY WARRANTY; without even the implied
11# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12#
13#
14# Process this file with autoconf to produce a configure script.
15#
16AC_PREREQ(2.59)
17AC_INIT(crt0.S)
18
19if test "${enable_shared}" = "yes" ; then
20    echo "Shared libraries not supported for cross compiling, ignored"
21fi
22
23if test "$srcdir" = "." ; then
24  if test "${with_target_subdir}" != "." ; then
25    libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
26  else
27    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
28  fi
29else
30  libgloss_topdir="${srcdir}/../.."
31fi
32AC_CONFIG_AUX_DIR($libgloss_topdir)
33
34AC_CANONICAL_SYSTEM
35AC_ARG_PROGRAM
36
37AC_PROG_INSTALL
38
39LIB_AC_PROG_CC
40AS=${AS-as}
41AC_SUBST(AS)
42AR=${AR-ar}
43AC_SUBST(AR)
44LD=${LD-ld}
45AC_SUBST(LD)
46AC_PROG_RANLIB
47LIB_AM_PROG_AS
48
49
50host_makefile_frag=${srcdir}/../config/default.mh
51target_makefile_frag=${srcdir}/../config/xc16x.mt
52
53dnl We have to assign the same value to other variables because autoconf
54dnl doesn't provide a mechanism to substitute a replacement keyword with
55dnl arbitrary data or pathnames.
56dnl
57host_makefile_frag_path=$host_makefile_frag
58AC_SUBST(host_makefile_frag_path)
59AC_SUBST_FILE(host_makefile_frag)
60target_makefile_frag_path=$target_makefile_frag
61AC_SUBST(target_makefile_frag_path)
62AC_SUBST_FILE(target_makefile_frag)
63AC_SUBST(part_specific_obj)
64AC_SUBST(script_list)
65AC_SUBST(bsp_list)
66
67AC_CONFIG_FILES([Makefile],
68[if test -n "$CONFIG_FILES"; then
69  unset ac_file
70  . ${libgloss_topdir}/config-ml.in
71fi],
72srcdir=${srcdir}
73target=${target}
74with_multisubdir=${with_multisubdir}
75ac_configure_args="${ac_configure_args} --enable-multilib"
76CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
77libgloss_topdir=${libgloss_topdir}
78)
79AC_OUTPUT
80
81
Note: See TracBrowser for help on using the repository browser.