Changeset 4561:66a152b2a57e in roaraudio for configure


Ignore:
Timestamp:
10/28/10 16:43:14 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

corrected checks for headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r4558 r4561  
    591591 while [ "$1" != '' ] 
    592592 do 
    593   echo "#include <$1>" >> $TF_C 
     593  _h="$1"; 
    594594  shift; 
     595  envname=`echo "$_h" | to_escaped` 
     596  eval "_t=\$libname_$envname" 
     597  if [ "$_t" = 'false' ] 
     598  then 
     599   echo "// not including <$_h> as it was tested as not present"  >> $TF_C 
     600  else 
     601   echo "#include <$_h>"  >> $TF_C 
     602  fi 
    595603 done 
    596604 
     
    634642 
    635643 envlib=`echo "$lib"   | cut -d/ -f1 | to_escaped` 
    636  envname=`echo "$name" | cut -d/ -f1 | to_escaped` 
     644 envname=`echo "$name" | to_escaped` 
    637645 
    638646 if [ "$lib" != '--' ] 
     
    846854 for _h in $HEADERS 
    847855 do 
    848   envname=`echo "$_h" | cut -d/ -f1 | to_escaped` 
     856  envname=`echo "$_h" | to_escaped` 
    849857  eval "_t=\$libname_$envname" 
    850858  if [ "$_t" = 'false' ] 
     
    12801288test_lib_defmake ROAR_HAVE_H_STDINT      %            stdint.h      c          -- stdint.h 
    12811289test_lib_defmake ROAR_HAVE_H_STRING      %            string.h      c          -- string.h 
    1282 test_lib_defmake ROAR_HAVE_H_SYS_SOCKET  %            sys/socket.h  c          -- sys/socket.h 
    12831290test_lib_defmake ROAR_HAVE_H_SYS_TYPES   %            sys/types.h   c          -- sys/types.h 
     1291test_lib_defmake ROAR_HAVE_H_SYS_SOCKET  %            sys/socket.h  c          -- sys/types.h sys/socket.h 
    12841292test_lib_defmake ROAR_HAVE_H_SYS_TIME    %            sys/time.h    c          -- sys/time.h 
    12851293test_lib_defmake ROAR_HAVE_H_SYS_IOCTL   %            sys/ioctl.h   c          -- sys/ioctl.h 
Note: See TracChangeset for help on using the changeset viewer.