Ignore:
Timestamp:
Dec 27, 2011 12:41:24 PM (11 years ago)
Author:
gah
Message:

sync with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/packages/vizservers/configure

    r2681 r2742  
    85298529  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    85308530ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    8531 #define SIZEOF_LONG ${ac_cv_sizeof_long}
    8532 #if SIZEOF_LONG == 8
    8533 #  define INT64_C(c)  c ## L
    8534 #  define UINT64_C(c) c ## UL
    8535 #else
    8536 #  define INT64_C(c)  c ## LL
    8537 #  define UINT64_C(c) c ## ULL
    8538 #endif
     8531#define __STDC_CONSTANT_MACROS 1
    85398532
    85408533"
     
    85498542
    85508543CPPFLAGS=$save_CPPFLAGS
     8544
     8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&5
     8546$as_echo_n "checking for main in -lavcodec... " >&6; }
     8547if ${ac_cv_lib_avcodec_main+:} false; then :
     8548  $as_echo_n "(cached) " >&6
     8549else
     8550  ac_check_lib_save_LIBS=$LIBS
     8551LIBS="-lavcodec  $LIBS"
     8552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8553/* end confdefs.h.  */
     8554
     8555
     8556int
     8557main ()
     8558{
     8559return main ();
     8560  ;
     8561  return 0;
     8562}
     8563_ACEOF
     8564if ac_fn_cxx_try_link "$LINENO"; then :
     8565  ac_cv_lib_avcodec_main=yes
     8566else
     8567  ac_cv_lib_avcodec_main=no
     8568fi
     8569rm -f core conftest.err conftest.$ac_objext \
     8570    conftest$ac_exeext conftest.$ac_ext
     8571LIBS=$ac_check_lib_save_LIBS
     8572fi
     8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&5
     8574$as_echo "$ac_cv_lib_avcodec_main" >&6; }
     8575if test "x$ac_cv_lib_avcodec_main" = xyes; then :
     8576  cat >>confdefs.h <<_ACEOF
     8577#define HAVE_LIBAVCODEC 1
     8578_ACEOF
     8579
     8580  LIBS="-lavcodec $LIBS"
     8581
     8582else
     8583  as_fn_error $? "requires libavcodec" "$LINENO" 5
     8584fi
     8585
     8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&5
     8587$as_echo_n "checking for main in -lavutil... " >&6; }
     8588if ${ac_cv_lib_avutil_main+:} false; then :
     8589  $as_echo_n "(cached) " >&6
     8590else
     8591  ac_check_lib_save_LIBS=$LIBS
     8592LIBS="-lavutil  $LIBS"
     8593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8594/* end confdefs.h.  */
     8595
     8596
     8597int
     8598main ()
     8599{
     8600return main ();
     8601  ;
     8602  return 0;
     8603}
     8604_ACEOF
     8605if ac_fn_cxx_try_link "$LINENO"; then :
     8606  ac_cv_lib_avutil_main=yes
     8607else
     8608  ac_cv_lib_avutil_main=no
     8609fi
     8610rm -f core conftest.err conftest.$ac_objext \
     8611    conftest$ac_exeext conftest.$ac_ext
     8612LIBS=$ac_check_lib_save_LIBS
     8613fi
     8614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&5
     8615$as_echo "$ac_cv_lib_avutil_main" >&6; }
     8616if test "x$ac_cv_lib_avutil_main" = xyes; then :
     8617  cat >>confdefs.h <<_ACEOF
     8618#define HAVE_LIBAVUTIL 1
     8619_ACEOF
     8620
     8621  LIBS="-lavutil $LIBS"
     8622
     8623else
     8624  as_fn_error $? "requires libavutil" "$LINENO" 5
     8625fi
     8626
     8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5
     8628$as_echo_n "checking for main in -lavformat... " >&6; }
     8629if ${ac_cv_lib_avformat_main+:} false; then :
     8630  $as_echo_n "(cached) " >&6
     8631else
     8632  ac_check_lib_save_LIBS=$LIBS
     8633LIBS="-lavformat  $LIBS"
     8634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8635/* end confdefs.h.  */
     8636
     8637
     8638int
     8639main ()
     8640{
     8641return main ();
     8642  ;
     8643  return 0;
     8644}
     8645_ACEOF
     8646if ac_fn_cxx_try_link "$LINENO"; then :
     8647  ac_cv_lib_avformat_main=yes
     8648else
     8649  ac_cv_lib_avformat_main=no
     8650fi
     8651rm -f core conftest.err conftest.$ac_objext \
     8652    conftest$ac_exeext conftest.$ac_ext
     8653LIBS=$ac_check_lib_save_LIBS
     8654fi
     8655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5
     8656$as_echo "$ac_cv_lib_avformat_main" >&6; }
     8657if test "x$ac_cv_lib_avformat_main" = xyes; then :
     8658  cat >>confdefs.h <<_ACEOF
     8659#define HAVE_LIBAVFORMAT 1
     8660_ACEOF
     8661
     8662  LIBS="-lavformat $LIBS"
     8663
     8664else
     8665  as_fn_error $? "requires libavformat" "$LINENO" 5
     8666fi
     8667
     8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5
     8669$as_echo_n "checking for main in -lswscale... " >&6; }
     8670if ${ac_cv_lib_swscale_main+:} false; then :
     8671  $as_echo_n "(cached) " >&6
     8672else
     8673  ac_check_lib_save_LIBS=$LIBS
     8674LIBS="-lswscale  $LIBS"
     8675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8676/* end confdefs.h.  */
     8677
     8678
     8679int
     8680main ()
     8681{
     8682return main ();
     8683  ;
     8684  return 0;
     8685}
     8686_ACEOF
     8687if ac_fn_cxx_try_link "$LINENO"; then :
     8688  ac_cv_lib_swscale_main=yes
     8689else
     8690  ac_cv_lib_swscale_main=no
     8691fi
     8692rm -f core conftest.err conftest.$ac_objext \
     8693    conftest$ac_exeext conftest.$ac_ext
     8694LIBS=$ac_check_lib_save_LIBS
     8695fi
     8696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5
     8697$as_echo "$ac_cv_lib_swscale_main" >&6; }
     8698if test "x$ac_cv_lib_swscale_main" = xyes; then :
     8699  cat >>confdefs.h <<_ACEOF
     8700#define HAVE_LIBSWSCALE 1
     8701_ACEOF
     8702
     8703  LIBS="-lswscale $LIBS"
     8704
     8705fi
     8706
     8707for ac_func in avcodec_decode_video2
     8708do :
     8709  ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video2" "ac_cv_func_avcodec_decode_video2"
     8710if test "x$ac_cv_func_avcodec_decode_video2" = xyes; then :
     8711  cat >>confdefs.h <<_ACEOF
     8712#define HAVE_AVCODEC_DECODE_VIDEO2 1
     8713_ACEOF
     8714
     8715fi
     8716done
     8717
     8718for ac_func in avcodec_decode_video
     8719do :
     8720  ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video" "ac_cv_func_avcodec_decode_video"
     8721if test "x$ac_cv_func_avcodec_decode_video" = xyes; then :
     8722  cat >>confdefs.h <<_ACEOF
     8723#define HAVE_AVCODEC_DECODE_VIDEO 1
     8724_ACEOF
     8725
     8726fi
     8727done
     8728
     8729for ac_func in avformat_open_input
     8730do :
     8731  ac_fn_cxx_check_func "$LINENO" "avformat_open_input" "ac_cv_func_avformat_open_input"
     8732if test "x$ac_cv_func_avformat_open_input" = xyes; then :
     8733  cat >>confdefs.h <<_ACEOF
     8734#define HAVE_AVFORMAT_OPEN_INPUT 1
     8735_ACEOF
     8736
     8737fi
     8738done
     8739
     8740for ac_func in av_open_input_file
     8741do :
     8742  ac_fn_cxx_check_func "$LINENO" "av_open_input_file" "ac_cv_func_av_open_input_file"
     8743if test "x$ac_cv_func_av_open_input_file" = xyes; then :
     8744  cat >>confdefs.h <<_ACEOF
     8745#define HAVE_AV_OPEN_INPUT_FILE 1
     8746_ACEOF
     8747
     8748fi
     8749done
     8750
     8751for ac_func in av_guess_format
     8752do :
     8753  ac_fn_cxx_check_func "$LINENO" "av_guess_format" "ac_cv_func_av_guess_format"
     8754if test "x$ac_cv_func_av_guess_format" = xyes; then :
     8755  cat >>confdefs.h <<_ACEOF
     8756#define HAVE_AV_GUESS_FORMAT 1
     8757_ACEOF
     8758
     8759fi
     8760done
     8761
     8762for ac_func in guess_format
     8763do :
     8764  ac_fn_cxx_check_func "$LINENO" "guess_format" "ac_cv_func_guess_format"
     8765if test "x$ac_cv_func_guess_format" = xyes; then :
     8766  cat >>confdefs.h <<_ACEOF
     8767#define HAVE_GUESS_FORMAT 1
     8768_ACEOF
     8769
     8770fi
     8771done
     8772
     8773for ac_func in av_dump_format
     8774do :
     8775  ac_fn_cxx_check_func "$LINENO" "av_dump_format" "ac_cv_func_av_dump_format"
     8776if test "x$ac_cv_func_av_dump_format" = xyes; then :
     8777  cat >>confdefs.h <<_ACEOF
     8778#define HAVE_AV_DUMP_FORMAT 1
     8779_ACEOF
     8780
     8781fi
     8782done
     8783
     8784for ac_func in dump_format
     8785do :
     8786  ac_fn_cxx_check_func "$LINENO" "dump_format" "ac_cv_func_dump_format"
     8787if test "x$ac_cv_func_dump_format" = xyes; then :
     8788  cat >>confdefs.h <<_ACEOF
     8789#define HAVE_DUMP_FORMAT 1
     8790_ACEOF
     8791
     8792fi
     8793done
     8794
     8795for ac_func in avio_open
     8796do :
     8797  ac_fn_cxx_check_func "$LINENO" "avio_open" "ac_cv_func_avio_open"
     8798if test "x$ac_cv_func_avio_open" = xyes; then :
     8799  cat >>confdefs.h <<_ACEOF
     8800#define HAVE_AVIO_OPEN 1
     8801_ACEOF
     8802
     8803fi
     8804done
     8805
     8806for ac_func in url_fopen
     8807do :
     8808  ac_fn_cxx_check_func "$LINENO" "url_fopen" "ac_cv_func_url_fopen"
     8809if test "x$ac_cv_func_url_fopen" = xyes; then :
     8810  cat >>confdefs.h <<_ACEOF
     8811#define HAVE_URL_FOPEN 1
     8812_ACEOF
     8813
     8814fi
     8815done
     8816
     8817for ac_func in avio_close
     8818do :
     8819  ac_fn_cxx_check_func "$LINENO" "avio_close" "ac_cv_func_avio_close"
     8820if test "x$ac_cv_func_avio_close" = xyes; then :
     8821  cat >>confdefs.h <<_ACEOF
     8822#define HAVE_AVIO_CLOSE 1
     8823_ACEOF
     8824
     8825fi
     8826done
     8827
     8828for ac_func in url_fclose
     8829do :
     8830  ac_fn_cxx_check_func "$LINENO" "url_fclose" "ac_cv_func_url_fclose"
     8831if test "x$ac_cv_func_url_fclose" = xyes; then :
     8832  cat >>confdefs.h <<_ACEOF
     8833#define HAVE_URL_FCLOSE 1
     8834_ACEOF
     8835
     8836fi
     8837done
     8838
     8839for ac_func in avformat_alloc_context
     8840do :
     8841  ac_fn_cxx_check_func "$LINENO" "avformat_alloc_context" "ac_cv_func_avformat_alloc_context"
     8842if test "x$ac_cv_func_avformat_alloc_context" = xyes; then :
     8843  cat >>confdefs.h <<_ACEOF
     8844#define HAVE_AVFORMAT_ALLOC_CONTEXT 1
     8845_ACEOF
     8846
     8847fi
     8848done
     8849
     8850for ac_func in av_alloc_format_context
     8851do :
     8852  ac_fn_cxx_check_func "$LINENO" "av_alloc_format_context" "ac_cv_func_av_alloc_format_context"
     8853if test "x$ac_cv_func_av_alloc_format_context" = xyes; then :
     8854  cat >>confdefs.h <<_ACEOF
     8855#define HAVE_AV_ALLOC_FORMAT_CONTEXT 1
     8856_ACEOF
     8857
     8858fi
     8859done
     8860
     8861for ac_func in av_set_parameters
     8862do :
     8863  ac_fn_cxx_check_func "$LINENO" "av_set_parameters" "ac_cv_func_av_set_parameters"
     8864if test "x$ac_cv_func_av_set_parameters" = xyes; then :
     8865  cat >>confdefs.h <<_ACEOF
     8866#define HAVE_AV_SET_PARAMETERS 1
     8867_ACEOF
     8868
     8869fi
     8870done
     8871
     8872for ac_func in avformat_write_header
     8873do :
     8874  ac_fn_cxx_check_func "$LINENO" "avformat_write_header" "ac_cv_func_avformat_write_header"
     8875if test "x$ac_cv_func_avformat_write_header" = xyes; then :
     8876  cat >>confdefs.h <<_ACEOF
     8877#define HAVE_AVFORMAT_WRITE_HEADER 1
     8878_ACEOF
     8879
     8880fi
     8881done
     8882
     8883for ac_func in av_write_header
     8884do :
     8885  ac_fn_cxx_check_func "$LINENO" "av_write_header" "ac_cv_func_av_write_header"
     8886if test "x$ac_cv_func_av_write_header" = xyes; then :
     8887  cat >>confdefs.h <<_ACEOF
     8888#define HAVE_AV_WRITE_HEADER 1
     8889_ACEOF
     8890
     8891fi
     8892done
     8893
     8894ac_fn_cxx_check_func "$LINENO" "av_write_trailer" "ac_cv_func_av_write_trailer"
     8895if test "x$ac_cv_func_av_write_trailer" = xyes; then :
     8896
     8897else
     8898  as_fn_error $? "oops! no av_write_trailer?!?" "$LINENO" 5
     8899fi
     8900
     8901ac_fn_cxx_check_func "$LINENO" "av_freep" "ac_cv_func_av_freep"
     8902if test "x$ac_cv_func_av_freep" = xyes; then :
     8903
     8904else
     8905  as_fn_error $? "oops! no av_freep ?!?" "$LINENO" 5
     8906fi
     8907
     8908ac_fn_cxx_check_func "$LINENO" "av_free" "ac_cv_func_av_free"
     8909if test "x$ac_cv_func_av_free" = xyes; then :
     8910
     8911else
     8912  as_fn_error $? "oops! no av_free ?!?" "$LINENO" 5
     8913fi
     8914
     8915ac_fn_cxx_check_func "$LINENO" "av_new_stream" "ac_cv_func_av_new_stream"
     8916if test "x$ac_cv_func_av_new_stream" = xyes; then :
     8917
     8918else
     8919  as_fn_error $? "oops! av_new_stream ?!?" "$LINENO" 5
     8920fi
     8921
     8922ac_fn_cxx_check_func "$LINENO" "av_malloc" "ac_cv_func_av_malloc"
     8923if test "x$ac_cv_func_av_malloc" = xyes; then :
     8924
     8925else
     8926  as_fn_error $? "oops! no av_malloc ?!?" "$LINENO" 5
     8927fi
     8928
     8929ac_fn_cxx_check_func "$LINENO" "av_init_packet" "ac_cv_func_av_init_packet"
     8930if test "x$ac_cv_func_av_init_packet" = xyes; then :
     8931
     8932else
     8933  as_fn_error $? "oops! no av_init_packet ?!?" "$LINENO" 5
     8934fi
     8935
     8936ac_fn_cxx_check_func "$LINENO" "av_rescale_q" "ac_cv_func_av_rescale_q"
     8937if test "x$ac_cv_func_av_rescale_q" = xyes; then :
     8938
     8939else
     8940  as_fn_error $? "oops! no av_rescale_q ?!?" "$LINENO" 5
     8941fi
     8942
     8943ac_fn_cxx_check_func "$LINENO" "av_write_frame" "ac_cv_func_av_write_frame"
     8944if test "x$ac_cv_func_av_write_frame" = xyes; then :
     8945
     8946else
     8947  as_fn_error $? "oops! av_write_frame ?!?" "$LINENO" 5
     8948fi
     8949
     8950ac_fn_cxx_check_func "$LINENO" "avformat_alloc_context" "ac_cv_func_avformat_alloc_context"
     8951if test "x$ac_cv_func_avformat_alloc_context" = xyes; then :
     8952
     8953else
     8954  as_fn_error $? "oops! avformat_alloc_context ?!?" "$LINENO" 5
     8955fi
     8956
     8957for ac_func in img_convert
     8958do :
     8959  ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"
     8960if test "x$ac_cv_func_img_convert" = xyes; then :
     8961  cat >>confdefs.h <<_ACEOF
     8962#define HAVE_IMG_CONVERT 1
     8963_ACEOF
     8964
     8965fi
     8966done
     8967
     8968for ac_func in sws_scale
     8969do :
     8970  ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"
     8971if test "x$ac_cv_func_sws_scale" = xyes; then :
     8972  cat >>confdefs.h <<_ACEOF
     8973#define HAVE_SWS_SCALE 1
     8974_ACEOF
     8975
     8976fi
     8977done
     8978
     8979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8980/* end confdefs.h.  */
     8981
     8982#define __STDC_CONSTANT_MACROS 1
     8983#include <stdlib.h>
     8984#ifdef HAVE_FFMPEG_AVCODEC_H
     8985# include <ffmpeg/avcodec.h>
     8986#endif
     8987#ifdef HAVE_LIBAVCODEC_AVCODEC_H
     8988# include <libavcodec/avcodec.h>
     8989#endif
     8990int x = AVMEDIA_TYPE_VIDEO;
     8991
     8992int
     8993main ()
     8994{
     8995
     8996  ;
     8997  return 0;
     8998}
     8999_ACEOF
     9000if ac_fn_cxx_try_compile "$LINENO"; then :
     9001  ac_avmedia_type_video="yes"
     9002else
     9003  ac_avmedia_type_video="no"
     9004fi
     9005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     9006if test "$ac_avmedia_type_video" == "yes" ; then
     9007
     9008$as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h
     9009
     9010fi
    85519011
    85529012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_alloc_frame in -lavcodec" >&5
     
    86899149
    86909150fi
    8691 
    8692 for ac_func in avformat_alloc_context
    8693 do :
    8694   ac_fn_cxx_check_func "$LINENO" "avformat_alloc_context" "ac_cv_func_avformat_alloc_context"
    8695 if test "x$ac_cv_func_avformat_alloc_context" = xyes; then :
    8696   cat >>confdefs.h <<_ACEOF
    8697 #define HAVE_AVFORMAT_ALLOC_CONTEXT 1
    8698 _ACEOF
    8699 
    8700 fi
    8701 done
    8702 
    8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_free in -lavutil" >&5
    8704 $as_echo_n "checking for av_free in -lavutil... " >&6; }
    8705 if ${ac_cv_lib_avutil_av_free+:} false; then :
    8706   $as_echo_n "(cached) " >&6
    8707 else
    8708   ac_check_lib_save_LIBS=$LIBS
    8709 LIBS="-lavutil  $LIBS"
    8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    8711 /* end confdefs.h.  */
    8712 
    8713 /* Override any GCC internal prototype to avoid an error.
    8714    Use char because int might match the return type of a GCC
    8715    builtin and then its argument prototype would still apply.  */
    8716 #ifdef __cplusplus
    8717 extern "C"
    8718 #endif
    8719 char av_free ();
    8720 int
    8721 main ()
    8722 {
    8723 return av_free ();
    8724   ;
    8725   return 0;
    8726 }
    8727 _ACEOF
    8728 if ac_fn_cxx_try_link "$LINENO"; then :
    8729   ac_cv_lib_avutil_av_free=yes
    8730 else
    8731   ac_cv_lib_avutil_av_free=no
    8732 fi
    8733 rm -f core conftest.err conftest.$ac_objext \
    8734     conftest$ac_exeext conftest.$ac_ext
    8735 LIBS=$ac_check_lib_save_LIBS
    8736 fi
    8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_free" >&5
    8738 $as_echo "$ac_cv_lib_avutil_av_free" >&6; }
    8739 if test "x$ac_cv_lib_avutil_av_free" = xyes; then :
    8740   cat >>confdefs.h <<_ACEOF
    8741 #define HAVE_LIBAVUTIL 1
    8742 _ACEOF
    8743 
    8744   LIBS="-lavutil $LIBS"
    8745 
    8746 fi
    8747 
    8748 for ac_func in img_convert
    8749 do :
    8750   ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"
    8751 if test "x$ac_cv_func_img_convert" = xyes; then :
    8752   cat >>confdefs.h <<_ACEOF
    8753 #define HAVE_IMG_CONVERT 1
    8754 _ACEOF
    8755 
    8756 fi
    8757 done
    87589151
    87599152
Note: See TracChangeset for help on using the changeset viewer.