Changeset ea562ee9 in rtems


Ignore:
Timestamp:
Aug 12, 1999, 6:22:17 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
6fc973e
Parents:
8aefe83
Message:

Patch from Ralf Corsepius <corsepiu@…>:

After upgrading my linux box to the brand new SuSE 6.2 release, which is
glibc-2.1 based, I came across a bug in RTEMS - IIRC, I even warned you
about it about 1/2 a year ago, but nothing has been done since then :-.

The *.m4 macros to check for SYSV/IPC are broken for linux/glibc2.1,
because they assume that linux always defines union semun, which isn't
true anymore for glibc2.1 (the manpage for semctl states _X_OPEN
specifies it this way). Therefore I have tried to implement a more
general approach for handling SYSV for unix/posix which checks for
presence of struct semun, instead of trying to evaluate OS specific
preprocessor symbols.

This approach is a bit adventureous, because I only tested it with
linux/glibc2.1 and linux/libc5, but not under other Unix variants RTEMS
supports. I am quite confident it will work on other hosts, too, but who
knows :-.

[FYI: I think this might also is the cause of some problems with RedHat?
6.X / Mandrake linux recently reported on the rtems list -- rtems-4.0.0
can not be build for posix on any glibc2.1 based host]

Furthermore the patch below contains a couple of minor fixes and
configuration cleanups, which IMO should be applied before releasing a
new snapshot.

To apply this patch:

cd <source-tree>
patch -p1 < rtems-rc-19990709-8.diff
./autogen

Files:
16 edited

Legend:

