URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [configure.in] - Rev 583
Go to most recent revision | Compare with Previous | Blame | View Log
dnl Process this file with autoconf to produce a configure script.dnldnl $Id: configure.in,v 1.2 2001-09-27 11:59:11 chris Exp $AC_PREREQ(2.13)AC_INIT(src)RTEMS_TOP(..)AC_CONFIG_AUX_DIR(..)RTEMS_CANONICAL_TARGET_CPUAM_INIT_AUTOMAKE(rtems-c,$RTEMS_VERSION,no)AM_MAINTAINER_MODEdnl These options are used within this file.RTEMS_ENABLE_BARERTEMS_ENABLE_RTEMSBSP(rtems_bsp)RTEMS_CHECK_CPURTEMS_CANONICAL_HOSTif test -z "$rtems_bsp"; thenRTEMS_CHECK_BSPS(rtems_bsp)fifor i in $rtems_bsp; do# make sure there is a make/custom file for the bspRTEMS_CHECK_CUSTOM_BSP(i)RTEMS_BSP_ALIAS($i,bspdir)# Is there code where there should be for this BSP?# The bare bsp is a special case as it is not under the RTEMS_CPU pathcase $bspdir inbare)bspcpudir=if test "X${BARE_CPU_CFLAGS}" = "X" ; thenAC_MSG_ERROR([--enable-bare-cpu-cflags not specified for bare bsp])fiif test "X${BARE_CPU_MODEL}" = "X" ; thenAC_MSG_ERROR([--enable-bare-cpu-model not specified for bare bsp])fi;;*)bspcpudir=$RTEMS_CPU/;;esacif test -d "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$bspcpudir$bspdir"; thenRTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"elseAC_MSG_ERROR([unable to find libbsp directory ($bspdir) for $i])fidone## Compose the configuration arguments to be passed to c/src/configure##### Partially borrowed from autoconf-2.13#### Adjust pathscase $srcdir in/*) rtems_bsp_configure="$srcdir/src/configure";;*) rtems_bsp_configure="../$srcdir/src/configure";;esac## Remove --cache-file, --srcdir and --enable-rtemsbsp arguments## so they do not pile uprtems_bsp_configure_args=for ac_arg in $ac_configure_args; doif test -n "$ac_prev"; thenac_prev=continueficase "$ac_arg" in-cache-file | --cache-file | --cache-fil | --cache-fi \| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)ac_prev=cache_file ;;-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*);;-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)ac_prev=srcdir ;;-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*);;--enable-rtemsbsp*) ;;-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*);;*) rtems_bsp_configure_args="$rtems_bsp_configure_args $ac_arg" ;;esacdonertems_bsp_configure="$rtems_bsp_configure $rtems_bsp_configure_args"AC_SUBST(rtems_bsp_configure)AC_SUBST(RTEMS_BSP_LIST)AC_CONFIG_SUBDIRS(make)# Explicitly list all Makefiles hereAC_OUTPUT(Makefile)echoecho target architecture: $target_cpu.echo available BSPs: $rtems_bsp.echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\'echo
Go to most recent revision | Compare with Previous | Blame | View Log
