source: rtems/c/src/configure.ac @ 261f99bd

4.104.114.84.95
Last change on this file since 261f99bd was 261f99bd, checked in by Joel Sherrill <joel.sherrill@…>, on 08/02/07 at 15:00:07

2007-08-02 Joel Sherrill <joel.sherrill@…>

  • configure.ac, wrapup/Makefile.am: Remove RDBG.
  • aclocal/check-rdbg.m4, aclocal/enable-rdbg.m4, librdbg/.cvsignore, librdbg/Makefile.am, librdbg/preinstall.am, librdbg/include/rdbg/rdbg.h, librdbg/include/rdbg/servrpc.h, librdbg/include/rdbg/i386/rdbg_f.h, librdbg/include/rdbg/i386/reg.h, librdbg/include/rdbg/m68k/rdbg_f.h, librdbg/include/rdbg/m68k/reg.h, librdbg/include/rdbg/powerpc/rdbg_f.h, librdbg/include/rdbg/powerpc/reg.h, librdbg/src/_servtgt.c, librdbg/src/awk.svc, librdbg/src/excep.c, librdbg/src/ptrace.c, librdbg/src/rdbg.c, librdbg/src/remdeb.x, librdbg/src/servbkpt.c, librdbg/src/servcon.c, librdbg/src/servrpc.c, librdbg/src/servtgt.c, librdbg/src/servtsp.c, librdbg/src/servutil.c, librdbg/src/i386/excep_f.c, librdbg/src/i386/rdbg_cpu_asm.S, librdbg/src/i386/rdbg_f.c, librdbg/src/i386/any/remdeb.h, librdbg/src/i386/any/remdeb_f.x, librdbg/src/i386/any/remdeb_svc.c, librdbg/src/i386/any/remdeb_xdr.c, librdbg/src/m68k/excep_f.c, librdbg/src/m68k/rdbg_cpu_asm.S, librdbg/src/m68k/rdbg_f.c, librdbg/src/m68k/any/remdeb.h, librdbg/src/m68k/any/remdeb_f.x, librdbg/src/m68k/any/remdeb_svc.c, librdbg/src/m68k/any/remdeb_xdr.c, librdbg/src/powerpc/excep_f.c, librdbg/src/powerpc/rdbg_cpu_asm.S, librdbg/src/powerpc/rdbg_f.c, librdbg/src/powerpc/new_exception_processing/remdeb.h, librdbg/src/powerpc/new_exception_processing/remdeb_f.x, librdbg/src/powerpc/new_exception_processing/remdeb_svc.c, librdbg/src/powerpc/new_exception_processing/remdeb_xdr.c: Removed.
  • Property mode set to 100644
