source: rtems/c/src/lib/librdbg/aclocal.m4 @ a24c280

4.104.114.84.95
Last change on this file since a24c280 was a24c280, checked in by Joel Sherrill <joel.sherrill@…>, on 09/09/99 at 21:22:36

Applied patch rtems-rc-19990820-6.diff.gz from
Ralf Corsepius <corsepiu@…> which converted many
Makefile.in's to Makefile.am's. This added a lot of files.

  • Property mode set to 100644
File size: 15.9 KB
Line 
1dnl aclocal.m4 generated automatically by aclocal 1.4
2
3dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11dnl PARTICULAR PURPOSE.
12
13dnl $Id$
14
15dnl
16dnl RTEMS_TOP($1)
17dnl
18dnl $1 .. relative path from this configure.in to the toplevel configure.in
19dnl
20AC_DEFUN(RTEMS_TOP,
21[dnl
22AC_ARG_WITH(target-subdir,
23[  --with-target-subdir=DIR],
24TARGET_SUBDIR="$withval",
25TARGET_SUBDIR=".")
26
27RTEMS_TOPdir="$1";
28AC_SUBST(RTEMS_TOPdir)
29
30dnl Determine RTEMS Version string from the VERSION file
31dnl Hopefully, Joel never changes its format ;-
32AC_MSG_CHECKING([for RTEMS Version])
33if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
34changequote(,)dnl
35RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
36sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
37changequote([,])dnl
38else
39AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION)
40fi
41if test -z "$RTEMS_VERSION"; then
42AC_MSG_ERROR(Unable to determine version)
43fi
44AC_MSG_RESULT($RTEMS_VERSION)
45])dnl
46
47dnl
48dnl $Id$
49dnl
50
51dnl canonicalize target cpu
52dnl NOTE: Most rtems targets do not fullfil autoconf's
53dnl target naming conventions "processor-vendor-os"
54dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
55dnl and we have to fix it for rtems ourselves
56
57AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
58[
59AC_CANONICAL_SYSTEM
60AC_MSG_CHECKING(rtems target cpu)
61changequote(,)dnl
62case "${target}" in
63  # hpux unix port should go here
64  i[3456]86-go32-rtems*)
65        RTEMS_CPU=i386
66        ;;
67  i[3456]86-pc-linux*)          # unix "simulator" port
68        RTEMS_CPU=unix
69        ;;
70  i[3456]86-*freebsd2*)         # unix "simulator" port
71        RTEMS_CPU=unix
72        ;;
73  no_cpu-*rtems*)
74        RTEMS_CPU=no_cpu
75        ;;
76  sparc-sun-solaris*)           # unix "simulator" port
77        RTEMS_CPU=unix
78        ;;
79  *)
80        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
81        ;;
82esac
83changequote([,])dnl
84AC_SUBST(RTEMS_CPU)
85AC_MSG_RESULT($RTEMS_CPU)
86])
87
88# Add --enable-maintainer-mode option to configure.
89# From Jim Meyering
90
91# serial 1
92
93AC_DEFUN(AM_MAINTAINER_MODE,
94[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
95  dnl maintainer-mode is disabled by default
96  AC_ARG_ENABLE(maintainer-mode,
97[  --enable-maintainer-mode enable make rules and dependencies not useful
98                          (and sometimes confusing) to the casual installer],
99      USE_MAINTAINER_MODE=$enableval,
100      USE_MAINTAINER_MODE=no)
101  AC_MSG_RESULT($USE_MAINTAINER_MODE)
102  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
103  MAINT=$MAINTAINER_MODE_TRUE
104  AC_SUBST(MAINT)dnl
105]
106)
107
108# Define a conditional.
109
110AC_DEFUN(AM_CONDITIONAL,
111[AC_SUBST($1_TRUE)
112AC_SUBST($1_FALSE)
113if $2; then
114  $1_TRUE=
115  $1_FALSE='#'
116else
117  $1_TRUE='#'
118  $1_FALSE=
119fi])
120
121dnl $Id$
122
123AC_DEFUN(RTEMS_ENABLE_NETWORKING,
124[
125AC_ARG_ENABLE(networking,
126[  --enable-networking                  enable TCP/IP stack],
127[case "${enableval}" in
128  yes) RTEMS_HAS_NETWORKING=yes ;;
129  no) RTEMS_HAS_NETWORKING=no ;;
130  *)  AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;;
131esac],[RTEMS_HAS_NETWORKING=yes])
132AC_SUBST(RTEMS_HAS_NETWORKING)dnl
133])
134
135dnl $Id$
136
137AC_DEFUN(RTEMS_ENABLE_LIBCDIR,
138[
139AC_ARG_ENABLE(libcdir,
140[  --enable-libcdir=directory           set the directory for the C library],
141[ RTEMS_LIBC_DIR="${enableval}" ; \
142test -d ${enableval} || AC_MSG_ERROR("$enableval is not a directory" ) ] )
143AC_SUBST(RTEMS_LIBC_DIR)dnl
144])
145
146AC_DEFUN(RTEMS_ENABLE_BARE,
147[
148AC_ARG_ENABLE(bare-cpu-cflags,
149[  --enable-bare-cpu-cflags             specify a particular cpu cflag]
150[                                       (bare bsp specific)],
151[case "${enableval}" in
152  no) BARE_CPU_CFLAGS="" ;;
153  *)    BARE_CPU_CFLAGS="${enableval}" ;;
154esac],
155[BARE_CPU_CFLAGS=""])
156
157AC_ARG_ENABLE(bare-cpu-model,
158[  --enable-bare-cpu-model              specify a particular cpu model]
159[                                       (bare bsp specific)],
160[case "${enableval}" in
161  no)   BARE_CPU_MODEL="" ;;
162  *)    BARE_CPU_MODEL="${enableval}" ;;
163esac],
164[BARE_CPU_MODEL=""])
165])
166
167
168dnl $Id$
169
170dnl Override the set of BSPs to be built.
171dnl used by the toplevel configure script
172dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
173AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
174[
175AC_ARG_ENABLE(rtemsbsp,
176[  --enable-rtemsbsp=bsp1 bsp2 ..      BSPs to include in build],
177[case "${enableval}" in
178  yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
179  *) $1=$enableval;;
180esac],[$1=""])
181])
182
183dnl Pass a single BSP via an environment variable
184dnl used by per BSP configure scripts
185AC_DEFUN(RTEMS_ENV_RTEMSBSP,
186[dnl
187AC_MSG_CHECKING([for RTEMS_BSP])
188AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
189[dnl
190  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
191])dnl
192if test -z "$rtems_cv_RTEMS_BSP"; then
193  AC_MSG_ERROR([Missing RTEMS_BSP])
194fi
195RTEMS_BSP="$rtems_cv_RTEMS_BSP"
196AC_MSG_RESULT(${RTEMS_BSP})
197AC_SUBST(RTEMS_BSP)
198])
199
200dnl $Id$
201
202dnl check if RTEMS support a cpu
203AC_DEFUN(RTEMS_CHECK_CPU,
204[dnl
205AC_REQUIRE([RTEMS_TOP])
206AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
207# Is this a supported CPU?
208AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
209if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
210  AC_MSG_RESULT(yes)
211else
212  AC_MSG_ERROR(no)
213fi
214])dnl
215
216
217dnl $Id$
218
219AC_DEFUN(RTEMS_CANONICAL_HOST,
220[dnl
221AC_REQUIRE([AC_CANONICAL_HOST])
222RTEMS_HOST=$host_os
223changequote(,)dnl
224case "${target}" in
225  # hpux unix port should go here
226  i[3456]86-pc-linux*)         # unix "simulator" port
227        RTEMS_HOST=Linux
228        ;;
229  i[3456]86-*freebsd2*) # unix "simulator" port
230        RTEMS_HOST=FreeBSD
231        ;;
232  sparc-sun-solaris*)             # unix "simulator" port
233        RTEMS_HOST=Solaris
234        ;;
235  *)
236        ;;
237esac
238changequote([,])dnl
239AC_SUBST(RTEMS_HOST)
240])dnl
241
242dnl
243dnl $Id$
244dnl
245
246AC_DEFUN(RTEMS_PROJECT_ROOT,
247[dnl
248AC_REQUIRE([RTEMS_TOP])
249if test "$TARGET_SUBDIR" = "." ; then
250PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
251else
252PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
253fi
254AC_SUBST(PROJECT_ROOT)
255
256RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
257AC_SUBST(RTEMS_ROOT)
258
259INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
260AC_SUBST(INSTALL_CHANGE)
261
262PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
263AC_SUBST(PACKHEX)
264])
265
266
267dnl
268dnl $Id$
269dnl
270dnl Check for target gcc
271dnl
272dnl 98/05/20 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
273dnl                             Completely reworked
274
275AC_DEFUN(RTEMS_PROG_CC,
276[
277AC_BEFORE([$0], [AC_PROG_CPP])dnl
278AC_BEFORE([$0], [AC_PROG_CC])dnl
279AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
280
281dnl Only accept gcc and cc
282dnl NOTE: This might be too restrictive for native compilation
283AC_PATH_PROGS(CC_FOR_TARGET, "$program_prefix"gcc "$program_prefix"cc )
284test -z "$CC_FOR_TARGET" \
285  && AC_MSG_ERROR([no acceptable cc found in \$PATH])
286
287dnl backup
288rtems_save_CC=$CC
289rtems_save_CFLAGS=$CFLAGS
290
291dnl temporarily set CC
292CC=$CC_FOR_TARGET
293
294AC_PROG_CC_WORKS
295AC_PROG_CC_GNU
296
297if test $ac_cv_prog_gcc = yes; then
298  GCC=yes
299dnl Check whether -g works, even if CFLAGS is set, in case the package
300dnl plays around with CFLAGS (such as to build both debugging and
301dnl normal versions of a library), tasteless as that idea is.
302  ac_test_CFLAGS="${CFLAGS+set}"
303  ac_save_CFLAGS="$CFLAGS"
304  CFLAGS=
305  AC_PROG_CC_G
306  if test "$ac_test_CFLAGS" = set; then
307    CFLAGS="$ac_save_CFLAGS"
308  elif test $ac_cv_prog_cc_g = yes; then
309    CFLAGS="-g -O2"
310  else
311    CFLAGS="-O2"
312  fi
313else
314  GCC=
315  test "${CFLAGS+set}" = set || CFLAGS="-g"
316fi
317
318rtems_cv_prog_gcc=$ac_cv_prog_gcc
319rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
320rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
321rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
322
323dnl restore initial values
324CC=$rtems_save_CC
325CFLAGS=$rtems_save_CFLAGS
326
327unset ac_cv_prog_gcc
328unset ac_cv_prog_cc_g
329unset ac_cv_prog_cc_works
330unset ac_cv_prog_cc_cross
331])
332
333AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
334[
335dnl check target cc
336RTEMS_PROG_CC
337dnl check if the compiler supports --specs
338RTEMS_GCC_SPECS
339dnl check if the target compiler may use --pipe
340RTEMS_GCC_PIPE
341dnl check if the compiler supports --specs if gcc28 is requested
342if test "$RTEMS_USE_GCC272" != "yes" ; then
343  if test "$rtems_cv_gcc_specs" = "no"; then
344    AC_MSG_WARN([*** disabling --enable-gcc28])
345      RTEMS_USE_GCC272=yes
346  fi
347fi
348test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
349
350dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
351case $host_os in
352*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
353*) ;;
354esac
355AC_SUBST(GCCSED)
356])
357
358dnl
359dnl  $Id$
360dnl
361dnl Set program_prefix
362dnl
363dnl 98/05/20 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
364dnl                             Extracted from configure
365
366AC_DEFUN(RTEMS_TOOL_PREFIX,
367[AC_REQUIRE([AC_CANONICAL_TARGET])dnl
368AC_REQUIRE([AC_CANONICAL_BUILD])dnl
369
370changequote(,)dnl
371if [ "${program_prefix}" = "NONE" ] ; then
372  if [ "${target}" = "${host}" ] ; then
373    program_prefix=
374  else
375    program_prefix=${target}-
376  fi
377fi
378changequote([,])dnl
379])
380
381dnl
382dnl $Id$
383dnl
384dnl Check whether the target compiler accepts -specs
385dnl
386dnl 98/02/11 Ralf Corsepius     corsepiu@faw.uni-ulm.de
387dnl
388
389AC_DEFUN(RTEMS_GCC_SPECS,
390[AC_REQUIRE([RTEMS_PROG_CC])
391AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts -specs,rtems_cv_gcc_specs,
392[
393rtems_cv_gcc_specs=no
394if test "$rtems_cv_prog_gcc" = "yes"; then
395  touch confspec
396  echo 'void f(){}' >conftest.c
397  if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
398    rtems_cv_gcc_specs=yes
399  fi
400fi
401rm -f confspec conftest*
402])])
403
404dnl
405dnl $Id$
406dnl
407dnl Check whether the target compiler accepts -pipe
408dnl
409dnl 98/02/11 Ralf Corsepius     corsepiu@faw.uni-ulm.de
410dnl
411
412AC_DEFUN(RTEMS_GCC_PIPE,
413[AC_REQUIRE([RTEMS_PROG_CC])
414AC_REQUIRE([AC_CANONICAL_HOST])
415AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe,
416[
417rtems_cv_gcc_pipe=no
418if test "$rtems_cv_prog_gcc" = "yes"; then
419case "$host_os" in
420  cygwin*)
421    ;;
422  *)
423    echo 'void f(){}' >conftest.c
424    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
425      rtems_cv_gcc_pipe=yes
426    fi
427    rm -f conftest*
428    ;;
429esac
430fi
431])
432])
433
434dnl
435dnl $Id$
436dnl
437dnl Set target tools
438dnl
439dnl 98/06/23 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
440dnl             fixing cache/environment variable handling
441dnl             adding checks for cygwin/egcs '\\'-bug
442dnl             adding checks for ranlib/ar -s problem
443dnl
444dnl 98/02/12 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
445dnl
446
447AC_DEFUN(RTEMS_GCC_PRINT,
448[ case $host_os in
449  *cygwin*)
450    dnl FIXME: Hack for cygwin/egcs reporting mixed '\\' and '/'
451    dnl        Should be removed once cygwin/egcs reports '/' only
452    $1=`$CC_FOR_TARGET --print-prog-name=$2 | sed -e 's%\\\\%/%g' `
453    ;;
454  *)
455    $1=`$CC_FOR_TARGET --print-prog-name=$2`
456    ;;
457  esac
458])
459
460AC_DEFUN(RTEMS_PATH_TOOL,
461[
462AC_MSG_CHECKING([target's $2])
463AC_CACHE_VAL(ac_cv_path_$1,:)
464AC_MSG_RESULT([$ac_cv_path_$1])
465
466if test -n "$ac_cv_path_$1"; then
467  dnl retrieve the value from the cache
468  $1=$ac_cv_path_$1
469else
470  dnl the cache was not set
471  if test -z "[$]$1" ; then
472    if test "$rtems_cv_prog_gcc" = "yes"; then
473      # We are using gcc, ask it about its tool
474      # NOTE: Necessary if gcc was configured to use the target's
475      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
476      RTEMS_GCC_PRINT($1,$2)
477    fi
478  else
479    # The user set an environment variable.
480    # Check whether it is an absolute path, otherwise AC_PATH_PROG
481    # will override the environment variable, which isn't what the user
482    # intends
483    AC_MSG_CHECKING([whether environment variable $1 is an absolute path])
484    case "[$]$1" in
485    /*) # valid
486      AC_MSG_RESULT("yes")
487    ;;
488    *)  # invalid for AC_PATH_PROG
489      AC_MSG_RESULT("no")
490      AC_MSG_ERROR([***]
491        [Environment variable $1 should either]
492        [be unset (preferred) or contain an absolute path])
493    ;;
494    esac
495  fi
496
497  AC_PATH_PROG($1,"$program_prefix"$2,$3)
498fi
499])
500
501AC_DEFUN(RTEMS_CANONICALIZE_TOOLS,
502[AC_REQUIRE([RTEMS_PROG_CC])dnl
503
504dnl FIXME: What shall be done if these tools are not available?
505  RTEMS_PATH_TOOL(AR_FOR_TARGET,ar,no)
506  RTEMS_PATH_TOOL(AS_FOR_TARGET,as,no)
507  RTEMS_PATH_TOOL(LD_FOR_TARGET,ld,no)
508  RTEMS_PATH_TOOL(NM_FOR_TARGET,nm,no)
509
510dnl special treatment of ranlib
511  RTEMS_PATH_TOOL(RANLIB_FOR_TARGET,ranlib,no)
512  if test "$RANLIB_FOR_TARGET" = "no"; then
513    # ranlib wasn't found; check if ar -s is available
514    RTEMS_AR_FOR_TARGET_S
515    if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
516      dnl override RANLIB_FOR_TARGET's cache
517      ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
518      RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
519    else
520      AC_MSG_ERROR([***]
521        [Can't figure out how to build a library index]
522        [Neither ranlib nor ar -s seem to be available] )
523    fi
524  fi
525
526dnl NOTE: These may not be available if not using gnutools
527  RTEMS_PATH_TOOL(OBJCOPY_FOR_TARGET,objcopy,no)
528  RTEMS_PATH_TOOL(SIZE_FOR_TARGET,size,no)
529  RTEMS_PATH_TOOL(STRIP_FOR_TARGET,strip,no)
530])
531
532dnl
533dnl $Id$
534dnl
535
536AC_DEFUN(RTEMS_AR_FOR_TARGET_S,
537[
538AC_CACHE_CHECK(whether $AR_FOR_TARGET -s works,
539rtems_cv_AR_FOR_TARGET_S,
540[
541cat > conftest.$ac_ext <<EOF
542int foo( int b )
543{ return b; }
544EOF
545if AC_TRY_COMMAND($CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext) \
546  && AC_TRY_COMMAND($AR_FOR_TARGET -sr conftest.a conftest.o) \
547  && test -s conftest.a ; \
548then
549  rtems_cv_AR_FOR_TARGET_S="yes"
550else
551  rtems_cv_AR_FOR_TARGET_S="no"
552fi
553  rm -f conftest*
554])
555])
556
557
558dnl $Id$
559
560dnl Report all available bsps for a target,
561dnl check if a bsp-subdirectory is present for all bsps found
562dnl
563dnl RTEMS_CHECK_BSPS(bsp_list)
564AC_DEFUN(RTEMS_CHECK_BSPS,
565[
566AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
567AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
568AC_MSG_CHECKING([for bsps])
569case "${target}" in
570changequote(,)dnl
571  i[3456]86-go32-rtems*)
572changequote([,])dnl
573    $1="go32 go32_p5"
574    ;;
575  *)
576    files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
577    for file in $files; do
578      case $file in
579        shared*);;
580        Makefile*);;
581        READ*);;
582        CVS*);;
583        pxfl*);;
584        go32*);;       # so the i386 port can pick up the other Makefiles
585        # Now account for BSPs with build variants
586        gen68360)      rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
587        p4000)         rtems_bsp="$rtems_bsp p4600 p4650";;
588        mvme162)       rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
589        *) $1="[$]$1 $file";;
590      esac;
591    done
592    ;;
593esac
594AC_MSG_RESULT([[$]$1 .. done])
595])dnl
596
597AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,
598[dnl
599AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
600if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then
601  AC_MSG_RESULT([yes])
602else
603  AC_MSG_ERROR([no])
604fi
605])dnl
606
607dnl $Id$
608dnl
609AC_DEFUN(RTEMS_CHECK_NETWORKING,
610[dnl
611AC_REQUIRE([RTEMS_CHECK_CPU])dnl
612AC_CACHE_CHECK([whether BSP supports networking],
613  rtems_cv_HAS_NETWORKING,
614  [dnl
615    case "$RTEMS_CPU" in
616    unix*)
617      rtems_cv_HAS_NETWORKING="no"
618      ;;
619    *)
620      if test "${RTEMS_HAS_NETWORKING}" = "yes"; then
621        rtems_cv_HAS_NETWORKING="yes";
622      else
623        rtems_cv_HAS_NETWORKING="disabled";
624      fi
625      ;;
626    esac])
627if test "$rtems_cv_HAS_NETWORKING" = "yes"; then
628  HAS_NETWORKING="yes";
629else
630  HAS_NETWORKING="no";
631fi
632AC_SUBST(HAS_NETWORKING)dnl
633])
634
635dnl $Id$
636dnl
637AC_DEFUN(RTEMS_CHECK_RDBG,
638[dnl
639AC_REQUIRE([RTEMS_TOP])dnl
640AC_REQUIRE([RTEMS_CHECK_CPU])dnl
641AC_CACHE_CHECK([whether BSP supports librdbg],
642  rtems_cv_HAS_RDBG,
643  [
644    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/librdbg/${RTEMS_CPU}/${$1}"; then
645      rtems_cv_HAS_RDBG="yes" ;
646    else
647      rtems_cv_HAS_RDBG="no";
648    fi
649  ])
650HAS_RDBG="$rtems_cv_HAS_RDBG"
651AC_SUBST(HAS_RDBG)
652])
653
654dnl
655dnl  $Id$
656dnl
657
658dnl RTEMS_BSP_ALIAS(BSP_ALIAS,BSP_RETURNED)
659dnl convert a bsp alias $1 into its bsp directory $2
660AC_DEFUN(RTEMS_BSP_ALIAS,
661[
662    # account for "aliased" bsps which share source code
663    case $1 in
664      mvme162lx)    $2=mvme162  ;;  # mvme162 board variant
665      gen68360_040) $2=gen68360 ;;  # 68360 in companion mode
666      go32_p5)      $2=go32     ;;  # go32 on Pentium class CPU
667      p4600)        $2=p4000    ;;  # p4000 board with IDT 4600
668      p4650)        $2=p4000    ;;  # p4000 board with IDT 4650
669      *)            $2=$1;;
670    esac
671])
672
Note: See TracBrowser for help on using the repository browser.