~ubuntu-branches/ubuntu/vivid/znc/vivid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2014-05-09 09:55:57 UTC
  • mfrom: (34.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20140509095557-5i5ltee23m2hg96p
Tags: 1.4-1
* New upstream release.
  - Drop merged patch 01-webadmin-dos.
  - Upstream provides a changelog now. Remove lintian overrides.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.69 for znc 1.2.
 
3
# Generated by GNU Autoconf 2.69 for znc 1.4.
4
4
#
5
5
#
6
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
577
577
# Identity of this package.
578
578
PACKAGE_NAME='znc'
579
579
PACKAGE_TARNAME='znc'
580
 
PACKAGE_VERSION='1.2'
581
 
PACKAGE_STRING='znc 1.2'
 
580
PACKAGE_VERSION='1.4'
 
581
PACKAGE_STRING='znc 1.4'
582
582
PACKAGE_BUGREPORT=''
583
583
PACKAGE_URL=''
584
584
 
1263
1263
  # Omit some internal or obsolete options to make the list less imposing.
1264
1264
  # This message is too long to be a string in the A/UX 3.1 sh.
1265
1265
  cat <<_ACEOF
1266
 
\`configure' configures znc 1.2 to adapt to many kinds of systems.
 
1266
\`configure' configures znc 1.4 to adapt to many kinds of systems.
1267
1267
 
1268
1268
Usage: $0 [OPTION]... [VAR=VALUE]...
1269
1269
 
1328
1328
 
1329
1329
if test -n "$ac_init_help"; then
1330
1330
  case $ac_init_help in
1331
 
     short | recursive ) echo "Configuration of znc 1.2:";;
 
1331
     short | recursive ) echo "Configuration of znc 1.4:";;
1332
1332
   esac
1333
1333
  cat <<\_ACEOF
1334
1334
 
1461
1461
test -n "$ac_init_help" && exit $ac_status
1462
1462
if $ac_init_version; then
1463
1463
  cat <<\_ACEOF
1464
 
znc configure 1.2
 
1464
znc configure 1.4
1465
1465
generated by GNU Autoconf 2.69
1466
1466
 
1467
1467
Copyright (C) 2012 Free Software Foundation, Inc.
1708
1708
This file contains any messages produced by compilers while
1709
1709
running configure, to aid debugging if configure makes a mistake.
1710
1710
 
1711
 
It was created by znc $as_me 1.2, which was
 
1711
It was created by znc $as_me 1.4, which was
1712
1712
generated by GNU Autoconf 2.69.  Invocation command line was
1713
1713
 
1714
1714
  $ $0 $@
3277
3277
        fi
3278
3278
}
3279
3279
 
3280
 
appendCXX "-D_FORTIFY_SOURCE=2"
3281
 
 
3282
3280
case "${host_os}" in
3283
3281
        freebsd*)
3284
3282
                # -D__GNU_LIBRARY__ makes this work on fbsd 4.11
3536
3534
fi
3537
3535
 
3538
3536
 
 
3537
# In old times needed to define _FORTIFY_SOURCE to 2 ourself.
 
3538
# Then GCC started to define it itself to 2. It was ok.
 
3539
# But then GCC 4.7 started to define it to 0 or 2 depending on optimization level, and it started to conflict with our define.
 
3540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler predefines _FORTIFY_SOURCE" >&5
 
3541
$as_echo_n "checking whether compiler predefines _FORTIFY_SOURCE... " >&6; }
 
3542
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3543
/* end confdefs.h.  */
 
3544
 
 
3545
 
 
3546
 
 
3547
int
 
3548
main ()
 
3549
{
 
3550
 
 
3551
                #ifndef _FORTIFY_SOURCE
 
3552
                #error "Just checking, nothing fatal here"
 
3553
                #endif
 
3554
 
 
3555
  ;
 
3556
  return 0;
 
3557
}
 
3558
 
 
3559
_ACEOF
 
3560
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3561
 
 
3562
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3563
$as_echo "yes" >&6; }
 
3564
 
 
3565
else
 
3566
 
 
3567
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3568
$as_echo "no" >&6; }
 
3569
        appendCXX "-D_FORTIFY_SOURCE=2"
 
3570
 
 
3571
fi
 
3572
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3573
 
3539
3574
if test "$DEBUG" != "no"; then
3540
3575
        appendCXX -ggdb3
3541
3576
 
4635
4670
if test "x$PERL" != xno -o "x$PYTHON" != xno; then
4636
4671
        old_USESWIG="$USESWIG"
4637
4672
        if test "x$USESWIG" != "xno"; then
 
4673
                if test -z "$ISDARWIN"; then
4638
4674
 
4639
4675
        SWIG_ERROR=""
4640
4676
 
4747
4783
                                        $ac_path_SWIG -python -py3 -c++ -shadow conftest-python.i >&5 && \
4748
4784
                                                echo "python wrapper created" >&5 && \
4749
4785
                                                echo "testing std::set... ">&5 && \
4750
 
                                                grep SInt_discard conftest.py >& /dev/null && \
 
4786
                                                grep SInt_discard conftest.py > /dev/null 2>&1 && \
4751
4787
                                                echo "std::set works" >&5 && \
4752
4788
                                                echo "testing PyInt_FromSize_t..." >&5 && \
4753
 
                                                grep '#define PyInt_FromSize_t' conftest-python_wrap.cxx >& /dev/null && \
 
4789
                                                grep '#define PyInt_FromSize_t' conftest-python_wrap.cxx > /dev/null 2>&1 && \
4754
4790
                                                echo "PyInt_FromSize_t is defined" >&5 && \
4755
4791
                                        $ac_path_SWIG -perl -c++ -shadow conftest-perl.i >&5 && \
4756
4792
                                                echo "perl wrapper created" >&5 && \
4801
4837
        fi
4802
4838
 
4803
4839
 
 
4840
                else
 
4841
                        # Old SWIG doesn't like libc++, see https://github.com/swig/swig/issues/73
 
4842
 
 
4843
        SWIG_ERROR=""
 
4844
 
 
4845
        if test -n "2.0.12"; then
 
4846
                # Calculate the required version number components
 
4847
                required=2.0.12
 
4848
                required_major=`echo $required | sed 's/[^0-9].*//'`
 
4849
                if test -z "$required_major" ; then
 
4850
                        required_major=0
 
4851
                fi
 
4852
                required=`echo $required | sed 's/[0-9]*[^0-9]//'`
 
4853
                required_minor=`echo $required | sed 's/[^0-9].*//'`
 
4854
                if test -z "$required_minor" ; then
 
4855
                        required_minor=0
 
4856
                fi
 
4857
                required=`echo $required | sed 's/[0-9]*[^0-9]//'`
 
4858
                required_patch=`echo $required | sed 's/[^0-9].*//'`
 
4859
                if test -z "$required_patch" ; then
 
4860
                        required_patch=0
 
4861
                fi
 
4862
        fi
 
4863
 
 
4864
        # for "python 3 abc set" and "PyInt_FromSize_t in python3" checks
 
4865
 
 
4866
        cat <<-END > conftest-python.i
 
4867
                %module conftest;
 
4868
                %include <pyabc.i>
 
4869
                %include <std_set.i>
 
4870
                %template(SInt) std::set<int>;
 
4871
        END
 
4872
 
 
4873
        # check if perl has std::...::size_type defined. Don't add new tests to this .i; it'll break this test due to check for "NewPointerObj(("
 
4874
 
 
4875
        cat <<-END > conftest-perl.i
 
4876
                %module conftest;
 
4877
                %include <std_vector.i>
 
4878
                %include <std_list.i>
 
4879
                %include <std_deque.i>
 
4880
                %template() std::vector<int>;
 
4881
                %template() std::list<int>;
 
4882
                %template() std::deque<int>;
 
4883
                std::vector<int>::size_type checkVector();
 
4884
                std::list<int>::size_type checkList();
 
4885
                std::deque<int>::size_type checkDeque();
 
4886
        END
 
4887
        SWIG_installed_versions=""
 
4888
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG >= 2.0.12" >&5
 
4889
$as_echo_n "checking for SWIG >= 2.0.12... " >&6; }
 
4890
if ${znc_cv_path_SWIG+:} false; then :
 
4891
  $as_echo_n "(cached) " >&6
 
4892
else
 
4893
 
 
4894
                if test -z "$SWIG"; then
 
4895
  ac_path_SWIG_found=false
 
4896
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4897
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4898
for as_dir in $PATH
 
4899
do
 
4900
  IFS=$as_save_IFS
 
4901
  test -z "$as_dir" && as_dir=.
 
4902
    for ac_prog in swig swig2.0; do
 
4903
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4904
      ac_path_SWIG="$as_dir/$ac_prog$ac_exec_ext"
 
4905
      as_fn_executable_p "$ac_path_SWIG" || continue
 
4906
 
 
4907
                        echo trying $ac_path_SWIG >&5
 
4908
                        $ac_path_SWIG -version >&5
 
4909
                        swig_version=`$ac_path_SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
 
4910
                        if test -n "$swig_version"; then
 
4911
                                swig_right_version=1
 
4912
 
 
4913
                                SWIG_installed_versions="$SWIG_installed_versions $swig_version "
 
4914
 
 
4915
                                if test -n "$required"; then
 
4916
                                        # Calculate the available version number components
 
4917
                                        available=$swig_version
 
4918
 
 
4919
                                        available_major=`echo $available | sed 's/[^0-9].*//'`
 
4920
                                        if test -z "$available_major" ; then
 
4921
                                                available_major=0
 
4922
                                        fi
 
4923
                                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
 
4924
                                        available_minor=`echo $available | sed 's/[^0-9].*//'`
 
4925
                                        if test -z "$available_minor" ; then
 
4926
                                                available_minor=0
 
4927
                                        fi
 
4928
                                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
 
4929
                                        available_patch=`echo $available | sed 's/[^0-9].*//'`
 
4930
                                        if test -z "$available_patch" ; then
 
4931
                                                available_patch=0
 
4932
                                        fi
 
4933
 
 
4934
                                        if test $available_major -lt $required_major; then
 
4935
                                                swig_right_version=0
 
4936
                                        elif test $available_major -eq $required_major; then
 
4937
                                                if test $available_minor -lt $required_minor; then
 
4938
                                                        swig_right_version=0
 
4939
                                                elif test $available_minor -eq $required_minor; then
 
4940
                                                        if test $available_patch -lt $required_patch; then
 
4941
                                                                swig_right_version=0
 
4942
                                                        fi
 
4943
                                                fi
 
4944
                                        fi
 
4945
                                fi
 
4946
 
 
4947
                                if test $swig_right_version -eq 1; then
 
4948
                                        # "python 3 abc set", "PyInt_FromSize_t in python3" and "perl size_type" checks
 
4949
                                        echo "checking behavior of this SWIG" >&5
 
4950
 
 
4951
                                        $ac_path_SWIG -python -py3 -c++ -shadow conftest-python.i >&5 && \
 
4952
                                                echo "python wrapper created" >&5 && \
 
4953
                                                echo "testing std::set... ">&5 && \
 
4954
                                                grep SInt_discard conftest.py > /dev/null 2>&1 && \
 
4955
                                                echo "std::set works" >&5 && \
 
4956
                                                echo "testing PyInt_FromSize_t..." >&5 && \
 
4957
                                                grep '#define PyInt_FromSize_t' conftest-python_wrap.cxx > /dev/null 2>&1 && \
 
4958
                                                echo "PyInt_FromSize_t is defined" >&5 && \
 
4959
                                        $ac_path_SWIG -perl -c++ -shadow conftest-perl.i >&5 && \
 
4960
                                                echo "perl wrapper created" >&5 && \
 
4961
                                                echo "testing size_type..." >&5 && \
 
4962
                                                test 0 -eq `grep -c 'NewPointerObj((' conftest-perl_wrap.cxx` && \
 
4963
                                                echo "size_type work" >&5 && \
 
4964
                                        znc_cv_path_SWIG=$ac_path_SWIG \
 
4965
                                                ac_path_SWIG_found=:
 
4966
                                        if test "x$ac_path_SWIG_found" != "x:"; then
 
4967
                                                echo "fail" >&5
 
4968
                                        fi
 
4969
                                        rm -f conftest-python_wrap.cxx conftest.py
 
4970
                                        rm -f conftest-perl_wrap.cxx conftest.pm
 
4971
 
 
4972
 
 
4973
                                else
 
4974
                                        echo "SWIG version >= 2.0.12 is required.  You have '$swig_version'" >&5
 
4975
                                fi
 
4976
                        fi
 
4977
                        echo end trying $ac_path_SWIG >&5
 
4978
 
 
4979
      $ac_path_SWIG_found && break 3
 
4980
    done
 
4981
  done
 
4982
  done
 
4983
IFS=$as_save_IFS
 
4984
  if test -z "$ac_cv_path_SWIG"; then
 
4985
    :
 
4986
  fi
 
4987
else
 
4988
  ac_cv_path_SWIG=$SWIG
 
4989
fi
 
4990
 
 
4991
 
 
4992
fi
 
4993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $znc_cv_path_SWIG" >&5
 
4994
$as_echo "$znc_cv_path_SWIG" >&6; }
 
