Changeset e5f4e5a in rtems


Ignore:
Timestamp:
Mar 29, 1999, 10:24:23 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
710389fc
Parents:
b5d8eca
Message:

Patch from Ralf Corsepius <corsepiu@…>:

rtems-rc-19990326-2.diff: Enhancements to autoconf support for librdbg

  • autoconf-checks for AWK and RPCGEN
  • disable librdbg if either AWK, RPCGEN or librdbg/$target_cpu cannot be found
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/librdbg/Makefile.in

    rb5d8eca re5f4e5a  
    4848OBJS=$(C_GEN_O_FILES) $(C_O_FILES) $(ASM_O_FILES)
    4949
    50 RPCGEN=rpcgen
    51 AWK=awk
     50RPCGEN=@RPCGEN@
     51AWK=@AWK@
    5252
    5353include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
  • c/src/librdbg/src/Makefile.in

    rb5d8eca re5f4e5a  
    4848OBJS=$(C_GEN_O_FILES) $(C_O_FILES) $(ASM_O_FILES)
    4949
    50 RPCGEN=rpcgen
    51 AWK=awk
     50RPCGEN=@RPCGEN@
     51AWK=@AWK@
    5252
    5353include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
  • configure

    rb5d8eca re5f4e5a  
    35453545
    35463546  if test "$RTEMS_HAS_RDBG" = "yes"; then
    3547    
     3547    echo $ac_n "checking whether cpu supports rdbg? ""... $ac_c" 1>&6
     3548echo "configure:3549: checking whether cpu supports rdbg? " >&5
     3549    test ! -d "$srcdir/c/src/lib/librdbg/$target_cpu" && RTEMS_HAS_RDBG="no" ;
     3550    echo "$ac_t""$RTEMS_HAS_RDBG" 1>&6
     3551    if test "$RTEMS_HAS_RDBG" = "yes"; then
     3552      # Extract the first word of "rpcgen", so it can be a program name with args.
     3553set dummy rpcgen; ac_word=$2
     3554echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     3555echo "configure:3556: checking for $ac_word" >&5
     3556if eval "test \"`echo '$''{'ac_cv_path_RPCGEN'+set}'`\" = set"; then
     3557  echo $ac_n "(cached) $ac_c" 1>&6
     3558else
     3559  case "$RPCGEN" in
     3560  /*)
     3561  ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
     3562  ;;
     3563  ?:/*)                 
     3564  ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a dos path.
     3565  ;;
     3566  *)
     3567  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     3568  ac_dummy="$PATH"
     3569  for ac_dir in $ac_dummy; do
     3570    test -z "$ac_dir" && ac_dir=.
     3571    if test -f $ac_dir/$ac_word; then
     3572      ac_cv_path_RPCGEN="$ac_dir/$ac_word"
     3573      break
     3574    fi
     3575  done
     3576  IFS="$ac_save_ifs"
     3577  ;;
     3578esac
     3579fi
     3580RPCGEN="$ac_cv_path_RPCGEN"
     3581if test -n "$RPCGEN"; then
     3582  echo "$ac_t""$RPCGEN" 1>&6
     3583else
     3584  echo "$ac_t""no" 1>&6
     3585fi
     3586
     3587      test -z "$RPCGEN" && RTEMS_HAS_RDBG="no"
     3588    fi
     3589    if test "$RTEMS_HAS_RDBG" = "yes"; then
     3590      for ac_prog in mawk gawk nawk awk
     3591do
     3592# Extract the first word of "$ac_prog", so it can be a program name with args.
     3593set dummy $ac_prog; ac_word=$2
     3594echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     3595echo "configure:3596: checking for $ac_word" >&5
     3596if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
     3597  echo $ac_n "(cached) $ac_c" 1>&6
     3598else
     3599  if test -n "$AWK"; then
     3600  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     3601else
     3602  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     3603  ac_dummy="$PATH"
     3604  for ac_dir in $ac_dummy; do
     3605    test -z "$ac_dir" && ac_dir=.
     3606    if test -f $ac_dir/$ac_word; then
     3607      ac_cv_prog_AWK="$ac_prog"
     3608      break
     3609    fi
     3610  done
     3611  IFS="$ac_save_ifs"
     3612fi
     3613fi
     3614AWK="$ac_cv_prog_AWK"
     3615if test -n "$AWK"; then
     3616  echo "$ac_t""$AWK" 1>&6
     3617else
     3618  echo "$ac_t""no" 1>&6
     3619fi
     3620
     3621test -n "$AWK" && break
     3622done
     3623
     3624      test -z "$AWK" && RTEMS_HAS_RDBG="no"
     3625    fi
     3626    if test "$RTEMS_HAS_RDBG" = "yes"; then
     3627     
    35483628echo $ac_n "checking for Makefile.in in c/src/lib/librdbg""... $ac_c" 1>&6
    3549 echo "configure:3550: checking for Makefile.in in c/src/lib/librdbg" >&5
     3629echo "configure:3630: checking for Makefile.in in c/src/lib/librdbg" >&5
    35503630if test -d $srcdir/c/src/lib/librdbg; then
    35513631  rtems_av_save_dir=`pwd`;
     
    35603640
    35613641
     3642    else
     3643      echo "configure: warning: *** warning disabling --enable-rdbg" 1>&2
     3644    fi
    35623645  fi
    35633646fi
     
    35713654# If the tests are enabled, then find all the test suite Makefiles
    35723655echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
    3573 echo "configure:3574: checking if the test suites are enabled? " >&5
     3656echo "configure:3657: checking if the test suites are enabled? " >&5
    35743657tests_enabled=yes
    35753658# Check whether --enable-tests or --disable-tests was given.
     
    35893672
    35903673echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
    3591 echo "configure:3592: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
     3674echo "configure:3675: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
    35923675if test -d $srcdir/c/src/tests/tools/$target_cpu; then
    35933676  rtems_av_save_dir=`pwd`;
     
    36063689   
    36073690echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
    3608 echo "configure:3609: checking for Makefile.in in c/src/tests/libtests" >&5
     3691echo "configure:3692: checking for Makefile.in in c/src/tests/libtests" >&5
    36093692if test -d $srcdir/c/src/tests/libtests; then
    36103693  rtems_av_save_dir=`pwd`;
     
    36213704   
    36223705echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
    3623 echo "configure:3624: checking for Makefile.in in c/src/tests/sptests" >&5
     3706echo "configure:3707: checking for Makefile.in in c/src/tests/sptests" >&5
    36243707if test -d $srcdir/c/src/tests/sptests; then
    36253708  rtems_av_save_dir=`pwd`;
     
    36363719   
    36373720echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
    3638 echo "configure:3639: checking for Makefile.in in c/src/tests/tmtests" >&5
     3721echo "configure:3722: checking for Makefile.in in c/src/tests/tmtests" >&5
    36393722if test -d $srcdir/c/src/tests/tmtests; then
    36403723  rtems_av_save_dir=`pwd`;
     
    36523735       
    36533736echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
    3654 echo "configure:3655: checking for Makefile.in in c/src/tests/mptests" >&5
     3737echo "configure:3738: checking for Makefile.in in c/src/tests/mptests" >&5
    36553738if test -d $srcdir/c/src/tests/mptests; then
    36563739  rtems_av_save_dir=`pwd`;
     
    36693752     
    36703753echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
    3671 echo "configure:3672: checking for Makefile.in in c/src/tests/psxtests" >&5
     3754echo "configure:3755: checking for Makefile.in in c/src/tests/psxtests" >&5
    36723755if test -d $srcdir/c/src/tests/psxtests; then
    36733756  rtems_av_save_dir=`pwd`;
     
    37033786if test "$RTEMS_HAS_HWAPI" = "yes"; then
    37043787  echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6
    3705 echo "configure:3706: checking whether libwapi is present" >&5
     3788echo "configure:3789: checking whether libwapi is present" >&5
    37063789  if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
    37073790    echo "$ac_t""yes" 1>&6
     
    37093792   
    37103793echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
    3711 echo "configure:3712: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
     3794echo "configure:3795: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
    37123795if test -d $srcdir/c/src/lib/libhwapi/analog; then
    37133796  rtems_av_save_dir=`pwd`;
     
    37243807   
    37253808echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
    3726 echo "configure:3727: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
     3809echo "configure:3810: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
    37273810if test -d $srcdir/c/src/lib/libhwapi/discrete; then
    37283811  rtems_av_save_dir=`pwd`;
     
    37393822   
    37403823echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
    3741 echo "configure:3742: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
     3824echo "configure:3825: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
    37423825if test -d $srcdir/c/src/lib/libhwapi/drivers; then
    37433826  rtems_av_save_dir=`pwd`;
     
    37543837   
    37553838echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
    3756 echo "configure:3757: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
     3839echo "configure:3840: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
    37573840if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
    37583841  rtems_av_save_dir=`pwd`;
     
    37693852   
    37703853echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
    3771 echo "configure:3772: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
     3854echo "configure:3855: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
    37723855if test -d $srcdir/c/src/lib/libhwapi/serial; then
    37733856  rtems_av_save_dir=`pwd`;
     
    37843867   
    37853868echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
    3786 echo "configure:3787: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
     3869echo "configure:3870: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
    37873870if test -d $srcdir/c/src/lib/libhwapi/support; then
    37883871  rtems_av_save_dir=`pwd`;
     
    37993882   
    38003883echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
    3801 echo "configure:3802: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
     3884echo "configure:3885: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
    38023885if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
    38033886  rtems_av_save_dir=`pwd`;
     
    38433926
    38443927echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
    3845 echo "configure:3846: checking for Makefile.in in make" >&5
     3928echo "configure:3929: checking for Makefile.in in make" >&5
    38463929if test -d $srcdir/make; then
    38473930  rtems_av_save_dir=`pwd`;
     
    38583941
    38593942echo $ac_n "checking for Makefile.in in c/src/lib/libchip""... $ac_c" 1>&6
    3860 echo "configure:3861: checking for Makefile.in in c/src/lib/libchip" >&5
     3943echo "configure:3944: checking for Makefile.in in c/src/lib/libchip" >&5
    38613944if test -d $srcdir/c/src/lib/libchip; then
    38623945  rtems_av_save_dir=`pwd`;
     
    38733956
    38743957echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
    3875 echo "configure:3876: checking for Makefile.in in c/src/lib/libmisc" >&5
     3958echo "configure:3959: checking for Makefile.in in c/src/lib/libmisc" >&5
    38763959if test -d $srcdir/c/src/lib/libmisc; then
    38773960  rtems_av_save_dir=`pwd`;
     
    38883971
    38893972echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
    3890 echo "configure:3891: checking for Makefile.in in c/src/tests/samples" >&5
     3973echo "configure:3974: checking for Makefile.in in c/src/tests/samples" >&5
    38913974if test -d $srcdir/c/src/tests/samples; then
    38923975  rtems_av_save_dir=`pwd`;
     
    41524235s%@EXEEXT@%$EXEEXT%g
    41534236s%@GCCSED@%$GCCSED%g
     4237s%@RPCGEN@%$RPCGEN%g
     4238s%@AWK@%$AWK%g
    41544239s%@subdirs@%$subdirs%g
    41554240s%@RTEMS_HAS_HWAPI@%$RTEMS_HAS_HWAPI%g
  • configure.in

    rb5d8eca re5f4e5a  
     1
    12dnl Process this file with autoconf to produce a configure script.
    23dnl
     
    311312  RTEMS_CHECK_MAKEFILE(c/src/lib/librpc)
    312313  if test "$RTEMS_HAS_RDBG" = "yes"; then
    313     RTEMS_CHECK_MAKEFILE(c/src/lib/librdbg)
     314    AC_MSG_CHECKING([whether cpu supports rdbg? ])
     315    test ! -d "$srcdir/c/src/lib/librdbg/$target_cpu" && RTEMS_HAS_RDBG="no" ;
     316    AC_MSG_RESULT($RTEMS_HAS_RDBG)
     317    if test "$RTEMS_HAS_RDBG" = "yes"; then
     318      AC_PATH_PROG(RPCGEN,rpcgen)
     319      test -z "$RPCGEN" && RTEMS_HAS_RDBG="no"
     320    fi
     321    if test "$RTEMS_HAS_RDBG" = "yes"; then
     322      AC_PROG_AWK
     323      test -z "$AWK" && RTEMS_HAS_RDBG="no"
     324    fi
     325    if test "$RTEMS_HAS_RDBG" = "yes"; then
     326      RTEMS_CHECK_MAKEFILE(c/src/lib/librdbg)
     327    else
     328      AC_MSG_WARN([*** warning disabling --enable-rdbg])
     329    fi
    314330  fi
    315331fi
Note: See TracChangeset for help on using the changeset viewer.