Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4218 in orxonox.OLD for orxonox/branches/movie_player/configure


Ignore:
Timestamp:
May 18, 2005, 1:31:59 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/movie_player: configure checks for libmpeg2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/movie_player/configure

    r4217 r4218  
    67156715      exit -1
    67166716   fi
     6717
     6718#-------#
     6719# mpeg2 #
     6720#-------#
     6721# checking for mpeg-headers
     6722#  AC_CHECK_HEADERS([mpeg2dec/mpeg2.h] ,,
     6723#      [AC_MSG_ERROR([cannot find mpeg2 header.])])
     6724# checking for mpeg2-library
     6725  echo "$as_me:$LINENO: checking for main in -lmpeg2" >&5
     6726echo $ECHO_N "checking for main in -lmpeg2... $ECHO_C" >&6
     6727if test "${ac_cv_lib_mpeg2_main+set}" = set; then
     6728  echo $ECHO_N "(cached) $ECHO_C" >&6
     6729else
     6730  ac_check_lib_save_LIBS=$LIBS
     6731LIBS="-lmpeg2  $LIBS"
     6732cat >conftest.$ac_ext <<_ACEOF
     6733/* confdefs.h.  */
     6734_ACEOF
     6735cat confdefs.h >>conftest.$ac_ext
     6736cat >>conftest.$ac_ext <<_ACEOF
     6737/* end confdefs.h.  */
     6738
     6739
     6740int
     6741main ()
     6742{
     6743main ();
     6744  ;
     6745  return 0;
     6746}
     6747_ACEOF
     6748rm -f conftest.$ac_objext conftest$ac_exeext
     6749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6750  (eval $ac_link) 2>conftest.er1
     6751  ac_status=$?
     6752  grep -v '^ *+' conftest.er1 >conftest.err
     6753  rm -f conftest.er1
     6754  cat conftest.err >&5
     6755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6756  (exit $ac_status); } &&
     6757         { ac_try='test -z "$ac_c_werror_flag"
     6758                         || test ! -s conftest.err'
     6759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6760  (eval $ac_try) 2>&5
     6761  ac_status=$?
     6762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6763  (exit $ac_status); }; } &&
     6764         { ac_try='test -s conftest$ac_exeext'
     6765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6766  (eval $ac_try) 2>&5
     6767  ac_status=$?
     6768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6769  (exit $ac_status); }; }; then
     6770  ac_cv_lib_mpeg2_main=yes
     6771else
     6772  echo "$as_me: failed program was:" >&5
     6773sed 's/^/| /' conftest.$ac_ext >&5
     6774
     6775ac_cv_lib_mpeg2_main=no
     6776fi
     6777rm -f conftest.err conftest.$ac_objext \
     6778      conftest$ac_exeext conftest.$ac_ext
     6779LIBS=$ac_check_lib_save_LIBS
     6780fi
     6781echo "$as_me:$LINENO: result: $ac_cv_lib_mpeg2_main" >&5
     6782echo "${ECHO_T}$ac_cv_lib_mpeg2_main" >&6
     6783if test $ac_cv_lib_mpeg2_main = yes; then
     6784  FOUND_mpeg2=yes
     6785fi
     6786
     6787     if test x$FOUND_mpeg2 = xyes ; then
     6788       LIBS="$LIBS -lmpeg2"
     6789     else
     6790        echo "------------------"
     6791        echo "mpeg2 library not found."
     6792        echo "please install the mpeg2 library, which can be found at http://libmpeg2.sourceforge.net/"
     6793        echo "------------------"
     6794        exit -1
     6795     fi
    67176796
    67186797#-----#
Note: See TracChangeset for help on using the changeset viewer.