Mail-MIMEDefang
view release on metacpan or search on metacpan
if test $? != 0 ; then
HAVE_NET_SMTP=no
else
HAVE_NET_SMTP=yes
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_NET_SMTP" >&5
printf "%s\n" "$HAVE_NET_SMTP" >&6; }
dirs=`echo 'print "@INC\n";' | $PERL`
foundit=""
for i in $dirs ; do
if test -r "$i/MIME/Field/ParamVal.pm" ; then
foundit="$i/MIME/Field/ParamVal.pm"
break
fi
done
if test "$foundit" != "" ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MIME-Tools version" >&5
printf %s "checking MIME-Tools version... " >&6; }
mtversion=`echo '$x = $MIME::Tools::VERSION; $y = int($x) * 10000; $z = ($x - int($x)) * 10000; print $y + $z;' | $PERL -I$PERLINSTALLSITELIB -MMIME::Tools 2>/dev/null`
mt_actual_version=`echo 'print "$MIME::Tools::VERSION";' | $PERL -I$PERLINSTALLSITELIB -MMIME::Tools 2>/dev/null`
if test "$mtversion" = "" ; then
mtversion="unknown"
mt_actual_version="unknown"
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mt_actual_version" >&5
printf "%s\n" "$mt_actual_version" >&6; }
else
mtversion="unknown"
fi
fi
HAVE_A_SYSLOG=0
for module in 'Sys::Syslog' 'Unix::Syslog' ; do
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl module $module" >&5
printf %s "checking for Perl module $module... " >&6; }
(echo "use $module;" ; echo "exit(0);") | $PERL > /dev/null 2>&1
if test $? = 0 ; then
HAVE_A_SYSLOG=1
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
printf "%s\n" "ok" >&6; }
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
done
if test $HAVE_A_SYSLOG = 0 ; then
if test "$ac_cv_perlmodcheck" = "yes" ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Error: Could not find Sys::Syslog or Unix::Syslog" >&5
printf "%s\n" "$as_me: WARNING: *** Error: Could not find Sys::Syslog or Unix::Syslog" >&2;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** One of those Perl modules is required." >&5
printf "%s\n" "$as_me: WARNING: *** One of those Perl modules is required." >&2;};
exit 1
fi
fi
if test "$ac_cv_embedded_perl" = "no" ; then
echo "Check for embedded perl disabled by --disable-embedded-perl option"
HAVE_EXTUTILS_EMBED=no
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl module ExtUtils::Embed" >&5
printf %s "checking for Perl module ExtUtils::Embed... " >&6; }
(echo "use ExtUtils::Embed;" ; echo "exit(0);") | $PERL > /dev/null 2>&1
if test $? = 0 ; then
HAVE_EXTUTILS_EMBED=yes
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
printf "%s\n" "ok" >&6; }
else
HAVE_EXTUTILS_EMBED=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
fi
ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
if test "x$ac_cv_header_getopt_h" = xyes
then :
printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :
printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
if test "x$ac_cv_header_stdint_h" = xyes
then :
printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
if test "x$ac_cv_header_poll_h" = xyes
then :
printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
if test "x$ac_cv_header_stdint_h" = xyes
then :
printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h defines uint32_t" >&5
printf %s "checking whether stdint.h defines uint32_t... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdint.h>
int
main (void)
{
uint32_t foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
ac_uint32_t_defined=yes
else case e in #(
e) ac_uint32_t_defined=no ;;
esac
fi
if test "$ac_uint32_t_defined" = "yes" ; then
printf "%s\n" "#define HAVE_UINT32_T /**/" >>confdefs.h
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sig_atomic_t is defined" >&5
printf %s "checking whether sig_atomic_t is defined... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <signal.h>
int
main (void)
{
sig_atomic_t foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
ac_have_sig_atomic_t=yes
else case e in #(
e) ac_have_sig_atomic_t=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_have_sig_atomic_t" >&5
printf "%s\n" "$ac_have_sig_atomic_t" >&6; }
if test "$ac_have_sig_atomic_t" = "yes" ; then
printf "%s\n" "#define HAVE_SIG_ATOMIC_T /**/" >>confdefs.h
fi
if test "$FORCE_PTHREAD_FLAG" = "-pthread" ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Forcing use of -pthread C compiler flag" >&5
printf "%s\n" "Forcing use of -pthread C compiler flag" >&6; }
PTHREAD_FLAG=-pthread
elif test "$GCC" = yes ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthread" >&5
printf %s "checking whether ${CC-cc} accepts -pthread... " >&6; }
echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then
ac_cv_prog_cc_pthread=yes
PTHREAD_FLAG="-pthread"
else
PTHREAD_FLAG=""
ac_cv_prog_cc_pthread=no
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pthread" >&5
printf "%s\n" "$ac_cv_prog_cc_pthread" >&6; }
rm -f conftest*
else
PTHREAD_FLAG=""
fi
if test "$HAVE_EXTUTILS_EMBED" = "yes" ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can embed a Perl interpreter in C" >&5
printf %s "checking if we can embed a Perl interpreter in C... " >&6; }
OLDCFLAGS="$CFLAGS"
OLDLDFLAGS="$LDFLAGS"
OLDLIBS="$LIBS"
LIBS="-lperl $LIBS"
EMBPERLLDFLAGS="`$PERL -MExtUtils::Embed -e ldopts`"
EMBPERLCFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
LDFLAGS="$EMBPERLLDFLAGS $LDFLAGS"
CFLAGS="$EMBPERLCFLAGS $CFLAGS"
if test "$cross_compiling" = yes
then :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See 'config.log' for more details" "$LINENO" 5; }
else case e in #(
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <EXTERN.h>
#include <perl.h>
#include <stdlib.h>
static PerlInterpreter *my_perl;
int main(int argc, char **argv, char **env) {
my_perl = perl_alloc();
if (!my_perl) exit(1);
exit(0);
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
EMBED_PERL=yes
else case e in #(
e) EMBED_PERL=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
LIBS="$OLDLIBS"
CFLAGS="$OLDCFLAGS"
LDFLAGS="$OLDLDFLAGS"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMBED_PERL" >&5
printf "%s\n" "$EMBED_PERL" >&6; }
else
EMBED_PERL=no
fi
if test "$EMBED_PERL" = "no" ; then
EMBPERLCFLAGS=""
EMBPERLLDFLAGS=""
EMBPERLLIBS=""
EMBPERLDEFS=""
EMBPERLOBJS=""
else
EMBPERLLIBS="-lperl"
EMBPERLDEFS="-DEMBED_PERL"
EMBPERLOBJS="embperl.o xs_init.o"
# Check for buggy perl interpreter
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if it is safe to destroy and recreate a Perl interpreter" >&5
printf %s "checking if it is safe to destroy and recreate a Perl interpreter... " >&6; }
LIBS="-lperl $LIBS"
LDFLAGS="$EMBPERLLDFLAGS $LDFLAGS"
CFLAGS="$EMBPERLCFLAGS $CFLAGS $PTHREAD_FLAG"
if test "$cross_compiling" = yes
then :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See 'config.log' for more details" "$LINENO" 5; }
else case e in #(
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <EXTERN.h>
#include <perl.h>
static PerlInterpreter *my_perl = NULL;
static char **argv = NULL;
int
make_embedded_interpreter(char **env)
{
int argc;
if (!argv) {
argv = (char **) malloc(6 * sizeof(char *));
}
if (my_perl != NULL) {
perl_destruct(my_perl);
perl_free(my_perl);
my_perl = NULL;
}
argv[0] = "";
argv[1] = "-e";
argv[2] = "print(\"\");";
argv[3] = NULL;
argc = 3;
#ifdef PERL_SYS_INIT3
PERL_SYS_INIT3(&argc, &argv, &env);
#endif
my_perl = perl_alloc();
if (!my_perl) {
return -1;
}
PERL_SET_CONTEXT(my_perl);
PL_perl_destruct_level = 1;
perl_construct(my_perl);
PL_perl_destruct_level = 1;
argv[0] = "";
argv[1] = "-e";
argv[2] = "print(\"\");";
argv[3] = NULL;
argc = 3;
perl_parse(my_perl, NULL, argc, argv, NULL);
perl_run(my_perl);
return 0;
}
int
main(int argc, char **argv, char **env)
{
make_embedded_interpreter(env);
make_embedded_interpreter(env);
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
SAFE_EMBED_PERL=yes
else case e in #(
e) SAFE_EMBED_PERL=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
LIBS="$OLDLIBS"
CFLAGS="$OLDCFLAGS"
LDFLAGS="$OLDLDFLAGS"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SAFE_EMBED_PERL" >&5
printf "%s\n" "$SAFE_EMBED_PERL" >&6; }
if test "$SAFE_EMBED_PERL" = "yes" ; then
EMBPERLDEFS="$EMBPERLDEFS -DSAFE_EMBED_PERL"
fi
fi
if test "$ac_cv_use_poll" = "no" ; then
USEPOLL=""
else
if test "$ac_cv_header_poll_h" = "no" ; then
USEPOLL=""
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You used --enable-poll, but I cannot find the" >&5
printf "%s\n" "$as_me: WARNING: *** You used --enable-poll, but I cannot find the" >&2;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** poll.h header. Turning OFF --enable-poll" >&5
printf "%s\n" "$as_me: WARNING: *** poll.h header. Turning OFF --enable-poll" >&2;}
else
USEPOLL="-DEVENT_USE_POLL=1"
fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_init in -lresolv" >&5
printf %s "checking for res_init in -lresolv... " >&6; }
if test ${ac_cv_lib_resolv_res_init+y}
then :
printf %s "(cached) " >&6
else case e in #(
e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply.
The 'extern "C"' is for builds by C++ compilers;
although this is not generally supported in C code supporting it here
has little cost and some practical benefit (sr 110532). */
#ifdef __cplusplus
extern "C"
#endif
char res_init (void);
int
main (void)
{
return res_init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
ac_cv_lib_resolv_res_init=yes
else case e in #(
e) ac_cv_lib_resolv_res_init=no ;;
esac
fi
( run in 1.114 second using v1.01-cache-2.11-cpan-3fabe0161c3 )