| #! /bin/sh |
| # From configure.in Revision: 52089 . |
| # Guess values for system-dependent variables and create Makefiles. |
| # Generated by GNU Autoconf 2.59 for python 2.6. |
| # |
| # Report bugs to <http://www.python.org/python-bugs>. |
| # |
| # Copyright (C) 2003 Free Software Foundation, Inc. |
| # This configure script is free software; the Free Software Foundation |
| # gives unlimited permission to copy, distribute and modify it. |
| ## --------------------- ## |
| ## M4sh Initialization. ## |
| ## --------------------- ## |
| |
| # Be Bourne compatible |
| if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| emulate sh |
| NULLCMD=: |
| # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| # is contrary to our usage. Disable this feature. |
| alias -g '${1+"$@"}'='"$@"' |
| elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| set -o posix |
| fi |
| DUALCASE=1; export DUALCASE # for MKS sh |
| |
| # Support unset when possible. |
| if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| as_unset=unset |
| else |
| as_unset=false |
| fi |
| |
| |
| # Work around bugs in pre-3.0 UWIN ksh. |
| $as_unset ENV MAIL MAILPATH |
| PS1='$ ' |
| PS2='> ' |
| PS4='+ ' |
| |
| # NLS nuisances. |
| for as_var in \ |
| LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| LC_TELEPHONE LC_TIME |
| do |
| if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| eval $as_var=C; export $as_var |
| else |
| $as_unset $as_var |
| fi |
| done |
| |
| # Required to use basename. |
| if expr a : '\(a\)' >/dev/null 2>&1; then |
| as_expr=expr |
| else |
| as_expr=false |
| fi |
| |
| if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| as_basename=basename |
| else |
| as_basename=false |
| fi |
| |
| |
| # Name of the executable. |
| as_me=`$as_basename "$0" || |
| $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| X"$0" : 'X\(//\)$' \| \ |
| X"$0" : 'X\(/\)$' \| \ |
| . : '\(.\)' 2>/dev/null || |
| echo X/"$0" | |
| sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| /^X\/\(\/\/\)$/{ s//\1/; q; } |
| /^X\/\(\/\).*/{ s//\1/; q; } |
| s/.*/./; q'` |
| |
| |
| # PATH needs CR, and LINENO needs CR and PATH. |
| # Avoid depending upon Character Ranges. |
| as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| as_cr_digits='0123456789' |
| as_cr_alnum=$as_cr_Letters$as_cr_digits |
| |
| # The user is always right. |
| if test "${PATH_SEPARATOR+set}" != set; then |
| echo "#! /bin/sh" >conf$$.sh |
| echo "exit 0" >>conf$$.sh |
| chmod +x conf$$.sh |
| if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| PATH_SEPARATOR=';' |
| else |
| PATH_SEPARATOR=: |
| fi |
| rm -f conf$$.sh |
| fi |
| |
| |
| as_lineno_1=$LINENO |
| as_lineno_2=$LINENO |
| as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| test "x$as_lineno_1" != "x$as_lineno_2" && |
| test "x$as_lineno_3" = "x$as_lineno_2" || { |
| # Find who we are. Look in the path if we contain no path at all |
| # relative or not. |
| case $0 in |
| *[\\/]* ) as_myself=$0 ;; |
| *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| done |
| |
| ;; |
| esac |
| # We did not find ourselves, most probably we were run as `sh COMMAND' |
| # in which case we are not to be found in the path. |
| if test "x$as_myself" = x; then |
| as_myself=$0 |
| fi |
| if test ! -f "$as_myself"; then |
| { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| { (exit 1); exit 1; }; } |
| fi |
| case $CONFIG_SHELL in |
| '') |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for as_base in sh bash ksh sh5; do |
| case $as_dir in |
| /*) |
| if ("$as_dir/$as_base" -c ' |
| as_lineno_1=$LINENO |
| as_lineno_2=$LINENO |
| as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| test "x$as_lineno_1" != "x$as_lineno_2" && |
| test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| CONFIG_SHELL=$as_dir/$as_base |
| export CONFIG_SHELL |
| exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| fi;; |
| esac |
| done |
| done |
| ;; |
| esac |
| |
| # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| # uniformly replaced by the line number. The first 'sed' inserts a |
| # line-number line before each line; the second 'sed' does the real |
| # work. The second script uses 'N' to pair each line-number line |
| # with the numbered line, and appends trailing '-' during |
| # substitution so that $LINENO is not a special case at line end. |
| # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| sed '=' <$as_myself | |
| sed ' |
| N |
| s,$,-, |
| : loop |
| s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| t loop |
| s,-$,, |
| s,^['$as_cr_digits']*\n,, |
| ' >$as_me.lineno && |
| chmod +x $as_me.lineno || |
| { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| { (exit 1); exit 1; }; } |
| |
| # Don't try to exec as it changes $[0], causing all sort of problems |
| # (the dirname of $[0] is not the place where we might find the |
| # original and so on. Autoconf is especially sensible to this). |
| . ./$as_me.lineno |
| # Exit status is that of the last command. |
| exit |
| } |
| |
| |
| case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| *c*,-n*) ECHO_N= ECHO_C=' |
| ' ECHO_T=' ' ;; |
| *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| esac |
| |
| if expr a : '\(a\)' >/dev/null 2>&1; then |
| as_expr=expr |
| else |
| as_expr=false |
| fi |
| |
| rm -f conf$$ conf$$.exe conf$$.file |
| echo >conf$$.file |
| if ln -s conf$$.file conf$$ 2>/dev/null; then |
| # We could just check for DJGPP; but this test a) works b) is more generic |
| # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| if test -f conf$$.exe; then |
| # Don't use ln at all; we don't have any links |
| as_ln_s='cp -p' |
| else |
| as_ln_s='ln -s' |
| fi |
| elif ln conf$$.file conf$$ 2>/dev/null; then |
| as_ln_s=ln |
| else |
| as_ln_s='cp -p' |
| fi |
| rm -f conf$$ conf$$.exe conf$$.file |
| |
| if mkdir -p . 2>/dev/null; then |
| as_mkdir_p=: |
| else |
| test -d ./-p && rmdir ./-p |
| as_mkdir_p=false |
| fi |
| |
| as_executable_p="test -f" |
| |
| # Sed expression to map a string onto a valid CPP name. |
| as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| |
| # Sed expression to map a string onto a valid variable name. |
| as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| |
| |
| # IFS |
| # We need space, tab and new line, in precisely that order. |
| as_nl=' |
| ' |
| IFS=" $as_nl" |
| |
| # CDPATH. |
| $as_unset CDPATH |
| |
| |
| # Name of the host. |
| # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| # so uname gets run too. |
| ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| |
| exec 6>&1 |
| |
| # |
| # Initializations. |
| # |
| ac_default_prefix=/usr/local |
| ac_config_libobj_dir=. |
| cross_compiling=no |
| subdirs= |
| MFLAGS= |
| MAKEFLAGS= |
| SHELL=${CONFIG_SHELL-/bin/sh} |
| |
| # Maximum number of lines to put in a shell here document. |
| # This variable seems obsolete. It should probably be removed, and |
| # only ac_max_sed_lines should be used. |
| : ${ac_max_here_lines=38} |
| |
| # Identity of this package. |
| PACKAGE_NAME='python' |
| PACKAGE_TARNAME='python' |
| PACKAGE_VERSION='2.6' |
| PACKAGE_STRING='python 2.6' |
| PACKAGE_BUGREPORT='http://www.python.org/python-bugs' |
| |
| ac_unique_file="Include/object.h" |
| # Factoring default headers for most tests. |
| ac_includes_default="\ |
| #include <stdio.h> |
| #if HAVE_SYS_TYPES_H |
| # include <sys/types.h> |
| #endif |
| #if HAVE_SYS_STAT_H |
| # include <sys/stat.h> |
| #endif |
| #if STDC_HEADERS |
| # include <stdlib.h> |
| # include <stddef.h> |
| #else |
| # if HAVE_STDLIB_H |
| # include <stdlib.h> |
| # endif |
| #endif |
| #if HAVE_STRING_H |
| # if !STDC_HEADERS && HAVE_MEMORY_H |
| # include <memory.h> |
| # endif |
| # include <string.h> |
| #endif |
| #if HAVE_STRINGS_H |
| # include <strings.h> |
| #endif |
| #if HAVE_INTTYPES_H |
| # include <inttypes.h> |
| #else |
| # if HAVE_STDINT_H |
| # include <stdint.h> |
| # endif |
| #endif |
| #if HAVE_UNISTD_H |
| # include <unistd.h> |
| #endif" |
| |
| ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS' |
| ac_subst_files='' |
| |
| # Initialize some variables set by options. |
| ac_init_help= |
| ac_init_version=false |
| # The variables have the same names as the options, with |
| # dashes changed to underlines. |
| cache_file=/dev/null |
| exec_prefix=NONE |
| no_create= |
| no_recursion= |
| prefix=NONE |
| program_prefix=NONE |
| program_suffix=NONE |
| program_transform_name=s,x,x, |
| silent= |
| site= |
| srcdir= |
| verbose= |
| x_includes=NONE |
| x_libraries=NONE |
| |
| # Installation directory options. |
| # These are left unexpanded so users can "make install exec_prefix=/foo" |
| # and all the variables that are supposed to be based on exec_prefix |
| # by default will actually change. |
| # Use braces instead of parens because sh, perl, etc. also accept them. |
| bindir='${exec_prefix}/bin' |
| sbindir='${exec_prefix}/sbin' |
| libexecdir='${exec_prefix}/libexec' |
| datadir='${prefix}/share' |
| sysconfdir='${prefix}/etc' |
| sharedstatedir='${prefix}/com' |
| localstatedir='${prefix}/var' |
| libdir='${exec_prefix}/lib' |
| includedir='${prefix}/include' |
| oldincludedir='/usr/include' |
| infodir='${prefix}/info' |
| mandir='${prefix}/man' |
| |
| ac_prev= |
| for ac_option |
| do |
| # If the previous option needs an argument, assign it. |
| if test -n "$ac_prev"; then |
| eval "$ac_prev=\$ac_option" |
| ac_prev= |
| continue |
| fi |
| |
| ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| |
| # Accept the important Cygnus configure options, so we can diagnose typos. |
| |
| case $ac_option in |
| |
| -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| ac_prev=bindir ;; |
| -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| bindir=$ac_optarg ;; |
| |
| -build | --build | --buil | --bui | --bu) |
| ac_prev=build_alias ;; |
| -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| build_alias=$ac_optarg ;; |
| |
| -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| ac_prev=cache_file ;; |
| -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| cache_file=$ac_optarg ;; |
| |
| --config-cache | -C) |
| cache_file=config.cache ;; |
| |
| -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| ac_prev=datadir ;; |
| -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| | --da=*) |
| datadir=$ac_optarg ;; |
| |
| -disable-* | --disable-*) |
| ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| # Reject names that are not valid shell variable names. |
| expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| { (exit 1); exit 1; }; } |
| ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| eval "enable_$ac_feature=no" ;; |
| |
| -enable-* | --enable-*) |
| ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| # Reject names that are not valid shell variable names. |
| expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| { (exit 1); exit 1; }; } |
| ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| case $ac_option in |
| *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| *) ac_optarg=yes ;; |
| esac |
| eval "enable_$ac_feature='$ac_optarg'" ;; |
| |
| -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| | --exec | --exe | --ex) |
| ac_prev=exec_prefix ;; |
| -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| | --exec=* | --exe=* | --ex=*) |
| exec_prefix=$ac_optarg ;; |
| |
| -gas | --gas | --ga | --g) |
| # Obsolete; use --with-gas. |
| with_gas=yes ;; |
| |
| -help | --help | --hel | --he | -h) |
| ac_init_help=long ;; |
| -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| ac_init_help=recursive ;; |
| -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| ac_init_help=short ;; |
| |
| -host | --host | --hos | --ho) |
| ac_prev=host_alias ;; |
| -host=* | --host=* | --hos=* | --ho=*) |
| host_alias=$ac_optarg ;; |
| |
| -includedir | --includedir | --includedi | --included | --include \ |
| | --includ | --inclu | --incl | --inc) |
| ac_prev=includedir ;; |
| -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| | --includ=* | --inclu=* | --incl=* | --inc=*) |
| includedir=$ac_optarg ;; |
| |
| -infodir | --infodir | --infodi | --infod | --info | --inf) |
| ac_prev=infodir ;; |
| -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| infodir=$ac_optarg ;; |
| |
| -libdir | --libdir | --libdi | --libd) |
| ac_prev=libdir ;; |
| -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| libdir=$ac_optarg ;; |
| |
| -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| | --libexe | --libex | --libe) |
| ac_prev=libexecdir ;; |
| -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| | --libexe=* | --libex=* | --libe=*) |
| libexecdir=$ac_optarg ;; |
| |
| -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| | --localstate | --localstat | --localsta | --localst \ |
| | --locals | --local | --loca | --loc | --lo) |
| ac_prev=localstatedir ;; |
| -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| localstatedir=$ac_optarg ;; |
| |
| -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| ac_prev=mandir ;; |
| -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| mandir=$ac_optarg ;; |
| |
| -nfp | --nfp | --nf) |
| # Obsolete; use --without-fp. |
| with_fp=no ;; |
| |
| -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| | --no-cr | --no-c | -n) |
| no_create=yes ;; |
| |
| -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| no_recursion=yes ;; |
| |
| -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| | --oldin | --oldi | --old | --ol | --o) |
| ac_prev=oldincludedir ;; |
| -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| oldincludedir=$ac_optarg ;; |
| |
| -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| ac_prev=prefix ;; |
| -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| prefix=$ac_optarg ;; |
| |
| -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| | --program-pre | --program-pr | --program-p) |
| ac_prev=program_prefix ;; |
| -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| program_prefix=$ac_optarg ;; |
| |
| -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| | --program-suf | --program-su | --program-s) |
| ac_prev=program_suffix ;; |
| -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| program_suffix=$ac_optarg ;; |
| |
| -program-transform-name | --program-transform-name \ |
| | --program-transform-nam | --program-transform-na \ |
| | --program-transform-n | --program-transform- \ |
| | --program-transform | --program-transfor \ |
| | --program-transfo | --program-transf \ |
| | --program-trans | --program-tran \ |
| | --progr-tra | --program-tr | --program-t) |
| ac_prev=program_transform_name ;; |
| -program-transform-name=* | --program-transform-name=* \ |
| | --program-transform-nam=* | --program-transform-na=* \ |
| | --program-transform-n=* | --program-transform-=* \ |
| | --program-transform=* | --program-transfor=* \ |
| | --program-transfo=* | --program-transf=* \ |
| | --program-trans=* | --program-tran=* \ |
| | --progr-tra=* | --program-tr=* | --program-t=*) |
| program_transform_name=$ac_optarg ;; |
| |
| -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| | -silent | --silent | --silen | --sile | --sil) |
| silent=yes ;; |
| |
| -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| ac_prev=sbindir ;; |
| -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| | --sbi=* | --sb=*) |
| sbindir=$ac_optarg ;; |
| |
| -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| | --sharedst | --shareds | --shared | --share | --shar \ |
| | --sha | --sh) |
| ac_prev=sharedstatedir ;; |
| -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| | --sha=* | --sh=*) |
| sharedstatedir=$ac_optarg ;; |
| |
| -site | --site | --sit) |
| ac_prev=site ;; |
| -site=* | --site=* | --sit=*) |
| site=$ac_optarg ;; |
| |
| -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| ac_prev=srcdir ;; |
| -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| srcdir=$ac_optarg ;; |
| |
| -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| | --syscon | --sysco | --sysc | --sys | --sy) |
| ac_prev=sysconfdir ;; |
| -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| sysconfdir=$ac_optarg ;; |
| |
| -target | --target | --targe | --targ | --tar | --ta | --t) |
| ac_prev=target_alias ;; |
| -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| target_alias=$ac_optarg ;; |
| |
| -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| verbose=yes ;; |
| |
| -version | --version | --versio | --versi | --vers | -V) |
| ac_init_version=: ;; |
| |
| -with-* | --with-*) |
| ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| # Reject names that are not valid shell variable names. |
| expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| { (exit 1); exit 1; }; } |
| ac_package=`echo $ac_package| sed 's/-/_/g'` |
| case $ac_option in |
| *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| *) ac_optarg=yes ;; |
| esac |
| eval "with_$ac_package='$ac_optarg'" ;; |
| |
| -without-* | --without-*) |
| ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| # Reject names that are not valid shell variable names. |
| expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| { (exit 1); exit 1; }; } |
| ac_package=`echo $ac_package | sed 's/-/_/g'` |
| eval "with_$ac_package=no" ;; |
| |
| --x) |
| # Obsolete; use --with-x. |
| with_x=yes ;; |
| |
| -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| | --x-incl | --x-inc | --x-in | --x-i) |
| ac_prev=x_includes ;; |
| -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| x_includes=$ac_optarg ;; |
| |
| -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| ac_prev=x_libraries ;; |
| -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| x_libraries=$ac_optarg ;; |
| |
| -*) { echo "$as_me: error: unrecognized option: $ac_option |
| Try \`$0 --help' for more information." >&2 |
| { (exit 1); exit 1; }; } |
| ;; |
| |
| *=*) |
| ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| # Reject names that are not valid shell variable names. |
| expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| { (exit 1); exit 1; }; } |
| ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| eval "$ac_envvar='$ac_optarg'" |
| export $ac_envvar ;; |
| |
| *) |
| # FIXME: should be removed in autoconf 3.0. |
| echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| ;; |
| |
| esac |
| done |
| |
| if test -n "$ac_prev"; then |
| ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| { echo "$as_me: error: missing argument to $ac_option" >&2 |
| { (exit 1); exit 1; }; } |
| fi |
| |
| # Be sure to have absolute paths. |
| for ac_var in exec_prefix prefix |
| do |
| eval ac_val=$`echo $ac_var` |
| case $ac_val in |
| [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| { (exit 1); exit 1; }; };; |
| esac |
| done |
| |
| # Be sure to have absolute paths. |
| for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| localstatedir libdir includedir oldincludedir infodir mandir |
| do |
| eval ac_val=$`echo $ac_var` |
| case $ac_val in |
| [\\/$]* | ?:[\\/]* ) ;; |
| *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| { (exit 1); exit 1; }; };; |
| esac |
| done |
| |
| # There might be people who depend on the old broken behavior: `$host' |
| # used to hold the argument of --host etc. |
| # FIXME: To remove some day. |
| build=$build_alias |
| host=$host_alias |
| target=$target_alias |
| |
| # FIXME: To remove some day. |
| if test "x$host_alias" != x; then |
| if test "x$build_alias" = x; then |
| cross_compiling=maybe |
| echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| If a cross compiler is detected then cross compile mode will be used." >&2 |
| elif test "x$build_alias" != "x$host_alias"; then |
| cross_compiling=yes |
| fi |
| fi |
| |
| ac_tool_prefix= |
| test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| |
| test "$silent" = yes && exec 6>/dev/null |
| |
| |
| # Find the source files, if location was not specified. |
| if test -z "$srcdir"; then |
| ac_srcdir_defaulted=yes |
| # Try the directory containing this script, then its parent. |
| ac_confdir=`(dirname "$0") 2>/dev/null || |
| $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| X"$0" : 'X\(//\)[^/]' \| \ |
| X"$0" : 'X\(//\)$' \| \ |
| X"$0" : 'X\(/\)' \| \ |
| . : '\(.\)' 2>/dev/null || |
| echo X"$0" | |
| sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| /^X\(\/\/\)$/{ s//\1/; q; } |
| /^X\(\/\).*/{ s//\1/; q; } |
| s/.*/./; q'` |
| srcdir=$ac_confdir |
| if test ! -r $srcdir/$ac_unique_file; then |
| srcdir=.. |
| fi |
| else |
| ac_srcdir_defaulted=no |
| fi |
| if test ! -r $srcdir/$ac_unique_file; then |
| if test "$ac_srcdir_defaulted" = yes; then |
| { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| { (exit 1); exit 1; }; } |
| else |
| { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| { (exit 1); exit 1; }; } |
| fi |
| fi |
| (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| { (exit 1); exit 1; }; } |
| srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| ac_env_build_alias_set=${build_alias+set} |
| ac_env_build_alias_value=$build_alias |
| ac_cv_env_build_alias_set=${build_alias+set} |
| ac_cv_env_build_alias_value=$build_alias |
| ac_env_host_alias_set=${host_alias+set} |
| ac_env_host_alias_value=$host_alias |
| ac_cv_env_host_alias_set=${host_alias+set} |
| ac_cv_env_host_alias_value=$host_alias |
| ac_env_target_alias_set=${target_alias+set} |
| ac_env_target_alias_value=$target_alias |
| ac_cv_env_target_alias_set=${target_alias+set} |
| ac_cv_env_target_alias_value=$target_alias |
| ac_env_CC_set=${CC+set} |
| ac_env_CC_value=$CC |
| ac_cv_env_CC_set=${CC+set} |
| ac_cv_env_CC_value=$CC |
| ac_env_CFLAGS_set=${CFLAGS+set} |
| ac_env_CFLAGS_value=$CFLAGS |
| ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| ac_cv_env_CFLAGS_value=$CFLAGS |
| ac_env_LDFLAGS_set=${LDFLAGS+set} |
| ac_env_LDFLAGS_value=$LDFLAGS |
| ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| ac_cv_env_LDFLAGS_value=$LDFLAGS |
| ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| ac_env_CPPFLAGS_value=$CPPFLAGS |
| ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| ac_env_CPP_set=${CPP+set} |
| ac_env_CPP_value=$CPP |
| ac_cv_env_CPP_set=${CPP+set} |
| ac_cv_env_CPP_value=$CPP |
| |
| # |
| # Report the --help message. |
| # |
| if test "$ac_init_help" = "long"; then |
| # Omit some internal or obsolete options to make the list less imposing. |
| # This message is too long to be a string in the A/UX 3.1 sh. |
| cat <<_ACEOF |
| \`configure' configures python 2.6 to adapt to many kinds of systems. |
| |
| Usage: $0 [OPTION]... [VAR=VALUE]... |
| |
| To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| VAR=VALUE. See below for descriptions of some of the useful variables. |
| |
| Defaults for the options are specified in brackets. |
| |
| Configuration: |
| -h, --help display this help and exit |
| --help=short display options specific to this package |
| --help=recursive display the short help of all the included packages |
| -V, --version display version information and exit |
| -q, --quiet, --silent do not print \`checking...' messages |
| --cache-file=FILE cache test results in FILE [disabled] |
| -C, --config-cache alias for \`--cache-file=config.cache' |
| -n, --no-create do not create output files |
| --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| |
| _ACEOF |
| |
| cat <<_ACEOF |
| Installation directories: |
| --prefix=PREFIX install architecture-independent files in PREFIX |
| [$ac_default_prefix] |
| --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| [PREFIX] |
| |
| By default, \`make install' will install all the files in |
| \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| for instance \`--prefix=\$HOME'. |
| |
| For better control, use the options below. |
| |
| Fine tuning of the installation directories: |
| --bindir=DIR user executables [EPREFIX/bin] |
| --sbindir=DIR system admin executables [EPREFIX/sbin] |
| --libexecdir=DIR program executables [EPREFIX/libexec] |
| --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| --libdir=DIR object code libraries [EPREFIX/lib] |
| --includedir=DIR C header files [PREFIX/include] |
| --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| --infodir=DIR info documentation [PREFIX/info] |
| --mandir=DIR man documentation [PREFIX/man] |
| _ACEOF |
| |
| cat <<\_ACEOF |
| _ACEOF |
| fi |
| |
| if test -n "$ac_init_help"; then |
| case $ac_init_help in |
| short | recursive ) echo "Configuration of python 2.6:";; |
| esac |
| cat <<\_ACEOF |
| |
| Optional Features: |
| --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| --enable-universalsdk[SDKDIR] |
| Build agains Mac OS X 10.4u SDK (ppc/i386) |
| --enable-framework[=INSTALLDIR] |
| Build (MacOSX|Darwin) framework |
| --enable-shared disable/enable building shared python library |
| --enable-profiling enable C-level code profiling |
| --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| --enable-ipv6 Enable ipv6 (with ipv4) support |
| --disable-ipv6 Disable ipv6 support |
| --enable-unicode[=ucs[24]] |
| Enable Unicode strings (default is yes) |
| |
| Optional Packages: |
| --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| --without-gcc never use gcc |
| --with-cxx-main=<compiler> |
| compile main() and link python executable with C++ |
| compiler |
| --with-suffix=.exe set executable suffix |
| --with-pydebug build with Py_DEBUG defined |
| --with-libs='lib1 ...' link against additional libs |
| --with-system-ffi build _ctypes module using an installed ffi library |
| --with-signal-module disable/enable signal module |
| --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| --with(out)-threads[=DIRECTORY] |
| disable/enable thread support |
| --with(out)-thread[=DIRECTORY] |
| deprecated; use --with(out)-threads |
| --with-pth use GNU pth threading libraries |
| --with(out)-doc-strings disable/enable documentation strings |
| --with(out)-tsc enable/disable timestamp counter profile |
| --with(out)-pymalloc disable/enable specialized mallocs |
| --with-wctype-functions use wctype.h functions |
| --with-fpectl enable SIGFPE catching |
| --with-libm=STRING math library |
| --with-libc=STRING C library |
| |
| Some influential environment variables: |
| CC C compiler command |
| CFLAGS C compiler flags |
| LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| nonstandard directory <lib dir> |
| CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| headers in a nonstandard directory <include dir> |
| CPP C preprocessor |
| |
| Use these variables to override the choices made by `configure' or to help |
| it to find libraries and programs with nonstandard names/locations. |
| |
| Report bugs to <http://www.python.org/python-bugs>. |
| _ACEOF |
| fi |
| |
| if test "$ac_init_help" = "recursive"; then |
| # If there are subdirs, report their specific --help. |
| ac_popdir=`pwd` |
| for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| test -d $ac_dir || continue |
| ac_builddir=. |
| |
| if test "$ac_dir" != .; then |
| ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| # A "../" for each directory in $ac_dir_suffix. |
| ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| else |
| ac_dir_suffix= ac_top_builddir= |
| fi |
| |
| case $srcdir in |
| .) # No --srcdir option. We are building in place. |
| ac_srcdir=. |
| if test -z "$ac_top_builddir"; then |
| ac_top_srcdir=. |
| else |
| ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| fi ;; |
| [\\/]* | ?:[\\/]* ) # Absolute path. |
| ac_srcdir=$srcdir$ac_dir_suffix; |
| ac_top_srcdir=$srcdir ;; |
| *) # Relative path. |
| ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| esac |
| |
| # Do not use `cd foo && pwd` to compute absolute paths, because |
| # the directories may not exist. |
| case `pwd` in |
| .) ac_abs_builddir="$ac_dir";; |
| *) |
| case "$ac_dir" in |
| .) ac_abs_builddir=`pwd`;; |
| [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| esac;; |
| esac |
| case $ac_abs_builddir in |
| .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| *) |
| case ${ac_top_builddir}. in |
| .) ac_abs_top_builddir=$ac_abs_builddir;; |
| [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| esac;; |
| esac |
| case $ac_abs_builddir in |
| .) ac_abs_srcdir=$ac_srcdir;; |
| *) |
| case $ac_srcdir in |
| .) ac_abs_srcdir=$ac_abs_builddir;; |
| [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| esac;; |
| esac |
| case $ac_abs_builddir in |
| .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| *) |
| case $ac_top_srcdir in |
| .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| esac;; |
| esac |
| |
| cd $ac_dir |
| # Check for guested configure; otherwise get Cygnus style configure. |
| if test -f $ac_srcdir/configure.gnu; then |
| echo |
| $SHELL $ac_srcdir/configure.gnu --help=recursive |
| elif test -f $ac_srcdir/configure; then |
| echo |
| $SHELL $ac_srcdir/configure --help=recursive |
| elif test -f $ac_srcdir/configure.ac || |
| test -f $ac_srcdir/configure.in; then |
| echo |
| $ac_configure --help |
| else |
| echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| fi |
| cd $ac_popdir |
| done |
| fi |
| |
| test -n "$ac_init_help" && exit 0 |
| if $ac_init_version; then |
| cat <<\_ACEOF |
| python configure 2.6 |
| generated by GNU Autoconf 2.59 |
| |
| Copyright (C) 2003 Free Software Foundation, Inc. |
| This configure script is free software; the Free Software Foundation |
| gives unlimited permission to copy, distribute and modify it. |
| _ACEOF |
| exit 0 |
| fi |
| exec 5>config.log |
| cat >&5 <<_ACEOF |
| This file contains any messages produced by compilers while |
| running configure, to aid debugging if configure makes a mistake. |
| |
| It was created by python $as_me 2.6, which was |
| generated by GNU Autoconf 2.59. Invocation command line was |
| |
| $ $0 $@ |
| |
| _ACEOF |
| { |
| cat <<_ASUNAME |
| ## --------- ## |
| ## Platform. ## |
| ## --------- ## |
| |
| hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| |
| /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| |
| /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| |
| _ASUNAME |
| |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| echo "PATH: $as_dir" |
| done |
| |
| } >&5 |
| |
| cat >&5 <<_ACEOF |
| |
| |
| ## ----------- ## |
| ## Core tests. ## |
| ## ----------- ## |
| |
| _ACEOF |
| |
| |
| # Keep a trace of the command line. |
| # Strip out --no-create and --no-recursion so they do not pile up. |
| # Strip out --silent because we don't want to record it for future runs. |
| # Also quote any args containing shell meta-characters. |
| # Make two passes to allow for proper duplicate-argument suppression. |
| ac_configure_args= |
| ac_configure_args0= |
| ac_configure_args1= |
| ac_sep= |
| ac_must_keep_next=false |
| for ac_pass in 1 2 |
| do |
| for ac_arg |
| do |
| case $ac_arg in |
| -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| | -silent | --silent | --silen | --sile | --sil) |
| continue ;; |
| *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| esac |
| case $ac_pass in |
| 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 2) |
| ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| if test $ac_must_keep_next = true; then |
| ac_must_keep_next=false # Got value, back to normal. |
| else |
| case $ac_arg in |
| *=* | --config-cache | -C | -disable-* | --disable-* \ |
| | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| | -with-* | --with-* | -without-* | --without-* | --x) |
| case "$ac_configure_args0 " in |
| "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| esac |
| ;; |
| -* ) ac_must_keep_next=true ;; |
| esac |
| fi |
| ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| # Get rid of the leading space. |
| ac_sep=" " |
| ;; |
| esac |
| done |
| done |
| $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| |
| # When interrupted or exit'd, cleanup temporary files, and complete |
| # config.log. We remove comments because anyway the quotes in there |
| # would cause problems or look ugly. |
| # WARNING: Be sure not to use single quotes in there, as some shells, |
| # such as our DU 5.0 friend, will then `close' the trap. |
| trap 'exit_status=$? |
| # Save into config.log some information that might help in debugging. |
| { |
| echo |
| |
| cat <<\_ASBOX |
| ## ---------------- ## |
| ## Cache variables. ## |
| ## ---------------- ## |
| _ASBOX |
| echo |
| # The following way of writing the cache mishandles newlines in values, |
| { |
| (set) 2>&1 | |
| case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| *ac_space=\ *) |
| sed -n \ |
| "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| ;; |
| *) |
| sed -n \ |
| "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| ;; |
| esac; |
| } |
| echo |
| |
| cat <<\_ASBOX |
| ## ----------------- ## |
| ## Output variables. ## |
| ## ----------------- ## |
| _ASBOX |
| echo |
| for ac_var in $ac_subst_vars |
| do |
| eval ac_val=$`echo $ac_var` |
| echo "$ac_var='"'"'$ac_val'"'"'" |
| done | sort |
| echo |
| |
| if test -n "$ac_subst_files"; then |
| cat <<\_ASBOX |
| ## ------------- ## |
| ## Output files. ## |
| ## ------------- ## |
| _ASBOX |
| echo |
| for ac_var in $ac_subst_files |
| do |
| eval ac_val=$`echo $ac_var` |
| echo "$ac_var='"'"'$ac_val'"'"'" |
| done | sort |
| echo |
| fi |
| |
| if test -s confdefs.h; then |
| cat <<\_ASBOX |
| ## ----------- ## |
| ## confdefs.h. ## |
| ## ----------- ## |
| _ASBOX |
| echo |
| sed "/^$/d" confdefs.h | sort |
| echo |
| fi |
| test "$ac_signal" != 0 && |
| echo "$as_me: caught signal $ac_signal" |
| echo "$as_me: exit $exit_status" |
| } >&5 |
| rm -f core *.core && |
| rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| exit $exit_status |
| ' 0 |
| for ac_signal in 1 2 13 15; do |
| trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| done |
| ac_signal=0 |
| |
| # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| rm -rf conftest* confdefs.h |
| # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| echo >confdefs.h |
| |
| # Predefined preprocessor variables. |
| |
| cat >>confdefs.h <<_ACEOF |
| #define PACKAGE_NAME "$PACKAGE_NAME" |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<_ACEOF |
| #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<_ACEOF |
| #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<_ACEOF |
| #define PACKAGE_STRING "$PACKAGE_STRING" |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<_ACEOF |
| #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| _ACEOF |
| |
| |
| # Let the site file select an alternate cache file if it wants to. |
| # Prefer explicitly selected file to automatically selected ones. |
| if test -z "$CONFIG_SITE"; then |
| if test "x$prefix" != xNONE; then |
| CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| else |
| CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| fi |
| fi |
| for ac_site_file in $CONFIG_SITE; do |
| if test -r "$ac_site_file"; then |
| { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| echo "$as_me: loading site script $ac_site_file" >&6;} |
| sed 's/^/| /' "$ac_site_file" >&5 |
| . "$ac_site_file" |
| fi |
| done |
| |
| if test -r "$cache_file"; then |
| # Some versions of bash will fail to source /dev/null (special |
| # files actually), so we avoid doing that. |
| if test -f "$cache_file"; then |
| { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| echo "$as_me: loading cache $cache_file" >&6;} |
| case $cache_file in |
| [\\/]* | ?:[\\/]* ) . $cache_file;; |
| *) . ./$cache_file;; |
| esac |
| fi |
| else |
| { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| echo "$as_me: creating cache $cache_file" >&6;} |
| >$cache_file |
| fi |
| |
| # Check that the precious variables saved in the cache have kept the same |
| # value. |
| ac_cache_corrupted=false |
| for ac_var in `(set) 2>&1 | |
| sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| eval ac_new_set=\$ac_env_${ac_var}_set |
| eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| eval ac_new_val="\$ac_env_${ac_var}_value" |
| case $ac_old_set,$ac_new_set in |
| set,) |
| { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| ac_cache_corrupted=: ;; |
| ,set) |
| { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| ac_cache_corrupted=: ;; |
| ,);; |
| *) |
| if test "x$ac_old_val" != "x$ac_new_val"; then |
| { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| echo "$as_me: former value: $ac_old_val" >&2;} |
| { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| echo "$as_me: current value: $ac_new_val" >&2;} |
| ac_cache_corrupted=: |
| fi;; |
| esac |
| # Pass precious variables to config.status. |
| if test "$ac_new_set" = set; then |
| case $ac_new_val in |
| *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| *) ac_arg=$ac_var=$ac_new_val ;; |
| esac |
| case " $ac_configure_args " in |
| *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| esac |
| fi |
| done |
| if $ac_cache_corrupted; then |
| { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| |
| ac_ext=c |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| ac_config_headers="$ac_config_headers pyconfig.h" |
| |
| |
| |
| |
| |
| |
| |
| # We don't use PACKAGE_ variables, and they cause conflicts |
| # with other autoconf-based packages that include Python.h |
| grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| rm confdefs.h |
| mv confdefs.h.new confdefs.h |
| |
| |
| VERSION=2.6 |
| |
| |
| SOVERSION=1.0 |
| |
| # The later defininition of _XOPEN_SOURCE disables certain features |
| # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _GNU_SOURCE 1 |
| _ACEOF |
| |
| |
| # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| # them. |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _NETBSD_SOURCE 1 |
| _ACEOF |
| |
| |
| # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| # them. |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define __BSD_VISIBLE 1 |
| _ACEOF |
| |
| |
| # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _BSD_TYPES 1 |
| _ACEOF |
| |
| |
| define_xopen_source=yes |
| |
| # Arguments passed to configure. |
| |
| CONFIG_ARGS="$ac_configure_args" |
| |
| # Check whether --enable-universalsdk or --disable-universalsdk was given. |
| if test "${enable_universalsdk+set}" = set; then |
| enableval="$enable_universalsdk" |
| |
| case $enableval in |
| yes) |
| enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| ;; |
| esac |
| case $enableval in |
| no) |
| UNIVERSALSDK= |
| enable_universalsdk= |
| ;; |
| *) |
| UNIVERSALSDK=$enableval |
| ;; |
| esac |
| |
| else |
| |
| UNIVERSALSDK= |
| enable_universalsdk= |
| |
| fi; |
| |
| |
| # Check whether --enable-framework or --disable-framework was given. |
| if test "${enable_framework+set}" = set; then |
| enableval="$enable_framework" |
| |
| case $enableval in |
| yes) |
| enableval=/Library/Frameworks |
| esac |
| case $enableval in |
| no) |
| PYTHONFRAMEWORK= |
| PYTHONFRAMEWORKDIR=no-framework |
| PYTHONFRAMEWORKPREFIX= |
| PYTHONFRAMEWORKINSTALLDIR= |
| FRAMEWORKINSTALLFIRST= |
| FRAMEWORKINSTALLLAST= |
| FRAMEWORKALTINSTALLFIRST= |
| FRAMEWORKALTINSTALLLAST= |
| if test "x${prefix}" = "xNONE"; then |
| FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| else |
| FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| fi |
| enable_framework= |
| ;; |
| *) |
| PYTHONFRAMEWORK=Python |
| PYTHONFRAMEWORKDIR=Python.framework |
| PYTHONFRAMEWORKPREFIX=$enableval |
| PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
| FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall" |
| FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| if test "x${prefix}" = "xNONE" ; then |
| FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| else |
| FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| fi |
| prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
| |
| # Add makefiles for Mac specific code to the list of output |
| # files: |
| ac_config_files="$ac_config_files Mac/Makefile" |
| |
| ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
| |
| ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
| |
| esac |
| |
| else |
| |
| PYTHONFRAMEWORK= |
| PYTHONFRAMEWORKDIR=no-framework |
| PYTHONFRAMEWORKPREFIX= |
| PYTHONFRAMEWORKINSTALLDIR= |
| FRAMEWORKINSTALLFIRST= |
| FRAMEWORKINSTALLLAST= |
| FRAMEWORKALTINSTALLFIRST= |
| FRAMEWORKALTINSTALLLAST= |
| if test "x${prefix}" = "xNONE" ; then |
| FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| else |
| FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| fi |
| enable_framework= |
| |
| fi; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| ##AC_ARG_WITH(dyld, |
| ## AC_HELP_STRING(--with-dyld, |
| ## Use (OpenStep|Rhapsody) dynamic linker)) |
| ## |
| # Set name for machine-dependent library files |
| |
| echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
| if test -z "$MACHDEP" |
| then |
| ac_sys_system=`uname -s` |
| if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
| ac_sys_release=`uname -v` |
| else |
| ac_sys_release=`uname -r` |
| fi |
| ac_md_system=`echo $ac_sys_system | |
| tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| ac_md_release=`echo $ac_sys_release | |
| tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
| MACHDEP="$ac_md_system$ac_md_release" |
| |
| case $MACHDEP in |
| cygwin*) MACHDEP="cygwin";; |
| darwin*) MACHDEP="darwin";; |
| atheos*) MACHDEP="atheos";; |
| irix646) MACHDEP="irix6";; |
| '') MACHDEP="unknown";; |
| esac |
| fi |
| |
| # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| # disable features if it is defined, without any means to access these |
| # features as extensions. For these systems, we skip the definition of |
| # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| # some feature, make sure there is no alternative way to access this |
| # feature. Also, when using wildcards, make sure you have verified the |
| # need for not defining _XOPEN_SOURCE on all systems matching the |
| # wildcard, and that the wildcard does not include future systems |
| # (which may remove their limitations). |
| case $ac_sys_system/$ac_sys_release in |
| # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| # even though select is a POSIX function. Reported by J. Ribbens. |
| # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
| OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0]) |
| define_xopen_source=no;; |
| # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| # of union __?sigval. Reported by Stuart Bishop. |
| SunOS/5.6) |
| define_xopen_source=no;; |
| # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
| # Reconfirmed for 7.1.4 by Martin v. Loewis. |
| OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
| define_xopen_source=no;; |
| # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
| # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
| SCO_SV/3.2) |
| define_xopen_source=no;; |
| # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| # This should hopefully be fixed in FreeBSD 4.9 |
| FreeBSD/4.8* | Darwin/6* ) |
| define_xopen_source=no;; |
| # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| # or has another value. By not (re)defining it, the defaults come in place. |
| AIX/4) |
| define_xopen_source=no;; |
| AIX/5) |
| if test `uname -r` -eq 1; then |
| define_xopen_source=no |
| fi |
| ;; |
| # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| # disables platform specific features beyond repair. |
| # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| # has no effect, don't bother defining them |
| Darwin/[789].*) |
| define_xopen_source=no |
| ;; |
| |
| esac |
| |
| if test $define_xopen_source = yes |
| then |
| # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| # defined precisely as g++ defines it |
| # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| # compiler |
| case $ac_sys_system/$ac_sys_release in |
| SunOS/5.8|SunOS/5.9|SunOS/5.10) |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _XOPEN_SOURCE 500 |
| _ACEOF |
| |
| ;; |
| *) |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _XOPEN_SOURCE 600 |
| _ACEOF |
| |
| ;; |
| esac |
| |
| # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| # several APIs are not declared. Since this is also needed in some |
| # cases for HP-UX, we define it globally. |
| # except for Solaris 10, where it must not be defined, |
| # as it implies XPG4.2 |
| case $ac_sys_system/$ac_sys_release in |
| SunOS/5.10) |
| ;; |
| *) |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _XOPEN_SOURCE_EXTENDED 1 |
| _ACEOF |
| |
| ;; |
| esac |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _POSIX_C_SOURCE 200112L |
| _ACEOF |
| |
| |
| fi |
| |
| # |
| # SGI compilers allow the specification of the both the ABI and the |
| # ISA on the command line. Depending on the values of these switches, |
| # different and often incompatable code will be generated. |
| # |
| # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| # thus supply support for various ABI/ISA combinations. The MACHDEP |
| # variable is also adjusted. |
| # |
| |
| if test ! -z "$SGI_ABI" |
| then |
| CC="cc $SGI_ABI" |
| LDFLAGS="$SGI_ABI $LDFLAGS" |
| MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| fi |
| echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| echo "${ECHO_T}$MACHDEP" >&6 |
| |
| # And add extra plat-mac for darwin |
| |
| |
| echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| if test -z "$EXTRAPLATDIR" |
| then |
| case $MACHDEP in |
| darwin) |
| EXTRAPLATDIR="\$(PLATMACDIRS)" |
| EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| ;; |
| *) |
| EXTRAPLATDIR="" |
| EXTRAMACHDEPPATH="" |
| ;; |
| esac |
| fi |
| echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| |
| # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| # it may influence the way we can build extensions, so distutils |
| # needs to check it |
| |
| |
| CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
| EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
| |
| # checks for alternative programs |
| |
| # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| # just to get things to compile and link. Users are free to override OPT |
| # when running configure or make. The build should not break if they do. |
| # BASECFLAGS should generally not be messed with, however. |
| |
| # XXX shouldn't some/most/all of this code be merged with the stuff later |
| # on that fiddles with OPT and BASECFLAGS? |
| echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| |
| # Check whether --with-gcc or --without-gcc was given. |
| if test "${with_gcc+set}" = set; then |
| withval="$with_gcc" |
| |
| case $withval in |
| no) CC=cc |
| without_gcc=yes;; |
| yes) CC=gcc |
| without_gcc=no;; |
| *) CC=$withval |
| without_gcc=$withval;; |
| esac |
| else |
| |
| case $ac_sys_system in |
| AIX*) CC=cc_r |
| without_gcc=;; |
| BeOS*) |
| case $BE_HOST_CPU in |
| ppc) |
| CC=mwcc |
| without_gcc=yes |
| BASECFLAGS="$BASECFLAGS -export pragma" |
| OPT="$OPT -O" |
| LDFLAGS="$LDFLAGS -nodup" |
| ;; |
| x86) |
| CC=gcc |
| without_gcc=no |
| OPT="$OPT -O" |
| ;; |
| *) |
| { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| { (exit 1); exit 1; }; } |
| ;; |
| esac |
| AR="\$(srcdir)/Modules/ar_beos" |
| RANLIB=: |
| ;; |
| Monterey*) |
| RANLIB=: |
| without_gcc=;; |
| *) without_gcc=no;; |
| esac |
| fi; |
| echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| echo "${ECHO_T}$without_gcc" >&6 |
| |
| # If the user switches compilers, we can't believe the cache |
| if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| then |
| { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| (it is also a good idea to do 'make clean' before compiling)" >&5 |
| echo "$as_me: error: cached CC is different -- throw away $cache_file |
| (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| |
| ac_ext=c |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| if test -n "$ac_tool_prefix"; then |
| # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_CC+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| fi |
| fi |
| CC=$ac_cv_prog_CC |
| if test -n "$CC"; then |
| echo "$as_me:$LINENO: result: $CC" >&5 |
| echo "${ECHO_T}$CC" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| fi |
| if test -z "$ac_cv_prog_CC"; then |
| ac_ct_CC=$CC |
| # Extract the first word of "gcc", so it can be a program name with args. |
| set dummy gcc; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$ac_ct_CC"; then |
| ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_ac_ct_CC="gcc" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| fi |
| fi |
| ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| if test -n "$ac_ct_CC"; then |
| echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| echo "${ECHO_T}$ac_ct_CC" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| CC=$ac_ct_CC |
| else |
| CC="$ac_cv_prog_CC" |
| fi |
| |
| if test -z "$CC"; then |
| if test -n "$ac_tool_prefix"; then |
| # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_CC+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_CC="${ac_tool_prefix}cc" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| fi |
| fi |
| CC=$ac_cv_prog_CC |
| if test -n "$CC"; then |
| echo "$as_me:$LINENO: result: $CC" >&5 |
| echo "${ECHO_T}$CC" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| fi |
| if test -z "$ac_cv_prog_CC"; then |
| ac_ct_CC=$CC |
| # Extract the first word of "cc", so it can be a program name with args. |
| set dummy cc; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$ac_ct_CC"; then |
| ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_ac_ct_CC="cc" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| fi |
| fi |
| ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| if test -n "$ac_ct_CC"; then |
| echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| echo "${ECHO_T}$ac_ct_CC" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| CC=$ac_ct_CC |
| else |
| CC="$ac_cv_prog_CC" |
| fi |
| |
| fi |
| if test -z "$CC"; then |
| # Extract the first word of "cc", so it can be a program name with args. |
| set dummy cc; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_CC+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
| ac_prog_rejected=no |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| ac_prog_rejected=yes |
| continue |
| fi |
| ac_cv_prog_CC="cc" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| if test $ac_prog_rejected = yes; then |
| # We found a bogon in the path, so make sure we never use it. |
| set dummy $ac_cv_prog_CC |
| shift |
| if test $# != 0; then |
| # We chose a different compiler from the bogus one. |
| # However, it has the same basename, so the bogon will be chosen |
| # first if we set CC to just the basename; use the full file name. |
| shift |
| ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| fi |
| fi |
| fi |
| fi |
| CC=$ac_cv_prog_CC |
| if test -n "$CC"; then |
| echo "$as_me:$LINENO: result: $CC" >&5 |
| echo "${ECHO_T}$CC" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| fi |
| if test -z "$CC"; then |
| if test -n "$ac_tool_prefix"; then |
| for ac_prog in cl |
| do |
| # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_CC+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| fi |
| fi |
| CC=$ac_cv_prog_CC |
| if test -n "$CC"; then |
| echo "$as_me:$LINENO: result: $CC" >&5 |
| echo "${ECHO_T}$CC" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| test -n "$CC" && break |
| done |
| fi |
| if test -z "$CC"; then |
| ac_ct_CC=$CC |
| for ac_prog in cl |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$ac_ct_CC"; then |
| ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_ac_ct_CC="$ac_prog" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| fi |
| fi |
| ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| if test -n "$ac_ct_CC"; then |
| echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| echo "${ECHO_T}$ac_ct_CC" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| test -n "$ac_ct_CC" && break |
| done |
| |
| CC=$ac_ct_CC |
| fi |
| |
| fi |
| |
| |
| test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: no acceptable C compiler found in \$PATH |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| |
| # Provide some information about the compiler. |
| echo "$as_me:$LINENO:" \ |
| "checking for C compiler version" >&5 |
| ac_compiler=`set X $ac_compile; echo $2` |
| { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } |
| { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } |
| { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| int |
| main () |
| { |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| ac_clean_files_save=$ac_clean_files |
| ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| # Try to create an executable without -o first, disregard a.out. |
| # It will help us diagnose broken compilers, and finding out an intuition |
| # of exeext. |
| echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| (eval $ac_link_default) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; then |
| # Find the output, starting from the most likely. This scheme is |
| # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| # resort. |
| |
| # Be careful to initialize this variable, since it used to be cached. |
| # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| ac_cv_exeext= |
| # b.out is created by i960 compilers. |
| for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| do |
| test -f "$ac_file" || continue |
| case $ac_file in |
| *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| ;; |
| conftest.$ac_ext ) |
| # This is the source file. |
| ;; |
| [ab].out ) |
| # We found the default executable, but exeext='' is most |
| # certainly right. |
| break;; |
| *.* ) |
| ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| # FIXME: I believe we export ac_cv_exeext for Libtool, |
| # but it would be cool to find out if it's true. Does anybody |
| # maintain Libtool? --akim. |
| export ac_cv_exeext |
| break;; |
| * ) |
| break;; |
| esac |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: C compiler cannot create executables |
| See \`config.log' for more details." >&2;} |
| { (exit 77); exit 77; }; } |
| fi |
| |
| ac_exeext=$ac_cv_exeext |
| echo "$as_me:$LINENO: result: $ac_file" >&5 |
| echo "${ECHO_T}$ac_file" >&6 |
| |
| # Check the compiler produces executables we can run. If not, either |
| # the compiler is broken, or we cross compile. |
| echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| # If not cross compiling, check that we can run a simple program. |
| if test "$cross_compiling" != yes; then |
| if { ac_try='./$ac_file' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| cross_compiling=no |
| else |
| if test "$cross_compiling" = maybe; then |
| cross_compiling=yes |
| else |
| { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| If you meant to cross compile, use \`--host'. |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run C compiled programs. |
| If you meant to cross compile, use \`--host'. |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| fi |
| fi |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| |
| rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| ac_clean_files=$ac_clean_files_save |
| # Check the compiler produces executables we can run. If not, either |
| # the compiler is broken, or we cross compile. |
| echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| echo "${ECHO_T}$cross_compiling" >&6 |
| |
| echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; then |
| # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| # work properly (i.e., refer to `conftest.exe'), while it won't with |
| # `rm'. |
| for ac_file in conftest.exe conftest conftest.*; do |
| test -f "$ac_file" || continue |
| case $ac_file in |
| *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| export ac_cv_exeext |
| break;; |
| * ) break;; |
| esac |
| done |
| else |
| { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| |
| rm -f conftest$ac_cv_exeext |
| echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| echo "${ECHO_T}$ac_cv_exeext" >&6 |
| |
| rm -f conftest.$ac_ext |
| EXEEXT=$ac_cv_exeext |
| ac_exeext=$EXEEXT |
| echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| if test "${ac_cv_objext+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| int |
| main () |
| { |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.o conftest.obj |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; then |
| for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| case $ac_file in |
| *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| break;; |
| esac |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| |
| rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| echo "${ECHO_T}$ac_cv_objext" >&6 |
| OBJEXT=$ac_cv_objext |
| ac_objext=$OBJEXT |
| echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| int |
| main () |
| { |
| #ifndef __GNUC__ |
| choke me |
| #endif |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_compiler_gnu=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_compiler_gnu=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| GCC=`test $ac_compiler_gnu = yes && echo yes` |
| ac_test_CFLAGS=${CFLAGS+set} |
| ac_save_CFLAGS=$CFLAGS |
| CFLAGS="-g" |
| echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| if test "${ac_cv_prog_cc_g+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| int |
| main () |
| { |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_prog_cc_g=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_prog_cc_g=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| if test "$ac_test_CFLAGS" = set; then |
| CFLAGS=$ac_save_CFLAGS |
| elif test $ac_cv_prog_cc_g = yes; then |
| if test "$GCC" = yes; then |
| CFLAGS="-g -O2" |
| else |
| CFLAGS="-g" |
| fi |
| else |
| if test "$GCC" = yes; then |
| CFLAGS="-O2" |
| else |
| CFLAGS= |
| fi |
| fi |
| echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_cv_prog_cc_stdc=no |
| ac_save_CC=$CC |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <stdarg.h> |
| #include <stdio.h> |
| #include <sys/types.h> |
| #include <sys/stat.h> |
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| struct buf { int x; }; |
| FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| static char *e (p, i) |
| char **p; |
| int i; |
| { |
| return p[i]; |
| } |
| static char *f (char * (*g) (char **, int), char **p, ...) |
| { |
| char *s; |
| va_list v; |
| va_start (v,p); |
| s = g (p, va_arg (v,int)); |
| va_end (v); |
| return s; |
| } |
| |
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| function prototypes and stuff, but not '\xHH' hex character constants. |
| These don't provoke an error unfortunately, instead are silently treated |
| as 'x'. The following induces an error, until -std1 is added to get |
| proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| array size at least. It's necessary to write '\x00'==0 to get something |
| that's true only with -std1. */ |
| int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| |
| int test (int i, double x); |
| struct s1 {int (*f) (int a);}; |
| struct s2 {int (*f) (double a);}; |
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| int argc; |
| char **argv; |
| int |
| main () |
| { |
| return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| ; |
| return 0; |
| } |
| _ACEOF |
| # Don't try gcc -ansi; that turns off useful extensions and |
| # breaks some systems' header files. |
| # AIX -qlanglvl=ansi |
| # Ultrix and OSF/1 -std1 |
| # HP-UX 10.20 and later -Ae |
| # HP-UX older versions -Aa -D_HPUX_SOURCE |
| # SVR4 -Xc -D__EXTENSIONS__ |
| for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| do |
| CC="$ac_save_CC $ac_arg" |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_prog_cc_stdc=$ac_arg |
| break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext |
| done |
| rm -f conftest.$ac_ext conftest.$ac_objext |
| CC=$ac_save_CC |
| |
| fi |
| |
| case "x$ac_cv_prog_cc_stdc" in |
| x|xno) |
| echo "$as_me:$LINENO: result: none needed" >&5 |
| echo "${ECHO_T}none needed" >&6 ;; |
| *) |
| echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| CC="$CC $ac_cv_prog_cc_stdc" ;; |
| esac |
| |
| # Some people use a C++ compiler to compile C. Since we use `exit', |
| # in C++ we need to declare it. In case someone uses the same compiler |
| # for both compiling C and C++ we need to have the C++ compiler decide |
| # the declaration of exit, since it's the most demanding environment. |
| cat >conftest.$ac_ext <<_ACEOF |
| #ifndef __cplusplus |
| choke me |
| #endif |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| for ac_declaration in \ |
| '' \ |
| 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 'extern "C" void std::exit (int); using std::exit;' \ |
| 'extern "C" void exit (int) throw ();' \ |
| 'extern "C" void exit (int);' \ |
| 'void exit (int);' |
| do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_declaration |
| #include <stdlib.h> |
| int |
| main () |
| { |
| exit (42); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| : |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| continue |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_declaration |
| int |
| main () |
| { |
| exit (42); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| rm -f conftest* |
| if test -n "$ac_declaration"; then |
| echo '#ifdef __cplusplus' >>confdefs.h |
| echo $ac_declaration >>confdefs.h |
| echo '#endif' >>confdefs.h |
| fi |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| ac_ext=c |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
| |
| |
| |
| echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6 |
| |
| # Check whether --with-cxx_main or --without-cxx_main was given. |
| if test "${with_cxx_main+set}" = set; then |
| withval="$with_cxx_main" |
| |
| |
| case $withval in |
| no) with_cxx_main=no |
| MAINCC='$(CC)';; |
| yes) with_cxx_main=yes |
| MAINCC='$(CXX)';; |
| *) with_cxx_main=yes |
| MAINCC=$withval |
| if test -z "$CXX" |
| then |
| CXX=$withval |
| fi;; |
| esac |
| else |
| |
| with_cxx_main=no |
| MAINCC='$(CC)' |
| |
| fi; |
| echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| echo "${ECHO_T}$with_cxx_main" >&6 |
| |
| preset_cxx="$CXX" |
| if test -z "$CXX" |
| then |
| case "$CC" in |
| gcc) # Extract the first word of "g++", so it can be a program name with args. |
| set dummy g++; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_path_CXX+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| case $CXX in |
| [\\/]* | ?:[\\/]*) |
| ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| ;; |
| *) |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in notfound |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| ;; |
| esac |
| fi |
| CXX=$ac_cv_path_CXX |
| |
| if test -n "$CXX"; then |
| echo "$as_me:$LINENO: result: $CXX" >&5 |
| echo "${ECHO_T}$CXX" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| ;; |
| cc) # Extract the first word of "c++", so it can be a program name with args. |
| set dummy c++; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_path_CXX+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| case $CXX in |
| [\\/]* | ?:[\\/]*) |
| ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| ;; |
| *) |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in notfound |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| ;; |
| esac |
| fi |
| CXX=$ac_cv_path_CXX |
| |
| if test -n "$CXX"; then |
| echo "$as_me:$LINENO: result: $CXX" >&5 |
| echo "${ECHO_T}$CXX" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| ;; |
| esac |
| if test "$CXX" = "notfound" |
| then |
| CXX="" |
| fi |
| fi |
| if test -z "$CXX" |
| then |
| for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_CXX+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$CXX"; then |
| ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_CXX="$ac_prog" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| fi |
| fi |
| CXX=$ac_cv_prog_CXX |
| if test -n "$CXX"; then |
| echo "$as_me:$LINENO: result: $CXX" >&5 |
| echo "${ECHO_T}$CXX" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| test -n "$CXX" && break |
| done |
| test -n "$CXX" || CXX="notfound" |
| |
| if test "$CXX" = "notfound" |
| then |
| CXX="" |
| fi |
| fi |
| if test "$preset_cxx" != "$CXX" |
| then |
| { echo "$as_me:$LINENO: WARNING: |
| |
| By default, distutils will build C++ extension modules with \"$CXX\". |
| If this is not intended, then set CXX on the configure command line. |
| " >&5 |
| echo "$as_me: WARNING: |
| |
| By default, distutils will build C++ extension modules with \"$CXX\". |
| If this is not intended, then set CXX on the configure command line. |
| " >&2;} |
| fi |
| |
| |
| # checks for UNIX variants that set C preprocessor variables |
| |
| ac_ext=c |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| # On Suns, sometimes $CPP names a directory. |
| if test -n "$CPP" && test -d "$CPP"; then |
| CPP= |
| fi |
| if test -z "$CPP"; then |
| if test "${ac_cv_prog_CPP+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| # Double quotes because CPP needs to be expanded |
| for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| do |
| ac_preproc_ok=false |
| for ac_c_preproc_warn_flag in '' yes |
| do |
| # Use a header file that comes with gcc, so configuring glibc |
| # with a fresh cross-compiler works. |
| # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| # <limits.h> exists even on freestanding compilers. |
| # On the NeXT, cc -E runs the code through the compiler's parser, |
| # not just through cpp. "Syntax error" is here to catch this case. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| Syntax error |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| : |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| # Broken: fails on valid input. |
| continue |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| |
| # OK, works on sane cases. Now check whether non-existent headers |
| # can be detected and how. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <ac_nonexistent.h> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| # Broken: success on invalid input. |
| continue |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| # Passes both tests. |
| ac_preproc_ok=: |
| break |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| |
| done |
| # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| rm -f conftest.err conftest.$ac_ext |
| if $ac_preproc_ok; then |
| break |
| fi |
| |
| done |
| ac_cv_prog_CPP=$CPP |
| |
| fi |
| CPP=$ac_cv_prog_CPP |
| else |
| ac_cv_prog_CPP=$CPP |
| fi |
| echo "$as_me:$LINENO: result: $CPP" >&5 |
| echo "${ECHO_T}$CPP" >&6 |
| ac_preproc_ok=false |
| for ac_c_preproc_warn_flag in '' yes |
| do |
| # Use a header file that comes with gcc, so configuring glibc |
| # with a fresh cross-compiler works. |
| # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| # <limits.h> exists even on freestanding compilers. |
| # On the NeXT, cc -E runs the code through the compiler's parser, |
| # not just through cpp. "Syntax error" is here to catch this case. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| Syntax error |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| : |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| # Broken: fails on valid input. |
| continue |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| |
| # OK, works on sane cases. Now check whether non-existent headers |
| # can be detected and how. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <ac_nonexistent.h> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| # Broken: success on invalid input. |
| continue |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| # Passes both tests. |
| ac_preproc_ok=: |
| break |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| |
| done |
| # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| rm -f conftest.err conftest.$ac_ext |
| if $ac_preproc_ok; then |
| : |
| else |
| { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| |
| ac_ext=c |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
| |
| echo "$as_me:$LINENO: checking for egrep" >&5 |
| echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| if test "${ac_cv_prog_egrep+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| then ac_cv_prog_egrep='grep -E' |
| else ac_cv_prog_egrep='egrep' |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| EGREP=$ac_cv_prog_egrep |
| |
| |
| |
| echo "$as_me:$LINENO: checking for AIX" >&5 |
| echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #ifdef _AIX |
| yes |
| #endif |
| |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "yes" >/dev/null 2>&1; then |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| cat >>confdefs.h <<\_ACEOF |
| #define _ALL_SOURCE 1 |
| _ACEOF |
| |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| rm -f conftest* |
| |
| |
| |
| # Check for unsupported systems |
| case $ac_sys_system/$ac_sys_release in |
| Linux*/1*) |
| echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| echo See README for details. |
| exit 1;; |
| esac |
| |
| |
| echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
| |
| # Check whether --with-suffix or --without-suffix was given. |
| if test "${with_suffix+set}" = set; then |
| withval="$with_suffix" |
| |
| case $withval in |
| no) EXEEXT=;; |
| yes) EXEEXT=.exe;; |
| *) EXEEXT=$withval;; |
| esac |
| fi; |
| echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| echo "${ECHO_T}$EXEEXT" >&6 |
| |
| # Test whether we're running on a non-case-sensitive system, in which |
| # case we give a warning if no ext is given |
| |
| echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
| if test ! -d CaseSensitiveTestDir; then |
| mkdir CaseSensitiveTestDir |
| fi |
| |
| if test -d casesensitivetestdir |
| then |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| BUILDEXEEXT=.exe |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| BUILDEXEEXT=$EXEEXT |
| fi |
| rmdir CaseSensitiveTestDir |
| |
| case $MACHDEP in |
| bsdos*) |
| case $CC in |
| gcc) CC="$CC -D_HAVE_BSDI";; |
| esac;; |
| esac |
| |
| case $ac_sys_system in |
| hp*|HP*) |
| case $CC in |
| cc|*/cc) CC="$CC -Ae";; |
| esac;; |
| Monterey*) |
| case $CC in |
| cc) CC="$CC -Wl,-Bexport";; |
| esac;; |
| SunOS*) |
| # Some functions have a prototype only with that define, e.g. confstr |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define __EXTENSIONS__ 1 |
| _ACEOF |
| |
| ;; |
| esac |
| |
| |
| |
| echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
| if test -z "$LIBRARY" |
| then |
| LIBRARY='libpython$(VERSION).a' |
| fi |
| echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| echo "${ECHO_T}$LIBRARY" >&6 |
| |
| # LDLIBRARY is the name of the library to link against (as opposed to the |
| # name of the library into which to insert object files). BLDLIBRARY is also |
| # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| # is blank as the main program is not linked directly against LDLIBRARY. |
| # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| # DLLLIBRARY is the shared (i.e., DLL) library. |
| # |
| # RUNSHARED is used to run shared python without installed libraries |
| # |
| # INSTSONAME is the name of the shared library that will be use to install |
| # on the system - some systems like version suffix, others don't |
| |
| |
| |
| |
| |
| |
| LDLIBRARY="$LIBRARY" |
| BLDLIBRARY='$(LDLIBRARY)' |
| INSTSONAME='$(LDLIBRARY)' |
| DLLLIBRARY='' |
| LDLIBRARYDIR='' |
| RUNSHARED='' |
| |
| # LINKCC is the command that links the python executable -- default is $(CC). |
| # If CXX is set, and if it is needed to link a main function that was |
| # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| # python might then depend on the C++ runtime |
| # This is altered for AIX in order to build the export list before |
| # linking. |
| |
| echo "$as_me:$LINENO: checking LINKCC" >&5 |
| echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
| if test -z "$LINKCC" |
| then |
| LINKCC='$(PURIFY) $(MAINCC)' |
| case $ac_sys_system in |
| AIX*) |
| exp_extra="\"\"" |
| if test $ac_sys_release -ge 5 -o \ |
| $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| exp_extra="." |
| fi |
| LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
| Monterey64*) |
| LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
| esac |
| fi |
| echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| echo "${ECHO_T}$LINKCC" >&6 |
| |
| echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
| # Check whether --enable-shared or --disable-shared was given. |
| if test "${enable_shared+set}" = set; then |
| enableval="$enable_shared" |
| |
| fi; |
| |
| if test -z "$enable_shared" |
| then |
| case $ac_sys_system in |
| CYGWIN* | atheos*) |
| enable_shared="yes";; |
| *) |
| enable_shared="no";; |
| esac |
| fi |
| echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| echo "${ECHO_T}$enable_shared" >&6 |
| |
| echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6 |
| # Check whether --enable-profiling or --disable-profiling was given. |
| if test "${enable_profiling+set}" = set; then |
| enableval="$enable_profiling" |
| ac_save_cc="$CC" |
| CC="$CC -pg" |
| if test "$cross_compiling" = yes; then |
| ac_enable_profiling="no" |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| int main() { return 0; } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_enable_profiling="yes" |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_enable_profiling="no" |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| CC="$ac_save_cc" |
| fi; |
| echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| echo "${ECHO_T}$ac_enable_profiling" >&6 |
| |
| case "$ac_enable_profiling" in |
| "yes") |
| BASECFLAGS="-pg $BASECFLAGS" |
| LDFLAGS="-pg $LDFLAGS" |
| ;; |
| esac |
| |
| echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
| |
| # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| # library that we build, but we do not want to link against it (we |
| # will find it with a -framework option). For this reason there is an |
| # extra variable BLDLIBRARY against which Python and the extension |
| # modules are linked, BLDLIBRARY. This is normally the same as |
| # LDLIBRARY, but empty for MacOSX framework builds. |
| if test "$enable_framework" |
| then |
| LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| BLDLIBRARY='' |
| else |
| BLDLIBRARY='$(LDLIBRARY)' |
| fi |
| |
| # Other platforms follow |
| if test $enable_shared = "yes"; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define Py_ENABLE_SHARED 1 |
| _ACEOF |
| |
| case $ac_sys_system in |
| BeOS*) |
| LDLIBRARY='libpython$(VERSION).so' |
| ;; |
| CYGWIN*) |
| LDLIBRARY='libpython$(VERSION).dll.a' |
| DLLLIBRARY='libpython$(VERSION).dll' |
| ;; |
| SunOS*) |
| LDLIBRARY='libpython$(VERSION).so' |
| BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| INSTSONAME="$LDLIBRARY".$SOVERSION |
| ;; |
| Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| LDLIBRARY='libpython$(VERSION).so' |
| BLDLIBRARY='-L. -lpython$(VERSION)' |
| RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| case $ac_sys_system in |
| FreeBSD*) |
| SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| ;; |
| esac |
| INSTSONAME="$LDLIBRARY".$SOVERSION |
| ;; |
| hp*|HP*) |
| case `uname -m` in |
| ia64) |
| LDLIBRARY='libpython$(VERSION).so' |
| ;; |
| *) |
| LDLIBRARY='libpython$(VERSION).sl' |
| ;; |
| esac |
| BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| ;; |
| OSF*) |
| LDLIBRARY='libpython$(VERSION).so' |
| BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| ;; |
| atheos*) |
| LDLIBRARY='libpython$(VERSION).so' |
| BLDLIBRARY='-L. -lpython$(VERSION)' |
| RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| ;; |
| esac |
| else # shared is disabled |
| case $ac_sys_system in |
| CYGWIN*) |
| BLDLIBRARY='$(LIBRARY)' |
| LDLIBRARY='libpython$(VERSION).dll.a' |
| ;; |
| esac |
| fi |
| |
| echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| echo "${ECHO_T}$LDLIBRARY" >&6 |
| |
| if test -n "$ac_tool_prefix"; then |
| # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_RANLIB+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$RANLIB"; then |
| ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| fi |
| fi |
| RANLIB=$ac_cv_prog_RANLIB |
| if test -n "$RANLIB"; then |
| echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| echo "${ECHO_T}$RANLIB" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| fi |
| if test -z "$ac_cv_prog_RANLIB"; then |
| ac_ct_RANLIB=$RANLIB |
| # Extract the first word of "ranlib", so it can be a program name with args. |
| set dummy ranlib; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$ac_ct_RANLIB"; then |
| ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_ac_ct_RANLIB="ranlib" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| fi |
| fi |
| ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| if test -n "$ac_ct_RANLIB"; then |
| echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| RANLIB=$ac_ct_RANLIB |
| else |
| RANLIB="$ac_cv_prog_RANLIB" |
| fi |
| |
| |
| for ac_prog in ar aal |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_AR+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$AR"; then |
| ac_cv_prog_AR="$AR" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_AR="$ac_prog" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| fi |
| fi |
| AR=$ac_cv_prog_AR |
| if test -n "$AR"; then |
| echo "$as_me:$LINENO: result: $AR" >&5 |
| echo "${ECHO_T}$AR" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| test -n "$AR" && break |
| done |
| test -n "$AR" || AR="ar" |
| |
| |
| |
| # Extract the first word of "svnversion", so it can be a program name with args. |
| set dummy svnversion; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$SVNVERSION"; then |
| ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_SVNVERSION="found" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| fi |
| fi |
| SVNVERSION=$ac_cv_prog_SVNVERSION |
| if test -n "$SVNVERSION"; then |
| echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| echo "${ECHO_T}$SVNVERSION" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| if test $SVNVERSION = found |
| then |
| SVNVERSION="svnversion \$(srcdir)" |
| else |
| SVNVERSION="echo exported" |
| fi |
| |
| case $MACHDEP in |
| bsdos*|hp*|HP*) |
| # install -d does not work on BSDI or HP-UX |
| if test -z "$INSTALL" |
| then |
| INSTALL="${srcdir}/install-sh -c" |
| fi |
| esac |
| ac_aux_dir= |
| for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| if test -f $ac_dir/install-sh; then |
| ac_aux_dir=$ac_dir |
| ac_install_sh="$ac_aux_dir/install-sh -c" |
| break |
| elif test -f $ac_dir/install.sh; then |
| ac_aux_dir=$ac_dir |
| ac_install_sh="$ac_aux_dir/install.sh -c" |
| break |
| elif test -f $ac_dir/shtool; then |
| ac_aux_dir=$ac_dir |
| ac_install_sh="$ac_aux_dir/shtool install -c" |
| break |
| fi |
| done |
| if test -z "$ac_aux_dir"; then |
| { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| |
| # Find a good install program. We prefer a C program (faster), |
| # so one script is as good as another. But avoid the broken or |
| # incompatible versions: |
| # SysV /etc/install, /usr/sbin/install |
| # SunOS /usr/etc/install |
| # IRIX /sbin/install |
| # AIX /bin/install |
| # AmigaOS /C/install, which installs bootblocks on floppy discs |
| # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| # OS/2's system install, which has a completely different semantic |
| # ./install, which can be erroneously created by make from ./install.sh. |
| echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| if test -z "$INSTALL"; then |
| if test "${ac_cv_path_install+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| # Account for people who put trailing slashes in PATH elements. |
| case $as_dir/ in |
| ./ | .// | /cC/* | \ |
| /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| /usr/ucb/* ) ;; |
| *) |
| # OSF1 and SCO ODT 3.0 have their own names for install. |
| # Don't use installbsd from OSF since it installs stuff as root |
| # by default. |
| for ac_prog in ginstall scoinst install; do |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| if test $ac_prog = install && |
| grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| # AIX install. It has an incompatible calling convention. |
| : |
| elif test $ac_prog = install && |
| grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| # program-specific install script used by HP pwplus--don't use. |
| : |
| else |
| ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| break 3 |
| fi |
| fi |
| done |
| done |
| ;; |
| esac |
| done |
| |
| |
| fi |
| if test "${ac_cv_path_install+set}" = set; then |
| INSTALL=$ac_cv_path_install |
| else |
| # As a last resort, use the slow shell script. We don't cache a |
| # path for INSTALL within a source directory, because that will |
| # break other packages using the cache if that directory is |
| # removed, or if the path is relative. |
| INSTALL=$ac_install_sh |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| echo "${ECHO_T}$INSTALL" >&6 |
| |
| # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| # It thinks the first close brace ends the variable substitution. |
| test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| |
| test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| |
| test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| |
| |
| # Not every filesystem supports hard links |
| |
| if test -z "$LN" ; then |
| case $ac_sys_system in |
| BeOS*) LN="ln -s";; |
| CYGWIN*) LN="ln -s";; |
| atheos*) LN="ln -s";; |
| *) LN=ln;; |
| esac |
| fi |
| |
| # Check for --with-pydebug |
| echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| |
| # Check whether --with-pydebug or --without-pydebug was given. |
| if test "${with_pydebug+set}" = set; then |
| withval="$with_pydebug" |
| |
| if test "$withval" != no |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define Py_DEBUG 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6; |
| Py_DEBUG='true' |
| else echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
| fi |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi; |
| |
| # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| # merged with this chunk of code? |
| |
| # Optimizer/debugger flags |
| # ------------------------ |
| # (The following bit of code is complicated enough - please keep things |
| # indented properly. Just pretend you're editing Python code. ;-) |
| |
| # There are two parallel sets of case statements below, one that checks to |
| # see if OPT was set and one that does BASECFLAGS setting based upon |
| # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| # user set OPT. |
| |
| # tweak OPT based on compiler and platform, only if the user didn't set |
| # it on the command line |
| |
| if test -z "$OPT" |
| then |
| case $GCC in |
| yes) |
| if test "$CC" != 'g++' ; then |
| STRICT_PROTO="-Wstrict-prototypes" |
| fi |
| case $ac_cv_prog_cc_g in |
| yes) |
| if test "$Py_DEBUG" = 'true' ; then |
| # Optimization messes up debuggers, so turn it off for |
| # debug builds. |
| OPT="-g -Wall $STRICT_PROTO" |
| else |
| OPT="-g -O3 -Wall $STRICT_PROTO" |
| fi |
| ;; |
| *) |
| OPT="-O3 -Wall $STRICT_PROTO" |
| ;; |
| esac |
| case $ac_sys_system in |
| SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| ;; |
| esac |
| ;; |
| |
| *) |
| OPT="-O" |
| ;; |
| esac |
| |
| # The current (beta) Monterey compiler dies with optimizations |
| # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
| case $ac_sys_system in |
| Monterey*) |
| OPT="" |
| ;; |
| esac |
| |
| fi |
| |
| |
| # tweak BASECFLAGS based on compiler and platform |
| case $GCC in |
| yes) |
| # Python violates C99 rules, by casting between incompatible |
| # pointer types. GCC may generate bad code as a result of that, |
| # so use -fno-strict-aliasing if supported. |
| echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| ac_save_cc="$CC" |
| CC="$CC -fno-strict-aliasing" |
| if test "$cross_compiling" = yes; then |
| ac_cv_no_strict_aliasing_ok=no |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| int main() { return 0; } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_no_strict_aliasing_ok=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_no_strict_aliasing_ok=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| CC="$ac_save_cc" |
| echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| if test $ac_cv_no_strict_aliasing_ok = yes |
| then |
| BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| fi |
| case $ac_sys_system in |
| SCO_SV*) |
| BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| ;; |
| # is there any other compiler on Darwin besides gcc? |
| Darwin*) |
| BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
| if test "${enable_universalsdk}"; then |
| BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| fi |
| |
| ;; |
| OSF*) |
| BASECFLAGS="$BASECFLAGS -mieee" |
| ;; |
| esac |
| ;; |
| |
| *) |
| case $ac_sys_system in |
| OpenUNIX*|UnixWare*) |
| BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| ;; |
| OSF*) |
| BASECFLAGS="$BASECFLAGS -ieee -std" |
| ;; |
| SCO_SV*) |
| BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| ;; |
| esac |
| ;; |
| esac |
| |
| if test "$Py_DEBUG" = 'true'; then |
| : |
| else |
| OPT="-DNDEBUG $OPT" |
| fi |
| |
| if test "$ac_arch_flags" |
| then |
| BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| fi |
| |
| # disable check for icc since it seems to pass, but generates a warning |
| if test "$CC" = icc |
| then |
| ac_cv_opt_olimit_ok=no |
| fi |
| |
| echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_save_cc="$CC" |
| CC="$CC -OPT:Olimit=0" |
| if test "$cross_compiling" = yes; then |
| ac_cv_opt_olimit_ok=no |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| int main() { return 0; } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_opt_olimit_ok=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_opt_olimit_ok=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| CC="$ac_save_cc" |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
| if test $ac_cv_opt_olimit_ok = yes; then |
| case $ac_sys_system in |
| # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| # environment? |
| Darwin*) |
| ;; |
| *) |
| BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| ;; |
| esac |
| else |
| echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| if test "${ac_cv_olimit_ok+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_save_cc="$CC" |
| CC="$CC -Olimit 1500" |
| if test "$cross_compiling" = yes; then |
| ac_cv_olimit_ok=no |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| int main() { return 0; } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_olimit_ok=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_olimit_ok=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| CC="$ac_save_cc" |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
| if test $ac_cv_olimit_ok = yes; then |
| BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| fi |
| fi |
| |
| # On some compilers, pthreads are available without further options |
| # (e.g. MacOS X). On some of these systems, the compiler will not |
| # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| # So we have to see first whether pthreads are available without |
| # options before we can check whether -Kpthread improves anything. |
| echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| if test "${ac_cv_pthread_is_default+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$cross_compiling" = yes; then |
| ac_cv_pthread_is_default=no |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <pthread.h> |
| |
| void* routine(void* p){return NULL;} |
| |
| int main(){ |
| pthread_t p; |
| if(pthread_create(&p,NULL,routine,NULL)!=0) |
| return 1; |
| (void)pthread_detach(p); |
| return 0; |
| } |
| |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| ac_cv_pthread_is_default=yes |
| ac_cv_kthread=no |
| ac_cv_pthread=no |
| |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_pthread_is_default=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
| |
| |
| if test $ac_cv_pthread_is_default = yes |
| then |
| ac_cv_kpthread=no |
| else |
| # -Kpthread, if available, provides the right #defines |
| # and linker options to make pthread_create available |
| # Some compilers won't report that they do not support -Kpthread, |
| # so we need to run a program to see whether it really made the |
| # function available. |
| echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| if test "${ac_cv_kpthread+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_save_cc="$CC" |
| CC="$CC -Kpthread" |
| if test "$cross_compiling" = yes; then |
| ac_cv_kpthread=no |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <pthread.h> |
| |
| void* routine(void* p){return NULL;} |
| |
| int main(){ |
| pthread_t p; |
| if(pthread_create(&p,NULL,routine,NULL)!=0) |
| return 1; |
| (void)pthread_detach(p); |
| return 0; |
| } |
| |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_kpthread=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_kpthread=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| CC="$ac_save_cc" |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| echo "${ECHO_T}$ac_cv_kpthread" >&6 |
| fi |
| |
| if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| then |
| # -Kthread, if available, provides the right #defines |
| # and linker options to make pthread_create available |
| # Some compilers won't report that they do not support -Kthread, |
| # so we need to run a program to see whether it really made the |
| # function available. |
| echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| if test "${ac_cv_kthread+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_save_cc="$CC" |
| CC="$CC -Kthread" |
| if test "$cross_compiling" = yes; then |
| ac_cv_kthread=no |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <pthread.h> |
| |
| void* routine(void* p){return NULL;} |
| |
| int main(){ |
| pthread_t p; |
| if(pthread_create(&p,NULL,routine,NULL)!=0) |
| return 1; |
| (void)pthread_detach(p); |
| return 0; |
| } |
| |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_kthread=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_kthread=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| CC="$ac_save_cc" |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| echo "${ECHO_T}$ac_cv_kthread" >&6 |
| fi |
| |
| if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| then |
| # -pthread, if available, provides the right #defines |
| # and linker options to make pthread_create available |
| # Some compilers won't report that they do not support -pthread, |
| # so we need to run a program to see whether it really made the |
| # function available. |
| echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| if test "${ac_cv_thread+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_save_cc="$CC" |
| CC="$CC -pthread" |
| if test "$cross_compiling" = yes; then |
| ac_cv_pthread=no |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <pthread.h> |
| |
| void* routine(void* p){return NULL;} |
| |
| int main(){ |
| pthread_t p; |
| if(pthread_create(&p,NULL,routine,NULL)!=0) |
| return 1; |
| (void)pthread_detach(p); |
| return 0; |
| } |
| |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_pthread=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_pthread=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| CC="$ac_save_cc" |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| echo "${ECHO_T}$ac_cv_pthread" >&6 |
| fi |
| |
| # If we have set a CC compiler flag for thread support then |
| # check if it works for CXX, too. |
| ac_cv_cxx_thread=no |
| if test ! -z "$CXX" |
| then |
| echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| ac_save_cxx="$CXX" |
| |
| if test "$ac_cv_kpthread" = "yes" |
| then |
| CXX="$CXX -Kpthread" |
| ac_cv_cxx_thread=yes |
| elif test "$ac_cv_kthread" = "yes" |
| then |
| CXX="$CXX -Kthread" |
| ac_cv_cxx_thread=yes |
| elif test "$ac_cv_pthread" = "yes" |
| then |
| CXX="$CXX -pthread" |
| ac_cv_cxx_thread=yes |
| fi |
| |
| if test $ac_cv_cxx_thread = yes |
| then |
| echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| $CXX -c conftest.$ac_ext 2>&5 |
| if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| then |
| ac_cv_cxx_thread=yes |
| else |
| ac_cv_cxx_thread=no |
| fi |
| rm -fr conftest* |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
| fi |
| CXX="$ac_save_cxx" |
| |
| |
| # checks for header files |
| echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| if test "${ac_cv_header_stdc+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <stdlib.h> |
| #include <stdarg.h> |
| #include <string.h> |
| #include <float.h> |
| |
| int |
| main () |
| { |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_header_stdc=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_header_stdc=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| if test $ac_cv_header_stdc = yes; then |
| # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <string.h> |
| |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "memchr" >/dev/null 2>&1; then |
| : |
| else |
| ac_cv_header_stdc=no |
| fi |
| rm -f conftest* |
| |
| fi |
| |
| if test $ac_cv_header_stdc = yes; then |
| # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <stdlib.h> |
| |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "free" >/dev/null 2>&1; then |
| : |
| else |
| ac_cv_header_stdc=no |
| fi |
| rm -f conftest* |
| |
| fi |
| |
| if test $ac_cv_header_stdc = yes; then |
| # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| if test "$cross_compiling" = yes; then |
| : |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <ctype.h> |
| #if ((' ' & 0x0FF) == 0x020) |
| # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| #else |
| # define ISLOWER(c) \ |
| (('a' <= (c) && (c) <= 'i') \ |
| || ('j' <= (c) && (c) <= 'r') \ |
| || ('s' <= (c) && (c) <= 'z')) |
| # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| #endif |
| |
| #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| int |
| main () |
| { |
| int i; |
| for (i = 0; i < 256; i++) |
| if (XOR (islower (i), ISLOWER (i)) |
| || toupper (i) != TOUPPER (i)) |
| exit(2); |
| exit (0); |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| : |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_header_stdc=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| if test $ac_cv_header_stdc = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define STDC_HEADERS 1 |
| _ACEOF |
| |
| fi |
| |
| # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| inttypes.h stdint.h unistd.h |
| do |
| as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| |
| #include <$ac_header> |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_Header=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_Header=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| fi |
| |
| done |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| fcntl.h grp.h \ |
| io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
| shadow.h signal.h stdint.h stropts.h termios.h thread.h \ |
| unistd.h utime.h \ |
| sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| sys/modem.h \ |
| sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
| sys/time.h \ |
| sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
| sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| bluetooth/bluetooth.h |
| do |
| as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| else |
| # Is the header compilable? |
| echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| #include <$ac_header> |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_header_compiler=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_compiler=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| echo "${ECHO_T}$ac_header_compiler" >&6 |
| |
| # Is the header present? |
| echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <$ac_header> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| ac_header_preproc=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_preproc=no |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| echo "${ECHO_T}$ac_header_preproc" >&6 |
| |
| # So? What about this header? |
| case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| yes:no: ) |
| { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| ac_header_preproc=yes |
| ;; |
| no:yes:* ) |
| { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| ( |
| cat <<\_ASBOX |
| ## ------------------------------------------------ ## |
| ## Report this to http://www.python.org/python-bugs ## |
| ## ------------------------------------------------ ## |
| _ASBOX |
| ) | |
| sed "s/^/$as_me: WARNING: /" >&2 |
| ;; |
| esac |
| echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| eval "$as_ac_Header=\$ac_header_preproc" |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| |
| fi |
| if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| fi |
| |
| done |
| |
| |
| |
| |
| |
| |
| ac_header_dirent=no |
| for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <$ac_hdr> |
| |
| int |
| main () |
| { |
| if ((DIR *) 0) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_Header=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_Header=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| ac_header_dirent=$ac_hdr; break |
| fi |
| |
| done |
| # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| if test $ac_header_dirent = dirent.h; then |
| echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| if test "${ac_cv_search_opendir+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_func_search_save_LIBS=$LIBS |
| ac_cv_search_opendir=no |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char opendir (); |
| int |
| main () |
| { |
| opendir (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_search_opendir="none required" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| if test "$ac_cv_search_opendir" = no; then |
| for ac_lib in dir; do |
| LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char opendir (); |
| int |
| main () |
| { |
| opendir (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_search_opendir="-l$ac_lib" |
| break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| done |
| fi |
| LIBS=$ac_func_search_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| if test "$ac_cv_search_opendir" != no; then |
| test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| |
| fi |
| |
| else |
| echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| if test "${ac_cv_search_opendir+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_func_search_save_LIBS=$LIBS |
| ac_cv_search_opendir=no |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char opendir (); |
| int |
| main () |
| { |
| opendir (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_search_opendir="none required" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| if test "$ac_cv_search_opendir" = no; then |
| for ac_lib in x; do |
| LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char opendir (); |
| int |
| main () |
| { |
| opendir (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_search_opendir="-l$ac_lib" |
| break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| done |
| fi |
| LIBS=$ac_func_search_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| if test "$ac_cv_search_opendir" != no; then |
| test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| |
| fi |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| int |
| main () |
| { |
| return makedev(0, 0); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_header_sys_types_h_makedev=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_header_sys_types_h_makedev=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| |
| if test $ac_cv_header_sys_types_h_makedev = no; then |
| if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| else |
| # Is the header compilable? |
| echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| #include <sys/mkdev.h> |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_header_compiler=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_compiler=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| echo "${ECHO_T}$ac_header_compiler" >&6 |
| |
| # Is the header present? |
| echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/mkdev.h> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| ac_header_preproc=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_preproc=no |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| echo "${ECHO_T}$ac_header_preproc" >&6 |
| |
| # So? What about this header? |
| case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| yes:no: ) |
| { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| ac_header_preproc=yes |
| ;; |
| no:yes:* ) |
| { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
| ( |
| cat <<\_ASBOX |
| ## ------------------------------------------------ ## |
| ## Report this to http://www.python.org/python-bugs ## |
| ## ------------------------------------------------ ## |
| _ASBOX |
| ) | |
| sed "s/^/$as_me: WARNING: /" >&2 |
| ;; |
| esac |
| echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| |
| fi |
| if test $ac_cv_header_sys_mkdev_h = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define MAJOR_IN_MKDEV 1 |
| _ACEOF |
| |
| fi |
| |
| |
| |
| if test $ac_cv_header_sys_mkdev_h = no; then |
| if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| else |
| # Is the header compilable? |
| echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| #include <sys/sysmacros.h> |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_header_compiler=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_compiler=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| echo "${ECHO_T}$ac_header_compiler" >&6 |
| |
| # Is the header present? |
| echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/sysmacros.h> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| ac_header_preproc=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_preproc=no |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| echo "${ECHO_T}$ac_header_preproc" >&6 |
| |
| # So? What about this header? |
| case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| yes:no: ) |
| { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| ac_header_preproc=yes |
| ;; |
| no:yes:* ) |
| { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
| ( |
| cat <<\_ASBOX |
| ## ------------------------------------------------ ## |
| ## Report this to http://www.python.org/python-bugs ## |
| ## ------------------------------------------------ ## |
| _ASBOX |
| ) | |
| sed "s/^/$as_me: WARNING: /" >&2 |
| ;; |
| esac |
| echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| |
| fi |
| if test $ac_cv_header_sys_sysmacros_h = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define MAJOR_IN_SYSMACROS 1 |
| _ACEOF |
| |
| fi |
| |
| |
| fi |
| fi |
| |
| |
| # On Solaris, term.h requires curses.h |
| |
| for ac_header in term.h |
| do |
| as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #ifdef HAVE_CURSES_H |
| #include <curses.h> |
| #endif |
| |
| |
| #include <$ac_header> |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_Header=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_Header=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| fi |
| |
| done |
| |
| |
| # On Linux, netlink.h requires asm/types.h |
| |
| for ac_header in linux/netlink.h |
| do |
| as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #ifdef HAVE_ASM_TYPES_H |
| #include <asm/types.h> |
| #endif |
| #ifdef HAVE_SYS_SOCKET_H |
| #include <sys/socket.h> |
| #endif |
| |
| |
| #include <$ac_header> |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_Header=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_Header=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| fi |
| |
| done |
| |
| |
| # checks for typedefs |
| was_it_defined=no |
| echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <time.h> |
| |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "clock_t" >/dev/null 2>&1; then |
| was_it_defined=yes |
| else |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define clock_t long |
| _ACEOF |
| |
| |
| fi |
| rm -f conftest* |
| |
| echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| echo "${ECHO_T}$was_it_defined" >&6 |
| |
| # Check whether using makedev requires defining _OSF_SOURCE |
| echo "$as_me:$LINENO: checking for makedev" >&5 |
| echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| int |
| main () |
| { |
| makedev(0, 0) |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_has_makedev=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_has_makedev=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| if test "$ac_cv_has_makedev" = "no"; then |
| # we didn't link, try if _OSF_SOURCE will allow us to link |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #define _OSF_SOURCE 1 |
| #include <sys/types.h> |
| |
| int |
| main () |
| { |
| makedev(0, 0) |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_has_makedev=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_has_makedev=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| if test "$ac_cv_has_makedev" = "yes"; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _OSF_SOURCE 1 |
| _ACEOF |
| |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| if test "$ac_cv_has_makedev" = "yes"; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_MAKEDEV 1 |
| _ACEOF |
| |
| fi |
| |
| # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| # defined, but the compiler does not support pragma redefine_extname, |
| # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| # structures (such as rlimit64) without declaring them. As a |
| # work-around, disable LFS on such configurations |
| |
| use_lfs=yes |
| echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #define _LARGEFILE_SOURCE 1 |
| #define _FILE_OFFSET_BITS 64 |
| #include <sys/resource.h> |
| |
| int |
| main () |
| { |
| struct rlimit foo; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| sol_lfs_bug=no |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| sol_lfs_bug=yes |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| echo "${ECHO_T}$sol_lfs_bug" >&6 |
| if test "$sol_lfs_bug" = "yes"; then |
| use_lfs=no |
| fi |
| |
| if test "$use_lfs" = "yes"; then |
| # Two defines needed to enable largefile support on various platforms |
| # These may affect some typedefs |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _LARGEFILE_SOURCE 1 |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _FILE_OFFSET_BITS 64 |
| _ACEOF |
| |
| fi |
| |
| # Add some code to confdefs.h so that the test for off_t works on SCO |
| cat >> confdefs.h <<\EOF |
| #if defined(SCO_DS) |
| #undef _OFF_T |
| #endif |
| EOF |
| |
| # Type availability checks |
| echo "$as_me:$LINENO: checking for mode_t" >&5 |
| echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| if test "${ac_cv_type_mode_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((mode_t *) 0) |
| return 0; |
| if (sizeof (mode_t)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_mode_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_mode_t=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| if test $ac_cv_type_mode_t = yes; then |
| : |
| else |
| |
| cat >>confdefs.h <<_ACEOF |
| #define mode_t int |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for off_t" >&5 |
| echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| if test "${ac_cv_type_off_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((off_t *) 0) |
| return 0; |
| if (sizeof (off_t)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_off_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_off_t=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| if test $ac_cv_type_off_t = yes; then |
| : |
| else |
| |
| cat >>confdefs.h <<_ACEOF |
| #define off_t long |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for pid_t" >&5 |
| echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| if test "${ac_cv_type_pid_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((pid_t *) 0) |
| return 0; |
| if (sizeof (pid_t)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_pid_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_pid_t=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| if test $ac_cv_type_pid_t = yes; then |
| : |
| else |
| |
| cat >>confdefs.h <<_ACEOF |
| #define pid_t int |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| if test "${ac_cv_type_signal+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <signal.h> |
| #ifdef signal |
| # undef signal |
| #endif |
| #ifdef __cplusplus |
| extern "C" void (*signal (int, void (*)(int)))(int); |
| #else |
| void (*signal ()) (); |
| #endif |
| |
| int |
| main () |
| { |
| int i; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_signal=void |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_signal=int |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| |
| cat >>confdefs.h <<_ACEOF |
| #define RETSIGTYPE $ac_cv_type_signal |
| _ACEOF |
| |
| |
| echo "$as_me:$LINENO: checking for size_t" >&5 |
| echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| if test "${ac_cv_type_size_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((size_t *) 0) |
| return 0; |
| if (sizeof (size_t)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_size_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_size_t=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| if test $ac_cv_type_size_t = yes; then |
| : |
| else |
| |
| cat >>confdefs.h <<_ACEOF |
| #define size_t unsigned |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| if test "${ac_cv_type_uid_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "uid_t" >/dev/null 2>&1; then |
| ac_cv_type_uid_t=yes |
| else |
| ac_cv_type_uid_t=no |
| fi |
| rm -f conftest* |
| |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
| if test $ac_cv_type_uid_t = no; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define uid_t int |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define gid_t int |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| if test "${ac_cv_type_ssize_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((ssize_t *) 0) |
| return 0; |
| if (sizeof (ssize_t)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_ssize_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_ssize_t=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| if test $ac_cv_type_ssize_t = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_SSIZE_T 1 |
| _ACEOF |
| |
| fi |
| |
| |
| # Sizes of various common basic types |
| # ANSI C requires sizeof(char) == 1, so no need to check it |
| echo "$as_me:$LINENO: checking for int" >&5 |
| echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| if test "${ac_cv_type_int+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((int *) 0) |
| return 0; |
| if (sizeof (int)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_int=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_int=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| echo "${ECHO_T}$ac_cv_type_int" >&6 |
| |
| echo "$as_me:$LINENO: checking size of int" >&5 |
| echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_int+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$ac_cv_type_int" = yes; then |
| # The cast to unsigned long works around a bug in the HP C Compiler |
| # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| # This bug is HP SR number 8606223364. |
| if test "$cross_compiling" = yes; then |
| # Depending upon the size, compute the lo and hi bounds. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=0 ac_mid=0 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr $ac_mid + 1` |
| if test $ac_lo -le $ac_mid; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=-1 ac_mid=-1 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_hi=`expr '(' $ac_mid ')' - 1` |
| if test $ac_mid -le $ac_hi; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo= ac_hi= |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| # Binary search between lo and hi bounds. |
| while test "x$ac_lo" != "x$ac_hi"; do |
| ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr '(' $ac_mid ')' + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| case $ac_lo in |
| ?*) ac_cv_sizeof_int=$ac_lo;; |
| '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (int), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| else |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| long longval () { return (long) (sizeof (int)); } |
| unsigned long ulongval () { return (long) (sizeof (int)); } |
| #include <stdio.h> |
| #include <stdlib.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen ("conftest.val", "w"); |
| if (! f) |
| exit (1); |
| if (((long) (sizeof (int))) < 0) |
| { |
| long i = longval (); |
| if (i != ((long) (sizeof (int)))) |
| exit (1); |
| fprintf (f, "%ld\n", i); |
| } |
| else |
| { |
| unsigned long i = ulongval (); |
| if (i != ((long) (sizeof (int)))) |
| exit (1); |
| fprintf (f, "%lu\n", i); |
| } |
| exit (ferror (f) || fclose (f) != 0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_int=`cat conftest.val` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (int), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.val |
| else |
| ac_cv_sizeof_int=0 |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_INT $ac_cv_sizeof_int |
| _ACEOF |
| |
| |
| echo "$as_me:$LINENO: checking for long" >&5 |
| echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| if test "${ac_cv_type_long+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((long *) 0) |
| return 0; |
| if (sizeof (long)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_long=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_long=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| echo "${ECHO_T}$ac_cv_type_long" >&6 |
| |
| echo "$as_me:$LINENO: checking size of long" >&5 |
| echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_long+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$ac_cv_type_long" = yes; then |
| # The cast to unsigned long works around a bug in the HP C Compiler |
| # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| # This bug is HP SR number 8606223364. |
| if test "$cross_compiling" = yes; then |
| # Depending upon the size, compute the lo and hi bounds. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=0 ac_mid=0 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr $ac_mid + 1` |
| if test $ac_lo -le $ac_mid; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=-1 ac_mid=-1 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_hi=`expr '(' $ac_mid ')' - 1` |
| if test $ac_mid -le $ac_hi; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo= ac_hi= |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| # Binary search between lo and hi bounds. |
| while test "x$ac_lo" != "x$ac_hi"; do |
| ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr '(' $ac_mid ')' + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| case $ac_lo in |
| ?*) ac_cv_sizeof_long=$ac_lo;; |
| '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (long), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| else |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| long longval () { return (long) (sizeof (long)); } |
| unsigned long ulongval () { return (long) (sizeof (long)); } |
| #include <stdio.h> |
| #include <stdlib.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen ("conftest.val", "w"); |
| if (! f) |
| exit (1); |
| if (((long) (sizeof (long))) < 0) |
| { |
| long i = longval (); |
| if (i != ((long) (sizeof (long)))) |
| exit (1); |
| fprintf (f, "%ld\n", i); |
| } |
| else |
| { |
| unsigned long i = ulongval (); |
| if (i != ((long) (sizeof (long)))) |
| exit (1); |
| fprintf (f, "%lu\n", i); |
| } |
| exit (ferror (f) || fclose (f) != 0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_long=`cat conftest.val` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (long), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.val |
| else |
| ac_cv_sizeof_long=0 |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_LONG $ac_cv_sizeof_long |
| _ACEOF |
| |
| |
| echo "$as_me:$LINENO: checking for void *" >&5 |
| echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| if test "${ac_cv_type_void_p+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((void * *) 0) |
| return 0; |
| if (sizeof (void *)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_void_p=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_void_p=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| |
| echo "$as_me:$LINENO: checking size of void *" >&5 |
| echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_void_p+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$ac_cv_type_void_p" = yes; then |
| # The cast to unsigned long works around a bug in the HP C Compiler |
| # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| # This bug is HP SR number 8606223364. |
| if test "$cross_compiling" = yes; then |
| # Depending upon the size, compute the lo and hi bounds. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=0 ac_mid=0 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr $ac_mid + 1` |
| if test $ac_lo -le $ac_mid; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=-1 ac_mid=-1 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_hi=`expr '(' $ac_mid ')' - 1` |
| if test $ac_mid -le $ac_hi; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo= ac_hi= |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| # Binary search between lo and hi bounds. |
| while test "x$ac_lo" != "x$ac_hi"; do |
| ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr '(' $ac_mid ')' + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| case $ac_lo in |
| ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (void *), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| else |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| long longval () { return (long) (sizeof (void *)); } |
| unsigned long ulongval () { return (long) (sizeof (void *)); } |
| #include <stdio.h> |
| #include <stdlib.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen ("conftest.val", "w"); |
| if (! f) |
| exit (1); |
| if (((long) (sizeof (void *))) < 0) |
| { |
| long i = longval (); |
| if (i != ((long) (sizeof (void *)))) |
| exit (1); |
| fprintf (f, "%ld\n", i); |
| } |
| else |
| { |
| unsigned long i = ulongval (); |
| if (i != ((long) (sizeof (void *)))) |
| exit (1); |
| fprintf (f, "%lu\n", i); |
| } |
| exit (ferror (f) || fclose (f) != 0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_void_p=`cat conftest.val` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (void *), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.val |
| else |
| ac_cv_sizeof_void_p=0 |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| _ACEOF |
| |
| |
| echo "$as_me:$LINENO: checking for short" >&5 |
| echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| if test "${ac_cv_type_short+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((short *) 0) |
| return 0; |
| if (sizeof (short)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_short=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_short=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| echo "${ECHO_T}$ac_cv_type_short" >&6 |
| |
| echo "$as_me:$LINENO: checking size of short" >&5 |
| echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_short+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$ac_cv_type_short" = yes; then |
| # The cast to unsigned long works around a bug in the HP C Compiler |
| # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| # This bug is HP SR number 8606223364. |
| if test "$cross_compiling" = yes; then |
| # Depending upon the size, compute the lo and hi bounds. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=0 ac_mid=0 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr $ac_mid + 1` |
| if test $ac_lo -le $ac_mid; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=-1 ac_mid=-1 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_hi=`expr '(' $ac_mid ')' - 1` |
| if test $ac_mid -le $ac_hi; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo= ac_hi= |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| # Binary search between lo and hi bounds. |
| while test "x$ac_lo" != "x$ac_hi"; do |
| ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr '(' $ac_mid ')' + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| case $ac_lo in |
| ?*) ac_cv_sizeof_short=$ac_lo;; |
| '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (short), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| else |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| long longval () { return (long) (sizeof (short)); } |
| unsigned long ulongval () { return (long) (sizeof (short)); } |
| #include <stdio.h> |
| #include <stdlib.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen ("conftest.val", "w"); |
| if (! f) |
| exit (1); |
| if (((long) (sizeof (short))) < 0) |
| { |
| long i = longval (); |
| if (i != ((long) (sizeof (short)))) |
| exit (1); |
| fprintf (f, "%ld\n", i); |
| } |
| else |
| { |
| unsigned long i = ulongval (); |
| if (i != ((long) (sizeof (short)))) |
| exit (1); |
| fprintf (f, "%lu\n", i); |
| } |
| exit (ferror (f) || fclose (f) != 0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_short=`cat conftest.val` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (short), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.val |
| else |
| ac_cv_sizeof_short=0 |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_SHORT $ac_cv_sizeof_short |
| _ACEOF |
| |
| |
| echo "$as_me:$LINENO: checking for float" >&5 |
| echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| if test "${ac_cv_type_float+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((float *) 0) |
| return 0; |
| if (sizeof (float)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_float=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_float=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| echo "${ECHO_T}$ac_cv_type_float" >&6 |
| |
| echo "$as_me:$LINENO: checking size of float" >&5 |
| echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_float+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$ac_cv_type_float" = yes; then |
| # The cast to unsigned long works around a bug in the HP C Compiler |
| # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| # This bug is HP SR number 8606223364. |
| if test "$cross_compiling" = yes; then |
| # Depending upon the size, compute the lo and hi bounds. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=0 ac_mid=0 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr $ac_mid + 1` |
| if test $ac_lo -le $ac_mid; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=-1 ac_mid=-1 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_hi=`expr '(' $ac_mid ')' - 1` |
| if test $ac_mid -le $ac_hi; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo= ac_hi= |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| # Binary search between lo and hi bounds. |
| while test "x$ac_lo" != "x$ac_hi"; do |
| ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr '(' $ac_mid ')' + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| case $ac_lo in |
| ?*) ac_cv_sizeof_float=$ac_lo;; |
| '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (float), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| else |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| long longval () { return (long) (sizeof (float)); } |
| unsigned long ulongval () { return (long) (sizeof (float)); } |
| #include <stdio.h> |
| #include <stdlib.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen ("conftest.val", "w"); |
| if (! f) |
| exit (1); |
| if (((long) (sizeof (float))) < 0) |
| { |
| long i = longval (); |
| if (i != ((long) (sizeof (float)))) |
| exit (1); |
| fprintf (f, "%ld\n", i); |
| } |
| else |
| { |
| unsigned long i = ulongval (); |
| if (i != ((long) (sizeof (float)))) |
| exit (1); |
| fprintf (f, "%lu\n", i); |
| } |
| exit (ferror (f) || fclose (f) != 0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_float=`cat conftest.val` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (float), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.val |
| else |
| ac_cv_sizeof_float=0 |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| _ACEOF |
| |
| |
| echo "$as_me:$LINENO: checking for double" >&5 |
| echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| if test "${ac_cv_type_double+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((double *) 0) |
| return 0; |
| if (sizeof (double)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_double=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_double=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| echo "${ECHO_T}$ac_cv_type_double" >&6 |
| |
| echo "$as_me:$LINENO: checking size of double" >&5 |
| echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_double+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$ac_cv_type_double" = yes; then |
| # The cast to unsigned long works around a bug in the HP C Compiler |
| # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| # This bug is HP SR number 8606223364. |
| if test "$cross_compiling" = yes; then |
| # Depending upon the size, compute the lo and hi bounds. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=0 ac_mid=0 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr $ac_mid + 1` |
| if test $ac_lo -le $ac_mid; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=-1 ac_mid=-1 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_hi=`expr '(' $ac_mid ')' - 1` |
| if test $ac_mid -le $ac_hi; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo= ac_hi= |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| # Binary search between lo and hi bounds. |
| while test "x$ac_lo" != "x$ac_hi"; do |
| ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr '(' $ac_mid ')' + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| case $ac_lo in |
| ?*) ac_cv_sizeof_double=$ac_lo;; |
| '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (double), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| else |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| long longval () { return (long) (sizeof (double)); } |
| unsigned long ulongval () { return (long) (sizeof (double)); } |
| #include <stdio.h> |
| #include <stdlib.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen ("conftest.val", "w"); |
| if (! f) |
| exit (1); |
| if (((long) (sizeof (double))) < 0) |
| { |
| long i = longval (); |
| if (i != ((long) (sizeof (double)))) |
| exit (1); |
| fprintf (f, "%ld\n", i); |
| } |
| else |
| { |
| unsigned long i = ulongval (); |
| if (i != ((long) (sizeof (double)))) |
| exit (1); |
| fprintf (f, "%lu\n", i); |
| } |
| exit (ferror (f) || fclose (f) != 0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_double=`cat conftest.val` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (double), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.val |
| else |
| ac_cv_sizeof_double=0 |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| _ACEOF |
| |
| |
| echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| if test "${ac_cv_type_fpos_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((fpos_t *) 0) |
| return 0; |
| if (sizeof (fpos_t)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_fpos_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_fpos_t=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| |
| echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$ac_cv_type_fpos_t" = yes; then |
| # The cast to unsigned long works around a bug in the HP C Compiler |
| # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| # This bug is HP SR number 8606223364. |
| if test "$cross_compiling" = yes; then |
| # Depending upon the size, compute the lo and hi bounds. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=0 ac_mid=0 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr $ac_mid + 1` |
| if test $ac_lo -le $ac_mid; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=-1 ac_mid=-1 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_hi=`expr '(' $ac_mid ')' - 1` |
| if test $ac_mid -le $ac_hi; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo= ac_hi= |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| # Binary search between lo and hi bounds. |
| while test "x$ac_lo" != "x$ac_hi"; do |
| ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr '(' $ac_mid ')' + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| case $ac_lo in |
| ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| else |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| long longval () { return (long) (sizeof (fpos_t)); } |
| unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
| #include <stdio.h> |
| #include <stdlib.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen ("conftest.val", "w"); |
| if (! f) |
| exit (1); |
| if (((long) (sizeof (fpos_t))) < 0) |
| { |
| long i = longval (); |
| if (i != ((long) (sizeof (fpos_t)))) |
| exit (1); |
| fprintf (f, "%ld\n", i); |
| } |
| else |
| { |
| unsigned long i = ulongval (); |
| if (i != ((long) (sizeof (fpos_t)))) |
| exit (1); |
| fprintf (f, "%lu\n", i); |
| } |
| exit (ferror (f) || fclose (f) != 0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_fpos_t=`cat conftest.val` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.val |
| else |
| ac_cv_sizeof_fpos_t=0 |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| _ACEOF |
| |
| |
| echo "$as_me:$LINENO: checking for size_t" >&5 |
| echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| if test "${ac_cv_type_size_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((size_t *) 0) |
| return 0; |
| if (sizeof (size_t)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_size_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_size_t=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| |
| echo "$as_me:$LINENO: checking size of size_t" >&5 |
| echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_size_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$ac_cv_type_size_t" = yes; then |
| # The cast to unsigned long works around a bug in the HP C Compiler |
| # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| # This bug is HP SR number 8606223364. |
| if test "$cross_compiling" = yes; then |
| # Depending upon the size, compute the lo and hi bounds. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=0 ac_mid=0 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr $ac_mid + 1` |
| if test $ac_lo -le $ac_mid; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=-1 ac_mid=-1 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_hi=`expr '(' $ac_mid ')' - 1` |
| if test $ac_mid -le $ac_hi; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo= ac_hi= |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| # Binary search between lo and hi bounds. |
| while test "x$ac_lo" != "x$ac_hi"; do |
| ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr '(' $ac_mid ')' + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| case $ac_lo in |
| ?*) ac_cv_sizeof_size_t=$ac_lo;; |
| '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (size_t), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| else |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| long longval () { return (long) (sizeof (size_t)); } |
| unsigned long ulongval () { return (long) (sizeof (size_t)); } |
| #include <stdio.h> |
| #include <stdlib.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen ("conftest.val", "w"); |
| if (! f) |
| exit (1); |
| if (((long) (sizeof (size_t))) < 0) |
| { |
| long i = longval (); |
| if (i != ((long) (sizeof (size_t)))) |
| exit (1); |
| fprintf (f, "%ld\n", i); |
| } |
| else |
| { |
| unsigned long i = ulongval (); |
| if (i != ((long) (sizeof (size_t)))) |
| exit (1); |
| fprintf (f, "%lu\n", i); |
| } |
| exit (ferror (f) || fclose (f) != 0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_size_t=`cat conftest.val` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (size_t), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.val |
| else |
| ac_cv_sizeof_size_t=0 |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| _ACEOF |
| |
| |
| |
| echo "$as_me:$LINENO: checking for long long support" >&5 |
| echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
| have_long_long=no |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| int |
| main () |
| { |
| long long x; x = (long long)0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_LONG_LONG 1 |
| _ACEOF |
| |
| have_long_long=yes |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| echo "${ECHO_T}$have_long_long" >&6 |
| if test "$have_long_long" = yes ; then |
| echo "$as_me:$LINENO: checking for long long" >&5 |
| echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| if test "${ac_cv_type_long_long+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((long long *) 0) |
| return 0; |
| if (sizeof (long long)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_long_long=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_long_long=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| |
| echo "$as_me:$LINENO: checking size of long long" >&5 |
| echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_long_long+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$ac_cv_type_long_long" = yes; then |
| # The cast to unsigned long works around a bug in the HP C Compiler |
| # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| # This bug is HP SR number 8606223364. |
| if test "$cross_compiling" = yes; then |
| # Depending upon the size, compute the lo and hi bounds. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=0 ac_mid=0 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr $ac_mid + 1` |
| if test $ac_lo -le $ac_mid; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=-1 ac_mid=-1 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_hi=`expr '(' $ac_mid ')' - 1` |
| if test $ac_mid -le $ac_hi; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo= ac_hi= |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| # Binary search between lo and hi bounds. |
| while test "x$ac_lo" != "x$ac_hi"; do |
| ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr '(' $ac_mid ')' + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| case $ac_lo in |
| ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (long long), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| else |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| long longval () { return (long) (sizeof (long long)); } |
| unsigned long ulongval () { return (long) (sizeof (long long)); } |
| #include <stdio.h> |
| #include <stdlib.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen ("conftest.val", "w"); |
| if (! f) |
| exit (1); |
| if (((long) (sizeof (long long))) < 0) |
| { |
| long i = longval (); |
| if (i != ((long) (sizeof (long long)))) |
| exit (1); |
| fprintf (f, "%ld\n", i); |
| } |
| else |
| { |
| unsigned long i = ulongval (); |
| if (i != ((long) (sizeof (long long)))) |
| exit (1); |
| fprintf (f, "%lu\n", i); |
| } |
| exit (ferror (f) || fclose (f) != 0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_long_long=`cat conftest.val` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (long long), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.val |
| else |
| ac_cv_sizeof_long_long=0 |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| _ACEOF |
| |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| if test "${ac_cv_type_uintptr_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #ifdef HAVE_STDINT_H |
| #include <stdint.h> |
| #endif |
| |
| int |
| main () |
| { |
| if ((uintptr_t *) 0) |
| return 0; |
| if (sizeof (uintptr_t)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_uintptr_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_uintptr_t=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| if test $ac_cv_type_uintptr_t = yes; then |
| |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_UINTPTR_T 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| if test "${ac_cv_type_uintptr_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| if ((uintptr_t *) 0) |
| return 0; |
| if (sizeof (uintptr_t)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_uintptr_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_uintptr_t=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| |
| echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$ac_cv_type_uintptr_t" = yes; then |
| # The cast to unsigned long works around a bug in the HP C Compiler |
| # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| # This bug is HP SR number 8606223364. |
| if test "$cross_compiling" = yes; then |
| # Depending upon the size, compute the lo and hi bounds. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=0 ac_mid=0 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr $ac_mid + 1` |
| if test $ac_lo -le $ac_mid; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=-1 ac_mid=-1 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_hi=`expr '(' $ac_mid ')' - 1` |
| if test $ac_mid -le $ac_hi; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo= ac_hi= |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| # Binary search between lo and hi bounds. |
| while test "x$ac_lo" != "x$ac_hi"; do |
| ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr '(' $ac_mid ')' + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| case $ac_lo in |
| ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| else |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| long longval () { return (long) (sizeof (uintptr_t)); } |
| unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
| #include <stdio.h> |
| #include <stdlib.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen ("conftest.val", "w"); |
| if (! f) |
| exit (1); |
| if (((long) (sizeof (uintptr_t))) < 0) |
| { |
| long i = longval (); |
| if (i != ((long) (sizeof (uintptr_t)))) |
| exit (1); |
| fprintf (f, "%ld\n", i); |
| } |
| else |
| { |
| unsigned long i = ulongval (); |
| if (i != ((long) (sizeof (uintptr_t)))) |
| exit (1); |
| fprintf (f, "%lu\n", i); |
| } |
| exit (ferror (f) || fclose (f) != 0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_uintptr_t=`cat conftest.val` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.val |
| else |
| ac_cv_sizeof_uintptr_t=0 |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| _ACEOF |
| |
| |
| fi |
| |
| |
| |
| # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| echo "$as_me:$LINENO: checking size of off_t" >&5 |
| echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_off_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$cross_compiling" = yes; then |
| ac_cv_sizeof_off_t=4 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <stdio.h> |
| #include <sys/types.h> |
| main() |
| { |
| FILE *f=fopen("conftestval", "w"); |
| if (!f) exit(1); |
| fprintf(f, "%d\n", sizeof(off_t)); |
| exit(0); |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_off_t=`cat conftestval` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_sizeof_off_t=0 |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| _ACEOF |
| |
| |
| echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6 |
| if test "$have_long_long" = yes -a \ |
| "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_LARGEFILE_SUPPORT 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| echo "$as_me:$LINENO: checking size of time_t" >&5 |
| echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_time_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$cross_compiling" = yes; then |
| ac_cv_sizeof_time_t=4 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <stdio.h> |
| #include <time.h> |
| main() |
| { |
| FILE *f=fopen("conftestval", "w"); |
| if (!f) exit(1); |
| fprintf(f, "%d\n", sizeof(time_t)); |
| exit(0); |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_time_t=`cat conftestval` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_sizeof_time_t=0 |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| _ACEOF |
| |
| |
| |
| # if have pthread_t then define SIZEOF_PTHREAD_T |
| ac_save_cc="$CC" |
| if test "$ac_cv_kpthread" = "yes" |
| then CC="$CC -Kpthread" |
| elif test "$ac_cv_kthread" = "yes" |
| then CC="$CC -Kthread" |
| elif test "$ac_cv_pthread" = "yes" |
| then CC="$CC -pthread" |
| fi |
| echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
| have_pthread_t=no |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <pthread.h> |
| int |
| main () |
| { |
| pthread_t x; x = *(pthread_t*)0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| have_pthread_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| echo "${ECHO_T}$have_pthread_t" >&6 |
| if test "$have_pthread_t" = yes ; then |
| # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$cross_compiling" = yes; then |
| ac_cv_sizeof_pthread_t=4 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <stdio.h> |
| #include <pthread.h> |
| main() |
| { |
| FILE *f=fopen("conftestval", "w"); |
| if (!f) exit(1); |
| fprintf(f, "%d\n", sizeof(pthread_t)); |
| exit(0); |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_pthread_t=`cat conftestval` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_sizeof_pthread_t=0 |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| _ACEOF |
| |
| fi |
| CC="$ac_save_cc" |
| |
| echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
| # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| if test "${enable_toolbox_glue+set}" = set; then |
| enableval="$enable_toolbox_glue" |
| |
| fi; |
| |
| if test -z "$enable_toolbox_glue" |
| then |
| case $ac_sys_system/$ac_sys_release in |
| Darwin/*) |
| enable_toolbox_glue="yes";; |
| *) |
| enable_toolbox_glue="no";; |
| esac |
| fi |
| case "$enable_toolbox_glue" in |
| yes) |
| extra_machdep_objs="Python/mactoolboxglue.o" |
| extra_undefs="-u _PyMac_Error" |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define USE_TOOLBOX_OBJECT_GLUE 1 |
| _ACEOF |
| |
| ;; |
| *) |
| extra_machdep_objs="" |
| extra_undefs="" |
| ;; |
| esac |
| echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| echo "${ECHO_T}$enable_toolbox_glue" >&6 |
| |
| |
| case $ac_sys_system/$ac_sys_release in |
| Darwin/[01567]\..*) |
| OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| ;; |
| Darwin/*) |
| OTHER_LIBTOOL_OPT="" |
| ;; |
| esac |
| |
| |
| case $ac_sys_system/$ac_sys_release in |
| Darwin/[01567]\..*) |
| LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| if test "${enable_universalsdk}"; then |
| : |
| else |
| LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| fi |
| LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
| Darwin/*) |
| gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| if test ${gcc_version} '<' 4.0 |
| then |
| LIBTOOL_CRUFT="-lcc_dynamic" |
| else |
| LIBTOOL_CRUFT="" |
| fi |
| LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
| LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
| esac |
| |
| echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
| if test "$enable_framework" |
| then |
| BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
| # -F. is needed to allow linking to the framework while |
| # in the build location. |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_NEXT_FRAMEWORK 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| echo "$as_me:$LINENO: checking for dyld" >&5 |
| echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
| case $ac_sys_system/$ac_sys_release in |
| Darwin/*) |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_DYLD 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| echo "${ECHO_T}always on for Darwin" >&6 |
| ;; |
| *) |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| ;; |
| esac |
| |
| # Set info about shared libraries. |
| |
| |
| |
| |
| |
| # SO is the extension of shared libraries `(including the dot!) |
| # -- usually .so, .sl on HP-UX, .dll on Cygwin |
| echo "$as_me:$LINENO: checking SO" >&5 |
| echo $ECHO_N "checking SO... $ECHO_C" >&6 |
| if test -z "$SO" |
| then |
| case $ac_sys_system in |
| hp*|HP*) |
| case `uname -m` in |
| ia64) SO=.so;; |
| *) SO=.sl;; |
| esac |
| ;; |
| CYGWIN*) SO=.dll;; |
| *) SO=.so;; |
| esac |
| else |
| # this might also be a termcap variable, see #610332 |
| echo |
| echo '=====================================================================' |
| echo '+ +' |
| echo '+ WARNING: You have set SO in your environment. +' |
| echo '+ Do you really mean to change the extension for shared libraries? +' |
| echo '+ Continuing in 10 seconds to let you to ponder. +' |
| echo '+ +' |
| echo '=====================================================================' |
| sleep 10 |
| fi |
| echo "$as_me:$LINENO: result: $SO" >&5 |
| echo "${ECHO_T}$SO" >&6 |
| |
| cat >>confdefs.h <<_ACEOF |
| #define SHLIB_EXT "$SO" |
| _ACEOF |
| |
| # LDSHARED is the ld *command* used to create shared library |
| # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
| # (Shared libraries in this instance are shared modules to be loaded into |
| # Python, as opposed to building Python itself as a shared library.) |
| echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
| if test -z "$LDSHARED" |
| then |
| case $ac_sys_system/$ac_sys_release in |
| AIX*) |
| BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
| LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
| ;; |
| BeOS*) |
| BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
| LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
| ;; |
| IRIX/5*) LDSHARED="ld -shared";; |
| IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
| SunOS/5*) |
| if test "$GCC" = "yes" |
| then LDSHARED='$(CC) -shared' |
| else LDSHARED='$(CC) -G'; |
| fi ;; |
| hp*|HP*) LDSHARED="ld -b";; |
| OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| Darwin/1.3*) |
| LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| if test "$enable_framework" ; then |
| # Link against the framework. All externals should be defined. |
| BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| else |
| # No framework. Ignore undefined symbols, assuming they come from Python |
| LDSHARED="$LDSHARED -undefined suppress" |
| fi ;; |
| Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
| LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| if test "$enable_framework" ; then |
| # Link against the framework. All externals should be defined. |
| BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| else |
| # No framework, use the Python app as bundle-loader |
| BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| fi ;; |
| Darwin/*) |
| # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| # This allows an extension to be used in any Python |
| cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| if test ${cur_target} '>' 10.2; then |
| cur_target=10.3 |
| fi |
| CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
| then |
| if test "${enable_universalsdk}"; then |
| LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| fi |
| LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| BLDSHARED="$LDSHARED" |
| else |
| LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| if test "$enable_framework" ; then |
| # Link against the framework. All externals should be defined. |
| BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| else |
| # No framework, use the Python app as bundle-loader |
| BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| fi |
| fi |
| ;; |
| Linux*|GNU*) LDSHARED='$(CC) -shared';; |
| BSD/OS*/4*) LDSHARED="gcc -shared";; |
| FreeBSD*) |
| if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| then |
| LDSHARED="$CC -shared ${LDFLAGS}" |
| else |
| LDSHARED="ld -Bshareable ${LDFLAGS}" |
| fi;; |
| OpenBSD*) |
| if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| then |
| LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| else |
| case `uname -r` in |
| [01].* | 2.[0-7] | 2.[0-7].*) |
| LDSHARED="ld -Bshareable ${LDFLAGS}" |
| ;; |
| *) |
| LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| ;; |
| esac |
| fi;; |
| NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
| OpenUNIX*|UnixWare*) |
| if test "$GCC" = "yes" |
| then LDSHARED='$(CC) -shared' |
| else LDSHARED='$(CC) -G' |
| fi;; |
| SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
| Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
| CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
| atheos*) LDSHARED="gcc -shared";; |
| *) LDSHARED="ld";; |
| esac |
| fi |
| echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| echo "${ECHO_T}$LDSHARED" >&6 |
| BLDSHARED=${BLDSHARED-$LDSHARED} |
| # CCSHARED are the C *flags* used to create objects to go into a shared |
| # library (module) -- this is only needed for a few systems |
| echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
| if test -z "$CCSHARED" |
| then |
| case $ac_sys_system/$ac_sys_release in |
| SunOS*) if test "$GCC" = yes; |
| then CCSHARED="-fPIC"; |
| else CCSHARED="-xcode=pic32"; |
| fi;; |
| hp*|HP*) if test "$GCC" = yes; |
| then CCSHARED="-fPIC"; |
| else CCSHARED="+z"; |
| fi;; |
| Linux*|GNU*) CCSHARED="-fPIC";; |
| BSD/OS*/4*) CCSHARED="-fpic";; |
| FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
| OpenUNIX*|UnixWare*) |
| if test "$GCC" = "yes" |
| then CCSHARED="-fPIC" |
| else CCSHARED="-KPIC" |
| fi;; |
| SCO_SV*) |
| if test "$GCC" = "yes" |
| then CCSHARED="-fPIC" |
| else CCSHARED="-Kpic -belf" |
| fi;; |
| Monterey*) CCSHARED="-G";; |
| IRIX*/6*) case $CC in |
| *gcc*) CCSHARED="-shared";; |
| *) CCSHARED="";; |
| esac;; |
| atheos*) CCSHARED="-fPIC";; |
| esac |
| fi |
| echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| echo "${ECHO_T}$CCSHARED" >&6 |
| # LINKFORSHARED are the flags passed to the $(CC) command that links |
| # the python executable -- this is only needed for a few systems |
| echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
| if test -z "$LINKFORSHARED" |
| then |
| case $ac_sys_system/$ac_sys_release in |
| AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
| hp*|HP*) |
| LINKFORSHARED="-Wl,-E -Wl,+s";; |
| # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
| BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
| Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
| # -u libsys_s pulls in all symbols in libsys |
| Darwin/*) |
| # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| # which is |
| # not used by the core itself but which needs to be in the core so |
| # that dynamically loaded extension modules have access to it. |
| # -prebind is no longer used, because it actually seems to give a |
| # slowdown in stead of a speedup, maybe due to the large number of |
| # dynamic loads Python does. |
| |
| LINKFORSHARED="$extra_undefs" |
| if test "$enable_framework" |
| then |
| LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| fi |
| LINKFORSHARED="$LINKFORSHARED";; |
| OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
| SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
| ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
| FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
| if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| then |
| LINKFORSHARED="-Wl,--export-dynamic" |
| fi;; |
| SunOS/5*) case $CC in |
| *gcc*) |
| if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
| then |
| LINKFORSHARED="-Xlinker --export-dynamic" |
| fi;; |
| esac;; |
| CYGWIN*) |
| if test $enable_shared = "no" |
| then |
| LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| fi;; |
| esac |
| fi |
| echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| echo "${ECHO_T}$LINKFORSHARED" >&6 |
| |
| |
| echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
| if test ! "$LIBRARY" = "$LDLIBRARY" |
| then |
| case $ac_sys_system in |
| CYGWIN*) |
| # Cygwin needs CCSHARED when building extension DLLs |
| # but not when building the interpreter DLL. |
| CFLAGSFORSHARED='';; |
| *) |
| CFLAGSFORSHARED='$(CCSHARED)' |
| esac |
| fi |
| echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
| |
| # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| # library (with --enable-shared). |
| # For platforms on which shared libraries are not allowed to have unresolved |
| # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| # if it is not required, since it creates a dependency of the shared library |
| # to LIBS. This, in turn, means that applications linking the shared libpython |
| # don't need to link LIBS explicitly. The default should be only changed |
| # on systems where this approach causes problems. |
| |
| echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| case "$ac_sys_system" in |
| *) |
| SHLIBS='$(LIBS)';; |
| esac |
| echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| echo "${ECHO_T}$SHLIBS" >&6 |
| |
| |
| # checks for libraries |
| |
| echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-ldl $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char dlopen (); |
| int |
| main () |
| { |
| dlopen (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_dl_dlopen=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_dl_dlopen=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| if test $ac_cv_lib_dl_dlopen = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_LIBDL 1 |
| _ACEOF |
| |
| LIBS="-ldl $LIBS" |
| |
| fi |
| # Dynamic linking for SunOS/Solaris and SYSV |
| |
| echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-ldld $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char shl_load (); |
| int |
| main () |
| { |
| shl_load (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_dld_shl_load=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_dld_shl_load=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| if test $ac_cv_lib_dld_shl_load = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_LIBDLD 1 |
| _ACEOF |
| |
| LIBS="-ldld $LIBS" |
| |
| fi |
| # Dynamic linking for HP-UX |
| |
| # only check for sem_ini if thread support is requested |
| if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| if test "${ac_cv_search_sem_init+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_func_search_save_LIBS=$LIBS |
| ac_cv_search_sem_init=no |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char sem_init (); |
| int |
| main () |
| { |
| sem_init (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_search_sem_init="none required" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| if test "$ac_cv_search_sem_init" = no; then |
| for ac_lib in pthread rt posix4; do |
| LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char sem_init (); |
| int |
| main () |
| { |
| sem_init (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_search_sem_init="-l$ac_lib" |
| break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| done |
| fi |
| LIBS=$ac_func_search_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| if test "$ac_cv_search_sem_init" != no; then |
| test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS" |
| |
| fi |
| # 'Real Time' functions on Solaris |
| # posix4 on Solaris 2.6 |
| # pthread (first!) on Linux |
| fi |
| |
| # check if we need libintl for locale functions |
| echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lintl $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char textdomain (); |
| int |
| main () |
| { |
| textdomain (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_intl_textdomain=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_intl_textdomain=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| if test $ac_cv_lib_intl_textdomain = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_LIBINTL 1 |
| _ACEOF |
| |
| fi |
| |
| |
| # checks for system dependent C++ extensions support |
| case "$ac_sys_system" in |
| AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include "/usr/lpp/xlC/include/load.h" |
| int |
| main () |
| { |
| loadAndInit("", 0, "") |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define AIX_GENUINE_CPLUSPLUS 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext;; |
| *) ;; |
| esac |
| |
| # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| # BeOS' sockets are stashed in libnet. |
| echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lnsl $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char t_open (); |
| int |
| main () |
| { |
| t_open (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_nsl_t_open=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_nsl_t_open=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| if test $ac_cv_lib_nsl_t_open = yes; then |
| LIBS="-lnsl $LIBS" |
| fi |
| # SVR4 |
| echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| if test "${ac_cv_lib_socket_socket+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lsocket $LIBS $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char socket (); |
| int |
| main () |
| { |
| socket (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_socket_socket=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_socket_socket=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| if test $ac_cv_lib_socket_socket = yes; then |
| LIBS="-lsocket $LIBS" |
| fi |
| # SVR4 sockets |
| |
| case "$ac_sys_system" in |
| BeOS*) |
| echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| if test "${ac_cv_lib_net_socket+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lnet $LIBS $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char socket (); |
| int |
| main () |
| { |
| socket (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_net_socket=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_net_socket=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| if test $ac_cv_lib_net_socket = yes; then |
| LIBS="-lnet $LIBS" |
| fi |
| # BeOS |
| ;; |
| esac |
| |
| echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| |
| # Check whether --with-libs or --without-libs was given. |
| if test "${with_libs+set}" = set; then |
| withval="$with_libs" |
| |
| echo "$as_me:$LINENO: result: $withval" >&5 |
| echo "${ECHO_T}$withval" >&6 |
| LIBS="$withval $LIBS" |
| |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi; |
| |
| # Check for use of the system libffi library |
| echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6 |
| |
| # Check whether --with-system_ffi or --without-system_ffi was given. |
| if test "${with_system_ffi+set}" = set; then |
| withval="$with_system_ffi" |
| |
| fi; |
| |
| if test -z "$with_system_ffi" |
| then with_system_ffi="no" |
| fi |
| echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| echo "${ECHO_T}$with_system_ffi" >&6 |
| |
| # Determine if signalmodule should be used. |
| |
| |
| echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| |
| # Check whether --with-signal-module or --without-signal-module was given. |
| if test "${with_signal_module+set}" = set; then |
| withval="$with_signal_module" |
| |
| fi; |
| |
| if test -z "$with_signal_module" |
| then with_signal_module="yes" |
| fi |
| echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| echo "${ECHO_T}$with_signal_module" >&6 |
| |
| if test "${with_signal_module}" = "yes"; then |
| USE_SIGNAL_MODULE="" |
| SIGNAL_OBJS="" |
| else |
| USE_SIGNAL_MODULE="#" |
| SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| fi |
| |
| # This is used to generate Setup.config |
| |
| USE_THREAD_MODULE="" |
| |
| echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| |
| |
| # Check whether --with-dec-threads or --without-dec-threads was given. |
| if test "${with_dec_threads+set}" = set; then |
| withval="$with_dec_threads" |
| |
| echo "$as_me:$LINENO: result: $withval" >&5 |
| echo "${ECHO_T}$withval" >&6 |
| LDLAST=-threads |
| if test "${with_thread+set}" != set; then |
| with_thread="$withval"; |
| fi |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi; |
| |
| # Templates for things AC_DEFINEd more than once. |
| # For a single AC_DEFINE, no template is needed. |
| |
| |
| |
| |
| |
| |
| |
| echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| |
| # Check whether --with-threads or --without-threads was given. |
| if test "${with_threads+set}" = set; then |
| withval="$with_threads" |
| |
| fi; |
| |
| # --with-thread is deprecated, but check for it anyway |
| |
| # Check whether --with-thread or --without-thread was given. |
| if test "${with_thread+set}" = set; then |
| withval="$with_thread" |
| with_threads=$with_thread |
| fi; |
| |
| if test -z "$with_threads" |
| then with_threads="yes" |
| fi |
| echo "$as_me:$LINENO: result: $with_threads" >&5 |
| echo "${ECHO_T}$with_threads" >&6 |
| |
| |
| if test "$with_threads" = "no" |
| then |
| USE_THREAD_MODULE="#" |
| elif test "$ac_cv_pthread_is_default" = yes |
| then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| # Defining _REENTRANT on system with POSIX threads should not hurt. |
| cat >>confdefs.h <<\_ACEOF |
| #define _REENTRANT 1 |
| _ACEOF |
| |
| posix_threads=yes |
| THREADOBJ="Python/thread.o" |
| elif test "$ac_cv_kpthread" = "yes" |
| then |
| CC="$CC -Kpthread" |
| if test "$ac_cv_cxx_thread" = "yes"; then |
| CXX="$CXX -Kpthread" |
| fi |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| posix_threads=yes |
| THREADOBJ="Python/thread.o" |
| elif test "$ac_cv_kthread" = "yes" |
| then |
| CC="$CC -Kthread" |
| if test "$ac_cv_cxx_thread" = "yes"; then |
| CXX="$CXX -Kthread" |
| fi |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| posix_threads=yes |
| THREADOBJ="Python/thread.o" |
| elif test "$ac_cv_pthread" = "yes" |
| then |
| CC="$CC -pthread" |
| if test "$ac_cv_cxx_thread" = "yes"; then |
| CXX="$CXX -pthread" |
| fi |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| posix_threads=yes |
| THREADOBJ="Python/thread.o" |
| else |
| if test ! -z "$with_threads" -a -d "$with_threads" |
| then LDFLAGS="$LDFLAGS -L$with_threads" |
| fi |
| if test ! -z "$withval" -a -d "$withval" |
| then LDFLAGS="$LDFLAGS -L$withval" |
| fi |
| |
| # According to the POSIX spec, a pthreads implementation must |
| # define _POSIX_THREADS in unistd.h. Some apparently don't |
| # (e.g. gnu pth with pthread emulation) |
| echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <unistd.h> |
| #ifdef _POSIX_THREADS |
| yes |
| #endif |
| |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "yes" >/dev/null 2>&1; then |
| unistd_defines_pthreads=yes |
| else |
| unistd_defines_pthreads=no |
| fi |
| rm -f conftest* |
| |
| echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _REENTRANT 1 |
| _ACEOF |
| |
| if test "${ac_cv_header_cthreads_h+set}" = set; then |
| echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_cthreads_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| else |
| # Is the header compilable? |
| echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| #include <cthreads.h> |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_header_compiler=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_compiler=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| echo "${ECHO_T}$ac_header_compiler" >&6 |
| |
| # Is the header present? |
| echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <cthreads.h> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| ac_header_preproc=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_preproc=no |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| echo "${ECHO_T}$ac_header_preproc" >&6 |
| |
| # So? What about this header? |
| case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| yes:no: ) |
| { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| ac_header_preproc=yes |
| ;; |
| no:yes:* ) |
| { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
| ( |
| cat <<\_ASBOX |
| ## ------------------------------------------------ ## |
| ## Report this to http://www.python.org/python-bugs ## |
| ## ------------------------------------------------ ## |
| _ASBOX |
| ) | |
| sed "s/^/$as_me: WARNING: /" >&2 |
| ;; |
| esac |
| echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_cthreads_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_cv_header_cthreads_h=$ac_header_preproc |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| |
| fi |
| if test $ac_cv_header_cthreads_h = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define C_THREADS 1 |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HURD_C_THREADS 1 |
| _ACEOF |
| |
| LIBS="$LIBS -lthreads" |
| THREADOBJ="Python/thread.o" |
| else |
| |
| if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| else |
| # Is the header compilable? |
| echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| #include <mach/cthreads.h> |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_header_compiler=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_compiler=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| echo "${ECHO_T}$ac_header_compiler" >&6 |
| |
| # Is the header present? |
| echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <mach/cthreads.h> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| ac_header_preproc=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_preproc=no |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| echo "${ECHO_T}$ac_header_preproc" >&6 |
| |
| # So? What about this header? |
| case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| yes:no: ) |
| { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| ac_header_preproc=yes |
| ;; |
| no:yes:* ) |
| { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
| ( |
| cat <<\_ASBOX |
| ## ------------------------------------------------ ## |
| ## Report this to http://www.python.org/python-bugs ## |
| ## ------------------------------------------------ ## |
| _ASBOX |
| ) | |
| sed "s/^/$as_me: WARNING: /" >&2 |
| ;; |
| esac |
| echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_cv_header_mach_cthreads_h=$ac_header_preproc |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| |
| fi |
| if test $ac_cv_header_mach_cthreads_h = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define C_THREADS 1 |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define MACH_C_THREADS 1 |
| _ACEOF |
| |
| THREADOBJ="Python/thread.o" |
| else |
| |
| echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| |
| # Check whether --with-pth or --without-pth was given. |
| if test "${with_pth+set}" = set; then |
| withval="$with_pth" |
| echo "$as_me:$LINENO: result: $withval" >&5 |
| echo "${ECHO_T}$withval" >&6 |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_PTH 1 |
| _ACEOF |
| |
| LIBS="-lpth $LIBS" |
| THREADOBJ="Python/thread.o" |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| # Just looking for pthread_create in libpthread is not enough: |
| # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| # So we really have to include pthread.h, and then link. |
| _libs=$LIBS |
| LIBS="$LIBS -lpthread" |
| echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <pthread.h> |
| |
| void * start_routine (void *arg) { exit (0); } |
| int |
| main () |
| { |
| |
| pthread_create (NULL, NULL, start_routine, NULL) |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| posix_threads=yes |
| THREADOBJ="Python/thread.o" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| |
| LIBS=$_libs |
| echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| if test "${ac_cv_func_pthread_detach+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define pthread_detach innocuous_pthread_detach |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char pthread_detach (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef pthread_detach |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char pthread_detach (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
| choke me |
| #else |
| char (*f) () = pthread_detach; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != pthread_detach; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_func_pthread_detach=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_func_pthread_detach=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| if test $ac_cv_func_pthread_detach = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| posix_threads=yes |
| THREADOBJ="Python/thread.o" |
| else |
| |
| if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| else |
| # Is the header compilable? |
| echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| #include <atheos/threads.h> |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_header_compiler=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_compiler=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| echo "${ECHO_T}$ac_header_compiler" >&6 |
| |
| # Is the header present? |
| echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <atheos/threads.h> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| ac_header_preproc=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_preproc=no |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| echo "${ECHO_T}$ac_header_preproc" >&6 |
| |
| # So? What about this header? |
| case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| yes:no: ) |
| { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| ac_header_preproc=yes |
| ;; |
| no:yes:* ) |
| { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
| ( |
| cat <<\_ASBOX |
| ## ------------------------------------------------ ## |
| ## Report this to http://www.python.org/python-bugs ## |
| ## ------------------------------------------------ ## |
| _ASBOX |
| ) | |
| sed "s/^/$as_me: WARNING: /" >&2 |
| ;; |
| esac |
| echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_cv_header_atheos_threads_h=$ac_header_preproc |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| |
| fi |
| if test $ac_cv_header_atheos_threads_h = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define ATHEOS_THREADS 1 |
| _ACEOF |
| |
| THREADOBJ="Python/thread.o" |
| else |
| |
| if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| else |
| # Is the header compilable? |
| echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| #include <kernel/OS.h> |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_header_compiler=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_compiler=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| echo "${ECHO_T}$ac_header_compiler" >&6 |
| |
| # Is the header present? |
| echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <kernel/OS.h> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| ac_header_preproc=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_preproc=no |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| echo "${ECHO_T}$ac_header_preproc" >&6 |
| |
| # So? What about this header? |
| case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| yes:no: ) |
| { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| ac_header_preproc=yes |
| ;; |
| no:yes:* ) |
| { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;} |
| ( |
| cat <<\_ASBOX |
| ## ------------------------------------------------ ## |
| ## Report this to http://www.python.org/python-bugs ## |
| ## ------------------------------------------------ ## |
| _ASBOX |
| ) | |
| sed "s/^/$as_me: WARNING: /" >&2 |
| ;; |
| esac |
| echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_cv_header_kernel_OS_h=$ac_header_preproc |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| |
| fi |
| if test $ac_cv_header_kernel_OS_h = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define BEOS_THREADS 1 |
| _ACEOF |
| |
| THREADOBJ="Python/thread.o" |
| else |
| |
| echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lpthreads $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char pthread_create (); |
| int |
| main () |
| { |
| pthread_create (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_pthreads_pthread_create=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_pthreads_pthread_create=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| posix_threads=yes |
| LIBS="$LIBS -lpthreads" |
| THREADOBJ="Python/thread.o" |
| else |
| |
| echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lc_r $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char pthread_create (); |
| int |
| main () |
| { |
| pthread_create (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_c_r_pthread_create=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_c_r_pthread_create=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| if test $ac_cv_lib_c_r_pthread_create = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| posix_threads=yes |
| LIBS="$LIBS -lc_r" |
| THREADOBJ="Python/thread.o" |
| else |
| |
| echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lpthread $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char __pthread_create_system (); |
| int |
| main () |
| { |
| __pthread_create_system (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_pthread___pthread_create_system=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_pthread___pthread_create_system=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| posix_threads=yes |
| LIBS="$LIBS -lpthread" |
| THREADOBJ="Python/thread.o" |
| else |
| |
| echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lcma $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char pthread_create (); |
| int |
| main () |
| { |
| pthread_create (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_cma_pthread_create=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_cma_pthread_create=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| if test $ac_cv_lib_cma_pthread_create = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| posix_threads=yes |
| LIBS="$LIBS -lcma" |
| THREADOBJ="Python/thread.o" |
| else |
| |
| USE_THREAD_MODULE="#" |
| fi |
| |
| |
| fi |
| |
| fi |
| |
| fi |
| |
| fi |
| |
| |
| fi |
| |
| |
| fi |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi; |
| fi |
| |
| |
| fi |
| |
| |
| |
| echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lmpc $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char usconfig (); |
| int |
| main () |
| { |
| usconfig (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_mpc_usconfig=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_mpc_usconfig=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| if test $ac_cv_lib_mpc_usconfig = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| LIBS="$LIBS -lmpc" |
| THREADOBJ="Python/thread.o" |
| USE_THREAD_MODULE="" |
| fi |
| |
| |
| if test "$posix_threads" != "yes"; then |
| echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lthread $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char thr_create (); |
| int |
| main () |
| { |
| thr_create (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_thread_thr_create=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_thread_thr_create=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| if test $ac_cv_lib_thread_thr_create = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_THREAD 1 |
| _ACEOF |
| |
| LIBS="$LIBS -lthread" |
| THREADOBJ="Python/thread.o" |
| USE_THREAD_MODULE="" |
| fi |
| |
| fi |
| |
| if test "$USE_THREAD_MODULE" != "#" |
| then |
| # If the above checks didn't disable threads, (at least) OSF1 |
| # needs this '-threads' argument during linking. |
| case $ac_sys_system in |
| OSF1) LDLAST=-threads;; |
| esac |
| fi |
| fi |
| |
| if test "$posix_threads" = "yes"; then |
| if test "$unistd_defines_pthreads" = "no"; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define _POSIX_THREADS 1 |
| _ACEOF |
| |
| fi |
| |
| # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| case $ac_sys_system/$ac_sys_release in |
| SunOS/5.6) |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_PTHREAD_DESTRUCTOR 1 |
| _ACEOF |
| |
| ;; |
| SunOS/5.8) |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| _ACEOF |
| |
| ;; |
| esac |
| |
| echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| if test "${ac_cv_pthread_system_supported+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$cross_compiling" = yes; then |
| ac_cv_pthread_system_supported=no |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <pthread.h> |
| void *foo(void *parm) { |
| return NULL; |
| } |
| main() { |
| pthread_attr_t attr; |
| pthread_t id; |
| if (pthread_attr_init(&attr)) exit(-1); |
| if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| exit(0); |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_pthread_system_supported=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_pthread_system_supported=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| if test "$ac_cv_pthread_system_supported" = "yes"; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| _ACEOF |
| |
| fi |
| |
| for ac_func in pthread_sigmask |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| case $ac_sys_system in |
| CYGWIN*) |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| _ACEOF |
| |
| ;; |
| esac |
| fi |
| done |
| |
| fi |
| |
| |
| # Check for enable-ipv6 |
| |
| |
| echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6 |
| # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| if test "${enable_ipv6+set}" = set; then |
| enableval="$enable_ipv6" |
| case "$enableval" in |
| no) |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| ipv6=no |
| ;; |
| *) echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| cat >>confdefs.h <<\_ACEOF |
| #define ENABLE_IPV6 1 |
| _ACEOF |
| |
| ipv6=yes |
| ;; |
| esac |
| else |
| |
| if test "$cross_compiling" = yes; then |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| ipv6=no |
| |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* AF_INET6 available check */ |
| #include <sys/types.h> |
| #include <sys/socket.h> |
| main() |
| { |
| if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| exit(1); |
| else |
| exit(0); |
| } |
| |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| ipv6=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| ipv6=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| if test "$ipv6" = "yes"; then |
| echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <netinet/in.h> |
| int |
| main () |
| { |
| struct sockaddr_in6 x; |
| x.sin6_scope_id; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| ipv6=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| ipv6=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| if test "$ipv6" = "yes"; then |
| cat >>confdefs.h <<\_ACEOF |
| #define ENABLE_IPV6 1 |
| _ACEOF |
| |
| fi |
| |
| fi; |
| |
| ipv6type=unknown |
| ipv6lib=none |
| ipv6trylibc=no |
| |
| if test "$ipv6" = "yes"; then |
| echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
| for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| do |
| case $i in |
| inria) |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <netinet/in.h> |
| #ifdef IPV6_INRIA_VERSION |
| yes |
| #endif |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "yes" >/dev/null 2>&1; then |
| ipv6type=$i |
| fi |
| rm -f conftest* |
| |
| ;; |
| kame) |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <netinet/in.h> |
| #ifdef __KAME__ |
| yes |
| #endif |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "yes" >/dev/null 2>&1; then |
| ipv6type=$i; |
| ipv6lib=inet6 |
| ipv6libdir=/usr/local/v6/lib |
| ipv6trylibc=yes |
| fi |
| rm -f conftest* |
| |
| ;; |
| linux-glibc) |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <features.h> |
| #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| yes |
| #endif |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "yes" >/dev/null 2>&1; then |
| ipv6type=$i; |
| ipv6trylibc=yes |
| fi |
| rm -f conftest* |
| |
| ;; |
| linux-inet6) |
| if test -d /usr/inet6; then |
| ipv6type=$i |
| ipv6lib=inet6 |
| ipv6libdir=/usr/inet6/lib |
| BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
| fi |
| ;; |
| solaris) |
| if test -f /etc/netconfig; then |
| if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| ipv6type=$i |
| ipv6trylibc=yes |
| fi |
| fi |
| ;; |
| toshiba) |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <sys/param.h> |
| #ifdef _TOSHIBA_INET6 |
| yes |
| #endif |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "yes" >/dev/null 2>&1; then |
| ipv6type=$i; |
| ipv6lib=inet6; |
| ipv6libdir=/usr/local/v6/lib |
| fi |
| rm -f conftest* |
| |
| ;; |
| v6d) |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include </usr/local/v6/include/sys/v6config.h> |
| #ifdef __V6D__ |
| yes |
| #endif |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "yes" >/dev/null 2>&1; then |
| ipv6type=$i; |
| ipv6lib=v6; |
| ipv6libdir=/usr/local/v6/lib; |
| BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
| fi |
| rm -f conftest* |
| |
| ;; |
| zeta) |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <sys/param.h> |
| #ifdef _ZETA_MINAMI_INET6 |
| yes |
| #endif |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "yes" >/dev/null 2>&1; then |
| ipv6type=$i; |
| ipv6lib=inet6; |
| ipv6libdir=/usr/local/v6/lib |
| fi |
| rm -f conftest* |
| |
| ;; |
| esac |
| if test "$ipv6type" != "unknown"; then |
| break |
| fi |
| done |
| echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| echo "${ECHO_T}$ipv6type" >&6 |
| fi |
| |
| if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| echo "using lib$ipv6lib" |
| else |
| if test $ipv6trylibc = "yes"; then |
| echo "using libc" |
| else |
| echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| echo "You need to fetch lib$ipv6lib.a from appropriate" |
| echo 'ipv6 kit and compile beforehand.' |
| exit 1 |
| fi |
| fi |
| fi |
| |
| # Check for --with-doc-strings |
| echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| |
| # Check whether --with-doc-strings or --without-doc-strings was given. |
| if test "${with_doc_strings+set}" = set; then |
| withval="$with_doc_strings" |
| |
| fi; |
| |
| if test -z "$with_doc_strings" |
| then with_doc_strings="yes" |
| fi |
| if test "$with_doc_strings" != "no" |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_DOC_STRINGS 1 |
| _ACEOF |
| |
| fi |
| echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| echo "${ECHO_T}$with_doc_strings" >&6 |
| |
| # Check for Python-specific malloc support |
| echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| |
| # Check whether --with-tsc or --without-tsc was given. |
| if test "${with_tsc+set}" = set; then |
| withval="$with_tsc" |
| |
| if test "$withval" != no |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_TSC 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi; |
| |
| # Check for Python-specific malloc support |
| echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| |
| # Check whether --with-pymalloc or --without-pymalloc was given. |
| if test "${with_pymalloc+set}" = set; then |
| withval="$with_pymalloc" |
| |
| fi; |
| |
| if test -z "$with_pymalloc" |
| then with_pymalloc="yes" |
| fi |
| if test "$with_pymalloc" != "no" |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define WITH_PYMALLOC 1 |
| _ACEOF |
| |
| fi |
| echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| echo "${ECHO_T}$with_pymalloc" >&6 |
| |
| # Check for --with-wctype-functions |
| echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| |
| # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| if test "${with_wctype_functions+set}" = set; then |
| withval="$with_wctype_functions" |
| |
| if test "$withval" != no |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define WANT_WCTYPE_FUNCTIONS 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi; |
| |
| # -I${DLINCLDIR} is added to the compile rule for importdl.o |
| |
| DLINCLDIR=. |
| |
| # the dlopen() function means we might want to use dynload_shlib.o. some |
| # platforms, such as AIX, have dlopen(), but don't want to use it. |
| |
| for ac_func in dlopen |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| fi |
| done |
| |
| |
| # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| # loading of modules. |
| |
| echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
| if test -z "$DYNLOADFILE" |
| then |
| case $ac_sys_system/$ac_sys_release in |
| AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| if test "$ac_cv_func_dlopen" = yes |
| then DYNLOADFILE="dynload_shlib.o" |
| else DYNLOADFILE="dynload_aix.o" |
| fi |
| ;; |
| BeOS*) DYNLOADFILE="dynload_beos.o";; |
| hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
| # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
| atheos*) DYNLOADFILE="dynload_atheos.o";; |
| *) |
| # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| # out any dynamic loading |
| if test "$ac_cv_func_dlopen" = yes |
| then DYNLOADFILE="dynload_shlib.o" |
| else DYNLOADFILE="dynload_stub.o" |
| fi |
| ;; |
| esac |
| fi |
| echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| echo "${ECHO_T}$DYNLOADFILE" >&6 |
| if test "$DYNLOADFILE" != "dynload_stub.o" |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_DYNAMIC_LOADING 1 |
| _ACEOF |
| |
| fi |
| |
| # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| |
| |
| echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
| if test -z "$MACHDEP_OBJS" |
| then |
| MACHDEP_OBJS=$extra_machdep_objs |
| else |
| MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
| fi |
| echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| echo "${ECHO_T}MACHDEP_OBJS" >&6 |
| |
| # checks for library functions |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \ |
| execv fork fpathconf ftime ftruncate \ |
| gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
| getpriority getpwent getspnam getspent getsid getwd \ |
| kill killpg lchown lstat mkfifo mknod mktime \ |
| mremap nice pathconf pause plock poll pthread_init \ |
| putenv readlink realpath \ |
| select setegid seteuid setgid \ |
| setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
| sigaction siginterrupt sigrelse strftime \ |
| sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
| truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| fi |
| done |
| |
| |
| # For some functions, having a definition is not sufficient, since |
| # we want to take their address. |
| echo "$as_me:$LINENO: checking for chroot" >&5 |
| echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <unistd.h> |
| int |
| main () |
| { |
| void *x=chroot |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_CHROOT 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: checking for link" >&5 |
| echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <unistd.h> |
| int |
| main () |
| { |
| void *x=link |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_LINK 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: checking for symlink" >&5 |
| echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <unistd.h> |
| int |
| main () |
| { |
| void *x=symlink |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_SYMLINK 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: checking for fchdir" >&5 |
| echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <unistd.h> |
| int |
| main () |
| { |
| void *x=fchdir |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_FCHDIR 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: checking for fsync" >&5 |
| echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <unistd.h> |
| int |
| main () |
| { |
| void *x=fsync |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_FSYNC 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <unistd.h> |
| int |
| main () |
| { |
| void *x=fdatasync |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_FDATASYNC 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| # On some systems (eg. FreeBSD 5), we would find a definition of the |
| # functions ctermid_r, setgroups in the library, but no prototype |
| # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| # address to avoid compiler warnings and potential miscompilations |
| # because of the missing prototypes. |
| |
| echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include "confdefs.h" |
| #include <stdio.h> |
| |
| int |
| main () |
| { |
| void* p = ctermid_r |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_CTERMID_R 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| echo "$as_me:$LINENO: checking for flock" >&5 |
| echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include "confdefs.h" |
| #include <sys/file.h> |
| |
| int |
| main () |
| { |
| void* p = flock |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_FLOCK 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include "confdefs.h" |
| #include <unistd.h> |
| |
| int |
| main () |
| { |
| void* p = getpagesize |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_GETPAGESIZE 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| for ac_prog in true |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| if test "${ac_cv_prog_TRUE+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test -n "$TRUE"; then |
| ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| else |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| ac_cv_prog_TRUE="$ac_prog" |
| echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| break 2 |
| fi |
| done |
| done |
| |
| fi |
| fi |
| TRUE=$ac_cv_prog_TRUE |
| if test -n "$TRUE"; then |
| echo "$as_me:$LINENO: result: $TRUE" >&5 |
| echo "${ECHO_T}$TRUE" >&6 |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| test -n "$TRUE" && break |
| done |
| test -n "$TRUE" || TRUE="/bin/true" |
| |
| |
| echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lc $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char inet_aton (); |
| int |
| main () |
| { |
| inet_aton (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_c_inet_aton=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_c_inet_aton=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| if test $ac_cv_lib_c_inet_aton = yes; then |
| $ac_cv_prog_TRUE |
| else |
| |
| echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lresolv $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char inet_aton (); |
| int |
| main () |
| { |
| inet_aton (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_resolv_inet_aton=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_resolv_inet_aton=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| if test $ac_cv_lib_resolv_inet_aton = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_LIBRESOLV 1 |
| _ACEOF |
| |
| LIBS="-lresolv $LIBS" |
| |
| fi |
| |
| |
| fi |
| |
| |
| case $ac_sys_system/$ac_sys_release in |
| Darwin/*) |
| _CUR_CFLAGS="${CFLAGS}" |
| _CUR_LDFLAGS="${LDFLAGS}" |
| CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| ;; |
| esac |
| |
| echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6 |
| if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lz $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char inflateCopy (); |
| int |
| main () |
| { |
| inflateCopy (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_z_inflateCopy=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_z_inflateCopy=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6 |
| if test $ac_cv_lib_z_inflateCopy = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_ZLIB_COPY 1 |
| _ACEOF |
| |
| fi |
| |
| |
| case $ac_sys_system/$ac_sys_release in |
| Darwin/*) |
| CFLAGS="${_CUR_CFLAGS}" |
| LDFLAGS="${_CUR_LDFLAGS}" |
| ;; |
| esac |
| |
| echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include "confdefs.h" |
| #include <netdb.h> |
| |
| int |
| main () |
| { |
| void* p = hstrerror; hstrerror(0) |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_HSTRERROR 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| |
| echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include "confdefs.h" |
| #include <sys/types.h> |
| #include <sys/socket.h> |
| #include <netinet/in.h> |
| #include <arpa/inet.h> |
| |
| int |
| main () |
| { |
| void* p = inet_aton;inet_aton(0,0) |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_INET_ATON 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| |
| echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include "confdefs.h" |
| #include <sys/types.h> |
| #include <sys/socket.h> |
| #include <netinet/in.h> |
| #include <arpa/inet.h> |
| |
| int |
| main () |
| { |
| void* p = inet_pton |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_INET_PTON 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| # On some systems, setgroups is in unistd.h, on others, in grp.h |
| echo "$as_me:$LINENO: checking for setgroups" >&5 |
| echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include "confdefs.h" |
| #include <unistd.h> |
| #ifdef HAVE_GRP_H |
| #include <grp.h> |
| #endif |
| |
| int |
| main () |
| { |
| void* p = setgroups |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_SETGROUPS 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| # check for openpty and forkpty |
| |
| |
| for ac_func in openpty |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| else |
| echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| if test "${ac_cv_lib_util_openpty+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lutil $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char openpty (); |
| int |
| main () |
| { |
| openpty (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_util_openpty=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_util_openpty=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| if test $ac_cv_lib_util_openpty = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_OPENPTY 1 |
| _ACEOF |
| LIBS="$LIBS -lutil" |
| else |
| echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6 |
| if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lbsd $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char openpty (); |
| int |
| main () |
| { |
| openpty (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_bsd_openpty=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_bsd_openpty=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6 |
| if test $ac_cv_lib_bsd_openpty = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_OPENPTY 1 |
| _ACEOF |
| LIBS="$LIBS -lbsd" |
| fi |
| |
| |
| fi |
| |
| |
| fi |
| done |
| |
| |
| for ac_func in forkpty |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| else |
| echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lutil $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char forkpty (); |
| int |
| main () |
| { |
| forkpty (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_util_forkpty=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_util_forkpty=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| if test $ac_cv_lib_util_forkpty = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_FORKPTY 1 |
| _ACEOF |
| LIBS="$LIBS -lutil" |
| else |
| echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6 |
| if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lbsd $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char forkpty (); |
| int |
| main () |
| { |
| forkpty (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_bsd_forkpty=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_bsd_forkpty=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6 |
| if test $ac_cv_lib_bsd_forkpty = yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_FORKPTY 1 |
| _ACEOF |
| LIBS="$LIBS -lbsd" |
| fi |
| |
| |
| fi |
| |
| |
| fi |
| done |
| |
| |
| # check for long file support functions |
| |
| |
| |
| |
| |
| |
| for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| fi |
| done |
| |
| |
| |
| |
| |
| |
| |
| for ac_func in dup2 getcwd strdup strerror memmove |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| else |
| case $LIBOBJS in |
| "$ac_func.$ac_objext" | \ |
| *" $ac_func.$ac_objext" | \ |
| "$ac_func.$ac_objext "* | \ |
| *" $ac_func.$ac_objext "* ) ;; |
| *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| esac |
| |
| fi |
| done |
| |
| |
| |
| for ac_func in getpgrp |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <unistd.h> |
| int |
| main () |
| { |
| getpgrp(0); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define GETPGRP_HAVE_ARG 1 |
| _ACEOF |
| |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| fi |
| done |
| |
| |
| for ac_func in setpgrp |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <unistd.h> |
| int |
| main () |
| { |
| setpgrp(0,0); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define SETPGRP_HAVE_ARG 1 |
| _ACEOF |
| |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| fi |
| done |
| |
| |
| for ac_func in gettimeofday |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/time.h> |
| int |
| main () |
| { |
| gettimeofday((struct timeval*)0,(struct timezone*)0); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| : |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define GETTIMEOFDAY_NO_TZ 1 |
| _ACEOF |
| |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| fi |
| done |
| |
| |
| echo "$as_me:$LINENO: checking for major" >&5 |
| echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #if defined(MAJOR_IN_MKDEV) |
| #include <sys/mkdev.h> |
| #elif defined(MAJOR_IN_SYSMACROS) |
| #include <sys/sysmacros.h> |
| #else |
| #include <sys/types.h> |
| #endif |
| |
| int |
| main () |
| { |
| |
| makedev(major(0),minor(0)); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_DEVICE_MACROS 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| |
| # On OSF/1 V5.1, getaddrinfo is available, but a define |
| # for [no]getaddrinfo in netdb.h. |
| echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <sys/types.h> |
| #include <sys/socket.h> |
| #include <netdb.h> |
| #include <stdio.h> |
| |
| int |
| main () |
| { |
| |
| getaddrinfo(NULL, NULL, NULL, NULL); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
| if test "$cross_compiling" = yes; then |
| echo "$as_me:$LINENO: result: buggy" >&5 |
| echo "${ECHO_T}buggy" >&6 |
| buggygetaddrinfo=yes |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <sys/types.h> |
| #include <netdb.h> |
| #include <string.h> |
| #include <sys/socket.h> |
| #include <netinet/in.h> |
| |
| main() |
| { |
| int passive, gaierr, inet4 = 0, inet6 = 0; |
| struct addrinfo hints, *ai, *aitop; |
| char straddr[INET6_ADDRSTRLEN], strport[16]; |
| |
| for (passive = 0; passive <= 1; passive++) { |
| memset(&hints, 0, sizeof(hints)); |
| hints.ai_family = AF_UNSPEC; |
| hints.ai_flags = passive ? AI_PASSIVE : 0; |
| hints.ai_socktype = SOCK_STREAM; |
| hints.ai_protocol = IPPROTO_TCP; |
| if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| (void)gai_strerror(gaierr); |
| goto bad; |
| } |
| for (ai = aitop; ai; ai = ai->ai_next) { |
| if (ai->ai_addr == NULL || |
| ai->ai_addrlen == 0 || |
| getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| straddr, sizeof(straddr), strport, sizeof(strport), |
| NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| goto bad; |
| } |
| switch (ai->ai_family) { |
| case AF_INET: |
| if (strcmp(strport, "54321") != 0) { |
| goto bad; |
| } |
| if (passive) { |
| if (strcmp(straddr, "0.0.0.0") != 0) { |
| goto bad; |
| } |
| } else { |
| if (strcmp(straddr, "127.0.0.1") != 0) { |
| goto bad; |
| } |
| } |
| inet4++; |
| break; |
| case AF_INET6: |
| if (strcmp(strport, "54321") != 0) { |
| goto bad; |
| } |
| if (passive) { |
| if (strcmp(straddr, "::") != 0) { |
| goto bad; |
| } |
| } else { |
| if (strcmp(straddr, "::1") != 0) { |
| goto bad; |
| } |
| } |
| inet6++; |
| break; |
| case AF_UNSPEC: |
| goto bad; |
| break; |
| default: |
| /* another family support? */ |
| break; |
| } |
| } |
| } |
| |
| if (!(inet4 == 0 || inet4 == 2)) |
| goto bad; |
| if (!(inet6 == 0 || inet6 == 2)) |
| goto bad; |
| |
| if (aitop) |
| freeaddrinfo(aitop); |
| exit(0); |
| |
| bad: |
| if (aitop) |
| freeaddrinfo(aitop); |
| exit(1); |
| } |
| |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| echo "$as_me:$LINENO: result: good" >&5 |
| echo "${ECHO_T}good" >&6 |
| buggygetaddrinfo=no |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| echo "$as_me:$LINENO: result: buggy" >&5 |
| echo "${ECHO_T}buggy" >&6 |
| buggygetaddrinfo=yes |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| buggygetaddrinfo=yes |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| |
| if test "$buggygetaddrinfo" = "yes"; then |
| if test "$ipv6" = "yes"; then |
| echo 'Fatal: You must get working getaddrinfo() function.' |
| echo ' or you can specify "--disable-ipv6"'. |
| exit 1 |
| fi |
| else |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_GETADDRINFO 1 |
| _ACEOF |
| |
| fi |
| |
| for ac_func in getnameinfo |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| fi |
| done |
| |
| |
| # checks for structures |
| echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| if test "${ac_cv_header_time+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <sys/time.h> |
| #include <time.h> |
| |
| int |
| main () |
| { |
| if ((struct tm *) 0) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_header_time=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_header_time=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| echo "${ECHO_T}$ac_cv_header_time" >&6 |
| if test $ac_cv_header_time = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define TIME_WITH_SYS_TIME 1 |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| if test "${ac_cv_struct_tm+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <time.h> |
| |
| int |
| main () |
| { |
| struct tm *tp; tp->tm_sec; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_struct_tm=time.h |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_struct_tm=sys/time.h |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| if test $ac_cv_struct_tm = sys/time.h; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define TM_IN_SYS_TIME 1 |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <$ac_cv_struct_tm> |
| |
| |
| int |
| main () |
| { |
| static struct tm ac_aggr; |
| if (ac_aggr.tm_zone) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_tm_tm_zone=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <$ac_cv_struct_tm> |
| |
| |
| int |
| main () |
| { |
| static struct tm ac_aggr; |
| if (sizeof ac_aggr.tm_zone) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_tm_tm_zone=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_member_struct_tm_tm_zone=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_STRUCT_TM_TM_ZONE 1 |
| _ACEOF |
| |
| |
| fi |
| |
| if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_TM_ZONE 1 |
| _ACEOF |
| |
| else |
| echo "$as_me:$LINENO: checking for tzname" >&5 |
| echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| if test "${ac_cv_var_tzname+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <time.h> |
| #ifndef tzname /* For SGI. */ |
| extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| #endif |
| |
| int |
| main () |
| { |
| atoi(*tzname); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_var_tzname=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_var_tzname=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| if test $ac_cv_var_tzname = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_TZNAME 1 |
| _ACEOF |
| |
| fi |
| fi |
| |
| echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (ac_aggr.st_rdev) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_rdev=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (sizeof ac_aggr.st_rdev) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_rdev=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_member_struct_stat_st_rdev=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| _ACEOF |
| |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (ac_aggr.st_blksize) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_blksize=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (sizeof ac_aggr.st_blksize) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_blksize=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_member_struct_stat_st_blksize=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| if test $ac_cv_member_struct_stat_st_blksize = yes; then |
| |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| _ACEOF |
| |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6 |
| if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (ac_aggr.st_flags) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_flags=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (sizeof ac_aggr.st_flags) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_flags=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_member_struct_stat_st_flags=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6 |
| if test $ac_cv_member_struct_stat_st_flags = yes; then |
| |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| _ACEOF |
| |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6 |
| if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (ac_aggr.st_gen) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_gen=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (sizeof ac_aggr.st_gen) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_gen=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_member_struct_stat_st_gen=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6 |
| if test $ac_cv_member_struct_stat_st_gen = yes; then |
| |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_STRUCT_STAT_ST_GEN 1 |
| _ACEOF |
| |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6 |
| if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (ac_aggr.st_birthtime) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_birthtime=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (sizeof ac_aggr.st_birthtime) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_birthtime=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_member_struct_stat_st_birthtime=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6 |
| if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
| |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| _ACEOF |
| |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (ac_aggr.st_blocks) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_blocks=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static struct stat ac_aggr; |
| if (sizeof ac_aggr.st_blocks) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_stat_st_blocks=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_member_struct_stat_st_blocks=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_ST_BLOCKS 1 |
| _ACEOF |
| |
| else |
| case $LIBOBJS in |
| "fileblocks.$ac_objext" | \ |
| *" fileblocks.$ac_objext" | \ |
| "fileblocks.$ac_objext "* | \ |
| *" fileblocks.$ac_objext "* ) ;; |
| *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; |
| esac |
| |
| fi |
| |
| |
| |
| echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| if test "${ac_cv_header_time_altzone+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <time.h> |
| int |
| main () |
| { |
| return altzone; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_header_time_altzone=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_header_time_altzone=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
| if test $ac_cv_header_time_altzone = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_ALTZONE 1 |
| _ACEOF |
| |
| fi |
| |
| was_it_defined=no |
| echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <sys/types.h> |
| #include <sys/select.h> |
| #include <sys/time.h> |
| |
| int |
| main () |
| { |
| ; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define SYS_SELECT_WITH_SYS_TIME 1 |
| _ACEOF |
| |
| was_it_defined=yes |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| echo "${ECHO_T}$was_it_defined" >&6 |
| |
| echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| if test "${ac_cv_struct_addrinfo+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| # include <netdb.h> |
| int |
| main () |
| { |
| struct addrinfo a |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_struct_addrinfo=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_struct_addrinfo=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
| if test $ac_cv_struct_addrinfo = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_ADDRINFO 1 |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| # include <sys/types.h> |
| # include <sys/socket.h> |
| int |
| main () |
| { |
| struct sockaddr_storage s |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_struct_sockaddr_storage=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_struct_sockaddr_storage=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
| if test $ac_cv_struct_sockaddr_storage = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_SOCKADDR_STORAGE 1 |
| _ACEOF |
| |
| fi |
| |
| # checks for compiler characteristics |
| |
| |
| echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| if test "${ac_cv_c_char_unsigned+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_c_char_unsigned=no |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_c_char_unsigned=yes |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
| if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| cat >>confdefs.h <<\_ACEOF |
| #define __CHAR_UNSIGNED__ 1 |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| if test "${ac_cv_c_const+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| int |
| main () |
| { |
| /* FIXME: Include the comments suggested by Paul. */ |
| #ifndef __cplusplus |
| /* Ultrix mips cc rejects this. */ |
| typedef int charset[2]; |
| const charset x; |
| /* SunOS 4.1.1 cc rejects this. */ |
| char const *const *ccp; |
| char **p; |
| /* NEC SVR4.0.2 mips cc rejects this. */ |
| struct point {int x, y;}; |
| static struct point const zero = {0,0}; |
| /* AIX XL C 1.02.0.0 rejects this. |
| It does not let you subtract one const X* pointer from another in |
| an arm of an if-expression whose if-part is not a constant |
| expression */ |
| const char *g = "string"; |
| ccp = &g + (g ? g-g : 0); |
| /* HPUX 7.0 cc rejects these. */ |
| ++ccp; |
| p = (char**) ccp; |
| ccp = (char const *const *) p; |
| { /* SCO 3.2v4 cc rejects this. */ |
| char *t; |
| char const *s = 0 ? (char *) 0 : (char const *) 0; |
| |
| *t++ = 0; |
| } |
| { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| int x[] = {25, 17}; |
| const int *foo = &x[0]; |
| ++foo; |
| } |
| { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| typedef const int *iptr; |
| iptr p = 0; |
| ++p; |
| } |
| { /* AIX XL C 1.02.0.0 rejects this saying |
| "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| struct s { int j; const int *ap[3]; }; |
| struct s *b; b->j = 5; |
| } |
| { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| const int foo = 10; |
| } |
| #endif |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_c_const=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_c_const=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| echo "${ECHO_T}$ac_cv_c_const" >&6 |
| if test $ac_cv_c_const = no; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define const |
| _ACEOF |
| |
| fi |
| |
| |
| works=no |
| echo "$as_me:$LINENO: checking for working volatile" >&5 |
| echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| int |
| main () |
| { |
| volatile int x; x = 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| works=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define volatile |
| _ACEOF |
| |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $works" >&5 |
| echo "${ECHO_T}$works" >&6 |
| |
| works=no |
| echo "$as_me:$LINENO: checking for working signed char" >&5 |
| echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| int |
| main () |
| { |
| signed char c; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| works=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define signed |
| _ACEOF |
| |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $works" >&5 |
| echo "${ECHO_T}$works" >&6 |
| |
| have_prototypes=no |
| echo "$as_me:$LINENO: checking for prototypes" >&5 |
| echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| int foo(int x) { return 0; } |
| int |
| main () |
| { |
| return foo(10); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_PROTOTYPES 1 |
| _ACEOF |
| |
| have_prototypes=yes |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| echo "${ECHO_T}$have_prototypes" >&6 |
| |
| works=no |
| echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <stdarg.h> |
| int foo(int x, ...) { |
| va_list va; |
| va_start(va, x); |
| va_arg(va, int); |
| va_arg(va, char *); |
| va_arg(va, double); |
| return 0; |
| } |
| |
| int |
| main () |
| { |
| return foo(10, "", 3.14); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_STDARG_PROTOTYPES 1 |
| _ACEOF |
| |
| works=yes |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $works" >&5 |
| echo "${ECHO_T}$works" >&6 |
| |
| # check for socketpair |
| echo "$as_me:$LINENO: checking for socketpair" >&5 |
| echo $ECHO_N "checking for socketpair... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <sys/types.h> |
| #include <sys/socket.h> |
| |
| int |
| main () |
| { |
| void *x=socketpair |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_SOCKETPAIR 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| # check if sockaddr has sa_len member |
| echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <sys/socket.h> |
| int |
| main () |
| { |
| struct sockaddr x; |
| x.sa_len = 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_SOCKADDR_SA_LEN 1 |
| _ACEOF |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| va_list_is_array=no |
| echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #ifdef HAVE_STDARG_PROTOTYPES |
| #include <stdarg.h> |
| #else |
| #include <varargs.h> |
| #endif |
| |
| int |
| main () |
| { |
| va_list list1, list2; list1 = list2; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| : |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define VA_LIST_IS_ARRAY 1 |
| _ACEOF |
| |
| va_list_is_array=yes |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| echo "${ECHO_T}$va_list_is_array" >&6 |
| |
| # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| |
| |
| |
| echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define gethostbyname_r innocuous_gethostbyname_r |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char gethostbyname_r (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef gethostbyname_r |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char gethostbyname_r (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| choke me |
| #else |
| char (*f) () = gethostbyname_r; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != gethostbyname_r; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_func_gethostbyname_r=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_func_gethostbyname_r=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| if test $ac_cv_func_gethostbyname_r = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_GETHOSTBYNAME_R 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6 |
| OLD_CFLAGS=$CFLAGS |
| CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| # include <netdb.h> |
| |
| int |
| main () |
| { |
| |
| char *name; |
| struct hostent *he, *res; |
| char buffer[2048]; |
| int buflen = 2048; |
| int h_errnop; |
| |
| (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_GETHOSTBYNAME_R 1 |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| # include <netdb.h> |
| |
| int |
| main () |
| { |
| |
| char *name; |
| struct hostent *he; |
| char buffer[2048]; |
| int buflen = 2048; |
| int h_errnop; |
| |
| (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_GETHOSTBYNAME_R 1 |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| # include <netdb.h> |
| |
| int |
| main () |
| { |
| |
| char *name; |
| struct hostent *he; |
| struct hostent_data data; |
| |
| (void) gethostbyname_r(name, he, &data); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_GETHOSTBYNAME_R 1 |
| _ACEOF |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| CFLAGS=$OLD_CFLAGS |
| |
| else |
| |
| |
| for ac_func in gethostbyname |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| fi |
| done |
| |
| |
| fi |
| |
| |
| |
| |
| |
| |
| |
| # checks for system services |
| # (none yet) |
| |
| # Linux requires this for correct f.p. operations |
| echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| if test "${ac_cv_func___fpu_control+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define __fpu_control innocuous___fpu_control |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char __fpu_control (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef __fpu_control |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char __fpu_control (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| choke me |
| #else |
| char (*f) () = __fpu_control; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != __fpu_control; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_func___fpu_control=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_func___fpu_control=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| if test $ac_cv_func___fpu_control = yes; then |
| : |
| else |
| |
| echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lieee $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char __fpu_control (); |
| int |
| main () |
| { |
| __fpu_control (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_ieee___fpu_control=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_ieee___fpu_control=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| if test $ac_cv_lib_ieee___fpu_control = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_LIBIEEE 1 |
| _ACEOF |
| |
| LIBS="-lieee $LIBS" |
| |
| fi |
| |
| |
| fi |
| |
| |
| # Check for --with-fpectl |
| echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| |
| # Check whether --with-fpectl or --without-fpectl was given. |
| if test "${with_fpectl+set}" = set; then |
| withval="$with_fpectl" |
| |
| if test "$withval" != no |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define WANT_SIGFPE_HANDLER 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi; |
| |
| # check for --with-libm=... |
| |
| case $ac_sys_system in |
| Darwin) ;; |
| BeOS) ;; |
| *) LIBM=-lm |
| esac |
| echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| |
| # Check whether --with-libm or --without-libm was given. |
| if test "${with_libm+set}" = set; then |
| withval="$with_libm" |
| |
| if test "$withval" = no |
| then LIBM= |
| echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| echo "${ECHO_T}force LIBM empty" >&6 |
| elif test "$withval" != yes |
| then LIBM=$withval |
| echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| else |
| echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| fi; |
| |
| # check for --with-libc=... |
| |
| echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| |
| # Check whether --with-libc or --without-libc was given. |
| if test "${with_libc+set}" = set; then |
| withval="$with_libc" |
| |
| if test "$withval" = no |
| then LIBC= |
| echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| echo "${ECHO_T}force LIBC empty" >&6 |
| elif test "$withval" != yes |
| then LIBC=$withval |
| echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| else |
| echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| fi; |
| |
| # check for hypot() in math library |
| LIBS_SAVE=$LIBS |
| LIBS="$LIBS $LIBM" |
| |
| for ac_func in hypot |
| do |
| as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| if eval "test \"\${$as_ac_var+set}\" = set"; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| #define $ac_func innocuous_$ac_func |
| |
| /* System header to define __stub macros and hopefully few prototypes, |
| which can conflict with char $ac_func (); below. |
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| <limits.h> exists even on freestanding compilers. */ |
| |
| #ifdef __STDC__ |
| # include <limits.h> |
| #else |
| # include <assert.h> |
| #endif |
| |
| #undef $ac_func |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char $ac_func (); |
| /* The GNU C library defines this for functions which it implements |
| to always fail with ENOSYS. Some functions are actually named |
| something starting with __ and the normal name is an alias. */ |
| #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| choke me |
| #else |
| char (*f) () = $ac_func; |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| int |
| main () |
| { |
| return f != $ac_func; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| eval "$as_ac_var=yes" |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| eval "$as_ac_var=no" |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| if test `eval echo '${'$as_ac_var'}'` = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF |
| |
| else |
| case $LIBOBJS in |
| "$ac_func.$ac_objext" | \ |
| *" $ac_func.$ac_objext" | \ |
| "$ac_func.$ac_objext "* | \ |
| *" $ac_func.$ac_objext "* ) ;; |
| *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| esac |
| |
| fi |
| done |
| |
| |
| LIBS=$LIBS_SAVE |
| |
| # check for wchar.h |
| if test "${ac_cv_header_wchar_h+set}" = set; then |
| echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_wchar_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| else |
| # Is the header compilable? |
| echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| $ac_includes_default |
| #include <wchar.h> |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_header_compiler=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_compiler=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| echo "${ECHO_T}$ac_header_compiler" >&6 |
| |
| # Is the header present? |
| echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <wchar.h> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| ac_header_preproc=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_header_preproc=no |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| echo "${ECHO_T}$ac_header_preproc" >&6 |
| |
| # So? What about this header? |
| case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| yes:no: ) |
| { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| ac_header_preproc=yes |
| ;; |
| no:yes:* ) |
| { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
| ( |
| cat <<\_ASBOX |
| ## ------------------------------------------------ ## |
| ## Report this to http://www.python.org/python-bugs ## |
| ## ------------------------------------------------ ## |
| _ASBOX |
| ) | |
| sed "s/^/$as_me: WARNING: /" >&2 |
| ;; |
| esac |
| echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| if test "${ac_cv_header_wchar_h+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_cv_header_wchar_h=$ac_header_preproc |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| |
| fi |
| if test $ac_cv_header_wchar_h = yes; then |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_WCHAR_H 1 |
| _ACEOF |
| |
| wchar_h="yes" |
| |
| else |
| wchar_h="no" |
| |
| fi |
| |
| |
| |
| # determine wchar_t size |
| if test "$wchar_h" = yes |
| then |
| echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| if test "${ac_cv_type_wchar_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <wchar.h> |
| |
| int |
| main () |
| { |
| if ((wchar_t *) 0) |
| return 0; |
| if (sizeof (wchar_t)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_wchar_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_wchar_t=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| |
| echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| if test "$ac_cv_type_wchar_t" = yes; then |
| # The cast to unsigned long works around a bug in the HP C Compiler |
| # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| # This bug is HP SR number 8606223364. |
| if test "$cross_compiling" = yes; then |
| # Depending upon the size, compute the lo and hi bounds. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <wchar.h> |
| |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=0 ac_mid=0 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <wchar.h> |
| |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr $ac_mid + 1` |
| if test $ac_lo -le $ac_mid; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <wchar.h> |
| |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=-1 ac_mid=-1 |
| while :; do |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <wchar.h> |
| |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_lo=$ac_mid; break |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_hi=`expr '(' $ac_mid ')' - 1` |
| if test $ac_mid -le $ac_hi; then |
| ac_lo= ac_hi= |
| break |
| fi |
| ac_mid=`expr 2 '*' $ac_mid` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo= ac_hi= |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| # Binary search between lo and hi bounds. |
| while test "x$ac_lo" != "x$ac_hi"; do |
| ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <wchar.h> |
| |
| int |
| main () |
| { |
| static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| test_array [0] = 0 |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_hi=$ac_mid |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_lo=`expr '(' $ac_mid ')' + 1` |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| done |
| case $ac_lo in |
| ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| else |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <wchar.h> |
| |
| long longval () { return (long) (sizeof (wchar_t)); } |
| unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
| #include <stdio.h> |
| #include <stdlib.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen ("conftest.val", "w"); |
| if (! f) |
| exit (1); |
| if (((long) (sizeof (wchar_t))) < 0) |
| { |
| long i = longval (); |
| if (i != ((long) (sizeof (wchar_t)))) |
| exit (1); |
| fprintf (f, "%ld\n", i); |
| } |
| else |
| { |
| unsigned long i = ulongval (); |
| if (i != ((long) (sizeof (wchar_t)))) |
| exit (1); |
| fprintf (f, "%lu\n", i); |
| } |
| exit (ferror (f) || fclose (f) != 0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_sizeof_wchar_t=`cat conftest.val` |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.val |
| else |
| ac_cv_sizeof_wchar_t=0 |
| fi |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| cat >>confdefs.h <<_ACEOF |
| #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
| _ACEOF |
| |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| have_ucs4_tcl=no |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <tcl.h> |
| #if TCL_UTF_MAX != 6 |
| # error "NOT UCS4_TCL" |
| #endif |
| int |
| main () |
| { |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_UCS4_TCL 1 |
| _ACEOF |
| |
| have_ucs4_tcl=yes |
| |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| |
| # check whether wchar_t is signed or not |
| if test "$wchar_h" = yes |
| then |
| # check whether wchar_t is signed or not |
| echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| if test "${ac_cv_wchar_t_signed+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| |
| if test "$cross_compiling" = yes; then |
| ac_cv_wchar_t_signed=yes |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <wchar.h> |
| int main() |
| { |
| /* Success: exit code 0 */ |
| exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
| } |
| |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_wchar_t_signed=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_wchar_t_signed=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| fi |
| |
| echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6 |
| # Check whether --enable-unicode or --disable-unicode was given. |
| if test "${enable_unicode+set}" = set; then |
| enableval="$enable_unicode" |
| |
| else |
| enable_unicode=yes |
| fi; |
| |
| if test $enable_unicode = yes |
| then |
| # Without any arguments, Py_UNICODE defaults to two-byte mode |
| case "$have_ucs4_tcl" in |
| yes) enable_unicode="ucs4" |
| ;; |
| *) enable_unicode="ucs2" |
| ;; |
| esac |
| fi |
| |
| |
| |
| case "$enable_unicode" in |
| ucs2) unicode_size="2" |
| cat >>confdefs.h <<\_ACEOF |
| #define Py_UNICODE_SIZE 2 |
| _ACEOF |
| |
| ;; |
| ucs4) unicode_size="4" |
| cat >>confdefs.h <<\_ACEOF |
| #define Py_UNICODE_SIZE 4 |
| _ACEOF |
| |
| ;; |
| esac |
| |
| |
| |
| |
| |
| if test "$enable_unicode" = "no" |
| then |
| UNICODE_OBJS="" |
| echo "$as_me:$LINENO: result: not used" >&5 |
| echo "${ECHO_T}not used" >&6 |
| else |
| UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define Py_USING_UNICODE 1 |
| _ACEOF |
| |
| |
| # wchar_t is only usable if it maps to an unsigned type |
| if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
| -a "$ac_cv_wchar_t_signed" = "no" |
| then |
| PY_UNICODE_TYPE="wchar_t" |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_USABLE_WCHAR_T 1 |
| _ACEOF |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define PY_UNICODE_TYPE wchar_t |
| _ACEOF |
| |
| elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| then |
| PY_UNICODE_TYPE="unsigned short" |
| cat >>confdefs.h <<\_ACEOF |
| #define PY_UNICODE_TYPE unsigned short |
| _ACEOF |
| |
| elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| then |
| PY_UNICODE_TYPE="unsigned long" |
| cat >>confdefs.h <<\_ACEOF |
| #define PY_UNICODE_TYPE unsigned long |
| _ACEOF |
| |
| else |
| PY_UNICODE_TYPE="no type found" |
| fi |
| echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
| fi |
| |
| # check for endianness |
| echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| if test "${ac_cv_c_bigendian+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| # See if sys/param.h defines the BYTE_ORDER macro. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <sys/param.h> |
| |
| int |
| main () |
| { |
| #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| bogus endian macros |
| #endif |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| # It does; now see whether it defined to BIG_ENDIAN or not. |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <sys/param.h> |
| |
| int |
| main () |
| { |
| #if BYTE_ORDER != BIG_ENDIAN |
| not big endian |
| #endif |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_c_bigendian=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_c_bigendian=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| # It does not; compile a test program. |
| if test "$cross_compiling" = yes; then |
| # try to guess the endianness by grepping values into an object file |
| ac_cv_c_bigendian=unknown |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| int |
| main () |
| { |
| _ascii (); _ebcdic (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| ac_cv_c_bigendian=yes |
| fi |
| if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| if test "$ac_cv_c_bigendian" = unknown; then |
| ac_cv_c_bigendian=no |
| else |
| # finding both strings is unlikely to happen, but who knows? |
| ac_cv_c_bigendian=unknown |
| fi |
| fi |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| int |
| main () |
| { |
| /* Are we little or big endian? From Harbison&Steele. */ |
| union |
| { |
| long l; |
| char c[sizeof (long)]; |
| } u; |
| u.l = 1; |
| exit (u.c[sizeof (long) - 1] == 1); |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_c_bigendian=no |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_c_bigendian=yes |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| case $ac_cv_c_bigendian in |
| yes) |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define WORDS_BIGENDIAN 1 |
| _ACEOF |
| ;; |
| no) |
| ;; |
| *) |
| { { echo "$as_me:$LINENO: error: unknown endianness |
| presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| echo "$as_me: error: unknown endianness |
| presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| { (exit 1); exit 1; }; } ;; |
| esac |
| |
| |
| |
| |
| # Check whether right shifting a negative integer extends the sign bit |
| # or fills with zeros (like the Cray J90, according to Tim Peters). |
| echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| |
| if test "$cross_compiling" = yes; then |
| ac_cv_rshift_extends_sign=yes |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| int main() |
| { |
| exit(((-1)>>3 == -1) ? 0 : 1); |
| } |
| |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_rshift_extends_sign=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_rshift_extends_sign=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
| if test "$ac_cv_rshift_extends_sign" = no |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| _ACEOF |
| |
| fi |
| |
| # check for getc_unlocked and related locking functions |
| echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <stdio.h> |
| int |
| main () |
| { |
| |
| FILE *f = fopen("/dev/null", "r"); |
| flockfile(f); |
| getc_unlocked(f); |
| funlockfile(f); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_have_getc_unlocked=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_have_getc_unlocked=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
| if test "$ac_cv_have_getc_unlocked" = yes |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_GETC_UNLOCKED 1 |
| _ACEOF |
| |
| fi |
| |
| # check where readline lives |
| # save the value of LIBS so we don't actually link Python with readline |
| LIBS_no_readline=$LIBS |
| |
| echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| if test "${ac_cv_lib_readline_readline+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lreadline $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char readline (); |
| int |
| main () |
| { |
| readline (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_readline_readline=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_readline_readline=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| if test $ac_cv_lib_readline_readline = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_LIBREADLINE 1 |
| _ACEOF |
| |
| LIBS="-lreadline $LIBS" |
| |
| fi |
| |
| if test "$ac_cv_have_readline_readline" = no |
| then |
| |
| echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5 |
| echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6 |
| if test "${ac_cv_lib_termcap_readline+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-ltermcap $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char readline (); |
| int |
| main () |
| { |
| readline (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_termcap_readline=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_termcap_readline=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5 |
| echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6 |
| if test $ac_cv_lib_termcap_readline = yes; then |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_LIBTERMCAP 1 |
| _ACEOF |
| |
| LIBS="-ltermcap $LIBS" |
| |
| fi |
| |
| fi |
| |
| # check for readline 2.1 |
| echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6 |
| if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lreadline $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char rl_callback_handler_install (); |
| int |
| main () |
| { |
| rl_callback_handler_install (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_readline_rl_callback_handler_install=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_readline_rl_callback_handler_install=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6 |
| if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_RL_CALLBACK 1 |
| _ACEOF |
| |
| fi |
| |
| |
| # check for readline 2.2 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <readline/readline.h> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| have_readline=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| have_readline=no |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| if test $have_readline = yes |
| then |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <readline/readline.h> |
| |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| _ACEOF |
| |
| fi |
| rm -f conftest* |
| |
| fi |
| |
| # check for readline 4.0 |
| echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lreadline $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char rl_pre_input_hook (); |
| int |
| main () |
| { |
| rl_pre_input_hook (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_readline_rl_pre_input_hook=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_readline_rl_pre_input_hook=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_RL_PRE_INPUT_HOOK 1 |
| _ACEOF |
| |
| fi |
| |
| |
| # check for readline 4.2 |
| echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| ac_check_lib_save_LIBS=$LIBS |
| LIBS="-lreadline $LIBS" |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| /* Override any gcc2 internal prototype to avoid an error. */ |
| #ifdef __cplusplus |
| extern "C" |
| #endif |
| /* We use char because int might match the return type of a gcc2 |
| builtin and then its argument prototype would still apply. */ |
| char rl_completion_matches (); |
| int |
| main () |
| { |
| rl_completion_matches (); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_lib_readline_rl_completion_matches=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_lib_readline_rl_completion_matches=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| LIBS=$ac_check_lib_save_LIBS |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_RL_COMPLETION_MATCHES 1 |
| _ACEOF |
| |
| fi |
| |
| |
| # also in readline 4.2 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <readline/readline.h> |
| _ACEOF |
| if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } >/dev/null; then |
| if test -s conftest.err; then |
| ac_cpp_err=$ac_c_preproc_warn_flag |
| ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| else |
| ac_cpp_err= |
| fi |
| else |
| ac_cpp_err=yes |
| fi |
| if test -z "$ac_cpp_err"; then |
| have_readline=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| have_readline=no |
| fi |
| rm -f conftest.err conftest.$ac_ext |
| if test $have_readline = yes |
| then |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <readline/readline.h> |
| |
| _ACEOF |
| if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_RL_CATCH_SIGNAL 1 |
| _ACEOF |
| |
| fi |
| rm -f conftest* |
| |
| fi |
| |
| # End of readline checks: restore LIBS |
| LIBS=$LIBS_no_readline |
| |
| echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| if test "${ac_cv_broken_nice+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| |
| if test "$cross_compiling" = yes; then |
| ac_cv_broken_nice=no |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| int main() |
| { |
| int val1 = nice(1); |
| if (val1 != -1 && val1 == nice(2)) |
| exit(0); |
| exit(1); |
| } |
| |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_broken_nice=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_broken_nice=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
| if test "$ac_cv_broken_nice" = yes |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_BROKEN_NICE 1 |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| if test "$cross_compiling" = yes; then |
| ac_cv_broken_poll=no |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <poll.h> |
| |
| int main (void) |
| { |
| struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| |
| close (42); |
| |
| int poll_test = poll (&poll_struct, 1, 0); |
| |
| if (poll_test < 0) |
| { |
| exit(0); |
| } |
| else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| { |
| exit(0); |
| } |
| else |
| { |
| exit(1); |
| } |
| } |
| |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_broken_poll=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_broken_poll=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| if test "$ac_cv_broken_poll" = yes |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_BROKEN_POLL 1 |
| _ACEOF |
| |
| fi |
| |
| # Before we can test tzset, we need to check if struct tm has a tm_zone |
| # (which is not required by ISO C or UNIX spec) and/or if we support |
| # tzname[] |
| echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <$ac_cv_struct_tm> |
| |
| |
| int |
| main () |
| { |
| static struct tm ac_aggr; |
| if (ac_aggr.tm_zone) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_tm_tm_zone=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/types.h> |
| #include <$ac_cv_struct_tm> |
| |
| |
| int |
| main () |
| { |
| static struct tm ac_aggr; |
| if (sizeof ac_aggr.tm_zone) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_member_struct_tm_tm_zone=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_member_struct_tm_tm_zone=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| |
| cat >>confdefs.h <<_ACEOF |
| #define HAVE_STRUCT_TM_TM_ZONE 1 |
| _ACEOF |
| |
| |
| fi |
| |
| if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_TM_ZONE 1 |
| _ACEOF |
| |
| else |
| echo "$as_me:$LINENO: checking for tzname" >&5 |
| echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| if test "${ac_cv_var_tzname+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <time.h> |
| #ifndef tzname /* For SGI. */ |
| extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| #endif |
| |
| int |
| main () |
| { |
| atoi(*tzname); |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_var_tzname=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_var_tzname=no |
| fi |
| rm -f conftest.err conftest.$ac_objext \ |
| conftest$ac_exeext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| if test $ac_cv_var_tzname = yes; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_TZNAME 1 |
| _ACEOF |
| |
| fi |
| fi |
| |
| |
| # check tzset(3) exists and works like we expect it to |
| echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| if test "${ac_cv_working_tzset+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| |
| if test "$cross_compiling" = yes; then |
| ac_cv_working_tzset=no |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #include <stdlib.h> |
| #include <time.h> |
| #include <string.h> |
| |
| #if HAVE_TZNAME |
| extern char *tzname[]; |
| #endif |
| |
| int main() |
| { |
| /* Note that we need to ensure that not only does tzset(3) |
| do 'something' with localtime, but it works as documented |
| in the library reference and as expected by the test suite. |
| This includes making sure that tzname is set properly if |
| tm->tm_zone does not exist since it is the alternative way |
| of getting timezone info. |
| |
| Red Hat 6.2 doesn't understand the southern hemisphere |
| after New Year's Day. |
| */ |
| |
| time_t groundhogday = 1044144000; /* GMT-based */ |
| time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| |
| putenv("TZ=UTC+0"); |
| tzset(); |
| if (localtime(&groundhogday)->tm_hour != 0) |
| exit(1); |
| #if HAVE_TZNAME |
| /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| if (strcmp(tzname[0], "UTC") || |
| (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| exit(1); |
| #endif |
| |
| putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
| tzset(); |
| if (localtime(&groundhogday)->tm_hour != 19) |
| exit(1); |
| #if HAVE_TZNAME |
| if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| exit(1); |
| #endif |
| |
| putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| tzset(); |
| if (localtime(&groundhogday)->tm_hour != 11) |
| exit(1); |
| #if HAVE_TZNAME |
| if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| exit(1); |
| #endif |
| |
| #if HAVE_STRUCT_TM_TM_ZONE |
| if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| exit(1); |
| if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| exit(1); |
| #endif |
| |
| exit(0); |
| } |
| |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_working_tzset=yes |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| ac_cv_working_tzset=no |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| if test "$ac_cv_working_tzset" = yes |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_WORKING_TZSET 1 |
| _ACEOF |
| |
| fi |
| |
| # Look for subsecond timestamps in struct stat |
| echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/stat.h> |
| int |
| main () |
| { |
| |
| struct stat st; |
| st.st_mtim.tv_nsec = 1; |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_stat_tv_nsec=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_stat_tv_nsec=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| if test "$ac_cv_stat_tv_nsec" = yes |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_STAT_TV_NSEC 1 |
| _ACEOF |
| |
| fi |
| |
| # Look for BSD style subsecond timestamps in struct stat |
| echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6 |
| if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <sys/stat.h> |
| int |
| main () |
| { |
| |
| struct stat st; |
| st.st_mtimespec.tv_nsec = 1; |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_stat_tv_nsec2=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_stat_tv_nsec2=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6 |
| if test "$ac_cv_stat_tv_nsec2" = yes |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_STAT_TV_NSEC2 1 |
| _ACEOF |
| |
| fi |
| |
| # On HP/UX 11.0, mvwdelch is a block with a return statement |
| echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <curses.h> |
| int |
| main () |
| { |
| |
| int rtn; |
| rtn = mvwdelch(0,0,0); |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_mvwdelch_is_expression=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_mvwdelch_is_expression=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
| |
| if test "$ac_cv_mvwdelch_is_expression" = yes |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define MVWDELCH_IS_EXPRESSION 1 |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| if test "${ac_cv_window_has_flags+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <curses.h> |
| int |
| main () |
| { |
| |
| WINDOW *w; |
| w->_flags = 0; |
| |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_window_has_flags=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_window_has_flags=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
| |
| |
| if test "$ac_cv_window_has_flags" = yes |
| then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define WINDOW_HAS_FLAGS 1 |
| _ACEOF |
| |
| fi |
| |
| echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <curses.h> |
| int |
| main () |
| { |
| void *x=is_term_resized |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| echo "$as_me:$LINENO: checking for resize_term" >&5 |
| echo $ECHO_N "checking for resize_term... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <curses.h> |
| int |
| main () |
| { |
| void *x=resize_term |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_CURSES_RESIZE_TERM 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6 |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <curses.h> |
| int |
| main () |
| { |
| void *x=resizeterm |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_CURSES_RESIZETERM 1 |
| _ACEOF |
| |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| |
| echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| |
| if test -r /dev/ptmx |
| then |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_DEV_PTMX 1 |
| _ACEOF |
| |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| |
| if test -r /dev/ptc |
| then |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define HAVE_DEV_PTC 1 |
| _ACEOF |
| |
| else |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| |
| echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6 |
| if test "$cross_compiling" = yes; then |
| { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&5 |
| echo "$as_me: error: cannot run test program while cross compiling |
| See \`config.log' for more details." >&2;} |
| { (exit 1); exit 1; }; } |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| #include <stdio.h> |
| #include <stddef.h> |
| #include <string.h> |
| |
| int main() |
| { |
| char buffer[256]; |
| |
| #ifdef HAVE_SSIZE_T |
| typedef ssize_t Py_ssize_t; |
| #elif SIZEOF_VOID_P == SIZEOF_LONG |
| typedef long Py_ssize_t; |
| #else |
| typedef int Py_ssize_t; |
| #endif |
| |
| if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| return 1; |
| |
| if (strcmp(buffer, "123")) |
| return 1; |
| |
| if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| return 1; |
| |
| if (strcmp(buffer, "-123")) |
| return 1; |
| |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest$ac_exeext |
| if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| (eval $ac_link) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| echo "$as_me:$LINENO: result: yes" >&5 |
| echo "${ECHO_T}yes" >&6 |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define PY_FORMAT_SIZE_T "z" |
| _ACEOF |
| |
| else |
| echo "$as_me: program exited with status $ac_status" >&5 |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ( exit $ac_status ) |
| echo "$as_me:$LINENO: result: no" >&5 |
| echo "${ECHO_T}no" >&6 |
| fi |
| rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| fi |
| |
| echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| if test "${ac_cv_type_socklen_t+set}" = set; then |
| echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
| cat >conftest.$ac_ext <<_ACEOF |
| /* confdefs.h. */ |
| _ACEOF |
| cat confdefs.h >>conftest.$ac_ext |
| cat >>conftest.$ac_ext <<_ACEOF |
| /* end confdefs.h. */ |
| |
| #ifdef HAVE_SYS_TYPES_H |
| #include <sys/types.h> |
| #endif |
| #ifdef HAVE_SYS_SOCKET_H |
| #include <sys/socket.h> |
| #endif |
| |
| |
| int |
| main () |
| { |
| if ((socklen_t *) 0) |
| return 0; |
| if (sizeof (socklen_t)) |
| return 0; |
| ; |
| return 0; |
| } |
| _ACEOF |
| rm -f conftest.$ac_objext |
| if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| (eval $ac_compile) 2>conftest.er1 |
| ac_status=$? |
| grep -v '^ *+' conftest.er1 >conftest.err |
| rm -f conftest.er1 |
| cat conftest.err >&5 |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); } && |
| { ac_try='test -z "$ac_c_werror_flag" |
| || test ! -s conftest.err' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; } && |
| { ac_try='test -s conftest.$ac_objext' |
| { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| (eval $ac_try) 2>&5 |
| ac_status=$? |
| echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| (exit $ac_status); }; }; then |
| ac_cv_type_socklen_t=yes |
| else |
| echo "$as_me: failed program was:" >&5 |
| sed 's/^/| /' conftest.$ac_ext >&5 |
| |
| ac_cv_type_socklen_t=no |
| fi |
| rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| fi |
| echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| if test $ac_cv_type_socklen_t = yes; then |
| : |
| else |
| |
| cat >>confdefs.h <<\_ACEOF |
| #define socklen_t int |
| _ACEOF |
| |
| fi |
| |
| |
| |
| |
| for h in `(cd $srcdir;echo Python/thread_*.h)` |
| do |
| THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| done |
| |
| |
| SRCDIRS="Parser Grammar Objects Python Modules Mac" |
| echo "$as_me:$LINENO: checking for build directories" >&5 |
| echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
| for dir in $SRCDIRS; do |
| if test ! -d $dir; then |
| mkdir $dir |
| fi |
| done |
| echo "$as_me:$LINENO: result: done" >&5 |
| echo "${ECHO_T}done" >&6 |
| |
| # generate output files |
| ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
| |
| cat >confcache <<\_ACEOF |
| # This file is a shell script that caches the results of configure |
| # tests run on this system so they can be shared between configure |
| # scripts and configure runs, see configure's option --config-cache. |
| # It is not useful on other systems. If it contains results you don't |
| # want to keep, you may remove or edit it. |
| # |
| # config.status only pays attention to the cache file if you give it |
| # the --recheck option to rerun configure. |
| # |
| # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| # following values. |
| |
| _ACEOF |
| |
| # The following way of writing the cache mishandles newlines in values, |
| # but we know of no workaround that is simple, portable, and efficient. |
| # So, don't put newlines in cache variables' values. |
| # Ultrix sh set writes to stderr and can't be redirected directly, |
| # and sets the high bit in the cache file unless we assign to the vars. |
| { |
| (set) 2>&1 | |
| case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| *ac_space=\ *) |
| # `set' does not quote correctly, so add quotes (double-quote |
| # substitution turns \\\\ into \\, and sed turns \\ into \). |
| sed -n \ |
| "s/'/'\\\\''/g; |
| s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| ;; |
| *) |
| # `set' quotes correctly as required by POSIX, so do not add quotes. |
| sed -n \ |
| "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| ;; |
| esac; |
| } | |
| sed ' |
| t clear |
| : clear |
| s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| t end |
| /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| : end' >>confcache |
| if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| if test -w $cache_file; then |
| test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| cat confcache >$cache_file |
| else |
| echo "not updating unwritable cache $cache_file" |
| fi |
| fi |
| rm -f confcache |
| |
| test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| # Let make expand exec_prefix. |
| test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| |
| # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| # trailing colons and then remove the whole line if VPATH becomes empty |
| # (actually we leave an empty line to preserve line numbers). |
| if test "x$srcdir" = x.; then |
| ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| s/:*\$(srcdir):*/:/; |
| s/:*\${srcdir}:*/:/; |
| s/:*@srcdir@:*/:/; |
| s/^\([^=]*=[ ]*\):*/\1/; |
| s/:*$//; |
| s/^[^=]*=[ ]*$//; |
| }' |
| fi |
| |
| DEFS=-DHAVE_CONFIG_H |
| |
| ac_libobjs= |
| ac_ltlibobjs= |
| for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| # 1. Remove the extension, and $U if already installed. |
| ac_i=`echo "$ac_i" | |
| sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| # 2. Add them. |
| ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| done |
| LIBOBJS=$ac_libobjs |
| |
| LTLIBOBJS=$ac_ltlibobjs |
| |
| |
| |
| : ${CONFIG_STATUS=./config.status} |
| ac_clean_files_save=$ac_clean_files |
| ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| cat >$CONFIG_STATUS <<_ACEOF |
| #! $SHELL |
| # Generated by $as_me. |
| # Run this file to recreate the current configuration. |
| # Compiler output produced by configure, useful for debugging |
| # configure, is in config.log if it exists. |
| |
| debug=false |
| ac_cs_recheck=false |
| ac_cs_silent=false |
| SHELL=\${CONFIG_SHELL-$SHELL} |
| _ACEOF |
| |
| cat >>$CONFIG_STATUS <<\_ACEOF |
| ## --------------------- ## |
| ## M4sh Initialization. ## |
| ## --------------------- ## |
| |
| # Be Bourne compatible |
| if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| emulate sh |
| NULLCMD=: |
| # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| # is contrary to our usage. Disable this feature. |
| alias -g '${1+"$@"}'='"$@"' |
| elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| set -o posix |
| fi |
| DUALCASE=1; export DUALCASE # for MKS sh |
| |
| # Support unset when possible. |
| if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| as_unset=unset |
| else |
| as_unset=false |
| fi |
| |
| |
| # Work around bugs in pre-3.0 UWIN ksh. |
| $as_unset ENV MAIL MAILPATH |
| PS1='$ ' |
| PS2='> ' |
| PS4='+ ' |
| |
| # NLS nuisances. |
| for as_var in \ |
| LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| LC_TELEPHONE LC_TIME |
| do |
| if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| eval $as_var=C; export $as_var |
| else |
| $as_unset $as_var |
| fi |
| done |
| |
| # Required to use basename. |
| if expr a : '\(a\)' >/dev/null 2>&1; then |
| as_expr=expr |
| else |
| as_expr=false |
| fi |
| |
| if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| as_basename=basename |
| else |
| as_basename=false |
| fi |
| |
| |
| # Name of the executable. |
| as_me=`$as_basename "$0" || |
| $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| X"$0" : 'X\(//\)$' \| \ |
| X"$0" : 'X\(/\)$' \| \ |
| . : '\(.\)' 2>/dev/null || |
| echo X/"$0" | |
| sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| /^X\/\(\/\/\)$/{ s//\1/; q; } |
| /^X\/\(\/\).*/{ s//\1/; q; } |
| s/.*/./; q'` |
| |
| |
| # PATH needs CR, and LINENO needs CR and PATH. |
| # Avoid depending upon Character Ranges. |
| as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| as_cr_digits='0123456789' |
| as_cr_alnum=$as_cr_Letters$as_cr_digits |
| |
| # The user is always right. |
| if test "${PATH_SEPARATOR+set}" != set; then |
| echo "#! /bin/sh" >conf$$.sh |
| echo "exit 0" >>conf$$.sh |
| chmod +x conf$$.sh |
| if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| PATH_SEPARATOR=';' |
| else |
| PATH_SEPARATOR=: |
| fi |
| rm -f conf$$.sh |
| fi |
| |
| |
| as_lineno_1=$LINENO |
| as_lineno_2=$LINENO |
| as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| test "x$as_lineno_1" != "x$as_lineno_2" && |
| test "x$as_lineno_3" = "x$as_lineno_2" || { |
| # Find who we are. Look in the path if we contain no path at all |
| # relative or not. |
| case $0 in |
| *[\\/]* ) as_myself=$0 ;; |
| *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in $PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| done |
| |
| ;; |
| esac |
| # We did not find ourselves, most probably we were run as `sh COMMAND' |
| # in which case we are not to be found in the path. |
| if test "x$as_myself" = x; then |
| as_myself=$0 |
| fi |
| if test ! -f "$as_myself"; then |
| { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| { (exit 1); exit 1; }; } |
| fi |
| case $CONFIG_SHELL in |
| '') |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| for as_base in sh bash ksh sh5; do |
| case $as_dir in |
| /*) |
| if ("$as_dir/$as_base" -c ' |
| as_lineno_1=$LINENO |
| as_lineno_2=$LINENO |
| as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| test "x$as_lineno_1" != "x$as_lineno_2" && |
| test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| CONFIG_SHELL=$as_dir/$as_base |
| export CONFIG_SHELL |
| exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| fi;; |
| esac |
| done |
| done |
| ;; |
| esac |
| |
| # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| # uniformly replaced by the line number. The first 'sed' inserts a |
| # line-number line before each line; the second 'sed' does the real |
| # work. The second script uses 'N' to pair each line-number line |
| # with the numbered line, and appends trailing '-' during |
| # substitution so that $LINENO is not a special case at line end. |
| # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| sed '=' <$as_myself | |
| sed ' |
| N |
| s,$,-, |
| : loop |
| s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| t loop |
| s,-$,, |
| s,^['$as_cr_digits']*\n,, |
| ' >$as_me.lineno && |
| chmod +x $as_me.lineno || |
| { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| { (exit 1); exit 1; }; } |
| |
| # Don't try to exec as it changes $[0], causing all sort of problems |
| # (the dirname of $[0] is not the place where we might find the |
| # original and so on. Autoconf is especially sensible to this). |
| . ./$as_me.lineno |
| # Exit status is that of the last command. |
| exit |
| } |
| |
| |
| case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| *c*,-n*) ECHO_N= ECHO_C=' |
| ' ECHO_T=' ' ;; |
| *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| esac |
| |
| if expr a : '\(a\)' >/dev/null 2>&1; then |
| as_expr=expr |
| else |
| as_expr=false |
| fi |
| |
| rm -f conf$$ conf$$.exe conf$$.file |
| echo >conf$$.file |
| if ln -s conf$$.file conf$$ 2>/dev/null; then |
| # We could just check for DJGPP; but this test a) works b) is more generic |
| # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| if test -f conf$$.exe; then |
| # Don't use ln at all; we don't have any links |
| as_ln_s='cp -p' |
| else |
| as_ln_s='ln -s' |
| fi |
| elif ln conf$$.file conf$$ 2>/dev/null; then |
| as_ln_s=ln |
| else |
| as_ln_s='cp -p' |
| fi |
| rm -f conf$$ conf$$.exe conf$$.file |
| |
| if mkdir -p . 2>/dev/null; then |
| as_mkdir_p=: |
| else |
| test -d ./-p && rmdir ./-p |
| as_mkdir_p=false |
| fi |
| |
| as_executable_p="test -f" |
| |
| # Sed expression to map a string onto a valid CPP name. |
| as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| |
| # Sed expression to map a string onto a valid variable name. |
| as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| |
| |
| # IFS |
| # We need space, tab and new line, in precisely that order. |
| as_nl=' |
| ' |
| IFS=" $as_nl" |
| |
| # CDPATH. |
| $as_unset CDPATH |
| |
| exec 6>&1 |
| |
| # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| # report actual input values of CONFIG_FILES etc. instead of their |
| # values after options handling. Logging --version etc. is OK. |
| exec 5>>config.log |
| { |
| echo |
| sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| ## Running $as_me. ## |
| _ASBOX |
| } >&5 |
| cat >&5 <<_CSEOF |
| |
| This file was extended by python $as_me 2.6, which was |
| generated by GNU Autoconf 2.59. Invocation command line was |
| |
| CONFIG_FILES = $CONFIG_FILES |
| CONFIG_HEADERS = $CONFIG_HEADERS |
| CONFIG_LINKS = $CONFIG_LINKS |
| CONFIG_COMMANDS = $CONFIG_COMMANDS |
| $ $0 $@ |
| |
| _CSEOF |
| echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| echo >&5 |
| _ACEOF |
| |
| # Files that config.status was made for. |
| if test -n "$ac_config_files"; then |
| echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| fi |
| |
| if test -n "$ac_config_headers"; then |
| echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| fi |
| |
| if test -n "$ac_config_links"; then |
| echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| fi |
| |
| if test -n "$ac_config_commands"; then |
| echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| fi |
| |
| cat >>$CONFIG_STATUS <<\_ACEOF |
| |
| ac_cs_usage="\ |
| \`$as_me' instantiates files from templates according to the |
| current configuration. |
| |
| Usage: $0 [OPTIONS] [FILE]... |
| |
| -h, --help print this help, then exit |
| -V, --version print version number, then exit |
| -q, --quiet do not print progress messages |
| -d, --debug don't remove temporary files |
| --recheck update $as_me by reconfiguring in the same conditions |
| --file=FILE[:TEMPLATE] |
| instantiate the configuration file FILE |
| --header=FILE[:TEMPLATE] |
| instantiate the configuration header FILE |
| |
| Configuration files: |
| $config_files |
| |
| Configuration headers: |
| $config_headers |
| |
| Report bugs to <bug-autoconf@gnu.org>." |
| _ACEOF |
| |
| cat >>$CONFIG_STATUS <<_ACEOF |
| ac_cs_version="\\ |
| python config.status 2.6 |
| configured by $0, generated by GNU Autoconf 2.59, |
| with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| |
| Copyright (C) 2003 Free Software Foundation, Inc. |
| This config.status script is free software; the Free Software Foundation |
| gives unlimited permission to copy, distribute and modify it." |
| srcdir=$srcdir |
| INSTALL="$INSTALL" |
| _ACEOF |
| |
| cat >>$CONFIG_STATUS <<\_ACEOF |
| # If no file are specified by the user, then we need to provide default |
| # value. By we need to know if files were specified by the user. |
| ac_need_defaults=: |
| while test $# != 0 |
| do |
| case $1 in |
| --*=*) |
| ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| ac_shift=: |
| ;; |
| -*) |
| ac_option=$1 |
| ac_optarg=$2 |
| ac_shift=shift |
| ;; |
| *) # This is not an option, so the user has probably given explicit |
| # arguments. |
| ac_option=$1 |
| ac_need_defaults=false;; |
| esac |
| |
| case $ac_option in |
| # Handling of the options. |
| _ACEOF |
| cat >>$CONFIG_STATUS <<\_ACEOF |
| -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| ac_cs_recheck=: ;; |
| --version | --vers* | -V ) |
| echo "$ac_cs_version"; exit 0 ;; |
| --he | --h) |
| # Conflict between --help and --header |
| { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| Try \`$0 --help' for more information." >&5 |
| echo "$as_me: error: ambiguous option: $1 |
| Try \`$0 --help' for more information." >&2;} |
| { (exit 1); exit 1; }; };; |
| --help | --hel | -h ) |
| echo "$ac_cs_usage"; exit 0 ;; |
| --debug | --d* | -d ) |
| debug=: ;; |
| --file | --fil | --fi | --f ) |
| $ac_shift |
| CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| ac_need_defaults=false;; |
| --header | --heade | --head | --hea ) |
| $ac_shift |
| CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| ac_need_defaults=false;; |
| -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| ac_cs_silent=: ;; |
| |
| # This is an error. |
| -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| Try \`$0 --help' for more information." >&5 |
| echo "$as_me: error: unrecognized option: $1 |
| Try \`$0 --help' for more information." >&2;} |
| { (exit 1); exit 1; }; } ;; |
| |
| *) ac_config_targets="$ac_config_targets $1" ;; |
| |
| esac |
| shift |
| done |
| |
| ac_configure_extra_args= |
| |
| if $ac_cs_silent; then |
| exec 6>/dev/null |
| ac_configure_extra_args="$ac_configure_extra_args --silent" |
| fi |
| |
| _ACEOF |
| cat >>$CONFIG_STATUS <<_ACEOF |
| if \$ac_cs_recheck; then |
| echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| fi |
| |
| _ACEOF |
| |
| |
| |
| |
| |
| cat >>$CONFIG_STATUS <<\_ACEOF |
| for ac_config_target in $ac_config_targets |
| do |
| case "$ac_config_target" in |
| # Handling of arguments. |
| "Mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| "Mac/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| "Mac/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
| "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| { (exit 1); exit 1; }; };; |
| esac |
| done |
| |
| # If the user did not use the arguments to specify the items to instantiate, |
| # then the envvar interface is used. Set only those that are not. |
| # We use the long form for the default assignment because of an extremely |
| # bizarre bug on SunOS 4.1.3. |
| if $ac_need_defaults; then |
| test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| fi |
| |
| # Have a temporary directory for convenience. Make it in the build tree |
| # simply because there is no reason to put it here, and in addition, |
| # creating and moving files from /tmp can sometimes cause problems. |
| # Create a temporary directory, and hook for its removal unless debugging. |
| $debug || |
| { |
| trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| } |
| |
| # Create a (secure) tmp directory for tmp files. |
| |
| { |
| tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| test -n "$tmp" && test -d "$tmp" |
| } || |
| { |
| tmp=./confstat$$-$RANDOM |
| (umask 077 && mkdir $tmp) |
| } || |
| { |
| echo "$me: cannot create a temporary directory in ." >&2 |
| { (exit 1); exit 1; } |
| } |
| |
| _ACEOF |
| |
| cat >>$CONFIG_STATUS <<_ACEOF |
| |
| # |
| # CONFIG_FILES section. |
| # |
| |
| # No need to generate the scripts if there are no CONFIG_FILES. |
| # This happens for instance when ./config.status config.h |
| if test -n "\$CONFIG_FILES"; then |
| # Protect against being on the right side of a sed subst in config.status. |
| sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| s,@SHELL@,$SHELL,;t t |
| s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| s,@exec_prefix@,$exec_prefix,;t t |
| s,@prefix@,$prefix,;t t |
| s,@program_transform_name@,$program_transform_name,;t t |
| s,@bindir@,$bindir,;t t |
| s,@sbindir@,$sbindir,;t t |
| s,@libexecdir@,$libexecdir,;t t |
| s,@datadir@,$datadir,;t t |
| s,@sysconfdir@,$sysconfdir,;t t |
| s,@sharedstatedir@,$sharedstatedir,;t t |
| s,@localstatedir@,$localstatedir,;t t |
| s,@libdir@,$libdir,;t t |
| s,@includedir@,$includedir,;t t |
| s,@oldincludedir@,$oldincludedir,;t t |
| s,@infodir@,$infodir,;t t |
| s,@mandir@,$mandir,;t t |
| s,@build_alias@,$build_alias,;t t |
| s,@host_alias@,$host_alias,;t t |
| s,@target_alias@,$target_alias,;t t |
| s,@DEFS@,$DEFS,;t t |
| s,@ECHO_C@,$ECHO_C,;t t |
| s,@ECHO_N@,$ECHO_N,;t t |
| s,@ECHO_T@,$ECHO_T,;t t |
| s,@LIBS@,$LIBS,;t t |
| s,@VERSION@,$VERSION,;t t |
| s,@SOVERSION@,$SOVERSION,;t t |
| s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t |
| s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t |
| s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t |
| s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t |
| s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t |
| s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t |
| s,@MACHDEP@,$MACHDEP,;t t |
| s,@SGI_ABI@,$SGI_ABI,;t t |
| s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
| s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
| s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t |
| s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t |
| s,@CC@,$CC,;t t |
| s,@CFLAGS@,$CFLAGS,;t t |
| s,@LDFLAGS@,$LDFLAGS,;t t |
| s,@CPPFLAGS@,$CPPFLAGS,;t t |
| s,@ac_ct_CC@,$ac_ct_CC,;t t |
| s,@EXEEXT@,$EXEEXT,;t t |
| s,@OBJEXT@,$OBJEXT,;t t |
| s,@CXX@,$CXX,;t t |
| s,@MAINCC@,$MAINCC,;t t |
| s,@CPP@,$CPP,;t t |
| s,@EGREP@,$EGREP,;t t |
| s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| s,@LIBRARY@,$LIBRARY,;t t |
| s,@LDLIBRARY@,$LDLIBRARY,;t t |
| s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| s,@INSTSONAME@,$INSTSONAME,;t t |
| s,@RUNSHARED@,$RUNSHARED,;t t |
| s,@LINKCC@,$LINKCC,;t t |
| s,@RANLIB@,$RANLIB,;t t |
| s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| s,@AR@,$AR,;t t |
| s,@SVNVERSION@,$SVNVERSION,;t t |
| s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| s,@LN@,$LN,;t t |
| s,@OPT@,$OPT,;t t |
| s,@BASECFLAGS@,$BASECFLAGS,;t t |
| s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t |
| s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| s,@SO@,$SO,;t t |
| s,@LDSHARED@,$LDSHARED,;t t |
| s,@BLDSHARED@,$BLDSHARED,;t t |
| s,@CCSHARED@,$CCSHARED,;t t |
| s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
| s,@SHLIBS@,$SHLIBS,;t t |
| s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| s,@LDLAST@,$LDLAST,;t t |
| s,@THREADOBJ@,$THREADOBJ,;t t |
| s,@DLINCLDIR@,$DLINCLDIR,;t t |
| s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| s,@TRUE@,$TRUE,;t t |
| s,@LIBOBJS@,$LIBOBJS,;t t |
| s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| s,@LIBM@,$LIBM,;t t |
| s,@LIBC@,$LIBC,;t t |
| s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| s,@THREADHEADERS@,$THREADHEADERS,;t t |
| s,@SRCDIRS@,$SRCDIRS,;t t |
| s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| CEOF |
| |
| _ACEOF |
| |
| cat >>$CONFIG_STATUS <<\_ACEOF |
| # Split the substitutions into bite-sized pieces for seds with |
| # small command number limits, like on Digital OSF/1 and HP-UX. |
| ac_max_sed_lines=48 |
| ac_sed_frag=1 # Number of current file. |
| ac_beg=1 # First line for current file. |
| ac_end=$ac_max_sed_lines # Line after last line for current file. |
| ac_more_lines=: |
| ac_sed_cmds= |
| while $ac_more_lines; do |
| if test $ac_beg -gt 1; then |
| sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| else |
| sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| fi |
| if test ! -s $tmp/subs.frag; then |
| ac_more_lines=false |
| else |
| # The purpose of the label and of the branching condition is to |
| # speed up the sed processing (if there are no `@' at all, there |
| # is no need to browse any of the substitutions). |
| # These are the two extra sed commands mentioned above. |
| (echo ':t |
| /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| if test -z "$ac_sed_cmds"; then |
| ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| else |
| ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| fi |
| ac_sed_frag=`expr $ac_sed_frag + 1` |
| ac_beg=$ac_end |
| ac_end=`expr $ac_end + $ac_max_sed_lines` |
| fi |
| done |
| if test -z "$ac_sed_cmds"; then |
| ac_sed_cmds=cat |
| fi |
| fi # test -n "$CONFIG_FILES" |
| |
| _ACEOF |
| cat >>$CONFIG_STATUS <<\_ACEOF |
| for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| case $ac_file in |
| - | *:- | *:-:* ) # input from stdin |
| cat >$tmp/stdin |
| ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| * ) ac_file_in=$ac_file.in ;; |
| esac |
| |
| # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| X"$ac_file" : 'X\(//\)[^/]' \| \ |
| X"$ac_file" : 'X\(//\)$' \| \ |
| X"$ac_file" : 'X\(/\)' \| \ |
| . : '\(.\)' 2>/dev/null || |
| echo X"$ac_file" | |
| sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| /^X\(\/\/\)$/{ s//\1/; q; } |
| /^X\(\/\).*/{ s//\1/; q; } |
| s/.*/./; q'` |
| { if $as_mkdir_p; then |
| mkdir -p "$ac_dir" |
| else |
| as_dir="$ac_dir" |
| as_dirs= |
| while test ! -d "$as_dir"; do |
| as_dirs="$as_dir $as_dirs" |
| as_dir=`(dirname "$as_dir") 2>/dev/null || |
| $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| X"$as_dir" : 'X\(//\)[^/]' \| \ |
| X"$as_dir" : 'X\(//\)$' \| \ |
| X"$as_dir" : 'X\(/\)' \| \ |
| . : '\(.\)' 2>/dev/null || |
| echo X"$as_dir" | |
| sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| /^X\(\/\/\)$/{ s//\1/; q; } |
| /^X\(\/\).*/{ s//\1/; q; } |
| s/.*/./; q'` |
| done |
| test ! -n "$as_dirs" || mkdir $as_dirs |
| fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| { (exit 1); exit 1; }; }; } |
| |
| ac_builddir=. |
| |
| if test "$ac_dir" != .; then |
| ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| # A "../" for each directory in $ac_dir_suffix. |
| ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| else |
| ac_dir_suffix= ac_top_builddir= |
| fi |
| |
| case $srcdir in |
| .) # No --srcdir option. We are building in place. |
| ac_srcdir=. |
| if test -z "$ac_top_builddir"; then |
| ac_top_srcdir=. |
| else |
| ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| fi ;; |
| [\\/]* | ?:[\\/]* ) # Absolute path. |
| ac_srcdir=$srcdir$ac_dir_suffix; |
| ac_top_srcdir=$srcdir ;; |
| *) # Relative path. |
| ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| esac |
| |
| # Do not use `cd foo && pwd` to compute absolute paths, because |
| # the directories may not exist. |
| case `pwd` in |
| .) ac_abs_builddir="$ac_dir";; |
| *) |
| case "$ac_dir" in |
| .) ac_abs_builddir=`pwd`;; |
| [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| esac;; |
| esac |
| case $ac_abs_builddir in |
| .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| *) |
| case ${ac_top_builddir}. in |
| .) ac_abs_top_builddir=$ac_abs_builddir;; |
| [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| esac;; |
| esac |
| case $ac_abs_builddir in |
| .) ac_abs_srcdir=$ac_srcdir;; |
| *) |
| case $ac_srcdir in |
| .) ac_abs_srcdir=$ac_abs_builddir;; |
| [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| esac;; |
| esac |
| case $ac_abs_builddir in |
| .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| *) |
| case $ac_top_srcdir in |
| .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| esac;; |
| esac |
| |
| |
| case $INSTALL in |
| [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| esac |
| |
| if test x"$ac_file" != x-; then |
| { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| echo "$as_me: creating $ac_file" >&6;} |
| rm -f "$ac_file" |
| fi |
| # Let's still pretend it is `configure' which instantiates (i.e., don't |
| # use $as_me), people would be surprised to read: |
| # /* config.h. Generated by config.status. */ |
| if test x"$ac_file" = x-; then |
| configure_input= |
| else |
| configure_input="$ac_file. " |
| fi |
| configure_input=$configure_input"Generated from `echo $ac_file_in | |
| sed 's,.*/,,'` by configure." |
| |
| # First look for the input files in the build tree, otherwise in the |
| # src tree. |
| ac_file_inputs=`IFS=: |
| for f in $ac_file_in; do |
| case $f in |
| -) echo $tmp/stdin ;; |
| [\\/$]*) |
| # Absolute (can't be DOS-style, as IFS=:) |
| test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| echo "$as_me: error: cannot find input file: $f" >&2;} |
| { (exit 1); exit 1; }; } |
| echo "$f";; |
| *) # Relative |
| if test -f "$f"; then |
| # Build tree |
| echo "$f" |
| elif test -f "$srcdir/$f"; then |
| # Source tree |
| echo "$srcdir/$f" |
| else |
| # /dev/null tree |
| { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| echo "$as_me: error: cannot find input file: $f" >&2;} |
| { (exit 1); exit 1; }; } |
| fi;; |
| esac |
| done` || { (exit 1); exit 1; } |
| _ACEOF |
| cat >>$CONFIG_STATUS <<_ACEOF |
| sed "$ac_vpsub |
| $extrasub |
| _ACEOF |
| cat >>$CONFIG_STATUS <<\_ACEOF |
| :t |
| /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| s,@configure_input@,$configure_input,;t t |
| s,@srcdir@,$ac_srcdir,;t t |
| s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| s,@top_srcdir@,$ac_top_srcdir,;t t |
| s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| s,@builddir@,$ac_builddir,;t t |
| s,@abs_builddir@,$ac_abs_builddir,;t t |
| s,@top_builddir@,$ac_top_builddir,;t t |
| s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| s,@INSTALL@,$ac_INSTALL,;t t |
| " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| rm -f $tmp/stdin |
| if test x"$ac_file" != x-; then |
| mv $tmp/out $ac_file |
| else |
| cat $tmp/out |
| rm -f $tmp/out |
| fi |
| |
| done |
| _ACEOF |
| cat >>$CONFIG_STATUS <<\_ACEOF |
| |
| # |
| # CONFIG_HEADER section. |
| # |
| |
| # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| # |
| # ac_d sets the value in "#define NAME VALUE" lines. |
| ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| ac_dB='[ ].*$,\1#\2' |
| ac_dC=' ' |
| ac_dD=',;t' |
| # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| ac_uB='$,\1#\2define\3' |
| ac_uC=' ' |
| ac_uD=',;t' |
| |
| for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| case $ac_file in |
| - | *:- | *:-:* ) # input from stdin |
| cat >$tmp/stdin |
| ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| * ) ac_file_in=$ac_file.in ;; |
| esac |
| |
| test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| echo "$as_me: creating $ac_file" >&6;} |
| |
| # First look for the input files in the build tree, otherwise in the |
| # src tree. |
| ac_file_inputs=`IFS=: |
| for f in $ac_file_in; do |
| case $f in |
| -) echo $tmp/stdin ;; |
| [\\/$]*) |
| # Absolute (can't be DOS-style, as IFS=:) |
| test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| echo "$as_me: error: cannot find input file: $f" >&2;} |
| { (exit 1); exit 1; }; } |
| # Do quote $f, to prevent DOS paths from being IFS'd. |
| echo "$f";; |
| *) # Relative |
| if test -f "$f"; then |
| # Build tree |
| echo "$f" |
| elif test -f "$srcdir/$f"; then |
| # Source tree |
| echo "$srcdir/$f" |
| else |
| # /dev/null tree |
| { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| echo "$as_me: error: cannot find input file: $f" >&2;} |
| { (exit 1); exit 1; }; } |
| fi;; |
| esac |
| done` || { (exit 1); exit 1; } |
| # Remove the trailing spaces. |
| sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| |
| _ACEOF |
| |
| # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| # `conftest.undefs', that substitutes the proper values into |
| # config.h.in to produce config.h. The first handles `#define' |
| # templates, and the second `#undef' templates. |
| # And first: Protect against being on the right side of a sed subst in |
| # config.status. Protect against being in an unquoted here document |
| # in config.status. |
| rm -f conftest.defines conftest.undefs |
| # Using a here document instead of a string reduces the quoting nightmare. |
| # Putting comments in sed scripts is not portable. |
| # |
| # `end' is used to avoid that the second main sed command (meant for |
| # 0-ary CPP macros) applies to n-ary macro definitions. |
| # See the Autoconf documentation for `clear'. |
| cat >confdef2sed.sed <<\_ACEOF |
| s/[\\&,]/\\&/g |
| s,[\\$`],\\&,g |
| t clear |
| : clear |
| s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| t end |
| s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| : end |
| _ACEOF |
| # If some macros were called several times there might be several times |
| # the same #defines, which is useless. Nevertheless, we may not want to |
| # sort them, since we want the *last* AC-DEFINE to be honored. |
| uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| rm -f confdef2sed.sed |
| |
| # This sed command replaces #undef with comments. This is necessary, for |
| # example, in the case of _POSIX_SOURCE, which is predefined and required |
| # on some systems where configure will not decide to define it. |
| cat >>conftest.undefs <<\_ACEOF |
| s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| _ACEOF |
| |
| # Break up conftest.defines because some shells have a limit on the size |
| # of here documents, and old seds have small limits too (100 cmds). |
| echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| echo ' :' >>$CONFIG_STATUS |
| rm -f conftest.tail |
| while grep . conftest.defines >/dev/null |
| do |
| # Write a limited-size here document to $tmp/defines.sed. |
| echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| # Speed up: don't consider the non `#define' lines. |
| echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| # Work around the forget-to-reset-the-flag bug. |
| echo 't clr' >>$CONFIG_STATUS |
| echo ': clr' >>$CONFIG_STATUS |
| sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| echo 'CEOF |
| sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| rm -f $tmp/in |
| mv $tmp/out $tmp/in |
| ' >>$CONFIG_STATUS |
| sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| rm -f conftest.defines |
| mv conftest.tail conftest.defines |
| done |
| rm -f conftest.defines |
| echo ' fi # grep' >>$CONFIG_STATUS |
| echo >>$CONFIG_STATUS |
| |
| # Break up conftest.undefs because some shells have a limit on the size |
| # of here documents, and old seds have small limits too (100 cmds). |
| echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| rm -f conftest.tail |
| while grep . conftest.undefs >/dev/null |
| do |
| # Write a limited-size here document to $tmp/undefs.sed. |
| echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| # Speed up: don't consider the non `#undef' |
| echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| # Work around the forget-to-reset-the-flag bug. |
| echo 't clr' >>$CONFIG_STATUS |
| echo ': clr' >>$CONFIG_STATUS |
| sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| echo 'CEOF |
| sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| rm -f $tmp/in |
| mv $tmp/out $tmp/in |
| ' >>$CONFIG_STATUS |
| sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| rm -f conftest.undefs |
| mv conftest.tail conftest.undefs |
| done |
| rm -f conftest.undefs |
| |
| cat >>$CONFIG_STATUS <<\_ACEOF |
| # Let's still pretend it is `configure' which instantiates (i.e., don't |
| # use $as_me), people would be surprised to read: |
| # /* config.h. Generated by config.status. */ |
| if test x"$ac_file" = x-; then |
| echo "/* Generated by configure. */" >$tmp/config.h |
| else |
| echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| fi |
| cat $tmp/in >>$tmp/config.h |
| rm -f $tmp/in |
| if test x"$ac_file" != x-; then |
| if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| echo "$as_me: $ac_file is unchanged" >&6;} |
| else |
| ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| X"$ac_file" : 'X\(//\)[^/]' \| \ |
| X"$ac_file" : 'X\(//\)$' \| \ |
| X"$ac_file" : 'X\(/\)' \| \ |
| . : '\(.\)' 2>/dev/null || |
| echo X"$ac_file" | |
| sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| /^X\(\/\/\)$/{ s//\1/; q; } |
| /^X\(\/\).*/{ s//\1/; q; } |
| s/.*/./; q'` |
| { if $as_mkdir_p; then |
| mkdir -p "$ac_dir" |
| else |
| as_dir="$ac_dir" |
| as_dirs= |
| while test ! -d "$as_dir"; do |
| as_dirs="$as_dir $as_dirs" |
| as_dir=`(dirname "$as_dir") 2>/dev/null || |
| $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| X"$as_dir" : 'X\(//\)[^/]' \| \ |
| X"$as_dir" : 'X\(//\)$' \| \ |
| X"$as_dir" : 'X\(/\)' \| \ |
| . : '\(.\)' 2>/dev/null || |
| echo X"$as_dir" | |
| sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| /^X\(\/\/\)$/{ s//\1/; q; } |
| /^X\(\/\).*/{ s//\1/; q; } |
| s/.*/./; q'` |
| done |
| test ! -n "$as_dirs" || mkdir $as_dirs |
| fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| { (exit 1); exit 1; }; }; } |
| |
| rm -f $ac_file |
| mv $tmp/config.h $ac_file |
| fi |
| else |
| cat $tmp/config.h |
| rm -f $tmp/config.h |
| fi |
| done |
| _ACEOF |
| |
| cat >>$CONFIG_STATUS <<\_ACEOF |
| |
| { (exit 0); exit 0; } |
| _ACEOF |
| chmod +x $CONFIG_STATUS |
| ac_clean_files=$ac_clean_files_save |
| |
| |
| # configure is writing to config.log, and then calls config.status. |
| # config.status does its own redirection, appending to config.log. |
| # Unfortunately, on DOS this fails, as config.log is still kept open |
| # by configure, so config.status won't be able to write to it; its |
| # output is simply discarded. So we exec the FD to /dev/null, |
| # effectively closing config.log, so it can be properly (re)opened and |
| # appended to by config.status. When coming back to configure, we |
| # need to make the FD available again. |
| if test "$no_create" != yes; then |
| ac_cs_success=: |
| ac_config_status_args= |
| test "$silent" = yes && |
| ac_config_status_args="$ac_config_status_args --quiet" |
| exec 5>/dev/null |
| $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| exec 5>>config.log |
| # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| # would make configure fail if this is the last instruction. |
| $ac_cs_success || { (exit 1); exit 1; } |
| fi |
| |
| |
| echo "creating Modules/Setup" |
| if test ! -f Modules/Setup |
| then |
| cp $srcdir/Modules/Setup.dist Modules/Setup |
| fi |
| |
| echo "creating Modules/Setup.local" |
| if test ! -f Modules/Setup.local |
| then |
| echo "# Edit this file for local setup changes" >Modules/Setup.local |
| fi |
| |
| echo "creating Makefile" |
| $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| -s Modules Modules/Setup.config \ |
| Modules/Setup.local Modules/Setup |
| mv config.c Modules |