Changeset 22a39c27afb0137cca9a81e44dfc9f56ce085274

Show
Ignore:
Timestamp:
27/12/02 15:16:13 (6 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1040998573 +0000
git-parent:

[535c75f66eabb582b9da47c85506b23b780e2dae]

git-author:
Sam Hocevar <sam@videolan.org> 1040998573 +0000
Message:
  • ./configure.ac.in: added a check for $EGREP at the beginning, so that
    it's not done in an obscure "if" statement.
  • ./configure.ac.in: added verbosity around all EGREP calls so that we
    know what's going on.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure.ac.in

    rd65301a r22a39c2  
    3333AC_PROG_MAKE_SET 
    3434AC_PROG_INSTALL 
     35AC_PROG_EGREP 
    3536 
    3637dnl AC_PROG_OBJC doesn't seem to exist, this is the KDE workaround 
     
    369370 
    370371dnl Check for misc headers 
     372AC_MSG_CHECKING(for pthread_cond_t in pthread.h) 
    371373AC_EGREP_HEADER(pthread_cond_t,pthread.h,[ 
     374  AC_MSG_RESULT(yes) 
    372375  AC_DEFINE(PTHREAD_COND_T_IN_PTHREAD_H, 1, 
    373             Define if <pthread.h> defines pthread_cond_t.)]) 
     376            Define if <pthread.h> defines pthread_cond_t.)],[ 
     377  AC_MSG_RESULT(no)]) 
     378 
     379AC_MSG_CHECKING(for pthread_once in pthread.h) 
    374380AC_EGREP_HEADER(pthread_once,pthread.h,[ 
     381  AC_MSG_RESULT(yes) 
    375382  AC_DEFINE(PTHREAD_ONCE_IN_PTHREAD_H, 1, 
    376             Define if <pthread.h> defines pthread_once.)]) 
     383            Define if <pthread.h> defines pthread_once.)],[ 
     384  AC_MSG_RESULT(no)]) 
     385 
     386AC_MSG_CHECKING(for strncasecmp in strings.h) 
    377387AC_EGREP_HEADER(strncasecmp,strings.h,[ 
     388  AC_MSG_RESULT(yes) 
    378389  AC_DEFINE(STRNCASECMP_IN_STRINGS_H, 1, 
    379             Define if <strings.h> defines strncasecmp.)]) 
     390            Define if <strings.h> defines strncasecmp.)],[ 
     391  AC_MSG_RESULT(no)]) 
    380392 
    381393dnl Check for headers 
     
    395407 
    396408dnl Mac OS X and other OSes don't have declaration for nanosleep 
     409AC_MSG_CHECKING(for nanosleep in time.h) 
    397410AC_EGREP_HEADER(nanosleep,time.h,[ 
     411  AC_MSG_RESULT(yes) 
    398412  AC_DEFINE(HAVE_DECL_NANOSLEEP, 1, 
    399413            Define if <time.h> defines nanosleep.) 
     414],[ 
     415  AC_MSG_RESULT(no) 
    400416]) 
    401417 
    402418dnl Make sure we have timespecs 
     419AC_MSG_CHECKING(for timespec in sys/time.h) 
    403420AC_EGREP_HEADER(timespec,sys/time.h,[ 
     421  AC_MSG_RESULT(yes) 
    404422  AC_DEFINE(HAVE_STRUCT_TIMESPEC, 1, 
    405423            Define if <sys/time.h> defines struct timespec.) 
     424],[ 
     425  AC_MSG_RESULT(no) 
    406426]) 
    407427 
     
    426446  CPPFLAGS="${CPPFLAGS_save} -I${x_includes}" 
    427447  AC_CHECK_HEADERS(X11/extensions/dpms.h, [ 
     448    AC_MSG_CHECKING(for DPMSInfo in X11/extensions/dpms.h) 
    428449    AC_EGREP_HEADER(DPMSInfo,X11/extensions/dpms.h,[ 
     450      AC_MSG_RESULT(yes) 
    429451      AC_DEFINE(DPMSINFO_IN_DPMS_H, 1, 
    430452                Define if <X11/extensions/dpms.h> defines DPMSInfo.) 
     453    ],[ 
     454      AC_MSG_RESULT(no) 
    431455    ]) 
    432456  ],,[ 
     
    11971221if test "x${enable_vcd}" != "xno" 
    11981222then 
     1223  AC_MSG_CHECKING(for cdrom_msf0 in linux/cdrom.h) 
    11991224  AC_EGREP_HEADER(cdrom_msf0,linux/cdrom.h,[ 
     1225    AC_MSG_RESULT(yes) 
    12001226    PLUGINS="${PLUGINS} vcd" 
     1227  ],[ 
     1228    AC_MSG_RESULT(no) 
    12011229  ]) 
    12021230 
     1231  AC_MSG_CHECKING(for scsireq in sys/scsiio.h) 
    12031232  AC_EGREP_HEADER(scsireq,sys/scsiio.h,[ 
     1233    AC_MSG_RESULT(yes) 
    12041234    PLUGINS="${PLUGINS} vcd" 
    12051235    AC_DEFINE(HAVE_SCSIREQ_IN_SYS_SCSIIO_H, 1, For NetBSD VCD support) 
     1236  ],[ 
     1237    AC_MSG_RESULT(no) 
    12061238  ]) 
    12071239 
     1240  AC_MSG_CHECKING(for ioc_toc_header in sys/cdio.h) 
    12081241  AC_EGREP_HEADER(ioc_toc_header ,sys/cdio.h,[ 
     1242    AC_MSG_RESULT(yes) 
    12091243    PLUGINS="${PLUGINS} vcd" 
    12101244    AC_DEFINE(HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H, 1, For FreeBSD VCD support) 
     1245  ],[ 
     1246    AC_MSG_RESULT(no) 
    12111247  ]) 
    12121248 
     
    25442580  [ if test "x${enable_pth}" = "xyes"; then 
    25452581    AC_CHECK_LIB(pth,pth_init) 
     2582    AC_MSG_CHECKING(for pth_init in pth.h) 
    25462583    AC_EGREP_HEADER(pth_init,pth.h,[ 
     2584      AC_MSG_RESULT(yes) 
    25472585      AC_DEFINE(PTH_INIT_IN_PTH_H, 1, 
    25482586                Define if <pth.h> defines pth_init) 
    2549     THREAD_LIB="-lpth" 
    2550     fi]) 
     2587      THREAD_LIB="-lpth" 
     2588    ],[ 
     2589      AC_MSG_RESULT(no) 
     2590    ]) 
     2591    fi 
    25512592]) 
    25522593 
     
    25582599  [ if test "x${enable_st}" = "xyes"; then 
    25592600    AC_CHECK_LIB(st,st_init) 
     2601    AC_MSG_CHECKING(for st_init in st.h) 
    25602602    AC_EGREP_HEADER(st_init,st.h,[ 
     2603      AC_MSG_RESULT(yes) 
    25612604      AC_DEFINE(ST_INIT_IN_ST_H, 1, 
    25622605                Define if <st.h> defines st_init) 
    2563     THREAD_LIB="-lst" 
    2564     fi]) 
     2606      THREAD_LIB="-lst" 
     2607    ],[ 
     2608      AC_MSG_RESULT(yes) 
     2609    ]) 
     2610    fi 
    25652611]) 
    25662612