Changeset 2726


Ignore:
Timestamp:
Dec 9, 2011, 12:28:45 PM (13 years ago)
Author:
gah
Message:
 
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r2724 r2726  
    609609TK_VERSION
    610610TK_XLIBSW
    611 TCL_SHLIB_LD
    612 TCL_SHLIB_CFLAGS
    613 TCL_SHLIB_LDFLAGS
    614 TCL_SHLIB_SUFFIX
    615611TK_LIB_SPEC
    616612TK_INC_SPEC
    617613TCL_VERSION
     614TCL_SHLIB_SUFFIX
     615TCL_SHLIB_LDFLAGS
     616TCL_SHLIB_LD
     617TCL_SHLIB_CFLAGS
     618TCL_CFLAGS_OPTIMIZE
     619TCL_CFLAGS_DEBUG
    618620TCL_LIB_SPEC
    619621TCL_INC_SPEC
     
    49124914fi
    49134915
     4916
     4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5
     4918$as_echo_n "checking for clrtoeol in -lncurses... " >&6; }
     4919if ${ac_cv_lib_ncurses_clrtoeol+:} false; then :
     4920  $as_echo_n "(cached) " >&6
     4921else
     4922  ac_check_lib_save_LIBS=$LIBS
     4923LIBS="-lncurses  $LIBS"
     4924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4925/* end confdefs.h.  */
     4926
     4927/* Override any GCC internal prototype to avoid an error.
     4928   Use char because int might match the return type of a GCC
     4929   builtin and then its argument prototype would still apply.  */
     4930#ifdef __cplusplus
     4931extern "C"
     4932#endif
     4933char clrtoeol ();
     4934int
     4935main ()
     4936{
     4937return clrtoeol ();
     4938  ;
     4939  return 0;
     4940}
     4941_ACEOF
     4942if ac_fn_cxx_try_link "$LINENO"; then :
     4943  ac_cv_lib_ncurses_clrtoeol=yes
     4944else
     4945  ac_cv_lib_ncurses_clrtoeol=no
     4946fi
     4947rm -f core conftest.err conftest.$ac_objext \
     4948    conftest$ac_exeext conftest.$ac_ext
     4949LIBS=$ac_check_lib_save_LIBS
     4950fi
     4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5
     4952$as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; }
     4953if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then :
     4954  cat >>confdefs.h <<_ACEOF
     4955#define HAVE_LIBNCURSES 1
     4956_ACEOF
     4957
     4958  LIBS="-lncurses $LIBS"
     4959
     4960else
     4961  as_fn_error $? "ncursers library missing?" "$LINENO" 5
     4962fi
     4963
     4964for ac_header in ncurses.h
     4965do :
     4966  ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
     4967if test "x$ac_cv_header_ncurses_h" = xyes; then :
     4968  cat >>confdefs.h <<_ACEOF
     4969#define HAVE_NCURSES_H 1
     4970_ACEOF
     4971
     4972else
     4973  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5
     4974$as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;}
     4975fi
     4976
     4977done
     4978
     4979
    49144980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
    49154981$as_echo_n "checking for main in -lstdc++... " >&6; }
     
    96889754
    96899755
    9690 
    96919756HAVE_FFMPEG_LIBS=""
    96929757if test "${with_ffmpeg}" != "no"; then
     
    98649929  LIBS="-lswscale $LIBS"
    98659930
    9866 else
    9867   as_fn_error $? "librappture requires libswscale" "$LINENO" 5
    98689931fi
    98699932
     
    1000410067fi
    1000510068
     10069  for ac_func in sws_getCachedContext
     10070do :
    1000610071  ac_fn_cxx_check_func "$LINENO" "sws_getCachedContext" "ac_cv_func_sws_getCachedContext"
    1000710072if test "x$ac_cv_func_sws_getCachedContext" = xyes; then :
    10008 
    10009 else
    10010   as_fn_error $? "oops! no sws_getCachedContext ?!?" "$LINENO" 5
    10011 fi
     10073  cat >>confdefs.h <<_ACEOF
     10074#define HAVE_SWS_GETCACHEDCONTEXT 1
     10075_ACEOF
     10076
     10077fi
     10078done
    1001210079
    1001310080  for ac_func in img_convert
     
    1008210149
    1008310150MAKE=${make_command}
     10151
     10152
     10153
     10154
     10155
     10156
     10157
    1008410158
    1008510159
  • trunk/configure.in

    r2724 r2726  
    6060
    6161AC_CHECK_LIB(m, main,,AC_MSG_ERROR(librappture requires libm))
     62
     63AC_CHECK_LIB(ncurses, clrtoeol,,AC_MSG_ERROR([ncursers library missing?]))
     64AC_CHECK_HEADERS(ncurses.h,,AC_MSG_WARN(ncurses headers missing ?))
     65
    6266AC_CHECK_LIB(stdc++, main,,AC_MSG_ERROR(librappture requires libstdc++))
    6367AC_CHECK_HEADERS(algorithm,,AC_MSG_WARN(STL classes missing ?))
     
    338342]])
    339343
    340 
    341344HAVE_FFMPEG_LIBS=""
    342345if test "${with_ffmpeg}" != "no"; then
     
    355358  AC_CHECK_LIB(avutil, main,,AC_MSG_ERROR(librappture requires libavutil))
    356359  AC_CHECK_LIB(avformat, main,,AC_MSG_ERROR(librappture requires libavformat))
    357   AC_CHECK_LIB(swscale, main,,AC_MSG_ERROR(librappture requires libswscale))
     360  AC_CHECK_LIB(swscale, main)
    358361  AC_CHECK_FUNCS(avcodec_decode_video2)
    359362  AC_CHECK_FUNCS(avcodec_decode_video)
     
    377380    AC_MSG_ERROR(oops! no avpicture_get_size ?!?))
    378381  AC_CHECK_FUNC(avpicture_fill,,AC_MSG_ERROR(oops! no avpicture_fill ?!?))
    379   AC_CHECK_FUNC(sws_getCachedContext,,
    380     AC_MSG_ERROR(oops! no sws_getCachedContext ?!?))
     382  AC_CHECK_FUNCS(sws_getCachedContext)
    381383  AC_CHECK_FUNCS(img_convert)
    382384  AC_CHECK_FUNCS(sws_scale)
     
    461463AC_SUBST(TCL_INC_SPEC)
    462464AC_SUBST(TCL_LIB_SPEC)
     465AC_SUBST(TCL_CFLAGS_DEBUG)
     466AC_SUBST(TCL_CFLAGS_OPTIMIZE)
     467AC_SUBST(TCL_SHLIB_CFLAGS)
     468AC_SUBST(TCL_SHLIB_LD)
     469AC_SUBST(TCL_SHLIB_LDFLAGS)
     470AC_SUBST(TCL_SHLIB_SUFFIX)
    463471AC_SUBST(TCL_VERSION)
    464472AC_SUBST(TCL_VERSION)
    465473AC_SUBST(TK_INC_SPEC)
    466474AC_SUBST(TK_LIB_SPEC)
     475AC_SUBST(TCL_CFLAGS_DEBUG)
     476AC_SUBST(TCL_SHLIB_CFLAGS)
    467477AC_SUBST(TCL_SHLIB_SUFFIX)
     478AC_SUBST(TCL_SHLIB_LD)
    468479AC_SUBST(TCL_SHLIB_LDFLAGS)
    469 AC_SUBST(TCL_SHLIB_CFLAGS)
    470 AC_SUBST(TCL_SHLIB_LD)
    471480AC_SUBST(TK_XLIBSW)
    472481AC_SUBST(TK_VERSION)
Note: See TracChangeset for help on using the changeset viewer.