~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to acinclude.m4

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2013-02-12 08:54:32 UTC
  • mfrom: (3.4.34 sid)
  • Revision ID: package-import@ubuntu.com-20130212085432-r1fyi0b37enr93pp
Tags: 7.29.0-1ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
* Add warning to debian/patches/series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
    ]])
131
131
  ],[
132
132
    tst_lib_xnet_required="yes"
133
 
    LIBS="$LIBS -lxnet"
 
133
    LIBS="-lxnet $LIBS"
134
134
  ])
135
135
  AC_MSG_RESULT([$tst_lib_xnet_required])
136
136
])
150
150
#endif])
151
151
  AC_BEFORE([$0], [AC_SYS_LARGEFILE])dnl
152
152
  AC_BEFORE([$0], [CURL_CONFIGURE_REENTRANT])dnl
 
153
  AC_BEFORE([$0], [CURL_CONFIGURE_PULL_SYS_POLL])dnl
153
154
  AC_MSG_CHECKING([if OS is AIX (to define _ALL_SOURCE)])
154
155
  AC_EGREP_CPP([yes_this_is_aix],[
155
156
#ifdef _AIX
2153
2154
        else
2154
2155
          LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
2155
2156
        fi
2156
 
        CURL_LIBS="$CURL_LIBS $curl_cv_gclk_LIBS"
2157
2157
        AC_MSG_RESULT([$curl_cv_gclk_LIBS])
2158
2158
        ac_cv_func_clock_gettime="yes"
2159
2159
        ;;
2310
2310
  AC_REQUIRE([CURL_INCLUDES_SYS_SOCKET])dnl
2311
2311
  AC_REQUIRE([CURL_PREPROCESS_CALLCONV])dnl
2312
2312
  #
 
2313
  AC_BEFORE([$0], [CURL_CONFIGURE_PULL_SYS_POLL])dnl
 
2314
  #
2313
2315
  AC_MSG_CHECKING([for curl_socklen_t data type])
2314
2316
  curl_typeof_curl_socklen_t="unknown"
2315
2317
  for arg1 in int SOCKET; do
2418
2420
])
2419
2421
 
2420
2422
 
 
2423
dnl CURL_CONFIGURE_PULL_SYS_POLL
 
2424
dnl -------------------------------------------------
 
2425
dnl Find out if system header file sys/poll.h must be included by the
 
2426
dnl external interface, making appropriate definitions for template file
 
2427
dnl include/curl/curlbuild.h.in to properly configure and use the library.
 
2428
dnl
 
2429
dnl The need for the sys/poll.h inclusion arises mainly to properly
 
2430
dnl interface AIX systems which define macros 'events' and 'revents'.
 
2431
 
 
2432
AC_DEFUN([CURL_CONFIGURE_PULL_SYS_POLL], [
 
2433
  AC_REQUIRE([CURL_INCLUDES_POLL])dnl
 
2434
  #
 
2435
  tst_poll_events_macro_defined="unknown"
 
2436
  #
 
2437
  AC_COMPILE_IFELSE([
 
2438
    AC_LANG_PROGRAM([[
 
2439
      $curl_includes_poll
 
2440
    ]],[[
 
2441
#if defined(events) || defined(revents)
 
2442
      return 0;
 
2443
#else
 
2444
      force compilation error
 
2445
#endif
 
2446
    ]])
 
2447
  ],[
 
2448
    tst_poll_events_macro_defined="yes"
 
2449
  ],[
 
2450
    tst_poll_events_macro_defined="no"
 
2451
  ])
 
2452
  #
 
2453
  if test "$tst_poll_events_macro_defined" = "yes"; then
 
2454
    if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
 
2455
      CURL_DEFINE_UNQUOTED([CURL_PULL_SYS_POLL_H])
 
2456
    fi
 
2457
  fi
 
2458
  #
 
2459
])
 
2460
 
 
2461
 
2421
2462
dnl CURL_CHECK_FUNC_SELECT
2422
2463
dnl -------------------------------------------------
2423
2464
dnl Test if the socket select() function is available,
3215
3256
 
3216
3257
dnl CURL_CHECK_PKGCONFIG ($module, [$pcdir])
3217
3258
dnl ------------------------
3218
 
dnl search for the pkg-config tool (if not cross-compiling). Set the PKGCONFIG
3219
 
dnl variable to hold the path to it, or 'no' if not found/present.
 
3259
dnl search for the pkg-config tool. Set the PKGCONFIG variable to hold the
 
3260
dnl path to it, or 'no' if not found/present.
3220
3261
dnl
3221
3262
dnl If pkg-config is present, check that it has info about the $module or
3222
3263
dnl return "no" anyway!
3228
3269
 
3229
3270
    PKGCONFIG="no"
3230
3271
 
3231
 
    if test x$cross_compiling = xyes; then
3232
 
      dnl see if there's a pkg-specific for this host setup
3233
 
      AC_PATH_PROG( PKGCONFIG, ${host}-pkg-config, no,
3234
 
                    $PATH:/usr/bin:/usr/local/bin)
3235
 
    fi
3236
 
 
3237
 
    if test x$PKGCONFIG = xno; then
3238
 
      AC_PATH_PROG( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
3239
 
    fi
 
3272
    AC_PATH_TOOL( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
3240
3273
 
3241
3274
    if test x$PKGCONFIG != xno; then
3242
3275
      AC_MSG_CHECKING([for $1 options with pkg-config])