Unmodified
Added
Removed
  • aclocal/sysv-ipc.m4

    r8aefe83 rea562ee9  
    1717dnl msgget, semctl, shmctl and msgctl for details.
    1818
     19AC_DEFUN(RTEMS_UNION_SEMUN,
     20[
     21AC_CACHE_CHECK([whether $RTEMS_HOST defines union semun],
     22  rtems_cv_HAS_UNION_SEMUN,
     23  [AC_TRY_COMPILE([
     24#include <sys/types.h>
     25#include <sys/ipc.h>
     26#include <sys/sem.h>],
     27[union semun arg ;],
     28[rtems_cv_HAS_UNION_SEMUN="yes"],
     29[rtems_cv_HAS_UNION_SEMUN="no"])
     30
     31if test "$rtems_cv_HAS_UNION_SEMUN" = "yes"; then
     32    AC_DEFINE(HAS_UNION_SEMUN)
     33fi])
     34])
     35
    1936AC_DEFUN(RTEMS_SYSV_SEM,
    2037[AC_REQUIRE([AC_PROG_CC])
     
    2340rtems_cv_sysv_sem,
    2441[
    25 AC_TRY_RUN([
     42AC_TRY_RUN(
     43[
    2644#include <sys/types.h>
    2745#include <sys/ipc.h>
    2846#include <sys/sem.h>
    29 int main () {
    30 #if !defined(sun)
    31   union semun arg ;
    32 #else
     47#if !HAS_UNION_SEMUN
    3348  union semun {
    3449    int val;
    3550    struct semid_ds *buf;
    3651    ushort *array;
    37   } arg;
     52  } ;
    3853#endif
     54int main () {
     55  union semun arg ;
     56
    3957  int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
    4058  if (id == -1)
     
    99117[AC_REQUIRE([RTEMS_CANONICAL_HOST])
    100118if test "$RTEMS_CPU" = "unix" ; then
     119  RTEMS_UNION_SEMUN
    101120  RTEMS_SYSV_SEM
    102121  if test "$rtems_cv_sysv_sem" != "yes" ; then
  • c/src/exec/aclocal.m4

    r8aefe83 rea562ee9  
    688688dnl msgget, semctl, shmctl and msgctl for details.
    689689
     690AC_DEFUN(RTEMS_UNION_SEMUN,
     691[
     692AC_CACHE_CHECK([whether $RTEMS_HOST defines union semun],
     693  rtems_cv_HAS_UNION_SEMUN,
     694  [AC_TRY_COMPILE([
     695#include <sys/types.h>
     696#include <sys/ipc.h>
     697#include <sys/sem.h>],
     698[union semun arg ;],
     699[rtems_cv_HAS_UNION_SEMUN="yes"],
     700[rtems_cv_HAS_UNION_SEMUN="no"])
     701
     702if test "$rtems_cv_HAS_UNION_SEMUN" = "yes"; then
     703    AC_DEFINE(HAS_UNION_SEMUN)
     704fi])
     705])
     706
    690707AC_DEFUN(RTEMS_SYSV_SEM,
    691708[AC_REQUIRE([AC_PROG_CC])
     
    694711rtems_cv_sysv_sem,
    695712[
    696 AC_TRY_RUN([
     713AC_TRY_RUN(
     714[
    697715#include <sys/types.h>
    698716#include <sys/ipc.h>
    699717#include <sys/sem.h>
    700 int main () {
    701 #if !defined(sun)
    702   union semun arg ;
    703 #else
     718#if !HAS_UNION_SEMUN
    704719  union semun {
    705720    int val;
    706721    struct semid_ds *buf;
    707722    ushort *array;
    708   } arg;
     723  } ;
    709724#endif
     725int main () {
     726  union semun arg ;
     727
    710728  int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
    711729  if (id == -1)
     
    770788[AC_REQUIRE([RTEMS_CANONICAL_HOST])
    771789if test "$RTEMS_CPU" = "unix" ; then
     790  RTEMS_UNION_SEMUN
    772791  RTEMS_SYSV_SEM
    773792  if test "$rtems_cv_sysv_sem" != "yes" ; then
  • c/src/exec/configure

    r8aefe83 rea562ee9  
    22882288
    22892289if test "$RTEMS_CPU" = "unix" ; then
     2290 
     2291echo $ac_n "checking whether $RTEMS_HOST defines union semun""... $ac_c" 1>&6
     2292echo "configure:2293: checking whether $RTEMS_HOST defines union semun" >&5
     2293if eval "test \"`echo '$''{'rtems_cv_HAS_UNION_SEMUN'+set}'`\" = set"; then
     2294  echo $ac_n "(cached) $ac_c" 1>&6
     2295else
     2296  cat > conftest.$ac_ext <<EOF
     2297#line 2298 "configure"
     2298#include "confdefs.h"
     2299
     2300#include <sys/types.h>
     2301#include <sys/ipc.h>
     2302#include <sys/sem.h>
     2303int main() {
     2304union semun arg ;
     2305; return 0; }
     2306EOF
     2307if { (eval echo configure:2308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2308  rm -rf conftest*
     2309  rtems_cv_HAS_UNION_SEMUN="yes"
     2310else
     2311  echo "configure: failed program was:" >&5
     2312  cat conftest.$ac_ext >&5
     2313  rm -rf conftest*
     2314  rtems_cv_HAS_UNION_SEMUN="no"
     2315fi
     2316rm -f conftest*
     2317
     2318if test "$rtems_cv_HAS_UNION_SEMUN" = "yes"; then
     2319    cat >> confdefs.h <<\EOF
     2320#define HAS_UNION_SEMUN 1
     2321EOF
     2322
     2323fi
     2324fi
     2325
     2326echo "$ac_t""$rtems_cv_HAS_UNION_SEMUN" 1>&6
     2327
    22902328   
    22912329
    22922330echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6
    2293 echo "configure:2294: checking whether $RTEMS_HOST supports System V semaphores" >&5
     2331echo "configure:2332: checking whether $RTEMS_HOST supports System V semaphores" >&5
    22942332if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then
    22952333  echo $ac_n "(cached) $ac_c" 1>&6
     
    23002338else
    23012339  cat > conftest.$ac_ext <<EOF
    2302 #line 2303 "configure"
     2340#line 2341 "configure"
    23032341#include "confdefs.h"
    23042342
     
    23062344#include <sys/ipc.h>
    23072345#include <sys/sem.h>
    2308 int main () {
    2309 #if !defined(sun)
    2310   union semun arg ;
    2311 #else
     2346#if !HAS_UNION_SEMUN
    23122347  union semun {
    23132348    int val;
    23142349    struct semid_ds *buf;
    23152350    ushort *array;
    2316   } arg;
     2351  } ;
    23172352#endif
     2353int main () {
     2354  union semun arg ;
     2355
    23182356  int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
    23192357  if (id == -1)
     
    23262364
    23272365EOF
    2328 if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2366if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    23292367then
    23302368  rtems_cv_sysv_sem="yes"
     
    23492387
    23502388echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6
    2351 echo "configure:2352: checking whether $RTEMS_HOST supports System V shared memory" >&5
     2389echo "configure:2390: checking whether $RTEMS_HOST supports System V shared memory" >&5
    23522390if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then
    23532391  echo $ac_n "(cached) $ac_c" 1>&6
     
    23582396else
    23592397  cat > conftest.$ac_ext <<EOF
    2360 #line 2361 "configure"
     2398#line 2399 "configure"
    23612399#include "confdefs.h"
    23622400
     
    23742412
    23752413EOF
    2376 if { (eval echo configure:2377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2414if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    23772415then
    23782416  rtems_cv_sysv_shm="yes"
     
    23972435
    23982436echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6
    2399 echo "configure:2400: checking whether $RTEMS_HOST supports System V messages" >&5
     2437echo "configure:2438: checking whether $RTEMS_HOST supports System V messages" >&5
    24002438if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then
    24012439  echo $ac_n "(cached) $ac_c" 1>&6
     
    24062444else
    24072445  cat > conftest.$ac_ext <<EOF
    2408 #line 2409 "configure"
     2446#line 2447 "configure"
    24092447#include "confdefs.h"
    24102448
     
    24222460
    24232461EOF
    2424 if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2462if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    24252463then
    24262464  rtems_cv_sysv_msg="yes"
     
    24462484
    24472485echo $ac_n "checking for newlib""... $ac_c" 1>&6
    2448 echo "configure:2449: checking for newlib" >&5
     2486echo "configure:2487: checking for newlib" >&5
    24492487if eval "test \"`echo '$''{'rtems_cv_use_newlib'+set}'`\" = set"; then
    24502488  echo $ac_n "(cached) $ac_c" 1>&6
     
    24552493
    24562494    cat > conftest.$ac_ext <<EOF
    2457 #line 2458 "configure"
     2495#line 2496 "configure"
    24582496#include "confdefs.h"
    24592497extern int not_required_by_rtems() ;
     
    24622500; return 0; }
    24632501EOF
    2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2502if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    24652503  rm -rf conftest*
    24662504  rtems_cv_use_newlib="yes"
     
    24732511    if test -z "$rtems_cv_use_newlib"; then
    24742512      cat > conftest.$ac_ext <<EOF
    2475 #line 2476 "configure"
     2513#line 2514 "configure"
    24762514#include "confdefs.h"
    24772515extern int rtems_provides_crt0 ;
     
    24802518; return 0; }
    24812519EOF
    2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2520if { (eval echo configure:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    24832521  rm -rf conftest*
    24842522  rtems_cv_use_newlib="yes"
     
    25012539# Check if there is custom/*.cfg for this BSP
    25022540echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
    2503 echo "configure:2504: checking for make/custom/$RTEMS_BSP.cfg" >&5
     2541echo "configure:2542: checking for make/custom/$RTEMS_BSP.cfg" >&5
    25042542if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
    25052543  echo "$ac_t""yes" 1>&6
     
    25092547
    25102548echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6
    2511 echo "configure:2512: checking whether BSP supports multiprocessing" >&5
     2549echo "configure:2550: checking whether BSP supports multiprocessing" >&5
    25122550if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then
    25132551  echo $ac_n "(cached) $ac_c" 1>&6
     
    25332571
    25342572echo $ac_n "checking whether BSP supports libposix""... $ac_c" 1>&6
    2535 echo "configure:2536: checking whether BSP supports libposix" >&5
     2573echo "configure:2574: checking whether BSP supports libposix" >&5
    25362574if eval "test \"`echo '$''{'rtems_cv_HAS_POSIX_API'+set}'`\" = set"; then
    25372575  echo $ac_n "(cached) $ac_c" 1>&6
     
    25622600
    25632601echo $ac_n "checking for Makefile.in in score/cpu/$RTEMS_CPU""... $ac_c" 1>&6
    2564 echo "configure:2565: checking for Makefile.in in score/cpu/$RTEMS_CPU" >&5
     2602echo "configure:2603: checking for Makefile.in in score/cpu/$RTEMS_CPU" >&5
    25652603if test -d $srcdir/score/cpu/$RTEMS_CPU; then
    25662604  rtems_av_save_dir=`pwd`;
  • c/src/exec/score/cpu/unix/cpu.c

    r8aefe83 rea562ee9  
    992992    if ( is_master_node ) {
    993993      for ( i=0 ; i <= maximum_nodes ; i++ ) {
    994 #if defined(solaris2)
     994#if !HAS_UNION_SEMUN
    995995        union semun {
    996996          int val;
    997997          struct semid_ds *buf;
    998           ushort *array;
    999         } help;
    1000 
     998          unsigned short int *array;
     999#if defined(__linux__)
     1000          struct seminfo *__buf;
     1001#endif         
     1002        } ;
     1003#endif
     1004        union semun help ;
    10011005        help.val = 1;
    10021006        status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
    1003 #elif defined(__linux__) || defined(__FreeBSD__)
    1004         union semun help;
    1005 
    1006         help.val = 1;
    1007         status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
    1008 #elif defined(hpux)
    1009         status = semctl( _CPU_SHM_Semid, i, SETVAL, 1 );
    1010 #else
    1011 #error "Not a supported unix variant"
    1012 #endif
    10131007
    10141008        fix_syscall_errno(); /* in case of newlib */
  • c/src/exec/score/cpu/unix/wrap/Makefile.in

    r8aefe83 rea562ee9  
    5454#
    5555
    56 DEFINES += -DCPU_SYNC_IO $(LIBC_DEFINES)
     56DEFINES += -DCPU_SYNC_IO $(LIBC_DEFINES) @DEFS@
    5757CPPFLAGS += -I$(srcdir)/..
    5858CFLAGS += $(CFLAGS_OS_V)
  • c/src/lib/aclocal.m4

    r8aefe83 rea562ee9  
    732732])
    733733
    734 
    735 dnl
    736 dnl $Id$
    737 dnl
    738 dnl Check for System V IPC calls used by Unix simulators
    739 dnl
    740 dnl 98/07/17 Dario Alcocer     alcocer@netcom.com
    741 dnl          Ralf Corsepius    corsepiu@faw.uni-ulm.de
    742 dnl
    743 dnl Note: $host_os should probably *not* ever be used here to
    744 dnl determine if host supports System V IPC calls, since some
    745 dnl (e.g. FreeBSD 2.x) are configured by default to include only
    746 dnl a subset of the System V IPC calls.  Therefore, to make sure
    747 dnl all of the required calls are found, test for each call explicitly.
    748 dnl
    749 dnl All of the calls use IPC_PRIVATE, so tests will not unintentionally
    750 dnl modify any existing key sets.  See the man pages for semget, shmget,
    751 dnl msgget, semctl, shmctl and msgctl for details.
    752 
    753 AC_DEFUN(RTEMS_SYSV_SEM,
    754 [AC_REQUIRE([AC_PROG_CC])
    755 AC_REQUIRE([RTEMS_CANONICAL_HOST])
    756 AC_CACHE_CHECK(whether $RTEMS_HOST supports System V semaphores,
    757 rtems_cv_sysv_sem,
    758 [
    759 AC_TRY_RUN([
    760 #include <sys/types.h>
    761 #include <sys/ipc.h>
    762 #include <sys/sem.h>
    763 int main () {
    764 #if !defined(sun)
    765   union semun arg ;
    766 #else
    767   union semun {
    768     int val;
    769     struct semid_ds *buf;
    770     ushort *array;
    771   } arg;
    772 #endif
    773   int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
    774   if (id == -1)
    775     exit(1);
    776   arg.val = 0; /* avoid implicit type cast to union */
    777   if (semctl(id, 0, IPC_RMID, arg) == -1)
    778     exit(1);
    779   exit(0);
    780 }
    781 ],
    782 rtems_cv_sysv_sem="yes", rtems_cv_sysv_sem="no", :)
    783 ])
    784 ])
    785 
    786 AC_DEFUN(RTEMS_SYSV_SHM,
    787 [AC_REQUIRE([AC_PROG_CC])
    788 AC_REQUIRE([RTEMS_CANONICAL_HOST])
    789 AC_CACHE_CHECK(whether $RTEMS_HOST supports System V shared memory,
    790 rtems_cv_sysv_shm,
    791 [
    792 AC_TRY_RUN([
    793 #include <sys/types.h>
    794 #include <sys/ipc.h>
    795 #include <sys/shm.h>
    796 int main () {
    797   int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
    798   if (id == -1)
    799     exit(1);
    800   if (shmctl(id, IPC_RMID, 0) == -1)
    801     exit(1);
    802   exit(0);
    803 }
    804 ],
    805 rtems_cv_sysv_shm="yes", rtems_cv_sysv_shm="no", :)
    806 ])
    807 ])
    808 
    809 AC_DEFUN(RTEMS_SYSV_MSG,
    810 [AC_REQUIRE([AC_PROG_CC])
    811 AC_REQUIRE([RTEMS_CANONICAL_HOST])
    812 AC_CACHE_CHECK(whether $RTEMS_HOST supports System V messages,
    813 rtems_cv_sysv_msg,
    814 [
    815 AC_TRY_RUN([
    816 #include <sys/types.h>
    817 #include <sys/ipc.h>
    818 #include <sys/msg.h>
    819 int main () {
    820   int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);
    821   if (id == -1)
    822     exit(1);
    823   if (msgctl(id, IPC_RMID, 0) == -1)
    824     exit(1);
    825   exit(0);
    826 }
    827 ],
    828 rtems_cv_sysv_msg="yes", rtems_cv_sysv_msg="no", :)
    829 ])
    830 ])
    831 
    832 AC_DEFUN(RTEMS_CHECK_SYSV_UNIX,
    833 [AC_REQUIRE([RTEMS_CANONICAL_HOST])
    834 if test "$RTEMS_CPU" = "unix" ; then
    835   RTEMS_SYSV_SEM
    836   if test "$rtems_cv_sysv_sem" != "yes" ; then
    837     AC_MSG_ERROR([System V semaphores don't work, required by simulator])
    838   fi
    839   RTEMS_SYSV_SHM
    840   if test "$rtems_cv_sysv_shm" != "yes" ; then
    841     AC_MSG_ERROR([System V shared memory doesn't work, required by simulator])
    842   fi
    843   RTEMS_SYSV_MSG
    844   if test "$rtems_cv_sysv_msg" != "yes" ; then
    845     AC_MSG_ERROR([System V messages don't work, required by simulator])
    846   fi
    847 fi
    848 ])
    849734
    850735dnl $Id$
  • c/src/lib/configure

    r8aefe83 rea562ee9  
    21912191fi;
    21922192
    2193 # Extract the first word of "gcc", so it can be a program name with args.
    2194 set dummy gcc; ac_word=$2
    2195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2196 echo "configure:2197: checking for $ac_word" >&5
    2197 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    2198   echo $ac_n "(cached) $ac_c" 1>&6
    2199 else
    2200   if test -n "$CC"; then
    2201   ac_cv_prog_CC="$CC" # Let the user override the test.
    2202 else
    2203   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    2204   ac_dummy="$PATH"
    2205   for ac_dir in $ac_dummy; do
    2206     test -z "$ac_dir" && ac_dir=.
    2207     if test -f $ac_dir/$ac_word; then
    2208       ac_cv_prog_CC="gcc"
    2209       break
    2210     fi
    2211   done
    2212   IFS="$ac_save_ifs"
    2213 fi
    2214 fi
    2215 CC="$ac_cv_prog_CC"
    2216 if test -n "$CC"; then
    2217   echo "$ac_t""$CC" 1>&6
    2218 else
    2219   echo "$ac_t""no" 1>&6
    2220 fi
    2221 
    2222 if test -z "$CC"; then
    2223   # Extract the first word of "cc", so it can be a program name with args.
    2224 set dummy cc; ac_word=$2
    2225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2226 echo "configure:2227: checking for $ac_word" >&5
    2227 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    2228   echo $ac_n "(cached) $ac_c" 1>&6
    2229 else
    2230   if test -n "$CC"; then
    2231   ac_cv_prog_CC="$CC" # Let the user override the test.
    2232 else
    2233   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    2234   ac_prog_rejected=no
    2235   ac_dummy="$PATH"
    2236   for ac_dir in $ac_dummy; do
    2237     test -z "$ac_dir" && ac_dir=.
    2238     if test -f $ac_dir/$ac_word; then
    2239       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    2240         ac_prog_rejected=yes
    2241         continue
    2242       fi
    2243       ac_cv_prog_CC="cc"
    2244       break
    2245     fi
    2246   done
    2247   IFS="$ac_save_ifs"
    2248 if test $ac_prog_rejected = yes; then
    2249   # We found a bogon in the path, so make sure we never use it.
    2250   set dummy $ac_cv_prog_CC
    2251   shift
    2252   if test $# -gt 0; then
    2253     # We chose a different compiler from the bogus one.
    2254     # However, it has the same basename, so the bogon will be chosen
    2255     # first if we set CC to just the basename; use the full file name.
    2256     shift
    2257     set dummy "$ac_dir/$ac_word" "$@"
    2258     shift
    2259     ac_cv_prog_CC="$@"
    2260   fi
    2261 fi
    2262 fi
    2263 fi
    2264 CC="$ac_cv_prog_CC"
    2265 if test -n "$CC"; then
    2266   echo "$ac_t""$CC" 1>&6
    2267 else
    2268   echo "$ac_t""no" 1>&6
    2269 fi
    2270 
    2271   if test -z "$CC"; then
    2272     case "`uname -s`" in
    2273     *win32* | *WIN32*)
    2274       # Extract the first word of "cl", so it can be a program name with args.
    2275 set dummy cl; ac_word=$2
    2276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2277 echo "configure:2278: checking for $ac_word" >&5
    2278 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    2279   echo $ac_n "(cached) $ac_c" 1>&6
    2280 else
    2281   if test -n "$CC"; then
    2282   ac_cv_prog_CC="$CC" # Let the user override the test.
    2283 else
    2284   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    2285   ac_dummy="$PATH"
    2286   for ac_dir in $ac_dummy; do
    2287     test -z "$ac_dir" && ac_dir=.
    2288     if test -f $ac_dir/$ac_word; then
    2289       ac_cv_prog_CC="cl"
    2290       break
    2291     fi
    2292   done
    2293   IFS="$ac_save_ifs"
    2294 fi
    2295 fi
    2296 CC="$ac_cv_prog_CC"
    2297 if test -n "$CC"; then
    2298   echo "$ac_t""$CC" 1>&6
    2299 else
    2300   echo "$ac_t""no" 1>&6
    2301 fi
    2302  ;;
    2303     esac
    2304   fi
    2305   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    2306 fi
    2307 
    2308 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2309 echo "configure:2310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    2310 
    2311 ac_ext=c
    2312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    2313 ac_cpp='$CPP $CPPFLAGS'
    2314 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    2315 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    2316 cross_compiling=$ac_cv_prog_cc_cross
    2317 
    2318 cat > conftest.$ac_ext << EOF
    2319 
    2320 #line 2321 "configure"
    2321 #include "confdefs.h"
    2322 
    2323 main(){return(0);}
    2324 EOF
    2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2326   ac_cv_prog_cc_works=yes
    2327   # If we can't run a trivial program, we are probably using a cross compiler.
    2328   if (./conftest; exit) 2>/dev/null; then
    2329     ac_cv_prog_cc_cross=no
    2330   else
    2331     ac_cv_prog_cc_cross=yes
    2332   fi
    2333 else
    2334   echo "configure: failed program was:" >&5
    2335   cat conftest.$ac_ext >&5
    2336   ac_cv_prog_cc_works=no
    2337 fi
    2338 rm -fr conftest*
    2339 ac_ext=c
    2340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    2341 ac_cpp='$CPP $CPPFLAGS'
    2342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    2343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    2344 cross_compiling=$ac_cv_prog_cc_cross
    2345 
    2346 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    2347 if test $ac_cv_prog_cc_works = no; then
    2348   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    2349 fi
    2350 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2351 echo "configure:2352: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    2352 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    2353 cross_compiling=$ac_cv_prog_cc_cross
    2354 
    2355 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    2356 echo "configure:2357: checking whether we are using GNU C" >&5
    2357 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    2358   echo $ac_n "(cached) $ac_c" 1>&6
    2359 else
    2360   cat > conftest.c <<EOF
    2361 #ifdef __GNUC__
    2362   yes;
    2363 #endif
    2364 EOF
    2365 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    2366   ac_cv_prog_gcc=yes
    2367 else
    2368   ac_cv_prog_gcc=no
    2369 fi
    2370 fi
    2371 
    2372 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    2373 
    2374 if test $ac_cv_prog_gcc = yes; then
    2375   GCC=yes
    2376 else
    2377   GCC=
    2378 fi
    2379 
    2380 ac_test_CFLAGS="${CFLAGS+set}"
    2381 ac_save_CFLAGS="$CFLAGS"
    2382 CFLAGS=
    2383 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    2384 echo "configure:2385: checking whether ${CC-cc} accepts -g" >&5
    2385 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    2386   echo $ac_n "(cached) $ac_c" 1>&6
    2387 else
    2388   echo 'void f(){}' > conftest.c
    2389 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
    2390   ac_cv_prog_cc_g=yes
    2391 else
    2392   ac_cv_prog_cc_g=no
    2393 fi
    2394 rm -f conftest*
    2395 
    2396 fi
    2397 
    2398 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    2399 if test "$ac_test_CFLAGS" = set; then
    2400   CFLAGS="$ac_save_CFLAGS"
    2401 elif test $ac_cv_prog_cc_g = yes; then
    2402   if test "$GCC" = yes; then
    2403     CFLAGS="-g -O2"
    2404   else
    2405     CFLAGS="-g"
    2406   fi
    2407 else
    2408   if test "$GCC" = yes; then
    2409     CFLAGS="-O2"
    2410   else
    2411     CFLAGS=
    2412   fi
    2413 fi
    2414 
    2415 
    2416 if test "$RTEMS_CPU" = "unix" ; then
    2417    
    2418 
    2419 echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6
    2420 echo "configure:2421: checking whether $RTEMS_HOST supports System V semaphores" >&5
    2421 if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then
    2422   echo $ac_n "(cached) $ac_c" 1>&6
    2423 else
    2424  
    2425 if test "$cross_compiling" = yes; then
    2426   :
    2427 else
    2428   cat > conftest.$ac_ext <<EOF
    2429 #line 2430 "configure"
    2430 #include "confdefs.h"
    2431 
    2432 #include <sys/types.h>
    2433 #include <sys/ipc.h>
    2434 #include <sys/sem.h>
    2435 int main () {
    2436 #if !defined(sun)
    2437   union semun arg ;
    2438 #else
    2439   union semun {
    2440     int val;
    2441     struct semid_ds *buf;
    2442     ushort *array;
    2443   } arg;
    2444 #endif
    2445   int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
    2446   if (id == -1)
    2447     exit(1);
    2448   arg.val = 0; /* avoid implicit type cast to union */
    2449   if (semctl(id, 0, IPC_RMID, arg) == -1)
    2450     exit(1);
    2451   exit(0);
    2452 }
    2453 
    2454 EOF
    2455 if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2456 then
    2457   rtems_cv_sysv_sem="yes"
    2458 else
    2459   echo "configure: failed program was:" >&5
    2460   cat conftest.$ac_ext >&5
    2461   rm -fr conftest*
    2462   rtems_cv_sysv_sem="no"
    2463 fi
    2464 rm -fr conftest*
    2465 fi
    2466 
    2467 
    2468 fi
    2469 
    2470 echo "$ac_t""$rtems_cv_sysv_sem" 1>&6
    2471 
    2472   if test "$rtems_cv_sysv_sem" != "yes" ; then
    2473     { echo "configure: error: System V semaphores don't work, required by simulator" 1>&2; exit 1; }
    2474   fi
    2475    
    2476 
    2477 echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6
    2478 echo "configure:2479: checking whether $RTEMS_HOST supports System V shared memory" >&5
    2479 if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then
    2480   echo $ac_n "(cached) $ac_c" 1>&6
    2481 else
    2482  
    2483 if test "$cross_compiling" = yes; then
    2484   :
    2485 else
    2486   cat > conftest.$ac_ext <<EOF
    2487 #line 2488 "configure"
    2488 #include "confdefs.h"
    2489 
    2490 #include <sys/types.h>
    2491 #include <sys/ipc.h>
    2492 #include <sys/shm.h>
    2493 int main () {
    2494   int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
    2495   if (id == -1)
    2496     exit(1);
    2497   if (shmctl(id, IPC_RMID, 0) == -1)
    2498     exit(1);
    2499   exit(0);
    2500 }
    2501 
    2502 EOF
    2503 if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2504 then
    2505   rtems_cv_sysv_shm="yes"
    2506 else
    2507   echo "configure: failed program was:" >&5
    2508   cat conftest.$ac_ext >&5
    2509   rm -fr conftest*
    2510   rtems_cv_sysv_shm="no"
    2511 fi
    2512 rm -fr conftest*
    2513 fi
    2514 
    2515 
    2516 fi
    2517 
    2518 echo "$ac_t""$rtems_cv_sysv_shm" 1>&6
    2519 
    2520   if test "$rtems_cv_sysv_shm" != "yes" ; then
    2521     { echo "configure: error: System V shared memory doesn't work, required by simulator" 1>&2; exit 1; }
    2522   fi
    2523    
    2524 
    2525 echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6
    2526 echo "configure:2527: checking whether $RTEMS_HOST supports System V messages" >&5
    2527 if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then
    2528   echo $ac_n "(cached) $ac_c" 1>&6
    2529 else
    2530  
    2531 if test "$cross_compiling" = yes; then
    2532   :
    2533 else
    2534   cat > conftest.$ac_ext <<EOF
    2535 #line 2536 "configure"
    2536 #include "confdefs.h"
    2537 
    2538 #include <sys/types.h>
    2539 #include <sys/ipc.h>
    2540 #include <sys/msg.h>
    2541 int main () {
    2542   int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);
    2543   if (id == -1)
    2544     exit(1);
    2545   if (msgctl(id, IPC_RMID, 0) == -1)
    2546     exit(1);
    2547   exit(0);
    2548 }
    2549 
    2550 EOF
    2551 if { (eval echo configure:2552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2552 then
    2553   rtems_cv_sysv_msg="yes"
    2554 else
    2555   echo "configure: failed program was:" >&5
    2556   cat conftest.$ac_ext >&5
    2557   rm -fr conftest*
    2558   rtems_cv_sysv_msg="no"
    2559 fi
    2560 rm -fr conftest*
    2561 fi
    2562 
    2563 
    2564 fi
    2565 
    2566 echo "$ac_t""$rtems_cv_sysv_msg" 1>&6
    2567 
    2568   if test "$rtems_cv_sysv_msg" != "yes" ; then
    2569     { echo "configure: error: System V messages don't work, required by simulator" 1>&2; exit 1; }
    2570   fi
    2571 fi
    2572 
    2573 
    25742193# find all the Makefiles for the BSPs
    25752194makefiles="$makefiles libbsp/$RTEMS_CPU/Makefile"
     
    25802199
    25812200echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
    2582 echo "configure:2583: checking for make/custom/$RTEMS_BSP.cfg" >&5
     2201echo "configure:2202: checking for make/custom/$RTEMS_BSP.cfg" >&5
    25832202if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
    25842203  echo "$ac_t""yes" 1>&6
     
    25882207
    25892208echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6
    2590 echo "configure:2591: checking whether BSP supports multiprocessing" >&5
     2209echo "configure:2210: checking whether BSP supports multiprocessing" >&5
    25912210if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then
    25922211  echo $ac_n "(cached) $ac_c" 1>&6
     
    26122231
    26132232echo $ac_n "checking whether to build rtems++""... $ac_c" 1>&6
    2614 echo "configure:2615: checking whether to build rtems++" >&5
     2233echo "configure:2234: checking whether to build rtems++" >&5
    26152234if eval "test \"`echo '$''{'rtems_cv_HAS_CPLUSPLUS'+set}'`\" = set"; then
    26162235  echo $ac_n "(cached) $ac_c" 1>&6
     
    26312250
    26322251echo $ac_n "checking whether BSP supports networking""... $ac_c" 1>&6
    2633 echo "configure:2634: checking whether BSP supports networking" >&5
     2252echo "configure:2253: checking whether BSP supports networking" >&5
    26342253if eval "test \"`echo '$''{'rtems_cv_HAS_NETWORKING'+set}'`\" = set"; then
    26352254  echo $ac_n "(cached) $ac_c" 1>&6
     
    26962315 
    26972316echo $ac_n "checking for Makefile.in in libbsp/${bspcpudir}$bspdir""... $ac_c" 1>&6
    2698 echo "configure:2699: checking for Makefile.in in libbsp/${bspcpudir}$bspdir" >&5
     2317echo "configure:2318: checking for Makefile.in in libbsp/${bspcpudir}$bspdir" >&5
    26992318if test -d $srcdir/libbsp/${bspcpudir}$bspdir; then
    27002319  rtems_av_save_dir=`pwd`;
     
    27112330 
    27122331echo $ac_n "checking for Makefile.in in libbsp/${bspcpudir}shared""... $ac_c" 1>&6
    2713 echo "configure:2714: checking for Makefile.in in libbsp/${bspcpudir}shared" >&5
     2332echo "configure:2333: checking for Makefile.in in libbsp/${bspcpudir}shared" >&5
    27142333if test -d $srcdir/libbsp/${bspcpudir}shared; then
    27152334  rtems_av_save_dir=`pwd`;
     
    27552374
    27562375echo $ac_n "checking for Makefile.in in libcpu/$RTEMS_CPU""... $ac_c" 1>&6
    2757 echo "configure:2758: checking for Makefile.in in libcpu/$RTEMS_CPU" >&5
     2376echo "configure:2377: checking for Makefile.in in libcpu/$RTEMS_CPU" >&5
    27582377if test -d $srcdir/libcpu/$RTEMS_CPU; then
    27592378  rtems_av_save_dir=`pwd`;
     
    27752394   
    27762395echo $ac_n "checking for Makefile.in in start/$RTEMS_CPU""... $ac_c" 1>&6
    2777 echo "configure:2778: checking for Makefile.in in start/$RTEMS_CPU" >&5
     2396echo "configure:2397: checking for Makefile.in in start/$RTEMS_CPU" >&5
    27782397if test -d $srcdir/start/$RTEMS_CPU; then
    27792398  rtems_av_save_dir=`pwd`;
     
    27952414 
    27962415echo $ac_n "checking for Makefile.in in libnetworking""... $ac_c" 1>&6
    2797 echo "configure:2798: checking for Makefile.in in libnetworking" >&5
     2416echo "configure:2417: checking for Makefile.in in libnetworking" >&5
    27982417if test -d $srcdir/libnetworking; then
    27992418  rtems_av_save_dir=`pwd`;
     
    28102429 
    28112430echo $ac_n "checking for Makefile.in in librpc""... $ac_c" 1>&6
    2812 echo "configure:2813: checking for Makefile.in in librpc" >&5
     2431echo "configure:2432: checking for Makefile.in in librpc" >&5
    28132432if test -d $srcdir/librpc; then
    28142433  rtems_av_save_dir=`pwd`;
     
    28262445  if test "$HAS_RDBG" = "yes"; then
    28272446    echo $ac_n "checking whether BSP supports librdbg""... $ac_c" 1>&6
    2828 echo "configure:2829: checking whether BSP supports librdbg" >&5
     2447echo "configure:2448: checking whether BSP supports librdbg" >&5
    28292448if eval "test \"`echo '$''{'rtems_cv_HAS_RDBG'+set}'`\" = set"; then
    28302449  echo $ac_n "(cached) $ac_c" 1>&6
     
    28482467set dummy rpcgen; ac_word=$2
    28492468echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2850 echo "configure:2851: checking for $ac_word" >&5
     2469echo "configure:2470: checking for $ac_word" >&5
    28512470if eval "test \"`echo '$''{'ac_cv_prog_RPCGEN'+set}'`\" = set"; then
    28522471  echo $ac_n "(cached) $ac_c" 1>&6
     
    28792498set dummy $ac_prog; ac_word=$2
    28802499echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2881 echo "configure:2882: checking for $ac_word" >&5
     2500echo "configure:2501: checking for $ac_word" >&5
    28822501if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    28832502  echo $ac_n "(cached) $ac_c" 1>&6
     
    29182537     
    29192538echo $ac_n "checking for Makefile.in in librdbg""... $ac_c" 1>&6
    2920 echo "configure:2921: checking for Makefile.in in librdbg" >&5
     2539echo "configure:2540: checking for Makefile.in in librdbg" >&5
    29212540if test -d $srcdir/librdbg; then
    29222541  rtems_av_save_dir=`pwd`;
     
    29392558 
    29402559echo $ac_n "checking for Makefile.in in librtems++""... $ac_c" 1>&6
    2941 echo "configure:2942: checking for Makefile.in in librtems++" >&5
     2560echo "configure:2561: checking for Makefile.in in librtems++" >&5
    29422561if test -d $srcdir/librtems++; then
    29432562  rtems_av_save_dir=`pwd`;
     
    29702589if test "$RTEMS_HAS_HWAPI" = "yes"; then
    29712590  echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6
    2972 echo "configure:2973: checking whether libwapi is present" >&5
     2591echo "configure:2592: checking whether libwapi is present" >&5
    29732592  if test -f ${srcdir}/libhwapi/Makefile.in ; then
    29742593    echo "$ac_t""yes" 1>&6
     
    29762595   
    29772596echo $ac_n "checking for Makefile.in in libhwapi/analog""... $ac_c" 1>&6
    2978 echo "configure:2979: checking for Makefile.in in libhwapi/analog" >&5
     2597echo "configure:2598: checking for Makefile.in in libhwapi/analog" >&5
    29792598if test -d $srcdir/libhwapi/analog; then
    29802599  rtems_av_save_dir=`pwd`;
     
    29912610   
    29922611echo $ac_n "checking for Makefile.in in libhwapi/discrete""... $ac_c" 1>&6
    2993 echo "configure:2994: checking for Makefile.in in libhwapi/discrete" >&5
     2612echo "configure:2613: checking for Makefile.in in libhwapi/discrete" >&5
    29942613if test -d $srcdir/libhwapi/discrete; then
    29952614  rtems_av_save_dir=`pwd`;
     
    30062625   
    30072626echo $ac_n "checking for Makefile.in in libhwapi/drivers""... $ac_c" 1>&6
    3008 echo "configure:3009: checking for Makefile.in in libhwapi/drivers" >&5
     2627echo "configure:2628: checking for Makefile.in in libhwapi/drivers" >&5
    30092628if test -d $srcdir/libhwapi/drivers; then
    30102629  rtems_av_save_dir=`pwd`;
     
    30212640   
    30222641echo $ac_n "checking for Makefile.in in libhwapi/non_volatile_memory""... $ac_c" 1>&6
    3023 echo "configure:3024: checking for Makefile.in in libhwapi/non_volatile_memory" >&5
     2642echo "configure:2643: checking for Makefile.in in libhwapi/non_volatile_memory" >&5
    30242643if test -d $srcdir/libhwapi/non_volatile_memory; then
    30252644  rtems_av_save_dir=`pwd`;
     
    30362655   
    30372656echo $ac_n "checking for Makefile.in in libhwapi/serial""... $ac_c" 1>&6
    3038 echo "configure:3039: checking for Makefile.in in libhwapi/serial" >&5
     2657echo "configure:2658: checking for Makefile.in in libhwapi/serial" >&5
    30392658if test -d $srcdir/libhwapi/serial; then
    30402659  rtems_av_save_dir=`pwd`;
     
    30512670   
    30522671echo $ac_n "checking for Makefile.in in libhwapi/support""... $ac_c" 1>&6
    3053 echo "configure:3054: checking for Makefile.in in libhwapi/support" >&5
     2672echo "configure:2673: checking for Makefile.in in libhwapi/support" >&5
    30542673if test -d $srcdir/libhwapi/support; then
    30552674  rtems_av_save_dir=`pwd`;
     
    30662685   
    30672686echo $ac_n "checking for Makefile.in in libhwapi/wrapup""... $ac_c" 1>&6
    3068 echo "configure:3069: checking for Makefile.in in libhwapi/wrapup" >&5
     2687echo "configure:2688: checking for Makefile.in in libhwapi/wrapup" >&5
    30692688if test -d $srcdir/libhwapi/wrapup; then
    30702689  rtems_av_save_dir=`pwd`;
     
    30962715
    30972716echo $ac_n "checking for Makefile.in in libchip""... $ac_c" 1>&6
    3098 echo "configure:3099: checking for Makefile.in in libchip" >&5
     2717echo "configure:2718: checking for Makefile.in in libchip" >&5
    30992718if test -d $srcdir/libchip; then
    31002719  rtems_av_save_dir=`pwd`;
     
    31132732
    31142733echo $ac_n "checking for Makefile.in in libmisc""... $ac_c" 1>&6
    3115 echo "configure:3116: checking for Makefile.in in libmisc" >&5
     2734echo "configure:2735: checking for Makefile.in in libmisc" >&5
    31162735if test -d $srcdir/libmisc; then
    31172736  rtems_av_save_dir=`pwd`;
     
    33352954s%@RTEMS_GAS_CODE16_TRUE@%$RTEMS_GAS_CODE16_TRUE%g
    33362955s%@RTEMS_GAS_CODE16_FALSE@%$RTEMS_GAS_CODE16_FALSE%g
    3337 s%@CC@%$CC%g
    33382956s%@HAS_MP@%$HAS_MP%g
    33392957s%@HAS_CPLUSPLUS@%$HAS_CPLUSPLUS%g
  • c/src/lib/configure.in

    r8aefe83 rea562ee9  
    4444RTEMS_I386_GAS_CODE16
    4545AM_CONDITIONAL(RTEMS_GAS_CODE16,test "$RTEMS_GAS_CODE16" = "yes");
    46 
    47 RTEMS_CHECK_SYSV_UNIX
    4846
    4947# find all the Makefiles for the BSPs
  • c/src/make/configure

    r8aefe83 rea562ee9  
    596596
    597597
    598 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    599 echo "configure:600: checking whether ${MAKE-make} sets \${MAKE}" >&5
    600 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    601 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    602   echo $ac_n "(cached) $ac_c" 1>&6
    603 else
    604   cat > conftestmake <<\EOF
    605 all:
    606         @echo 'ac_maketemp="${MAKE}"'
    607 EOF
    608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    609 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
    610 if test -n "$ac_maketemp"; then
    611   eval ac_cv_prog_make_${ac_make}_set=yes
    612 else
    613   eval ac_cv_prog_make_${ac_make}_set=no
    614 fi
    615 rm -f conftestmake
    616 fi
    617 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    618   echo "$ac_t""yes" 1>&6
    619   SET_MAKE=
    620 else
    621   echo "$ac_t""no" 1>&6
    622   SET_MAKE="MAKE=${MAKE-make}"
    623 fi
    624 
    625598
    626599
     
    652625
    653626echo $ac_n "checking host system type""... $ac_c" 1>&6
    654 echo "configure:655: checking host system type" >&5
     627echo "configure:628: checking host system type" >&5
    655628
    656629host_alias=$host
     
    673646
    674647echo $ac_n "checking target system type""... $ac_c" 1>&6
    675 echo "configure:676: checking target system type" >&5
     648echo "configure:649: checking target system type" >&5
    676649
    677650target_alias=$target
     
    691664
    692665echo $ac_n "checking build system type""... $ac_c" 1>&6
    693 echo "configure:694: checking build system type" >&5
     666echo "configure:667: checking build system type" >&5
    694667
    695668build_alias=$build
     
    714687
    715688echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    716 echo "configure:717: checking rtems target cpu" >&5
     689echo "configure:690: checking rtems target cpu" >&5
    717690case "${target}" in
    718691  # hpux unix port should go here
     
    752725# ./install, which can be erroneously created by make from ./install.sh.
    753726echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    754 echo "configure:755: checking for a BSD compatible install" >&5
     727echo "configure:728: checking for a BSD compatible install" >&5
    755728if test -z "$INSTALL"; then
    756729if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    805778
    806779echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    807 echo "configure:808: checking whether build environment is sane" >&5
     780echo "configure:781: checking whether build environment is sane" >&5
    808781# Just in case
    809782sleep 1
     
    860833# sed with no file args requires a program.
    861834test "$program_transform_name" = "" && program_transform_name="s,x,x,"
     835
     836echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
     837echo "configure:838: checking whether ${MAKE-make} sets \${MAKE}" >&5
     838set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
     839if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     840  echo $ac_n "(cached) $ac_c" 1>&6
     841else
     842  cat > conftestmake <<\EOF
     843all:
     844        @echo 'ac_maketemp="${MAKE}"'
     845EOF
     846# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     847eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     848if test -n "$ac_maketemp"; then
     849  eval ac_cv_prog_make_${ac_make}_set=yes
     850else
     851  eval ac_cv_prog_make_${ac_make}_set=no
     852fi
     853rm -f conftestmake
     854fi
     855if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     856  echo "$ac_t""yes" 1>&6
     857  SET_MAKE=
     858else
     859  echo "$ac_t""no" 1>&6
     860  SET_MAKE="MAKE=${MAKE-make}"
     861fi
    862862
    863863
     
    14011401fi
    14021402
    1403 # Find a good install program.  We prefer a C program (faster),
    1404 # so one script is as good as another.  But avoid the broken or
    1405 # incompatible versions:
    1406 # SysV /etc/install, /usr/sbin/install
    1407 # SunOS /usr/etc/install
    1408 # IRIX /sbin/install
    1409 # AIX /bin/install
    1410 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    1411 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    1412 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    1413 # ./install, which can be erroneously created by make from ./install.sh.
    1414 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1415 echo "configure:1416: checking for a BSD compatible install" >&5
    1416 if test -z "$INSTALL"; then
    1417 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    1418   echo $ac_n "(cached) $ac_c" 1>&6
    1419 else
    1420     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
    1421   for ac_dir in $PATH; do
    1422     # Account for people who put trailing slashes in PATH elements.
    1423     case "$ac_dir/" in
    1424     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    1425     *)
    1426       # OSF1 and SCO ODT 3.0 have their own names for install.
    1427       # Don't use installbsd from OSF since it installs stuff as root
    1428       # by default.
    1429       for ac_prog in ginstall scoinst install; do
    1430         if test -f $ac_dir/$ac_prog; then
    1431           if test $ac_prog = install &&
    1432             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
    1433             # AIX install.  It has an incompatible calling convention.
    1434             :
    1435           else
    1436             ac_cv_path_install="$ac_dir/$ac_prog -c"
    1437             break 2
    1438           fi
    1439         fi
    1440       done
    1441       ;;
    1442     esac
    1443   done
    1444   IFS="$ac_save_IFS"
    1445 
    1446 fi
    1447   if test "${ac_cv_path_install+set}" = set; then
    1448     INSTALL="$ac_cv_path_install"
    1449   else
    1450     # As a last resort, use the slow shell script.  We don't cache a
    1451     # path for INSTALL within a source directory, because that will
    1452     # break other packages using the cache if that directory is
    1453     # removed, or if the path is relative.
    1454     INSTALL="$ac_install_sh"
    1455   fi
    1456 fi
    1457 echo "$ac_t""$INSTALL" 1>&6
    1458 
    1459 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    1460 # It thinks the first close brace ends the variable substitution.
    1461 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    1462 
    1463 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
    1464 
    1465 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    1466 
    14671403
    14681404# Extract the first word of "perl", so it can be a program name with args.
    14691405set dummy perl; ac_word=$2
    14701406echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1471 echo "configure:1472: checking for $ac_word" >&5
     1407echo "configure:1408: checking for $ac_word" >&5
    14721408if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
    14731409  echo $ac_n "(cached) $ac_c" 1>&6
     
    15111447set dummy touch; ac_word=$2
    15121448echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1513 echo "configure:1514: checking for $ac_word" >&5
     1449echo "configure:1450: checking for $ac_word" >&5
    15141450if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
    15151451  echo $ac_n "(cached) $ac_c" 1>&6
     
    15461482set dummy cmp; ac_word=$2
    15471483echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1548 echo "configure:1549: checking for $ac_word" >&5
     1484echo "configure:1485: checking for $ac_word" >&5
    15491485if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
    15501486  echo $ac_n "(cached) $ac_c" 1>&6
     
    15821518set dummy sed; ac_word=$2
    15831519echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1584 echo "configure:1585: checking for $ac_word" >&5
     1520echo "configure:1521: checking for $ac_word" >&5
    15851521if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
    15861522  echo $ac_n "(cached) $ac_c" 1>&6
     
    16191555set dummy $ac_prog; ac_word=$2
    16201556echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1621 echo "configure:1622: checking for $ac_word" >&5
     1557echo "configure:1558: checking for $ac_word" >&5
    16221558if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
    16231559  echo $ac_n "(cached) $ac_c" 1>&6
     
    16611597set dummy $ac_prog; ac_word=$2
    16621598echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1663 echo "configure:1664: checking for $ac_word" >&5
     1599echo "configure:1600: checking for $ac_word" >&5
    16641600if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    16651601  echo $ac_n "(cached) $ac_c" 1>&6
     
    17081644# Is this a supported CPU?
    17091645echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
    1710 echo "configure:1711: checking if cpu $RTEMS_CPU is supported" >&5
     1646echo "configure:1647: checking if cpu $RTEMS_CPU is supported" >&5
    17111647if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
    17121648  echo "$ac_t""yes" 1>&6
     
    17691705set dummy $ac_prog; ac_word=$2
    17701706echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1771 echo "configure:1772: checking for $ac_word" >&5
     1707echo "configure:1708: checking for $ac_word" >&5
    17721708if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
    17731709  echo $ac_n "(cached) $ac_c" 1>&6
     
    18131749
    18141750echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1815 echo "configure:1816: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1751echo "configure:1752: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    18161752
    18171753ac_ext=c
     
    18241760cat > conftest.$ac_ext << EOF
    18251761
    1826 #line 1827 "configure"
     1762#line 1763 "configure"
    18271763#include "confdefs.h"
    18281764
    18291765main(){return(0);}
    18301766EOF
    1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1767if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18321768  ac_cv_prog_cc_works=yes
    18331769  # If we can't run a trivial program, we are probably using a cross compiler.
     
    18551791fi
    18561792echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1857 echo "configure:1858: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1793echo "configure:1794: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    18581794echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    18591795cross_compiling=$ac_cv_prog_cc_cross
    18601796
    18611797echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1862 echo "configure:1863: checking whether we are using GNU C" >&5
     1798echo "configure:1799: checking whether we are using GNU C" >&5
    18631799if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    18641800  echo $ac_n "(cached) $ac_c" 1>&6
     
    18691805#endif
    18701806EOF
    1871 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1807if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    18721808  ac_cv_prog_gcc=yes
    18731809else
     
    18841820  CFLAGS=
    18851821  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1886 echo "configure:1887: checking whether ${CC-cc} accepts -g" >&5
     1822echo "configure:1823: checking whether ${CC-cc} accepts -g" >&5
    18871823if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    18881824  echo $ac_n "(cached) $ac_c" 1>&6
     
    19261862
    19271863echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
    1928 echo "configure:1929: checking whether $CC_FOR_TARGET accepts -specs" >&5
     1864echo "configure:1865: checking whether $CC_FOR_TARGET accepts -specs" >&5
    19291865if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
    19301866  echo $ac_n "(cached) $ac_c" 1>&6
     
    19471883
    19481884echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
    1949 echo "configure:1950: checking whether $CC_FOR_TARGET accepts --pipe" >&5
     1885echo "configure:1886: checking whether $CC_FOR_TARGET accepts --pipe" >&5
    19501886if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
    19511887  echo $ac_n "(cached) $ac_c" 1>&6
     
    19951931set dummy $ac_prog; ac_word=$2
    19961932echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1997 echo "configure:1998: checking for $ac_word" >&5
     1933echo "configure:1934: checking for $ac_word" >&5
    19981934if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    19991935  echo $ac_n "(cached) $ac_c" 1>&6
     
    20391975
    20401976echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2041 echo "configure:2042: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1977echo "configure:1978: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    20421978
    20431979ac_ext=C
     
    20501986cat > conftest.$ac_ext << EOF
    20511987
    2052 #line 2053 "configure"
     1988#line 1989 "configure"
    20531989#include "confdefs.h"
    20541990
    20551991int main(){return(0);}
    20561992EOF
    2057 if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1993if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20581994  ac_cv_prog_cxx_works=yes
    20591995  # If we can't run a trivial program, we are probably using a cross compiler.
     
    20812017fi
    20822018echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2083 echo "configure:2084: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     2019echo "configure:2020: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    20842020echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    20852021cross_compiling=$ac_cv_prog_cxx_cross
    20862022
    20872023echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    2088 echo "configure:2089: checking whether we are using GNU C++" >&5
     2024echo "configure:2025: checking whether we are using GNU C++" >&5
    20892025if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    20902026  echo $ac_n "(cached) $ac_c" 1>&6
     
    20952031#endif
    20962032EOF
    2097 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     2033if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    20982034  ac_cv_prog_gxx=yes
    20992035else
     
    21102046  CXXFLAGS=
    21112047  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    2112 echo "configure:2113: checking whether ${CXX-g++} accepts -g" >&5
     2048echo "configure:2049: checking whether ${CXX-g++} accepts -g" >&5
    21132049if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    21142050  echo $ac_n "(cached) $ac_c" 1>&6
     
    21632099 
    21642100echo $ac_n "checking target's ar""... $ac_c" 1>&6
    2165 echo "configure:2166: checking target's ar" >&5
     2101echo "configure:2102: checking target's ar" >&5
    21662102if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    21672103  echo $ac_n "(cached) $ac_c" 1>&6
     
    21962132    # intends
    21972133    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2198 echo "configure:2199: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
     2134echo "configure:2135: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
    21992135    case "$AR_FOR_TARGET" in
    22002136    /*) # valid
     
    22132149set dummy "$program_prefix"ar; ac_word=$2
    22142150echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2215 echo "configure:2216: checking for $ac_word" >&5
     2151echo "configure:2152: checking for $ac_word" >&5
    22162152if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    22172153  echo $ac_n "(cached) $ac_c" 1>&6
     
    22502186 
    22512187echo $ac_n "checking target's as""... $ac_c" 1>&6
    2252 echo "configure:2253: checking target's as" >&5
     2188echo "configure:2189: checking target's as" >&5
    22532189if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    22542190  echo $ac_n "(cached) $ac_c" 1>&6
     
    22832219    # intends
    22842220    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2285 echo "configure:2286: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
     2221echo "configure:2222: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
    22862222    case "$AS_FOR_TARGET" in
    22872223    /*) # valid
     
    23002236set dummy "$program_prefix"as; ac_word=$2
    23012237echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2302 echo "configure:2303: checking for $ac_word" >&5
     2238echo "configure:2239: checking for $ac_word" >&5
    23032239if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    23042240  echo $ac_n "(cached) $ac_c" 1>&6
     
    23372273 
    23382274echo $ac_n "checking target's ld""... $ac_c" 1>&6
    2339 echo "configure:2340: checking target's ld" >&5
     2275echo "configure:2276: checking target's ld" >&5
    23402276if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    23412277  echo $ac_n "(cached) $ac_c" 1>&6
     
    23702306    # intends
    23712307    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2372 echo "configure:2373: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
     2308echo "configure:2309: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
    23732309    case "$LD_FOR_TARGET" in
    23742310    /*) # valid
     
    23872323set dummy "$program_prefix"ld; ac_word=$2
    23882324echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2389 echo "configure:2390: checking for $ac_word" >&5
     2325echo "configure:2326: checking for $ac_word" >&5
    23902326if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    23912327  echo $ac_n "(cached) $ac_c" 1>&6
     
    24242360 
    24252361echo $ac_n "checking target's nm""... $ac_c" 1>&6
    2426 echo "configure:2427: checking target's nm" >&5
     2362echo "configure:2363: checking target's nm" >&5
    24272363if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    24282364  echo $ac_n "(cached) $ac_c" 1>&6
     
    24572393    # intends
    24582394    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2459 echo "configure:2460: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
     2395echo "configure:2396: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
    24602396    case "$NM_FOR_TARGET" in
    24612397    /*) # valid
     
    24742410set dummy "$program_prefix"nm; ac_word=$2
    24752411echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2476 echo "configure:2477: checking for $ac_word" >&5
     2412echo "configure:2413: checking for $ac_word" >&5
    24772413if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    24782414  echo $ac_n "(cached) $ac_c" 1>&6
     
    25122448 
    25132449echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
    2514 echo "configure:2515: checking target's ranlib" >&5
     2450echo "configure:2451: checking target's ranlib" >&5
    25152451if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    25162452  echo $ac_n "(cached) $ac_c" 1>&6
     
    25452481    # intends
    25462482    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2547 echo "configure:2548: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
     2483echo "configure:2484: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
    25482484    case "$RANLIB_FOR_TARGET" in
    25492485    /*) # valid
     
    25622498set dummy "$program_prefix"ranlib; ac_word=$2
    25632499echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2564 echo "configure:2565: checking for $ac_word" >&5
     2500echo "configure:2501: checking for $ac_word" >&5
    25652501if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    25662502  echo $ac_n "(cached) $ac_c" 1>&6
     
    26012537   
    26022538echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
    2603 echo "configure:2604: checking whether $AR_FOR_TARGET -s works" >&5
     2539echo "configure:2540: checking whether $AR_FOR_TARGET -s works" >&5
    26042540if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
    26052541  echo $ac_n "(cached) $ac_c" 1>&6
     
    26102546{ return b; }
    26112547EOF
    2612 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    2613   && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2548if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2549  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    26142550  && test -s conftest.a ; \
    26152551then
     
    26362572 
    26372573echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
    2638 echo "configure:2639: checking target's objcopy" >&5
     2574echo "configure:2575: checking target's objcopy" >&5
    26392575if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    26402576  echo $ac_n "(cached) $ac_c" 1>&6
     
    26692605    # intends
    26702606    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2671 echo "configure:2672: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
     2607echo "configure:2608: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
    26722608    case "$OBJCOPY_FOR_TARGET" in
    26732609    /*) # valid
     
    26862622set dummy "$program_prefix"objcopy; ac_word=$2
    26872623echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2688 echo "configure:2689: checking for $ac_word" >&5
     2624echo "configure:2625: checking for $ac_word" >&5
    26892625if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    26902626  echo $ac_n "(cached) $ac_c" 1>&6
     
    27232659 
    27242660echo $ac_n "checking target's size""... $ac_c" 1>&6
    2725 echo "configure:2726: checking target's size" >&5
     2661echo "configure:2662: checking target's size" >&5
    27262662if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    27272663  echo $ac_n "(cached) $ac_c" 1>&6
     
    27562692    # intends
    27572693    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2758 echo "configure:2759: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
     2694echo "configure:2695: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
    27592695    case "$SIZE_FOR_TARGET" in
    27602696    /*) # valid
     
    27732709set dummy "$program_prefix"size; ac_word=$2
    27742710echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2775 echo "configure:2776: checking for $ac_word" >&5
     2711echo "configure:2712: checking for $ac_word" >&5
    27762712if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    27772713  echo $ac_n "(cached) $ac_c" 1>&6
     
    28102746 
    28112747echo $ac_n "checking target's strip""... $ac_c" 1>&6
    2812 echo "configure:2813: checking target's strip" >&5
     2748echo "configure:2749: checking target's strip" >&5
    28132749if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    28142750  echo $ac_n "(cached) $ac_c" 1>&6
     
    28432779    # intends
    28442780    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2845 echo "configure:2846: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
     2781echo "configure:2782: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
    28462782    case "$STRIP_FOR_TARGET" in
    28472783    /*) # valid
     
    28602796set dummy "$program_prefix"strip; ac_word=$2
    28612797echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2862 echo "configure:2863: checking for $ac_word" >&5
     2798echo "configure:2799: checking for $ac_word" >&5
    28632799if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    28642800  echo $ac_n "(cached) $ac_c" 1>&6
     
    28992835 if test "${target_cpu}" = "i386"; then
    29002836    echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6
    2901 echo "configure:2902: checking for 16 bit mode assembler support" >&5
     2837echo "configure:2838: checking for 16 bit mode assembler support" >&5
    29022838if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then
    29032839  echo $ac_n "(cached) $ac_c" 1>&6
     
    29092845         lgdt 0
    29102846EOF
    2911       if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
     2847      if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
    29122848        rtems_cv_prog_gas_code16=yes
    29132849      else
     
    29232859
    29242860echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
    2925 echo "configure:2926: checking for make/custom/$RTEMS_BSP.cfg" >&5
     2861echo "configure:2862: checking for make/custom/$RTEMS_BSP.cfg" >&5
    29262862if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
    29272863  echo "$ac_t""yes" 1>&6
     
    29312867
    29322868echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6
    2933 echo "configure:2934: checking whether BSP supports multiprocessing" >&5
     2869echo "configure:2870: checking whether BSP supports multiprocessing" >&5
    29342870if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then
    29352871  echo $ac_n "(cached) $ac_c" 1>&6
     
    29552891
    29562892echo $ac_n "checking whether BSP supports librdbg""... $ac_c" 1>&6
    2957 echo "configure:2958: checking whether BSP supports librdbg" >&5
     2893echo "configure:2894: checking whether BSP supports librdbg" >&5
    29582894if eval "test \"`echo '$''{'rtems_cv_HAS_RDBG'+set}'`\" = set"; then
    29592895  echo $ac_n "(cached) $ac_c" 1>&6
     
    29732909
    29742910echo $ac_n "checking whether BSP supports libposix""... $ac_c" 1>&6
    2975 echo "configure:2976: checking whether BSP supports libposix" >&5
     2911echo "configure:2912: checking whether BSP supports libposix" >&5
    29762912if eval "test \"`echo '$''{'rtems_cv_HAS_POSIX_API'+set}'`\" = set"; then
    29772913  echo $ac_n "(cached) $ac_c" 1>&6
     
    29992935
    30002936echo $ac_n "checking whether to build rtems++""... $ac_c" 1>&6
    3001 echo "configure:3002: checking whether to build rtems++" >&5
     2937echo "configure:2938: checking whether to build rtems++" >&5
    30022938if eval "test \"`echo '$''{'rtems_cv_HAS_CPLUSPLUS'+set}'`\" = set"; then
    30032939  echo $ac_n "(cached) $ac_c" 1>&6
     
    30182954
    30192955echo $ac_n "checking whether BSP supports networking""... $ac_c" 1>&6
    3020 echo "configure:3021: checking whether BSP supports networking" >&5
     2956echo "configure:2957: checking whether BSP supports networking" >&5
    30212957if eval "test \"`echo '$''{'rtems_cv_HAS_NETWORKING'+set}'`\" = set"; then
    30222958  echo $ac_n "(cached) $ac_c" 1>&6
     
    32443180s%@mandir@%$mandir%g
    32453181s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
    3246 s%@SET_MAKE@%$SET_MAKE%g
    32473182s%@host@%$host%g
    32483183s%@host_alias@%$host_alias%g
     
    32713206s%@AUTOHEADER@%$AUTOHEADER%g
    32723207s%@MAKEINFO@%$MAKEINFO%g
     3208s%@SET_MAKE@%$SET_MAKE%g
    32733209s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
    32743210s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
  • c/src/make/configure.in

    r8aefe83 rea562ee9  
    1212AC_CONFIG_AUX_DIR(../../..)
    1313
    14 AC_PROG_MAKE_SET
    1514RTEMS_CANONICAL_TARGET_CPU
    1615
     
    4039AC_PATH_PROG(CHMOD,chmod)
    4140AC_PATH_PROG(SORT,sort)
    42 AC_PROG_INSTALL
    4341RTEMS_PATH_PERL
    4442
  • c/src/make/custom/Makefile.am

    r8aefe83 rea562ee9  
    1212default.cfg
    1313
    14 if MAINTAINER_MODE
    15 $(srcdir)/default.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/custom/default.cfg
    16         sed -e 's%\$$(RTEMS_BSP)%\@RTEMS_BSP\@%g' \
    17         -e 's%\$$(RTEMS_ROOT)/\@RTEMS_BSP\@%$$(RTEMS_ROOT)%g' \
    18         < $< >$@
    19 endif
    20 
    2114include $(top_srcdir)/../../../automake/local.am
  • c/src/make/custom/Makefile.in

    r8aefe83 rea562ee9  
    261261
    262262
    263 @MAINTAINER_MODE_TRUE@$(srcdir)/default.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/custom/default.cfg
    264 @MAINTAINER_MODE_TRUE@  sed -e 's%\$$(RTEMS_BSP)%\@RTEMS_BSP\@%g' \
    265 @MAINTAINER_MODE_TRUE@  -e 's%\$$(RTEMS_ROOT)/\@RTEMS_BSP\@%$$(RTEMS_ROOT)%g' \
    266 @MAINTAINER_MODE_TRUE@  < $< >$@
    267 
    268263debug-am:
    269264debug: debug-am
  • c/src/make/custom/default.cfg.in

    r8aefe83 rea562ee9  
    3131endif
    3232
     33# OBSOLETE: Not used inside the source tree anymore
    3334# HOST Compiler config file
    3435# You may also want to specify where the compiler resides here.
    35 CONFIG.$(HOST_ARCH).CC   = $(PROJECT_ROOT)/make/compilers/gcc.cfg
     36# CONFIG.$(HOST_ARCH).CC         = $(PROJECT_ROOT)/make/compilers/gcc.cfg
    3637
    3738## Target compiler config file, if any
  • cpukit/score/cpu/unix/cpu.c

    r8aefe83 rea562ee9  
    992992    if ( is_master_node ) {
    993993      for ( i=0 ; i <= maximum_nodes ; i++ ) {
    994 #if defined(solaris2)
     994#if !HAS_UNION_SEMUN
    995995        union semun {
    996996          int val;
    997997          struct semid_ds *buf;
    998           ushort *array;
    999         } help;
    1000 
     998          unsigned short int *array;
     999#if defined(__linux__)
     1000          struct seminfo *__buf;
     1001#endif         
     1002        } ;
     1003#endif
     1004        union semun help ;
    10011005        help.val = 1;
    10021006        status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
    1003 #elif defined(__linux__) || defined(__FreeBSD__)
    1004         union semun help;
    1005 
    1006         help.val = 1;
    1007         status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
    1008 #elif defined(hpux)
    1009         status = semctl( _CPU_SHM_Semid, i, SETVAL, 1 );
    1010 #else
    1011 #error "Not a supported unix variant"
    1012 #endif
    10131007
    10141008        fix_syscall_errno(); /* in case of newlib */
  • make/custom/mcp750.cfg

    r8aefe83 rea562ee9  
    102102#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
    103103define make-exe
    104         $(CC) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS)
     104        $(CC) $(CPPFLAGS) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS)
    105105        $(NM) -g -n $(basename $@).exe > $(basename $@).num
    106106        $(SIZE) $(basename $@).exe
    107107        $(CP) $(basename $@).exe $(PROJECT_ROOT)/powerpc-rtems/c/mcp750/lib/libbsp/powerpc/mcp750/bootloader/$(ARCH); \
    108108        cd $(PROJECT_ROOT)/powerpc-rtems/c/mcp750/lib/libbsp/powerpc/mcp750/bootloader; \
    109         make bootloader BINARY_LOADED=$(basename $@).exe; \
     109        $(MAKE) bootloader BINARY_LOADED=$(basename $@).exe; \
    110110        COMPLETE_FILE_NAME=$(basename $@).exe ;\
    111111        echo $${COMPLETE_FILE_NAME} ;\
  • make/custom/posix.cfg

    r8aefe83 rea562ee9  
    55#
    66
    7 include $(RTEMS_ROOT)/make/target.cfg
     7# include $(RTEMS_ROOT)/make/target.cfg
    88include $(RTEMS_ROOT)/make/host.cfg
    99
Note: See TracChangeset for help on using the changeset viewer.