4995
        rm -f conftest-python.i conftest-perl.i
 
4996
        if test -n "$SWIG_installed_versions"; then
 
4997
                { $as_echo "$as_me:${as_lineno-$LINENO}: Following SWIG versions are found:$SWIG_installed_versions" >&5
 
4998
$as_echo "$as_me: Following SWIG versions are found:$SWIG_installed_versions" >&6;}
 
4999
        fi
 
5000
 
 
5001
        SWIG=$znc_cv_path_SWIG
 
5002
 
 
5003
        if test -n "$SWIG"; then
 
5004
                SWIG_LIB=`$SWIG -swiglib`
 
5005
        fi
 
5006
 
 
5007
 
 
5008
                fi
4804
5009
                test -z "$SWIG" && USESWIG=no
4805
5010
                if test "x$USESWIG" = xno -a "x$old_USESWIG" = yes; then
4806
5011
                        as_fn_error $? "Could not found appropriate SWIG installation. Check config.log for details." "$LINENO" 5
6337
6542
 
6338
6543
# this is in the end, for not trying to include it when it doesn't exist yet
6339
6544
appendCXX "-include znc/zncconfig.h"
 
6545
appendMod "-include znc/zncconfig.h"
6340
6546
 
6341
6547
 
6342
6548
 
6883
7089
# report actual input values of CONFIG_FILES etc. instead of their
6884
7090
# values after options handling.
6885
7091
ac_log="
6886
 
This file was extended by znc $as_me 1.2, which was
 
7092
This file was extended by znc $as_me 1.4, which was
6887
7093
generated by GNU Autoconf 2.69.  Invocation command line was
6888
7094
 
6889
7095
  CONFIG_FILES    = $CONFIG_FILES
6945
7151
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6946
7152
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6947
7153
ac_cs_version="\\
6948
 
znc config.status 1.2
 
7154
znc config.status 1.4
6949
7155
configured by $0, generated by GNU Autoconf 2.69,
6950
7156
  with options \\"\$ac_cs_config\\"
6951
7157
 
7663
7869
 
7664
7870
 
7665
7871
echo
7666
 
echo ZNC 1.2 configured
 
7872
echo ZNC 1.4 configured
7667
7873
echo
7668
7874
echo "prefix:       $prefix"
7669
7875
echo "debug:        $DEBUG"