Gina Verlekar <gina.verlekar@kpitcummins.com> Moving files from libc/sys/sysnecv850 to libgloss/v850 * libgloss/libnosys/configure: Regenerated. * libgloss/libnosys/configure.in: Compact v850 support to v850*-*-*. * libgloss/libnosys/configure: Regenerated. * libgloss/configure.in: Add libgloss support for v850. * libgloss/configure: Regenerated. * libgloss/v850/access.c: New file. * libgloss/v850/aclocal.m4: New. * libgloss/v850/chmod.c: New. * libgloss/v850/chown.c: New. * libgloss/v850/close.c: New. * libgloss/v850/configure: New. * libgloss/v850/configure.in: New. * libgloss/v850/crt0.S: New. * libgloss/v850/crt1.c: New. * libgloss/v850/execv.c: New. * libgloss/v850/execve.c: New. * libgloss/v850/_exit.c: New. * libgloss/v850/fork.c: New. * libgloss/v850/fstat.c: New. * libgloss/v850/getpid.c: New. * libgloss/v850/gettime.c: New. * libgloss/v850/isatty.c: New. * libgloss/v850/kill.c: New. * libgloss/v850/link.c: New. * libgloss/v850/lseek.c: New. * libgloss/v850/Makefile.in: New. * libgloss/v850/open.c: New. * libgloss/v850/pipe.c: New. * libgloss/v850/read.c: New. * libgloss/v850/sbrk.c: New. * libgloss/v850/sim.ld: New. * libgloss/v850/stat.c: New. * libgloss/v850/time.c: New. * libgloss/v850/times.c: New. * libgloss/v850/trap.S: New. * libgloss/v850/unlink.c: New. * libgloss/v850/utime.c: New. * libgloss/v850/wait.c: New. * libgloss/v850/write.c: New.
		
			
				
	
	
		
			192 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			192 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
dnl Process this file with autoconf to produce a configure script.
 | 
						|
AC_PREREQ(2.59)
 | 
						|
AC_INIT([libgloss],[LIBGLOSS_VERSION])
 | 
						|
AC_CONFIG_SRCDIR([libnosys])
 | 
						|
 | 
						|
if test "${enable_shared}" = "yes" ; then
 | 
						|
    echo "Shared libraries not supported for cross compiling, ignored"
 | 
						|
fi
 | 
						|
 | 
						|
if test "${srcdir}" = "." ; then
 | 
						|
  if test "${with_target_subdir}" != "." ; then
 | 
						|
    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
 | 
						|
  else
 | 
						|
    libgloss_topdir="${srcdir}/${with_multisrctop}.."
 | 
						|
  fi
 | 
						|
else
 | 
						|
  libgloss_topdir="${srcdir}/.."
 | 
						|
fi
 | 
						|
AC_CONFIG_AUX_DIR($libgloss_topdir)
 | 
						|
 | 
						|
AC_PROG_INSTALL
 | 
						|
 | 
						|
AC_CANONICAL_SYSTEM
 | 
						|
AM_INIT_AUTOMAKE([cygnus no-define 1.9.5])
 | 
						|
 | 
						|
if test -z "${with_multisubdir}" ; then
 | 
						|
  AC_CONFIG_SUBDIRS([doc])
 | 
						|
fi
 | 
						|
 | 
						|
dnl indicates whether to run configure within the testsuite subdirectory
 | 
						|
config_testsuite=true
 | 
						|
 | 
						|
dnl indicates whether to run configure within the libnosys subdirectory
 | 
						|
config_libnosys=true
 | 
						|
 | 
						|