File size: 7.1 KB
RevLine 
[d7aecdc]1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
[ba2c04f]5AC_PREREQ(2.60)
[fcb0cd46]6AC_INIT([rtems-c-src],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
[02ccf4a]7AC_CONFIG_SRCDIR([optman])
[d7aecdc]8RTEMS_TOP(../..)
9
10RTEMS_ENABLE_CXX
11RTEMS_ENABLE_NETWORKING
12
13RTEMS_CANONICAL_TARGET_CPU
14
[ba2c04f]15AM_INIT_AUTOMAKE([no-define subdir-objects no-exeext foreign 1.10])
[d7aecdc]16AM_MAINTAINER_MODE
17
18RTEMS_ENABLE_MULTILIB
[02ccf4a]19RTEMS_ENABLE_MULTIPROCESSING
[d7aecdc]20RTEMS_ENV_RTEMSBSP
[51d35b2]21
[62fdded]22AC_ARG_ENABLE(rpcgen,
23[AS_HELP_STRING([--enable-rpcgen],[rebuild rpcgen-generated sources])],
24[case "${enable_rpcgen}" in
25  yes) enable_rpcgen=yes ;;
26  no) enable_rpcgen=no ;;
27  *)  enable_rpcgen=no ;;
[005fbe56]28esac],[enable_rpcgen=no])
[62fdded]29
[d7aecdc]30RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
31
32RTEMS_CHECK_NETWORKING(RTEMS_BSP)
[4108ae8]33RTEMS_CHECK_POSIX_API(RTEMS_BSP)
34
[62fdded]35AC_CHECK_PROG(RPCGEN,rpcgen,rpcgen)
[4108ae8]36AC_PROG_AWK
[d7aecdc]37
[f0d7515]38AC_MSG_NOTICE([setting up make/custom])
39
40AS_MKDIR_P([make/custom])
[9bb5b9d]41AM_SET_DEPDIR
42test -d ${DEPDIR} || mkdir ${DEPDIR}
43
44rm -f ${DEPDIR}/cfg.P
45echo "# Do not edit - automatically generated by" > ${DEPDIR}/cfg.P
46echo "# $0" >> ${DEPDIR}/cfg.P
[f0d7515]47
48# Collect and copy the BSP's make/custom/*.cfg files from the toplevel make
49# directory into the build tree's <bsp>/make/custom subdirectories
[9bb5b9d]50CUSTOM_CFG_FILES=
[f0d7515]51f="${RTEMS_BSP}.cfg"
52while test -n "$f"; do
[9bb5b9d]53  cfg_file=
54  _RTEMS_CHECK_CUSTOM_BSP([$f],cfg_file)
55  if test -n "${cfg_file}"; then
56    cp ${cfg_file} make/custom/$f
57    echo "make/custom/$f: ${cfg_file}" >> ${DEPDIR}/cfg.P
58    echo "      cp ${cfg_file} make/custom/$f" >> ${DEPDIR}/cfg.P
[f0d7515]59    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES make/custom/$f"
[9bb5b9d]60    f=`grep "^include.*make/custom" ${cfg_file} \
[f0d7515]61    | sed \
62      -e 's%^.*custom\/%%' \
63      -e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
64      -e 's%default\.cfg%%'`;
65  else break; fi;
66done
67cp ${srcdir}/make/custom/default.cfg.in make/custom/default.cfg
68
69AC_MSG_NOTICE([creating make/${RTEMS_BSP}.cache])
[f21ccd2]70${MAKE-make} -f ${srcdir}/make/bsp.mak \
71RTEMS_BSP=${RTEMS_BSP} \
[67bfd9a6]72RTEMS_HOST=${RTEMS_HOST} \
[f0d7515]73RTEMS_ROOT=. make/${RTEMS_BSP}.cache
74
75# Read back the cache
[9346df0]76AC_CACHE_CHECK([for RTEMS_CPU_MODEL], [ac_cv_env_RTEMS_CPU_MODEL],
[da499ad]77[. ./make/${RTEMS_BSP}.cache])
[9346df0]78RTEMS_CPU_MODEL=$ac_cv_env_RTEMS_CPU_MODEL
[028792e8]79AC_SUBST(RTEMS_CPU_MODEL)
[d4181d5]80test -n "${RTEMS_CPU_MODEL}" && \
81  ac_configure_args="$ac_configure_args 'RTEMS_CPU_MODEL=${RTEMS_CPU_MODEL}'"
[028792e8]82
[9346df0]83AC_CACHE_CHECK([for RTEMS_BSP_FAMILY],[ac_cv_env_RTEMS_BSP_FAMILY],
[da499ad]84[. ./make/${RTEMS_BSP}.cache])
[9346df0]85RTEMS_BSP_FAMILY=$ac_cv_env_RTEMS_BSP_FAMILY
[028792e8]86AC_SUBST(RTEMS_BSP_FAMILY)
[d4181d5]87test -n "${RTEMS_BSP_FAMILY}" && \
88  ac_configure_args="$ac_configure_args 'RTEMS_BSP_FAMILY=${RTEMS_BSP_FAMILY}'"
[028792e8]89
[9346df0]90AC_CACHE_CHECK([for CPU_CFLAGS],[ac_cv_env_CPU_CFLAGS],
[da499ad]91[. ./make/${RTEMS_BSP}.cache])
[9346df0]92CPU_CFLAGS=$ac_cv_env_CPU_CFLAGS
[028792e8]93
[9346df0]94AC_CACHE_CHECK([for CFLAGS_OPTIMIZE_V],[ac_cv_env_CFLAGS_OPTIMIZE_V],
[da499ad]95[. ./make/${RTEMS_BSP}.cache])
[9346df0]96CFLAGS_OPTIMIZE_V=$ac_cv_env_CFLAGS_OPTIMIZE_V
[f8235c07]97
98CFLAGS="${CFLAGS-${CPU_CFLAGS} ${CFLAGS_OPTIMIZE_V}}"
99AS_IF([test x"${CFLAGS}" != x" "],[
100  ac_configure_args="$ac_configure_args 'CFLAGS=${CFLAGS}'"])
[028792e8]101
[9346df0]102RTEMS_PROG_CC_FOR_TARGET
[d844a182]103AM_PROG_CC_C_O
[033f0686]104RTEMS_PROG_CCAS
[9346df0]105RTEMS_CANONICALIZE_TOOLS
[382e1eb3]106
[d71ab7fd]107RTEMS_CHECK_GCC_WEAK
108
[f0d7515]109AC_SUBST(CUSTOM_CFG_FILES)
110AC_SUBST(cfg_dir)
111
[e7495ae]112RTEMS_CHECK_MULTIPROCESSING
113
[789694a1]114BSP_SUBDIRS=
[a03c1ab]115## Configure ${srcdir}/../../cpukit as cpukit/ if multilibs are disabled
[789694a1]116RTEMS_BSP_CONFIG_SUBDIR(
117  [cpukit],[../../cpukit],
[850c88d]118  ['--with-project-root=${with_project_root}../$RTEMS_BSP/' \
[cdf41b07]119   '--includedir=${exec_prefix}/${RTEMS_BSP}/lib/include' \
[ea3f559]120   '--libdir=${exec_prefix}/${RTEMS_BSP}/lib' \
[6c2b5324]121  ],
[259c516]122  [test x"$multilib" = xno])
[02ccf4a]123
[94f4a9ba]124## Note: the order of the directories below is essential
125AC_CONFIG_SUBDIRS([make])
[85a8933]126BSP_SUBDIRS="$BSP_SUBDIRS make"
[dd984c0]127
128RTEMS_CPU_SUBDIRS(lib/libcpu)
[539e266e]129if test -d "${srcdir}/lib/libcpu/${RTEMS_CPU}"; then
[dd984c0]130  libcpu_cpu_subdir="${RTEMS_CPU}"
131else
132  libcpu_cpu_subdir=
133fi
134AC_SUBST(libcpu_cpu_subdir)
135
136# Is there code where there should be for this BSP?
137# The bare bsp is a special case as it is not under the RTEMS_CPU path
[259c516]138if test "$RTEMS_BSP_FAMILY" = bare ; then
[dd984c0]139  AC_CONFIG_SUBDIRS([lib/libbsp/bare])
140  AC_SUBST(libbsp_cpu_subdir,bare)
141else
142  RTEMS_CPU_SUBDIRS([lib/libbsp])
143  AC_SUBST(libbsp_cpu_subdir,$RTEMS_CPU)
144fi
145
[539e266e]146BSP_SUBDIRS="$BSP_SUBDIRS lib"
[4108ae8]147BSP_SUBDIRS="$BSP_SUBDIRS libchip"
[9faed348]148BSP_SUBDIRS="$BSP_SUBDIRS nfsclient"
[832bed1]149
[94f4a9ba]150AS_IF([test "$RTEMS_HAS_CPLUSPLUS" = "yes"],[
[4db904ec]151  AC_CONFIG_SUBDIRS([librtems++])
[85a8933]152  BSP_SUBDIRS="$BSP_SUBDIRS librtems++"
[94f4a9ba]153])
[d7aecdc]154
[db3e91f2]155BSP_SUBDIRS="$BSP_SUBDIRS support"
[aea8e66]156BSP_SUBDIRS="$BSP_SUBDIRS ada"
[85a8933]157BSP_SUBDIRS="$BSP_SUBDIRS wrapup"
[a456af96]158
[ee950a33]159BSP_SUBDIRS="$BSP_SUBDIRS optman"
160
[54508fd]161AC_ARG_ENABLE([ada],
[a03c1ab]162[AS_HELP_STRING(--enable-ada,enable ada support)],
[54508fd]163[case "${enable_ada}" in
164  yes) ;;
165  no) ;;
166  *)  AC_MSG_ERROR(bad value ${enable_ada} for --enable-ada) ;;
167esac],[enable_ada=no])
168
[259c516]169RTEMS_BSP_CONFIG_SUBDIR(
170  [ada-tests],[ada-tests],
171  ['--enable-rtems-root=../' \
[a4a40dac]172   '--enable-project-root=${with_project_root}../$RTEMS_BSP' \
[259c516]173   '--with-project-top=${with_project_top}../' \
174   '--enable-rtemsbsp=$RTEMS_BSP' \
175  ],
176  [test x"$enable_tests" = xyes && test x"$enable_ada" = xyes])
[a456af96]177
[3f74676]178# HACK ALERT!
179
180# FIXME: Assume multilib implies in-source-tree multilibs
181# Build testsuites multilibbed
[789694a1]182RTEMS_BSP_CONFIG_SUBDIR(
183  [testsuites],[../../testsuites],
[850c88d]184  ['--enable-rtems-root=../' \
[3f74676]185   '--enable-project-root=${with_project_root}../$RTEMS_BSP' \
186   '--with-project-top=${with_project_top}../' \
187   '--enable-rtemsbsp=$RTEMS_BSP' \
[3136ff03]188   '--includedir=${exec_prefix}/${RTEMS_BSP}/lib/include' \
189   '--libdir=${exec_prefix}/${RTEMS_BSP}/lib' \
[3f74676]190  ],
191  [test x"$enable_tests" != x"no" && test x"$multilib" = xno])
192
193# Build testsuites non-multilibbed
194RTEMS_BSP_CONFIG_SUBDIR(
195  [testsuites],[../../testsuites],
196  ['--enable-rtems-root=../' \
197   '--enable-cpukit-root=${with_project_root}..' \
198   '--enable-project-root=${with_project_root}../$RTEMS_BSP' \
[850c88d]199   '--with-project-top=${with_project_top}../' \
[789694a1]200   '--enable-rtemsbsp=$RTEMS_BSP' \
[3136ff03]201   '--includedir=${exec_prefix}/${RTEMS_BSP}/lib/include' \
202   '--libdir=${exec_prefix}/${RTEMS_BSP}/lib' \
[6c2b5324]203  ],
[3f74676]204  [test x"$enable_tests" != x"no" && test x"$multilib" = xyes])
[41fc78d]205
[85a8933]206AC_SUBST([BSP_SUBDIRS],[$BSP_SUBDIRS])
[d7aecdc]207
[259c516]208AS_IF([test "$host_cpu" = sparc],[
[babba25a]209  AC_DEFINE_UNQUOTED([CPU_U32_FIX],[1],
210    [whether to enable ipalignment work-around])
211])
212
[67bfd9a6]213AM_CONDITIONAL([HAS_NETWORKING],[test "$HAS_NETWORKING" = "yes"])
[832bed1]214
[4108ae8]215AM_CONDITIONAL(HAS_POSIX,test "$HAS_POSIX_API" = "yes")
[67bfd9a6]216
217# The posix bsp doesn't support libchip
218# FIXME: We should use a feature based check, here
219AM_CONDITIONAL([LIBCHIP],[test "$RTEMS_BSP_FAMILY" != "posix"])
[94f4a9ba]220
221# The bare bsp doesn't have libbsp.a
222# FIXME: We should use a feature based check, here
[6184265d]223AM_CONDITIONAL([HAS_LIBBSP],[test "$RTEMS_BSP_FAMILY" != "bare"])
[12b0ada]224
[94f4a9ba]225AM_CONDITIONAL([MULTILIB],[test x"${enable_multilib}" = x"yes"])
226
[62fdded]227AM_CONDITIONAL([RPCTOOLS],[test "$RPCGEN" = rpcgen \
228&& test -n "$AWK" \
229&& test "$enable_rpcgen" = yes])
[4108ae8]230
[aea8e66]231AM_CONDITIONAL(RTEMS_ADA,[test x"$enable_ada" = x"yes" \
232  && test x"$rtems_cv_HAS_POSIX_API" = x"yes"])
233
[d7aecdc]234RTEMS_PROJECT_ROOT
[b826c3a]235
[d7aecdc]236# Explicitly list all Makefiles here
[f0d7515]237AC_CONFIG_FILES([Makefile],
238[${MAKE} make/${RTEMS_BSP}.cache],
239[RTEMS_BSP=${RTEMS_BSP}
240 MAKE=${MAKE}])
241
[babba25a]242AC_CONFIG_FILES([
243support/Makefile
[4108ae8]244
[babba25a]245libchip/Makefile
[6fcf4571]246
[babba25a]247optman/Makefile
[6fcf4571]248
[539e266e]249lib/Makefile
250
[dd984c0]251lib/libcpu/Makefile
252
253lib/libbsp/Makefile
254
[9faed348]255nfsclient/Makefile
[aea8e66]256ada/Makefile
257
[babba25a]258wrapup/Makefile
259])
[94f4a9ba]260
[d7aecdc]261AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.