Changeset 6da1bb0 in rtems for cpukit


Ignore:
Timestamp:
Oct 18, 2018, 12:58:31 PM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
dd804bb
Parents:
167654e
git-author:
Sebastian Huber <sebastian.huber@…> (10/18/18 12:58:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/22/18 06:06:06)
Message:

Remove superfluous configure checks

The results of these checks are unused, covered by other checks or check
obvious things.

Update #3409.

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    r167654e r6da1bb0  
    392392librtemscpu_a_SOURCES += libfs/src/devfs/devstat.c
    393393librtemscpu_a_SOURCES += libfs/src/devfs/devwrite.c
     394librtemscpu_a_SOURCES += libfs/src/dosfs/fat.c
     395librtemscpu_a_SOURCES += libfs/src/dosfs/fat_fat_operations.c
     396librtemscpu_a_SOURCES += libfs/src/dosfs/fat_file.c
     397librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_conv.c
     398librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_conv_default.c
     399librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_conv_utf8.c
     400librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_create.c
     401librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_dir.c
     402librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_eval.c
     403librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_file.c
     404librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_format.c
     405librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_free.c
     406librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_fsunmount.c
     407librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_handlers_dir.c
     408librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_handlers_file.c
     409librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_init.c
     410librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_initsupp.c
     411librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_misc.c
     412librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_mknod.c
     413librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_rename.c
     414librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_rmnod.c
     415librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_statvfs.c
    394416librtemscpu_a_SOURCES += libfs/src/imfs/deviceio.c
    395417librtemscpu_a_SOURCES += libfs/src/imfs/imfs_chown.c
     
    11201142endif
    11211143
    1122 if LIBDOSFS
    1123 
    1124 librtemscpu_a_SOURCES += libfs/src/dosfs/fat.c
    1125 librtemscpu_a_SOURCES += libfs/src/dosfs/fat_fat_operations.c
    1126 librtemscpu_a_SOURCES += libfs/src/dosfs/fat_file.c
    1127 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_conv.c
    1128 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_conv_default.c
    1129 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_conv_utf8.c
    1130 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_create.c
    1131 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_dir.c
    1132 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_eval.c
    1133 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_file.c
    1134 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_format.c
    1135 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_free.c
    1136 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_fsunmount.c
    1137 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_handlers_dir.c
    1138 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_handlers_file.c
    1139 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_init.c
    1140 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_initsupp.c
    1141 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_misc.c
    1142 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_mknod.c
    1143 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_rename.c
    1144 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_rmnod.c
    1145 librtemscpu_a_SOURCES += libfs/src/dosfs/msdos_statvfs.c
    1146 
    1147 endif
    1148 
    11491144if LIBDRVMGR
    11501145
  • cpukit/configure.ac

    r167654e r6da1bb0  
    5656RTEMS_CHECK_NEWLIB
    5757
    58 # BSD-isms, used throughout the sources
    59 # Not really used by this configure script
    60 # FIXME: They should be eliminated if possible.
    61 AC_CHECK_FUNCS([strcasecmp snprintf])
    62 AC_CHECK_FUNCS([strdup strndup strncasecmp])
    63 AC_CHECK_FUNCS([bcopy bcmp])
    64 AC_CHECK_FUNCS([isascii fileno])
    65 
    66 # <FIXME>
    67 #   Check for functions supplied by newlib >= 1.17.0
    68 # Newlib's posix/ directory
    69 AC_CHECK_FUNCS([creat \
    70   opendir closedir readdir rewinddir scandir seekdir \
    71   sleep \
    72   telldir \
    73   usleep],,
    74   [RTEMS_TOOL_CHAIN_ERROR])
    75 AC_CHECK_FUNCS([execl execlp execle execv execvp execve])
    76 AC_CHECK_FUNCS([regcomp regexec regerror regfree])
    77 
    7858# Newlib proprietary
    7959AC_CHECK_MEMBER([struct _Thread_queue_Queue._name],[],[RTEMS_TOOL_CHAIN_ERROR],[#include <sys/lock.h>])
    80 
    81 # Mandated by POSIX, older newlibs bogusly provided CLOCK_PROCESS_CPUTIME+CLOCK_THREAD_CPUTIME
    82 AC_CHECK_DECL([CLOCK_PROCESS_CPUTIME_ID],[],[RTEMS_TOOL_CHAIN_ERROR],[#include <time.h>])
    83 AC_CHECK_DECL([CLOCK_THREAD_CPUTIME_ID],[],[RTEMS_TOOL_CHAIN_ERROR],[#include <time.h>])
    84 
    85 # Mandated by POSIX, decls not present in some versions of newlib,
    86 # some versions stubbed in newlib's rtems crt0
    87 RTEMS_CHECK_FUNC([seteuid],[#include <unistd.h>])
    88 RTEMS_CHECK_FUNC([geteuid],[#include <unistd.h>])
    89 RTEMS_CHECK_FUNC([setegid],[#include <unistd.h>])
    90 RTEMS_CHECK_FUNC([getegid],[#include <unistd.h>])
    91 RTEMS_CHECK_FUNC([setuid],[#include <unistd.h>])
    92 RTEMS_CHECK_FUNC([getuid],[#include <unistd.h>])
    93 RTEMS_CHECK_FUNC([setgid],[#include <unistd.h>])
    94 RTEMS_CHECK_FUNC([getgid],[#include <unistd.h>])
    95 RTEMS_CHECK_FUNC([setsid],[#include <unistd.h>])
    96 RTEMS_CHECK_FUNC([getsid],[#include <unistd.h>])
    97 RTEMS_CHECK_FUNC([setpgid],[#include <unistd.h>])
    98 RTEMS_CHECK_FUNC([getpgid],[#include <unistd.h>])
    99 RTEMS_CHECK_FUNC([setpgrp],[#include <unistd.h>])
    100 RTEMS_CHECK_FUNC([getpgrp],[#include <unistd.h>])
    10160
    10261# pthread-functions not declared in some versions of newlib.
     
    156115AC_LANG_POP(C)
    157116
    158 # Check if the installed toolchain provides these headers
    159 # and error out if not.
    160 AC_CHECK_HEADERS([errno.h sched.h semaphore.h sys/cdefs.h sys/queue.h tar.h threads.h],,
    161   [RTEMS_TOOL_CHAIN_ERROR])
    162 
    163 ## error out if libc doesn't provide stdint.h
    164 AS_IF([test x"${ac_cv_header_stdint_h}" != xyes],
    165 [RTEMS_TOOL_CHAIN_ERROR])
    166 
    167 ## error out if libc doesn't provide inttypes.h
    168 AS_IF([test x"${ac_cv_header_inttypes_h}" != xyes],
    169 [RTEMS_TOOL_CHAIN_ERROR])
    170 
    171 AC_HEADER_STDBOOL
    172 AS_IF([test x"${ac_cv_header_stdbool_h}" != xyes],
    173 [RTEMS_TOOL_CHAIN_ERROR])
    174 
    175 AC_CHECK_TYPES([ uint8_t,  int8_t])
    176 AC_CHECK_TYPES([uint16_t, int16_t])
    177 AC_CHECK_TYPES([uint32_t, int32_t])
    178 AC_CHECK_TYPES([uint64_t, int64_t])
    179 AC_CHECK_TYPES([uintmax_t, intmax_t])
    180 AC_CHECK_TYPES([uintptr_t, intptr_t])
    181 
    182117# Some toolchain sanity checks and diagnostics
    183118RTEMS_CHECK_GCC_SANITY
     
    194129])
    195130
    196 AC_CHECK_HEADER([signal.h],[
    197   AC_CHECK_TYPES([sighandler_t])
    198 ])
    199 
    200 if test x"$RTEMS_USE_NEWLIB" = xyes ; then
    201   AC_CHECK_DECLS([__getreent],[],[RTEMS_TOOL_CHAIN_ERROR],[#include <sys/reent.h>])
    202 fi
    203 
    204131RTEMS_CHECK_MULTIPROCESSING
    205132RTEMS_CHECK_POSIX_API
     
    347274RTEMS_CHECK_GCC_WEAK
    348275
    349 # FIXME: These checks are only in here to provide
    350 # configuration-time diagnostics and are not really used.
    351 AC_CHECK_DECLS([_POSIX_LOGIN_NAME_MAX],,,[#include <limits.h>])
    352 AC_CHECK_DECLS([CHAR_BIT],,,[#include <limits.h>])
    353 
    354 # FIXME: Mandatory in SUSv4, optional in SUSv3.
    355 #   Not implemented in GCC/newlib, so far.
    356 AC_CHECK_DECLS([WORD_BIT],,,[#include <limits.h>])
    357 AC_CHECK_DECLS([LONG_BIT],,,[#include <limits.h>])
    358 
    359 ## BSD-ism, excluded from POSIX, but available on most platforms
    360 AC_CHECK_DECLS([sbrk],,,[#include <unistd.h>])
     276# Used by legacy network stack
    361277AC_CHECK_DECLS([rcmd],,,[#include <unistd.h>])
    362 
    363 ## Check if libc provides decl of utime
    364 ## FIXME: utime has been deprecated in SUSv4.
    365 ##        and is likely to be removed in future versions.
    366 ## FIXME (BUG in newlib): SUSv4 saids including <utime.h> should be sufficient.
    367 AC_CHECK_DECLS([utime],,,[#include <sys/types.h>
    368 #include <utime.h>])
    369 ## Check if libc provides decl of utimes
    370 AC_CHECK_DECLS([utimes],,,[#include <sys/time.h>])
    371278
    372279# Ensure that Newlib does not provide things now in <machine/_timecounter.h>
     
    388295
    389296AM_CONDITIONAL([LIBUTF8PROC],[test $ac_cv_sizeof_size_t -gt 2])
    390 
    391 AM_CONDITIONAL([LIBDOSFS],[dnl
    392 test x"$ac_cv_type_uint8_t" = xyes \
    393 && test x"$ac_cv_type_uint16_t" = xyes])
    394297
    395298AC_CONFIG_HEADER(config.h)
Note: See TracChangeset for help on using the changeset viewer.