Changeset 540 for trunk/configure


Ignore:
Timestamp:
02/05/10 13:47:06 (2 years ago)
Author:
eagle
Message:
  • debian directory included into source package.
  • freebsd directory included into source package.
  • acx_pthread.m4 replaced by newer ax_pthread.m4 for autoconf.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r538 r540  
    11#! /bin/sh 
    22# Guess values for system-dependent variables and create Makefiles. 
    3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.2.r538. 
     3# Generated by GNU Autoconf 2.62 for onioncat 0.2.2.r540. 
    44# 
    55# Report bugs to <rahra@cypherpunk.at>. 
     
    597597PACKAGE_NAME='onioncat' 
    598598PACKAGE_TARNAME='onioncat' 
    599 PACKAGE_VERSION='0.2.2.r538' 
    600 PACKAGE_STRING='onioncat 0.2.2.r538' 
     599PACKAGE_VERSION='0.2.2.r540' 
     600PACKAGE_STRING='onioncat 0.2.2.r540' 
    601601PACKAGE_BUGREPORT='rahra@cypherpunk.at' 
    602602 
     
    684684host_vendor 
    685685host_os 
    686 acx_pthread_config 
     686ax_pthread_config 
    687687PTHREAD_CC 
    688688PTHREAD_LIBS 
     
    12611261  # This message is too long to be a string in the A/UX 3.1 sh. 
    12621262  cat <<_ACEOF 
    1263 \`configure' configures onioncat 0.2.2.r538 to adapt to many kinds of systems. 
     1263\`configure' configures onioncat 0.2.2.r540 to adapt to many kinds of systems. 
    12641264 
    12651265Usage: $0 [OPTION]... [VAR=VALUE]... 
     
    13311331if test -n "$ac_init_help"; then 
    13321332  case $ac_init_help in 
    1333      short | recursive ) echo "Configuration of onioncat 0.2.2.r538:";; 
     1333     short | recursive ) echo "Configuration of onioncat 0.2.2.r540:";; 
    13341334   esac 
    13351335  cat <<\_ACEOF 
     
    14231423if $ac_init_version; then 
    14241424  cat <<\_ACEOF 
    1425 onioncat configure 0.2.2.r538 
     1425onioncat configure 0.2.2.r540 
    14261426generated by GNU Autoconf 2.62 
    14271427 
     
    14371437running configure, to aid debugging if configure makes a mistake. 
    14381438 
    1439 It was created by onioncat $as_me 0.2.2.r538, which was 
     1439It was created by onioncat $as_me 0.2.2.r540, which was 
    14401440generated by GNU Autoconf 2.62.  Invocation command line was 
    14411441 
     
    20862086# Define the identity of the package. 
    20872087 PACKAGE='onioncat' 
    2088  VERSION='0.2.2.r538' 
     2088 VERSION='0.2.2.r540' 
    20892089 
    20902090 
     
    22372237 
    22382238cat >>confdefs.h <<\_ACEOF 
    2239 #define SVN_REVISION "538" 
     2239#define SVN_REVISION "540" 
    22402240_ACEOF 
    22412241 
     
    34173417fi 
    34183418 
     3419 
     3420# =========================================================================== 
     3421#           http://www.nongnu.org/autoconf-archive/ax_pthread.html 
     3422# =========================================================================== 
     3423# 
     3424# SYNOPSIS 
     3425# 
     3426#   AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 
     3427# 
     3428# DESCRIPTION 
     3429# 
     3430#   This macro figures out how to build C programs using POSIX threads. It 
     3431#   sets the PTHREAD_LIBS output variable to the threads library and linker 
     3432#   flags, and the PTHREAD_CFLAGS output variable to any special C compiler 
     3433#   flags that are needed. (The user can also force certain compiler 
     3434#   flags/libs to be tested by setting these environment variables.) 
     3435# 
     3436#   Also sets PTHREAD_CC to any special C compiler that is needed for 
     3437#   multi-threaded programs (defaults to the value of CC otherwise). (This 
     3438#   is necessary on AIX to use the special cc_r compiler alias.) 
     3439# 
     3440#   NOTE: You are assumed to not only compile your program with these flags, 
     3441#   but also link it with them as well. e.g. you should link with 
     3442#   $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS 
     3443# 
     3444#   If you are only building threads programs, you may wish to use these 
     3445#   variables in your default LIBS, CFLAGS, and CC: 
     3446# 
     3447#     LIBS="$PTHREAD_LIBS $LIBS" 
     3448#     CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 
     3449#     CC="$PTHREAD_CC" 
     3450# 
     3451#   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant 
     3452#   has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name 
     3453#   (e.g. PTHREAD_CREATE_UNDETACHED on AIX). 
     3454# 
     3455#   ACTION-IF-FOUND is a list of shell commands to run if a threads library 
     3456#   is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it 
     3457#   is not found. If ACTION-IF-FOUND is not specified, the default action 
     3458#   will define HAVE_PTHREAD. 
     3459# 
     3460#   Please let the authors know if this macro fails on any platform, or if 
     3461#   you have any other suggestions or comments. This macro was based on work 
     3462#   by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help 
     3463#   from M. Frigo), as well as ac_pthread and hb_pthread macros posted by 
     3464#   Alejandro Forero Cuervo to the autoconf macro repository. We are also 
     3465#   grateful for the helpful feedback of numerous users. 
     3466# 
     3467# LICENSE 
     3468# 
     3469#   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> 
     3470# 
     3471#   This program is free software: you can redistribute it and/or modify it 
     3472#   under the terms of the GNU General Public License as published by the 
     3473#   Free Software Foundation, either version 3 of the License, or (at your 
     3474#   option) any later version. 
     3475# 
     3476#   This program is distributed in the hope that it will be useful, but 
     3477#   WITHOUT ANY WARRANTY; without even the implied warranty of 
     3478#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 
     3479#   Public License for more details. 
     3480# 
     3481#   You should have received a copy of the GNU General Public License along 
     3482#   with this program. If not, see <http://www.gnu.org/licenses/>. 
     3483# 
     3484#   As a special exception, the respective Autoconf Macro's copyright owner 
     3485#   gives unlimited permission to copy, distribute and modify the configure 
     3486#   scripts that are the output of Autoconf when processing the Macro. You 
     3487#   need not follow the terms of the GNU General Public License when using 
     3488#   or distributing such scripts, even though portions of the text of the 
     3489#   Macro appear in them. The GNU General Public License (GPL) does govern 
     3490#   all other use of the material that constitutes the Autoconf Macro. 
     3491# 
     3492#   This special exception to the GPL applies to versions of the Autoconf 
     3493#   Macro released by the Autoconf Archive. When you make and distribute a 
     3494#   modified version of the Autoconf Macro, you may extend this special 
     3495#   exception to the GPL to apply to your modified version as well. 
     3496 
     3497#serial 5 
     3498 
     3499# This is what autoupdate's m4 run will expand.  It fires 
     3500# the warning (with _au_warn_XXX), outputs it into the 
     3501# updated configure.ac (with AC_DIAGNOSE), and then outputs 
     3502# the replacement expansion. 
     3503 
     3504 
     3505# This is an auxiliary macro that is also run when 
     3506# autoupdate runs m4.  It simply calls m4_warning, but 
     3507# we need a wrapper so that each warning is emitted only 
     3508# once.  We break the quoting in m4_warning's argument in 
     3509# order to expand this macro's arguments, not AU_DEFUN's. 
     3510 
     3511 
     3512# Finally, this is the expansion that is picked up by 
     3513# autoconf.  It tells the user to run autoupdate, and 
     3514# then outputs the replacement expansion.  We do not care 
     3515# about autoupdate's warning because that contains 
     3516# information on what to do *after* running autoupdate. 
     3517 
     3518 
    34193519# Make sure we can run config.sub. 
    34203520$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 
     
    35103610ac_compiler_gnu=$ac_cv_c_compiler_gnu 
    35113611 
    3512 acx_pthread_ok=no 
     3612ax_pthread_ok=no 
    35133613 
    35143614# We used to check for pthread.h first, but this fails if pthread.h 
     
    35693669         $as_test_x conftest$ac_exeext 
    35703670       }; then 
    3571   acx_pthread_ok=yes 
     3671  ax_pthread_ok=yes 
    35723672else 
    35733673  $as_echo "$as_me: failed program was:" >&5 
     
    35803680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
    35813681      conftest$ac_exeext conftest.$ac_ext 
    3582         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 
    3583 $as_echo "$acx_pthread_ok" >&6; } 
    3584         if test x"$acx_pthread_ok" = xno; then 
     3682        { $as_echo "$as_me:$LINENO: result: $ax_pthread_ok" >&5 
     3683$as_echo "$ax_pthread_ok" >&6; } 
     3684        if test x"$ax_pthread_ok" = xno; then 
    35853685                PTHREAD_LIBS="" 
    35863686                PTHREAD_CFLAGS="" 
     
    36003700# which is a program returning the flags for the Pth emulation library. 
    36013701 
    3602 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 
     3702ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 
    36033703 
    36043704# The ordering *is* (sometimes) important.  Some notes on the 
     
    36333733        # we'll just look for -pthreads and -lpthread first: 
    36343734 
    3635         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 
     3735        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 
    36363736        ;; 
    36373737esac 
    36383738 
    3639 if test x"$acx_pthread_ok" = xno; then 
    3640 for flag in $acx_pthread_flags; do 
     3739if test x"$ax_pthread_ok" = xno; then 
     3740for flag in $ax_pthread_flags; do 
    36413741 
    36423742        case $flag in 
     
    36523752                ;; 
    36533753 
    3654                 pthread-config) 
    3655                 # Extract the first word of "pthread-config", so it can be a program name with args. 
     3754      pthread-config) 
     3755      # Extract the first word of "pthread-config", so it can be a program name with args. 
    36563756set dummy pthread-config; ac_word=$2 
    36573757{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 
    36583758$as_echo_n "checking for $ac_word... " >&6; } 
    3659 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then 
     3759if test "${ac_cv_prog_ax_pthread_config+set}" = set; then 
    36603760  $as_echo_n "(cached) " >&6 
    36613761else 
    3662   if test -n "$acx_pthread_config"; then 
    3663   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 
     3762  if test -n "$ax_pthread_config"; then 
     3763  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 
    36643764else 
    36653765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
     
    36703770  for ac_exec_ext in '' $ac_executable_extensions; do 
    36713771  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    3672     ac_cv_prog_acx_pthread_config="yes" 
     3772    ac_cv_prog_ax_pthread_config="yes" 
    36733773    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
    36743774    break 2 
     
    36783778IFS=$as_save_IFS 
    36793779 
    3680   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 
    3681 fi 
    3682 fi 
    3683 acx_pthread_config=$ac_cv_prog_acx_pthread_config 
    3684 if test -n "$acx_pthread_config"; then 
    3685   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 
    3686 $as_echo "$acx_pthread_config" >&6; } 
     3780  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 
     3781fi 
     3782fi 
     3783ax_pthread_config=$ac_cv_prog_ax_pthread_config 
     3784if test -n "$ax_pthread_config"; then 
     3785  { $as_echo "$as_me:$LINENO: result: $ax_pthread_config" >&5 
     3786$as_echo "$ax_pthread_config" >&6; } 
    36873787else 
    36883788  { $as_echo "$as_me:$LINENO: result: no" >&5 
     
    36913791 
    36923792 
    3693                 if test x"$acx_pthread_config" = xno; then continue; fi 
    3694                 PTHREAD_CFLAGS="`pthread-config --cflags`" 
    3695                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 
    3696                 ;; 
     3793      if test x"$ax_pthread_config" = xno; then continue; fi 
     3794      PTHREAD_CFLAGS="`pthread-config --cflags`" 
     3795      PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 
     3796      ;; 
    36973797 
    36983798                *) 
     
    37243824/* end confdefs.h.  */ 
    37253825#include <pthread.h> 
     3826                static void routine(void* a) {a=0;} 
     3827                static void* start_routine(void* a) {return a;} 
    37263828int 
    37273829main () 
    37283830{ 
    3729 pthread_t th; pthread_join(th, 0); 
    3730                      pthread_attr_init(0); pthread_cleanup_push(0, 0); 
    3731                      pthread_create(0,0,0,0); pthread_cleanup_pop(0); 
     3831pthread_t th; pthread_attr_t attr; 
     3832                     pthread_join(th, 0); 
     3833                     pthread_attr_init(&attr); 
     3834                     pthread_cleanup_push(routine, 0); 
     3835                     pthread_create(&th,0,start_routine,0); 
     3836                     pthread_cleanup_pop(0); 
    37323837  ; 
    37333838  return 0; 
     
    37553860         $as_test_x conftest$ac_exeext 
    37563861       }; then 
    3757   acx_pthread_ok=yes 
     3862  ax_pthread_ok=yes 
    37583863else 
    37593864  $as_echo "$as_me: failed program was:" >&5 
     
    37703875        CFLAGS="$save_CFLAGS" 
    37713876 
    3772         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 
    3773 $as_echo "$acx_pthread_ok" >&6; } 
    3774         if test "x$acx_pthread_ok" = xyes; then 
     3877        { $as_echo "$as_me:$LINENO: result: $ax_pthread_ok" >&5 
     3878$as_echo "$ax_pthread_ok" >&6; } 
     3879        if test "x$ax_pthread_ok" = xyes; then 
    37753880                break; 
    37763881        fi 
     
    37823887 
    37833888# Various other checks: 
    3784 if test "x$acx_pthread_ok" = xyes; then 
     3889if test "x$ax_pthread_ok" = xyes; then 
    37853890        save_LIBS="$LIBS" 
    37863891        LIBS="$PTHREAD_LIBS $LIBS" 
     
    37893894 
    37903895        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 
    3791         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 
     3896   { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 
    37923897$as_echo_n "checking for joinable pthread attribute... " >&6; } 
    3793         attr_name=unknown 
    3794         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 
    3795             cat >conftest.$ac_ext <<_ACEOF 
     3898   attr_name=unknown 
     3899   for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 
     3900       cat >conftest.$ac_ext <<_ACEOF 
    37963901/* confdefs.h.  */ 
    37973902_ACEOF 
     
    38403945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
    38413946      conftest$ac_exeext conftest.$ac_ext 
    3842         done 
     3947   done 
    38433948        { $as_echo "$as_me:$LINENO: result: $attr_name" >&5 
    38443949$as_echo "$attr_name" >&6; } 
     
    38683973 
    38693974        # More AIX lossage: must compile with xlc_r or cc_r 
    3870         if test x"$GCC" != xyes; then 
     3975   if test x"$GCC" != xyes; then 
    38713976          for ac_prog in xlc_r cc_r 
    38723977do 
     
    39144019        else 
    39154020          PTHREAD_CC=$CC 
    3916         fi 
     4021   fi 
    39174022else 
    39184023        PTHREAD_CC="$CC" 
     
    39244029 
    39254030# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 
    3926 if test x"$acx_pthread_ok" = xyes; then 
     4031if test x"$ax_pthread_ok" = xyes; then 
    39274032 
    39284033cat >>confdefs.h <<\_ACEOF 
     
    39324037        : 
    39334038else 
    3934         acx_pthread_ok=no 
     4039        ax_pthread_ok=no 
    39354040 
    39364041fi 
     
    39424047 
    39434048 
     4049LIBS="$PTHREAD_LIBS $LIBS" 
     4050CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 
     4051CC="$PTHREAD_CC" 
     4052 
    39444053 
    39454054# Checks for libraries. 
     
    39474056#AC_CHECK_LIB([rt], [clock_gettime]) 
    39484057#AC_CHECK_LIB([readline], [main]) 
    3949  
    3950 LIBS="$PTHREAD_LIBS $LIBS" 
    3951 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 
    3952 CC="$PTHREAD_CC" 
    39534058 
    39544059# Checks for header files. 
     
    47864891 
    47874892 
    4788 ac_config_files="$ac_config_files Makefile src/cygwin/Makefile src/Makefile man/Makefile" 
     4893ac_config_files="$ac_config_files Makefile src/cygwin/Makefile src/Makefile man/Makefile debian/Makefile freebsd/Makefile" 
    47894894 
    47904895cat >confcache <<\_ACEOF 
     
    52215326# values after options handling. 
    52225327ac_log=" 
    5223 This file was extended by onioncat $as_me 0.2.2.r538, which was 
     5328This file was extended by onioncat $as_me 0.2.2.r540, which was 
    52245329generated by GNU Autoconf 2.62.  Invocation command line was 
    52255330 
     
    52745379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 
    52755380ac_cs_version="\\ 
    5276 onioncat config.status 0.2.2.r538 
     5381onioncat config.status 0.2.2.r540 
    52775382configured by $0, generated by GNU Autoconf 2.62, 
    52785383  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 
     
    54025507    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 
    54035508    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 
     5509    "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;; 
     5510    "freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES freebsd/Makefile" ;; 
    54045511 
    54055512  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 
Note: See TracChangeset for help on using the changeset viewer.