case "${target}" in
 | 
						|
  i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
 | 
						|
	AC_CONFIG_SUBDIRS([i386])
 | 
						|
	;;
 | 
						|
  m32r-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([m32r])
 | 
						|
	;;
 | 
						|
  m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([m68hc11])
 | 
						|
	;;
 | 
						|
  fido-*-* | m68*-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([m68k])
 | 
						|
	;;
 | 
						|
  hppa*-*-pro*)
 | 
						|
	AC_CONFIG_SUBDIRS([pa])
 | 
						|
	;;
 | 
						|
  i960-*-coff)
 | 
						|
	AC_CONFIG_SUBDIRS([i960])
 | 
						|
	;;
 | 
						|
  sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([sparc])
 | 
						|
	;;
 | 
						|
  sh*-*-pe | mips*-*-pe | *arm-wince-pe)
 | 
						|
	AC_CONFIG_SUBDIRS([wince])
 | 
						|
	;;
 | 
						|
  mips*-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([mips])
 | 
						|
	;;
 | 
						|
  powerpc-*-*|powerpcle-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([rs6000])
 | 
						|
	;;
 | 
						|
  mn10200-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([mn10200])
 | 
						|
	;;
 | 
						|
  mn10300-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([mn10300])
 | 
						|
	;;
 | 
						|
  bfin-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([bfin])
 | 
						|
	;;
 | 
						|
  cris-*-* | crisv32-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([cris])
 | 
						|
	;;
 | 
						|
  crx-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([crx])
 | 
						|
	;;
 | 
						|
  d30v-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([d30v])
 | 
						|
	;;
 | 
						|
  fr30-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([fr30])
 | 
						|
	;;
 | 
						|
  frv*-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([frv])
 | 
						|
	;;
 | 
						|
  lm32*-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([lm32])
 | 
						|
	;;
 | 
						|
  mcore-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([mcore])
 | 
						|
	;;
 | 
						|
  mep-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([mep])
 | 
						|
	;;
 | 
						|
  moxie-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([moxie])
 | 
						|
	;;
 | 
						|
  microblaze-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([microblaze])
 | 
						|
	;;
 | 
						|
  mt-*-*)
 | 
						|
        AC_CONFIG_SUBDIRS([mt])
 | 
						|
	;;
 | 
						|
  v850*-*-*)
 | 
						|
        AC_CONFIG_SUBDIRS([v850])
 | 
						|
        ;;
 | 
						|
  xc16x-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([xc16x])
 | 
						|
	;;
 | 
						|
  xstormy16-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([xstormy16])
 | 
						|
	;;
 | 
						|
  m32c-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([m32c])
 | 
						|
	;;
 | 
						|
  rx*-*-elf)
 | 
						|
	AC_CONFIG_SUBDIRS([rx])
 | 
						|
	;;
 | 
						|
  strongarm-*-elf | strongarm-*-coff | arm*-*-elf | arm*-*-coff | ep9312-*-elf | ep9312-*-coff | xscale-*-elf | xscale-*-coff | *arm-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([arm])
 | 
						|
	;;
 | 
						|
  spu-*-elf)
 | 
						|
	AC_CONFIG_SUBDIRS([spu])
 | 
						|
	config_testsuite=false
 | 
						|
	config_libnosys=false
 | 
						|
	;;
 | 
						|
  iq2000-*-*)
 | 
						|
	AC_CONFIG_SUBDIRS([iq2000])
 | 
						|
	;;
 | 
						|
esac
 | 
						|
 | 
						|
dnl For now, don't bother configuring testsuite
 | 
						|
dnl
 | 
						|
dnl if test "${config_testsuite}" = "true";
 | 
						|
dnl   then AC_CONFIG_SUBDIRS([testsuite])
 | 
						|
dnl fi
 | 
						|
 | 
						|
if test "${config_libnosys}" = "true"; then
 | 
						|
  AC_CONFIG_SUBDIRS([libnosys])
 | 
						|
fi
 | 
						|
 | 
						|
LIB_AC_PROG_CC
 | 
						|
AS=${AS-as}
 | 
						|
AC_SUBST(AS)
 | 
						|
AC_CHECK_PROG(AR, ar, ar, :)
 | 
						|
AR=${AR-ar}
 | 
						|
AC_SUBST(AR)
 | 
						|
LD=${LD-ld}
 | 
						|
AC_SUBST(LD)
 | 
						|
AC_PROG_RANLIB
 | 
						|
LIB_AM_PROG_AS
 | 
						|
 | 
						|
host_makefile_frag=${srcdir}/config/default.mh
 | 
						|
 | 
						|
dnl We have to assign the same value to other variables because autoconf
 | 
						|
dnl doesn't provide a mechanism to substitute a replacement keyword with
 | 
						|
dnl arbitrary data or pathnames.
 | 
						|
dnl
 | 
						|
host_makefile_frag_path=$host_makefile_frag
 | 
						|
AC_SUBST(host_makefile_frag_path)
 | 
						|
AC_SUBST_FILE(host_makefile_frag)
 | 
						|
 | 
						|
if test "${multilib}" = "yes"; then
 | 
						|
  multilib_arg="--enable-multilib"
 | 
						|
else
 | 
						|
  multilib_arg=
 | 
						|
fi
 | 
						|
 | 
						|
# for now, only add multilibs for specific targets
 | 
						|
AC_CONFIG_FILES([Makefile],
 | 
						|
[if test -n "$CONFIG_FILES"; then
 | 
						|
  unset ac_file
 | 
						|
  . ${libgloss_topdir}/config-ml.in
 | 
						|
fi],
 | 
						|
srcdir=${srcdir}
 | 
						|
target=${target}
 | 
						|
with_multisubdir=${with_multisubdir}
 | 
						|
ac_configure_args="--enable-multilib ${ac_configure_args}"
 | 
						|
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 | 
						|
libgloss_topdir=${libgloss_topdir}
 | 
						|
CC="${CC}"
 | 
						|
LDFLAGS=${LDFLAGS}
 | 
						|
)
 | 
						|
AC_OUTPUT
 | 
						|
 | 
						|
 |