Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3243 in orxonox.OLD


Ignore:
Timestamp:
Dec 21, 2004, 5:57:54 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/updater: checking for libCurl

Location:
orxonox/branches/updater
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/Makefile.in

    r3219 r3243  
    8585CPP = @CPP@
    8686CPPFLAGS = @CPPFLAGS@
     87CURL_CFLAGS = @CURL_CFLAGS@
     88CURL_LIBS = @CURL_LIBS@
    8789CXX = @CXX@
    8890CXXDEPMODE = @CXXDEPMODE@
     
    102104GTK2_CFLAGS = @GTK2_CFLAGS@
    103105GTK2_LIBS = @GTK2_LIBS@
     106HAVE_CURL_FALSE = @HAVE_CURL_FALSE@
     107HAVE_CURL_TRUE = @HAVE_CURL_TRUE@
    104108HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@
    105109HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@
  • orxonox/branches/updater/config.h.in

    r3205 r3243  
    66/* Define to 1 if you have the `bzero' function. */
    77#undef HAVE_BZERO
     8
     9/* if we have CURL */
     10#undef HAVE_CURL
     11
     12/* Define to 1 if you have the <curl/curl.h> header file. */
     13#undef HAVE_CURL_CURL_H
    814
    915/* Define to 1 if you have the <GL/glu.h> header file. */
  • orxonox/branches/updater/configure

    r3240 r3243  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59 for orxonox 2.0.1-pre-alpha.
     3# Generated by GNU Autoconf 2.59 for orxonox 0.2.1-pre-alpha.
    44#
    55# Report bugs to <orxonox-dev at mail.datacore.ch>.
     
    270270PACKAGE_NAME='orxonox'
    271271PACKAGE_TARNAME='orxonox'
    272 PACKAGE_VERSION='2.0.1-pre-alpha'
    273 PACKAGE_STRING='orxonox 2.0.1-pre-alpha'
     272PACKAGE_VERSION='0.2.1-pre-alpha'
     273PACKAGE_STRING='orxonox 0.2.1-pre-alpha'
    274274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
    275275
     
    312312#endif"
    313313
    314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'
     314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS'
    315315ac_subst_files=''
    316316
     
    789789  # This message is too long to be a string in the A/UX 3.1 sh.
    790790  cat <<_ACEOF
    791 \`configure' configures orxonox 2.0.1-pre-alpha to adapt to many kinds of systems.
     791\`configure' configures orxonox 0.2.1-pre-alpha to adapt to many kinds of systems.
    792792
    793793Usage: $0 [OPTION]... [VAR=VALUE]...
     
    856856if test -n "$ac_init_help"; then
    857857  case $ac_init_help in
    858      short | recursive ) echo "Configuration of orxonox 2.0.1-pre-alpha:";;
     858     short | recursive ) echo "Configuration of orxonox 0.2.1-pre-alpha:";;
    859859   esac
    860860  cat <<\_ACEOF
     
    872872  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    873873  --without-gtk           Prevents GTK from being loaded
     874  --without-curl          Prevents libcURL from being loaded
    874875  --without-sdl-image     Prevents SDL_image from being loaded
    875876
     
    984985if $ac_init_version; then
    985986  cat <<\_ACEOF
    986 orxonox configure 2.0.1-pre-alpha
     987orxonox configure 0.2.1-pre-alpha
    987988generated by GNU Autoconf 2.59
    988989
     
    998999running configure, to aid debugging if configure makes a mistake.
    9991000
    1000 It was created by orxonox $as_me 2.0.1-pre-alpha, which was
     1001It was created by orxonox $as_me 0.2.1-pre-alpha, which was
    10011002generated by GNU Autoconf 2.59.  Invocation command line was
    10021003
     
    17191720# Define the identity of the package.
    17201721 PACKAGE='orxonox'
    1721  VERSION='2.0.1-pre-alpha'
     1722 VERSION='0.2.1-pre-alpha'
    17221723
    17231724
     
    38853886  echo "no"
    38863887fi
     3888
     3889## libCurl disabled?
     3890echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
     3891echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
     3892
     3893# Check whether --with-curl or --without-curl was given.
     3894if test "${with_curl+set}" = set; then
     3895  withval="$with_curl"
     3896  def_curl=no
     3897else
     3898  def_curl=yes
     3899fi;
     3900if test "$def_curl" = yes; then
     3901  echo "yes"
     3902fi
     3903if test "$def_curl" = no; then
     3904  echo "no"
     3905fi
     3906
    38873907### SDL_image-disable
    38883908def_sdl_image=yes
     
    66526672
    66536673
    6654 
    6655 
    6656 #checking for pthread libs
    6657 # AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
    6658 # if test "$FOUND_pthread" = "yes" ; then
    6659 #    LIBS="$LIBS -lpthread"
    6660 # fi
    6661 
    6662 
    6663 # FIXME: Replace `main' with a function in `-lm':
    6664 
    6665 echo "$as_me:$LINENO: checking for main in -lm" >&5
    6666 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    6667 if test "${ac_cv_lib_m_main+set}" = set; then
    6668   echo $ECHO_N "(cached) $ECHO_C" >&6
    6669 else
    6670   ac_check_lib_save_LIBS=$LIBS
    6671 LIBS="-lm  $LIBS"
    6672 cat >conftest.$ac_ext <<_ACEOF
    6673 /* confdefs.h.  */
    6674 _ACEOF
    6675 cat confdefs.h >>conftest.$ac_ext
    6676 cat >>conftest.$ac_ext <<_ACEOF
    6677 /* end confdefs.h.  */
    6678 
    6679 
    6680 int
    6681 main ()
    6682 {
    6683 main ();
    6684   ;
    6685   return 0;
    6686 }
    6687 _ACEOF
    6688 rm -f conftest.$ac_objext conftest$ac_exeext
    6689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6690   (eval $ac_link) 2>conftest.er1
    6691   ac_status=$?
    6692   grep -v '^ *+' conftest.er1 >conftest.err
    6693   rm -f conftest.er1
    6694   cat conftest.err >&5
    6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6696   (exit $ac_status); } &&
    6697          { ac_try='test -z "$ac_c_werror_flag"
    6698                          || test ! -s conftest.err'
    6699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6700   (eval $ac_try) 2>&5
    6701   ac_status=$?
    6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6703   (exit $ac_status); }; } &&
    6704          { ac_try='test -s conftest$ac_exeext'
    6705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6706   (eval $ac_try) 2>&5
    6707   ac_status=$?
    6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6709   (exit $ac_status); }; }; then
    6710   ac_cv_lib_m_main=yes
    6711 else
    6712   echo "$as_me: failed program was:" >&5
    6713 sed 's/^/| /' conftest.$ac_ext >&5
    6714 
    6715 ac_cv_lib_m_main=no
    6716 fi
    6717 rm -f conftest.err conftest.$ac_objext \
    6718       conftest$ac_exeext conftest.$ac_ext
    6719 LIBS=$ac_check_lib_save_LIBS
    6720 fi
    6721 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    6722 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    6723 if test $ac_cv_lib_m_main = yes; then
    6724   cat >>confdefs.h <<_ACEOF
    6725 #define HAVE_LIBM 1
    6726 _ACEOF
    6727 
    6728   LIBS="-lm $LIBS"
    6729 
    6730 fi
    6731 
    6732 
    6733 
    6734 # Checks for header files.
    6735 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    6736 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    6737 if test "${ac_cv_header_stdc+set}" = set; then
    6738   echo $ECHO_N "(cached) $ECHO_C" >&6
    6739 else
    6740   cat >conftest.$ac_ext <<_ACEOF
    6741 /* confdefs.h.  */
    6742 _ACEOF
    6743 cat confdefs.h >>conftest.$ac_ext
    6744 cat >>conftest.$ac_ext <<_ACEOF
    6745 /* end confdefs.h.  */
    6746 #include <stdlib.h>
    6747 #include <stdarg.h>
    6748 #include <string.h>
    6749 #include <float.h>
    6750 
    6751 int
    6752 main ()
    6753 {
    6754 
    6755   ;
    6756   return 0;
    6757 }
    6758 _ACEOF
    6759 rm -f conftest.$ac_objext
    6760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6761   (eval $ac_compile) 2>conftest.er1
    6762   ac_status=$?
    6763   grep -v '^ *+' conftest.er1 >conftest.err
    6764   rm -f conftest.er1
    6765   cat conftest.err >&5
    6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6767   (exit $ac_status); } &&
    6768          { ac_try='test -z "$ac_c_werror_flag"
    6769                          || test ! -s conftest.err'
    6770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6771   (eval $ac_try) 2>&5
    6772   ac_status=$?
    6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6774   (exit $ac_status); }; } &&
    6775          { ac_try='test -s conftest.$ac_objext'
    6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6777   (eval $ac_try) 2>&5
    6778   ac_status=$?
    6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6780   (exit $ac_status); }; }; then
    6781   ac_cv_header_stdc=yes
    6782 else
    6783   echo "$as_me: failed program was:" >&5
    6784 sed 's/^/| /' conftest.$ac_ext >&5
    6785 
    6786 ac_cv_header_stdc=no
    6787 fi
    6788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6789 
    6790 if test $ac_cv_header_stdc = yes; then
    6791   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    6792   cat >conftest.$ac_ext <<_ACEOF
    6793 /* confdefs.h.  */
    6794 _ACEOF
    6795 cat confdefs.h >>conftest.$ac_ext
    6796 cat >>conftest.$ac_ext <<_ACEOF
    6797 /* end confdefs.h.  */
    6798 #include <string.h>
    6799 
    6800 _ACEOF
    6801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    6802   $EGREP "memchr" >/dev/null 2>&1; then
    6803   :
    6804 else
    6805   ac_cv_header_stdc=no
    6806 fi
    6807 rm -f conftest*
    6808 
    6809 fi
    6810 
    6811 if test $ac_cv_header_stdc = yes; then
    6812   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    6813   cat >conftest.$ac_ext <<_ACEOF
    6814 /* confdefs.h.  */
    6815 _ACEOF
    6816 cat confdefs.h >>conftest.$ac_ext
    6817 cat >>conftest.$ac_ext <<_ACEOF
    6818 /* end confdefs.h.  */
    6819 #include <stdlib.h>
    6820 
    6821 _ACEOF
    6822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    6823   $EGREP "free" >/dev/null 2>&1; then
    6824   :
    6825 else
    6826   ac_cv_header_stdc=no
    6827 fi
    6828 rm -f conftest*
    6829 
    6830 fi
    6831 
    6832 if test $ac_cv_header_stdc = yes; then
    6833   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    6834   if test "$cross_compiling" = yes; then
    6835   :
    6836 else
    6837   cat >conftest.$ac_ext <<_ACEOF
    6838 /* confdefs.h.  */
    6839 _ACEOF
    6840 cat confdefs.h >>conftest.$ac_ext
    6841 cat >>conftest.$ac_ext <<_ACEOF
    6842 /* end confdefs.h.  */
    6843 #include <ctype.h>
    6844 #if ((' ' & 0x0FF) == 0x020)
    6845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    6846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    6847 #else
    6848 # define ISLOWER(c) \
    6849                    (('a' <= (c) && (c) <= 'i') \
    6850                      || ('j' <= (c) && (c) <= 'r') \
    6851                      || ('s' <= (c) && (c) <= 'z'))
    6852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    6853 #endif
    6854 
    6855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    6856 int
    6857 main ()
    6858 {
    6859   int i;
    6860   for (i = 0; i < 256; i++)
    6861     if (XOR (islower (i), ISLOWER (i))
    6862         || toupper (i) != TOUPPER (i))
    6863       exit(2);
    6864   exit (0);
    6865 }
    6866 _ACEOF
    6867 rm -f conftest$ac_exeext
    6868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6869   (eval $ac_link) 2>&5
    6870   ac_status=$?
    6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    6873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6874   (eval $ac_try) 2>&5
    6875   ac_status=$?
    6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6877   (exit $ac_status); }; }; then
    6878   :
    6879 else
    6880   echo "$as_me: program exited with status $ac_status" >&5
    6881 echo "$as_me: failed program was:" >&5
    6882 sed 's/^/| /' conftest.$ac_ext >&5
    6883 
    6884 ( exit $ac_status )
    6885 ac_cv_header_stdc=no
    6886 fi
    6887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    6888 fi
    6889 fi
    6890 fi
    6891 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    6892 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    6893 if test $ac_cv_header_stdc = yes; then
    6894 
    6895 cat >>confdefs.h <<\_ACEOF
    6896 #define STDC_HEADERS 1
    6897 _ACEOF
    6898 
    6899 fi
    6900 
    6901 
    6902 
    6903 for ac_header in stdlib.h string.h
     6674## checking for libcURL
     6675if test "$def_curl" = yes; then
     6676
     6677
     6678for ac_header in curl/curl.h
    69046679do
    69056680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    70456820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    70466821_ACEOF
    7047 
     6822 curlHeader="yes"
     6823else
     6824  curlHeader="no"
    70486825fi
    70496826
    70506827done
    70516828
    7052 
    7053 # Checks for typedefs, structures, and compiler characteristics.
    7054 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
    7055 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
    7056 if test "${ac_cv_header_stdbool_h+set}" = set; then
     6829 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
     6830echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
     6831if test "${ac_cv_lib_curl_main+set}" = set; then
    70576832  echo $ECHO_N "(cached) $ECHO_C" >&6
    70586833else
    7059   cat >conftest.$ac_ext <<_ACEOF
     6834  ac_check_lib_save_LIBS=$LIBS
     6835LIBS="-lcurl  $LIBS"
     6836cat >conftest.$ac_ext <<_ACEOF
    70606837/* confdefs.h.  */
    70616838_ACEOF
     
    70646841/* end confdefs.h.  */
    70656842
    7066 #include <stdbool.h>
    7067 #ifndef bool
    7068 # error bool is not defined
    7069 #endif
    7070 #ifndef false
    7071 # error false is not defined
    7072 #endif
    7073 #if false
    7074 # error false is not 0
    7075 #endif
    7076 #ifndef true
    7077 # error true is not defined
    7078 #endif
    7079 #if true != 1
    7080 # error true is not 1
    7081 #endif
    7082 #ifndef __bool_true_false_are_defined
    7083 # error __bool_true_false_are_defined is not defined
    7084 #endif
    7085 
    7086         struct s { _Bool s: 1; _Bool t; } s;
    7087 
    7088         char a[true == 1 ? 1 : -1];
    7089         char b[false == 0 ? 1 : -1];
    7090         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
    7091         char d[(bool) -0.5 == true ? 1 : -1];
    7092         bool e = &s;
    7093         char f[(_Bool) -0.0 == false ? 1 : -1];
    7094         char g[true];
    7095         char h[sizeof (_Bool)];
    7096         char i[sizeof s.t];
    70976843
    70986844int
    70996845main ()
    71006846{
    7101  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
     6847main ();
    71026848  ;
    71036849  return 0;
    71046850}
    71056851_ACEOF
    7106 rm -f conftest.$ac_objext
    7107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7108   (eval $ac_compile) 2>conftest.er1
     6852rm -f conftest.$ac_objext conftest$ac_exeext
     6853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6854  (eval $ac_link) 2>conftest.er1
    71096855  ac_status=$?
    71106856  grep -v '^ *+' conftest.er1 >conftest.err
     
    71206866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    71216867  (exit $ac_status); }; } &&
    7122          { ac_try='test -s conftest.$ac_objext'
     6868         { ac_try='test -s conftest$ac_exeext'
    71236869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    71246870  (eval $ac_try) 2>&5
     
    71266872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    71276873  (exit $ac_status); }; }; then
    7128   ac_cv_header_stdbool_h=yes
     6874  ac_cv_lib_curl_main=yes
    71296875else
    71306876  echo "$as_me: failed program was:" >&5
    71316877sed 's/^/| /' conftest.$ac_ext >&5
    71326878
    7133 ac_cv_header_stdbool_h=no
    7134 fi
    7135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7136 fi
    7137 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
    7138 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
    7139 echo "$as_me:$LINENO: checking for _Bool" >&5
    7140 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
    7141 if test "${ac_cv_type__Bool+set}" = set; then
     6879ac_cv_lib_curl_main=no
     6880fi
     6881rm -f conftest.err conftest.$ac_objext \
     6882      conftest$ac_exeext conftest.$ac_ext
     6883LIBS=$ac_check_lib_save_LIBS
     6884fi
     6885echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
     6886echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
     6887if test $ac_cv_lib_curl_main = yes; then
     6888  FOUND_curl=yes
     6889fi
     6890
     6891 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
     6892  have_curl=yes
     6893  CURL_LIBS=`curl-config --libs`
     6894  CURLCFLAGS=`curl-config --cflags`
     6895
     6896cat >>confdefs.h <<_ACEOF
     6897#define HAVE_CURL 1
     6898_ACEOF
     6899
     6900 else
     6901  have_curl=no
     6902 fi
     6903
     6904fi
     6905
     6906
     6907
     6908
     6909if test x$have_curl = xyes; then
     6910  HAVE_CURL_TRUE=
     6911  HAVE_CURL_FALSE='#'
     6912else
     6913  HAVE_CURL_TRUE='#'
     6914  HAVE_CURL_FALSE=
     6915fi
     6916
     6917
     6918
     6919#checking for pthread libs
     6920# AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
     6921# if test "$FOUND_pthread" = "yes" ; then
     6922#    LIBS="$LIBS -lpthread"
     6923# fi
     6924
     6925
     6926# FIXME: Replace `main' with a function in `-lm':
     6927
     6928echo "$as_me:$LINENO: checking for main in -lm" >&5
     6929echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     6930if test "${ac_cv_lib_m_main+set}" = set; then
    71426931  echo $ECHO_N "(cached) $ECHO_C" >&6
    71436932else
    7144   cat >conftest.$ac_ext <<_ACEOF
     6933  ac_check_lib_save_LIBS=$LIBS
     6934LIBS="-lm  $LIBS"
     6935cat >conftest.$ac_ext <<_ACEOF
    71456936/* confdefs.h.  */
    71466937_ACEOF
     
    71486939cat >>conftest.$ac_ext <<_ACEOF
    71496940/* end confdefs.h.  */
    7150 $ac_includes_default
     6941
     6942
    71516943int
    71526944main ()
    71536945{
    7154 if ((_Bool *) 0)
    7155   return 0;
    7156 if (sizeof (_Bool))
    7157   return 0;
     6946main ();
    71586947  ;
    71596948  return 0;
    71606949}
    71616950_ACEOF
    7162 rm -f conftest.$ac_objext
    7163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7164   (eval $ac_compile) 2>conftest.er1
     6951rm -f conftest.$ac_objext conftest$ac_exeext
     6952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6953  (eval $ac_link) 2>conftest.er1
    71656954  ac_status=$?
    71666955  grep -v '^ *+' conftest.er1 >conftest.err
     
    71766965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    71776966  (exit $ac_status); }; } &&
     6967         { ac_try='test -s conftest$ac_exeext'
     6968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6969  (eval $ac_try) 2>&5
     6970  ac_status=$?
     6971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6972  (exit $ac_status); }; }; then
     6973  ac_cv_lib_m_main=yes
     6974else
     6975  echo "$as_me: failed program was:" >&5
     6976sed 's/^/| /' conftest.$ac_ext >&5
     6977
     6978ac_cv_lib_m_main=no
     6979fi
     6980rm -f conftest.err conftest.$ac_objext \
     6981      conftest$ac_exeext conftest.$ac_ext
     6982LIBS=$ac_check_lib_save_LIBS
     6983fi
     6984echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
     6985echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     6986if test $ac_cv_lib_m_main = yes; then
     6987  cat >>confdefs.h <<_ACEOF
     6988#define HAVE_LIBM 1
     6989_ACEOF
     6990
     6991  LIBS="-lm $LIBS"
     6992
     6993fi
     6994
     6995
     6996
     6997# Checks for header files.
     6998echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     6999echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     7000if test "${ac_cv_header_stdc+set}" = set; then
     7001  echo $ECHO_N "(cached) $ECHO_C" >&6
     7002else
     7003  cat >conftest.$ac_ext <<_ACEOF
     7004/* confdefs.h.  */
     7005_ACEOF
     7006cat confdefs.h >>conftest.$ac_ext
     7007cat >>conftest.$ac_ext <<_ACEOF
     7008/* end confdefs.h.  */
     7009#include <stdlib.h>
     7010#include <stdarg.h>
     7011#include <string.h>
     7012#include <float.h>
     7013
     7014int
     7015main ()
     7016{
     7017
     7018  ;
     7019  return 0;
     7020}
     7021_ACEOF
     7022rm -f conftest.$ac_objext
     7023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7024  (eval $ac_compile) 2>conftest.er1
     7025  ac_status=$?
     7026  grep -v '^ *+' conftest.er1 >conftest.err
     7027  rm -f conftest.er1
     7028  cat conftest.err >&5
     7029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7030  (exit $ac_status); } &&
     7031         { ac_try='test -z "$ac_c_werror_flag"
     7032                         || test ! -s conftest.err'
     7033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7034  (eval $ac_try) 2>&5
     7035  ac_status=$?
     7036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7037  (exit $ac_status); }; } &&
    71787038         { ac_try='test -s conftest.$ac_objext'
    71797039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     
    71827042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    71837043  (exit $ac_status); }; }; then
    7184   ac_cv_type__Bool=yes
     7044  ac_cv_header_stdc=yes
    71857045else
    71867046  echo "$as_me: failed program was:" >&5
    71877047sed 's/^/| /' conftest.$ac_ext >&5
    71887048
    7189 ac_cv_type__Bool=no
     7049ac_cv_header_stdc=no
    71907050fi
    71917051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7192 fi
    7193 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
    7194 echo "${ECHO_T}$ac_cv_type__Bool" >&6
    7195 if test $ac_cv_type__Bool = yes; then
    7196 
    7197 cat >>confdefs.h <<_ACEOF
    7198 #define HAVE__BOOL 1
    7199 _ACEOF
    7200 
    7201 
    7202 fi
    7203 
    7204 if test $ac_cv_header_stdbool_h = yes; then
     7052
     7053if test $ac_cv_header_stdc = yes; then
     7054  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     7055  cat >conftest.$ac_ext <<_ACEOF
     7056/* confdefs.h.  */
     7057_ACEOF
     7058cat confdefs.h >>conftest.$ac_ext
     7059cat >>conftest.$ac_ext <<_ACEOF
     7060/* end confdefs.h.  */
     7061#include <string.h>
     7062
     7063_ACEOF
     7064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     7065  $EGREP "memchr" >/dev/null 2>&1; then
     7066  :
     7067else
     7068  ac_cv_header_stdc=no
     7069fi
     7070rm -f conftest*
     7071
     7072fi
     7073
     7074if test $ac_cv_header_stdc = yes; then
     7075  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     7076  cat >conftest.$ac_ext <<_ACEOF
     7077/* confdefs.h.  */
     7078_ACEOF
     7079cat confdefs.h >>conftest.$ac_ext
     7080cat >>conftest.$ac_ext <<_ACEOF
     7081/* end confdefs.h.  */
     7082#include <stdlib.h>
     7083
     7084_ACEOF
     7085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     7086  $EGREP "free" >/dev/null 2>&1; then
     7087  :
     7088else
     7089  ac_cv_header_stdc=no
     7090fi
     7091rm -f conftest*
     7092
     7093fi
     7094
     7095if test $ac_cv_header_stdc = yes; then
     7096  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     7097  if test "$cross_compiling" = yes; then
     7098  :
     7099else
     7100  cat >conftest.$ac_ext <<_ACEOF
     7101/* confdefs.h.  */
     7102_ACEOF
     7103cat confdefs.h >>conftest.$ac_ext
     7104cat >>conftest.$ac_ext <<_ACEOF
     7105/* end confdefs.h.  */
     7106#include <ctype.h>
     7107#if ((' ' & 0x0FF) == 0x020)
     7108# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     7109# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     7110#else
     7111# define ISLOWER(c) \
     7112                   (('a' <= (c) && (c) <= 'i') \
     7113                     || ('j' <= (c) && (c) <= 'r') \
     7114                     || ('s' <= (c) && (c) <= 'z'))
     7115# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     7116#endif
     7117
     7118#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     7119int
     7120main ()
     7121{
     7122  int i;
     7123  for (i = 0; i < 256; i++)
     7124    if (XOR (islower (i), ISLOWER (i))
     7125        || toupper (i) != TOUPPER (i))
     7126      exit(2);
     7127  exit (0);
     7128}
     7129_ACEOF
     7130rm -f conftest$ac_exeext
     7131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7132  (eval $ac_link) 2>&5
     7133  ac_status=$?
     7134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7135  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     7136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7137  (eval $ac_try) 2>&5
     7138  ac_status=$?
     7139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7140  (exit $ac_status); }; }; then
     7141  :
     7142else
     7143  echo "$as_me: program exited with status $ac_status" >&5
     7144echo "$as_me: failed program was:" >&5
     7145sed 's/^/| /' conftest.$ac_ext >&5
     7146
     7147( exit $ac_status )
     7148ac_cv_header_stdc=no
     7149fi
     7150rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     7151fi
     7152fi
     7153fi
     7154echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     7155echo "${ECHO_T}$ac_cv_header_stdc" >&6
     7156if test $ac_cv_header_stdc = yes; then
    72057157
    72067158cat >>confdefs.h <<\_ACEOF
    7207 #define HAVE_STDBOOL_H 1
    7208 _ACEOF
    7209 
    7210 fi
    7211 
    7212 
    7213 # Checks for library functions.
    7214 
    7215 for ac_header in stdlib.h
     7159#define STDC_HEADERS 1
     7160_ACEOF
     7161
     7162fi
     7163
     7164
     7165
     7166for ac_header in stdlib.h string.h
    72167167do
    72177168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    73627313done
    73637314
     7315
     7316# Checks for typedefs, structures, and compiler characteristics.
     7317echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
     7318echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
     7319if test "${ac_cv_header_stdbool_h+set}" = set; then
     7320  echo $ECHO_N "(cached) $ECHO_C" >&6
     7321else
     7322  cat >conftest.$ac_ext <<_ACEOF
     7323/* confdefs.h.  */
     7324_ACEOF
     7325cat confdefs.h >>conftest.$ac_ext
     7326cat >>conftest.$ac_ext <<_ACEOF
     7327/* end confdefs.h.  */
     7328
     7329#include <stdbool.h>
     7330#ifndef bool
     7331# error bool is not defined
     7332#endif
     7333#ifndef false
     7334# error false is not defined
     7335#endif
     7336#if false
     7337# error false is not 0
     7338#endif
     7339#ifndef true
     7340# error true is not defined
     7341#endif
     7342#if true != 1
     7343# error true is not 1
     7344#endif
     7345#ifndef __bool_true_false_are_defined
     7346# error __bool_true_false_are_defined is not defined
     7347#endif
     7348
     7349        struct s { _Bool s: 1; _Bool t; } s;
     7350
     7351        char a[true == 1 ? 1 : -1];
     7352        char b[false == 0 ? 1 : -1];
     7353        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
     7354        char d[(bool) -0.5 == true ? 1 : -1];
     7355        bool e = &s;
     7356        char f[(_Bool) -0.0 == false ? 1 : -1];
     7357        char g[true];
     7358        char h[sizeof (_Bool)];
     7359        char i[sizeof s.t];
     7360
     7361int
     7362main ()
     7363{
     7364 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
     7365  ;
     7366  return 0;
     7367}
     7368_ACEOF
     7369rm -f conftest.$ac_objext
     7370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7371  (eval $ac_compile) 2>conftest.er1
     7372  ac_status=$?
     7373  grep -v '^ *+' conftest.er1 >conftest.err
     7374  rm -f conftest.er1
     7375  cat conftest.err >&5
     7376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7377  (exit $ac_status); } &&
     7378         { ac_try='test -z "$ac_c_werror_flag"
     7379                         || test ! -s conftest.err'
     7380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7381  (eval $ac_try) 2>&5
     7382  ac_status=$?
     7383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7384  (exit $ac_status); }; } &&
     7385         { ac_try='test -s conftest.$ac_objext'
     7386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7387  (eval $ac_try) 2>&5
     7388  ac_status=$?
     7389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7390  (exit $ac_status); }; }; then
     7391  ac_cv_header_stdbool_h=yes
     7392else
     7393  echo "$as_me: failed program was:" >&5
     7394sed 's/^/| /' conftest.$ac_ext >&5
     7395
     7396ac_cv_header_stdbool_h=no
     7397fi
     7398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7399fi
     7400echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
     7401echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
     7402echo "$as_me:$LINENO: checking for _Bool" >&5
     7403echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
     7404if test "${ac_cv_type__Bool+set}" = set; then
     7405  echo $ECHO_N "(cached) $ECHO_C" >&6
     7406else
     7407  cat >conftest.$ac_ext <<_ACEOF
     7408/* confdefs.h.  */
     7409_ACEOF
     7410cat confdefs.h >>conftest.$ac_ext
     7411cat >>conftest.$ac_ext <<_ACEOF
     7412/* end confdefs.h.  */
     7413$ac_includes_default
     7414int
     7415main ()
     7416{
     7417if ((_Bool *) 0)
     7418  return 0;
     7419if (sizeof (_Bool))
     7420  return 0;
     7421  ;
     7422  return 0;
     7423}
     7424_ACEOF
     7425rm -f conftest.$ac_objext
     7426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7427  (eval $ac_compile) 2>conftest.er1
     7428  ac_status=$?
     7429  grep -v '^ *+' conftest.er1 >conftest.err
     7430  rm -f conftest.er1
     7431  cat conftest.err >&5
     7432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7433  (exit $ac_status); } &&
     7434         { ac_try='test -z "$ac_c_werror_flag"
     7435                         || test ! -s conftest.err'
     7436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7437  (eval $ac_try) 2>&5
     7438  ac_status=$?
     7439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7440  (exit $ac_status); }; } &&
     7441         { ac_try='test -s conftest.$ac_objext'
     7442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7443  (eval $ac_try) 2>&5
     7444  ac_status=$?
     7445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7446  (exit $ac_status); }; }; then
     7447  ac_cv_type__Bool=yes
     7448else
     7449  echo "$as_me: failed program was:" >&5
     7450sed 's/^/| /' conftest.$ac_ext >&5
     7451
     7452ac_cv_type__Bool=no
     7453fi
     7454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7455fi
     7456echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
     7457echo "${ECHO_T}$ac_cv_type__Bool" >&6
     7458if test $ac_cv_type__Bool = yes; then
     7459
     7460cat >>confdefs.h <<_ACEOF
     7461#define HAVE__BOOL 1
     7462_ACEOF
     7463
     7464
     7465fi
     7466
     7467if test $ac_cv_header_stdbool_h = yes; then
     7468
     7469cat >>confdefs.h <<\_ACEOF
     7470#define HAVE_STDBOOL_H 1
     7471_ACEOF
     7472
     7473fi
     7474
     7475
     7476# Checks for library functions.
     7477
     7478for ac_header in stdlib.h
     7479do
     7480as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     7481if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7482  echo "$as_me:$LINENO: checking for $ac_header" >&5
     7483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     7484if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7485  echo $ECHO_N "(cached) $ECHO_C" >&6
     7486fi
     7487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     7488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     7489else
     7490  # Is the header compilable?
     7491echo "$as_me:$LINENO: checking $ac_header usability" >&5
     7492echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     7493cat >conftest.$ac_ext <<_ACEOF
     7494/* confdefs.h.  */
     7495_ACEOF
     7496cat confdefs.h >>conftest.$ac_ext
     7497cat >>conftest.$ac_ext <<_ACEOF
     7498/* end confdefs.h.  */
     7499$ac_includes_default
     7500#include <$ac_header>
     7501_ACEOF
     7502rm -f conftest.$ac_objext
     7503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7504  (eval $ac_compile) 2>conftest.er1
     7505  ac_status=$?
     7506  grep -v '^ *+' conftest.er1 >conftest.err
     7507  rm -f conftest.er1
     7508  cat conftest.err >&5
     7509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7510  (exit $ac_status); } &&
     7511         { ac_try='test -z "$ac_c_werror_flag"
     7512                         || test ! -s conftest.err'
     7513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7514  (eval $ac_try) 2>&5
     7515  ac_status=$?
     7516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7517  (exit $ac_status); }; } &&
     7518         { ac_try='test -s conftest.$ac_objext'
     7519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7520  (eval $ac_try) 2>&5
     7521  ac_status=$?
     7522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7523  (exit $ac_status); }; }; then
     7524  ac_header_compiler=yes
     7525else
     7526  echo "$as_me: failed program was:" >&5
     7527sed 's/^/| /' conftest.$ac_ext >&5
     7528
     7529ac_header_compiler=no
     7530fi
     7531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7532echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     7533echo "${ECHO_T}$ac_header_compiler" >&6
     7534
     7535# Is the header present?
     7536echo "$as_me:$LINENO: checking $ac_header presence" >&5
     7537echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     7538cat >conftest.$ac_ext <<_ACEOF
     7539/* confdefs.h.  */
     7540_ACEOF
     7541cat confdefs.h >>conftest.$ac_ext
     7542cat >>conftest.$ac_ext <<_ACEOF
     7543/* end confdefs.h.  */
     7544#include <$ac_header>
     7545_ACEOF
     7546if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     7547  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     7548  ac_status=$?
     7549  grep -v '^ *+' conftest.er1 >conftest.err
     7550  rm -f conftest.er1
     7551  cat conftest.err >&5
     7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7553  (exit $ac_status); } >/dev/null; then
     7554  if test -s conftest.err; then
     7555    ac_cpp_err=$ac_c_preproc_warn_flag
     7556    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     7557  else
     7558    ac_cpp_err=
     7559  fi
     7560else
     7561  ac_cpp_err=yes
     7562fi
     7563if test -z "$ac_cpp_err"; then
     7564  ac_header_preproc=yes
     7565else
     7566  echo "$as_me: failed program was:" >&5
     7567sed 's/^/| /' conftest.$ac_ext >&5
     7568
     7569  ac_header_preproc=no
     7570fi
     7571rm -f conftest.err conftest.$ac_ext
     7572echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     7573echo "${ECHO_T}$ac_header_preproc" >&6
     7574
     7575# So?  What about this header?
     7576case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     7577  yes:no: )
     7578    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     7579echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     7580    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     7581echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     7582    ac_header_preproc=yes
     7583    ;;
     7584  no:yes:* )
     7585    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     7586echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     7587    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     7588echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     7589    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     7590echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     7591    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     7592echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     7593    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     7594echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     7595    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     7596echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     7597    (
     7598      cat <<\_ASBOX
     7599## ---------------------------------------------- ##
     7600## Report this to orxonox-dev at mail.datacore.ch ##
     7601## ---------------------------------------------- ##
     7602_ASBOX
     7603    ) |
     7604      sed "s/^/$as_me: WARNING:     /" >&2
     7605    ;;
     7606esac
     7607echo "$as_me:$LINENO: checking for $ac_header" >&5
     7608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     7609if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7610  echo $ECHO_N "(cached) $ECHO_C" >&6
     7611else
     7612  eval "$as_ac_Header=\$ac_header_preproc"
     7613fi
     7614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     7615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     7616
     7617fi
     7618if test `eval echo '${'$as_ac_Header'}'` = yes; then
     7619  cat >>confdefs.h <<_ACEOF
     7620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     7621_ACEOF
     7622
     7623fi
     7624
     7625done
     7626
    73647627echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
    73657628echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
     
    76727935Usually this means the macro was only invoked conditionally." >&5
    76737936echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
     7937Usually this means the macro was only invoked conditionally." >&2;}
     7938   { (exit 1); exit 1; }; }
     7939fi
     7940if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
     7941  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
     7942Usually this means the macro was only invoked conditionally." >&5
     7943echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
    76747944Usually this means the macro was only invoked conditionally." >&2;}
    76757945   { (exit 1); exit 1; }; }
     
    79468216cat >&5 <<_CSEOF
    79478217
    7948 This file was extended by orxonox $as_me 2.0.1-pre-alpha, which was
     8218This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was
    79498219generated by GNU Autoconf 2.59.  Invocation command line was
    79508220
     
    80098279cat >>$CONFIG_STATUS <<_ACEOF
    80108280ac_cs_version="\\
    8011 orxonox config.status 2.0.1-pre-alpha
     8281orxonox config.status 0.2.1-pre-alpha
    80128282configured by $0, generated by GNU Autoconf 2.59,
    80138283  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     
    82768546s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
    82778547s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
     8548s,@CURL_LIBS@,$CURL_LIBS,;t t
     8549s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
     8550s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
     8551s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
    82788552s,@LIBOBJS@,$LIBOBJS,;t t
    82798553s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  • orxonox/branches/updater/configure.ac

    r3240 r3243  
    5555  echo "no"
    5656fi
     57
     58## libCurl disabled?
     59AC_MSG_CHECKING([if libcURL should be enabled])
     60AC_ARG_WITH([curl],
     61        AC_HELP_STRING( [--without-curl],
     62        [Prevents libcURL from being loaded]), [def_curl=no], [def_curl=yes])
     63if test "$def_curl" = yes; then
     64  echo "yes"
     65fi
     66if test "$def_curl" = no; then
     67  echo "no"
     68fi
     69
    5770### SDL_image-disable
    5871def_sdl_image=yes
     
    339352AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes)
    340353
     354## checking for libcURL
     355if test "$def_curl" = yes; then
     356
     357 AC_CHECK_HEADERS([curl/curl.h], curlHeader="yes", curlHeader="no")
     358 AC_CHECK_LIB([curl], [main], [FOUND_curl=yes])
     359 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
     360  have_curl=yes
     361  CURL_LIBS=`curl-config --libs`
     362  CURLCFLAGS=`curl-config --cflags`
     363  AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [if we have CURL])
     364 else
     365  have_curl=no
     366 fi
     367
     368fi
     369AC_SUBST(CURL_LIBS)
     370AC_SUBST(CURL_CFLAGS)
     371AM_CONDITIONAL(HAVE_CURL, test x$have_curl = xyes)
    341372
    342373
  • orxonox/branches/updater/src/Makefile.in

    r3237 r3243  
    110110CPP = @CPP@
    111111CPPFLAGS = @CPPFLAGS@
     112CURL_CFLAGS = @CURL_CFLAGS@
     113CURL_LIBS = @CURL_LIBS@
    112114CXX = @CXX@
    113115CXXDEPMODE = @CXXDEPMODE@
     
    127129GTK2_CFLAGS = @GTK2_CFLAGS@
    128130GTK2_LIBS = @GTK2_LIBS@
     131HAVE_CURL_FALSE = @HAVE_CURL_FALSE@
     132HAVE_CURL_TRUE = @HAVE_CURL_TRUE@
    129133HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@
    130134HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@
  • orxonox/branches/updater/src/console/Makefile.in

    r3219 r3243  
    8787CPP = @CPP@
    8888CPPFLAGS = @CPPFLAGS@
     89CURL_CFLAGS = @CURL_CFLAGS@
     90CURL_LIBS = @CURL_LIBS@
    8991CXX = @CXX@
    9092CXXDEPMODE = @CXXDEPMODE@
     
    104106GTK2_CFLAGS = @GTK2_CFLAGS@
    105107GTK2_LIBS = @GTK2_LIBS@
     108HAVE_CURL_FALSE = @HAVE_CURL_FALSE@
     109HAVE_CURL_TRUE = @HAVE_CURL_TRUE@
    106110HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@
    107111HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@
  • orxonox/branches/updater/src/gui/Makefile.in

    r3219 r3243  
    9494CPP = @CPP@
    9595CPPFLAGS = @CPPFLAGS@
     96CURL_CFLAGS = @CURL_CFLAGS@
     97CURL_LIBS = @CURL_LIBS@
    9698CXX = @CXX@
    9799CXXDEPMODE = @CXXDEPMODE@
     
    111113GTK2_CFLAGS = @GTK2_CFLAGS@
    112114GTK2_LIBS = @GTK2_LIBS@
     115HAVE_CURL_FALSE = @HAVE_CURL_FALSE@
     116HAVE_CURL_TRUE = @HAVE_CURL_TRUE@
    113117HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@
    114118HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@
  • orxonox/branches/updater/src/importer/Makefile.in

    r3219 r3243  
    8888CPP = @CPP@
    8989CPPFLAGS = @CPPFLAGS@
     90CURL_CFLAGS = @CURL_CFLAGS@
     91CURL_LIBS = @CURL_LIBS@
    9092CXX = @CXX@
    9193CXXDEPMODE = @CXXDEPMODE@
     
    105107GTK2_CFLAGS = @GTK2_CFLAGS@
    106108GTK2_LIBS = @GTK2_LIBS@
     109HAVE_CURL_FALSE = @HAVE_CURL_FALSE@
     110HAVE_CURL_TRUE = @HAVE_CURL_TRUE@
    107111HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@
    108112HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@
Note: See TracChangeset for help on using the changeset viewer.