mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
actually check for a function present in libiconv (don't know how this test could have worked before) and don't do the check on Linux/GNU systems because libiconv is not present there and attempting to link with '-liconv' always fails (it's not necessary as the iconv functionality is always available)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
20
configure
vendored
20
configure
vendored
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.ac Revision: 95383 .
|
# From configure.ac Revision: 95624 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.61 for asterisk 1.4.
|
# Generated by GNU Autoconf 2.61 for asterisk 1.4.
|
||||||
#
|
#
|
||||||
@@ -12765,11 +12765,13 @@ _ACEOF
|
|||||||
cat confdefs.h >>conftest.$ac_ext
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#include <stdio.h>
|
#include <sys/types.h> /* for off_t */
|
||||||
|
#include <stdio.h>
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
|
int (*fp) (FILE *, off_t, int) = fseeko;
|
||||||
|
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -12809,11 +12811,13 @@ cat confdefs.h >>conftest.$ac_ext
|
|||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#define _LARGEFILE_SOURCE 1
|
#define _LARGEFILE_SOURCE 1
|
||||||
#include <stdio.h>
|
#include <sys/types.h> /* for off_t */
|
||||||
|
#include <stdio.h>
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
|
int (*fp) (FILE *, off_t, int) = fseeko;
|
||||||
|
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -31744,6 +31748,7 @@ _ACEOF
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "${host_os}" != "linux-gnu" ; then
|
||||||
|
|
||||||
if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
|
if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
|
||||||
pbxlibdir=""
|
pbxlibdir=""
|
||||||
@@ -31755,7 +31760,7 @@ if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
|
|||||||
pbxlibdir="-L${ICONV_DIR}"
|
pbxlibdir="-L${ICONV_DIR}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
pbxfuncname="libiconv"
|
pbxfuncname="iconv_open"
|
||||||
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
|
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
|
||||||
AST_ICONV_FOUND=yes
|
AST_ICONV_FOUND=yes
|
||||||
else
|
else
|
||||||
@@ -32005,6 +32010,9 @@ _ACEOF
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
PBX_ICONV=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
|
if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
|
||||||
|
@@ -618,7 +618,11 @@ if test "${USE_GSM}" != "no"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AST_EXT_LIB_CHECK([ICONV], [iconv], [libiconv], [iconv.h])
|
if test "${host_os}" != "linux-gnu" ; then
|
||||||
|
AST_EXT_LIB_CHECK([ICONV], [iconv], [iconv_open], [iconv.h])
|
||||||
|
else
|
||||||
|
PBX_ICONV=1
|
||||||
|
fi
|
||||||
|
|
||||||
AST_EXT_LIB_CHECK([IKSEMEL], [iksemel], [iks_start_sasl], [iksemel.h])
|
AST_EXT_LIB_CHECK([IKSEMEL], [iksemel], [iks_start_sasl], [iksemel.h])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user