Changeset 2996

Show
Ignore:
Timestamp:
12/04/99 11:31:42 (14 years ago)
Author:
ucacoxh
Message:

- Checks for gettimeofday and kill declarations.
- #include soundcard.h rather than sys/soundcard.h in auddev_oss since OSS

header may be installed in different dirs on different systems.

Location:
rat/trunk
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/Makefile.in

    r2994 r2996  
    3232# Nothing below here set by configure ######################################### 
    3333 
    34 AUDIO_OBJS   = $(AU_OBJ) auddev.o auddev_null.o audio_fmt.o audio_util.o auddev_trans.o 
     34AUDIO_OBJS   = $(AU_OBJ) auddev_null.o audio_fmt.o audio_util.o \ 
     35               auddev_trans.o auddev.o 
     36 
    3537CODEC_OBJS   = codec.o codec_state.o codec_dvi.o codec_gsm.o \ 
    3638               codec_l16.o codec_g711.o codec_g726.o codec_lpc.o \ 
     
    4244 
    4345SNDFILE_OBJS = sndfile.o sndfile_au.o sndfile_raw.o sndfile_wav.o 
     46 
    4447MEDIALIBS    = libuclaudio.a libuclcodec.a libuclsndfile.a  
    4548 
    4649CHANNEL_OBJS = channel.o channel_types.o cc_vanilla.o cc_rdncy.o cc_layered.o 
     50 
    4751TOY_OBJS     = render_3D.o repair.o  
     52 
    4853CORE_OBJS    = ts.o playout.o net.o source.o session.o \ 
    4954               mbus_engine.o audio.o cushion.o mix.o \ 
     
    5358 
    5459UI_OBJS      = tcltk.o mbus_ui.o main_ui.o 
     60 
    5561CTRL_OBJS    = main_control.o mbus_control.o 
     62 
    5663TCL_OBJS     = ui_audiotool.o ui_transcoder.o 
     64 
    5765TCL_SRCS     = $(TCL_OBJS:%.o=%.c) 
    5866 
    59 ALL_OBJS     = $(AUDIO_OBJS) $(CODEC_OBJS) $(SNDFILE_OBJS) $(CHANNEL_OBJS) $(TOY_OBJS)\ 
    60                $(CORE_OBJS) $(UI_OBJS) $(CTRL_OBJS) 
     67ALL_OBJS     = $(AUDIO_OBJS) $(CODEC_OBJS) $(SNDFILE_OBJS) $(CHANNEL_OBJS) \ 
     68               $(TOY_OBJS) $(CORE_OBJS) $(UI_OBJS) $(CTRL_OBJS) 
     69 
    6170ALL_SRCS     = $(ALL_OBJS:%.o=%.c) 
    6271 
  • rat/trunk/acconfig.h

    r2979 r2996  
    33 */ 
    44#undef NEED_USLEEP 
     5 
     6/*  
     7 * Missing declarations 
     8 */ 
     9#undef GETTOD_NOT_DECLARED 
     10#undef KILL_NOT_DECLARED 
    511 
    612/* 
  • rat/trunk/auddev.c

    r2991 r2996  
    1414#include "config_unix.h" 
    1515#include "config_win32.h" 
     16 
    1617#include "memory.h" 
    1718#include "debug.h" 
     
    1920#include "audio_fmt.h" 
    2021#include "auddev.h" 
    21  
    2222#include "auddev_null.h" 
    2323#include "auddev_luigi.h" 
     
    266266                luigi_audio_supports 
    267267        }, 
    268  
    269268#endif /* HAVE_LUIGI_AUDIO */ 
    270  
    271269#ifdef HAVE_PCA_AUDIO 
    272270        { 
     
    11331131        return TRUE; 
    11341132} 
    1135  
  • rat/trunk/auddev_oss.c

    r2995 r2996  
    2222#include "util.h" 
    2323 
    24 #include <sys/soundcard.h> 
     24#include <soundcard.h> 
    2525 
    2626enum { AUDIO_SPEAKER, AUDIO_HEADPHONE, AUDIO_LINE_OUT, AUDIO_MICROPHONE, AUDIO_LINE_IN, AUDIO_CD}; 
  • rat/trunk/config.h.in

    r2991 r2996  
    2626 */ 
    2727#undef NEED_USLEEP 
     28 
     29/*  
     30 * Missing declarations 
     31 */ 
     32#undef GETTOD_NOT_DECLARED 
     33#undef KILL_NOT_DECLARED 
    2834 
    2935/* 
  • rat/trunk/config_unix.h

    r2995 r2996  
    2323#include "config.h" 
    2424 
     25#include <stdlib.h> 
     26#include <unistd.h> 
     27#include <sys/types.h> 
     28#ifdef HAVE_INTTYPES_H 
     29#include <inttypes.h> 
     30#endif 
     31 
     32#ifdef HAVE_STDINT_H 
     33#include <stdint.h> 
     34#endif 
     35 
    2536#include <limits.h> 
    26 #include <sys/time.h> 
    27 #include <sys/resource.h> 
    28  
    2937#include <pwd.h> 
    3038#include <signal.h> 
     
    5967#endif 
    6068 
    61 #ifdef HAVE_INTTYPES_H 
    62 #include <inttypes.h> 
    63 #endif 
    64  
    65 #ifdef HAVE_STDINT_H 
    66 #include <stdint.h> 
    67 #endif 
    68  
     69#include <sys/time.h> 
     70#include <sys/resource.h> 
    6971#include <sys/types.h> 
    7072#include <sys/stat.h> 
     
    7274#include <sys/uio.h> 
    7375#include <netinet/in.h> 
    74 #include <sys/time.h> 
    7576#include <unistd.h> 
    7677#include <sys/param.h> 
     
    7980#include <netdb.h> 
    8081#include <arpa/inet.h> 
     82 
     83#ifdef GETTOD_NOT_DECLARED 
     84int gettimeofday(struct timeval *tp, void * ); 
     85#endif 
     86 
     87#ifdef KILL_NOT_DECLARED 
     88int kill(pid_t pid, int sig); 
     89#endif 
     90 
    8191extern int h_errno; 
    8292 
    83 #include <net/if.h> 
    84  
    8593typedef unsigned char   byte; 
    86  
    8794typedef char    ttl_t; 
    8895typedef int     fd_t; 
     
    119126#include <multimedia/audio_hdr.h> 
    120127 
    121 #ifdef __cplusplus 
    122 extern "C" { 
    123 #endif 
    124 int gettimeofday(struct timeval *tp, void * ); 
    125 #ifdef __cplusplus 
    126 } 
    127 #endif 
    128128#endif 
    129129 
  • rat/trunk/configure

    r2991 r2996  
    12861286 
    12871287 
    1288 echo $ac_n "checking kill in signal.h""... $ac_c" 1>&6 
    1289 echo "configure:1290: checking kill in signal.h" >&5 
     1288# Check for missing declarations 
     1289echo $ac_n "checking for kill declaration""... $ac_c" 1>&6 
     1290echo "configure:1291: checking for kill declaration" >&5 
    12901291cat > conftest.$ac_ext <<EOF 
    1291 #line 1292 "configure" 
     1292#line 1293 "configure" 
    12921293#include "confdefs.h" 
    12931294#include <signal.h> 
     
    12961297  egrep "kill" >/dev/null 2>&1; then 
    12971298  rm -rf conftest* 
    1298   echo "$ac_t""yes" 1>&6 
    1299 else 
    1300   rm -rf conftest* 
    1301   echo "$ac_t""no" 1>&6 
     1299  echo "$ac_t""present" 1>&6 
     1300else 
     1301  rm -rf conftest* 
     1302   
     1303        echo "$ac_t""missing" 1>&6 
     1304        cat >> confdefs.h <<\EOF 
     1305#define KILL_NOT_DECLARED 1 
     1306EOF 
     1307 
     1308 
     1309fi 
     1310rm -f conftest* 
     1311 
     1312echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6 
     1313echo "configure:1314: checking for gettimeofday declaration" >&5 
     1314cat > conftest.$ac_ext <<EOF 
     1315#line 1316 "configure" 
     1316#include "confdefs.h" 
     1317#include <sys/time.h> 
     1318EOF 
     1319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 
     1320  egrep "gettimeofday" >/dev/null 2>&1; then 
     1321  rm -rf conftest* 
     1322  echo "$ac_t""present" 1>&6 
     1323else 
     1324  rm -rf conftest* 
     1325   
     1326    echo "$ac_t""missing" 1>&6 
     1327    cat >> confdefs.h <<\EOF 
     1328#define GETTOD_NOT_DECLARED 1 
     1329EOF 
     1330 
    13021331 
    13031332fi 
     
    13081337 
    13091338echo $ac_n "checking for library containing socket""... $ac_c" 1>&6 
    1310 echo "configure:1311: checking for library containing socket" >&5 
     1339echo "configure:1340: checking for library containing socket" >&5 
    13111340if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then 
    13121341  echo $ac_n "(cached) $ac_c" 1>&6 
     
    13151344ac_cv_search_socket="no" 
    13161345cat > conftest.$ac_ext <<EOF 
    1317 #line 1318 "configure" 
     1346#line 1347 "configure" 
    13181347#include "confdefs.h" 
    13191348/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    13261355; return 0; } 
    13271356EOF 
    1328 if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1357if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    13291358  rm -rf conftest* 
    13301359  ac_cv_search_socket="none required" 
     
    13371366LIBS="-l$i  $ac_func_search_save_LIBS" 
    13381367cat > conftest.$ac_ext <<EOF 
    1339 #line 1340 "configure" 
     1368#line 1369 "configure" 
    13401369#include "confdefs.h" 
    13411370/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    13481377; return 0; } 
    13491378EOF 
    1350 if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1379if { (eval echo configure:1380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    13511380  rm -rf conftest* 
    13521381  ac_cv_search_socket="-l$i" 
     
    13701399 
    13711400echo $ac_n "checking for library containing inet_addr""... $ac_c" 1>&6 
    1372 echo "configure:1373: checking for library containing inet_addr" >&5 
     1401echo "configure:1402: checking for library containing inet_addr" >&5 
    13731402if eval "test \"`echo '$''{'ac_cv_search_inet_addr'+set}'`\" = set"; then 
    13741403  echo $ac_n "(cached) $ac_c" 1>&6 
     
    13771406ac_cv_search_inet_addr="no" 
    13781407cat > conftest.$ac_ext <<EOF 
    1379 #line 1380 "configure" 
     1408#line 1409 "configure" 
    13801409#include "confdefs.h" 
    13811410/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    13881417; return 0; } 
    13891418EOF 
    1390 if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1419if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    13911420  rm -rf conftest* 
    13921421  ac_cv_search_inet_addr="none required" 
     
    13991428LIBS="-l$i  $ac_func_search_save_LIBS" 
    14001429cat > conftest.$ac_ext <<EOF 
    1401 #line 1402 "configure" 
     1430#line 1431 "configure" 
    14021431#include "confdefs.h" 
    14031432/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    14101439; return 0; } 
    14111440EOF 
    1412 if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1441if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    14131442  rm -rf conftest* 
    14141443  ac_cv_search_inet_addr="-l$i" 
     
    14321461 
    14331462echo $ac_n "checking for sin""... $ac_c" 1>&6 
    1434 echo "configure:1435: checking for sin" >&5 
     1463echo "configure:1464: checking for sin" >&5 
    14351464if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then 
    14361465  echo $ac_n "(cached) $ac_c" 1>&6 
    14371466else 
    14381467  cat > conftest.$ac_ext <<EOF 
    1439 #line 1440 "configure" 
     1468#line 1469 "configure" 
    14401469#include "confdefs.h" 
    14411470/* System header to define __stub macros and hopefully few prototypes, 
     
    14601489; return 0; } 
    14611490EOF 
    1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1491if { (eval echo configure:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    14631492  rm -rf conftest* 
    14641493  eval "ac_cv_func_sin=yes" 
     
    14811510 
    14821511echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6 
    1483 echo "configure:1484: checking for main in -lieee" >&5 
     1512echo "configure:1513: checking for main in -lieee" >&5 
    14841513ac_lib_var=`echo ieee'_'main | sed 'y%./+-%__p_%'` 
    14851514if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    14891518LIBS="-lieee  $LIBS" 
    14901519cat > conftest.$ac_ext <<EOF 
    1491 #line 1492 "configure" 
     1520#line 1521 "configure" 
    14921521#include "confdefs.h" 
    14931522 
     
    14961525; return 0; } 
    14971526EOF 
    1498 if { (eval echo configure:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1527if { (eval echo configure:1528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    14991528  rm -rf conftest* 
    15001529  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    15221551 
    15231552echo $ac_n "checking for int8_t""... $ac_c" 1>&6 
    1524 echo "configure:1525: checking for int8_t" >&5 
     1553echo "configure:1554: checking for int8_t" >&5 
    15251554if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then 
    15261555  echo $ac_n "(cached) $ac_c" 1>&6 
    15271556else 
    15281557  cat > conftest.$ac_ext <<EOF 
    1529 #line 1530 "configure" 
     1558#line 1559 "configure" 
    15301559#include "confdefs.h" 
    15311560#include <sys/types.h> 
     
    15551584 
    15561585echo $ac_n "checking for int16_t""... $ac_c" 1>&6 
    1557 echo "configure:1558: checking for int16_t" >&5 
     1586echo "configure:1587: checking for int16_t" >&5 
    15581587if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then 
    15591588  echo $ac_n "(cached) $ac_c" 1>&6 
    15601589else 
    15611590  cat > conftest.$ac_ext <<EOF 
    1562 #line 1563 "configure" 
     1591#line 1592 "configure" 
    15631592#include "confdefs.h" 
    15641593#include <sys/types.h> 
     
    15881617 
    15891618echo $ac_n "checking for int32_t""... $ac_c" 1>&6 
    1590 echo "configure:1591: checking for int32_t" >&5 
     1619echo "configure:1620: checking for int32_t" >&5 
    15911620if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then 
    15921621  echo $ac_n "(cached) $ac_c" 1>&6 
    15931622else 
    15941623  cat > conftest.$ac_ext <<EOF 
    1595 #line 1596 "configure" 
     1624#line 1625 "configure" 
    15961625#include "confdefs.h" 
    15971626#include <sys/types.h> 
     
    16211650 
    16221651echo $ac_n "checking for int64_t""... $ac_c" 1>&6 
    1623 echo "configure:1624: checking for int64_t" >&5 
     1652echo "configure:1653: checking for int64_t" >&5 
    16241653if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then 
    16251654  echo $ac_n "(cached) $ac_c" 1>&6 
    16261655else 
    16271656  cat > conftest.$ac_ext <<EOF 
    1628 #line 1629 "configure" 
     1657#line 1658 "configure" 
    16291658#include "confdefs.h" 
    16301659#include <sys/types.h> 
     
    16561685# Some systems have these in <stdint.h>, just to be difficult... 
    16571686echo $ac_n "checking for uint8_t in <stdint.h>""... $ac_c" 1>&6 
    1658 echo "configure:1659: checking for uint8_t in <stdint.h>" >&5 
     1687echo "configure:1688: checking for uint8_t in <stdint.h>" >&5 
    16591688if eval "test \"`echo '$''{'ucl_cv_uint8_t_in_stdint_h'+set}'`\" = set"; then 
    16601689  echo $ac_n "(cached) $ac_c" 1>&6 
    16611690else 
    16621691  cat > conftest.$ac_ext <<EOF 
    1663 #line 1664 "configure" 
     1692#line 1693 "configure" 
    16641693#include "confdefs.h" 
    16651694#include <stdint.h> 
     
    16811710then 
    16821711         echo $ac_n "checking for uint8_t""... $ac_c" 1>&6 
    1683 echo "configure:1684: checking for uint8_t" >&5 
     1712echo "configure:1713: checking for uint8_t" >&5 
    16841713if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then 
    16851714  echo $ac_n "(cached) $ac_c" 1>&6 
    16861715else 
    16871716  cat > conftest.$ac_ext <<EOF 
    1688 #line 1689 "configure" 
     1717#line 1718 "configure" 
    16891718#include "confdefs.h" 
    16901719#include <sys/types.h> 
     
    17161745 
    17171746echo $ac_n "checking for uint16_t in <stdint.h>""... $ac_c" 1>&6 
    1718 echo "configure:1719: checking for uint16_t in <stdint.h>" >&5 
     1747echo "configure:1748: checking for uint16_t in <stdint.h>" >&5 
    17191748if eval "test \"`echo '$''{'ucl_cv_uint16_t_in_stdint_h'+set}'`\" = set"; then 
    17201749  echo $ac_n "(cached) $ac_c" 1>&6 
    17211750else 
    17221751  cat > conftest.$ac_ext <<EOF 
    1723 #line 1724 "configure" 
     1752#line 1753 "configure" 
    17241753#include "confdefs.h" 
    17251754#include <stdint.h> 
     
    17411770then 
    17421771         echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 
    1743 echo "configure:1744: checking for uint16_t" >&5 
     1772echo "configure:1773: checking for uint16_t" >&5 
    17441773if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then 
    17451774  echo $ac_n "(cached) $ac_c" 1>&6 
    17461775else 
    17471776  cat > conftest.$ac_ext <<EOF 
    1748 #line 1749 "configure" 
     1777#line 1778 "configure" 
    17491778#include "confdefs.h" 
    17501779#include <sys/types.h> 
     
    17761805 
    17771806echo $ac_n "checking for uint32_t in <stdint.h>""... $ac_c" 1>&6 
    1778 echo "configure:1779: checking for uint32_t in <stdint.h>" >&5 
     1807echo "configure:1808: checking for uint32_t in <stdint.h>" >&5 
    17791808if eval "test \"`echo '$''{'ucl_cv_uint32_t_in_stdint_h'+set}'`\" = set"; then 
    17801809  echo $ac_n "(cached) $ac_c" 1>&6 
    17811810else 
    17821811  cat > conftest.$ac_ext <<EOF 
    1783 #line 1784 "configure" 
     1812#line 1813 "configure" 
    17841813#include "confdefs.h" 
    17851814#include <stdint.h> 
     
    18011830then 
    18021831         echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 
    1803 echo "configure:1804: checking for uint32_t" >&5 
     1832echo "configure:1833: checking for uint32_t" >&5 
    18041833if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then 
    18051834  echo $ac_n "(cached) $ac_c" 1>&6 
    18061835else 
    18071836  cat > conftest.$ac_ext <<EOF 
    1808 #line 1809 "configure" 
     1837#line 1838 "configure" 
    18091838#include "confdefs.h" 
    18101839#include <sys/types.h> 
     
    18371866# The following two macros cause autoconf to complain. 
    18381867echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 
    1839 echo "configure:1840: checking whether byte ordering is bigendian" >&5 
     1868echo "configure:1869: checking whether byte ordering is bigendian" >&5 
    18401869if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 
    18411870  echo $ac_n "(cached) $ac_c" 1>&6 
     
    18441873# See if sys/param.h defines the BYTE_ORDER macro. 
    18451874cat > conftest.$ac_ext <<EOF 
    1846 #line 1847 "configure" 
     1875#line 1876 "configure" 
    18471876#include "confdefs.h" 
    18481877#include <sys/types.h> 
     
    18551884; return 0; } 
    18561885EOF 
    1857 if { (eval echo configure:1858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     1886if { (eval echo configure:1887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    18581887  rm -rf conftest* 
    18591888  # It does; now see whether it defined to BIG_ENDIAN or not. 
    18601889cat > conftest.$ac_ext <<EOF 
    1861 #line 1862 "configure" 
     1890#line 1891 "configure" 
    18621891#include "confdefs.h" 
    18631892#include <sys/types.h> 
     
    18701899; return 0; } 
    18711900EOF 
    1872 if { (eval echo configure:1873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     1901if { (eval echo configure:1902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    18731902  rm -rf conftest* 
    18741903  ac_cv_c_bigendian=yes 
     
    18901919else 
    18911920  cat > conftest.$ac_ext <<EOF 
    1892 #line 1893 "configure" 
     1921#line 1922 "configure" 
    18931922#include "confdefs.h" 
    18941923main () { 
     
    19031932} 
    19041933EOF 
    1905 if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
     1934if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
    19061935then 
    19071936  ac_cv_c_bigendian=no 
     
    19271956 
    19281957echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 
    1929 echo "configure:1930: checking whether char is unsigned" >&5 
     1958echo "configure:1959: checking whether char is unsigned" >&5 
    19301959if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then 
    19311960  echo $ac_n "(cached) $ac_c" 1>&6 
     
    19341963  # GCC predefines this symbol on systems where it applies. 
    19351964cat > conftest.$ac_ext <<EOF 
    1936 #line 1937 "configure" 
     1965#line 1966 "configure" 
    19371966#include "confdefs.h" 
    19381967#ifdef __CHAR_UNSIGNED__ 
     
    19561985else 
    19571986  cat > conftest.$ac_ext <<EOF 
    1958 #line 1959 "configure" 
     1987#line 1988 "configure" 
    19591988#include "confdefs.h" 
    19601989/* volatile prevents gcc2 from optimizing the test away on sparcs.  */ 
     
    19661995} 
    19671996EOF 
    1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
     1997if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
    19691998then 
    19701999  ac_cv_c_char_unsigned=yes 
     
    20142043EXTRA_OBJ= 
    20152044echo $ac_n "checking for usleep""... $ac_c" 1>&6 
    2016 echo "configure:2017: checking for usleep" >&5 
     2045echo "configure:2046: checking for usleep" >&5 
    20172046if eval "test \"`echo '$''{'ac_cv_func_usleep'+set}'`\" = set"; then 
    20182047  echo $ac_n "(cached) $ac_c" 1>&6 
    20192048else 
    20202049  cat > conftest.$ac_ext <<EOF 
    2021 #line 2022 "configure" 
     2050#line 2051 "configure" 
    20222051#include "confdefs.h" 
    20232052/* System header to define __stub macros and hopefully few prototypes, 
     
    20422071; return 0; } 
    20432072EOF 
    2044 if { (eval echo configure:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2073if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    20452074  rm -rf conftest* 
    20462075  eval "ac_cv_func_usleep=yes" 
     
    21012130        ac_safe=`echo "$O1KHOME/include/oti_audio_device.h" | sed 'y%./+-%__p_%'` 
    21022131echo $ac_n "checking for $O1KHOME/include/oti_audio_device.h""... $ac_c" 1>&6 
    2103 echo "configure:2104: checking for $O1KHOME/include/oti_audio_device.h" >&5 
     2132echo "configure:2133: checking for $O1KHOME/include/oti_audio_device.h" >&5 
    21042133if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    21052134  echo $ac_n "(cached) $ac_c" 1>&6 
    21062135else 
    21072136  cat > conftest.$ac_ext <<EOF 
    2108 #line 2109 "configure" 
     2137#line 2138 "configure" 
    21092138#include "confdefs.h" 
    21102139#include <$O1KHOME/include/oti_audio_device.h> 
    21112140EOF 
    21122141ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    2113 { (eval echo configure:2114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     2142{ (eval echo configure:2143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    21142143ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    21152144if test -z "$ac_err"; then 
     
    21512180ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    21522181echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    2153 echo "configure:2154: checking for $ac_hdr" >&5 
     2182echo "configure:2183: checking for $ac_hdr" >&5 
    21542183if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    21552184  echo $ac_n "(cached) $ac_c" 1>&6 
    21562185else 
    21572186  cat > conftest.$ac_ext <<EOF 
    2158 #line 2159 "configure" 
     2187#line 2188 "configure" 
    21592188#include "confdefs.h" 
    21602189#include <$ac_hdr> 
    21612190EOF 
    21622191ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    2163 { (eval echo configure:2164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     2192{ (eval echo configure:2193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    21642193ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    21652194if test -z "$ac_err"; then 
     
    22292258# --without-x overrides everything else, but does not touch the cache. 
    22302259echo $ac_n "checking for X""... $ac_c" 1>&6 
    2231 echo "configure:2232: checking for X" >&5 
     2260echo "configure:2261: checking for X" >&5 
    22322261 
    22332262# Check whether --with-x or --without-x was given. 
     
    22912320  # First, try using that file with no special directory specified. 
    22922321cat > conftest.$ac_ext <<EOF 
    2293 #line 2294 "configure" 
     2322#line 2323 "configure" 
    22942323#include "confdefs.h" 
    22952324#include <$x_direct_test_include> 
    22962325EOF 
    22972326ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    2298 { (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     2327{ (eval echo configure:2328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    22992328ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    23002329if test -z "$ac_err"; then 
     
    23652394  LIBS="-l$x_direct_test_library $LIBS" 
    23662395cat > conftest.$ac_ext <<EOF 
    2367 #line 2368 "configure" 
     2396#line 2397 "configure" 
    23682397#include "confdefs.h" 
    23692398 
     
    23722401; return 0; } 
    23732402EOF 
    2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2403if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    23752404  rm -rf conftest* 
    23762405  LIBS="$ac_save_LIBS" 
     
    24782507    "SunOS 5"*) 
    24792508      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 
    2480 echo "configure:2481: checking whether -R must be followed by a space" >&5 
     2509echo "configure:2510: checking whether -R must be followed by a space" >&5 
    24812510      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 
    24822511      cat > conftest.$ac_ext <<EOF 
    2483 #line 2484 "configure" 
     2512#line 2513 "configure" 
    24842513#include "confdefs.h" 
    24852514 
     
    24882517; return 0; } 
    24892518EOF 
    2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2519if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    24912520  rm -rf conftest* 
    24922521  ac_R_nospace=yes 
     
    25042533        LIBS="$ac_xsave_LIBS -R $x_libraries" 
    25052534        cat > conftest.$ac_ext <<EOF 
    2506 #line 2507 "configure" 
     2535#line 2536 "configure" 
    25072536#include "confdefs.h" 
    25082537 
     
    25112540; return 0; } 
    25122541EOF 
    2513 if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2542if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    25142543  rm -rf conftest* 
    25152544  ac_R_space=yes 
     
    25432572    # the Alpha needs dnet_stub (dnet does not exist). 
    25442573    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 
    2545 echo "configure:2546: checking for dnet_ntoa in -ldnet" >&5 
     2574echo "configure:2575: checking for dnet_ntoa in -ldnet" >&5 
    25462575ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 
    25472576if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    25512580LIBS="-ldnet  $LIBS" 
    25522581cat > conftest.$ac_ext <<EOF 
    2553 #line 2554 "configure" 
     2582#line 2583 "configure" 
    25542583#include "confdefs.h" 
    25552584/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    25622591; return 0; } 
    25632592EOF 
    2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2593if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    25652594  rm -rf conftest* 
    25662595  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    25842613    if test $ac_cv_lib_dnet_dnet_ntoa = no; then 
    25852614      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 
    2586 echo "configure:2587: checking for dnet_ntoa in -ldnet_stub" >&5 
     2615echo "configure:2616: checking for dnet_ntoa in -ldnet_stub" >&5 
    25872616ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 
    25882617if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    25922621LIBS="-ldnet_stub  $LIBS" 
    25932622cat > conftest.$ac_ext <<EOF 
    2594 #line 2595 "configure" 
     2623#line 2624 "configure" 
    25952624#include "confdefs.h" 
    25962625/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    26032632; return 0; } 
    26042633EOF 
    2605 if { (eval echo configure:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2634if { (eval echo configure:2635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    26062635  rm -rf conftest* 
    26072636  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    26322661    # on Irix 5.2, according to dickey@clark.net. 
    26332662    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 
    2634 echo "configure:2635: checking for gethostbyname" >&5 
     2663echo "configure:2664: checking for gethostbyname" >&5 
    26352664if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 
    26362665  echo $ac_n "(cached) $ac_c" 1>&6 
    26372666else 
    26382667  cat > conftest.$ac_ext <<EOF 
    2639 #line 2640 "configure" 
     2668#line 2669 "configure" 
    26402669#include "confdefs.h" 
    26412670/* System header to define __stub macros and hopefully few prototypes, 
     
    26602689; return 0; } 
    26612690EOF 
    2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2691if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    26632692  rm -rf conftest* 
    26642693  eval "ac_cv_func_gethostbyname=yes" 
     
    26812710    if test $ac_cv_func_gethostbyname = no; then 
    26822711      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 
    2683 echo "configure:2684: checking for gethostbyname in -lnsl" >&5 
     2712echo "configure:2713: checking for gethostbyname in -lnsl" >&5 
    26842713ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 
    26852714if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    26892718LIBS="-lnsl  $LIBS" 
    26902719cat > conftest.$ac_ext <<EOF 
    2691 #line 2692 "configure" 
     2720#line 2721 "configure" 
    26922721#include "confdefs.h" 
    26932722/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    27002729; return 0; } 
    27012730EOF 
    2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2731if { (eval echo configure:2732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    27032732  rm -rf conftest* 
    27042733  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    27302759    # We assume that if connect needs -lnsl, so does gethostbyname. 
    27312760    echo $ac_n "checking for connect""... $ac_c" 1>&6 
    2732 echo "configure:2733: checking for connect" >&5 
     2761echo "configure:2762: checking for connect" >&5 
    27332762if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 
    27342763  echo $ac_n "(cached) $ac_c" 1>&6 
    27352764else 
    27362765  cat > conftest.$ac_ext <<EOF 
    2737 #line 2738 "configure" 
     2766#line 2767 "configure" 
    27382767#include "confdefs.h" 
    27392768/* System header to define __stub macros and hopefully few prototypes, 
     
    27582787; return 0; } 
    27592788EOF 
    2760 if { (eval echo configure:2761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2789if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    27612790  rm -rf conftest* 
    27622791  eval "ac_cv_func_connect=yes" 
     
    27792808    if test $ac_cv_func_connect = no; then 
    27802809      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 
    2781 echo "configure:2782: checking for connect in -lsocket" >&5 
     2810echo "configure:2811: checking for connect in -lsocket" >&5 
    27822811ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 
    27832812if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    27872816LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 
    27882817cat > conftest.$ac_ext <<EOF 
    2789 #line 2790 "configure" 
     2818#line 2819 "configure" 
    27902819#include "confdefs.h" 
    27912820/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    27982827; return 0; } 
    27992828EOF 
    2800 if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2829if { (eval echo configure:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    28012830  rm -rf conftest* 
    28022831  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    28222851    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 
    28232852    echo $ac_n "checking for remove""... $ac_c" 1>&6 
    2824 echo "configure:2825: checking for remove" >&5 
     2853echo "configure:2854: checking for remove" >&5 
    28252854if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 
    28262855  echo $ac_n "(cached) $ac_c" 1>&6 
    28272856else 
    28282857  cat > conftest.$ac_ext <<EOF 
    2829 #line 2830 "configure" 
     2858#line 2859 "configure" 
    28302859#include "confdefs.h" 
    28312860/* System header to define __stub macros and hopefully few prototypes, 
     
    28502879; return 0; } 
    28512880EOF 
    2852 if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2881if { (eval echo configure:2882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    28532882  rm -rf conftest* 
    28542883  eval "ac_cv_func_remove=yes" 
     
    28712900    if test $ac_cv_func_remove = no; then 
    28722901      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 
    2873 echo "configure:2874: checking for remove in -lposix" >&5 
     2902echo "configure:2903: checking for remove in -lposix" >&5 
    28742903ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 
    28752904if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    28792908LIBS="-lposix  $LIBS" 
    28802909cat > conftest.$ac_ext <<EOF 
    2881 #line 2882 "configure" 
     2910#line 2911 "configure" 
    28822911#include "confdefs.h" 
    28832912/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    28902919; return 0; } 
    28912920EOF 
    2892 if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2921if { (eval echo configure:2922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    28932922  rm -rf conftest* 
    28942923  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    29142943    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 
    29152944    echo $ac_n "checking for shmat""... $ac_c" 1>&6 
    2916 echo "configure:2917: checking for shmat" >&5 
     2945echo "configure:2946: checking for shmat" >&5 
    29172946if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 
    29182947  echo $ac_n "(cached) $ac_c" 1>&6 
    29192948else 
    29202949  cat > conftest.$ac_ext <<EOF 
    2921 #line 2922 "configure" 
     2950#line 2951 "configure" 
    29222951#include "confdefs.h" 
    29232952/* System header to define __stub macros and hopefully few prototypes, 
     
    29422971; return 0; } 
    29432972EOF 
    2944 if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2973if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    29452974  rm -rf conftest* 
    29462975  eval "ac_cv_func_shmat=yes" 
     
    29632992    if test $ac_cv_func_shmat = no; then 
    29642993      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 
    2965 echo "configure:2966: checking for shmat in -lipc" >&5 
     2994echo "configure:2995: checking for shmat in -lipc" >&5 
    29662995ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 
    29672996if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    29713000LIBS="-lipc  $LIBS" 
    29723001cat > conftest.$ac_ext <<EOF 
    2973 #line 2974 "configure" 
     3002#line 3003 "configure" 
    29743003#include "confdefs.h" 
    29753004/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    29823011; return 0; } 
    29833012EOF 
    2984 if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3013if { (eval echo configure:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    29853014  rm -rf conftest* 
    29863015  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    30153044  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 
    30163045  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 
    3017 echo "configure:3018: checking for IceConnectionNumber in -lICE" >&5 
     3046echo "configure:3047: checking for IceConnectionNumber in -lICE" >&5 
    30183047ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 
    30193048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    30233052LIBS="-lICE $X_EXTRA_LIBS $LIBS" 
    30243053cat > conftest.$ac_ext <<EOF 
    3025 #line 3026 "configure" 
     3054#line 3055 "configure" 
    30263055#include "confdefs.h" 
    30273056/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    30343063; return 0; } 
    30353064EOF 
    3036 if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3065if { (eval echo configure:3066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    30373066  rm -rf conftest* 
    30383067  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    30893118ac_safe=`echo "${TCL_INC}/tcl.h" | sed 'y%./+-%__p_%'` 
    30903119echo $ac_n "checking for ${TCL_INC}/tcl.h""... $ac_c" 1>&6 
    3091 echo "configure:3092: checking for ${TCL_INC}/tcl.h" >&5 
     3120echo "configure:3121: checking for ${TCL_INC}/tcl.h" >&5 
    30923121if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    30933122  echo $ac_n "(cached) $ac_c" 1>&6 
    30943123else 
    30953124  cat > conftest.$ac_ext <<EOF 
    3096 #line 3097 "configure" 
     3125#line 3126 "configure" 
    30973126#include "confdefs.h" 
    30983127#include <${TCL_INC}/tcl.h> 
    30993128EOF 
    31003129ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    3101 { (eval echo configure:3102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     3130{ (eval echo configure:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    31023131ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    31033132if test -z "$ac_err"; then 
     
    31163145  echo "$ac_t""yes" 1>&6 
    31173146  TCL_INC=-I${TCL_INC} 
    3118          break 
    31193147else 
    31203148  echo "$ac_t""no" 1>&6 
     
    31463174 
    31473175echo $ac_n "checking for library containing Tcl_Init""... $ac_c" 1>&6 
    3148 echo "configure:3149: checking for library containing Tcl_Init" >&5 
     3176echo "configure:3177: checking for library containing Tcl_Init" >&5 
    31493177if eval "test \"`echo '$''{'ac_cv_search_Tcl_Init'+set}'`\" = set"; then 
    31503178  echo $ac_n "(cached) $ac_c" 1>&6 
     
    31533181ac_cv_search_Tcl_Init="no" 
    31543182cat > conftest.$ac_ext <<EOF 
    3155 #line 3156 "configure" 
     3183#line 3184 "configure" 
    31563184#include "confdefs.h" 
    31573185/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    31643192; return 0; } 
    31653193EOF 
    3166 if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3194if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    31673195  rm -rf conftest* 
    31683196  ac_cv_search_Tcl_Init="none required" 
     
    31733201rm -f conftest* 
    31743202test "$ac_cv_search_Tcl_Init" = "no" && for i in tcl8.0 tcl80; do 
    3175 LIBS="-l$i -L${TCL_LIB} -lm $ac_func_search_save_LIBS" 
     3203LIBS="-l$i -L${TCL_LIB} ${SAVED_LIBS} -lm $ac_func_search_save_LIBS" 
    31763204cat > conftest.$ac_ext <<EOF 
    3177 #line 3178 "configure" 
     3205#line 3206 "configure" 
    31783206#include "confdefs.h" 
    31793207/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    31863214; return 0; } 
    31873215EOF 
    3188 if { (eval echo configure:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3216if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    31893217  rm -rf conftest* 
    31903218  ac_cv_search_Tcl_Init="-l$i" 
     
    32363264do 
    32373265        echo $ac_n "checking for $i/tk.h""... $ac_c" 1>&6 
    3238 echo "configure:3239: checking for $i/tk.h" >&5 
     3266echo "configure:3267: checking for $i/tk.h" >&5 
    32393267        if test -r $i/tk.h ; then 
    32403268                TK_INC=-I$i 
     
    32683296 
    32693297echo $ac_n "checking for library containing Tk_Init""... $ac_c" 1>&6 
    3270 echo "configure:3271: checking for library containing Tk_Init" >&5 
     3298echo "configure:3299: checking for library containing Tk_Init" >&5 
    32713299if eval "test \"`echo '$''{'ac_cv_search_Tk_Init'+set}'`\" = set"; then 
    32723300  echo $ac_n "(cached) $ac_c" 1>&6 
     
    32753303ac_cv_search_Tk_Init="no" 
    32763304cat > conftest.$ac_ext <<EOF 
    3277 #line 3278 "configure" 
     3305#line 3306 "configure" 
    32783306#include "confdefs.h" 
    32793307/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    32863314; return 0; } 
    32873315EOF 
    3288 if { (eval echo configure:3289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3316if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    32893317  rm -rf conftest* 
    32903318  ac_cv_search_Tk_Init="none required" 
     
    32953323rm -f conftest* 
    32963324test "$ac_cv_search_Tk_Init" = "no" && for i in tk8.0 tk80; do 
    3297 LIBS="-l$i -L${TK_LIB} ${TCL_LIB} $X_LIBS $X_PRE_LIBS  -lXext -lX11 $X_EXTRA_LIBS -lm $ac_func_search_save_LIBS" 
     3325LIBS="-l$i -L${TK_LIB} ${TCL_LIB} $X_LIBS $X_PRE_LIBS  -lXext -lX11 $X_EXTRA_LIBS ${SAVED_LIBS} -lm $ac_func_search_save_LIBS" 
    32983326cat > conftest.$ac_ext <<EOF 
    3299 #line 3300 "configure" 
     3327#line 3328 "configure" 
    33003328#include "confdefs.h" 
    33013329/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    33083336; return 0; } 
    33093337EOF 
    3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3338if { (eval echo configure:3339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    33113339  rm -rf conftest* 
    33123340  ac_cv_search_Tk_Init="-l$i" 
     
    33633391ac_safe=`echo "$h/mbus.h" | sed 'y%./+-%__p_%'` 
    33643392echo $ac_n "checking for $h/mbus.h""... $ac_c" 1>&6 
    3365 echo "configure:3366: checking for $h/mbus.h" >&5 
     3393echo "configure:3394: checking for $h/mbus.h" >&5 
    33663394if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    33673395  echo $ac_n "(cached) $ac_c" 1>&6 
    33683396else 
    33693397  cat > conftest.$ac_ext <<EOF 
    3370 #line 3371 "configure" 
     3398#line 3399 "configure" 
    33713399#include "confdefs.h" 
    33723400#include <$h/mbus.h> 
    33733401EOF 
    33743402ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    3375 { (eval echo configure:3376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     3403{ (eval echo configure:3404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    33763404ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    33773405if test -z "$ac_err"; then 
     
    34163444 
    34173445echo $ac_n "checking for mbus_init in -lcommon""... $ac_c" 1>&6 
    3418 echo "configure:3419: checking for mbus_init in -lcommon" >&5 
     3446echo "configure:3447: checking for mbus_init in -lcommon" >&5 
    34193447ac_lib_var=`echo common'_'mbus_init | sed 'y%./+-%__p_%'` 
    34203448if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    34243452LIBS="-lcommon -L${COMMON_LIB} $LIBS" 
    34253453cat > conftest.$ac_ext <<EOF 
    3426 #line 3427 "configure" 
     3454#line 3455 "configure" 
    34273455#include "confdefs.h" 
    34283456/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    34353463; return 0; } 
    34363464EOF 
    3437 if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3465if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    34383466  rm -rf conftest* 
    34393467  eval "ac_cv_lib_$ac_lib_var=yes" 
  • rat/trunk/configure.in

    r2993 r2996  
    2626AC_CHECK_HEADERS(sys/sockio.h) 
    2727 
    28 AC_MSG_CHECKING(kill in signal.h) 
     28# Check for missing declarations 
     29AC_MSG_CHECKING([for kill declaration]) 
    2930AC_EGREP_CPP(kill, [#include <signal.h>], 
    30         AC_MSG_RESULT(yes), 
    31         AC_MSG_RESULT(no) 
    32 ) 
     31        AC_MSG_RESULT(present), [ 
     32        AC_MSG_RESULT(missing) 
     33        AC_DEFINE(KILL_NOT_DECLARED) 
     34]) 
     35AC_MSG_CHECKING([for gettimeofday declaration]) 
     36AC_EGREP_HEADER(gettimeofday, sys/time.h, AC_MSG_RESULT(present), [ 
     37    AC_MSG_RESULT(missing) 
     38    AC_DEFINE(GETTOD_NOT_DECLARED) 
     39]) 
    3340 
    3441# Check for libraries                                                        
     
    136143*linux*) 
    137144        AU_OBJ="$AU_OBJ auddev_oss.o" 
     145        AU_INC="/usr/include/sys" 
    138146        AC_DEFINE(HAVE_OSS_AUDIO) 
    139147        ;; 
     
    194202 
    195203AC_CHECK_HEADER(${TCL_INC}/tcl.h, 
    196         [TCL_INC=-I${TCL_INC} 
    197          break], 
     204        TCL_INC=-I${TCL_INC}, 
    198205        TCL_INC=no) 
    199206