Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for pjproject 0.5.10. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 97 | fi |
| 98 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 220 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 223 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 224 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 241 | $as_unset CDPATH |
| 242 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
| 254 | ac_default_prefix=/usr/local |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 255 | ac_config_libobj_dir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 256 | cross_compiling=no |
| 257 | subdirs= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 267 | # Identity of this package. |
| 268 | PACKAGE_NAME='pjproject' |
| 269 | PACKAGE_TARNAME='pjproject' |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 270 | PACKAGE_VERSION='0.5.10' |
| 271 | PACKAGE_STRING='pjproject 0.5.10' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 272 | PACKAGE_BUGREPORT='' |
| 273 | |
| 274 | # Factoring default headers for most tests. |
| 275 | ac_includes_default="\ |
| 276 | #include <stdio.h> |
| 277 | #if HAVE_SYS_TYPES_H |
| 278 | # include <sys/types.h> |
| 279 | #endif |
| 280 | #if HAVE_SYS_STAT_H |
| 281 | # include <sys/stat.h> |
| 282 | #endif |
| 283 | #if STDC_HEADERS |
| 284 | # include <stdlib.h> |
| 285 | # include <stddef.h> |
| 286 | #else |
| 287 | # if HAVE_STDLIB_H |
| 288 | # include <stdlib.h> |
| 289 | # endif |
| 290 | #endif |
| 291 | #if HAVE_STRING_H |
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 293 | # include <memory.h> |
| 294 | # endif |
| 295 | # include <string.h> |
| 296 | #endif |
| 297 | #if HAVE_STRINGS_H |
| 298 | # include <strings.h> |
| 299 | #endif |
| 300 | #if HAVE_INTTYPES_H |
| 301 | # include <inttypes.h> |
| 302 | #else |
| 303 | # if HAVE_STDINT_H |
| 304 | # include <stdint.h> |
| 305 | # endif |
| 306 | #endif |
| 307 | #if HAVE_UNISTD_H |
| 308 | # include <unistd.h> |
| 309 | #endif" |
| 310 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 311 | 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX ac_pjdir CPP EGREP ac_os_objs ac_pjmedia_snd ac_pa_cflags ac_pa_use_alsa ac_no_small_filter ac_no_large_filter ac_no_g711_plc ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_codec ac_no_speex_codec ac_no_ilbc_codec ac_no_ssl openssl_h_present libssl_present libcrypto_present ac_cross_compile ac_linux_poll ac_host ac_main_obj LIBOBJS LTLIBOBJS' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 312 | ac_subst_files='' |
| 313 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 314 | # Initialize some variables set by options. |
| 315 | ac_init_help= |
| 316 | ac_init_version=false |
| 317 | # The variables have the same names as the options, with |
| 318 | # dashes changed to underlines. |
| 319 | cache_file=/dev/null |
| 320 | exec_prefix=NONE |
| 321 | no_create= |
| 322 | no_recursion= |
| 323 | prefix=NONE |
| 324 | program_prefix=NONE |
| 325 | program_suffix=NONE |
| 326 | program_transform_name=s,x,x, |
| 327 | silent= |
| 328 | site= |
| 329 | srcdir= |
| 330 | verbose= |
| 331 | x_includes=NONE |
| 332 | x_libraries=NONE |
| 333 | |
| 334 | # Installation directory options. |
| 335 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 336 | # and all the variables that are supposed to be based on exec_prefix |
| 337 | # by default will actually change. |
| 338 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 339 | bindir='${exec_prefix}/bin' |
| 340 | sbindir='${exec_prefix}/sbin' |
| 341 | libexecdir='${exec_prefix}/libexec' |
| 342 | datadir='${prefix}/share' |
| 343 | sysconfdir='${prefix}/etc' |
| 344 | sharedstatedir='${prefix}/com' |
| 345 | localstatedir='${prefix}/var' |
| 346 | libdir='${exec_prefix}/lib' |
| 347 | includedir='${prefix}/include' |
| 348 | oldincludedir='/usr/include' |
| 349 | infodir='${prefix}/info' |
| 350 | mandir='${prefix}/man' |
| 351 | |
| 352 | ac_prev= |
| 353 | for ac_option |
| 354 | do |
| 355 | # If the previous option needs an argument, assign it. |
| 356 | if test -n "$ac_prev"; then |
| 357 | eval "$ac_prev=\$ac_option" |
| 358 | ac_prev= |
| 359 | continue |
| 360 | fi |
| 361 | |
| 362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 363 | |
| 364 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 365 | |
| 366 | case $ac_option in |
| 367 | |
| 368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 369 | ac_prev=bindir ;; |
| 370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 371 | bindir=$ac_optarg ;; |
| 372 | |
| 373 | -build | --build | --buil | --bui | --bu) |
| 374 | ac_prev=build_alias ;; |
| 375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 376 | build_alias=$ac_optarg ;; |
| 377 | |
| 378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 380 | ac_prev=cache_file ;; |
| 381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 383 | cache_file=$ac_optarg ;; |
| 384 | |
| 385 | --config-cache | -C) |
| 386 | cache_file=config.cache ;; |
| 387 | |
| 388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 389 | ac_prev=datadir ;; |
| 390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 391 | | --da=*) |
| 392 | datadir=$ac_optarg ;; |
| 393 | |
| 394 | -disable-* | --disable-*) |
| 395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 396 | # Reject names that are not valid shell variable names. |
| 397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 399 | { (exit 1); exit 1; }; } |
| 400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 401 | eval "enable_$ac_feature=no" ;; |
| 402 | |
| 403 | -enable-* | --enable-*) |
| 404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 405 | # Reject names that are not valid shell variable names. |
| 406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 408 | { (exit 1); exit 1; }; } |
| 409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 410 | case $ac_option in |
| 411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 412 | *) ac_optarg=yes ;; |
| 413 | esac |
| 414 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 415 | |
| 416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 418 | | --exec | --exe | --ex) |
| 419 | ac_prev=exec_prefix ;; |
| 420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 422 | | --exec=* | --exe=* | --ex=*) |
| 423 | exec_prefix=$ac_optarg ;; |
| 424 | |
| 425 | -gas | --gas | --ga | --g) |
| 426 | # Obsolete; use --with-gas. |
| 427 | with_gas=yes ;; |
| 428 | |
| 429 | -help | --help | --hel | --he | -h) |
| 430 | ac_init_help=long ;; |
| 431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 432 | ac_init_help=recursive ;; |
| 433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 434 | ac_init_help=short ;; |
| 435 | |
| 436 | -host | --host | --hos | --ho) |
| 437 | ac_prev=host_alias ;; |
| 438 | -host=* | --host=* | --hos=* | --ho=*) |
| 439 | host_alias=$ac_optarg ;; |
| 440 | |
| 441 | -includedir | --includedir | --includedi | --included | --include \ |
| 442 | | --includ | --inclu | --incl | --inc) |
| 443 | ac_prev=includedir ;; |
| 444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 445 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 446 | includedir=$ac_optarg ;; |
| 447 | |
| 448 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 449 | ac_prev=infodir ;; |
| 450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 451 | infodir=$ac_optarg ;; |
| 452 | |
| 453 | -libdir | --libdir | --libdi | --libd) |
| 454 | ac_prev=libdir ;; |
| 455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 456 | libdir=$ac_optarg ;; |
| 457 | |
| 458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 459 | | --libexe | --libex | --libe) |
| 460 | ac_prev=libexecdir ;; |
| 461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 462 | | --libexe=* | --libex=* | --libe=*) |
| 463 | libexecdir=$ac_optarg ;; |
| 464 | |
| 465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 466 | | --localstate | --localstat | --localsta | --localst \ |
| 467 | | --locals | --local | --loca | --loc | --lo) |
| 468 | ac_prev=localstatedir ;; |
| 469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 472 | localstatedir=$ac_optarg ;; |
| 473 | |
| 474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 475 | ac_prev=mandir ;; |
| 476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 477 | mandir=$ac_optarg ;; |
| 478 | |
| 479 | -nfp | --nfp | --nf) |
| 480 | # Obsolete; use --without-fp. |
| 481 | with_fp=no ;; |
| 482 | |
| 483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 484 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 485 | no_create=yes ;; |
| 486 | |
| 487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 489 | no_recursion=yes ;; |
| 490 | |
| 491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 493 | | --oldin | --oldi | --old | --ol | --o) |
| 494 | ac_prev=oldincludedir ;; |
| 495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 498 | oldincludedir=$ac_optarg ;; |
| 499 | |
| 500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 501 | ac_prev=prefix ;; |
| 502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 503 | prefix=$ac_optarg ;; |
| 504 | |
| 505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 506 | | --program-pre | --program-pr | --program-p) |
| 507 | ac_prev=program_prefix ;; |
| 508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 510 | program_prefix=$ac_optarg ;; |
| 511 | |
| 512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 513 | | --program-suf | --program-su | --program-s) |
| 514 | ac_prev=program_suffix ;; |
| 515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 517 | program_suffix=$ac_optarg ;; |
| 518 | |
| 519 | -program-transform-name | --program-transform-name \ |
| 520 | | --program-transform-nam | --program-transform-na \ |
| 521 | | --program-transform-n | --program-transform- \ |
| 522 | | --program-transform | --program-transfor \ |
| 523 | | --program-transfo | --program-transf \ |
| 524 | | --program-trans | --program-tran \ |
| 525 | | --progr-tra | --program-tr | --program-t) |
| 526 | ac_prev=program_transform_name ;; |
| 527 | -program-transform-name=* | --program-transform-name=* \ |
| 528 | | --program-transform-nam=* | --program-transform-na=* \ |
| 529 | | --program-transform-n=* | --program-transform-=* \ |
| 530 | | --program-transform=* | --program-transfor=* \ |
| 531 | | --program-transfo=* | --program-transf=* \ |
| 532 | | --program-trans=* | --program-tran=* \ |
| 533 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 534 | program_transform_name=$ac_optarg ;; |
| 535 | |
| 536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 537 | | -silent | --silent | --silen | --sile | --sil) |
| 538 | silent=yes ;; |
| 539 | |
| 540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 541 | ac_prev=sbindir ;; |
| 542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 543 | | --sbi=* | --sb=*) |
| 544 | sbindir=$ac_optarg ;; |
| 545 | |
| 546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 548 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 549 | | --sha | --sh) |
| 550 | ac_prev=sharedstatedir ;; |
| 551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 554 | | --sha=* | --sh=*) |
| 555 | sharedstatedir=$ac_optarg ;; |
| 556 | |
| 557 | -site | --site | --sit) |
| 558 | ac_prev=site ;; |
| 559 | -site=* | --site=* | --sit=*) |
| 560 | site=$ac_optarg ;; |
| 561 | |
| 562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 563 | ac_prev=srcdir ;; |
| 564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 565 | srcdir=$ac_optarg ;; |
| 566 | |
| 567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 568 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 569 | ac_prev=sysconfdir ;; |
| 570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 572 | sysconfdir=$ac_optarg ;; |
| 573 | |
| 574 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 575 | ac_prev=target_alias ;; |
| 576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 577 | target_alias=$ac_optarg ;; |
| 578 | |
| 579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 580 | verbose=yes ;; |
| 581 | |
| 582 | -version | --version | --versio | --versi | --vers | -V) |
| 583 | ac_init_version=: ;; |
| 584 | |
| 585 | -with-* | --with-*) |
| 586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 587 | # Reject names that are not valid shell variable names. |
| 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 590 | { (exit 1); exit 1; }; } |
| 591 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 592 | case $ac_option in |
| 593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 594 | *) ac_optarg=yes ;; |
| 595 | esac |
| 596 | eval "with_$ac_package='$ac_optarg'" ;; |
| 597 | |
| 598 | -without-* | --without-*) |
| 599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 600 | # Reject names that are not valid shell variable names. |
| 601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 603 | { (exit 1); exit 1; }; } |
| 604 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 605 | eval "with_$ac_package=no" ;; |
| 606 | |
| 607 | --x) |
| 608 | # Obsolete; use --with-x. |
| 609 | with_x=yes ;; |
| 610 | |
| 611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 612 | | --x-incl | --x-inc | --x-in | --x-i) |
| 613 | ac_prev=x_includes ;; |
| 614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 616 | x_includes=$ac_optarg ;; |
| 617 | |
| 618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 620 | ac_prev=x_libraries ;; |
| 621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 623 | x_libraries=$ac_optarg ;; |
| 624 | |
| 625 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 626 | Try \`$0 --help' for more information." >&2 |
| 627 | { (exit 1); exit 1; }; } |
| 628 | ;; |
| 629 | |
| 630 | *=*) |
| 631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 632 | # Reject names that are not valid shell variable names. |
| 633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 635 | { (exit 1); exit 1; }; } |
| 636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 637 | eval "$ac_envvar='$ac_optarg'" |
| 638 | export $ac_envvar ;; |
| 639 | |
| 640 | *) |
| 641 | # FIXME: should be removed in autoconf 3.0. |
| 642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 646 | ;; |
| 647 | |
| 648 | esac |
| 649 | done |
| 650 | |
| 651 | if test -n "$ac_prev"; then |
| 652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 653 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 654 | { (exit 1); exit 1; }; } |
| 655 | fi |
| 656 | |
| 657 | # Be sure to have absolute paths. |
| 658 | for ac_var in exec_prefix prefix |
| 659 | do |
| 660 | eval ac_val=$`echo $ac_var` |
| 661 | case $ac_val in |
| 662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 664 | { (exit 1); exit 1; }; };; |
| 665 | esac |
| 666 | done |
| 667 | |
| 668 | # Be sure to have absolute paths. |
| 669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 670 | localstatedir libdir includedir oldincludedir infodir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 671 | do |
| 672 | eval ac_val=$`echo $ac_var` |
| 673 | case $ac_val in |
| 674 | [\\/$]* | ?:[\\/]* ) ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 676 | { (exit 1); exit 1; }; };; |
| 677 | esac |
| 678 | done |
| 679 | |
| 680 | # There might be people who depend on the old broken behavior: `$host' |
| 681 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 682 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 683 | build=$build_alias |
| 684 | host=$host_alias |
| 685 | target=$target_alias |
| 686 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 687 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 688 | if test "x$host_alias" != x; then |
| 689 | if test "x$build_alias" = x; then |
| 690 | cross_compiling=maybe |
| 691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 692 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 693 | elif test "x$build_alias" != "x$host_alias"; then |
| 694 | cross_compiling=yes |
| 695 | fi |
| 696 | fi |
| 697 | |
| 698 | ac_tool_prefix= |
| 699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 700 | |
| 701 | test "$silent" = yes && exec 6>/dev/null |
| 702 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 703 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 704 | # Find the source files, if location was not specified. |
| 705 | if test -z "$srcdir"; then |
| 706 | ac_srcdir_defaulted=yes |
| 707 | # Try the directory containing this script, then its parent. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 708 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 710 | X"$0" : 'X\(//\)[^/]' \| \ |
| 711 | X"$0" : 'X\(//\)$' \| \ |
| 712 | X"$0" : 'X\(/\)' \| \ |
| 713 | . : '\(.\)' 2>/dev/null || |
| 714 | echo X"$0" | |
| 715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 718 | /^X\(\/\).*/{ s//\1/; q; } |
| 719 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 720 | srcdir=$ac_confdir |
| 721 | if test ! -r $srcdir/$ac_unique_file; then |
| 722 | srcdir=.. |
| 723 | fi |
| 724 | else |
| 725 | ac_srcdir_defaulted=no |
| 726 | fi |
| 727 | if test ! -r $srcdir/$ac_unique_file; then |
| 728 | if test "$ac_srcdir_defaulted" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 730 | { (exit 1); exit 1; }; } |
| 731 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 733 | { (exit 1); exit 1; }; } |
| 734 | fi |
| 735 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 736 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 738 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 740 | ac_env_build_alias_set=${build_alias+set} |
| 741 | ac_env_build_alias_value=$build_alias |
| 742 | ac_cv_env_build_alias_set=${build_alias+set} |
| 743 | ac_cv_env_build_alias_value=$build_alias |
| 744 | ac_env_host_alias_set=${host_alias+set} |
| 745 | ac_env_host_alias_value=$host_alias |
| 746 | ac_cv_env_host_alias_set=${host_alias+set} |
| 747 | ac_cv_env_host_alias_value=$host_alias |
| 748 | ac_env_target_alias_set=${target_alias+set} |
| 749 | ac_env_target_alias_value=$target_alias |
| 750 | ac_cv_env_target_alias_set=${target_alias+set} |
| 751 | ac_cv_env_target_alias_value=$target_alias |
| 752 | ac_env_CC_set=${CC+set} |
| 753 | ac_env_CC_value=$CC |
| 754 | ac_cv_env_CC_set=${CC+set} |
| 755 | ac_cv_env_CC_value=$CC |
| 756 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 757 | ac_env_CFLAGS_value=$CFLAGS |
| 758 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 759 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 760 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 761 | ac_env_LDFLAGS_value=$LDFLAGS |
| 762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 763 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 764 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 765 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 766 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 767 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 768 | ac_env_CXX_set=${CXX+set} |
| 769 | ac_env_CXX_value=$CXX |
| 770 | ac_cv_env_CXX_set=${CXX+set} |
| 771 | ac_cv_env_CXX_value=$CXX |
| 772 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 773 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 774 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 775 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 776 | ac_env_CPP_set=${CPP+set} |
| 777 | ac_env_CPP_value=$CPP |
| 778 | ac_cv_env_CPP_set=${CPP+set} |
| 779 | ac_cv_env_CPP_value=$CPP |
| 780 | |
| 781 | # |
| 782 | # Report the --help message. |
| 783 | # |
| 784 | if test "$ac_init_help" = "long"; then |
| 785 | # Omit some internal or obsolete options to make the list less imposing. |
| 786 | # This message is too long to be a string in the A/UX 3.1 sh. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 787 | cat <<_ACEOF |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 788 | \`configure' configures pjproject 0.5.10 to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 789 | |
| 790 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 791 | |
| 792 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 793 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 794 | |
| 795 | Defaults for the options are specified in brackets. |
| 796 | |
| 797 | Configuration: |
| 798 | -h, --help display this help and exit |
| 799 | --help=short display options specific to this package |
| 800 | --help=recursive display the short help of all the included packages |
| 801 | -V, --version display version information and exit |
| 802 | -q, --quiet, --silent do not print \`checking...' messages |
| 803 | --cache-file=FILE cache test results in FILE [disabled] |
| 804 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 805 | -n, --no-create do not create output files |
| 806 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 807 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 808 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 809 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 810 | cat <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 811 | Installation directories: |
| 812 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 813 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 814 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 815 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 816 | |
| 817 | By default, \`make install' will install all the files in |
| 818 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 819 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 820 | for instance \`--prefix=\$HOME'. |
| 821 | |
| 822 | For better control, use the options below. |
| 823 | |
| 824 | Fine tuning of the installation directories: |
| 825 | --bindir=DIR user executables [EPREFIX/bin] |
| 826 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 827 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 828 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 829 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 830 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 831 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 832 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 833 | --includedir=DIR C header files [PREFIX/include] |
| 834 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 835 | --infodir=DIR info documentation [PREFIX/info] |
| 836 | --mandir=DIR man documentation [PREFIX/man] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 837 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 838 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 839 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 840 | |
| 841 | System types: |
| 842 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 843 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 844 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 845 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 846 | fi |
| 847 | |
| 848 | if test -n "$ac_init_help"; then |
| 849 | case $ac_init_help in |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 850 | short | recursive ) echo "Configuration of pjproject 0.5.10:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 851 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 852 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 853 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 854 | Optional Features: |
| 855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 857 | --disable-floating-point |
| 858 | Disable floating point where possible |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 859 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 860 | --disable-small-filter Exclude small filter in resampling |
| 861 | --disable-large-filter Exclude large filter in resampling |
| 862 | --disable-g711-plc Exclude G.711 Annex A PLC |
| 863 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 864 | --disable-g711-codec Exclude G.711 codecs from the build |
| 865 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 866 | --disable-gsm-codec Exclude GSM codec in the build |
| 867 | --disable-speex-codec Exclude Speex codecs in the build |
| 868 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 869 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 870 | |
| 871 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 872 | Some influential environment variables: |
| 873 | CC C compiler command |
| 874 | CFLAGS C compiler flags |
| 875 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 876 | nonstandard directory <lib dir> |
| 877 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 878 | headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 879 | CXX C++ compiler command |
| 880 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 881 | CPP C preprocessor |
| 882 | |
| 883 | Use these variables to override the choices made by `configure' or to help |
| 884 | it to find libraries and programs with nonstandard names/locations. |
| 885 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 886 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 887 | fi |
| 888 | |
| 889 | if test "$ac_init_help" = "recursive"; then |
| 890 | # If there are subdirs, report their specific --help. |
| 891 | ac_popdir=`pwd` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 892 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 893 | test -d $ac_dir || continue |
| 894 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 895 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 896 | if test "$ac_dir" != .; then |
| 897 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 898 | # A "../" for each directory in $ac_dir_suffix. |
| 899 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 900 | else |
| 901 | ac_dir_suffix= ac_top_builddir= |
| 902 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 903 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 904 | case $srcdir in |
| 905 | .) # No --srcdir option. We are building in place. |
| 906 | ac_srcdir=. |
| 907 | if test -z "$ac_top_builddir"; then |
| 908 | ac_top_srcdir=. |
| 909 | else |
| 910 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 911 | fi ;; |
| 912 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 913 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 914 | ac_top_srcdir=$srcdir ;; |
| 915 | *) # Relative path. |
| 916 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 917 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 918 | esac |
| 919 | |
| 920 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 921 | # the directories may not exist. |
| 922 | case `pwd` in |
| 923 | .) ac_abs_builddir="$ac_dir";; |
| 924 | *) |
| 925 | case "$ac_dir" in |
| 926 | .) ac_abs_builddir=`pwd`;; |
| 927 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 928 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 929 | esac;; |
| 930 | esac |
| 931 | case $ac_abs_builddir in |
| 932 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 933 | *) |
| 934 | case ${ac_top_builddir}. in |
| 935 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 936 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 937 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 938 | esac;; |
| 939 | esac |
| 940 | case $ac_abs_builddir in |
| 941 | .) ac_abs_srcdir=$ac_srcdir;; |
| 942 | *) |
| 943 | case $ac_srcdir in |
| 944 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 945 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 946 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 947 | esac;; |
| 948 | esac |
| 949 | case $ac_abs_builddir in |
| 950 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 951 | *) |
| 952 | case $ac_top_srcdir in |
| 953 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 954 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 955 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 956 | esac;; |
| 957 | esac |
| 958 | |
| 959 | cd $ac_dir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 960 | # Check for guested configure; otherwise get Cygnus style configure. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 961 | if test -f $ac_srcdir/configure.gnu; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 962 | echo |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 963 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 964 | elif test -f $ac_srcdir/configure; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 965 | echo |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 966 | $SHELL $ac_srcdir/configure --help=recursive |
| 967 | elif test -f $ac_srcdir/configure.ac || |
| 968 | test -f $ac_srcdir/configure.in; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 969 | echo |
| 970 | $ac_configure --help |
| 971 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 972 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 973 | fi |
| 974 | cd $ac_popdir |
| 975 | done |
| 976 | fi |
| 977 | |
| 978 | test -n "$ac_init_help" && exit 0 |
| 979 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 980 | cat <<\_ACEOF |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 981 | pjproject configure 0.5.10 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 982 | generated by GNU Autoconf 2.59 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 983 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 984 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 985 | This configure script is free software; the Free Software Foundation |
| 986 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 987 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 988 | exit 0 |
| 989 | fi |
| 990 | exec 5>config.log |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 991 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 992 | This file contains any messages produced by compilers while |
| 993 | running configure, to aid debugging if configure makes a mistake. |
| 994 | |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 995 | It was created by pjproject $as_me 0.5.10, which was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 996 | generated by GNU Autoconf 2.59. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 997 | |
| 998 | $ $0 $@ |
| 999 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1000 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1001 | { |
| 1002 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1003 | ## --------- ## |
| 1004 | ## Platform. ## |
| 1005 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1006 | |
| 1007 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1008 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1009 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1010 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1011 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1012 | |
| 1013 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1014 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1015 | |
| 1016 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1017 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1018 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1019 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1020 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1021 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1022 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1023 | |
| 1024 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1025 | |
| 1026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1027 | for as_dir in $PATH |
| 1028 | do |
| 1029 | IFS=$as_save_IFS |
| 1030 | test -z "$as_dir" && as_dir=. |
| 1031 | echo "PATH: $as_dir" |
| 1032 | done |
| 1033 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1034 | } >&5 |
| 1035 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1036 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1037 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1038 | |
| 1039 | ## ----------- ## |
| 1040 | ## Core tests. ## |
| 1041 | ## ----------- ## |
| 1042 | |
| 1043 | _ACEOF |
| 1044 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1045 | |
| 1046 | # Keep a trace of the command line. |
| 1047 | # Strip out --no-create and --no-recursion so they do not pile up. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1048 | # Strip out --silent because we don't want to record it for future runs. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1049 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1050 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1051 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1052 | ac_configure_args0= |
| 1053 | ac_configure_args1= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1054 | ac_sep= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1055 | ac_must_keep_next=false |
| 1056 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1057 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1058 | for ac_arg |
| 1059 | do |
| 1060 | case $ac_arg in |
| 1061 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1063 | | -silent | --silent | --silen | --sile | --sil) |
| 1064 | continue ;; |
| 1065 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1066 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1067 | esac |
| 1068 | case $ac_pass in |
| 1069 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1070 | 2) |
| 1071 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1072 | if test $ac_must_keep_next = true; then |
| 1073 | ac_must_keep_next=false # Got value, back to normal. |
| 1074 | else |
| 1075 | case $ac_arg in |
| 1076 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1077 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1078 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1079 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1080 | case "$ac_configure_args0 " in |
| 1081 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1082 | esac |
| 1083 | ;; |
| 1084 | -* ) ac_must_keep_next=true ;; |
| 1085 | esac |
| 1086 | fi |
| 1087 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1088 | # Get rid of the leading space. |
| 1089 | ac_sep=" " |
| 1090 | ;; |
| 1091 | esac |
| 1092 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1093 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1094 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1095 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1096 | |
| 1097 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1098 | # config.log. We remove comments because anyway the quotes in there |
| 1099 | # would cause problems or look ugly. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1100 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1101 | # such as our DU 5.0 friend, will then `close' the trap. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1102 | trap 'exit_status=$? |
| 1103 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1104 | { |
| 1105 | echo |
| 1106 | |
| 1107 | cat <<\_ASBOX |
| 1108 | ## ---------------- ## |
| 1109 | ## Cache variables. ## |
| 1110 | ## ---------------- ## |
| 1111 | _ASBOX |
| 1112 | echo |
| 1113 | # The following way of writing the cache mishandles newlines in values, |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1114 | { |
| 1115 | (set) 2>&1 | |
| 1116 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1117 | *ac_space=\ *) |
| 1118 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1119 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1120 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1121 | ;; |
| 1122 | *) |
| 1123 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1124 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1125 | ;; |
| 1126 | esac; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1127 | } |
| 1128 | echo |
| 1129 | |
| 1130 | cat <<\_ASBOX |
| 1131 | ## ----------------- ## |
| 1132 | ## Output variables. ## |
| 1133 | ## ----------------- ## |
| 1134 | _ASBOX |
| 1135 | echo |
| 1136 | for ac_var in $ac_subst_vars |
| 1137 | do |
| 1138 | eval ac_val=$`echo $ac_var` |
| 1139 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1140 | done | sort |
| 1141 | echo |
| 1142 | |
| 1143 | if test -n "$ac_subst_files"; then |
| 1144 | cat <<\_ASBOX |
| 1145 | ## ------------- ## |
| 1146 | ## Output files. ## |
| 1147 | ## ------------- ## |
| 1148 | _ASBOX |
| 1149 | echo |
| 1150 | for ac_var in $ac_subst_files |
| 1151 | do |
| 1152 | eval ac_val=$`echo $ac_var` |
| 1153 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1154 | done | sort |
| 1155 | echo |
| 1156 | fi |
| 1157 | |
| 1158 | if test -s confdefs.h; then |
| 1159 | cat <<\_ASBOX |
| 1160 | ## ----------- ## |
| 1161 | ## confdefs.h. ## |
| 1162 | ## ----------- ## |
| 1163 | _ASBOX |
| 1164 | echo |
| 1165 | sed "/^$/d" confdefs.h | sort |
| 1166 | echo |
| 1167 | fi |
| 1168 | test "$ac_signal" != 0 && |
| 1169 | echo "$as_me: caught signal $ac_signal" |
| 1170 | echo "$as_me: exit $exit_status" |
| 1171 | } >&5 |
| 1172 | rm -f core *.core && |
| 1173 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1174 | exit $exit_status |
| 1175 | ' 0 |
| 1176 | for ac_signal in 1 2 13 15; do |
| 1177 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1178 | done |
| 1179 | ac_signal=0 |
| 1180 | |
| 1181 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1182 | rm -rf conftest* confdefs.h |
| 1183 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1184 | echo >confdefs.h |
| 1185 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1186 | # Predefined preprocessor variables. |
| 1187 | |
| 1188 | cat >>confdefs.h <<_ACEOF |
| 1189 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1190 | _ACEOF |
| 1191 | |
| 1192 | |
| 1193 | cat >>confdefs.h <<_ACEOF |
| 1194 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1195 | _ACEOF |
| 1196 | |
| 1197 | |
| 1198 | cat >>confdefs.h <<_ACEOF |
| 1199 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1200 | _ACEOF |
| 1201 | |
| 1202 | |
| 1203 | cat >>confdefs.h <<_ACEOF |
| 1204 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1205 | _ACEOF |
| 1206 | |
| 1207 | |
| 1208 | cat >>confdefs.h <<_ACEOF |
| 1209 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1210 | _ACEOF |
| 1211 | |
| 1212 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1213 | # Let the site file select an alternate cache file if it wants to. |
| 1214 | # Prefer explicitly selected file to automatically selected ones. |
| 1215 | if test -z "$CONFIG_SITE"; then |
| 1216 | if test "x$prefix" != xNONE; then |
| 1217 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1218 | else |
| 1219 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1220 | fi |
| 1221 | fi |
| 1222 | for ac_site_file in $CONFIG_SITE; do |
| 1223 | if test -r "$ac_site_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1224 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1225 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1226 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1227 | . "$ac_site_file" |
| 1228 | fi |
| 1229 | done |
| 1230 | |
| 1231 | if test -r "$cache_file"; then |
| 1232 | # Some versions of bash will fail to source /dev/null (special |
| 1233 | # files actually), so we avoid doing that. |
| 1234 | if test -f "$cache_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1235 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1236 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1237 | case $cache_file in |
| 1238 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1239 | *) . ./$cache_file;; |
| 1240 | esac |
| 1241 | fi |
| 1242 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1243 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1244 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1245 | >$cache_file |
| 1246 | fi |
| 1247 | |
| 1248 | # Check that the precious variables saved in the cache have kept the same |
| 1249 | # value. |
| 1250 | ac_cache_corrupted=false |
| 1251 | for ac_var in `(set) 2>&1 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1252 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1253 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1254 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1255 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1256 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1257 | case $ac_old_set,$ac_new_set in |
| 1258 | set,) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1259 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1260 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1261 | ac_cache_corrupted=: ;; |
| 1262 | ,set) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1263 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1264 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1265 | ac_cache_corrupted=: ;; |
| 1266 | ,);; |
| 1267 | *) |
| 1268 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1269 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1270 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1271 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1272 | echo "$as_me: former value: $ac_old_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1273 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1274 | echo "$as_me: current value: $ac_new_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1275 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1276 | fi;; |
| 1277 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1278 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1279 | if test "$ac_new_set" = set; then |
| 1280 | case $ac_new_val in |
| 1281 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1282 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1283 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1284 | esac |
| 1285 | case " $ac_configure_args " in |
| 1286 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1287 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1288 | esac |
| 1289 | fi |
| 1290 | done |
| 1291 | if $ac_cache_corrupted; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1292 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1293 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1294 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1295 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1296 | { (exit 1); exit 1; }; } |
| 1297 | fi |
| 1298 | |
| 1299 | ac_ext=c |
| 1300 | ac_cpp='$CPP $CPPFLAGS' |
| 1301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1304 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1305 | |
| 1306 | |
| 1307 | |
| 1308 | |
| 1309 | |
| 1310 | |
| 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1331 | |
| 1332 | host_orig="$host" |
| 1333 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1334 | ac_aux_dir= |
| 1335 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1336 | if test -f $ac_dir/install-sh; then |
| 1337 | ac_aux_dir=$ac_dir |
| 1338 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1339 | break |
| 1340 | elif test -f $ac_dir/install.sh; then |
| 1341 | ac_aux_dir=$ac_dir |
| 1342 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1343 | break |
| 1344 | elif test -f $ac_dir/shtool; then |
| 1345 | ac_aux_dir=$ac_dir |
| 1346 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1347 | break |
| 1348 | fi |
| 1349 | done |
| 1350 | if test -z "$ac_aux_dir"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1351 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1352 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1353 | { (exit 1); exit 1; }; } |
| 1354 | fi |
| 1355 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1356 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1357 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1358 | |
| 1359 | # Make sure we can run config.sub. |
| 1360 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1361 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1362 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1363 | { (exit 1); exit 1; }; } |
| 1364 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1365 | echo "$as_me:$LINENO: checking build system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1366 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1367 | if test "${ac_cv_build+set}" = set; then |
| 1368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1369 | else |
| 1370 | ac_cv_build_alias=$build_alias |
| 1371 | test -z "$ac_cv_build_alias" && |
| 1372 | ac_cv_build_alias=`$ac_config_guess` |
| 1373 | test -z "$ac_cv_build_alias" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1374 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1375 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1376 | { (exit 1); exit 1; }; } |
| 1377 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1378 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1379 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1380 | { (exit 1); exit 1; }; } |
| 1381 | |
| 1382 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1383 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1384 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1385 | build=$ac_cv_build |
| 1386 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1387 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1388 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1389 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1390 | |
| 1391 | echo "$as_me:$LINENO: checking host system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1392 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1393 | if test "${ac_cv_host+set}" = set; then |
| 1394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1395 | else |
| 1396 | ac_cv_host_alias=$host_alias |
| 1397 | test -z "$ac_cv_host_alias" && |
| 1398 | ac_cv_host_alias=$ac_cv_build_alias |
| 1399 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1400 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1401 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1402 | { (exit 1); exit 1; }; } |
| 1403 | |
| 1404 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1405 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1406 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1407 | host=$ac_cv_host |
| 1408 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1409 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1410 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1411 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1412 | |
| 1413 | echo "$as_me:$LINENO: checking target system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1414 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1415 | if test "${ac_cv_target+set}" = set; then |
| 1416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1417 | else |
| 1418 | ac_cv_target_alias=$target_alias |
| 1419 | test "x$ac_cv_target_alias" = "x" && |
| 1420 | ac_cv_target_alias=$ac_cv_host_alias |
| 1421 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1422 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1423 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1424 | { (exit 1); exit 1; }; } |
| 1425 | |
| 1426 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1427 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1428 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1429 | target=$ac_cv_target |
| 1430 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1431 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1432 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1433 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1434 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1435 | # The aliases save the names the user supplied, while $host etc. |
| 1436 | # will get canonicalized. |
| 1437 | test -n "$target_alias" && |
| 1438 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1439 | NONENONEs,x,x, && |
| 1440 | program_prefix=${target_alias}- |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 1441 | ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1442 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1443 | ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak" |
| 1444 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1445 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 1446 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1447 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1448 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1449 | else |
| 1450 | CFLAGS="$CFLAGS" |
| 1451 | fi |
| 1452 | |
| 1453 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1454 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1455 | ac_ext=c |
| 1456 | ac_cpp='$CPP $CPPFLAGS' |
| 1457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1460 | if test -n "$ac_tool_prefix"; then |
| 1461 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1462 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1465 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1467 | else |
| 1468 | if test -n "$CC"; then |
| 1469 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1470 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1472 | for as_dir in $PATH |
| 1473 | do |
| 1474 | IFS=$as_save_IFS |
| 1475 | test -z "$as_dir" && as_dir=. |
| 1476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1478 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1480 | break 2 |
| 1481 | fi |
| 1482 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1483 | done |
| 1484 | |
| 1485 | fi |
| 1486 | fi |
| 1487 | CC=$ac_cv_prog_CC |
| 1488 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1489 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1490 | echo "${ECHO_T}$CC" >&6 |
| 1491 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1492 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1493 | echo "${ECHO_T}no" >&6 |
| 1494 | fi |
| 1495 | |
| 1496 | fi |
| 1497 | if test -z "$ac_cv_prog_CC"; then |
| 1498 | ac_ct_CC=$CC |
| 1499 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1500 | set dummy gcc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1501 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1503 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1505 | else |
| 1506 | if test -n "$ac_ct_CC"; then |
| 1507 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1508 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1510 | for as_dir in $PATH |
| 1511 | do |
| 1512 | IFS=$as_save_IFS |
| 1513 | test -z "$as_dir" && as_dir=. |
| 1514 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1515 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1516 | ac_cv_prog_ac_ct_CC="gcc" |
| 1517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1518 | break 2 |
| 1519 | fi |
| 1520 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1521 | done |
| 1522 | |
| 1523 | fi |
| 1524 | fi |
| 1525 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1526 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1527 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1528 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1529 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1530 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1531 | echo "${ECHO_T}no" >&6 |
| 1532 | fi |
| 1533 | |
| 1534 | CC=$ac_ct_CC |
| 1535 | else |
| 1536 | CC="$ac_cv_prog_CC" |
| 1537 | fi |
| 1538 | |
| 1539 | if test -z "$CC"; then |
| 1540 | if test -n "$ac_tool_prefix"; then |
| 1541 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1542 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1545 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1547 | else |
| 1548 | if test -n "$CC"; then |
| 1549 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1550 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1552 | for as_dir in $PATH |
| 1553 | do |
| 1554 | IFS=$as_save_IFS |
| 1555 | test -z "$as_dir" && as_dir=. |
| 1556 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1558 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1560 | break 2 |
| 1561 | fi |
| 1562 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1563 | done |
| 1564 | |
| 1565 | fi |
| 1566 | fi |
| 1567 | CC=$ac_cv_prog_CC |
| 1568 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1569 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1570 | echo "${ECHO_T}$CC" >&6 |
| 1571 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1572 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1573 | echo "${ECHO_T}no" >&6 |
| 1574 | fi |
| 1575 | |
| 1576 | fi |
| 1577 | if test -z "$ac_cv_prog_CC"; then |
| 1578 | ac_ct_CC=$CC |
| 1579 | # Extract the first word of "cc", so it can be a program name with args. |
| 1580 | set dummy cc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1581 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1583 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1585 | else |
| 1586 | if test -n "$ac_ct_CC"; then |
| 1587 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1588 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1590 | for as_dir in $PATH |
| 1591 | do |
| 1592 | IFS=$as_save_IFS |
| 1593 | test -z "$as_dir" && as_dir=. |
| 1594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1595 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1596 | ac_cv_prog_ac_ct_CC="cc" |
| 1597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1598 | break 2 |
| 1599 | fi |
| 1600 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1601 | done |
| 1602 | |
| 1603 | fi |
| 1604 | fi |
| 1605 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1606 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1607 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1608 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1609 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1610 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1611 | echo "${ECHO_T}no" >&6 |
| 1612 | fi |
| 1613 | |
| 1614 | CC=$ac_ct_CC |
| 1615 | else |
| 1616 | CC="$ac_cv_prog_CC" |
| 1617 | fi |
| 1618 | |
| 1619 | fi |
| 1620 | if test -z "$CC"; then |
| 1621 | # Extract the first word of "cc", so it can be a program name with args. |
| 1622 | set dummy cc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1623 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1625 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1627 | else |
| 1628 | if test -n "$CC"; then |
| 1629 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1630 | else |
| 1631 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1633 | for as_dir in $PATH |
| 1634 | do |
| 1635 | IFS=$as_save_IFS |
| 1636 | test -z "$as_dir" && as_dir=. |
| 1637 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1638 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1639 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1640 | ac_prog_rejected=yes |
| 1641 | continue |
| 1642 | fi |
| 1643 | ac_cv_prog_CC="cc" |
| 1644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1645 | break 2 |
| 1646 | fi |
| 1647 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1648 | done |
| 1649 | |
| 1650 | if test $ac_prog_rejected = yes; then |
| 1651 | # We found a bogon in the path, so make sure we never use it. |
| 1652 | set dummy $ac_cv_prog_CC |
| 1653 | shift |
| 1654 | if test $# != 0; then |
| 1655 | # We chose a different compiler from the bogus one. |
| 1656 | # However, it has the same basename, so the bogon will be chosen |
| 1657 | # first if we set CC to just the basename; use the full file name. |
| 1658 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1659 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1660 | fi |
| 1661 | fi |
| 1662 | fi |
| 1663 | fi |
| 1664 | CC=$ac_cv_prog_CC |
| 1665 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1666 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1667 | echo "${ECHO_T}$CC" >&6 |
| 1668 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1669 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1670 | echo "${ECHO_T}no" >&6 |
| 1671 | fi |
| 1672 | |
| 1673 | fi |
| 1674 | if test -z "$CC"; then |
| 1675 | if test -n "$ac_tool_prefix"; then |
| 1676 | for ac_prog in cl |
| 1677 | do |
| 1678 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1679 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1680 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1682 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1684 | else |
| 1685 | if test -n "$CC"; then |
| 1686 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1687 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1689 | for as_dir in $PATH |
| 1690 | do |
| 1691 | IFS=$as_save_IFS |
| 1692 | test -z "$as_dir" && as_dir=. |
| 1693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1694 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1695 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1697 | break 2 |
| 1698 | fi |
| 1699 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1700 | done |
| 1701 | |
| 1702 | fi |
| 1703 | fi |
| 1704 | CC=$ac_cv_prog_CC |
| 1705 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1706 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1707 | echo "${ECHO_T}$CC" >&6 |
| 1708 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1709 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1710 | echo "${ECHO_T}no" >&6 |
| 1711 | fi |
| 1712 | |
| 1713 | test -n "$CC" && break |
| 1714 | done |
| 1715 | fi |
| 1716 | if test -z "$CC"; then |
| 1717 | ac_ct_CC=$CC |
| 1718 | for ac_prog in cl |
| 1719 | do |
| 1720 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1721 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1724 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1726 | else |
| 1727 | if test -n "$ac_ct_CC"; then |
| 1728 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1729 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1731 | for as_dir in $PATH |
| 1732 | do |
| 1733 | IFS=$as_save_IFS |
| 1734 | test -z "$as_dir" && as_dir=. |
| 1735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1736 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1737 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1739 | break 2 |
| 1740 | fi |
| 1741 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1742 | done |
| 1743 | |
| 1744 | fi |
| 1745 | fi |
| 1746 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1747 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1748 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1749 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1750 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1751 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1752 | echo "${ECHO_T}no" >&6 |
| 1753 | fi |
| 1754 | |
| 1755 | test -n "$ac_ct_CC" && break |
| 1756 | done |
| 1757 | |
| 1758 | CC=$ac_ct_CC |
| 1759 | fi |
| 1760 | |
| 1761 | fi |
| 1762 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1763 | |
| 1764 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1765 | See \`config.log' for more details." >&5 |
| 1766 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1767 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1768 | { (exit 1); exit 1; }; } |
| 1769 | |
| 1770 | # Provide some information about the compiler. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1771 | echo "$as_me:$LINENO:" \ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1772 | "checking for C compiler version" >&5 |
| 1773 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1774 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1775 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1776 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1778 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1779 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1780 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1781 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1783 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1784 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1785 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1786 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1788 | (exit $ac_status); } |
| 1789 | |
| 1790 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1791 | /* confdefs.h. */ |
| 1792 | _ACEOF |
| 1793 | cat confdefs.h >>conftest.$ac_ext |
| 1794 | cat >>conftest.$ac_ext <<_ACEOF |
| 1795 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1796 | |
| 1797 | int |
| 1798 | main () |
| 1799 | { |
| 1800 | |
| 1801 | ; |
| 1802 | return 0; |
| 1803 | } |
| 1804 | _ACEOF |
| 1805 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1806 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1807 | # Try to create an executable without -o first, disregard a.out. |
| 1808 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1809 | # of exeext. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1810 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1811 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1812 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1813 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1814 | (eval $ac_link_default) 2>&5 |
| 1815 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1817 | (exit $ac_status); }; then |
| 1818 | # Find the output, starting from the most likely. This scheme is |
| 1819 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1820 | # resort. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1821 | |
| 1822 | # Be careful to initialize this variable, since it used to be cached. |
| 1823 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1824 | ac_cv_exeext= |
| 1825 | # b.out is created by i960 compilers. |
| 1826 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1827 | do |
| 1828 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1829 | case $ac_file in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1830 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1831 | ;; |
| 1832 | conftest.$ac_ext ) |
| 1833 | # This is the source file. |
| 1834 | ;; |
| 1835 | [ab].out ) |
| 1836 | # We found the default executable, but exeext='' is most |
| 1837 | # certainly right. |
| 1838 | break;; |
| 1839 | *.* ) |
| 1840 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1841 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1842 | # but it would be cool to find out if it's true. Does anybody |
| 1843 | # maintain Libtool? --akim. |
| 1844 | export ac_cv_exeext |
| 1845 | break;; |
| 1846 | * ) |
| 1847 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1848 | esac |
| 1849 | done |
| 1850 | else |
| 1851 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1853 | |
| 1854 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1855 | See \`config.log' for more details." >&5 |
| 1856 | echo "$as_me: error: C compiler cannot create executables |
| 1857 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1858 | { (exit 77); exit 77; }; } |
| 1859 | fi |
| 1860 | |
| 1861 | ac_exeext=$ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1862 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1863 | echo "${ECHO_T}$ac_file" >&6 |
| 1864 | |
| 1865 | # Check the compiler produces executables we can run. If not, either |
| 1866 | # the compiler is broken, or we cross compile. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1867 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1868 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1869 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1870 | # If not cross compiling, check that we can run a simple program. |
| 1871 | if test "$cross_compiling" != yes; then |
| 1872 | if { ac_try='./$ac_file' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1874 | (eval $ac_try) 2>&5 |
| 1875 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1877 | (exit $ac_status); }; }; then |
| 1878 | cross_compiling=no |
| 1879 | else |
| 1880 | if test "$cross_compiling" = maybe; then |
| 1881 | cross_compiling=yes |
| 1882 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1883 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1884 | If you meant to cross compile, use \`--host'. |
| 1885 | See \`config.log' for more details." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1886 | echo "$as_me: error: cannot run C compiled programs. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1887 | If you meant to cross compile, use \`--host'. |
| 1888 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1889 | { (exit 1); exit 1; }; } |
| 1890 | fi |
| 1891 | fi |
| 1892 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1893 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1894 | echo "${ECHO_T}yes" >&6 |
| 1895 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1896 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1897 | ac_clean_files=$ac_clean_files_save |
| 1898 | # Check the compiler produces executables we can run. If not, either |
| 1899 | # the compiler is broken, or we cross compile. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1900 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1901 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1902 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1903 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1904 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1905 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1906 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1908 | (eval $ac_link) 2>&5 |
| 1909 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1911 | (exit $ac_status); }; then |
| 1912 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1913 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1914 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1915 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1916 | for ac_file in conftest.exe conftest conftest.*; do |
| 1917 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1918 | case $ac_file in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1919 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1920 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1921 | export ac_cv_exeext |
| 1922 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1923 | * ) break;; |
| 1924 | esac |
| 1925 | done |
| 1926 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1927 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1928 | See \`config.log' for more details." >&5 |
| 1929 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1930 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1931 | { (exit 1); exit 1; }; } |
| 1932 | fi |
| 1933 | |
| 1934 | rm -f conftest$ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1935 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1936 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1937 | |
| 1938 | rm -f conftest.$ac_ext |
| 1939 | EXEEXT=$ac_cv_exeext |
| 1940 | ac_exeext=$EXEEXT |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1941 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1942 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1943 | if test "${ac_cv_objext+set}" = set; then |
| 1944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1945 | else |
| 1946 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1947 | /* confdefs.h. */ |
| 1948 | _ACEOF |
| 1949 | cat confdefs.h >>conftest.$ac_ext |
| 1950 | cat >>conftest.$ac_ext <<_ACEOF |
| 1951 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1952 | |
| 1953 | int |
| 1954 | main () |
| 1955 | { |
| 1956 | |
| 1957 | ; |
| 1958 | return 0; |
| 1959 | } |
| 1960 | _ACEOF |
| 1961 | rm -f conftest.o conftest.obj |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1963 | (eval $ac_compile) 2>&5 |
| 1964 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1966 | (exit $ac_status); }; then |
| 1967 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1968 | case $ac_file in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1969 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1970 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1971 | break;; |
| 1972 | esac |
| 1973 | done |
| 1974 | else |
| 1975 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1977 | |
| 1978 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1979 | See \`config.log' for more details." >&5 |
| 1980 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1981 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1982 | { (exit 1); exit 1; }; } |
| 1983 | fi |
| 1984 | |
| 1985 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1986 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1987 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1988 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1989 | OBJEXT=$ac_cv_objext |
| 1990 | ac_objext=$OBJEXT |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1991 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1992 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1993 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1995 | else |
| 1996 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1997 | /* confdefs.h. */ |
| 1998 | _ACEOF |
| 1999 | cat confdefs.h >>conftest.$ac_ext |
| 2000 | cat >>conftest.$ac_ext <<_ACEOF |
| 2001 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2002 | |
| 2003 | int |
| 2004 | main () |
| 2005 | { |
| 2006 | #ifndef __GNUC__ |
| 2007 | choke me |
| 2008 | #endif |
| 2009 | |
| 2010 | ; |
| 2011 | return 0; |
| 2012 | } |
| 2013 | _ACEOF |
| 2014 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2016 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2017 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2019 | rm -f conftest.er1 |
| 2020 | cat conftest.err >&5 |
| 2021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2022 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2023 | { ac_try='test -z "$ac_c_werror_flag" |
| 2024 | || test ! -s conftest.err' |
| 2025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2026 | (eval $ac_try) 2>&5 |
| 2027 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2029 | (exit $ac_status); }; } && |
| 2030 | { ac_try='test -s conftest.$ac_objext' |
| 2031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2032 | (eval $ac_try) 2>&5 |
| 2033 | ac_status=$? |
| 2034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2035 | (exit $ac_status); }; }; then |
| 2036 | ac_compiler_gnu=yes |
| 2037 | else |
| 2038 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2040 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2041 | ac_compiler_gnu=no |
| 2042 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2044 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2045 | |
| 2046 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2047 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2048 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2049 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2050 | ac_test_CFLAGS=${CFLAGS+set} |
| 2051 | ac_save_CFLAGS=$CFLAGS |
| 2052 | CFLAGS="-g" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2053 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2054 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2055 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2057 | else |
| 2058 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2059 | /* confdefs.h. */ |
| 2060 | _ACEOF |
| 2061 | cat confdefs.h >>conftest.$ac_ext |
| 2062 | cat >>conftest.$ac_ext <<_ACEOF |
| 2063 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2064 | |
| 2065 | int |
| 2066 | main () |
| 2067 | { |
| 2068 | |
| 2069 | ; |
| 2070 | return 0; |
| 2071 | } |
| 2072 | _ACEOF |
| 2073 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2075 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2076 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2078 | rm -f conftest.er1 |
| 2079 | cat conftest.err >&5 |
| 2080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2081 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2082 | { ac_try='test -z "$ac_c_werror_flag" |
| 2083 | || test ! -s conftest.err' |
| 2084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2085 | (eval $ac_try) 2>&5 |
| 2086 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2088 | (exit $ac_status); }; } && |
| 2089 | { ac_try='test -s conftest.$ac_objext' |
| 2090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2091 | (eval $ac_try) 2>&5 |
| 2092 | ac_status=$? |
| 2093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2094 | (exit $ac_status); }; }; then |
| 2095 | ac_cv_prog_cc_g=yes |
| 2096 | else |
| 2097 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2099 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2100 | ac_cv_prog_cc_g=no |
| 2101 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2103 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2104 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2105 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2106 | if test "$ac_test_CFLAGS" = set; then |
| 2107 | CFLAGS=$ac_save_CFLAGS |
| 2108 | elif test $ac_cv_prog_cc_g = yes; then |
| 2109 | if test "$GCC" = yes; then |
| 2110 | CFLAGS="-g -O2" |
| 2111 | else |
| 2112 | CFLAGS="-g" |
| 2113 | fi |
| 2114 | else |
| 2115 | if test "$GCC" = yes; then |
| 2116 | CFLAGS="-O2" |
| 2117 | else |
| 2118 | CFLAGS= |
| 2119 | fi |
| 2120 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2121 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2122 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2123 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2125 | else |
| 2126 | ac_cv_prog_cc_stdc=no |
| 2127 | ac_save_CC=$CC |
| 2128 | cat >conftest.$ac_ext <<_ACEOF |
| 2129 | /* confdefs.h. */ |
| 2130 | _ACEOF |
| 2131 | cat confdefs.h >>conftest.$ac_ext |
| 2132 | cat >>conftest.$ac_ext <<_ACEOF |
| 2133 | /* end confdefs.h. */ |
| 2134 | #include <stdarg.h> |
| 2135 | #include <stdio.h> |
| 2136 | #include <sys/types.h> |
| 2137 | #include <sys/stat.h> |
| 2138 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2139 | struct buf { int x; }; |
| 2140 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2141 | static char *e (p, i) |
| 2142 | char **p; |
| 2143 | int i; |
| 2144 | { |
| 2145 | return p[i]; |
| 2146 | } |
| 2147 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2148 | { |
| 2149 | char *s; |
| 2150 | va_list v; |
| 2151 | va_start (v,p); |
| 2152 | s = g (p, va_arg (v,int)); |
| 2153 | va_end (v); |
| 2154 | return s; |
| 2155 | } |
| 2156 | |
| 2157 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2158 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2159 | These don't provoke an error unfortunately, instead are silently treated |
| 2160 | as 'x'. The following induces an error, until -std1 is added to get |
| 2161 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2162 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2163 | that's true only with -std1. */ |
| 2164 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2165 | |
| 2166 | int test (int i, double x); |
| 2167 | struct s1 {int (*f) (int a);}; |
| 2168 | struct s2 {int (*f) (double a);}; |
| 2169 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2170 | int argc; |
| 2171 | char **argv; |
| 2172 | int |
| 2173 | main () |
| 2174 | { |
| 2175 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2176 | ; |
| 2177 | return 0; |
| 2178 | } |
| 2179 | _ACEOF |
| 2180 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2181 | # breaks some systems' header files. |
| 2182 | # AIX -qlanglvl=ansi |
| 2183 | # Ultrix and OSF/1 -std1 |
| 2184 | # HP-UX 10.20 and later -Ae |
| 2185 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2186 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2187 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2188 | do |
| 2189 | CC="$ac_save_CC $ac_arg" |
| 2190 | rm -f conftest.$ac_objext |
| 2191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2192 | (eval $ac_compile) 2>conftest.er1 |
| 2193 | ac_status=$? |
| 2194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2195 | rm -f conftest.er1 |
| 2196 | cat conftest.err >&5 |
| 2197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2198 | (exit $ac_status); } && |
| 2199 | { ac_try='test -z "$ac_c_werror_flag" |
| 2200 | || test ! -s conftest.err' |
| 2201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2202 | (eval $ac_try) 2>&5 |
| 2203 | ac_status=$? |
| 2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2205 | (exit $ac_status); }; } && |
| 2206 | { ac_try='test -s conftest.$ac_objext' |
| 2207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2208 | (eval $ac_try) 2>&5 |
| 2209 | ac_status=$? |
| 2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2211 | (exit $ac_status); }; }; then |
| 2212 | ac_cv_prog_cc_stdc=$ac_arg |
| 2213 | break |
| 2214 | else |
| 2215 | echo "$as_me: failed program was:" >&5 |
| 2216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2217 | |
| 2218 | fi |
| 2219 | rm -f conftest.err conftest.$ac_objext |
| 2220 | done |
| 2221 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2222 | CC=$ac_save_CC |
| 2223 | |
| 2224 | fi |
| 2225 | |
| 2226 | case "x$ac_cv_prog_cc_stdc" in |
| 2227 | x|xno) |
| 2228 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2229 | echo "${ECHO_T}none needed" >&6 ;; |
| 2230 | *) |
| 2231 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2232 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2233 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2234 | esac |
| 2235 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2236 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2237 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2238 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2239 | # the declaration of exit, since it's the most demanding environment. |
| 2240 | cat >conftest.$ac_ext <<_ACEOF |
| 2241 | #ifndef __cplusplus |
| 2242 | choke me |
| 2243 | #endif |
| 2244 | _ACEOF |
| 2245 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2247 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2248 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2250 | rm -f conftest.er1 |
| 2251 | cat conftest.err >&5 |
| 2252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2253 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2254 | { ac_try='test -z "$ac_c_werror_flag" |
| 2255 | || test ! -s conftest.err' |
| 2256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2257 | (eval $ac_try) 2>&5 |
| 2258 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2260 | (exit $ac_status); }; } && |
| 2261 | { ac_try='test -s conftest.$ac_objext' |
| 2262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2263 | (eval $ac_try) 2>&5 |
| 2264 | ac_status=$? |
| 2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2266 | (exit $ac_status); }; }; then |
| 2267 | for ac_declaration in \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2268 | '' \ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2269 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2270 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2271 | 'extern "C" void exit (int) throw ();' \ |
| 2272 | 'extern "C" void exit (int);' \ |
| 2273 | 'void exit (int);' |
| 2274 | do |
| 2275 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2276 | /* confdefs.h. */ |
| 2277 | _ACEOF |
| 2278 | cat confdefs.h >>conftest.$ac_ext |
| 2279 | cat >>conftest.$ac_ext <<_ACEOF |
| 2280 | /* end confdefs.h. */ |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 2281 | $ac_declaration |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2282 | #include <stdlib.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2283 | int |
| 2284 | main () |
| 2285 | { |
| 2286 | exit (42); |
| 2287 | ; |
| 2288 | return 0; |
| 2289 | } |
| 2290 | _ACEOF |
| 2291 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2293 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2294 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2296 | rm -f conftest.er1 |
| 2297 | cat conftest.err >&5 |
| 2298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2299 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2300 | { ac_try='test -z "$ac_c_werror_flag" |
| 2301 | || test ! -s conftest.err' |
| 2302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2303 | (eval $ac_try) 2>&5 |
| 2304 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2306 | (exit $ac_status); }; } && |
| 2307 | { ac_try='test -s conftest.$ac_objext' |
| 2308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2309 | (eval $ac_try) 2>&5 |
| 2310 | ac_status=$? |
| 2311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2312 | (exit $ac_status); }; }; then |
| 2313 | : |
| 2314 | else |
| 2315 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2317 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2318 | continue |
| 2319 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2321 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2322 | /* confdefs.h. */ |
| 2323 | _ACEOF |
| 2324 | cat confdefs.h >>conftest.$ac_ext |
| 2325 | cat >>conftest.$ac_ext <<_ACEOF |
| 2326 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2327 | $ac_declaration |
| 2328 | int |
| 2329 | main () |
| 2330 | { |
| 2331 | exit (42); |
| 2332 | ; |
| 2333 | return 0; |
| 2334 | } |
| 2335 | _ACEOF |
| 2336 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2338 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2339 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2341 | rm -f conftest.er1 |
| 2342 | cat conftest.err >&5 |
| 2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2344 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2345 | { ac_try='test -z "$ac_c_werror_flag" |
| 2346 | || test ! -s conftest.err' |
| 2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2348 | (eval $ac_try) 2>&5 |
| 2349 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2351 | (exit $ac_status); }; } && |
| 2352 | { ac_try='test -s conftest.$ac_objext' |
| 2353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2354 | (eval $ac_try) 2>&5 |
| 2355 | ac_status=$? |
| 2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2357 | (exit $ac_status); }; }; then |
| 2358 | break |
| 2359 | else |
| 2360 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2362 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2363 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2365 | done |
| 2366 | rm -f conftest* |
| 2367 | if test -n "$ac_declaration"; then |
| 2368 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2369 | echo $ac_declaration >>confdefs.h |
| 2370 | echo '#endif' >>confdefs.h |
| 2371 | fi |
| 2372 | |
| 2373 | else |
| 2374 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2376 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2377 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2379 | ac_ext=c |
| 2380 | ac_cpp='$CPP $CPPFLAGS' |
| 2381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2384 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2385 | ac_ext=cc |
| 2386 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2387 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2388 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2389 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2390 | if test -n "$ac_tool_prefix"; then |
| 2391 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2392 | do |
| 2393 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2394 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2397 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2399 | else |
| 2400 | if test -n "$CXX"; then |
| 2401 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2402 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2404 | for as_dir in $PATH |
| 2405 | do |
| 2406 | IFS=$as_save_IFS |
| 2407 | test -z "$as_dir" && as_dir=. |
| 2408 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2410 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2412 | break 2 |
| 2413 | fi |
| 2414 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2415 | done |
| 2416 | |
| 2417 | fi |
| 2418 | fi |
| 2419 | CXX=$ac_cv_prog_CXX |
| 2420 | if test -n "$CXX"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2421 | echo "$as_me:$LINENO: result: $CXX" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2422 | echo "${ECHO_T}$CXX" >&6 |
| 2423 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2424 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2425 | echo "${ECHO_T}no" >&6 |
| 2426 | fi |
| 2427 | |
| 2428 | test -n "$CXX" && break |
| 2429 | done |
| 2430 | fi |
| 2431 | if test -z "$CXX"; then |
| 2432 | ac_ct_CXX=$CXX |
| 2433 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2434 | do |
| 2435 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2436 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2439 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2441 | else |
| 2442 | if test -n "$ac_ct_CXX"; then |
| 2443 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2444 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2446 | for as_dir in $PATH |
| 2447 | do |
| 2448 | IFS=$as_save_IFS |
| 2449 | test -z "$as_dir" && as_dir=. |
| 2450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2452 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2454 | break 2 |
| 2455 | fi |
| 2456 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2457 | done |
| 2458 | |
| 2459 | fi |
| 2460 | fi |
| 2461 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2462 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2463 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2464 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2465 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2466 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2467 | echo "${ECHO_T}no" >&6 |
| 2468 | fi |
| 2469 | |
| 2470 | test -n "$ac_ct_CXX" && break |
| 2471 | done |
| 2472 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2473 | |
| 2474 | CXX=$ac_ct_CXX |
| 2475 | fi |
| 2476 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2477 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2478 | # Provide some information about the compiler. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2479 | echo "$as_me:$LINENO:" \ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2480 | "checking for C++ compiler version" >&5 |
| 2481 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2482 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2483 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2484 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2486 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2487 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2488 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2489 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2491 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2492 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2493 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2494 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2496 | (exit $ac_status); } |
| 2497 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2498 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2499 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2500 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2502 | else |
| 2503 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2504 | /* confdefs.h. */ |
| 2505 | _ACEOF |
| 2506 | cat confdefs.h >>conftest.$ac_ext |
| 2507 | cat >>conftest.$ac_ext <<_ACEOF |
| 2508 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2509 | |
| 2510 | int |
| 2511 | main () |
| 2512 | { |
| 2513 | #ifndef __GNUC__ |
| 2514 | choke me |
| 2515 | #endif |
| 2516 | |
| 2517 | ; |
| 2518 | return 0; |
| 2519 | } |
| 2520 | _ACEOF |
| 2521 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2523 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2524 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2526 | rm -f conftest.er1 |
| 2527 | cat conftest.err >&5 |
| 2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2529 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2530 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2531 | || test ! -s conftest.err' |
| 2532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2533 | (eval $ac_try) 2>&5 |
| 2534 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2536 | (exit $ac_status); }; } && |
| 2537 | { ac_try='test -s conftest.$ac_objext' |
| 2538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2539 | (eval $ac_try) 2>&5 |
| 2540 | ac_status=$? |
| 2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2542 | (exit $ac_status); }; }; then |
| 2543 | ac_compiler_gnu=yes |
| 2544 | else |
| 2545 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2547 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2548 | ac_compiler_gnu=no |
| 2549 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2551 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2552 | |
| 2553 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2554 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2555 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2556 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2557 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2558 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2559 | CXXFLAGS="-g" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2560 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2561 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2562 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2564 | else |
| 2565 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2566 | /* confdefs.h. */ |
| 2567 | _ACEOF |
| 2568 | cat confdefs.h >>conftest.$ac_ext |
| 2569 | cat >>conftest.$ac_ext <<_ACEOF |
| 2570 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2571 | |
| 2572 | int |
| 2573 | main () |
| 2574 | { |
| 2575 | |
| 2576 | ; |
| 2577 | return 0; |
| 2578 | } |
| 2579 | _ACEOF |
| 2580 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2582 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2583 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2585 | rm -f conftest.er1 |
| 2586 | cat conftest.err >&5 |
| 2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2588 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2589 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2590 | || test ! -s conftest.err' |
| 2591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2592 | (eval $ac_try) 2>&5 |
| 2593 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2595 | (exit $ac_status); }; } && |
| 2596 | { ac_try='test -s conftest.$ac_objext' |
| 2597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2598 | (eval $ac_try) 2>&5 |
| 2599 | ac_status=$? |
| 2600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2601 | (exit $ac_status); }; }; then |
| 2602 | ac_cv_prog_cxx_g=yes |
| 2603 | else |
| 2604 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2606 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2607 | ac_cv_prog_cxx_g=no |
| 2608 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2610 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2611 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2612 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2613 | if test "$ac_test_CXXFLAGS" = set; then |
| 2614 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2615 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2616 | if test "$GXX" = yes; then |
| 2617 | CXXFLAGS="-g -O2" |
| 2618 | else |
| 2619 | CXXFLAGS="-g" |
| 2620 | fi |
| 2621 | else |
| 2622 | if test "$GXX" = yes; then |
| 2623 | CXXFLAGS="-O2" |
| 2624 | else |
| 2625 | CXXFLAGS= |
| 2626 | fi |
| 2627 | fi |
| 2628 | for ac_declaration in \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2629 | '' \ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2630 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2631 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2632 | 'extern "C" void exit (int) throw ();' \ |
| 2633 | 'extern "C" void exit (int);' \ |
| 2634 | 'void exit (int);' |
| 2635 | do |
| 2636 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2637 | /* confdefs.h. */ |
| 2638 | _ACEOF |
| 2639 | cat confdefs.h >>conftest.$ac_ext |
| 2640 | cat >>conftest.$ac_ext <<_ACEOF |
| 2641 | /* end confdefs.h. */ |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 2642 | $ac_declaration |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2643 | #include <stdlib.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2644 | int |
| 2645 | main () |
| 2646 | { |
| 2647 | exit (42); |
| 2648 | ; |
| 2649 | return 0; |
| 2650 | } |
| 2651 | _ACEOF |
| 2652 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2654 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2655 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2657 | rm -f conftest.er1 |
| 2658 | cat conftest.err >&5 |
| 2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2660 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2661 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2662 | || test ! -s conftest.err' |
| 2663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2664 | (eval $ac_try) 2>&5 |
| 2665 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2667 | (exit $ac_status); }; } && |
| 2668 | { ac_try='test -s conftest.$ac_objext' |
| 2669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2670 | (eval $ac_try) 2>&5 |
| 2671 | ac_status=$? |
| 2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2673 | (exit $ac_status); }; }; then |
| 2674 | : |
| 2675 | else |
| 2676 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2678 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2679 | continue |
| 2680 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2682 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2683 | /* confdefs.h. */ |
| 2684 | _ACEOF |
| 2685 | cat confdefs.h >>conftest.$ac_ext |
| 2686 | cat >>conftest.$ac_ext <<_ACEOF |
| 2687 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2688 | $ac_declaration |
| 2689 | int |
| 2690 | main () |
| 2691 | { |
| 2692 | exit (42); |
| 2693 | ; |
| 2694 | return 0; |
| 2695 | } |
| 2696 | _ACEOF |
| 2697 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2699 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2700 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2702 | rm -f conftest.er1 |
| 2703 | cat conftest.err >&5 |
| 2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2705 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2706 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2707 | || test ! -s conftest.err' |
| 2708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2709 | (eval $ac_try) 2>&5 |
| 2710 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2712 | (exit $ac_status); }; } && |
| 2713 | { ac_try='test -s conftest.$ac_objext' |
| 2714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2715 | (eval $ac_try) 2>&5 |
| 2716 | ac_status=$? |
| 2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2718 | (exit $ac_status); }; }; then |
| 2719 | break |
| 2720 | else |
| 2721 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2723 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2724 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2726 | done |
| 2727 | rm -f conftest* |
| 2728 | if test -n "$ac_declaration"; then |
| 2729 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2730 | echo $ac_declaration >>confdefs.h |
| 2731 | echo '#endif' >>confdefs.h |
| 2732 | fi |
| 2733 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2734 | ac_ext=c |
| 2735 | ac_cpp='$CPP $CPPFLAGS' |
| 2736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2739 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2740 | ac_ext=c |
| 2741 | ac_cpp='$CPP $CPPFLAGS' |
| 2742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2745 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2746 | |
| 2747 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2748 | ac_pjdir=`pwd` |
| 2749 | |
| 2750 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2751 | |
| 2752 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2753 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 2754 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 2755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2756 | else |
| 2757 | ac_check_lib_save_LIBS=$LIBS |
| 2758 | LIBS="-lpthread $LIBS" |
| 2759 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2760 | /* confdefs.h. */ |
| 2761 | _ACEOF |
| 2762 | cat confdefs.h >>conftest.$ac_ext |
| 2763 | cat >>conftest.$ac_ext <<_ACEOF |
| 2764 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2765 | |
| 2766 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2767 | #ifdef __cplusplus |
| 2768 | extern "C" |
| 2769 | #endif |
| 2770 | /* We use char because int might match the return type of a gcc2 |
| 2771 | builtin and then its argument prototype would still apply. */ |
| 2772 | char pthread_create (); |
| 2773 | int |
| 2774 | main () |
| 2775 | { |
| 2776 | pthread_create (); |
| 2777 | ; |
| 2778 | return 0; |
| 2779 | } |
| 2780 | _ACEOF |
| 2781 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2783 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2784 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2786 | rm -f conftest.er1 |
| 2787 | cat conftest.err >&5 |
| 2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2789 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2790 | { ac_try='test -z "$ac_c_werror_flag" |
| 2791 | || test ! -s conftest.err' |
| 2792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2793 | (eval $ac_try) 2>&5 |
| 2794 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2796 | (exit $ac_status); }; } && |
| 2797 | { ac_try='test -s conftest$ac_exeext' |
| 2798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2799 | (eval $ac_try) 2>&5 |
| 2800 | ac_status=$? |
| 2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2802 | (exit $ac_status); }; }; then |
| 2803 | ac_cv_lib_pthread_pthread_create=yes |
| 2804 | else |
| 2805 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2807 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2808 | ac_cv_lib_pthread_pthread_create=no |
| 2809 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2810 | rm -f conftest.err conftest.$ac_objext \ |
| 2811 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2812 | LIBS=$ac_check_lib_save_LIBS |
| 2813 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2814 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2815 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
| 2816 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2817 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2818 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2819 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2820 | |
| 2821 | LIBS="-lpthread $LIBS" |
| 2822 | |
| 2823 | fi |
| 2824 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2825 | |
| 2826 | echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2827 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6 |
| 2828 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 2829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2830 | else |
| 2831 | ac_check_lib_save_LIBS=$LIBS |
| 2832 | LIBS="-lwsock32 $LIBS" |
| 2833 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2834 | /* confdefs.h. */ |
| 2835 | _ACEOF |
| 2836 | cat confdefs.h >>conftest.$ac_ext |
| 2837 | cat >>conftest.$ac_ext <<_ACEOF |
| 2838 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2839 | |
| 2840 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2841 | #ifdef __cplusplus |
| 2842 | extern "C" |
| 2843 | #endif |
| 2844 | /* We use char because int might match the return type of a gcc2 |
| 2845 | builtin and then its argument prototype would still apply. */ |
| 2846 | char puts (); |
| 2847 | int |
| 2848 | main () |
| 2849 | { |
| 2850 | puts (); |
| 2851 | ; |
| 2852 | return 0; |
| 2853 | } |
| 2854 | _ACEOF |
| 2855 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2857 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2858 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2860 | rm -f conftest.er1 |
| 2861 | cat conftest.err >&5 |
| 2862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2863 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2864 | { ac_try='test -z "$ac_c_werror_flag" |
| 2865 | || test ! -s conftest.err' |
| 2866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2867 | (eval $ac_try) 2>&5 |
| 2868 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2870 | (exit $ac_status); }; } && |
| 2871 | { ac_try='test -s conftest$ac_exeext' |
| 2872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2873 | (eval $ac_try) 2>&5 |
| 2874 | ac_status=$? |
| 2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2876 | (exit $ac_status); }; }; then |
| 2877 | ac_cv_lib_wsock32_puts=yes |
| 2878 | else |
| 2879 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2881 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2882 | ac_cv_lib_wsock32_puts=no |
| 2883 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2884 | rm -f conftest.err conftest.$ac_objext \ |
| 2885 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2886 | LIBS=$ac_check_lib_save_LIBS |
| 2887 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2888 | echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2889 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6 |
| 2890 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2891 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2892 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2893 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2894 | |
| 2895 | LIBS="-lwsock32 $LIBS" |
| 2896 | |
| 2897 | fi |
| 2898 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2899 | |
| 2900 | echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2901 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6 |
| 2902 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 2903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2904 | else |
| 2905 | ac_check_lib_save_LIBS=$LIBS |
| 2906 | LIBS="-lws2_32 $LIBS" |
| 2907 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2908 | /* confdefs.h. */ |
| 2909 | _ACEOF |
| 2910 | cat confdefs.h >>conftest.$ac_ext |
| 2911 | cat >>conftest.$ac_ext <<_ACEOF |
| 2912 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2913 | |
| 2914 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2915 | #ifdef __cplusplus |
| 2916 | extern "C" |
| 2917 | #endif |
| 2918 | /* We use char because int might match the return type of a gcc2 |
| 2919 | builtin and then its argument prototype would still apply. */ |
| 2920 | char puts (); |
| 2921 | int |
| 2922 | main () |
| 2923 | { |
| 2924 | puts (); |
| 2925 | ; |
| 2926 | return 0; |
| 2927 | } |
| 2928 | _ACEOF |
| 2929 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2931 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2932 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2934 | rm -f conftest.er1 |
| 2935 | cat conftest.err >&5 |
| 2936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2937 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2938 | { ac_try='test -z "$ac_c_werror_flag" |
| 2939 | || test ! -s conftest.err' |
| 2940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2941 | (eval $ac_try) 2>&5 |
| 2942 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2944 | (exit $ac_status); }; } && |
| 2945 | { ac_try='test -s conftest$ac_exeext' |
| 2946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2947 | (eval $ac_try) 2>&5 |
| 2948 | ac_status=$? |
| 2949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2950 | (exit $ac_status); }; }; then |
| 2951 | ac_cv_lib_ws2_32_puts=yes |
| 2952 | else |
| 2953 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2955 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2956 | ac_cv_lib_ws2_32_puts=no |
| 2957 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2958 | rm -f conftest.err conftest.$ac_objext \ |
| 2959 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2960 | LIBS=$ac_check_lib_save_LIBS |
| 2961 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2962 | echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2963 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6 |
| 2964 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2965 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2966 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2967 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2968 | |
| 2969 | LIBS="-lws2_32 $LIBS" |
| 2970 | |
| 2971 | fi |
| 2972 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2973 | |
| 2974 | echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2975 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6 |
| 2976 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 2977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2978 | else |
| 2979 | ac_check_lib_save_LIBS=$LIBS |
| 2980 | LIBS="-lole32 $LIBS" |
| 2981 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2982 | /* confdefs.h. */ |
| 2983 | _ACEOF |
| 2984 | cat confdefs.h >>conftest.$ac_ext |
| 2985 | cat >>conftest.$ac_ext <<_ACEOF |
| 2986 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2987 | |
| 2988 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2989 | #ifdef __cplusplus |
| 2990 | extern "C" |
| 2991 | #endif |
| 2992 | /* We use char because int might match the return type of a gcc2 |
| 2993 | builtin and then its argument prototype would still apply. */ |
| 2994 | char puts (); |
| 2995 | int |
| 2996 | main () |
| 2997 | { |
| 2998 | puts (); |
| 2999 | ; |
| 3000 | return 0; |
| 3001 | } |
| 3002 | _ACEOF |
| 3003 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3005 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3006 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3008 | rm -f conftest.er1 |
| 3009 | cat conftest.err >&5 |
| 3010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3011 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3012 | { ac_try='test -z "$ac_c_werror_flag" |
| 3013 | || test ! -s conftest.err' |
| 3014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3015 | (eval $ac_try) 2>&5 |
| 3016 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3018 | (exit $ac_status); }; } && |
| 3019 | { ac_try='test -s conftest$ac_exeext' |
| 3020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3021 | (eval $ac_try) 2>&5 |
| 3022 | ac_status=$? |
| 3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3024 | (exit $ac_status); }; }; then |
| 3025 | ac_cv_lib_ole32_puts=yes |
| 3026 | else |
| 3027 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3029 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3030 | ac_cv_lib_ole32_puts=no |
| 3031 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3032 | rm -f conftest.err conftest.$ac_objext \ |
| 3033 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3034 | LIBS=$ac_check_lib_save_LIBS |
| 3035 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3036 | echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3037 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6 |
| 3038 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3039 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3040 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3041 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3042 | |
| 3043 | LIBS="-lole32 $LIBS" |
| 3044 | |
| 3045 | fi |
| 3046 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3047 | |
| 3048 | echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3049 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6 |
| 3050 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3052 | else |
| 3053 | ac_check_lib_save_LIBS=$LIBS |
| 3054 | LIBS="-lwinmm $LIBS" |
| 3055 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3056 | /* confdefs.h. */ |
| 3057 | _ACEOF |
| 3058 | cat confdefs.h >>conftest.$ac_ext |
| 3059 | cat >>conftest.$ac_ext <<_ACEOF |
| 3060 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3061 | |
| 3062 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3063 | #ifdef __cplusplus |
| 3064 | extern "C" |
| 3065 | #endif |
| 3066 | /* We use char because int might match the return type of a gcc2 |
| 3067 | builtin and then its argument prototype would still apply. */ |
| 3068 | char puts (); |
| 3069 | int |
| 3070 | main () |
| 3071 | { |
| 3072 | puts (); |
| 3073 | ; |
| 3074 | return 0; |
| 3075 | } |
| 3076 | _ACEOF |
| 3077 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3079 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3080 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3082 | rm -f conftest.er1 |
| 3083 | cat conftest.err >&5 |
| 3084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3085 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3086 | { ac_try='test -z "$ac_c_werror_flag" |
| 3087 | || test ! -s conftest.err' |
| 3088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3089 | (eval $ac_try) 2>&5 |
| 3090 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3092 | (exit $ac_status); }; } && |
| 3093 | { ac_try='test -s conftest$ac_exeext' |
| 3094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3095 | (eval $ac_try) 2>&5 |
| 3096 | ac_status=$? |
| 3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3098 | (exit $ac_status); }; }; then |
| 3099 | ac_cv_lib_winmm_puts=yes |
| 3100 | else |
| 3101 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3103 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3104 | ac_cv_lib_winmm_puts=no |
| 3105 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3106 | rm -f conftest.err conftest.$ac_objext \ |
| 3107 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3108 | LIBS=$ac_check_lib_save_LIBS |
| 3109 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3110 | echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3111 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6 |
| 3112 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3113 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3114 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3115 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3116 | |
| 3117 | LIBS="-lwinmm $LIBS" |
| 3118 | |
| 3119 | fi |
| 3120 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3121 | |
| 3122 | echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3123 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6 |
| 3124 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3126 | else |
| 3127 | ac_check_lib_save_LIBS=$LIBS |
| 3128 | LIBS="-lsocket $LIBS" |
| 3129 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3130 | /* confdefs.h. */ |
| 3131 | _ACEOF |
| 3132 | cat confdefs.h >>conftest.$ac_ext |
| 3133 | cat >>conftest.$ac_ext <<_ACEOF |
| 3134 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3135 | |
| 3136 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3137 | #ifdef __cplusplus |
| 3138 | extern "C" |
| 3139 | #endif |
| 3140 | /* We use char because int might match the return type of a gcc2 |
| 3141 | builtin and then its argument prototype would still apply. */ |
| 3142 | char puts (); |
| 3143 | int |
| 3144 | main () |
| 3145 | { |
| 3146 | puts (); |
| 3147 | ; |
| 3148 | return 0; |
| 3149 | } |
| 3150 | _ACEOF |
| 3151 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3153 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3154 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3156 | rm -f conftest.er1 |
| 3157 | cat conftest.err >&5 |
| 3158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3159 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3160 | { ac_try='test -z "$ac_c_werror_flag" |
| 3161 | || test ! -s conftest.err' |
| 3162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3163 | (eval $ac_try) 2>&5 |
| 3164 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3166 | (exit $ac_status); }; } && |
| 3167 | { ac_try='test -s conftest$ac_exeext' |
| 3168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3169 | (eval $ac_try) 2>&5 |
| 3170 | ac_status=$? |
| 3171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3172 | (exit $ac_status); }; }; then |
| 3173 | ac_cv_lib_socket_puts=yes |
| 3174 | else |
| 3175 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3177 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3178 | ac_cv_lib_socket_puts=no |
| 3179 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3180 | rm -f conftest.err conftest.$ac_objext \ |
| 3181 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3182 | LIBS=$ac_check_lib_save_LIBS |
| 3183 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3184 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3185 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6 |
| 3186 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3187 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3188 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3189 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3190 | |
| 3191 | LIBS="-lsocket $LIBS" |
| 3192 | |
| 3193 | fi |
| 3194 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3195 | |
| 3196 | echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3197 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6 |
| 3198 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3200 | else |
| 3201 | ac_check_lib_save_LIBS=$LIBS |
| 3202 | LIBS="-lrt $LIBS" |
| 3203 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3204 | /* confdefs.h. */ |
| 3205 | _ACEOF |
| 3206 | cat confdefs.h >>conftest.$ac_ext |
| 3207 | cat >>conftest.$ac_ext <<_ACEOF |
| 3208 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3209 | |
| 3210 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3211 | #ifdef __cplusplus |
| 3212 | extern "C" |
| 3213 | #endif |
| 3214 | /* We use char because int might match the return type of a gcc2 |
| 3215 | builtin and then its argument prototype would still apply. */ |
| 3216 | char puts (); |
| 3217 | int |
| 3218 | main () |
| 3219 | { |
| 3220 | puts (); |
| 3221 | ; |
| 3222 | return 0; |
| 3223 | } |
| 3224 | _ACEOF |
| 3225 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3227 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3228 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3230 | rm -f conftest.er1 |
| 3231 | cat conftest.err >&5 |
| 3232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3233 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3234 | { ac_try='test -z "$ac_c_werror_flag" |
| 3235 | || test ! -s conftest.err' |
| 3236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3237 | (eval $ac_try) 2>&5 |
| 3238 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3240 | (exit $ac_status); }; } && |
| 3241 | { ac_try='test -s conftest$ac_exeext' |
| 3242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3243 | (eval $ac_try) 2>&5 |
| 3244 | ac_status=$? |
| 3245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3246 | (exit $ac_status); }; }; then |
| 3247 | ac_cv_lib_rt_puts=yes |
| 3248 | else |
| 3249 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3251 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3252 | ac_cv_lib_rt_puts=no |
| 3253 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3254 | rm -f conftest.err conftest.$ac_objext \ |
| 3255 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3256 | LIBS=$ac_check_lib_save_LIBS |
| 3257 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3258 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3259 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6 |
| 3260 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3261 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3262 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3263 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3264 | |
| 3265 | LIBS="-lrt $LIBS" |
| 3266 | |
| 3267 | fi |
| 3268 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3269 | |
| 3270 | echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3271 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6 |
| 3272 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3274 | else |
| 3275 | ac_check_lib_save_LIBS=$LIBS |
| 3276 | LIBS="-lnsl $LIBS" |
| 3277 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3278 | /* confdefs.h. */ |
| 3279 | _ACEOF |
| 3280 | cat confdefs.h >>conftest.$ac_ext |
| 3281 | cat >>conftest.$ac_ext <<_ACEOF |
| 3282 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3283 | |
| 3284 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3285 | #ifdef __cplusplus |
| 3286 | extern "C" |
| 3287 | #endif |
| 3288 | /* We use char because int might match the return type of a gcc2 |
| 3289 | builtin and then its argument prototype would still apply. */ |
| 3290 | char puts (); |
| 3291 | int |
| 3292 | main () |
| 3293 | { |
| 3294 | puts (); |
| 3295 | ; |
| 3296 | return 0; |
| 3297 | } |
| 3298 | _ACEOF |
| 3299 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3301 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3302 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3304 | rm -f conftest.er1 |
| 3305 | cat conftest.err >&5 |
| 3306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3307 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3308 | { ac_try='test -z "$ac_c_werror_flag" |
| 3309 | || test ! -s conftest.err' |
| 3310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3311 | (eval $ac_try) 2>&5 |
| 3312 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3314 | (exit $ac_status); }; } && |
| 3315 | { ac_try='test -s conftest$ac_exeext' |
| 3316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3317 | (eval $ac_try) 2>&5 |
| 3318 | ac_status=$? |
| 3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3320 | (exit $ac_status); }; }; then |
| 3321 | ac_cv_lib_nsl_puts=yes |
| 3322 | else |
| 3323 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3325 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3326 | ac_cv_lib_nsl_puts=no |
| 3327 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3328 | rm -f conftest.err conftest.$ac_objext \ |
| 3329 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3330 | LIBS=$ac_check_lib_save_LIBS |
| 3331 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3332 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3333 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6 |
| 3334 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3335 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3336 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3337 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3338 | |
| 3339 | LIBS="-lnsl $LIBS" |
| 3340 | |
| 3341 | fi |
| 3342 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3343 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3344 | echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3345 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6 |
| 3346 | cat >>confdefs.h <<_ACEOF |
| 3347 | #define PJ_M_NAME "$target_cpu" |
| 3348 | _ACEOF |
| 3349 | |
| 3350 | |
| 3351 | echo "$as_me:$LINENO: checking memory alignment" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3352 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6 |
| 3353 | case $target in |
| 3354 | ia64-* | x86_64-* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3355 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3356 | #define PJ_POOL_ALIGNMENT 8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3357 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3358 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3359 | echo "$as_me:$LINENO: result: 8 bytes" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3360 | echo "${ECHO_T}8 bytes" >&6 |
| 3361 | ;; |
| 3362 | * ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3363 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3364 | #define PJ_POOL_ALIGNMENT 4 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3365 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3366 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3367 | echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3368 | echo "${ECHO_T}4 bytes (default)" >&6 |
| 3369 | ;; |
| 3370 | esac |
| 3371 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3372 | |
| 3373 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3374 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 3375 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 3376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3377 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3378 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3379 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3380 | /* confdefs.h. */ |
| 3381 | _ACEOF |
| 3382 | cat confdefs.h >>conftest.$ac_ext |
| 3383 | cat >>conftest.$ac_ext <<_ACEOF |
| 3384 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3385 | #include <sys/types.h> |
| 3386 | #include <sys/param.h> |
| 3387 | |
| 3388 | int |
| 3389 | main () |
| 3390 | { |
| 3391 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 3392 | bogus endian macros |
| 3393 | #endif |
| 3394 | |
| 3395 | ; |
| 3396 | return 0; |
| 3397 | } |
| 3398 | _ACEOF |
| 3399 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3401 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3402 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3404 | rm -f conftest.er1 |
| 3405 | cat conftest.err >&5 |
| 3406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3407 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3408 | { ac_try='test -z "$ac_c_werror_flag" |
| 3409 | || test ! -s conftest.err' |
| 3410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3411 | (eval $ac_try) 2>&5 |
| 3412 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3414 | (exit $ac_status); }; } && |
| 3415 | { ac_try='test -s conftest.$ac_objext' |
| 3416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3417 | (eval $ac_try) 2>&5 |
| 3418 | ac_status=$? |
| 3419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3420 | (exit $ac_status); }; }; then |
| 3421 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 3422 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3423 | /* confdefs.h. */ |
| 3424 | _ACEOF |
| 3425 | cat confdefs.h >>conftest.$ac_ext |
| 3426 | cat >>conftest.$ac_ext <<_ACEOF |
| 3427 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3428 | #include <sys/types.h> |
| 3429 | #include <sys/param.h> |
| 3430 | |
| 3431 | int |
| 3432 | main () |
| 3433 | { |
| 3434 | #if BYTE_ORDER != BIG_ENDIAN |
| 3435 | not big endian |
| 3436 | #endif |
| 3437 | |
| 3438 | ; |
| 3439 | return 0; |
| 3440 | } |
| 3441 | _ACEOF |
| 3442 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3444 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3445 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3447 | rm -f conftest.er1 |
| 3448 | cat conftest.err >&5 |
| 3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3450 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3451 | { ac_try='test -z "$ac_c_werror_flag" |
| 3452 | || test ! -s conftest.err' |
| 3453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3454 | (eval $ac_try) 2>&5 |
| 3455 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3457 | (exit $ac_status); }; } && |
| 3458 | { ac_try='test -s conftest.$ac_objext' |
| 3459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3460 | (eval $ac_try) 2>&5 |
| 3461 | ac_status=$? |
| 3462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3463 | (exit $ac_status); }; }; then |
| 3464 | ac_cv_c_bigendian=yes |
| 3465 | else |
| 3466 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3468 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3469 | ac_cv_c_bigendian=no |
| 3470 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3472 | else |
| 3473 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3475 | |
| 3476 | # It does not; compile a test program. |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3477 | if test "$cross_compiling" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3478 | # try to guess the endianness by grepping values into an object file |
| 3479 | ac_cv_c_bigendian=unknown |
| 3480 | cat >conftest.$ac_ext <<_ACEOF |
| 3481 | /* confdefs.h. */ |
| 3482 | _ACEOF |
| 3483 | cat confdefs.h >>conftest.$ac_ext |
| 3484 | cat >>conftest.$ac_ext <<_ACEOF |
| 3485 | /* end confdefs.h. */ |
| 3486 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 3487 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 3488 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 3489 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 3490 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 3491 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 3492 | int |
| 3493 | main () |
| 3494 | { |
| 3495 | _ascii (); _ebcdic (); |
| 3496 | ; |
| 3497 | return 0; |
| 3498 | } |
| 3499 | _ACEOF |
| 3500 | rm -f conftest.$ac_objext |
| 3501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3502 | (eval $ac_compile) 2>conftest.er1 |
| 3503 | ac_status=$? |
| 3504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3505 | rm -f conftest.er1 |
| 3506 | cat conftest.err >&5 |
| 3507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3508 | (exit $ac_status); } && |
| 3509 | { ac_try='test -z "$ac_c_werror_flag" |
| 3510 | || test ! -s conftest.err' |
| 3511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3512 | (eval $ac_try) 2>&5 |
| 3513 | ac_status=$? |
| 3514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3515 | (exit $ac_status); }; } && |
| 3516 | { ac_try='test -s conftest.$ac_objext' |
| 3517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3518 | (eval $ac_try) 2>&5 |
| 3519 | ac_status=$? |
| 3520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3521 | (exit $ac_status); }; }; then |
| 3522 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 3523 | ac_cv_c_bigendian=yes |
| 3524 | fi |
| 3525 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 3526 | if test "$ac_cv_c_bigendian" = unknown; then |
| 3527 | ac_cv_c_bigendian=no |
| 3528 | else |
| 3529 | # finding both strings is unlikely to happen, but who knows? |
| 3530 | ac_cv_c_bigendian=unknown |
| 3531 | fi |
| 3532 | fi |
| 3533 | else |
| 3534 | echo "$as_me: failed program was:" >&5 |
| 3535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3536 | |
| 3537 | fi |
| 3538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3539 | else |
| 3540 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3541 | /* confdefs.h. */ |
| 3542 | _ACEOF |
| 3543 | cat confdefs.h >>conftest.$ac_ext |
| 3544 | cat >>conftest.$ac_ext <<_ACEOF |
| 3545 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3546 | int |
| 3547 | main () |
| 3548 | { |
| 3549 | /* Are we little or big endian? From Harbison&Steele. */ |
| 3550 | union |
| 3551 | { |
| 3552 | long l; |
| 3553 | char c[sizeof (long)]; |
| 3554 | } u; |
| 3555 | u.l = 1; |
| 3556 | exit (u.c[sizeof (long) - 1] == 1); |
| 3557 | } |
| 3558 | _ACEOF |
| 3559 | rm -f conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3561 | (eval $ac_link) 2>&5 |
| 3562 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3564 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3566 | (eval $ac_try) 2>&5 |
| 3567 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3569 | (exit $ac_status); }; }; then |
| 3570 | ac_cv_c_bigendian=no |
| 3571 | else |
| 3572 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3573 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3575 | |
| 3576 | ( exit $ac_status ) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3577 | ac_cv_c_bigendian=yes |
| 3578 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3579 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3580 | fi |
| 3581 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3583 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3584 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3585 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3586 | case $ac_cv_c_bigendian in |
| 3587 | yes) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3588 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3589 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 3590 | #define WORDS_BIGENDIAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3591 | _ACEOF |
| 3592 | ;; |
| 3593 | no) |
| 3594 | ;; |
| 3595 | *) |
| 3596 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 3597 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 3598 | echo "$as_me: error: unknown endianness |
| 3599 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 3600 | { (exit 1); exit 1; }; } ;; |
| 3601 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3602 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3603 | |
| 3604 | case $target in |
| 3605 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3606 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3607 | #define PJ_WIN32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3608 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3609 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3610 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3611 | #define PJ_WIN32_WINNT 0x0400 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3612 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3613 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3614 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3615 | #define WIN32_LEAN_AND_MEAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3616 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3617 | |
| 3618 | ;; |
| 3619 | *darwin*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3620 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3621 | #define PJ_DARWINOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3622 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3623 | |
| 3624 | ;; |
| 3625 | *linux*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3626 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3627 | #define PJ_LINUX 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3628 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3629 | |
| 3630 | ;; |
| 3631 | *rtems*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3632 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3633 | #define PJ_RTEMS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3634 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3635 | |
| 3636 | ;; |
| 3637 | *sunos* | *solaris* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3638 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3639 | #define PJ_SUNOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3640 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3641 | |
| 3642 | ;; |
| 3643 | *) |
| 3644 | ;; |
| 3645 | esac |
| 3646 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3647 | |
| 3648 | |
| 3649 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3650 | # Check whether --enable-floating-point or --disable-floating-point was given. |
| 3651 | if test "${enable_floating_point+set}" = set; then |
| 3652 | enableval="$enable_floating_point" |
| 3653 | if test "$enable_floating_point" = "no"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3654 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3655 | #define PJ_HAS_FLOATING_POINT 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3656 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3657 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3658 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3659 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6 |
| 3660 | fi |
| 3661 | else |
| 3662 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3663 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3664 | #define PJ_HAS_FLOATING_POINT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3665 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3666 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3667 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3668 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6 |
| 3669 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3670 | echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3671 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 |
| 3672 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 3673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3674 | else |
| 3675 | ac_check_lib_save_LIBS=$LIBS |
| 3676 | LIBS="-lm $LIBS" |
| 3677 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3678 | /* confdefs.h. */ |
| 3679 | _ACEOF |
| 3680 | cat confdefs.h >>conftest.$ac_ext |
| 3681 | cat >>conftest.$ac_ext <<_ACEOF |
| 3682 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3683 | |
| 3684 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3685 | #ifdef __cplusplus |
| 3686 | extern "C" |
| 3687 | #endif |
| 3688 | /* We use char because int might match the return type of a gcc2 |
| 3689 | builtin and then its argument prototype would still apply. */ |
| 3690 | char fmod (); |
| 3691 | int |
| 3692 | main () |
| 3693 | { |
| 3694 | fmod (); |
| 3695 | ; |
| 3696 | return 0; |
| 3697 | } |
| 3698 | _ACEOF |
| 3699 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3701 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3702 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3704 | rm -f conftest.er1 |
| 3705 | cat conftest.err >&5 |
| 3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3707 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3708 | { ac_try='test -z "$ac_c_werror_flag" |
| 3709 | || test ! -s conftest.err' |
| 3710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3711 | (eval $ac_try) 2>&5 |
| 3712 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3714 | (exit $ac_status); }; } && |
| 3715 | { ac_try='test -s conftest$ac_exeext' |
| 3716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3717 | (eval $ac_try) 2>&5 |
| 3718 | ac_status=$? |
| 3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3720 | (exit $ac_status); }; }; then |
| 3721 | ac_cv_lib_m_fmod=yes |
| 3722 | else |
| 3723 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3725 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3726 | ac_cv_lib_m_fmod=no |
| 3727 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3728 | rm -f conftest.err conftest.$ac_objext \ |
| 3729 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3730 | LIBS=$ac_check_lib_save_LIBS |
| 3731 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3732 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3733 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 |
| 3734 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3735 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3736 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3737 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3738 | |
| 3739 | LIBS="-lm $LIBS" |
| 3740 | |
| 3741 | fi |
| 3742 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3743 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3744 | fi; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3745 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3746 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3747 | ac_ext=c |
| 3748 | ac_cpp='$CPP $CPPFLAGS' |
| 3749 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3750 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3751 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3752 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3753 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3754 | # On Suns, sometimes $CPP names a directory. |
| 3755 | if test -n "$CPP" && test -d "$CPP"; then |
| 3756 | CPP= |
| 3757 | fi |
| 3758 | if test -z "$CPP"; then |
| 3759 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3761 | else |
| 3762 | # Double quotes because CPP needs to be expanded |
| 3763 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3764 | do |
| 3765 | ac_preproc_ok=false |
| 3766 | for ac_c_preproc_warn_flag in '' yes |
| 3767 | do |
| 3768 | # Use a header file that comes with gcc, so configuring glibc |
| 3769 | # with a fresh cross-compiler works. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3770 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3771 | # <limits.h> exists even on freestanding compilers. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3772 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3773 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3774 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3775 | /* confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3776 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3777 | cat confdefs.h >>conftest.$ac_ext |
| 3778 | cat >>conftest.$ac_ext <<_ACEOF |
| 3779 | /* end confdefs.h. */ |
| 3780 | #ifdef __STDC__ |
| 3781 | # include <limits.h> |
| 3782 | #else |
| 3783 | # include <assert.h> |
| 3784 | #endif |
| 3785 | Syntax error |
| 3786 | _ACEOF |
| 3787 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3788 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3789 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3790 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3791 | rm -f conftest.er1 |
| 3792 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3794 | (exit $ac_status); } >/dev/null; then |
| 3795 | if test -s conftest.err; then |
| 3796 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3797 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3798 | else |
| 3799 | ac_cpp_err= |
| 3800 | fi |
| 3801 | else |
| 3802 | ac_cpp_err=yes |
| 3803 | fi |
| 3804 | if test -z "$ac_cpp_err"; then |
| 3805 | : |
| 3806 | else |
| 3807 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3809 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3810 | # Broken: fails on valid input. |
| 3811 | continue |
| 3812 | fi |
| 3813 | rm -f conftest.err conftest.$ac_ext |
| 3814 | |
| 3815 | # OK, works on sane cases. Now check whether non-existent headers |
| 3816 | # can be detected and how. |
| 3817 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3818 | /* confdefs.h. */ |
| 3819 | _ACEOF |
| 3820 | cat confdefs.h >>conftest.$ac_ext |
| 3821 | cat >>conftest.$ac_ext <<_ACEOF |
| 3822 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3823 | #include <ac_nonexistent.h> |
| 3824 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3825 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3826 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3827 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3828 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3829 | rm -f conftest.er1 |
| 3830 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3832 | (exit $ac_status); } >/dev/null; then |
| 3833 | if test -s conftest.err; then |
| 3834 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3835 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3836 | else |
| 3837 | ac_cpp_err= |
| 3838 | fi |
| 3839 | else |
| 3840 | ac_cpp_err=yes |
| 3841 | fi |
| 3842 | if test -z "$ac_cpp_err"; then |
| 3843 | # Broken: success on invalid input. |
| 3844 | continue |
| 3845 | else |
| 3846 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3848 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3849 | # Passes both tests. |
| 3850 | ac_preproc_ok=: |
| 3851 | break |
| 3852 | fi |
| 3853 | rm -f conftest.err conftest.$ac_ext |
| 3854 | |
| 3855 | done |
| 3856 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3857 | rm -f conftest.err conftest.$ac_ext |
| 3858 | if $ac_preproc_ok; then |
| 3859 | break |
| 3860 | fi |
| 3861 | |
| 3862 | done |
| 3863 | ac_cv_prog_CPP=$CPP |
| 3864 | |
| 3865 | fi |
| 3866 | CPP=$ac_cv_prog_CPP |
| 3867 | else |
| 3868 | ac_cv_prog_CPP=$CPP |
| 3869 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3870 | echo "$as_me:$LINENO: result: $CPP" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3871 | echo "${ECHO_T}$CPP" >&6 |
| 3872 | ac_preproc_ok=false |
| 3873 | for ac_c_preproc_warn_flag in '' yes |
| 3874 | do |
| 3875 | # Use a header file that comes with gcc, so configuring glibc |
| 3876 | # with a fresh cross-compiler works. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3877 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3878 | # <limits.h> exists even on freestanding compilers. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3879 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3880 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3881 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3882 | /* confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3883 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3884 | cat confdefs.h >>conftest.$ac_ext |
| 3885 | cat >>conftest.$ac_ext <<_ACEOF |
| 3886 | /* end confdefs.h. */ |
| 3887 | #ifdef __STDC__ |
| 3888 | # include <limits.h> |
| 3889 | #else |
| 3890 | # include <assert.h> |
| 3891 | #endif |
| 3892 | Syntax error |
| 3893 | _ACEOF |
| 3894 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3895 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3896 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3897 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3898 | rm -f conftest.er1 |
| 3899 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3901 | (exit $ac_status); } >/dev/null; then |
| 3902 | if test -s conftest.err; then |
| 3903 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3904 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3905 | else |
| 3906 | ac_cpp_err= |
| 3907 | fi |
| 3908 | else |
| 3909 | ac_cpp_err=yes |
| 3910 | fi |
| 3911 | if test -z "$ac_cpp_err"; then |
| 3912 | : |
| 3913 | else |
| 3914 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3916 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3917 | # Broken: fails on valid input. |
| 3918 | continue |
| 3919 | fi |
| 3920 | rm -f conftest.err conftest.$ac_ext |
| 3921 | |
| 3922 | # OK, works on sane cases. Now check whether non-existent headers |
| 3923 | # can be detected and how. |
| 3924 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3925 | /* confdefs.h. */ |
| 3926 | _ACEOF |
| 3927 | cat confdefs.h >>conftest.$ac_ext |
| 3928 | cat >>conftest.$ac_ext <<_ACEOF |
| 3929 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3930 | #include <ac_nonexistent.h> |
| 3931 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3932 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3933 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3934 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3935 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3936 | rm -f conftest.er1 |
| 3937 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3939 | (exit $ac_status); } >/dev/null; then |
| 3940 | if test -s conftest.err; then |
| 3941 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3942 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3943 | else |
| 3944 | ac_cpp_err= |
| 3945 | fi |
| 3946 | else |
| 3947 | ac_cpp_err=yes |
| 3948 | fi |
| 3949 | if test -z "$ac_cpp_err"; then |
| 3950 | # Broken: success on invalid input. |
| 3951 | continue |
| 3952 | else |
| 3953 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3955 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3956 | # Passes both tests. |
| 3957 | ac_preproc_ok=: |
| 3958 | break |
| 3959 | fi |
| 3960 | rm -f conftest.err conftest.$ac_ext |
| 3961 | |
| 3962 | done |
| 3963 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3964 | rm -f conftest.err conftest.$ac_ext |
| 3965 | if $ac_preproc_ok; then |
| 3966 | : |
| 3967 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3968 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3969 | See \`config.log' for more details." >&5 |
| 3970 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3971 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3972 | { (exit 1); exit 1; }; } |
| 3973 | fi |
| 3974 | |
| 3975 | ac_ext=c |
| 3976 | ac_cpp='$CPP $CPPFLAGS' |
| 3977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3980 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3981 | |
| 3982 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3983 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3984 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3986 | else |
| 3987 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3988 | then ac_cv_prog_egrep='grep -E' |
| 3989 | else ac_cv_prog_egrep='egrep' |
| 3990 | fi |
| 3991 | fi |
| 3992 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3993 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3994 | EGREP=$ac_cv_prog_egrep |
| 3995 | |
| 3996 | |
| 3997 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3998 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3999 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4001 | else |
| 4002 | cat >conftest.$ac_ext <<_ACEOF |
| 4003 | /* confdefs.h. */ |
| 4004 | _ACEOF |
| 4005 | cat confdefs.h >>conftest.$ac_ext |
| 4006 | cat >>conftest.$ac_ext <<_ACEOF |
| 4007 | /* end confdefs.h. */ |
| 4008 | #include <stdlib.h> |
| 4009 | #include <stdarg.h> |
| 4010 | #include <string.h> |
| 4011 | #include <float.h> |
| 4012 | |
| 4013 | int |
| 4014 | main () |
| 4015 | { |
| 4016 | |
| 4017 | ; |
| 4018 | return 0; |
| 4019 | } |
| 4020 | _ACEOF |
| 4021 | rm -f conftest.$ac_objext |
| 4022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4023 | (eval $ac_compile) 2>conftest.er1 |
| 4024 | ac_status=$? |
| 4025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4026 | rm -f conftest.er1 |
| 4027 | cat conftest.err >&5 |
| 4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4029 | (exit $ac_status); } && |
| 4030 | { ac_try='test -z "$ac_c_werror_flag" |
| 4031 | || test ! -s conftest.err' |
| 4032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4033 | (eval $ac_try) 2>&5 |
| 4034 | ac_status=$? |
| 4035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4036 | (exit $ac_status); }; } && |
| 4037 | { ac_try='test -s conftest.$ac_objext' |
| 4038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4039 | (eval $ac_try) 2>&5 |
| 4040 | ac_status=$? |
| 4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4042 | (exit $ac_status); }; }; then |
| 4043 | ac_cv_header_stdc=yes |
| 4044 | else |
| 4045 | echo "$as_me: failed program was:" >&5 |
| 4046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4047 | |
| 4048 | ac_cv_header_stdc=no |
| 4049 | fi |
| 4050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4051 | |
| 4052 | if test $ac_cv_header_stdc = yes; then |
| 4053 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4054 | cat >conftest.$ac_ext <<_ACEOF |
| 4055 | /* confdefs.h. */ |
| 4056 | _ACEOF |
| 4057 | cat confdefs.h >>conftest.$ac_ext |
| 4058 | cat >>conftest.$ac_ext <<_ACEOF |
| 4059 | /* end confdefs.h. */ |
| 4060 | #include <string.h> |
| 4061 | |
| 4062 | _ACEOF |
| 4063 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4064 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4065 | : |
| 4066 | else |
| 4067 | ac_cv_header_stdc=no |
| 4068 | fi |
| 4069 | rm -f conftest* |
| 4070 | |
| 4071 | fi |
| 4072 | |
| 4073 | if test $ac_cv_header_stdc = yes; then |
| 4074 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4075 | cat >conftest.$ac_ext <<_ACEOF |
| 4076 | /* confdefs.h. */ |
| 4077 | _ACEOF |
| 4078 | cat confdefs.h >>conftest.$ac_ext |
| 4079 | cat >>conftest.$ac_ext <<_ACEOF |
| 4080 | /* end confdefs.h. */ |
| 4081 | #include <stdlib.h> |
| 4082 | |
| 4083 | _ACEOF |
| 4084 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4085 | $EGREP "free" >/dev/null 2>&1; then |
| 4086 | : |
| 4087 | else |
| 4088 | ac_cv_header_stdc=no |
| 4089 | fi |
| 4090 | rm -f conftest* |
| 4091 | |
| 4092 | fi |
| 4093 | |
| 4094 | if test $ac_cv_header_stdc = yes; then |
| 4095 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4096 | if test "$cross_compiling" = yes; then |
| 4097 | : |
| 4098 | else |
| 4099 | cat >conftest.$ac_ext <<_ACEOF |
| 4100 | /* confdefs.h. */ |
| 4101 | _ACEOF |
| 4102 | cat confdefs.h >>conftest.$ac_ext |
| 4103 | cat >>conftest.$ac_ext <<_ACEOF |
| 4104 | /* end confdefs.h. */ |
| 4105 | #include <ctype.h> |
| 4106 | #if ((' ' & 0x0FF) == 0x020) |
| 4107 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4108 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4109 | #else |
| 4110 | # define ISLOWER(c) \ |
| 4111 | (('a' <= (c) && (c) <= 'i') \ |
| 4112 | || ('j' <= (c) && (c) <= 'r') \ |
| 4113 | || ('s' <= (c) && (c) <= 'z')) |
| 4114 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4115 | #endif |
| 4116 | |
| 4117 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4118 | int |
| 4119 | main () |
| 4120 | { |
| 4121 | int i; |
| 4122 | for (i = 0; i < 256; i++) |
| 4123 | if (XOR (islower (i), ISLOWER (i)) |
| 4124 | || toupper (i) != TOUPPER (i)) |
| 4125 | exit(2); |
| 4126 | exit (0); |
| 4127 | } |
| 4128 | _ACEOF |
| 4129 | rm -f conftest$ac_exeext |
| 4130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4131 | (eval $ac_link) 2>&5 |
| 4132 | ac_status=$? |
| 4133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4134 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4136 | (eval $ac_try) 2>&5 |
| 4137 | ac_status=$? |
| 4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4139 | (exit $ac_status); }; }; then |
| 4140 | : |
| 4141 | else |
| 4142 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4143 | echo "$as_me: failed program was:" >&5 |
| 4144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4145 | |
| 4146 | ( exit $ac_status ) |
| 4147 | ac_cv_header_stdc=no |
| 4148 | fi |
| 4149 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4150 | fi |
| 4151 | fi |
| 4152 | fi |
| 4153 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4154 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4155 | if test $ac_cv_header_stdc = yes; then |
| 4156 | |
| 4157 | cat >>confdefs.h <<\_ACEOF |
| 4158 | #define STDC_HEADERS 1 |
| 4159 | _ACEOF |
| 4160 | |
| 4161 | fi |
| 4162 | |
| 4163 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4164 | |
| 4165 | |
| 4166 | |
| 4167 | |
| 4168 | |
| 4169 | |
| 4170 | |
| 4171 | |
| 4172 | |
| 4173 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4174 | inttypes.h stdint.h unistd.h |
| 4175 | do |
| 4176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4177 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4181 | else |
| 4182 | cat >conftest.$ac_ext <<_ACEOF |
| 4183 | /* confdefs.h. */ |
| 4184 | _ACEOF |
| 4185 | cat confdefs.h >>conftest.$ac_ext |
| 4186 | cat >>conftest.$ac_ext <<_ACEOF |
| 4187 | /* end confdefs.h. */ |
| 4188 | $ac_includes_default |
| 4189 | |
| 4190 | #include <$ac_header> |
| 4191 | _ACEOF |
| 4192 | rm -f conftest.$ac_objext |
| 4193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4194 | (eval $ac_compile) 2>conftest.er1 |
| 4195 | ac_status=$? |
| 4196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4197 | rm -f conftest.er1 |
| 4198 | cat conftest.err >&5 |
| 4199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4200 | (exit $ac_status); } && |
| 4201 | { ac_try='test -z "$ac_c_werror_flag" |
| 4202 | || test ! -s conftest.err' |
| 4203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4204 | (eval $ac_try) 2>&5 |
| 4205 | ac_status=$? |
| 4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4207 | (exit $ac_status); }; } && |
| 4208 | { ac_try='test -s conftest.$ac_objext' |
| 4209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4210 | (eval $ac_try) 2>&5 |
| 4211 | ac_status=$? |
| 4212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4213 | (exit $ac_status); }; }; then |
| 4214 | eval "$as_ac_Header=yes" |
| 4215 | else |
| 4216 | echo "$as_me: failed program was:" >&5 |
| 4217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4218 | |
| 4219 | eval "$as_ac_Header=no" |
| 4220 | fi |
| 4221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4222 | fi |
| 4223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4224 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4225 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4226 | cat >>confdefs.h <<_ACEOF |
| 4227 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4228 | _ACEOF |
| 4229 | |
| 4230 | fi |
| 4231 | |
| 4232 | done |
| 4233 | |
| 4234 | |
| 4235 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4236 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4237 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
| 4238 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4240 | fi |
| 4241 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4242 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
| 4243 | else |
| 4244 | # Is the header compilable? |
| 4245 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 4246 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 |
| 4247 | cat >conftest.$ac_ext <<_ACEOF |
| 4248 | /* confdefs.h. */ |
| 4249 | _ACEOF |
| 4250 | cat confdefs.h >>conftest.$ac_ext |
| 4251 | cat >>conftest.$ac_ext <<_ACEOF |
| 4252 | /* end confdefs.h. */ |
| 4253 | $ac_includes_default |
| 4254 | #include <arpa/inet.h> |
| 4255 | _ACEOF |
| 4256 | rm -f conftest.$ac_objext |
| 4257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4258 | (eval $ac_compile) 2>conftest.er1 |
| 4259 | ac_status=$? |
| 4260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4261 | rm -f conftest.er1 |
| 4262 | cat conftest.err >&5 |
| 4263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4264 | (exit $ac_status); } && |
| 4265 | { ac_try='test -z "$ac_c_werror_flag" |
| 4266 | || test ! -s conftest.err' |
| 4267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4268 | (eval $ac_try) 2>&5 |
| 4269 | ac_status=$? |
| 4270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4271 | (exit $ac_status); }; } && |
| 4272 | { ac_try='test -s conftest.$ac_objext' |
| 4273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4274 | (eval $ac_try) 2>&5 |
| 4275 | ac_status=$? |
| 4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4277 | (exit $ac_status); }; }; then |
| 4278 | ac_header_compiler=yes |
| 4279 | else |
| 4280 | echo "$as_me: failed program was:" >&5 |
| 4281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4282 | |
| 4283 | ac_header_compiler=no |
| 4284 | fi |
| 4285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4286 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4287 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4288 | |
| 4289 | # Is the header present? |
| 4290 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 4291 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 |
| 4292 | cat >conftest.$ac_ext <<_ACEOF |
| 4293 | /* confdefs.h. */ |
| 4294 | _ACEOF |
| 4295 | cat confdefs.h >>conftest.$ac_ext |
| 4296 | cat >>conftest.$ac_ext <<_ACEOF |
| 4297 | /* end confdefs.h. */ |
| 4298 | #include <arpa/inet.h> |
| 4299 | _ACEOF |
| 4300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4302 | ac_status=$? |
| 4303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4304 | rm -f conftest.er1 |
| 4305 | cat conftest.err >&5 |
| 4306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4307 | (exit $ac_status); } >/dev/null; then |
| 4308 | if test -s conftest.err; then |
| 4309 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4310 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4311 | else |
| 4312 | ac_cpp_err= |
| 4313 | fi |
| 4314 | else |
| 4315 | ac_cpp_err=yes |
| 4316 | fi |
| 4317 | if test -z "$ac_cpp_err"; then |
| 4318 | ac_header_preproc=yes |
| 4319 | else |
| 4320 | echo "$as_me: failed program was:" >&5 |
| 4321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4322 | |
| 4323 | ac_header_preproc=no |
| 4324 | fi |
| 4325 | rm -f conftest.err conftest.$ac_ext |
| 4326 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4327 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4328 | |
| 4329 | # So? What about this header? |
| 4330 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4331 | yes:no: ) |
| 4332 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4333 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4334 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 4335 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 4336 | ac_header_preproc=yes |
| 4337 | ;; |
| 4338 | no:yes:* ) |
| 4339 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 4340 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 4341 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 4342 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 4343 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 4344 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 4345 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4346 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4347 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 4348 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 4349 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 4350 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
| 4351 | ( |
| 4352 | cat <<\_ASBOX |
| 4353 | ## ------------------------------------ ## |
| 4354 | ## Report this to the pjproject lists. ## |
| 4355 | ## ------------------------------------ ## |
| 4356 | _ASBOX |
| 4357 | ) | |
| 4358 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4359 | ;; |
| 4360 | esac |
| 4361 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4362 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
| 4363 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4365 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4366 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 4367 | fi |
| 4368 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4369 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
| 4370 | |
| 4371 | fi |
| 4372 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 4373 | cat >>confdefs.h <<\_ACEOF |
| 4374 | #define PJ_HAS_ARPA_INET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4375 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4376 | |
| 4377 | fi |
| 4378 | |
| 4379 | |
| 4380 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4381 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 4382 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
| 4383 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4385 | fi |
| 4386 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4387 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
| 4388 | else |
| 4389 | # Is the header compilable? |
| 4390 | echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 4391 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6 |
| 4392 | cat >conftest.$ac_ext <<_ACEOF |
| 4393 | /* confdefs.h. */ |
| 4394 | _ACEOF |
| 4395 | cat confdefs.h >>conftest.$ac_ext |
| 4396 | cat >>conftest.$ac_ext <<_ACEOF |
| 4397 | /* end confdefs.h. */ |
| 4398 | $ac_includes_default |
| 4399 | #include <assert.h> |
| 4400 | _ACEOF |
| 4401 | rm -f conftest.$ac_objext |
| 4402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4403 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4404 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4405 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4406 | rm -f conftest.er1 |
| 4407 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4409 | (exit $ac_status); } && |
| 4410 | { ac_try='test -z "$ac_c_werror_flag" |
| 4411 | || test ! -s conftest.err' |
| 4412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4413 | (eval $ac_try) 2>&5 |
| 4414 | ac_status=$? |
| 4415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4416 | (exit $ac_status); }; } && |
| 4417 | { ac_try='test -s conftest.$ac_objext' |
| 4418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4419 | (eval $ac_try) 2>&5 |
| 4420 | ac_status=$? |
| 4421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4422 | (exit $ac_status); }; }; then |
| 4423 | ac_header_compiler=yes |
| 4424 | else |
| 4425 | echo "$as_me: failed program was:" >&5 |
| 4426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4427 | |
| 4428 | ac_header_compiler=no |
| 4429 | fi |
| 4430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4431 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4432 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4433 | |
| 4434 | # Is the header present? |
| 4435 | echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 4436 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6 |
| 4437 | cat >conftest.$ac_ext <<_ACEOF |
| 4438 | /* confdefs.h. */ |
| 4439 | _ACEOF |
| 4440 | cat confdefs.h >>conftest.$ac_ext |
| 4441 | cat >>conftest.$ac_ext <<_ACEOF |
| 4442 | /* end confdefs.h. */ |
| 4443 | #include <assert.h> |
| 4444 | _ACEOF |
| 4445 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4446 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4447 | ac_status=$? |
| 4448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4449 | rm -f conftest.er1 |
| 4450 | cat conftest.err >&5 |
| 4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4452 | (exit $ac_status); } >/dev/null; then |
| 4453 | if test -s conftest.err; then |
| 4454 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4455 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4456 | else |
| 4457 | ac_cpp_err= |
| 4458 | fi |
| 4459 | else |
| 4460 | ac_cpp_err=yes |
| 4461 | fi |
| 4462 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4463 | ac_header_preproc=yes |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4464 | else |
| 4465 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4467 | |
| 4468 | ac_header_preproc=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4469 | fi |
| 4470 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4471 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4472 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4473 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4474 | # So? What about this header? |
| 4475 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4476 | yes:no: ) |
| 4477 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4478 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4479 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 4480 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 4481 | ac_header_preproc=yes |
| 4482 | ;; |
| 4483 | no:yes:* ) |
| 4484 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 4485 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 4486 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 4487 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 4488 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 4489 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 4490 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4491 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4492 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 4493 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 4494 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 4495 | echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} |
| 4496 | ( |
| 4497 | cat <<\_ASBOX |
| 4498 | ## ------------------------------------ ## |
| 4499 | ## Report this to the pjproject lists. ## |
| 4500 | ## ------------------------------------ ## |
| 4501 | _ASBOX |
| 4502 | ) | |
| 4503 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4504 | ;; |
| 4505 | esac |
| 4506 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4507 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
| 4508 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4510 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4511 | ac_cv_header_assert_h=$ac_header_preproc |
| 4512 | fi |
| 4513 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4514 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
| 4515 | |
| 4516 | fi |
| 4517 | if test $ac_cv_header_assert_h = yes; then |
| 4518 | cat >>confdefs.h <<\_ACEOF |
| 4519 | #define PJ_HAS_ASSERT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4520 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4521 | |
| 4522 | fi |
| 4523 | |
| 4524 | |
| 4525 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4526 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 4527 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
| 4528 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4530 | fi |
| 4531 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4532 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
| 4533 | else |
| 4534 | # Is the header compilable? |
| 4535 | echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 4536 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6 |
| 4537 | cat >conftest.$ac_ext <<_ACEOF |
| 4538 | /* confdefs.h. */ |
| 4539 | _ACEOF |
| 4540 | cat confdefs.h >>conftest.$ac_ext |
| 4541 | cat >>conftest.$ac_ext <<_ACEOF |
| 4542 | /* end confdefs.h. */ |
| 4543 | $ac_includes_default |
| 4544 | #include <ctype.h> |
| 4545 | _ACEOF |
| 4546 | rm -f conftest.$ac_objext |
| 4547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4548 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4549 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4550 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4551 | rm -f conftest.er1 |
| 4552 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4554 | (exit $ac_status); } && |
| 4555 | { ac_try='test -z "$ac_c_werror_flag" |
| 4556 | || test ! -s conftest.err' |
| 4557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4558 | (eval $ac_try) 2>&5 |
| 4559 | ac_status=$? |
| 4560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4561 | (exit $ac_status); }; } && |
| 4562 | { ac_try='test -s conftest.$ac_objext' |
| 4563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4564 | (eval $ac_try) 2>&5 |
| 4565 | ac_status=$? |
| 4566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4567 | (exit $ac_status); }; }; then |
| 4568 | ac_header_compiler=yes |
| 4569 | else |
| 4570 | echo "$as_me: failed program was:" >&5 |
| 4571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4572 | |
| 4573 | ac_header_compiler=no |
| 4574 | fi |
| 4575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4576 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4577 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4578 | |
| 4579 | # Is the header present? |
| 4580 | echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 4581 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6 |
| 4582 | cat >conftest.$ac_ext <<_ACEOF |
| 4583 | /* confdefs.h. */ |
| 4584 | _ACEOF |
| 4585 | cat confdefs.h >>conftest.$ac_ext |
| 4586 | cat >>conftest.$ac_ext <<_ACEOF |
| 4587 | /* end confdefs.h. */ |
| 4588 | #include <ctype.h> |
| 4589 | _ACEOF |
| 4590 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4591 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4592 | ac_status=$? |
| 4593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4594 | rm -f conftest.er1 |
| 4595 | cat conftest.err >&5 |
| 4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4597 | (exit $ac_status); } >/dev/null; then |
| 4598 | if test -s conftest.err; then |
| 4599 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4600 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4601 | else |
| 4602 | ac_cpp_err= |
| 4603 | fi |
| 4604 | else |
| 4605 | ac_cpp_err=yes |
| 4606 | fi |
| 4607 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4608 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4609 | else |
| 4610 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4612 | |
| 4613 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4614 | fi |
| 4615 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4616 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4617 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4618 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4619 | # So? What about this header? |
| 4620 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4621 | yes:no: ) |
| 4622 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4623 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4624 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 4625 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 4626 | ac_header_preproc=yes |
| 4627 | ;; |
| 4628 | no:yes:* ) |
| 4629 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 4630 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 4631 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 4632 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 4633 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 4634 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 4635 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4636 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4637 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 4638 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 4639 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 4640 | echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} |
| 4641 | ( |
| 4642 | cat <<\_ASBOX |
| 4643 | ## ------------------------------------ ## |
| 4644 | ## Report this to the pjproject lists. ## |
| 4645 | ## ------------------------------------ ## |
| 4646 | _ASBOX |
| 4647 | ) | |
| 4648 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4649 | ;; |
| 4650 | esac |
| 4651 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4652 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
| 4653 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4655 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4656 | ac_cv_header_ctype_h=$ac_header_preproc |
| 4657 | fi |
| 4658 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4659 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
| 4660 | |
| 4661 | fi |
| 4662 | if test $ac_cv_header_ctype_h = yes; then |
| 4663 | cat >>confdefs.h <<\_ACEOF |
| 4664 | #define PJ_HAS_CTYPE_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4665 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4666 | |
| 4667 | fi |
| 4668 | |
| 4669 | |
| 4670 | |
| 4671 | case $target in |
| 4672 | *mingw* | *cygw* | *win32* | *w32* ) |
| 4673 | cat >>confdefs.h <<\_ACEOF |
| 4674 | #define PJ_HAS_ERRNO_H 0 |
| 4675 | _ACEOF |
| 4676 | |
| 4677 | ;; |
| 4678 | *) |
| 4679 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4680 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 4681 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
| 4682 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4684 | fi |
| 4685 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 4686 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
| 4687 | else |
| 4688 | # Is the header compilable? |
| 4689 | echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 4690 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6 |
| 4691 | cat >conftest.$ac_ext <<_ACEOF |
| 4692 | /* confdefs.h. */ |
| 4693 | _ACEOF |
| 4694 | cat confdefs.h >>conftest.$ac_ext |
| 4695 | cat >>conftest.$ac_ext <<_ACEOF |
| 4696 | /* end confdefs.h. */ |
| 4697 | $ac_includes_default |
| 4698 | #include <errno.h> |
| 4699 | _ACEOF |
| 4700 | rm -f conftest.$ac_objext |
| 4701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4702 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4703 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4704 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4705 | rm -f conftest.er1 |
| 4706 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4708 | (exit $ac_status); } && |
| 4709 | { ac_try='test -z "$ac_c_werror_flag" |
| 4710 | || test ! -s conftest.err' |
| 4711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4712 | (eval $ac_try) 2>&5 |
| 4713 | ac_status=$? |
| 4714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4715 | (exit $ac_status); }; } && |
| 4716 | { ac_try='test -s conftest.$ac_objext' |
| 4717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4718 | (eval $ac_try) 2>&5 |
| 4719 | ac_status=$? |
| 4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4721 | (exit $ac_status); }; }; then |
| 4722 | ac_header_compiler=yes |
| 4723 | else |
| 4724 | echo "$as_me: failed program was:" >&5 |
| 4725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4726 | |
| 4727 | ac_header_compiler=no |
| 4728 | fi |
| 4729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4730 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4731 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4732 | |
| 4733 | # Is the header present? |
| 4734 | echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 4735 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6 |
| 4736 | cat >conftest.$ac_ext <<_ACEOF |
| 4737 | /* confdefs.h. */ |
| 4738 | _ACEOF |
| 4739 | cat confdefs.h >>conftest.$ac_ext |
| 4740 | cat >>conftest.$ac_ext <<_ACEOF |
| 4741 | /* end confdefs.h. */ |
| 4742 | #include <errno.h> |
| 4743 | _ACEOF |
| 4744 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4745 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4746 | ac_status=$? |
| 4747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4748 | rm -f conftest.er1 |
| 4749 | cat conftest.err >&5 |
| 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4751 | (exit $ac_status); } >/dev/null; then |
| 4752 | if test -s conftest.err; then |
| 4753 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4754 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4755 | else |
| 4756 | ac_cpp_err= |
| 4757 | fi |
| 4758 | else |
| 4759 | ac_cpp_err=yes |
| 4760 | fi |
| 4761 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4762 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4763 | else |
| 4764 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4766 | |
| 4767 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4768 | fi |
| 4769 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4770 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4771 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4772 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4773 | # So? What about this header? |
| 4774 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4775 | yes:no: ) |
| 4776 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4777 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4778 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 4779 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 4780 | ac_header_preproc=yes |
| 4781 | ;; |
| 4782 | no:yes:* ) |
| 4783 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 4784 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 4785 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 4786 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 4787 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 4788 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 4789 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4790 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4791 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 4792 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 4793 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 4794 | echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} |
| 4795 | ( |
| 4796 | cat <<\_ASBOX |
| 4797 | ## ------------------------------------ ## |
| 4798 | ## Report this to the pjproject lists. ## |
| 4799 | ## ------------------------------------ ## |
| 4800 | _ASBOX |
| 4801 | ) | |
| 4802 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4803 | ;; |
| 4804 | esac |
| 4805 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4806 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
| 4807 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4809 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4810 | ac_cv_header_errno_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4811 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4812 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4813 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4814 | |
| 4815 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4816 | if test $ac_cv_header_errno_h = yes; then |
| 4817 | cat >>confdefs.h <<\_ACEOF |
| 4818 | #define PJ_HAS_ERRNO_H 1 |
| 4819 | _ACEOF |
| 4820 | |
| 4821 | fi |
| 4822 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4823 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4824 | ;; |
| 4825 | esac |
| 4826 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4827 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 4828 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 4829 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
| 4830 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 4831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4832 | fi |
| 4833 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 4834 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
| 4835 | else |
| 4836 | # Is the header compilable? |
| 4837 | echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 4838 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6 |
| 4839 | cat >conftest.$ac_ext <<_ACEOF |
| 4840 | /* confdefs.h. */ |
| 4841 | _ACEOF |
| 4842 | cat confdefs.h >>conftest.$ac_ext |
| 4843 | cat >>conftest.$ac_ext <<_ACEOF |
| 4844 | /* end confdefs.h. */ |
| 4845 | $ac_includes_default |
| 4846 | #include <linux/socket.h> |
| 4847 | _ACEOF |
| 4848 | rm -f conftest.$ac_objext |
| 4849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4850 | (eval $ac_compile) 2>conftest.er1 |
| 4851 | ac_status=$? |
| 4852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4853 | rm -f conftest.er1 |
| 4854 | cat conftest.err >&5 |
| 4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4856 | (exit $ac_status); } && |
| 4857 | { ac_try='test -z "$ac_c_werror_flag" |
| 4858 | || test ! -s conftest.err' |
| 4859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4860 | (eval $ac_try) 2>&5 |
| 4861 | ac_status=$? |
| 4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4863 | (exit $ac_status); }; } && |
| 4864 | { ac_try='test -s conftest.$ac_objext' |
| 4865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4866 | (eval $ac_try) 2>&5 |
| 4867 | ac_status=$? |
| 4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4869 | (exit $ac_status); }; }; then |
| 4870 | ac_header_compiler=yes |
| 4871 | else |
| 4872 | echo "$as_me: failed program was:" >&5 |
| 4873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4874 | |
| 4875 | ac_header_compiler=no |
| 4876 | fi |
| 4877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4878 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4879 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4880 | |
| 4881 | # Is the header present? |
| 4882 | echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 4883 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6 |
| 4884 | cat >conftest.$ac_ext <<_ACEOF |
| 4885 | /* confdefs.h. */ |
| 4886 | _ACEOF |
| 4887 | cat confdefs.h >>conftest.$ac_ext |
| 4888 | cat >>conftest.$ac_ext <<_ACEOF |
| 4889 | /* end confdefs.h. */ |
| 4890 | #include <linux/socket.h> |
| 4891 | _ACEOF |
| 4892 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4893 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4894 | ac_status=$? |
| 4895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4896 | rm -f conftest.er1 |
| 4897 | cat conftest.err >&5 |
| 4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4899 | (exit $ac_status); } >/dev/null; then |
| 4900 | if test -s conftest.err; then |
| 4901 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4902 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4903 | else |
| 4904 | ac_cpp_err= |
| 4905 | fi |
| 4906 | else |
| 4907 | ac_cpp_err=yes |
| 4908 | fi |
| 4909 | if test -z "$ac_cpp_err"; then |
| 4910 | ac_header_preproc=yes |
| 4911 | else |
| 4912 | echo "$as_me: failed program was:" >&5 |
| 4913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4914 | |
| 4915 | ac_header_preproc=no |
| 4916 | fi |
| 4917 | rm -f conftest.err conftest.$ac_ext |
| 4918 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4919 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4920 | |
| 4921 | # So? What about this header? |
| 4922 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4923 | yes:no: ) |
| 4924 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4925 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4926 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 4927 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 4928 | ac_header_preproc=yes |
| 4929 | ;; |
| 4930 | no:yes:* ) |
| 4931 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 4932 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 4933 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 4934 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 4935 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 4936 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 4937 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4938 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4939 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 4940 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 4941 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 4942 | echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} |
| 4943 | ( |
| 4944 | cat <<\_ASBOX |
| 4945 | ## ------------------------------------ ## |
| 4946 | ## Report this to the pjproject lists. ## |
| 4947 | ## ------------------------------------ ## |
| 4948 | _ASBOX |
| 4949 | ) | |
| 4950 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4951 | ;; |
| 4952 | esac |
| 4953 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4954 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
| 4955 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 4956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4957 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4958 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 4959 | fi |
| 4960 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 4961 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
| 4962 | |
| 4963 | fi |
| 4964 | if test $ac_cv_header_linux_socket_h = yes; then |
| 4965 | cat >>confdefs.h <<\_ACEOF |
| 4966 | #define PJ_HAS_LINUX_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4967 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4968 | |
| 4969 | fi |
| 4970 | |
| 4971 | |
| 4972 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 4973 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 4974 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
| 4975 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 4976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4977 | fi |
| 4978 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 4979 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
| 4980 | else |
| 4981 | # Is the header compilable? |
| 4982 | echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 4983 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6 |
| 4984 | cat >conftest.$ac_ext <<_ACEOF |
| 4985 | /* confdefs.h. */ |
| 4986 | _ACEOF |
| 4987 | cat confdefs.h >>conftest.$ac_ext |
| 4988 | cat >>conftest.$ac_ext <<_ACEOF |
| 4989 | /* end confdefs.h. */ |
| 4990 | $ac_includes_default |
| 4991 | #include <malloc.h> |
| 4992 | _ACEOF |
| 4993 | rm -f conftest.$ac_objext |
| 4994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4995 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4996 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4997 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4998 | rm -f conftest.er1 |
| 4999 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5001 | (exit $ac_status); } && |
| 5002 | { ac_try='test -z "$ac_c_werror_flag" |
| 5003 | || test ! -s conftest.err' |
| 5004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5005 | (eval $ac_try) 2>&5 |
| 5006 | ac_status=$? |
| 5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5008 | (exit $ac_status); }; } && |
| 5009 | { ac_try='test -s conftest.$ac_objext' |
| 5010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5011 | (eval $ac_try) 2>&5 |
| 5012 | ac_status=$? |
| 5013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5014 | (exit $ac_status); }; }; then |
| 5015 | ac_header_compiler=yes |
| 5016 | else |
| 5017 | echo "$as_me: failed program was:" >&5 |
| 5018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5019 | |
| 5020 | ac_header_compiler=no |
| 5021 | fi |
| 5022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5023 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5024 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5025 | |
| 5026 | # Is the header present? |
| 5027 | echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5028 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6 |
| 5029 | cat >conftest.$ac_ext <<_ACEOF |
| 5030 | /* confdefs.h. */ |
| 5031 | _ACEOF |
| 5032 | cat confdefs.h >>conftest.$ac_ext |
| 5033 | cat >>conftest.$ac_ext <<_ACEOF |
| 5034 | /* end confdefs.h. */ |
| 5035 | #include <malloc.h> |
| 5036 | _ACEOF |
| 5037 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5038 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5039 | ac_status=$? |
| 5040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5041 | rm -f conftest.er1 |
| 5042 | cat conftest.err >&5 |
| 5043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5044 | (exit $ac_status); } >/dev/null; then |
| 5045 | if test -s conftest.err; then |
| 5046 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5047 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5048 | else |
| 5049 | ac_cpp_err= |
| 5050 | fi |
| 5051 | else |
| 5052 | ac_cpp_err=yes |
| 5053 | fi |
| 5054 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5055 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5056 | else |
| 5057 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5059 | |
| 5060 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5061 | fi |
| 5062 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5063 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5064 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5065 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5066 | # So? What about this header? |
| 5067 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5068 | yes:no: ) |
| 5069 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5070 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5071 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5072 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5073 | ac_header_preproc=yes |
| 5074 | ;; |
| 5075 | no:yes:* ) |
| 5076 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5077 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5078 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5079 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5080 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5081 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5082 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5083 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5084 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5085 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5086 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5087 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} |
| 5088 | ( |
| 5089 | cat <<\_ASBOX |
| 5090 | ## ------------------------------------ ## |
| 5091 | ## Report this to the pjproject lists. ## |
| 5092 | ## ------------------------------------ ## |
| 5093 | _ASBOX |
| 5094 | ) | |
| 5095 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5096 | ;; |
| 5097 | esac |
| 5098 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5099 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
| 5100 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5102 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5103 | ac_cv_header_malloc_h=$ac_header_preproc |
| 5104 | fi |
| 5105 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5106 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
| 5107 | |
| 5108 | fi |
| 5109 | if test $ac_cv_header_malloc_h = yes; then |
| 5110 | cat >>confdefs.h <<\_ACEOF |
| 5111 | #define PJ_HAS_MALLOC_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5112 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5113 | |
| 5114 | fi |
| 5115 | |
| 5116 | |
| 5117 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5118 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5119 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
| 5120 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5122 | fi |
| 5123 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5124 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
| 5125 | else |
| 5126 | # Is the header compilable? |
| 5127 | echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 5128 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6 |
| 5129 | cat >conftest.$ac_ext <<_ACEOF |
| 5130 | /* confdefs.h. */ |
| 5131 | _ACEOF |
| 5132 | cat confdefs.h >>conftest.$ac_ext |
| 5133 | cat >>conftest.$ac_ext <<_ACEOF |
| 5134 | /* end confdefs.h. */ |
| 5135 | $ac_includes_default |
| 5136 | #include <netdb.h> |
| 5137 | _ACEOF |
| 5138 | rm -f conftest.$ac_objext |
| 5139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5140 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5141 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5142 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5143 | rm -f conftest.er1 |
| 5144 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5146 | (exit $ac_status); } && |
| 5147 | { ac_try='test -z "$ac_c_werror_flag" |
| 5148 | || test ! -s conftest.err' |
| 5149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5150 | (eval $ac_try) 2>&5 |
| 5151 | ac_status=$? |
| 5152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5153 | (exit $ac_status); }; } && |
| 5154 | { ac_try='test -s conftest.$ac_objext' |
| 5155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5156 | (eval $ac_try) 2>&5 |
| 5157 | ac_status=$? |
| 5158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5159 | (exit $ac_status); }; }; then |
| 5160 | ac_header_compiler=yes |
| 5161 | else |
| 5162 | echo "$as_me: failed program was:" >&5 |
| 5163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5164 | |
| 5165 | ac_header_compiler=no |
| 5166 | fi |
| 5167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5168 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5169 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5170 | |
| 5171 | # Is the header present? |
| 5172 | echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 5173 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6 |
| 5174 | cat >conftest.$ac_ext <<_ACEOF |
| 5175 | /* confdefs.h. */ |
| 5176 | _ACEOF |
| 5177 | cat confdefs.h >>conftest.$ac_ext |
| 5178 | cat >>conftest.$ac_ext <<_ACEOF |
| 5179 | /* end confdefs.h. */ |
| 5180 | #include <netdb.h> |
| 5181 | _ACEOF |
| 5182 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5183 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5184 | ac_status=$? |
| 5185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5186 | rm -f conftest.er1 |
| 5187 | cat conftest.err >&5 |
| 5188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5189 | (exit $ac_status); } >/dev/null; then |
| 5190 | if test -s conftest.err; then |
| 5191 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5192 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5193 | else |
| 5194 | ac_cpp_err= |
| 5195 | fi |
| 5196 | else |
| 5197 | ac_cpp_err=yes |
| 5198 | fi |
| 5199 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5200 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5201 | else |
| 5202 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5204 | |
| 5205 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5206 | fi |
| 5207 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5208 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5209 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5210 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5211 | # So? What about this header? |
| 5212 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5213 | yes:no: ) |
| 5214 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5215 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5216 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 5217 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 5218 | ac_header_preproc=yes |
| 5219 | ;; |
| 5220 | no:yes:* ) |
| 5221 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 5222 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 5223 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 5224 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 5225 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 5226 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 5227 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5228 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5229 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 5230 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 5231 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 5232 | echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} |
| 5233 | ( |
| 5234 | cat <<\_ASBOX |
| 5235 | ## ------------------------------------ ## |
| 5236 | ## Report this to the pjproject lists. ## |
| 5237 | ## ------------------------------------ ## |
| 5238 | _ASBOX |
| 5239 | ) | |
| 5240 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5241 | ;; |
| 5242 | esac |
| 5243 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5244 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
| 5245 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5247 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5248 | ac_cv_header_netdb_h=$ac_header_preproc |
| 5249 | fi |
| 5250 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5251 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
| 5252 | |
| 5253 | fi |
| 5254 | if test $ac_cv_header_netdb_h = yes; then |
| 5255 | cat >>confdefs.h <<\_ACEOF |
| 5256 | #define PJ_HAS_NETDB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5257 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5258 | |
| 5259 | fi |
| 5260 | |
| 5261 | |
| 5262 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5263 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 5264 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
| 5265 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5267 | fi |
| 5268 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5269 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
| 5270 | else |
| 5271 | # Is the header compilable? |
| 5272 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 5273 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 |
| 5274 | cat >conftest.$ac_ext <<_ACEOF |
| 5275 | /* confdefs.h. */ |
| 5276 | _ACEOF |
| 5277 | cat confdefs.h >>conftest.$ac_ext |
| 5278 | cat >>conftest.$ac_ext <<_ACEOF |
| 5279 | /* end confdefs.h. */ |
| 5280 | $ac_includes_default |
| 5281 | #include <netinet/in.h> |
| 5282 | _ACEOF |
| 5283 | rm -f conftest.$ac_objext |
| 5284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5285 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5286 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5287 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5288 | rm -f conftest.er1 |
| 5289 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5291 | (exit $ac_status); } && |
| 5292 | { ac_try='test -z "$ac_c_werror_flag" |
| 5293 | || test ! -s conftest.err' |
| 5294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5295 | (eval $ac_try) 2>&5 |
| 5296 | ac_status=$? |
| 5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5298 | (exit $ac_status); }; } && |
| 5299 | { ac_try='test -s conftest.$ac_objext' |
| 5300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5301 | (eval $ac_try) 2>&5 |
| 5302 | ac_status=$? |
| 5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5304 | (exit $ac_status); }; }; then |
| 5305 | ac_header_compiler=yes |
| 5306 | else |
| 5307 | echo "$as_me: failed program was:" >&5 |
| 5308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5309 | |
| 5310 | ac_header_compiler=no |
| 5311 | fi |
| 5312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5313 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5314 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5315 | |
| 5316 | # Is the header present? |
| 5317 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 5318 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 |
| 5319 | cat >conftest.$ac_ext <<_ACEOF |
| 5320 | /* confdefs.h. */ |
| 5321 | _ACEOF |
| 5322 | cat confdefs.h >>conftest.$ac_ext |
| 5323 | cat >>conftest.$ac_ext <<_ACEOF |
| 5324 | /* end confdefs.h. */ |
| 5325 | #include <netinet/in.h> |
| 5326 | _ACEOF |
| 5327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5329 | ac_status=$? |
| 5330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5331 | rm -f conftest.er1 |
| 5332 | cat conftest.err >&5 |
| 5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5334 | (exit $ac_status); } >/dev/null; then |
| 5335 | if test -s conftest.err; then |
| 5336 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5337 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5338 | else |
| 5339 | ac_cpp_err= |
| 5340 | fi |
| 5341 | else |
| 5342 | ac_cpp_err=yes |
| 5343 | fi |
| 5344 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5345 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5346 | else |
| 5347 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5349 | |
| 5350 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5351 | fi |
| 5352 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5353 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5354 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5355 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5356 | # So? What about this header? |
| 5357 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5358 | yes:no: ) |
| 5359 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5360 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5361 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 5362 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 5363 | ac_header_preproc=yes |
| 5364 | ;; |
| 5365 | no:yes:* ) |
| 5366 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 5367 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 5368 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 5369 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 5370 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 5371 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 5372 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5373 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5374 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 5375 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 5376 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 5377 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
| 5378 | ( |
| 5379 | cat <<\_ASBOX |
| 5380 | ## ------------------------------------ ## |
| 5381 | ## Report this to the pjproject lists. ## |
| 5382 | ## ------------------------------------ ## |
| 5383 | _ASBOX |
| 5384 | ) | |
| 5385 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5386 | ;; |
| 5387 | esac |
| 5388 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5389 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
| 5390 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5392 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5393 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 5394 | fi |
| 5395 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5396 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
| 5397 | |
| 5398 | fi |
| 5399 | if test $ac_cv_header_netinet_in_h = yes; then |
| 5400 | cat >>confdefs.h <<\_ACEOF |
| 5401 | #define PJ_HAS_NETINET_IN_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5402 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5403 | |
| 5404 | fi |
| 5405 | |
| 5406 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5407 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5408 | echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 5409 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6 |
| 5410 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5412 | fi |
| 5413 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 5414 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6 |
| 5415 | else |
| 5416 | # Is the header compilable? |
| 5417 | echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5 |
| 5418 | echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6 |
| 5419 | cat >conftest.$ac_ext <<_ACEOF |
| 5420 | /* confdefs.h. */ |
| 5421 | _ACEOF |
| 5422 | cat confdefs.h >>conftest.$ac_ext |
| 5423 | cat >>conftest.$ac_ext <<_ACEOF |
| 5424 | /* end confdefs.h. */ |
| 5425 | $ac_includes_default |
| 5426 | #include <netinet/ip.h> |
| 5427 | _ACEOF |
| 5428 | rm -f conftest.$ac_objext |
| 5429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5430 | (eval $ac_compile) 2>conftest.er1 |
| 5431 | ac_status=$? |
| 5432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5433 | rm -f conftest.er1 |
| 5434 | cat conftest.err >&5 |
| 5435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5436 | (exit $ac_status); } && |
| 5437 | { ac_try='test -z "$ac_c_werror_flag" |
| 5438 | || test ! -s conftest.err' |
| 5439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5440 | (eval $ac_try) 2>&5 |
| 5441 | ac_status=$? |
| 5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5443 | (exit $ac_status); }; } && |
| 5444 | { ac_try='test -s conftest.$ac_objext' |
| 5445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5446 | (eval $ac_try) 2>&5 |
| 5447 | ac_status=$? |
| 5448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5449 | (exit $ac_status); }; }; then |
| 5450 | ac_header_compiler=yes |
| 5451 | else |
| 5452 | echo "$as_me: failed program was:" >&5 |
| 5453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5454 | |
| 5455 | ac_header_compiler=no |
| 5456 | fi |
| 5457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5458 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5459 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5460 | |
| 5461 | # Is the header present? |
| 5462 | echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5 |
| 5463 | echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6 |
| 5464 | cat >conftest.$ac_ext <<_ACEOF |
| 5465 | /* confdefs.h. */ |
| 5466 | _ACEOF |
| 5467 | cat confdefs.h >>conftest.$ac_ext |
| 5468 | cat >>conftest.$ac_ext <<_ACEOF |
| 5469 | /* end confdefs.h. */ |
| 5470 | #include <netinet/ip.h> |
| 5471 | _ACEOF |
| 5472 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5473 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5474 | ac_status=$? |
| 5475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5476 | rm -f conftest.er1 |
| 5477 | cat conftest.err >&5 |
| 5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5479 | (exit $ac_status); } >/dev/null; then |
| 5480 | if test -s conftest.err; then |
| 5481 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5482 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5483 | else |
| 5484 | ac_cpp_err= |
| 5485 | fi |
| 5486 | else |
| 5487 | ac_cpp_err=yes |
| 5488 | fi |
| 5489 | if test -z "$ac_cpp_err"; then |
| 5490 | ac_header_preproc=yes |
| 5491 | else |
| 5492 | echo "$as_me: failed program was:" >&5 |
| 5493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5494 | |
| 5495 | ac_header_preproc=no |
| 5496 | fi |
| 5497 | rm -f conftest.err conftest.$ac_ext |
| 5498 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5499 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5500 | |
| 5501 | # So? What about this header? |
| 5502 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5503 | yes:no: ) |
| 5504 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5505 | echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5506 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5 |
| 5507 | echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;} |
| 5508 | ac_header_preproc=yes |
| 5509 | ;; |
| 5510 | no:yes:* ) |
| 5511 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5 |
| 5512 | echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;} |
| 5513 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5 |
| 5514 | echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;} |
| 5515 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5 |
| 5516 | echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;} |
| 5517 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5518 | echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5519 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5 |
| 5520 | echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;} |
| 5521 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5 |
| 5522 | echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;} |
| 5523 | ( |
| 5524 | cat <<\_ASBOX |
| 5525 | ## ------------------------------------ ## |
| 5526 | ## Report this to the pjproject lists. ## |
| 5527 | ## ------------------------------------ ## |
| 5528 | _ASBOX |
| 5529 | ) | |
| 5530 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5531 | ;; |
| 5532 | esac |
| 5533 | echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 5534 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6 |
| 5535 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5537 | else |
| 5538 | ac_cv_header_netinet_ip_h=$ac_header_preproc |
| 5539 | fi |
| 5540 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 5541 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6 |
| 5542 | |
| 5543 | fi |
| 5544 | if test $ac_cv_header_netinet_ip_h = yes; then |
| 5545 | cat >>confdefs.h <<\_ACEOF |
| 5546 | #define PJ_HAS_NETINET_IP_H 1 |
| 5547 | _ACEOF |
| 5548 | |
| 5549 | fi |
| 5550 | |
| 5551 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5552 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 5553 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 5554 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
| 5555 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 5556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5557 | fi |
| 5558 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 5559 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
| 5560 | else |
| 5561 | # Is the header compilable? |
| 5562 | echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 5563 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6 |
| 5564 | cat >conftest.$ac_ext <<_ACEOF |
| 5565 | /* confdefs.h. */ |
| 5566 | _ACEOF |
| 5567 | cat confdefs.h >>conftest.$ac_ext |
| 5568 | cat >>conftest.$ac_ext <<_ACEOF |
| 5569 | /* end confdefs.h. */ |
| 5570 | $ac_includes_default |
| 5571 | #include <setjmp.h> |
| 5572 | _ACEOF |
| 5573 | rm -f conftest.$ac_objext |
| 5574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5575 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5576 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5577 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5578 | rm -f conftest.er1 |
| 5579 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5581 | (exit $ac_status); } && |
| 5582 | { ac_try='test -z "$ac_c_werror_flag" |
| 5583 | || test ! -s conftest.err' |
| 5584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5585 | (eval $ac_try) 2>&5 |
| 5586 | ac_status=$? |
| 5587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5588 | (exit $ac_status); }; } && |
| 5589 | { ac_try='test -s conftest.$ac_objext' |
| 5590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5591 | (eval $ac_try) 2>&5 |
| 5592 | ac_status=$? |
| 5593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5594 | (exit $ac_status); }; }; then |
| 5595 | ac_header_compiler=yes |
| 5596 | else |
| 5597 | echo "$as_me: failed program was:" >&5 |
| 5598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5599 | |
| 5600 | ac_header_compiler=no |
| 5601 | fi |
| 5602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5603 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5604 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5605 | |
| 5606 | # Is the header present? |
| 5607 | echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 5608 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6 |
| 5609 | cat >conftest.$ac_ext <<_ACEOF |
| 5610 | /* confdefs.h. */ |
| 5611 | _ACEOF |
| 5612 | cat confdefs.h >>conftest.$ac_ext |
| 5613 | cat >>conftest.$ac_ext <<_ACEOF |
| 5614 | /* end confdefs.h. */ |
| 5615 | #include <setjmp.h> |
| 5616 | _ACEOF |
| 5617 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5618 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5619 | ac_status=$? |
| 5620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5621 | rm -f conftest.er1 |
| 5622 | cat conftest.err >&5 |
| 5623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5624 | (exit $ac_status); } >/dev/null; then |
| 5625 | if test -s conftest.err; then |
| 5626 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5627 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5628 | else |
| 5629 | ac_cpp_err= |
| 5630 | fi |
| 5631 | else |
| 5632 | ac_cpp_err=yes |
| 5633 | fi |
| 5634 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5635 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5636 | else |
| 5637 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5639 | |
| 5640 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5641 | fi |
| 5642 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5643 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5644 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5645 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5646 | # So? What about this header? |
| 5647 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5648 | yes:no: ) |
| 5649 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5650 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5651 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 5652 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 5653 | ac_header_preproc=yes |
| 5654 | ;; |
| 5655 | no:yes:* ) |
| 5656 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 5657 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 5658 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 5659 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 5660 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 5661 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 5662 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5663 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5664 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 5665 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 5666 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 5667 | echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} |
| 5668 | ( |
| 5669 | cat <<\_ASBOX |
| 5670 | ## ------------------------------------ ## |
| 5671 | ## Report this to the pjproject lists. ## |
| 5672 | ## ------------------------------------ ## |
| 5673 | _ASBOX |
| 5674 | ) | |
| 5675 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5676 | ;; |
| 5677 | esac |
| 5678 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5679 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
| 5680 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 5681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5682 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5683 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 5684 | fi |
| 5685 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 5686 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
| 5687 | |
| 5688 | fi |
| 5689 | if test $ac_cv_header_setjmp_h = yes; then |
| 5690 | cat >>confdefs.h <<\_ACEOF |
| 5691 | #define PJ_HAS_SETJMP_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5692 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5693 | |
| 5694 | fi |
| 5695 | |
| 5696 | |
| 5697 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 5698 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 5699 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
| 5700 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 5701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5702 | fi |
| 5703 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 5704 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
| 5705 | else |
| 5706 | # Is the header compilable? |
| 5707 | echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 5708 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6 |
| 5709 | cat >conftest.$ac_ext <<_ACEOF |
| 5710 | /* confdefs.h. */ |
| 5711 | _ACEOF |
| 5712 | cat confdefs.h >>conftest.$ac_ext |
| 5713 | cat >>conftest.$ac_ext <<_ACEOF |
| 5714 | /* end confdefs.h. */ |
| 5715 | $ac_includes_default |
| 5716 | #include <stdarg.h> |
| 5717 | _ACEOF |
| 5718 | rm -f conftest.$ac_objext |
| 5719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5720 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5721 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5722 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5723 | rm -f conftest.er1 |
| 5724 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5726 | (exit $ac_status); } && |
| 5727 | { ac_try='test -z "$ac_c_werror_flag" |
| 5728 | || test ! -s conftest.err' |
| 5729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5730 | (eval $ac_try) 2>&5 |
| 5731 | ac_status=$? |
| 5732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5733 | (exit $ac_status); }; } && |
| 5734 | { ac_try='test -s conftest.$ac_objext' |
| 5735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5736 | (eval $ac_try) 2>&5 |
| 5737 | ac_status=$? |
| 5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5739 | (exit $ac_status); }; }; then |
| 5740 | ac_header_compiler=yes |
| 5741 | else |
| 5742 | echo "$as_me: failed program was:" >&5 |
| 5743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5744 | |
| 5745 | ac_header_compiler=no |
| 5746 | fi |
| 5747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5748 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5749 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5750 | |
| 5751 | # Is the header present? |
| 5752 | echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 5753 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6 |
| 5754 | cat >conftest.$ac_ext <<_ACEOF |
| 5755 | /* confdefs.h. */ |
| 5756 | _ACEOF |
| 5757 | cat confdefs.h >>conftest.$ac_ext |
| 5758 | cat >>conftest.$ac_ext <<_ACEOF |
| 5759 | /* end confdefs.h. */ |
| 5760 | #include <stdarg.h> |
| 5761 | _ACEOF |
| 5762 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5763 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5764 | ac_status=$? |
| 5765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5766 | rm -f conftest.er1 |
| 5767 | cat conftest.err >&5 |
| 5768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5769 | (exit $ac_status); } >/dev/null; then |
| 5770 | if test -s conftest.err; then |
| 5771 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5772 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5773 | else |
| 5774 | ac_cpp_err= |
| 5775 | fi |
| 5776 | else |
| 5777 | ac_cpp_err=yes |
| 5778 | fi |
| 5779 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5780 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5781 | else |
| 5782 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5784 | |
| 5785 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5786 | fi |
| 5787 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5788 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5789 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5790 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5791 | # So? What about this header? |
| 5792 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5793 | yes:no: ) |
| 5794 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5795 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5796 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 5797 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 5798 | ac_header_preproc=yes |
| 5799 | ;; |
| 5800 | no:yes:* ) |
| 5801 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 5802 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 5803 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 5804 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 5805 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 5806 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 5807 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5808 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5809 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 5810 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 5811 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 5812 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
| 5813 | ( |
| 5814 | cat <<\_ASBOX |
| 5815 | ## ------------------------------------ ## |
| 5816 | ## Report this to the pjproject lists. ## |
| 5817 | ## ------------------------------------ ## |
| 5818 | _ASBOX |
| 5819 | ) | |
| 5820 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5821 | ;; |
| 5822 | esac |
| 5823 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5824 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
| 5825 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 5826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5827 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5828 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 5829 | fi |
| 5830 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 5831 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
| 5832 | |
| 5833 | fi |
| 5834 | if test $ac_cv_header_stdarg_h = yes; then |
| 5835 | cat >>confdefs.h <<\_ACEOF |
| 5836 | #define PJ_HAS_STDARG_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5837 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5838 | |
| 5839 | fi |
| 5840 | |
| 5841 | |
| 5842 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 5843 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 5844 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
| 5845 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 5846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5847 | fi |
| 5848 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 5849 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
| 5850 | else |
| 5851 | # Is the header compilable? |
| 5852 | echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 5853 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6 |
| 5854 | cat >conftest.$ac_ext <<_ACEOF |
| 5855 | /* confdefs.h. */ |
| 5856 | _ACEOF |
| 5857 | cat confdefs.h >>conftest.$ac_ext |
| 5858 | cat >>conftest.$ac_ext <<_ACEOF |
| 5859 | /* end confdefs.h. */ |
| 5860 | $ac_includes_default |
| 5861 | #include <stddef.h> |
| 5862 | _ACEOF |
| 5863 | rm -f conftest.$ac_objext |
| 5864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5865 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5866 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5867 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5868 | rm -f conftest.er1 |
| 5869 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5871 | (exit $ac_status); } && |
| 5872 | { ac_try='test -z "$ac_c_werror_flag" |
| 5873 | || test ! -s conftest.err' |
| 5874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5875 | (eval $ac_try) 2>&5 |
| 5876 | ac_status=$? |
| 5877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5878 | (exit $ac_status); }; } && |
| 5879 | { ac_try='test -s conftest.$ac_objext' |
| 5880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5881 | (eval $ac_try) 2>&5 |
| 5882 | ac_status=$? |
| 5883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5884 | (exit $ac_status); }; }; then |
| 5885 | ac_header_compiler=yes |
| 5886 | else |
| 5887 | echo "$as_me: failed program was:" >&5 |
| 5888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5889 | |
| 5890 | ac_header_compiler=no |
| 5891 | fi |
| 5892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5893 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5894 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5895 | |
| 5896 | # Is the header present? |
| 5897 | echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 5898 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6 |
| 5899 | cat >conftest.$ac_ext <<_ACEOF |
| 5900 | /* confdefs.h. */ |
| 5901 | _ACEOF |
| 5902 | cat confdefs.h >>conftest.$ac_ext |
| 5903 | cat >>conftest.$ac_ext <<_ACEOF |
| 5904 | /* end confdefs.h. */ |
| 5905 | #include <stddef.h> |
| 5906 | _ACEOF |
| 5907 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5908 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5909 | ac_status=$? |
| 5910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5911 | rm -f conftest.er1 |
| 5912 | cat conftest.err >&5 |
| 5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5914 | (exit $ac_status); } >/dev/null; then |
| 5915 | if test -s conftest.err; then |
| 5916 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5917 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5918 | else |
| 5919 | ac_cpp_err= |
| 5920 | fi |
| 5921 | else |
| 5922 | ac_cpp_err=yes |
| 5923 | fi |
| 5924 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5925 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5926 | else |
| 5927 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5929 | |
| 5930 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5931 | fi |
| 5932 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5933 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5934 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5935 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5936 | # So? What about this header? |
| 5937 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5938 | yes:no: ) |
| 5939 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5940 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5941 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 5942 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 5943 | ac_header_preproc=yes |
| 5944 | ;; |
| 5945 | no:yes:* ) |
| 5946 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 5947 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 5948 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 5949 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 5950 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 5951 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 5952 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5953 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5954 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 5955 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 5956 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 5957 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} |
| 5958 | ( |
| 5959 | cat <<\_ASBOX |
| 5960 | ## ------------------------------------ ## |
| 5961 | ## Report this to the pjproject lists. ## |
| 5962 | ## ------------------------------------ ## |
| 5963 | _ASBOX |
| 5964 | ) | |
| 5965 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5966 | ;; |
| 5967 | esac |
| 5968 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5969 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
| 5970 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 5971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5972 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5973 | ac_cv_header_stddef_h=$ac_header_preproc |
| 5974 | fi |
| 5975 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 5976 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
| 5977 | |
| 5978 | fi |
| 5979 | if test $ac_cv_header_stddef_h = yes; then |
| 5980 | cat >>confdefs.h <<\_ACEOF |
| 5981 | #define PJ_HAS_STDDEF_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5982 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5983 | |
| 5984 | fi |
| 5985 | |
| 5986 | |
| 5987 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 5988 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 5989 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
| 5990 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 5991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5992 | fi |
| 5993 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 5994 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
| 5995 | else |
| 5996 | # Is the header compilable? |
| 5997 | echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 5998 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6 |
| 5999 | cat >conftest.$ac_ext <<_ACEOF |
| 6000 | /* confdefs.h. */ |
| 6001 | _ACEOF |
| 6002 | cat confdefs.h >>conftest.$ac_ext |
| 6003 | cat >>conftest.$ac_ext <<_ACEOF |
| 6004 | /* end confdefs.h. */ |
| 6005 | $ac_includes_default |
| 6006 | #include <stdio.h> |
| 6007 | _ACEOF |
| 6008 | rm -f conftest.$ac_objext |
| 6009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6010 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6011 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6012 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6013 | rm -f conftest.er1 |
| 6014 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6016 | (exit $ac_status); } && |
| 6017 | { ac_try='test -z "$ac_c_werror_flag" |
| 6018 | || test ! -s conftest.err' |
| 6019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6020 | (eval $ac_try) 2>&5 |
| 6021 | ac_status=$? |
| 6022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6023 | (exit $ac_status); }; } && |
| 6024 | { ac_try='test -s conftest.$ac_objext' |
| 6025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6026 | (eval $ac_try) 2>&5 |
| 6027 | ac_status=$? |
| 6028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6029 | (exit $ac_status); }; }; then |
| 6030 | ac_header_compiler=yes |
| 6031 | else |
| 6032 | echo "$as_me: failed program was:" >&5 |
| 6033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6034 | |
| 6035 | ac_header_compiler=no |
| 6036 | fi |
| 6037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6038 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6039 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6040 | |
| 6041 | # Is the header present? |
| 6042 | echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 6043 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6 |
| 6044 | cat >conftest.$ac_ext <<_ACEOF |
| 6045 | /* confdefs.h. */ |
| 6046 | _ACEOF |
| 6047 | cat confdefs.h >>conftest.$ac_ext |
| 6048 | cat >>conftest.$ac_ext <<_ACEOF |
| 6049 | /* end confdefs.h. */ |
| 6050 | #include <stdio.h> |
| 6051 | _ACEOF |
| 6052 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6053 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6054 | ac_status=$? |
| 6055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6056 | rm -f conftest.er1 |
| 6057 | cat conftest.err >&5 |
| 6058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6059 | (exit $ac_status); } >/dev/null; then |
| 6060 | if test -s conftest.err; then |
| 6061 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6062 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6063 | else |
| 6064 | ac_cpp_err= |
| 6065 | fi |
| 6066 | else |
| 6067 | ac_cpp_err=yes |
| 6068 | fi |
| 6069 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6070 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6071 | else |
| 6072 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6074 | |
| 6075 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6076 | fi |
| 6077 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6078 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6079 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6080 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6081 | # So? What about this header? |
| 6082 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6083 | yes:no: ) |
| 6084 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6085 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6086 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 6087 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 6088 | ac_header_preproc=yes |
| 6089 | ;; |
| 6090 | no:yes:* ) |
| 6091 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 6092 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 6093 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 6094 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 6095 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 6096 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 6097 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6098 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6099 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 6100 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 6101 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 6102 | echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} |
| 6103 | ( |
| 6104 | cat <<\_ASBOX |
| 6105 | ## ------------------------------------ ## |
| 6106 | ## Report this to the pjproject lists. ## |
| 6107 | ## ------------------------------------ ## |
| 6108 | _ASBOX |
| 6109 | ) | |
| 6110 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6111 | ;; |
| 6112 | esac |
| 6113 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6114 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
| 6115 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6117 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6118 | ac_cv_header_stdio_h=$ac_header_preproc |
| 6119 | fi |
| 6120 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6121 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
| 6122 | |
| 6123 | fi |
| 6124 | if test $ac_cv_header_stdio_h = yes; then |
| 6125 | cat >>confdefs.h <<\_ACEOF |
| 6126 | #define PJ_HAS_STDIO_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6127 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6128 | |
| 6129 | fi |
| 6130 | |
| 6131 | |
| 6132 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 6133 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 6134 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
| 6135 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 6136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6137 | fi |
| 6138 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 6139 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
| 6140 | else |
| 6141 | # Is the header compilable? |
| 6142 | echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 6143 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 |
| 6144 | cat >conftest.$ac_ext <<_ACEOF |
| 6145 | /* confdefs.h. */ |
| 6146 | _ACEOF |
| 6147 | cat confdefs.h >>conftest.$ac_ext |
| 6148 | cat >>conftest.$ac_ext <<_ACEOF |
| 6149 | /* end confdefs.h. */ |
| 6150 | $ac_includes_default |
| 6151 | #include <stdlib.h> |
| 6152 | _ACEOF |
| 6153 | rm -f conftest.$ac_objext |
| 6154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6155 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6156 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6157 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6158 | rm -f conftest.er1 |
| 6159 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6161 | (exit $ac_status); } && |
| 6162 | { ac_try='test -z "$ac_c_werror_flag" |
| 6163 | || test ! -s conftest.err' |
| 6164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6165 | (eval $ac_try) 2>&5 |
| 6166 | ac_status=$? |
| 6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6168 | (exit $ac_status); }; } && |
| 6169 | { ac_try='test -s conftest.$ac_objext' |
| 6170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6171 | (eval $ac_try) 2>&5 |
| 6172 | ac_status=$? |
| 6173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6174 | (exit $ac_status); }; }; then |
| 6175 | ac_header_compiler=yes |
| 6176 | else |
| 6177 | echo "$as_me: failed program was:" >&5 |
| 6178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6179 | |
| 6180 | ac_header_compiler=no |
| 6181 | fi |
| 6182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6183 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6184 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6185 | |
| 6186 | # Is the header present? |
| 6187 | echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 6188 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 |
| 6189 | cat >conftest.$ac_ext <<_ACEOF |
| 6190 | /* confdefs.h. */ |
| 6191 | _ACEOF |
| 6192 | cat confdefs.h >>conftest.$ac_ext |
| 6193 | cat >>conftest.$ac_ext <<_ACEOF |
| 6194 | /* end confdefs.h. */ |
| 6195 | #include <stdlib.h> |
| 6196 | _ACEOF |
| 6197 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6198 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6199 | ac_status=$? |
| 6200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6201 | rm -f conftest.er1 |
| 6202 | cat conftest.err >&5 |
| 6203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6204 | (exit $ac_status); } >/dev/null; then |
| 6205 | if test -s conftest.err; then |
| 6206 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6207 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6208 | else |
| 6209 | ac_cpp_err= |
| 6210 | fi |
| 6211 | else |
| 6212 | ac_cpp_err=yes |
| 6213 | fi |
| 6214 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6215 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6216 | else |
| 6217 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6219 | |
| 6220 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6221 | fi |
| 6222 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6223 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6224 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6225 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6226 | # So? What about this header? |
| 6227 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6228 | yes:no: ) |
| 6229 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6230 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6231 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 6232 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 6233 | ac_header_preproc=yes |
| 6234 | ;; |
| 6235 | no:yes:* ) |
| 6236 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 6237 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 6238 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 6239 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 6240 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 6241 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 6242 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6243 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6244 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 6245 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 6246 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 6247 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} |
| 6248 | ( |
| 6249 | cat <<\_ASBOX |
| 6250 | ## ------------------------------------ ## |
| 6251 | ## Report this to the pjproject lists. ## |
| 6252 | ## ------------------------------------ ## |
| 6253 | _ASBOX |
| 6254 | ) | |
| 6255 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6256 | ;; |
| 6257 | esac |
| 6258 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6259 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
| 6260 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 6261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6262 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6263 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 6264 | fi |
| 6265 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 6266 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
| 6267 | |
| 6268 | fi |
| 6269 | if test $ac_cv_header_stdlib_h = yes; then |
| 6270 | cat >>confdefs.h <<\_ACEOF |
| 6271 | #define PJ_HAS_STDLIB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6272 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6273 | |
| 6274 | fi |
| 6275 | |
| 6276 | |
| 6277 | if test "${ac_cv_header_string_h+set}" = set; then |
| 6278 | echo "$as_me:$LINENO: checking for string.h" >&5 |
| 6279 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
| 6280 | if test "${ac_cv_header_string_h+set}" = set; then |
| 6281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6282 | fi |
| 6283 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 6284 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
| 6285 | else |
| 6286 | # Is the header compilable? |
| 6287 | echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 6288 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 |
| 6289 | cat >conftest.$ac_ext <<_ACEOF |
| 6290 | /* confdefs.h. */ |
| 6291 | _ACEOF |
| 6292 | cat confdefs.h >>conftest.$ac_ext |
| 6293 | cat >>conftest.$ac_ext <<_ACEOF |
| 6294 | /* end confdefs.h. */ |
| 6295 | $ac_includes_default |
| 6296 | #include <string.h> |
| 6297 | _ACEOF |
| 6298 | rm -f conftest.$ac_objext |
| 6299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6300 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6301 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6302 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6303 | rm -f conftest.er1 |
| 6304 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6306 | (exit $ac_status); } && |
| 6307 | { ac_try='test -z "$ac_c_werror_flag" |
| 6308 | || test ! -s conftest.err' |
| 6309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6310 | (eval $ac_try) 2>&5 |
| 6311 | ac_status=$? |
| 6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6313 | (exit $ac_status); }; } && |
| 6314 | { ac_try='test -s conftest.$ac_objext' |
| 6315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6316 | (eval $ac_try) 2>&5 |
| 6317 | ac_status=$? |
| 6318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6319 | (exit $ac_status); }; }; then |
| 6320 | ac_header_compiler=yes |
| 6321 | else |
| 6322 | echo "$as_me: failed program was:" >&5 |
| 6323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6324 | |
| 6325 | ac_header_compiler=no |
| 6326 | fi |
| 6327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6328 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6329 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6330 | |
| 6331 | # Is the header present? |
| 6332 | echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 6333 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 |
| 6334 | cat >conftest.$ac_ext <<_ACEOF |
| 6335 | /* confdefs.h. */ |
| 6336 | _ACEOF |
| 6337 | cat confdefs.h >>conftest.$ac_ext |
| 6338 | cat >>conftest.$ac_ext <<_ACEOF |
| 6339 | /* end confdefs.h. */ |
| 6340 | #include <string.h> |
| 6341 | _ACEOF |
| 6342 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6343 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6344 | ac_status=$? |
| 6345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6346 | rm -f conftest.er1 |
| 6347 | cat conftest.err >&5 |
| 6348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6349 | (exit $ac_status); } >/dev/null; then |
| 6350 | if test -s conftest.err; then |
| 6351 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6352 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6353 | else |
| 6354 | ac_cpp_err= |
| 6355 | fi |
| 6356 | else |
| 6357 | ac_cpp_err=yes |
| 6358 | fi |
| 6359 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6360 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6361 | else |
| 6362 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6364 | |
| 6365 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6366 | fi |
| 6367 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6368 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6369 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6370 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6371 | # So? What about this header? |
| 6372 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6373 | yes:no: ) |
| 6374 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6375 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6376 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 6377 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 6378 | ac_header_preproc=yes |
| 6379 | ;; |
| 6380 | no:yes:* ) |
| 6381 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 6382 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 6383 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 6384 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 6385 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 6386 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 6387 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6388 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6389 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 6390 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 6391 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 6392 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} |
| 6393 | ( |
| 6394 | cat <<\_ASBOX |
| 6395 | ## ------------------------------------ ## |
| 6396 | ## Report this to the pjproject lists. ## |
| 6397 | ## ------------------------------------ ## |
| 6398 | _ASBOX |
| 6399 | ) | |
| 6400 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6401 | ;; |
| 6402 | esac |
| 6403 | echo "$as_me:$LINENO: checking for string.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6404 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
| 6405 | if test "${ac_cv_header_string_h+set}" = set; then |
| 6406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6407 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6408 | ac_cv_header_string_h=$ac_header_preproc |
| 6409 | fi |
| 6410 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 6411 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
| 6412 | |
| 6413 | fi |
| 6414 | if test $ac_cv_header_string_h = yes; then |
| 6415 | cat >>confdefs.h <<\_ACEOF |
| 6416 | #define PJ_HAS_STRING_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6417 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6418 | |
| 6419 | fi |
| 6420 | |
| 6421 | |
| 6422 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 6423 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 6424 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
| 6425 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 6426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6427 | fi |
| 6428 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 6429 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
| 6430 | else |
| 6431 | # Is the header compilable? |
| 6432 | echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 6433 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6 |
| 6434 | cat >conftest.$ac_ext <<_ACEOF |
| 6435 | /* confdefs.h. */ |
| 6436 | _ACEOF |
| 6437 | cat confdefs.h >>conftest.$ac_ext |
| 6438 | cat >>conftest.$ac_ext <<_ACEOF |
| 6439 | /* end confdefs.h. */ |
| 6440 | $ac_includes_default |
| 6441 | #include <sys/ioctl.h> |
| 6442 | _ACEOF |
| 6443 | rm -f conftest.$ac_objext |
| 6444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6445 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6446 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6447 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6448 | rm -f conftest.er1 |
| 6449 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6451 | (exit $ac_status); } && |
| 6452 | { ac_try='test -z "$ac_c_werror_flag" |
| 6453 | || test ! -s conftest.err' |
| 6454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6455 | (eval $ac_try) 2>&5 |
| 6456 | ac_status=$? |
| 6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6458 | (exit $ac_status); }; } && |
| 6459 | { ac_try='test -s conftest.$ac_objext' |
| 6460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6461 | (eval $ac_try) 2>&5 |
| 6462 | ac_status=$? |
| 6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6464 | (exit $ac_status); }; }; then |
| 6465 | ac_header_compiler=yes |
| 6466 | else |
| 6467 | echo "$as_me: failed program was:" >&5 |
| 6468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6469 | |
| 6470 | ac_header_compiler=no |
| 6471 | fi |
| 6472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6473 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6474 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6475 | |
| 6476 | # Is the header present? |
| 6477 | echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 6478 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6 |
| 6479 | cat >conftest.$ac_ext <<_ACEOF |
| 6480 | /* confdefs.h. */ |
| 6481 | _ACEOF |
| 6482 | cat confdefs.h >>conftest.$ac_ext |
| 6483 | cat >>conftest.$ac_ext <<_ACEOF |
| 6484 | /* end confdefs.h. */ |
| 6485 | #include <sys/ioctl.h> |
| 6486 | _ACEOF |
| 6487 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6488 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6489 | ac_status=$? |
| 6490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6491 | rm -f conftest.er1 |
| 6492 | cat conftest.err >&5 |
| 6493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6494 | (exit $ac_status); } >/dev/null; then |
| 6495 | if test -s conftest.err; then |
| 6496 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6497 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6498 | else |
| 6499 | ac_cpp_err= |
| 6500 | fi |
| 6501 | else |
| 6502 | ac_cpp_err=yes |
| 6503 | fi |
| 6504 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6505 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6506 | else |
| 6507 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6509 | |
| 6510 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6511 | fi |
| 6512 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6513 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6514 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6515 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6516 | # So? What about this header? |
| 6517 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6518 | yes:no: ) |
| 6519 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6520 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6521 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 6522 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 6523 | ac_header_preproc=yes |
| 6524 | ;; |
| 6525 | no:yes:* ) |
| 6526 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 6527 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 6528 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 6529 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 6530 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 6531 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 6532 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6533 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6534 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 6535 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 6536 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 6537 | echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} |
| 6538 | ( |
| 6539 | cat <<\_ASBOX |
| 6540 | ## ------------------------------------ ## |
| 6541 | ## Report this to the pjproject lists. ## |
| 6542 | ## ------------------------------------ ## |
| 6543 | _ASBOX |
| 6544 | ) | |
| 6545 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6546 | ;; |
| 6547 | esac |
| 6548 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6549 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
| 6550 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 6551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6552 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6553 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 6554 | fi |
| 6555 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 6556 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
| 6557 | |
| 6558 | fi |
| 6559 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 6560 | cat >>confdefs.h <<\_ACEOF |
| 6561 | #define PJ_HAS_SYS_IOCTL_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6562 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6563 | |
| 6564 | fi |
| 6565 | |
| 6566 | |
| 6567 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 6568 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 6569 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
| 6570 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 6571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6572 | fi |
| 6573 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 6574 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
| 6575 | else |
| 6576 | # Is the header compilable? |
| 6577 | echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 6578 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6 |
| 6579 | cat >conftest.$ac_ext <<_ACEOF |
| 6580 | /* confdefs.h. */ |
| 6581 | _ACEOF |
| 6582 | cat confdefs.h >>conftest.$ac_ext |
| 6583 | cat >>conftest.$ac_ext <<_ACEOF |
| 6584 | /* end confdefs.h. */ |
| 6585 | $ac_includes_default |
| 6586 | #include <sys/select.h> |
| 6587 | _ACEOF |
| 6588 | rm -f conftest.$ac_objext |
| 6589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6590 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6591 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6592 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6593 | rm -f conftest.er1 |
| 6594 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6596 | (exit $ac_status); } && |
| 6597 | { ac_try='test -z "$ac_c_werror_flag" |
| 6598 | || test ! -s conftest.err' |
| 6599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6600 | (eval $ac_try) 2>&5 |
| 6601 | ac_status=$? |
| 6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6603 | (exit $ac_status); }; } && |
| 6604 | { ac_try='test -s conftest.$ac_objext' |
| 6605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6606 | (eval $ac_try) 2>&5 |
| 6607 | ac_status=$? |
| 6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6609 | (exit $ac_status); }; }; then |
| 6610 | ac_header_compiler=yes |
| 6611 | else |
| 6612 | echo "$as_me: failed program was:" >&5 |
| 6613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6614 | |
| 6615 | ac_header_compiler=no |
| 6616 | fi |
| 6617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6618 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6619 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6620 | |
| 6621 | # Is the header present? |
| 6622 | echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 6623 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6 |
| 6624 | cat >conftest.$ac_ext <<_ACEOF |
| 6625 | /* confdefs.h. */ |
| 6626 | _ACEOF |
| 6627 | cat confdefs.h >>conftest.$ac_ext |
| 6628 | cat >>conftest.$ac_ext <<_ACEOF |
| 6629 | /* end confdefs.h. */ |
| 6630 | #include <sys/select.h> |
| 6631 | _ACEOF |
| 6632 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6633 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6634 | ac_status=$? |
| 6635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6636 | rm -f conftest.er1 |
| 6637 | cat conftest.err >&5 |
| 6638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6639 | (exit $ac_status); } >/dev/null; then |
| 6640 | if test -s conftest.err; then |
| 6641 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6642 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6643 | else |
| 6644 | ac_cpp_err= |
| 6645 | fi |
| 6646 | else |
| 6647 | ac_cpp_err=yes |
| 6648 | fi |
| 6649 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6650 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6651 | else |
| 6652 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6654 | |
| 6655 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6656 | fi |
| 6657 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6658 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6659 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6660 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6661 | # So? What about this header? |
| 6662 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6663 | yes:no: ) |
| 6664 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6665 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6666 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 6667 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 6668 | ac_header_preproc=yes |
| 6669 | ;; |
| 6670 | no:yes:* ) |
| 6671 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 6672 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 6673 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 6674 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 6675 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 6676 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 6677 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6678 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6679 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 6680 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 6681 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 6682 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} |
| 6683 | ( |
| 6684 | cat <<\_ASBOX |
| 6685 | ## ------------------------------------ ## |
| 6686 | ## Report this to the pjproject lists. ## |
| 6687 | ## ------------------------------------ ## |
| 6688 | _ASBOX |
| 6689 | ) | |
| 6690 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6691 | ;; |
| 6692 | esac |
| 6693 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6694 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
| 6695 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 6696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6697 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6698 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 6699 | fi |
| 6700 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 6701 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
| 6702 | |
| 6703 | fi |
| 6704 | if test $ac_cv_header_sys_select_h = yes; then |
| 6705 | cat >>confdefs.h <<\_ACEOF |
| 6706 | #define PJ_HAS_SYS_SELECT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6707 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6708 | |
| 6709 | fi |
| 6710 | |
| 6711 | |
| 6712 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 6713 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 6714 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
| 6715 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 6716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6717 | fi |
| 6718 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 6719 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
| 6720 | else |
| 6721 | # Is the header compilable? |
| 6722 | echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 6723 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6 |
| 6724 | cat >conftest.$ac_ext <<_ACEOF |
| 6725 | /* confdefs.h. */ |
| 6726 | _ACEOF |
| 6727 | cat confdefs.h >>conftest.$ac_ext |
| 6728 | cat >>conftest.$ac_ext <<_ACEOF |
| 6729 | /* end confdefs.h. */ |
| 6730 | $ac_includes_default |
| 6731 | #include <sys/socket.h> |
| 6732 | _ACEOF |
| 6733 | rm -f conftest.$ac_objext |
| 6734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6735 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6736 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6737 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6738 | rm -f conftest.er1 |
| 6739 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6741 | (exit $ac_status); } && |
| 6742 | { ac_try='test -z "$ac_c_werror_flag" |
| 6743 | || test ! -s conftest.err' |
| 6744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6745 | (eval $ac_try) 2>&5 |
| 6746 | ac_status=$? |
| 6747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6748 | (exit $ac_status); }; } && |
| 6749 | { ac_try='test -s conftest.$ac_objext' |
| 6750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6751 | (eval $ac_try) 2>&5 |
| 6752 | ac_status=$? |
| 6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6754 | (exit $ac_status); }; }; then |
| 6755 | ac_header_compiler=yes |
| 6756 | else |
| 6757 | echo "$as_me: failed program was:" >&5 |
| 6758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6759 | |
| 6760 | ac_header_compiler=no |
| 6761 | fi |
| 6762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6763 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6764 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6765 | |
| 6766 | # Is the header present? |
| 6767 | echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 6768 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6 |
| 6769 | cat >conftest.$ac_ext <<_ACEOF |
| 6770 | /* confdefs.h. */ |
| 6771 | _ACEOF |
| 6772 | cat confdefs.h >>conftest.$ac_ext |
| 6773 | cat >>conftest.$ac_ext <<_ACEOF |
| 6774 | /* end confdefs.h. */ |
| 6775 | #include <sys/socket.h> |
| 6776 | _ACEOF |
| 6777 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6778 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6779 | ac_status=$? |
| 6780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6781 | rm -f conftest.er1 |
| 6782 | cat conftest.err >&5 |
| 6783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6784 | (exit $ac_status); } >/dev/null; then |
| 6785 | if test -s conftest.err; then |
| 6786 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6787 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6788 | else |
| 6789 | ac_cpp_err= |
| 6790 | fi |
| 6791 | else |
| 6792 | ac_cpp_err=yes |
| 6793 | fi |
| 6794 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6795 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6796 | else |
| 6797 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6799 | |
| 6800 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6801 | fi |
| 6802 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6803 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6804 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6805 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6806 | # So? What about this header? |
| 6807 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6808 | yes:no: ) |
| 6809 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6810 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6811 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 6812 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 6813 | ac_header_preproc=yes |
| 6814 | ;; |
| 6815 | no:yes:* ) |
| 6816 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 6817 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 6818 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 6819 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 6820 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 6821 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 6822 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6823 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6824 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 6825 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 6826 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 6827 | echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
| 6828 | ( |
| 6829 | cat <<\_ASBOX |
| 6830 | ## ------------------------------------ ## |
| 6831 | ## Report this to the pjproject lists. ## |
| 6832 | ## ------------------------------------ ## |
| 6833 | _ASBOX |
| 6834 | ) | |
| 6835 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6836 | ;; |
| 6837 | esac |
| 6838 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6839 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
| 6840 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 6841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6842 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6843 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 6844 | fi |
| 6845 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 6846 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
| 6847 | |
| 6848 | fi |
| 6849 | if test $ac_cv_header_sys_socket_h = yes; then |
| 6850 | cat >>confdefs.h <<\_ACEOF |
| 6851 | #define PJ_HAS_SYS_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6852 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6853 | |
| 6854 | fi |
| 6855 | |
| 6856 | |
| 6857 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 6858 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 6859 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
| 6860 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 6861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6862 | fi |
| 6863 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 6864 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
| 6865 | else |
| 6866 | # Is the header compilable? |
| 6867 | echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 6868 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6 |
| 6869 | cat >conftest.$ac_ext <<_ACEOF |
| 6870 | /* confdefs.h. */ |
| 6871 | _ACEOF |
| 6872 | cat confdefs.h >>conftest.$ac_ext |
| 6873 | cat >>conftest.$ac_ext <<_ACEOF |
| 6874 | /* end confdefs.h. */ |
| 6875 | $ac_includes_default |
| 6876 | #include <sys/time.h> |
| 6877 | _ACEOF |
| 6878 | rm -f conftest.$ac_objext |
| 6879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6880 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6881 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6882 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6883 | rm -f conftest.er1 |
| 6884 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6886 | (exit $ac_status); } && |
| 6887 | { ac_try='test -z "$ac_c_werror_flag" |
| 6888 | || test ! -s conftest.err' |
| 6889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6890 | (eval $ac_try) 2>&5 |
| 6891 | ac_status=$? |
| 6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6893 | (exit $ac_status); }; } && |
| 6894 | { ac_try='test -s conftest.$ac_objext' |
| 6895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6896 | (eval $ac_try) 2>&5 |
| 6897 | ac_status=$? |
| 6898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6899 | (exit $ac_status); }; }; then |
| 6900 | ac_header_compiler=yes |
| 6901 | else |
| 6902 | echo "$as_me: failed program was:" >&5 |
| 6903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6904 | |
| 6905 | ac_header_compiler=no |
| 6906 | fi |
| 6907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6908 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6909 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6910 | |
| 6911 | # Is the header present? |
| 6912 | echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 6913 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6 |
| 6914 | cat >conftest.$ac_ext <<_ACEOF |
| 6915 | /* confdefs.h. */ |
| 6916 | _ACEOF |
| 6917 | cat confdefs.h >>conftest.$ac_ext |
| 6918 | cat >>conftest.$ac_ext <<_ACEOF |
| 6919 | /* end confdefs.h. */ |
| 6920 | #include <sys/time.h> |
| 6921 | _ACEOF |
| 6922 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6923 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6924 | ac_status=$? |
| 6925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6926 | rm -f conftest.er1 |
| 6927 | cat conftest.err >&5 |
| 6928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6929 | (exit $ac_status); } >/dev/null; then |
| 6930 | if test -s conftest.err; then |
| 6931 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6932 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6933 | else |
| 6934 | ac_cpp_err= |
| 6935 | fi |
| 6936 | else |
| 6937 | ac_cpp_err=yes |
| 6938 | fi |
| 6939 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6940 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6941 | else |
| 6942 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6944 | |
| 6945 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6946 | fi |
| 6947 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6948 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6949 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6950 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6951 | # So? What about this header? |
| 6952 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6953 | yes:no: ) |
| 6954 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6955 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6956 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 6957 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 6958 | ac_header_preproc=yes |
| 6959 | ;; |
| 6960 | no:yes:* ) |
| 6961 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 6962 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 6963 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 6964 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 6965 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 6966 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 6967 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6968 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6969 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 6970 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 6971 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 6972 | echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} |
| 6973 | ( |
| 6974 | cat <<\_ASBOX |
| 6975 | ## ------------------------------------ ## |
| 6976 | ## Report this to the pjproject lists. ## |
| 6977 | ## ------------------------------------ ## |
| 6978 | _ASBOX |
| 6979 | ) | |
| 6980 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6981 | ;; |
| 6982 | esac |
| 6983 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6984 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
| 6985 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 6986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6987 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6988 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 6989 | fi |
| 6990 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 6991 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
| 6992 | |
| 6993 | fi |
| 6994 | if test $ac_cv_header_sys_time_h = yes; then |
| 6995 | cat >>confdefs.h <<\_ACEOF |
| 6996 | #define PJ_HAS_SYS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6997 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6998 | |
| 6999 | fi |
| 7000 | |
| 7001 | |
| 7002 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7003 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 7004 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
| 7005 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7007 | fi |
| 7008 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 7009 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
| 7010 | else |
| 7011 | # Is the header compilable? |
| 7012 | echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 7013 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6 |
| 7014 | cat >conftest.$ac_ext <<_ACEOF |
| 7015 | /* confdefs.h. */ |
| 7016 | _ACEOF |
| 7017 | cat confdefs.h >>conftest.$ac_ext |
| 7018 | cat >>conftest.$ac_ext <<_ACEOF |
| 7019 | /* end confdefs.h. */ |
| 7020 | $ac_includes_default |
| 7021 | #include <sys/timeb.h> |
| 7022 | _ACEOF |
| 7023 | rm -f conftest.$ac_objext |
| 7024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7025 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7026 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7027 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7028 | rm -f conftest.er1 |
| 7029 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7031 | (exit $ac_status); } && |
| 7032 | { ac_try='test -z "$ac_c_werror_flag" |
| 7033 | || test ! -s conftest.err' |
| 7034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7035 | (eval $ac_try) 2>&5 |
| 7036 | ac_status=$? |
| 7037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7038 | (exit $ac_status); }; } && |
| 7039 | { ac_try='test -s conftest.$ac_objext' |
| 7040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7041 | (eval $ac_try) 2>&5 |
| 7042 | ac_status=$? |
| 7043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7044 | (exit $ac_status); }; }; then |
| 7045 | ac_header_compiler=yes |
| 7046 | else |
| 7047 | echo "$as_me: failed program was:" >&5 |
| 7048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7049 | |
| 7050 | ac_header_compiler=no |
| 7051 | fi |
| 7052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7053 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7054 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7055 | |
| 7056 | # Is the header present? |
| 7057 | echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 7058 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6 |
| 7059 | cat >conftest.$ac_ext <<_ACEOF |
| 7060 | /* confdefs.h. */ |
| 7061 | _ACEOF |
| 7062 | cat confdefs.h >>conftest.$ac_ext |
| 7063 | cat >>conftest.$ac_ext <<_ACEOF |
| 7064 | /* end confdefs.h. */ |
| 7065 | #include <sys/timeb.h> |
| 7066 | _ACEOF |
| 7067 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7068 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7069 | ac_status=$? |
| 7070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7071 | rm -f conftest.er1 |
| 7072 | cat conftest.err >&5 |
| 7073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7074 | (exit $ac_status); } >/dev/null; then |
| 7075 | if test -s conftest.err; then |
| 7076 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7077 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7078 | else |
| 7079 | ac_cpp_err= |
| 7080 | fi |
| 7081 | else |
| 7082 | ac_cpp_err=yes |
| 7083 | fi |
| 7084 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7085 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7086 | else |
| 7087 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7089 | |
| 7090 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7091 | fi |
| 7092 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7093 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7094 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7095 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7096 | # So? What about this header? |
| 7097 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7098 | yes:no: ) |
| 7099 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7100 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7101 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 7102 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 7103 | ac_header_preproc=yes |
| 7104 | ;; |
| 7105 | no:yes:* ) |
| 7106 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 7107 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 7108 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 7109 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 7110 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 7111 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 7112 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7113 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7114 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 7115 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 7116 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 7117 | echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} |
| 7118 | ( |
| 7119 | cat <<\_ASBOX |
| 7120 | ## ------------------------------------ ## |
| 7121 | ## Report this to the pjproject lists. ## |
| 7122 | ## ------------------------------------ ## |
| 7123 | _ASBOX |
| 7124 | ) | |
| 7125 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7126 | ;; |
| 7127 | esac |
| 7128 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7129 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
| 7130 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7132 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7133 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 7134 | fi |
| 7135 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 7136 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
| 7137 | |
| 7138 | fi |
| 7139 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 7140 | cat >>confdefs.h <<\_ACEOF |
| 7141 | #define PJ_HAS_SYS_TIMEB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7142 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7143 | |
| 7144 | fi |
| 7145 | |
| 7146 | |
| 7147 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7148 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 7149 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
| 7150 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7152 | fi |
| 7153 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 7154 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
| 7155 | else |
| 7156 | # Is the header compilable? |
| 7157 | echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 7158 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 |
| 7159 | cat >conftest.$ac_ext <<_ACEOF |
| 7160 | /* confdefs.h. */ |
| 7161 | _ACEOF |
| 7162 | cat confdefs.h >>conftest.$ac_ext |
| 7163 | cat >>conftest.$ac_ext <<_ACEOF |
| 7164 | /* end confdefs.h. */ |
| 7165 | $ac_includes_default |
| 7166 | #include <sys/types.h> |
| 7167 | _ACEOF |
| 7168 | rm -f conftest.$ac_objext |
| 7169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7170 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7171 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7172 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7173 | rm -f conftest.er1 |
| 7174 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7176 | (exit $ac_status); } && |
| 7177 | { ac_try='test -z "$ac_c_werror_flag" |
| 7178 | || test ! -s conftest.err' |
| 7179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7180 | (eval $ac_try) 2>&5 |
| 7181 | ac_status=$? |
| 7182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7183 | (exit $ac_status); }; } && |
| 7184 | { ac_try='test -s conftest.$ac_objext' |
| 7185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7186 | (eval $ac_try) 2>&5 |
| 7187 | ac_status=$? |
| 7188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7189 | (exit $ac_status); }; }; then |
| 7190 | ac_header_compiler=yes |
| 7191 | else |
| 7192 | echo "$as_me: failed program was:" >&5 |
| 7193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7194 | |
| 7195 | ac_header_compiler=no |
| 7196 | fi |
| 7197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7198 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7199 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7200 | |
| 7201 | # Is the header present? |
| 7202 | echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 7203 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 |
| 7204 | cat >conftest.$ac_ext <<_ACEOF |
| 7205 | /* confdefs.h. */ |
| 7206 | _ACEOF |
| 7207 | cat confdefs.h >>conftest.$ac_ext |
| 7208 | cat >>conftest.$ac_ext <<_ACEOF |
| 7209 | /* end confdefs.h. */ |
| 7210 | #include <sys/types.h> |
| 7211 | _ACEOF |
| 7212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7214 | ac_status=$? |
| 7215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7216 | rm -f conftest.er1 |
| 7217 | cat conftest.err >&5 |
| 7218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7219 | (exit $ac_status); } >/dev/null; then |
| 7220 | if test -s conftest.err; then |
| 7221 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7222 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7223 | else |
| 7224 | ac_cpp_err= |
| 7225 | fi |
| 7226 | else |
| 7227 | ac_cpp_err=yes |
| 7228 | fi |
| 7229 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7230 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7231 | else |
| 7232 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7234 | |
| 7235 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7236 | fi |
| 7237 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7238 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7239 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7240 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7241 | # So? What about this header? |
| 7242 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7243 | yes:no: ) |
| 7244 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7245 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7246 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 7247 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 7248 | ac_header_preproc=yes |
| 7249 | ;; |
| 7250 | no:yes:* ) |
| 7251 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 7252 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 7253 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 7254 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 7255 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 7256 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 7257 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7258 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7259 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 7260 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 7261 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 7262 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
| 7263 | ( |
| 7264 | cat <<\_ASBOX |
| 7265 | ## ------------------------------------ ## |
| 7266 | ## Report this to the pjproject lists. ## |
| 7267 | ## ------------------------------------ ## |
| 7268 | _ASBOX |
| 7269 | ) | |
| 7270 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7271 | ;; |
| 7272 | esac |
| 7273 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7274 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
| 7275 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7277 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7278 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 7279 | fi |
| 7280 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 7281 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
| 7282 | |
| 7283 | fi |
| 7284 | if test $ac_cv_header_sys_types_h = yes; then |
| 7285 | cat >>confdefs.h <<\_ACEOF |
| 7286 | #define PJ_HAS_SYS_TYPES_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7287 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7288 | |
| 7289 | fi |
| 7290 | |
| 7291 | |
| 7292 | if test "${ac_cv_header_time_h+set}" = set; then |
| 7293 | echo "$as_me:$LINENO: checking for time.h" >&5 |
| 7294 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
| 7295 | if test "${ac_cv_header_time_h+set}" = set; then |
| 7296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7297 | fi |
| 7298 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 7299 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
| 7300 | else |
| 7301 | # Is the header compilable? |
| 7302 | echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 7303 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6 |
| 7304 | cat >conftest.$ac_ext <<_ACEOF |
| 7305 | /* confdefs.h. */ |
| 7306 | _ACEOF |
| 7307 | cat confdefs.h >>conftest.$ac_ext |
| 7308 | cat >>conftest.$ac_ext <<_ACEOF |
| 7309 | /* end confdefs.h. */ |
| 7310 | $ac_includes_default |
| 7311 | #include <time.h> |
| 7312 | _ACEOF |
| 7313 | rm -f conftest.$ac_objext |
| 7314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7315 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7316 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7317 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7318 | rm -f conftest.er1 |
| 7319 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7321 | (exit $ac_status); } && |
| 7322 | { ac_try='test -z "$ac_c_werror_flag" |
| 7323 | || test ! -s conftest.err' |
| 7324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7325 | (eval $ac_try) 2>&5 |
| 7326 | ac_status=$? |
| 7327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7328 | (exit $ac_status); }; } && |
| 7329 | { ac_try='test -s conftest.$ac_objext' |
| 7330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7331 | (eval $ac_try) 2>&5 |
| 7332 | ac_status=$? |
| 7333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7334 | (exit $ac_status); }; }; then |
| 7335 | ac_header_compiler=yes |
| 7336 | else |
| 7337 | echo "$as_me: failed program was:" >&5 |
| 7338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7339 | |
| 7340 | ac_header_compiler=no |
| 7341 | fi |
| 7342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7343 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7344 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7345 | |
| 7346 | # Is the header present? |
| 7347 | echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 7348 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6 |
| 7349 | cat >conftest.$ac_ext <<_ACEOF |
| 7350 | /* confdefs.h. */ |
| 7351 | _ACEOF |
| 7352 | cat confdefs.h >>conftest.$ac_ext |
| 7353 | cat >>conftest.$ac_ext <<_ACEOF |
| 7354 | /* end confdefs.h. */ |
| 7355 | #include <time.h> |
| 7356 | _ACEOF |
| 7357 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7358 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7359 | ac_status=$? |
| 7360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7361 | rm -f conftest.er1 |
| 7362 | cat conftest.err >&5 |
| 7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7364 | (exit $ac_status); } >/dev/null; then |
| 7365 | if test -s conftest.err; then |
| 7366 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7367 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7368 | else |
| 7369 | ac_cpp_err= |
| 7370 | fi |
| 7371 | else |
| 7372 | ac_cpp_err=yes |
| 7373 | fi |
| 7374 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7375 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7376 | else |
| 7377 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7379 | |
| 7380 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7381 | fi |
| 7382 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7383 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7384 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7385 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7386 | # So? What about this header? |
| 7387 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7388 | yes:no: ) |
| 7389 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7390 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7391 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 7392 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 7393 | ac_header_preproc=yes |
| 7394 | ;; |
| 7395 | no:yes:* ) |
| 7396 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 7397 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 7398 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 7399 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 7400 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 7401 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 7402 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7403 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7404 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 7405 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 7406 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 7407 | echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} |
| 7408 | ( |
| 7409 | cat <<\_ASBOX |
| 7410 | ## ------------------------------------ ## |
| 7411 | ## Report this to the pjproject lists. ## |
| 7412 | ## ------------------------------------ ## |
| 7413 | _ASBOX |
| 7414 | ) | |
| 7415 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7416 | ;; |
| 7417 | esac |
| 7418 | echo "$as_me:$LINENO: checking for time.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7419 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
| 7420 | if test "${ac_cv_header_time_h+set}" = set; then |
| 7421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7422 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7423 | ac_cv_header_time_h=$ac_header_preproc |
| 7424 | fi |
| 7425 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 7426 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
| 7427 | |
| 7428 | fi |
| 7429 | if test $ac_cv_header_time_h = yes; then |
| 7430 | cat >>confdefs.h <<\_ACEOF |
| 7431 | #define PJ_HAS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7432 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7433 | |
| 7434 | fi |
| 7435 | |
| 7436 | |
| 7437 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 7438 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 7439 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
| 7440 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 7441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7442 | fi |
| 7443 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 7444 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
| 7445 | else |
| 7446 | # Is the header compilable? |
| 7447 | echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 7448 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6 |
| 7449 | cat >conftest.$ac_ext <<_ACEOF |
| 7450 | /* confdefs.h. */ |
| 7451 | _ACEOF |
| 7452 | cat confdefs.h >>conftest.$ac_ext |
| 7453 | cat >>conftest.$ac_ext <<_ACEOF |
| 7454 | /* end confdefs.h. */ |
| 7455 | $ac_includes_default |
| 7456 | #include <unistd.h> |
| 7457 | _ACEOF |
| 7458 | rm -f conftest.$ac_objext |
| 7459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7460 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7461 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7462 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7463 | rm -f conftest.er1 |
| 7464 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7466 | (exit $ac_status); } && |
| 7467 | { ac_try='test -z "$ac_c_werror_flag" |
| 7468 | || test ! -s conftest.err' |
| 7469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7470 | (eval $ac_try) 2>&5 |
| 7471 | ac_status=$? |
| 7472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7473 | (exit $ac_status); }; } && |
| 7474 | { ac_try='test -s conftest.$ac_objext' |
| 7475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7476 | (eval $ac_try) 2>&5 |
| 7477 | ac_status=$? |
| 7478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7479 | (exit $ac_status); }; }; then |
| 7480 | ac_header_compiler=yes |
| 7481 | else |
| 7482 | echo "$as_me: failed program was:" >&5 |
| 7483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7484 | |
| 7485 | ac_header_compiler=no |
| 7486 | fi |
| 7487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7488 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7489 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7490 | |
| 7491 | # Is the header present? |
| 7492 | echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 7493 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6 |
| 7494 | cat >conftest.$ac_ext <<_ACEOF |
| 7495 | /* confdefs.h. */ |
| 7496 | _ACEOF |
| 7497 | cat confdefs.h >>conftest.$ac_ext |
| 7498 | cat >>conftest.$ac_ext <<_ACEOF |
| 7499 | /* end confdefs.h. */ |
| 7500 | #include <unistd.h> |
| 7501 | _ACEOF |
| 7502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7504 | ac_status=$? |
| 7505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7506 | rm -f conftest.er1 |
| 7507 | cat conftest.err >&5 |
| 7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7509 | (exit $ac_status); } >/dev/null; then |
| 7510 | if test -s conftest.err; then |
| 7511 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7512 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7513 | else |
| 7514 | ac_cpp_err= |
| 7515 | fi |
| 7516 | else |
| 7517 | ac_cpp_err=yes |
| 7518 | fi |
| 7519 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7520 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7521 | else |
| 7522 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7524 | |
| 7525 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7526 | fi |
| 7527 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7528 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7529 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7530 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7531 | # So? What about this header? |
| 7532 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7533 | yes:no: ) |
| 7534 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7535 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7536 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 7537 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 7538 | ac_header_preproc=yes |
| 7539 | ;; |
| 7540 | no:yes:* ) |
| 7541 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 7542 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 7543 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 7544 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 7545 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 7546 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 7547 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7548 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7549 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 7550 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 7551 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 7552 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} |
| 7553 | ( |
| 7554 | cat <<\_ASBOX |
| 7555 | ## ------------------------------------ ## |
| 7556 | ## Report this to the pjproject lists. ## |
| 7557 | ## ------------------------------------ ## |
| 7558 | _ASBOX |
| 7559 | ) | |
| 7560 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7561 | ;; |
| 7562 | esac |
| 7563 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7564 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
| 7565 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 7566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7567 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7568 | ac_cv_header_unistd_h=$ac_header_preproc |
| 7569 | fi |
| 7570 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 7571 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
| 7572 | |
| 7573 | fi |
| 7574 | if test $ac_cv_header_unistd_h = yes; then |
| 7575 | cat >>confdefs.h <<\_ACEOF |
| 7576 | #define PJ_HAS_UNISTD_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7577 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7578 | |
| 7579 | fi |
| 7580 | |
| 7581 | |
| 7582 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 7583 | echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 7584 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
| 7585 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 7586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7587 | fi |
| 7588 | echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 7589 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
| 7590 | else |
| 7591 | # Is the header compilable? |
| 7592 | echo "$as_me:$LINENO: checking mswsock.h usability" >&5 |
| 7593 | echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6 |
| 7594 | cat >conftest.$ac_ext <<_ACEOF |
| 7595 | /* confdefs.h. */ |
| 7596 | _ACEOF |
| 7597 | cat confdefs.h >>conftest.$ac_ext |
| 7598 | cat >>conftest.$ac_ext <<_ACEOF |
| 7599 | /* end confdefs.h. */ |
| 7600 | $ac_includes_default |
| 7601 | #include <mswsock.h> |
| 7602 | _ACEOF |
| 7603 | rm -f conftest.$ac_objext |
| 7604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7605 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7606 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7607 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7608 | rm -f conftest.er1 |
| 7609 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7611 | (exit $ac_status); } && |
| 7612 | { ac_try='test -z "$ac_c_werror_flag" |
| 7613 | || test ! -s conftest.err' |
| 7614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7615 | (eval $ac_try) 2>&5 |
| 7616 | ac_status=$? |
| 7617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7618 | (exit $ac_status); }; } && |
| 7619 | { ac_try='test -s conftest.$ac_objext' |
| 7620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7621 | (eval $ac_try) 2>&5 |
| 7622 | ac_status=$? |
| 7623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7624 | (exit $ac_status); }; }; then |
| 7625 | ac_header_compiler=yes |
| 7626 | else |
| 7627 | echo "$as_me: failed program was:" >&5 |
| 7628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7629 | |
| 7630 | ac_header_compiler=no |
| 7631 | fi |
| 7632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7633 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7634 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7635 | |
| 7636 | # Is the header present? |
| 7637 | echo "$as_me:$LINENO: checking mswsock.h presence" >&5 |
| 7638 | echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6 |
| 7639 | cat >conftest.$ac_ext <<_ACEOF |
| 7640 | /* confdefs.h. */ |
| 7641 | _ACEOF |
| 7642 | cat confdefs.h >>conftest.$ac_ext |
| 7643 | cat >>conftest.$ac_ext <<_ACEOF |
| 7644 | /* end confdefs.h. */ |
| 7645 | #include <mswsock.h> |
| 7646 | _ACEOF |
| 7647 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7648 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7649 | ac_status=$? |
| 7650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7651 | rm -f conftest.er1 |
| 7652 | cat conftest.err >&5 |
| 7653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7654 | (exit $ac_status); } >/dev/null; then |
| 7655 | if test -s conftest.err; then |
| 7656 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7657 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7658 | else |
| 7659 | ac_cpp_err= |
| 7660 | fi |
| 7661 | else |
| 7662 | ac_cpp_err=yes |
| 7663 | fi |
| 7664 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7665 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7666 | else |
| 7667 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7669 | |
| 7670 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7671 | fi |
| 7672 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7673 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7674 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7675 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7676 | # So? What about this header? |
| 7677 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7678 | yes:no: ) |
| 7679 | { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7680 | echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7681 | { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5 |
| 7682 | echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;} |
| 7683 | ac_header_preproc=yes |
| 7684 | ;; |
| 7685 | no:yes:* ) |
| 7686 | { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5 |
| 7687 | echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;} |
| 7688 | { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5 |
| 7689 | echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;} |
| 7690 | { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5 |
| 7691 | echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;} |
| 7692 | { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7693 | echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7694 | { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5 |
| 7695 | echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;} |
| 7696 | { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5 |
| 7697 | echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;} |
| 7698 | ( |
| 7699 | cat <<\_ASBOX |
| 7700 | ## ------------------------------------ ## |
| 7701 | ## Report this to the pjproject lists. ## |
| 7702 | ## ------------------------------------ ## |
| 7703 | _ASBOX |
| 7704 | ) | |
| 7705 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7706 | ;; |
| 7707 | esac |
| 7708 | echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7709 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
| 7710 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 7711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7712 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7713 | ac_cv_header_mswsock_h=$ac_header_preproc |
| 7714 | fi |
| 7715 | echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 7716 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
| 7717 | |
| 7718 | fi |
| 7719 | if test $ac_cv_header_mswsock_h = yes; then |
| 7720 | cat >>confdefs.h <<\_ACEOF |
| 7721 | #define PJ_HAS_MSWSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7722 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7723 | |
| 7724 | fi |
| 7725 | |
| 7726 | |
| 7727 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 7728 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 7729 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
| 7730 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 7731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7732 | fi |
| 7733 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 7734 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
| 7735 | else |
| 7736 | # Is the header compilable? |
| 7737 | echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 7738 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6 |
| 7739 | cat >conftest.$ac_ext <<_ACEOF |
| 7740 | /* confdefs.h. */ |
| 7741 | _ACEOF |
| 7742 | cat confdefs.h >>conftest.$ac_ext |
| 7743 | cat >>conftest.$ac_ext <<_ACEOF |
| 7744 | /* end confdefs.h. */ |
| 7745 | $ac_includes_default |
| 7746 | #include <winsock.h> |
| 7747 | _ACEOF |
| 7748 | rm -f conftest.$ac_objext |
| 7749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7750 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7751 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7752 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7753 | rm -f conftest.er1 |
| 7754 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7756 | (exit $ac_status); } && |
| 7757 | { ac_try='test -z "$ac_c_werror_flag" |
| 7758 | || test ! -s conftest.err' |
| 7759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7760 | (eval $ac_try) 2>&5 |
| 7761 | ac_status=$? |
| 7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7763 | (exit $ac_status); }; } && |
| 7764 | { ac_try='test -s conftest.$ac_objext' |
| 7765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7766 | (eval $ac_try) 2>&5 |
| 7767 | ac_status=$? |
| 7768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7769 | (exit $ac_status); }; }; then |
| 7770 | ac_header_compiler=yes |
| 7771 | else |
| 7772 | echo "$as_me: failed program was:" >&5 |
| 7773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7774 | |
| 7775 | ac_header_compiler=no |
| 7776 | fi |
| 7777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7778 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7779 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7780 | |
| 7781 | # Is the header present? |
| 7782 | echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 7783 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6 |
| 7784 | cat >conftest.$ac_ext <<_ACEOF |
| 7785 | /* confdefs.h. */ |
| 7786 | _ACEOF |
| 7787 | cat confdefs.h >>conftest.$ac_ext |
| 7788 | cat >>conftest.$ac_ext <<_ACEOF |
| 7789 | /* end confdefs.h. */ |
| 7790 | #include <winsock.h> |
| 7791 | _ACEOF |
| 7792 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7793 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7794 | ac_status=$? |
| 7795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7796 | rm -f conftest.er1 |
| 7797 | cat conftest.err >&5 |
| 7798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7799 | (exit $ac_status); } >/dev/null; then |
| 7800 | if test -s conftest.err; then |
| 7801 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7802 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7803 | else |
| 7804 | ac_cpp_err= |
| 7805 | fi |
| 7806 | else |
| 7807 | ac_cpp_err=yes |
| 7808 | fi |
| 7809 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7810 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7811 | else |
| 7812 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7814 | |
| 7815 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7816 | fi |
| 7817 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7818 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7819 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7820 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7821 | # So? What about this header? |
| 7822 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7823 | yes:no: ) |
| 7824 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7825 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7826 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 7827 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 7828 | ac_header_preproc=yes |
| 7829 | ;; |
| 7830 | no:yes:* ) |
| 7831 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 7832 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 7833 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 7834 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 7835 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 7836 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 7837 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7838 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7839 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 7840 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 7841 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 7842 | echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} |
| 7843 | ( |
| 7844 | cat <<\_ASBOX |
| 7845 | ## ------------------------------------ ## |
| 7846 | ## Report this to the pjproject lists. ## |
| 7847 | ## ------------------------------------ ## |
| 7848 | _ASBOX |
| 7849 | ) | |
| 7850 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7851 | ;; |
| 7852 | esac |
| 7853 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7854 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
| 7855 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 7856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7857 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7858 | ac_cv_header_winsock_h=$ac_header_preproc |
| 7859 | fi |
| 7860 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 7861 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
| 7862 | |
| 7863 | fi |
| 7864 | if test $ac_cv_header_winsock_h = yes; then |
| 7865 | cat >>confdefs.h <<\_ACEOF |
| 7866 | #define PJ_HAS_WINSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7867 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7868 | |
| 7869 | fi |
| 7870 | |
| 7871 | |
| 7872 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 7873 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 7874 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
| 7875 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 7876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7877 | fi |
| 7878 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 7879 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
| 7880 | else |
| 7881 | # Is the header compilable? |
| 7882 | echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 7883 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6 |
| 7884 | cat >conftest.$ac_ext <<_ACEOF |
| 7885 | /* confdefs.h. */ |
| 7886 | _ACEOF |
| 7887 | cat confdefs.h >>conftest.$ac_ext |
| 7888 | cat >>conftest.$ac_ext <<_ACEOF |
| 7889 | /* end confdefs.h. */ |
| 7890 | $ac_includes_default |
| 7891 | #include <winsock2.h> |
| 7892 | _ACEOF |
| 7893 | rm -f conftest.$ac_objext |
| 7894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7895 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7896 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7897 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7898 | rm -f conftest.er1 |
| 7899 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7901 | (exit $ac_status); } && |
| 7902 | { ac_try='test -z "$ac_c_werror_flag" |
| 7903 | || test ! -s conftest.err' |
| 7904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7905 | (eval $ac_try) 2>&5 |
| 7906 | ac_status=$? |
| 7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7908 | (exit $ac_status); }; } && |
| 7909 | { ac_try='test -s conftest.$ac_objext' |
| 7910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7911 | (eval $ac_try) 2>&5 |
| 7912 | ac_status=$? |
| 7913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7914 | (exit $ac_status); }; }; then |
| 7915 | ac_header_compiler=yes |
| 7916 | else |
| 7917 | echo "$as_me: failed program was:" >&5 |
| 7918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7919 | |
| 7920 | ac_header_compiler=no |
| 7921 | fi |
| 7922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7923 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7924 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7925 | |
| 7926 | # Is the header present? |
| 7927 | echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 7928 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6 |
| 7929 | cat >conftest.$ac_ext <<_ACEOF |
| 7930 | /* confdefs.h. */ |
| 7931 | _ACEOF |
| 7932 | cat confdefs.h >>conftest.$ac_ext |
| 7933 | cat >>conftest.$ac_ext <<_ACEOF |
| 7934 | /* end confdefs.h. */ |
| 7935 | #include <winsock2.h> |
| 7936 | _ACEOF |
| 7937 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7938 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7939 | ac_status=$? |
| 7940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7941 | rm -f conftest.er1 |
| 7942 | cat conftest.err >&5 |
| 7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7944 | (exit $ac_status); } >/dev/null; then |
| 7945 | if test -s conftest.err; then |
| 7946 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7947 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7948 | else |
| 7949 | ac_cpp_err= |
| 7950 | fi |
| 7951 | else |
| 7952 | ac_cpp_err=yes |
| 7953 | fi |
| 7954 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7955 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7956 | else |
| 7957 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7959 | |
| 7960 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7961 | fi |
| 7962 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7963 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7964 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7965 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7966 | # So? What about this header? |
| 7967 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7968 | yes:no: ) |
| 7969 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7970 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7971 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 7972 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 7973 | ac_header_preproc=yes |
| 7974 | ;; |
| 7975 | no:yes:* ) |
| 7976 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 7977 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 7978 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 7979 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 7980 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 7981 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 7982 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7983 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7984 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 7985 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 7986 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 7987 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} |
| 7988 | ( |
| 7989 | cat <<\_ASBOX |
| 7990 | ## ------------------------------------ ## |
| 7991 | ## Report this to the pjproject lists. ## |
| 7992 | ## ------------------------------------ ## |
| 7993 | _ASBOX |
| 7994 | ) | |
| 7995 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7996 | ;; |
| 7997 | esac |
| 7998 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7999 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
| 8000 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8002 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8003 | ac_cv_header_winsock2_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8004 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8005 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8006 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8007 | |
| 8008 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8009 | if test $ac_cv_header_winsock2_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8010 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8011 | #define PJ_HAS_WINSOCK2_H 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8012 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8013 | |
| 8014 | fi |
| 8015 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8016 | |
| 8017 | |
| 8018 | echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8019 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8020 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8021 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8022 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8023 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8024 | |
| 8025 | echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8026 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8027 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8028 | #define PJ_HAS_ERRNO_VAR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8029 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8030 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8031 | |
| 8032 | echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8033 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8034 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8035 | #define PJ_HAS_HIGH_RES_TIMER 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8036 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8037 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8038 | |
| 8039 | echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8040 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8041 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8042 | #define PJ_HAS_MALLOC 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8043 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8044 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8045 | |
| 8046 | echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8047 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8048 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8049 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8050 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8051 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8052 | |
| 8053 | echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8054 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8055 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8056 | #define PJ_ATOMIC_VALUE_TYPE long |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8057 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8058 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8059 | |
| 8060 | echo "$as_me:$LINENO: checking if inet_aton is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8061 | echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6 |
| 8062 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8063 | /* confdefs.h. */ |
| 8064 | _ACEOF |
| 8065 | cat confdefs.h >>conftest.$ac_ext |
| 8066 | cat >>conftest.$ac_ext <<_ACEOF |
| 8067 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8068 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8069 | int |
| 8070 | main () |
| 8071 | { |
| 8072 | inet_aton(0, 0); |
| 8073 | ; |
| 8074 | return 0; |
| 8075 | } |
| 8076 | _ACEOF |
| 8077 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8079 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8080 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8082 | rm -f conftest.er1 |
| 8083 | cat conftest.err >&5 |
| 8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8085 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8086 | { ac_try='test -z "$ac_c_werror_flag" |
| 8087 | || test ! -s conftest.err' |
| 8088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8089 | (eval $ac_try) 2>&5 |
| 8090 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8092 | (exit $ac_status); }; } && |
| 8093 | { ac_try='test -s conftest.$ac_objext' |
| 8094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8095 | (eval $ac_try) 2>&5 |
| 8096 | ac_status=$? |
| 8097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8098 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8099 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8100 | #define PJ_SOCK_HAS_INET_ATON 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8101 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8102 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8103 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8104 | echo "${ECHO_T}yes" >&6 |
| 8105 | else |
| 8106 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8108 | |
| 8109 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8110 | echo "${ECHO_T}no" >&6 |
| 8111 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8113 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8114 | echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8115 | echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6 |
| 8116 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8117 | /* confdefs.h. */ |
| 8118 | _ACEOF |
| 8119 | cat confdefs.h >>conftest.$ac_ext |
| 8120 | cat >>conftest.$ac_ext <<_ACEOF |
| 8121 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8122 | #include <sys/types.h> |
| 8123 | #include <sys/socket.h> |
| 8124 | #include <netinet/in.h> |
| 8125 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8126 | int |
| 8127 | main () |
| 8128 | { |
| 8129 | struct sockaddr_in a; a.sin_len=0; |
| 8130 | ; |
| 8131 | return 0; |
| 8132 | } |
| 8133 | _ACEOF |
| 8134 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8136 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8137 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8139 | rm -f conftest.er1 |
| 8140 | cat conftest.err >&5 |
| 8141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8142 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8143 | { ac_try='test -z "$ac_c_werror_flag" |
| 8144 | || test ! -s conftest.err' |
| 8145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8146 | (eval $ac_try) 2>&5 |
| 8147 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8149 | (exit $ac_status); }; } && |
| 8150 | { ac_try='test -s conftest.$ac_objext' |
| 8151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8152 | (eval $ac_try) 2>&5 |
| 8153 | ac_status=$? |
| 8154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8155 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8156 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8157 | #define PJ_SOCKADDR_HAS_LEN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8158 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8159 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8160 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8161 | echo "${ECHO_T}yes" >&6 |
| 8162 | else |
| 8163 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8165 | |
| 8166 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8167 | echo "${ECHO_T}no" >&6 |
| 8168 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8170 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8171 | echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8172 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6 |
| 8173 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8174 | /* confdefs.h. */ |
| 8175 | _ACEOF |
| 8176 | cat confdefs.h >>conftest.$ac_ext |
| 8177 | cat >>conftest.$ac_ext <<_ACEOF |
| 8178 | /* end confdefs.h. */ |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8179 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8180 | int |
| 8181 | main () |
| 8182 | { |
| 8183 | socklen_t xxx = 0; |
| 8184 | ; |
| 8185 | return 0; |
| 8186 | } |
| 8187 | _ACEOF |
| 8188 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8190 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8191 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8193 | rm -f conftest.er1 |
| 8194 | cat conftest.err >&5 |
| 8195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8196 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8197 | { ac_try='test -z "$ac_c_werror_flag" |
| 8198 | || test ! -s conftest.err' |
| 8199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8200 | (eval $ac_try) 2>&5 |
| 8201 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8203 | (exit $ac_status); }; } && |
| 8204 | { ac_try='test -s conftest.$ac_objext' |
| 8205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8206 | (eval $ac_try) 2>&5 |
| 8207 | ac_status=$? |
| 8208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8209 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8210 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8211 | #define PJ_HAS_SOCKLEN_T 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8212 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8213 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8214 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8215 | echo "${ECHO_T}yes" >&6 |
| 8216 | else |
| 8217 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8219 | |
| 8220 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8221 | echo "${ECHO_T}no" >&6 |
| 8222 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8224 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8225 | echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8226 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8227 | case $target in |
| 8228 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8229 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8230 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8231 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8232 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8233 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8234 | echo "${ECHO_T}yes" >&6 |
| 8235 | ;; |
| 8236 | *) |
| 8237 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8238 | /* confdefs.h. */ |
| 8239 | _ACEOF |
| 8240 | cat confdefs.h >>conftest.$ac_ext |
| 8241 | cat >>conftest.$ac_ext <<_ACEOF |
| 8242 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8243 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8244 | #include <sys/socket.h> |
| 8245 | #include <netinet/in.h> |
| 8246 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8247 | int |
| 8248 | main () |
| 8249 | { |
| 8250 | int i=SO_ERROR; |
| 8251 | ; |
| 8252 | return 0; |
| 8253 | } |
| 8254 | _ACEOF |
| 8255 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8257 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8258 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8260 | rm -f conftest.er1 |
| 8261 | cat conftest.err >&5 |
| 8262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8263 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8264 | { ac_try='test -z "$ac_c_werror_flag" |
| 8265 | || test ! -s conftest.err' |
| 8266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8267 | (eval $ac_try) 2>&5 |
| 8268 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8270 | (exit $ac_status); }; } && |
| 8271 | { ac_try='test -s conftest.$ac_objext' |
| 8272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8273 | (eval $ac_try) 2>&5 |
| 8274 | ac_status=$? |
| 8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8276 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8277 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8278 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8279 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8280 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8281 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8282 | echo "${ECHO_T}yes" >&6 |
| 8283 | else |
| 8284 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8286 | |
| 8287 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8288 | echo "${ECHO_T}no" >&6 |
| 8289 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8291 | ;; |
| 8292 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8293 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8294 | |
| 8295 | echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8296 | echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6 |
| 8297 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8298 | /* confdefs.h. */ |
| 8299 | _ACEOF |
| 8300 | cat confdefs.h >>conftest.$ac_ext |
| 8301 | cat >>conftest.$ac_ext <<_ACEOF |
| 8302 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8303 | #include <pthread.h> |
| 8304 | int |
| 8305 | main () |
| 8306 | { |
| 8307 | pthread_rwlock_t *x; |
| 8308 | ; |
| 8309 | return 0; |
| 8310 | } |
| 8311 | _ACEOF |
| 8312 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8314 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8315 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8317 | rm -f conftest.er1 |
| 8318 | cat conftest.err >&5 |
| 8319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8320 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8321 | { ac_try='test -z "$ac_c_werror_flag" |
| 8322 | || test ! -s conftest.err' |
| 8323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8324 | (eval $ac_try) 2>&5 |
| 8325 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8327 | (exit $ac_status); }; } && |
| 8328 | { ac_try='test -s conftest.$ac_objext' |
| 8329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8330 | (eval $ac_try) 2>&5 |
| 8331 | ac_status=$? |
| 8332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8333 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8334 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8335 | #define PJ_EMULATE_RWMUTEX 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8336 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8337 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8338 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8339 | echo "${ECHO_T}yes" >&6 |
| 8340 | else |
| 8341 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8342 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8343 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8344 | cat >>confdefs.h <<\_ACEOF |
| 8345 | #define PJ_EMULATE_RWMUTEX 1 |
| 8346 | _ACEOF |
| 8347 | |
| 8348 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8349 | echo "${ECHO_T}no" >&6 |
| 8350 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8352 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8353 | |
| 8354 | case $target in |
| 8355 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | ad086e0 | 2007-02-16 10:58:18 +0000 | [diff] [blame] | 8356 | ac_os_objs="file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o ioqueue_select.o" |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8357 | ;; |
| 8358 | *) |
Benny Prijono | ad086e0 | 2007-02-16 10:58:18 +0000 | [diff] [blame] | 8359 | ac_os_objs="file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o guid_simple.o ioqueue_select.o" |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8360 | ;; |
| 8361 | esac |
| 8362 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8363 | |
| 8364 | |
| 8365 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8366 | # Check whether --enable-sound or --disable-sound was given. |
| 8367 | if test "${enable_sound+set}" = set; then |
| 8368 | enableval="$enable_sound" |
| 8369 | if test "$enable_sound" = "no"; then |
| 8370 | ac_pjmedia_snd=null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8371 | echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8372 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6 |
| 8373 | fi |
| 8374 | |
| 8375 | fi; |
| 8376 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8377 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8378 | if test "$enable_sound" = "no"; then |
| 8379 | true; |
| 8380 | else |
| 8381 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8382 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 8383 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 8384 | if test "`uname -r`" = "6.8"; then |
| 8385 | #ac_pa_cflags="-DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS" |
| 8386 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 8387 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8388 | echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 8389 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6 |
| 8390 | else |
| 8391 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8392 | echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8393 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 8394 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8395 | ;; |
| 8396 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8397 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8398 | echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8399 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6 |
| 8400 | ;; |
| 8401 | *rtems*) |
| 8402 | ac_pjmedia_snd=null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8403 | echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8404 | echo "${ECHO_T}Checking sound device backend... null sound" >&6 |
| 8405 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8406 | *) |
| 8407 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8408 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 8409 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8410 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
| 8411 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 8412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8413 | fi |
| 8414 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 8415 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8416 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8417 | # Is the header compilable? |
| 8418 | echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 8419 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6 |
| 8420 | cat >conftest.$ac_ext <<_ACEOF |
| 8421 | /* confdefs.h. */ |
| 8422 | _ACEOF |
| 8423 | cat confdefs.h >>conftest.$ac_ext |
| 8424 | cat >>conftest.$ac_ext <<_ACEOF |
| 8425 | /* end confdefs.h. */ |
| 8426 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8427 | #include <alsa/version.h> |
| 8428 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8429 | rm -f conftest.$ac_objext |
| 8430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8431 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8432 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8433 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8434 | rm -f conftest.er1 |
| 8435 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8437 | (exit $ac_status); } && |
| 8438 | { ac_try='test -z "$ac_c_werror_flag" |
| 8439 | || test ! -s conftest.err' |
| 8440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8441 | (eval $ac_try) 2>&5 |
| 8442 | ac_status=$? |
| 8443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8444 | (exit $ac_status); }; } && |
| 8445 | { ac_try='test -s conftest.$ac_objext' |
| 8446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8447 | (eval $ac_try) 2>&5 |
| 8448 | ac_status=$? |
| 8449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8450 | (exit $ac_status); }; }; then |
| 8451 | ac_header_compiler=yes |
| 8452 | else |
| 8453 | echo "$as_me: failed program was:" >&5 |
| 8454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8455 | |
| 8456 | ac_header_compiler=no |
| 8457 | fi |
| 8458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8459 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8460 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8461 | |
| 8462 | # Is the header present? |
| 8463 | echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 8464 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6 |
| 8465 | cat >conftest.$ac_ext <<_ACEOF |
| 8466 | /* confdefs.h. */ |
| 8467 | _ACEOF |
| 8468 | cat confdefs.h >>conftest.$ac_ext |
| 8469 | cat >>conftest.$ac_ext <<_ACEOF |
| 8470 | /* end confdefs.h. */ |
| 8471 | #include <alsa/version.h> |
| 8472 | _ACEOF |
| 8473 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8474 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8475 | ac_status=$? |
| 8476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8477 | rm -f conftest.er1 |
| 8478 | cat conftest.err >&5 |
| 8479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8480 | (exit $ac_status); } >/dev/null; then |
| 8481 | if test -s conftest.err; then |
| 8482 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8483 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8484 | else |
| 8485 | ac_cpp_err= |
| 8486 | fi |
| 8487 | else |
| 8488 | ac_cpp_err=yes |
| 8489 | fi |
| 8490 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8491 | ac_header_preproc=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8492 | else |
| 8493 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8495 | |
| 8496 | ac_header_preproc=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8497 | fi |
| 8498 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8499 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8500 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8501 | |
| 8502 | # So? What about this header? |
| 8503 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8504 | yes:no: ) |
| 8505 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8506 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8507 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 8508 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 8509 | ac_header_preproc=yes |
| 8510 | ;; |
| 8511 | no:yes:* ) |
| 8512 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 8513 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 8514 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 8515 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 8516 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 8517 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 8518 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8519 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8520 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 8521 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 8522 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 8523 | echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} |
| 8524 | ( |
| 8525 | cat <<\_ASBOX |
| 8526 | ## ------------------------------------ ## |
| 8527 | ## Report this to the pjproject lists. ## |
| 8528 | ## ------------------------------------ ## |
| 8529 | _ASBOX |
| 8530 | ) | |
| 8531 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8532 | ;; |
| 8533 | esac |
| 8534 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 8535 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
| 8536 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 8537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8538 | else |
| 8539 | ac_cv_header_alsa_version_h=$ac_header_preproc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8540 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8541 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8542 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8543 | |
| 8544 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8545 | if test $ac_cv_header_alsa_version_h = yes; then |
| 8546 | ac_pa_use_alsa=1 |
| 8547 | |
| 8548 | LIBS="$LIBS -lasound" |
| 8549 | |
| 8550 | else |
| 8551 | ac_pa_use_alsa=0 |
| 8552 | |
| 8553 | fi |
| 8554 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8555 | |
| 8556 | echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8557 | echo "${ECHO_T}Checking sound device backend... unix" >&6 |
| 8558 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8559 | esac |
| 8560 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8561 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8562 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8563 | # Check whether --enable-small-filter or --disable-small-filter was given. |
| 8564 | if test "${enable_small_filter+set}" = set; then |
| 8565 | enableval="$enable_small_filter" |
| 8566 | if test "$enable_small_filter" = "no"; then |
| 8567 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8568 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8569 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6 |
| 8570 | fi |
| 8571 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8572 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8573 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6 |
| 8574 | fi; |
| 8575 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8576 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8577 | # Check whether --enable-large-filter or --disable-large-filter was given. |
| 8578 | if test "${enable_large_filter+set}" = set; then |
| 8579 | enableval="$enable_large_filter" |
| 8580 | if test "$enable_large_filter" = "no"; then |
| 8581 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8582 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8583 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6 |
| 8584 | fi |
| 8585 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8586 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8587 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6 |
| 8588 | fi; |
| 8589 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8590 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8591 | # Check whether --enable-g711-plc or --disable-g711-plc was given. |
| 8592 | if test "${enable_g711_plc+set}" = set; then |
| 8593 | enableval="$enable_g711_plc" |
| 8594 | if test "$enable_g711_plc" = "no"; then |
| 8595 | ac_no_g711_plc='-DPJMEDIA_HAS_G711_PLC=0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8596 | echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8597 | echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...yes" >&6 |
| 8598 | fi |
| 8599 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8600 | echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8601 | echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...no" >&6 |
| 8602 | fi; |
| 8603 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8604 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8605 | # Check whether --enable-speex-aec or --disable-speex-aec was given. |
| 8606 | if test "${enable_speex_aec+set}" = set; then |
| 8607 | enableval="$enable_speex_aec" |
| 8608 | if test "$enable_speex_aec" = "no"; then |
| 8609 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8610 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8611 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6 |
| 8612 | fi |
| 8613 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8614 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8615 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6 |
| 8616 | fi; |
| 8617 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8618 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8619 | # Check whether --enable-g711-codec or --disable-g711-codec was given. |
| 8620 | if test "${enable_g711_codec+set}" = set; then |
| 8621 | enableval="$enable_g711_codec" |
| 8622 | if test "$enable_g711_codec" = "no"; then |
| 8623 | ac_no_g711_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 8624 | cat >>confdefs.h <<\_ACEOF |
| 8625 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 8626 | _ACEOF |
| 8627 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8628 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8629 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6 |
| 8630 | fi |
| 8631 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8632 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8633 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6 |
| 8634 | fi; |
| 8635 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8636 | |
| 8637 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8638 | # Check whether --enable-l16-codec or --disable-l16-codec was given. |
| 8639 | if test "${enable_l16_codec+set}" = set; then |
| 8640 | enableval="$enable_l16_codec" |
| 8641 | if test "$enable_l16_codec" = "no"; then |
| 8642 | ac_no_l16_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 8643 | cat >>confdefs.h <<\_ACEOF |
| 8644 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 8645 | _ACEOF |
| 8646 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8647 | echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8648 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6 |
| 8649 | fi |
| 8650 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8651 | echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 8652 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8653 | fi; |
| 8654 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8655 | |
| 8656 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8657 | # Check whether --enable-gsm-codec or --disable-gsm-codec was given. |
| 8658 | if test "${enable_gsm_codec+set}" = set; then |
| 8659 | enableval="$enable_gsm_codec" |
| 8660 | if test "$enable_gsm_codec" = "no"; then |
| 8661 | ac_no_gsm_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 8662 | cat >>confdefs.h <<\_ACEOF |
| 8663 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 8664 | _ACEOF |
| 8665 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8666 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8667 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6 |
| 8668 | fi |
| 8669 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8670 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8671 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6 |
| 8672 | fi; |
| 8673 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8674 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8675 | # Check whether --enable-speex-codec or --disable-speex-codec was given. |
| 8676 | if test "${enable_speex_codec+set}" = set; then |
| 8677 | enableval="$enable_speex_codec" |
| 8678 | if test "$enable_speex_codec" = "no"; then |
| 8679 | ac_no_speex_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 8680 | cat >>confdefs.h <<\_ACEOF |
| 8681 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 8682 | _ACEOF |
| 8683 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8684 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8685 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6 |
| 8686 | fi |
| 8687 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8688 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8689 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6 |
| 8690 | fi; |
| 8691 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8692 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8693 | # Check whether --enable-ilbc-codec or --disable-ilbc-codec was given. |
| 8694 | if test "${enable_ilbc_codec+set}" = set; then |
| 8695 | enableval="$enable_ilbc_codec" |
| 8696 | if test "$enable_ilbc_codec" = "no"; then |
| 8697 | ac_no_ilbc_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 8698 | cat >>confdefs.h <<\_ACEOF |
| 8699 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 8700 | _ACEOF |
| 8701 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8702 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8703 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6 |
| 8704 | fi |
| 8705 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8706 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8707 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6 |
| 8708 | fi; |
| 8709 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8710 | |
| 8711 | |
| 8712 | |
| 8713 | |
| 8714 | # Check whether --enable-ssl or --disable-ssl was given. |
| 8715 | if test "${enable_ssl+set}" = set; then |
| 8716 | enableval="$enable_ssl" |
| 8717 | |
| 8718 | if test "$enable_ssl" = "no"; then |
| 8719 | ac_no_ssl=1 |
| 8720 | echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 8721 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6 |
| 8722 | fi |
| 8723 | |
| 8724 | else |
| 8725 | |
| 8726 | echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 8727 | echo "${ECHO_T}checking for OpenSSL installations.." >&6 |
| 8728 | |
| 8729 | |
| 8730 | |
| 8731 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 8732 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 8733 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
| 8734 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 8735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8736 | fi |
| 8737 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 8738 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
| 8739 | else |
| 8740 | # Is the header compilable? |
| 8741 | echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 8742 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6 |
| 8743 | cat >conftest.$ac_ext <<_ACEOF |
| 8744 | /* confdefs.h. */ |
| 8745 | _ACEOF |
| 8746 | cat confdefs.h >>conftest.$ac_ext |
| 8747 | cat >>conftest.$ac_ext <<_ACEOF |
| 8748 | /* end confdefs.h. */ |
| 8749 | $ac_includes_default |
| 8750 | #include <openssl/ssl.h> |
| 8751 | _ACEOF |
| 8752 | rm -f conftest.$ac_objext |
| 8753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8754 | (eval $ac_compile) 2>conftest.er1 |
| 8755 | ac_status=$? |
| 8756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8757 | rm -f conftest.er1 |
| 8758 | cat conftest.err >&5 |
| 8759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8760 | (exit $ac_status); } && |
| 8761 | { ac_try='test -z "$ac_c_werror_flag" |
| 8762 | || test ! -s conftest.err' |
| 8763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8764 | (eval $ac_try) 2>&5 |
| 8765 | ac_status=$? |
| 8766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8767 | (exit $ac_status); }; } && |
| 8768 | { ac_try='test -s conftest.$ac_objext' |
| 8769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8770 | (eval $ac_try) 2>&5 |
| 8771 | ac_status=$? |
| 8772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8773 | (exit $ac_status); }; }; then |
| 8774 | ac_header_compiler=yes |
| 8775 | else |
| 8776 | echo "$as_me: failed program was:" >&5 |
| 8777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8778 | |
| 8779 | ac_header_compiler=no |
| 8780 | fi |
| 8781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8782 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8783 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8784 | |
| 8785 | # Is the header present? |
| 8786 | echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 8787 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6 |
| 8788 | cat >conftest.$ac_ext <<_ACEOF |
| 8789 | /* confdefs.h. */ |
| 8790 | _ACEOF |
| 8791 | cat confdefs.h >>conftest.$ac_ext |
| 8792 | cat >>conftest.$ac_ext <<_ACEOF |
| 8793 | /* end confdefs.h. */ |
| 8794 | #include <openssl/ssl.h> |
| 8795 | _ACEOF |
| 8796 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8797 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8798 | ac_status=$? |
| 8799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8800 | rm -f conftest.er1 |
| 8801 | cat conftest.err >&5 |
| 8802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8803 | (exit $ac_status); } >/dev/null; then |
| 8804 | if test -s conftest.err; then |
| 8805 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8806 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8807 | else |
| 8808 | ac_cpp_err= |
| 8809 | fi |
| 8810 | else |
| 8811 | ac_cpp_err=yes |
| 8812 | fi |
| 8813 | if test -z "$ac_cpp_err"; then |
| 8814 | ac_header_preproc=yes |
| 8815 | else |
| 8816 | echo "$as_me: failed program was:" >&5 |
| 8817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8818 | |
| 8819 | ac_header_preproc=no |
| 8820 | fi |
| 8821 | rm -f conftest.err conftest.$ac_ext |
| 8822 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8823 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8824 | |
| 8825 | # So? What about this header? |
| 8826 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8827 | yes:no: ) |
| 8828 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8829 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8830 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 8831 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 8832 | ac_header_preproc=yes |
| 8833 | ;; |
| 8834 | no:yes:* ) |
| 8835 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 8836 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 8837 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 8838 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 8839 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 8840 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 8841 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8842 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8843 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 8844 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 8845 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 8846 | echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} |
| 8847 | ( |
| 8848 | cat <<\_ASBOX |
| 8849 | ## ------------------------------------ ## |
| 8850 | ## Report this to the pjproject lists. ## |
| 8851 | ## ------------------------------------ ## |
| 8852 | _ASBOX |
| 8853 | ) | |
| 8854 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8855 | ;; |
| 8856 | esac |
| 8857 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 8858 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
| 8859 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 8860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8861 | else |
| 8862 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 8863 | fi |
| 8864 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 8865 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
| 8866 | |
| 8867 | fi |
| 8868 | if test $ac_cv_header_openssl_ssl_h = yes; then |
| 8869 | openssl_h_present=1 |
| 8870 | fi |
| 8871 | |
| 8872 | |
| 8873 | echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 8874 | echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 |
| 8875 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 8876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8877 | else |
| 8878 | ac_check_lib_save_LIBS=$LIBS |
| 8879 | LIBS="-lssl $LIBS" |
| 8880 | cat >conftest.$ac_ext <<_ACEOF |
| 8881 | /* confdefs.h. */ |
| 8882 | _ACEOF |
| 8883 | cat confdefs.h >>conftest.$ac_ext |
| 8884 | cat >>conftest.$ac_ext <<_ACEOF |
| 8885 | /* end confdefs.h. */ |
| 8886 | |
| 8887 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8888 | #ifdef __cplusplus |
| 8889 | extern "C" |
| 8890 | #endif |
| 8891 | /* We use char because int might match the return type of a gcc2 |
| 8892 | builtin and then its argument prototype would still apply. */ |
| 8893 | char SSL_library_init (); |
| 8894 | int |
| 8895 | main () |
| 8896 | { |
| 8897 | SSL_library_init (); |
| 8898 | ; |
| 8899 | return 0; |
| 8900 | } |
| 8901 | _ACEOF |
| 8902 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8904 | (eval $ac_link) 2>conftest.er1 |
| 8905 | ac_status=$? |
| 8906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8907 | rm -f conftest.er1 |
| 8908 | cat conftest.err >&5 |
| 8909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8910 | (exit $ac_status); } && |
| 8911 | { ac_try='test -z "$ac_c_werror_flag" |
| 8912 | || test ! -s conftest.err' |
| 8913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8914 | (eval $ac_try) 2>&5 |
| 8915 | ac_status=$? |
| 8916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8917 | (exit $ac_status); }; } && |
| 8918 | { ac_try='test -s conftest$ac_exeext' |
| 8919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8920 | (eval $ac_try) 2>&5 |
| 8921 | ac_status=$? |
| 8922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8923 | (exit $ac_status); }; }; then |
| 8924 | ac_cv_lib_ssl_SSL_library_init=yes |
| 8925 | else |
| 8926 | echo "$as_me: failed program was:" >&5 |
| 8927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8928 | |
| 8929 | ac_cv_lib_ssl_SSL_library_init=no |
| 8930 | fi |
| 8931 | rm -f conftest.err conftest.$ac_objext \ |
| 8932 | conftest$ac_exeext conftest.$ac_ext |
| 8933 | LIBS=$ac_check_lib_save_LIBS |
| 8934 | fi |
| 8935 | echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 8936 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 |
| 8937 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
| 8938 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 8939 | fi |
| 8940 | |
| 8941 | echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 8942 | echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6 |
| 8943 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 8944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8945 | else |
| 8946 | ac_check_lib_save_LIBS=$LIBS |
| 8947 | LIBS="-lcrypto $LIBS" |
| 8948 | cat >conftest.$ac_ext <<_ACEOF |
| 8949 | /* confdefs.h. */ |
| 8950 | _ACEOF |
| 8951 | cat confdefs.h >>conftest.$ac_ext |
| 8952 | cat >>conftest.$ac_ext <<_ACEOF |
| 8953 | /* end confdefs.h. */ |
| 8954 | |
| 8955 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8956 | #ifdef __cplusplus |
| 8957 | extern "C" |
| 8958 | #endif |
| 8959 | /* We use char because int might match the return type of a gcc2 |
| 8960 | builtin and then its argument prototype would still apply. */ |
| 8961 | char ERR_load_BIO_strings (); |
| 8962 | int |
| 8963 | main () |
| 8964 | { |
| 8965 | ERR_load_BIO_strings (); |
| 8966 | ; |
| 8967 | return 0; |
| 8968 | } |
| 8969 | _ACEOF |
| 8970 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8972 | (eval $ac_link) 2>conftest.er1 |
| 8973 | ac_status=$? |
| 8974 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8975 | rm -f conftest.er1 |
| 8976 | cat conftest.err >&5 |
| 8977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8978 | (exit $ac_status); } && |
| 8979 | { ac_try='test -z "$ac_c_werror_flag" |
| 8980 | || test ! -s conftest.err' |
| 8981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8982 | (eval $ac_try) 2>&5 |
| 8983 | ac_status=$? |
| 8984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8985 | (exit $ac_status); }; } && |
| 8986 | { ac_try='test -s conftest$ac_exeext' |
| 8987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8988 | (eval $ac_try) 2>&5 |
| 8989 | ac_status=$? |
| 8990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8991 | (exit $ac_status); }; }; then |
| 8992 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 8993 | else |
| 8994 | echo "$as_me: failed program was:" >&5 |
| 8995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8996 | |
| 8997 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
| 8998 | fi |
| 8999 | rm -f conftest.err conftest.$ac_objext \ |
| 9000 | conftest$ac_exeext conftest.$ac_ext |
| 9001 | LIBS=$ac_check_lib_save_LIBS |
| 9002 | fi |
| 9003 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 9004 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6 |
| 9005 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
| 9006 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 9007 | fi |
| 9008 | |
| 9009 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
| 9010 | echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 9011 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6 |
| 9012 | cat >>confdefs.h <<\_ACEOF |
| 9013 | #define PJSIP_HAS_TLS_TRANSPORT 1 |
| 9014 | _ACEOF |
| 9015 | |
| 9016 | else |
| 9017 | echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 9018 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6 |
| 9019 | fi |
| 9020 | |
| 9021 | fi; |
| 9022 | |
| 9023 | |
| 9024 | |
| 9025 | |
| 9026 | echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9027 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9028 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9029 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9030 | #define PJ_SELECT_NEEDS_NFDS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9031 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9032 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9033 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9034 | echo "${ECHO_T}yes" >&6 |
| 9035 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9036 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9037 | #define PJ_SELECT_NEEDS_NFDS 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9038 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9039 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9040 | echo "$as_me:$LINENO: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9041 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9042 | echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9043 | echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6 |
| 9044 | ;; |
| 9045 | esac |
| 9046 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9047 | echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9048 | echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6 |
| 9049 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9050 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9051 | #define PJ_THREAD_SET_STACK_SIZE 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9052 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9053 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9054 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9055 | echo "${ECHO_T}yes" >&6 |
| 9056 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9057 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9058 | #define PJ_THREAD_SET_STACK_SIZE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9059 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9060 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9061 | echo "$as_me:$LINENO: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9062 | echo "${ECHO_T}no (default)" >&6 |
| 9063 | ;; |
| 9064 | esac |
| 9065 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9066 | echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9067 | echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6 |
| 9068 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9069 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9070 | #define PJ_THREAD_ALLOCATE_STACK 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9071 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9072 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9073 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9074 | echo "${ECHO_T}yes" >&6 |
| 9075 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9076 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9077 | #define PJ_THREAD_ALLOCATE_STACK 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9078 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9079 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9080 | echo "$as_me:$LINENO: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9081 | echo "${ECHO_T}no (default)" >&6 |
| 9082 | ;; |
| 9083 | esac |
| 9084 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9085 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9086 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9087 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9088 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9089 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9090 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9091 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9092 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9093 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9094 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9095 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9096 | echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9097 | echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6 |
| 9098 | ;; |
| 9099 | esac |
| 9100 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9101 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9102 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9103 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9104 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9105 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9106 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9107 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9108 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9109 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9110 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9111 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9112 | echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9113 | echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6 |
| 9114 | ;; |
| 9115 | esac |
| 9116 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9117 | |
| 9118 | |
| 9119 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9120 | if test "$build" = "$host"; then |
| 9121 | ac_cross_compile= |
| 9122 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 9123 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9124 | fi |
| 9125 | ac_linux_poll=select |
| 9126 | |
| 9127 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9128 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9129 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9130 | case $target in |
| 9131 | *rtems*) |
| 9132 | ac_main_obj=main_rtems.o |
| 9133 | ;; |
| 9134 | *) |
| 9135 | ac_main_obj=main.o |
| 9136 | ;; |
| 9137 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9138 | |
| 9139 | cat >confcache <<\_ACEOF |
| 9140 | # This file is a shell script that caches the results of configure |
| 9141 | # tests run on this system so they can be shared between configure |
| 9142 | # scripts and configure runs, see configure's option --config-cache. |
| 9143 | # It is not useful on other systems. If it contains results you don't |
| 9144 | # want to keep, you may remove or edit it. |
| 9145 | # |
| 9146 | # config.status only pays attention to the cache file if you give it |
| 9147 | # the --recheck option to rerun configure. |
| 9148 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9149 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9150 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 9151 | # following values. |
| 9152 | |
| 9153 | _ACEOF |
| 9154 | |
| 9155 | # The following way of writing the cache mishandles newlines in values, |
| 9156 | # but we know of no workaround that is simple, portable, and efficient. |
| 9157 | # So, don't put newlines in cache variables' values. |
| 9158 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 9159 | # and sets the high bit in the cache file unless we assign to the vars. |
| 9160 | { |
| 9161 | (set) 2>&1 | |
| 9162 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 9163 | *ac_space=\ *) |
| 9164 | # `set' does not quote correctly, so add quotes (double-quote |
| 9165 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 9166 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9167 | "s/'/'\\\\''/g; |
| 9168 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9169 | ;; |
| 9170 | *) |
| 9171 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 9172 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9173 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9174 | ;; |
| 9175 | esac; |
| 9176 | } | |
| 9177 | sed ' |
| 9178 | t clear |
| 9179 | : clear |
| 9180 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 9181 | t end |
| 9182 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 9183 | : end' >>confcache |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9184 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9185 | if test -w $cache_file; then |
| 9186 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 9187 | cat confcache >$cache_file |
| 9188 | else |
| 9189 | echo "not updating unwritable cache $cache_file" |
| 9190 | fi |
| 9191 | fi |
| 9192 | rm -f confcache |
| 9193 | |
| 9194 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 9195 | # Let make expand exec_prefix. |
| 9196 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 9197 | |
| 9198 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 9199 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 9200 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 9201 | # (actually we leave an empty line to preserve line numbers). |
| 9202 | if test "x$srcdir" = x.; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9203 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9204 | s/:*\$(srcdir):*/:/; |
| 9205 | s/:*\${srcdir}:*/:/; |
| 9206 | s/:*@srcdir@:*/:/; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9207 | s/^\([^=]*=[ ]*\):*/\1/; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9208 | s/:*$//; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9209 | s/^[^=]*=[ ]*$//; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9210 | }' |
| 9211 | fi |
| 9212 | |
| 9213 | DEFS=-DHAVE_CONFIG_H |
| 9214 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9215 | ac_libobjs= |
| 9216 | ac_ltlibobjs= |
| 9217 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 9218 | # 1. Remove the extension, and $U if already installed. |
| 9219 | ac_i=`echo "$ac_i" | |
| 9220 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 9221 | # 2. Add them. |
| 9222 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 9223 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 9224 | done |
| 9225 | LIBOBJS=$ac_libobjs |
| 9226 | |
| 9227 | LTLIBOBJS=$ac_ltlibobjs |
| 9228 | |
| 9229 | |
| 9230 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9231 | : ${CONFIG_STATUS=./config.status} |
| 9232 | ac_clean_files_save=$ac_clean_files |
| 9233 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9234 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9235 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 9236 | cat >$CONFIG_STATUS <<_ACEOF |
| 9237 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9238 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9239 | # Run this file to recreate the current configuration. |
| 9240 | # Compiler output produced by configure, useful for debugging |
| 9241 | # configure, is in config.log if it exists. |
| 9242 | |
| 9243 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9244 | ac_cs_recheck=false |
| 9245 | ac_cs_silent=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9246 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 9247 | _ACEOF |
| 9248 | |
| 9249 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9250 | ## --------------------- ## |
| 9251 | ## M4sh Initialization. ## |
| 9252 | ## --------------------- ## |
| 9253 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9254 | # Be Bourne compatible |
| 9255 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 9256 | emulate sh |
| 9257 | NULLCMD=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9258 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 9259 | # is contrary to our usage. Disable this feature. |
| 9260 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9261 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 9262 | set -o posix |
| 9263 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9264 | DUALCASE=1; export DUALCASE # for MKS sh |
| 9265 | |
| 9266 | # Support unset when possible. |
| 9267 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 9268 | as_unset=unset |
| 9269 | else |
| 9270 | as_unset=false |
| 9271 | fi |
| 9272 | |
| 9273 | |
| 9274 | # Work around bugs in pre-3.0 UWIN ksh. |
| 9275 | $as_unset ENV MAIL MAILPATH |
| 9276 | PS1='$ ' |
| 9277 | PS2='> ' |
| 9278 | PS4='+ ' |
| 9279 | |
| 9280 | # NLS nuisances. |
| 9281 | for as_var in \ |
| 9282 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 9283 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 9284 | LC_TELEPHONE LC_TIME |
| 9285 | do |
| 9286 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 9287 | eval $as_var=C; export $as_var |
| 9288 | else |
| 9289 | $as_unset $as_var |
| 9290 | fi |
| 9291 | done |
| 9292 | |
| 9293 | # Required to use basename. |
| 9294 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9295 | as_expr=expr |
| 9296 | else |
| 9297 | as_expr=false |
| 9298 | fi |
| 9299 | |
| 9300 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 9301 | as_basename=basename |
| 9302 | else |
| 9303 | as_basename=false |
| 9304 | fi |
| 9305 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9306 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9307 | # Name of the executable. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9308 | as_me=`$as_basename "$0" || |
| 9309 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 9310 | X"$0" : 'X\(//\)$' \| \ |
| 9311 | X"$0" : 'X\(/\)$' \| \ |
| 9312 | . : '\(.\)' 2>/dev/null || |
| 9313 | echo X/"$0" | |
| 9314 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 9315 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 9316 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 9317 | s/.*/./; q'` |
| 9318 | |
| 9319 | |
| 9320 | # PATH needs CR, and LINENO needs CR and PATH. |
| 9321 | # Avoid depending upon Character Ranges. |
| 9322 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 9323 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 9324 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 9325 | as_cr_digits='0123456789' |
| 9326 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 9327 | |
| 9328 | # The user is always right. |
| 9329 | if test "${PATH_SEPARATOR+set}" != set; then |
| 9330 | echo "#! /bin/sh" >conf$$.sh |
| 9331 | echo "exit 0" >>conf$$.sh |
| 9332 | chmod +x conf$$.sh |
| 9333 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 9334 | PATH_SEPARATOR=';' |
| 9335 | else |
| 9336 | PATH_SEPARATOR=: |
| 9337 | fi |
| 9338 | rm -f conf$$.sh |
| 9339 | fi |
| 9340 | |
| 9341 | |
| 9342 | as_lineno_1=$LINENO |
| 9343 | as_lineno_2=$LINENO |
| 9344 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9345 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9346 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 9347 | # Find who we are. Look in the path if we contain no path at all |
| 9348 | # relative or not. |
| 9349 | case $0 in |
| 9350 | *[\\/]* ) as_myself=$0 ;; |
| 9351 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9352 | for as_dir in $PATH |
| 9353 | do |
| 9354 | IFS=$as_save_IFS |
| 9355 | test -z "$as_dir" && as_dir=. |
| 9356 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 9357 | done |
| 9358 | |
| 9359 | ;; |
| 9360 | esac |
| 9361 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 9362 | # in which case we are not to be found in the path. |
| 9363 | if test "x$as_myself" = x; then |
| 9364 | as_myself=$0 |
| 9365 | fi |
| 9366 | if test ! -f "$as_myself"; then |
| 9367 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 9368 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 9369 | { (exit 1); exit 1; }; } |
| 9370 | fi |
| 9371 | case $CONFIG_SHELL in |
| 9372 | '') |
| 9373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9374 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 9375 | do |
| 9376 | IFS=$as_save_IFS |
| 9377 | test -z "$as_dir" && as_dir=. |
| 9378 | for as_base in sh bash ksh sh5; do |
| 9379 | case $as_dir in |
| 9380 | /*) |
| 9381 | if ("$as_dir/$as_base" -c ' |
| 9382 | as_lineno_1=$LINENO |
| 9383 | as_lineno_2=$LINENO |
| 9384 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9385 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9386 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 9387 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 9388 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 9389 | CONFIG_SHELL=$as_dir/$as_base |
| 9390 | export CONFIG_SHELL |
| 9391 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 9392 | fi;; |
| 9393 | esac |
| 9394 | done |
| 9395 | done |
| 9396 | ;; |
| 9397 | esac |
| 9398 | |
| 9399 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 9400 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 9401 | # line-number line before each line; the second 'sed' does the real |
| 9402 | # work. The second script uses 'N' to pair each line-number line |
| 9403 | # with the numbered line, and appends trailing '-' during |
| 9404 | # substitution so that $LINENO is not a special case at line end. |
| 9405 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 9406 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 9407 | sed '=' <$as_myself | |
| 9408 | sed ' |
| 9409 | N |
| 9410 | s,$,-, |
| 9411 | : loop |
| 9412 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 9413 | t loop |
| 9414 | s,-$,, |
| 9415 | s,^['$as_cr_digits']*\n,, |
| 9416 | ' >$as_me.lineno && |
| 9417 | chmod +x $as_me.lineno || |
| 9418 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 9419 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 9420 | { (exit 1); exit 1; }; } |
| 9421 | |
| 9422 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 9423 | # (the dirname of $[0] is not the place where we might find the |
| 9424 | # original and so on. Autoconf is especially sensible to this). |
| 9425 | . ./$as_me.lineno |
| 9426 | # Exit status is that of the last command. |
| 9427 | exit |
| 9428 | } |
| 9429 | |
| 9430 | |
| 9431 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 9432 | *c*,-n*) ECHO_N= ECHO_C=' |
| 9433 | ' ECHO_T=' ' ;; |
| 9434 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 9435 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 9436 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9437 | |
| 9438 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9439 | as_expr=expr |
| 9440 | else |
| 9441 | as_expr=false |
| 9442 | fi |
| 9443 | |
| 9444 | rm -f conf$$ conf$$.exe conf$$.file |
| 9445 | echo >conf$$.file |
| 9446 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 9447 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 9448 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 9449 | if test -f conf$$.exe; then |
| 9450 | # Don't use ln at all; we don't have any links |
| 9451 | as_ln_s='cp -p' |
| 9452 | else |
| 9453 | as_ln_s='ln -s' |
| 9454 | fi |
| 9455 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 9456 | as_ln_s=ln |
| 9457 | else |
| 9458 | as_ln_s='cp -p' |
| 9459 | fi |
| 9460 | rm -f conf$$ conf$$.exe conf$$.file |
| 9461 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9462 | if mkdir -p . 2>/dev/null; then |
| 9463 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 9464 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9465 | test -d ./-p && rmdir ./-p |
| 9466 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 9467 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9468 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9469 | as_executable_p="test -f" |
| 9470 | |
| 9471 | # Sed expression to map a string onto a valid CPP name. |
| 9472 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 9473 | |
| 9474 | # Sed expression to map a string onto a valid variable name. |
| 9475 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 9476 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9477 | |
| 9478 | # IFS |
| 9479 | # We need space, tab and new line, in precisely that order. |
| 9480 | as_nl=' |
| 9481 | ' |
| 9482 | IFS=" $as_nl" |
| 9483 | |
| 9484 | # CDPATH. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9485 | $as_unset CDPATH |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9486 | |
| 9487 | exec 6>&1 |
| 9488 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9489 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 9490 | # report actual input values of CONFIG_FILES etc. instead of their |
| 9491 | # values after options handling. Logging --version etc. is OK. |
| 9492 | exec 5>>config.log |
| 9493 | { |
| 9494 | echo |
| 9495 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 9496 | ## Running $as_me. ## |
| 9497 | _ASBOX |
| 9498 | } >&5 |
| 9499 | cat >&5 <<_CSEOF |
| 9500 | |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 9501 | This file was extended by pjproject $as_me 0.5.10, which was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9502 | generated by GNU Autoconf 2.59. Invocation command line was |
| 9503 | |
| 9504 | CONFIG_FILES = $CONFIG_FILES |
| 9505 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9506 | CONFIG_LINKS = $CONFIG_LINKS |
| 9507 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9508 | $ $0 $@ |
| 9509 | |
| 9510 | _CSEOF |
| 9511 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 9512 | echo >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9513 | _ACEOF |
| 9514 | |
| 9515 | # Files that config.status was made for. |
| 9516 | if test -n "$ac_config_files"; then |
| 9517 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 9518 | fi |
| 9519 | |
| 9520 | if test -n "$ac_config_headers"; then |
| 9521 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 9522 | fi |
| 9523 | |
| 9524 | if test -n "$ac_config_links"; then |
| 9525 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 9526 | fi |
| 9527 | |
| 9528 | if test -n "$ac_config_commands"; then |
| 9529 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 9530 | fi |
| 9531 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9532 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9533 | |
| 9534 | ac_cs_usage="\ |
| 9535 | \`$as_me' instantiates files from templates according to the |
| 9536 | current configuration. |
| 9537 | |
| 9538 | Usage: $0 [OPTIONS] [FILE]... |
| 9539 | |
| 9540 | -h, --help print this help, then exit |
| 9541 | -V, --version print version number, then exit |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9542 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9543 | -d, --debug don't remove temporary files |
| 9544 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9545 | --file=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9546 | instantiate the configuration file FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9547 | --header=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9548 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9549 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9550 | Configuration files: |
| 9551 | $config_files |
| 9552 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9553 | Configuration headers: |
| 9554 | $config_headers |
| 9555 | |
| 9556 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9557 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9558 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9559 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9560 | ac_cs_version="\\ |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 9561 | pjproject config.status 0.5.10 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9562 | configured by $0, generated by GNU Autoconf 2.59, |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9563 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 9564 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9565 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9566 | This config.status script is free software; the Free Software Foundation |
| 9567 | gives unlimited permission to copy, distribute and modify it." |
| 9568 | srcdir=$srcdir |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9569 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9570 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9571 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9572 | # If no file are specified by the user, then we need to provide default |
| 9573 | # value. By we need to know if files were specified by the user. |
| 9574 | ac_need_defaults=: |
| 9575 | while test $# != 0 |
| 9576 | do |
| 9577 | case $1 in |
| 9578 | --*=*) |
| 9579 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9580 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9581 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9582 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9583 | -*) |
| 9584 | ac_option=$1 |
| 9585 | ac_optarg=$2 |
| 9586 | ac_shift=shift |
| 9587 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9588 | *) # This is not an option, so the user has probably given explicit |
| 9589 | # arguments. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9590 | ac_option=$1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9591 | ac_need_defaults=false;; |
| 9592 | esac |
| 9593 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9594 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9595 | # Handling of the options. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9596 | _ACEOF |
| 9597 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9598 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9599 | ac_cs_recheck=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9600 | --version | --vers* | -V ) |
| 9601 | echo "$ac_cs_version"; exit 0 ;; |
| 9602 | --he | --h) |
| 9603 | # Conflict between --help and --header |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9604 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9605 | Try \`$0 --help' for more information." >&5 |
| 9606 | echo "$as_me: error: ambiguous option: $1 |
| 9607 | Try \`$0 --help' for more information." >&2;} |
| 9608 | { (exit 1); exit 1; }; };; |
| 9609 | --help | --hel | -h ) |
| 9610 | echo "$ac_cs_usage"; exit 0 ;; |
| 9611 | --debug | --d* | -d ) |
| 9612 | debug=: ;; |
| 9613 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9614 | $ac_shift |
| 9615 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9616 | ac_need_defaults=false;; |
| 9617 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9618 | $ac_shift |
| 9619 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9620 | ac_need_defaults=false;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9621 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 9622 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 9623 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9624 | |
| 9625 | # This is an error. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9626 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9627 | Try \`$0 --help' for more information." >&5 |
| 9628 | echo "$as_me: error: unrecognized option: $1 |
| 9629 | Try \`$0 --help' for more information." >&2;} |
| 9630 | { (exit 1); exit 1; }; } ;; |
| 9631 | |
| 9632 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 9633 | |
| 9634 | esac |
| 9635 | shift |
| 9636 | done |
| 9637 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9638 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9639 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9640 | if $ac_cs_silent; then |
| 9641 | exec 6>/dev/null |
| 9642 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 9643 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9644 | |
| 9645 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9646 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9647 | if \$ac_cs_recheck; then |
| 9648 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 9649 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 9650 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9651 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9652 | _ACEOF |
| 9653 | |
| 9654 | |
| 9655 | |
| 9656 | |
| 9657 | |
| 9658 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9659 | for ac_config_target in $ac_config_targets |
| 9660 | do |
| 9661 | case "$ac_config_target" in |
| 9662 | # Handling of arguments. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9663 | "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 9664 | "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 9665 | "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 9666 | "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 9667 | "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 9668 | "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9669 | "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9670 | "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 9671 | "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 9672 | "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9673 | "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 9674 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9675 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9676 | { (exit 1); exit 1; }; };; |
| 9677 | esac |
| 9678 | done |
| 9679 | |
| 9680 | # If the user did not use the arguments to specify the items to instantiate, |
| 9681 | # then the envvar interface is used. Set only those that are not. |
| 9682 | # We use the long form for the default assignment because of an extremely |
| 9683 | # bizarre bug on SunOS 4.1.3. |
| 9684 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9685 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9686 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 9687 | fi |
| 9688 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9689 | # Have a temporary directory for convenience. Make it in the build tree |
| 9690 | # simply because there is no reason to put it here, and in addition, |
| 9691 | # creating and moving files from /tmp can sometimes cause problems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9692 | # Create a temporary directory, and hook for its removal unless debugging. |
| 9693 | $debug || |
| 9694 | { |
| 9695 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 9696 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 9697 | } |
| 9698 | |
| 9699 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9700 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9701 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9702 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9703 | test -n "$tmp" && test -d "$tmp" |
| 9704 | } || |
| 9705 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9706 | tmp=./confstat$$-$RANDOM |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9707 | (umask 077 && mkdir $tmp) |
| 9708 | } || |
| 9709 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9710 | echo "$me: cannot create a temporary directory in ." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9711 | { (exit 1); exit 1; } |
| 9712 | } |
| 9713 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9714 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9715 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9716 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9717 | |
| 9718 | # |
| 9719 | # CONFIG_FILES section. |
| 9720 | # |
| 9721 | |
| 9722 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 9723 | # This happens for instance when ./config.status config.h |
| 9724 | if test -n "\$CONFIG_FILES"; then |
| 9725 | # Protect against being on the right side of a sed subst in config.status. |
| 9726 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 9727 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 9728 | s,@SHELL@,$SHELL,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9729 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 9730 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 9731 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 9732 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 9733 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 9734 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9735 | s,@exec_prefix@,$exec_prefix,;t t |
| 9736 | s,@prefix@,$prefix,;t t |
| 9737 | s,@program_transform_name@,$program_transform_name,;t t |
| 9738 | s,@bindir@,$bindir,;t t |
| 9739 | s,@sbindir@,$sbindir,;t t |
| 9740 | s,@libexecdir@,$libexecdir,;t t |
| 9741 | s,@datadir@,$datadir,;t t |
| 9742 | s,@sysconfdir@,$sysconfdir,;t t |
| 9743 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 9744 | s,@localstatedir@,$localstatedir,;t t |
| 9745 | s,@libdir@,$libdir,;t t |
| 9746 | s,@includedir@,$includedir,;t t |
| 9747 | s,@oldincludedir@,$oldincludedir,;t t |
| 9748 | s,@infodir@,$infodir,;t t |
| 9749 | s,@mandir@,$mandir,;t t |
| 9750 | s,@build_alias@,$build_alias,;t t |
| 9751 | s,@host_alias@,$host_alias,;t t |
| 9752 | s,@target_alias@,$target_alias,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9753 | s,@DEFS@,$DEFS,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9754 | s,@ECHO_C@,$ECHO_C,;t t |
| 9755 | s,@ECHO_N@,$ECHO_N,;t t |
| 9756 | s,@ECHO_T@,$ECHO_T,;t t |
| 9757 | s,@LIBS@,$LIBS,;t t |
| 9758 | s,@build@,$build,;t t |
| 9759 | s,@build_cpu@,$build_cpu,;t t |
| 9760 | s,@build_vendor@,$build_vendor,;t t |
| 9761 | s,@build_os@,$build_os,;t t |
| 9762 | s,@host@,$host,;t t |
| 9763 | s,@host_cpu@,$host_cpu,;t t |
| 9764 | s,@host_vendor@,$host_vendor,;t t |
| 9765 | s,@host_os@,$host_os,;t t |
| 9766 | s,@target@,$target,;t t |
| 9767 | s,@target_cpu@,$target_cpu,;t t |
| 9768 | s,@target_vendor@,$target_vendor,;t t |
| 9769 | s,@target_os@,$target_os,;t t |
| 9770 | s,@CC@,$CC,;t t |
| 9771 | s,@CFLAGS@,$CFLAGS,;t t |
| 9772 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 9773 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 9774 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 9775 | s,@EXEEXT@,$EXEEXT,;t t |
| 9776 | s,@OBJEXT@,$OBJEXT,;t t |
| 9777 | s,@CXX@,$CXX,;t t |
| 9778 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 9779 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 9780 | s,@ac_pjdir@,$ac_pjdir,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9781 | s,@CPP@,$CPP,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9782 | s,@EGREP@,$EGREP,;t t |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9783 | s,@ac_os_objs@,$ac_os_objs,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9784 | s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 9785 | s,@ac_pa_cflags@,$ac_pa_cflags,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9786 | s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t |
| 9787 | s,@ac_no_small_filter@,$ac_no_small_filter,;t t |
| 9788 | s,@ac_no_large_filter@,$ac_no_large_filter,;t t |
| 9789 | s,@ac_no_g711_plc@,$ac_no_g711_plc,;t t |
| 9790 | s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t |
| 9791 | s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t |
| 9792 | s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t |
| 9793 | s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t |
| 9794 | s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t |
| 9795 | s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9796 | s,@ac_no_ssl@,$ac_no_ssl,;t t |
| 9797 | s,@openssl_h_present@,$openssl_h_present,;t t |
| 9798 | s,@libssl_present@,$libssl_present,;t t |
| 9799 | s,@libcrypto_present@,$libcrypto_present,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9800 | s,@ac_cross_compile@,$ac_cross_compile,;t t |
| 9801 | s,@ac_linux_poll@,$ac_linux_poll,;t t |
| 9802 | s,@ac_host@,$ac_host,;t t |
| 9803 | s,@ac_main_obj@,$ac_main_obj,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9804 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 9805 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9806 | CEOF |
| 9807 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9808 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9809 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9810 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9811 | # Split the substitutions into bite-sized pieces for seds with |
| 9812 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 9813 | ac_max_sed_lines=48 |
| 9814 | ac_sed_frag=1 # Number of current file. |
| 9815 | ac_beg=1 # First line for current file. |
| 9816 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 9817 | ac_more_lines=: |
| 9818 | ac_sed_cmds= |
| 9819 | while $ac_more_lines; do |
| 9820 | if test $ac_beg -gt 1; then |
| 9821 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9822 | else |
| 9823 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9824 | fi |
| 9825 | if test ! -s $tmp/subs.frag; then |
| 9826 | ac_more_lines=false |
| 9827 | else |
| 9828 | # The purpose of the label and of the branching condition is to |
| 9829 | # speed up the sed processing (if there are no `@' at all, there |
| 9830 | # is no need to browse any of the substitutions). |
| 9831 | # These are the two extra sed commands mentioned above. |
| 9832 | (echo ':t |
| 9833 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 9834 | if test -z "$ac_sed_cmds"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9835 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9836 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9837 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9838 | fi |
| 9839 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 9840 | ac_beg=$ac_end |
| 9841 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 9842 | fi |
| 9843 | done |
| 9844 | if test -z "$ac_sed_cmds"; then |
| 9845 | ac_sed_cmds=cat |
| 9846 | fi |
| 9847 | fi # test -n "$CONFIG_FILES" |
| 9848 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9849 | _ACEOF |
| 9850 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9851 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 9852 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9853 | case $ac_file in |
| 9854 | - | *:- | *:-:* ) # input from stdin |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9855 | cat >$tmp/stdin |
| 9856 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9857 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9858 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9859 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9860 | * ) ac_file_in=$ac_file.in ;; |
| 9861 | esac |
| 9862 | |
| 9863 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9864 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 9865 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9866 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9867 | X"$ac_file" : 'X\(//\)$' \| \ |
| 9868 | X"$ac_file" : 'X\(/\)' \| \ |
| 9869 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9870 | echo X"$ac_file" | |
| 9871 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9872 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9873 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9874 | /^X\(\/\).*/{ s//\1/; q; } |
| 9875 | s/.*/./; q'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9876 | { if $as_mkdir_p; then |
| 9877 | mkdir -p "$ac_dir" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9878 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9879 | as_dir="$ac_dir" |
| 9880 | as_dirs= |
| 9881 | while test ! -d "$as_dir"; do |
| 9882 | as_dirs="$as_dir $as_dirs" |
| 9883 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 9884 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9885 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9886 | X"$as_dir" : 'X\(//\)$' \| \ |
| 9887 | X"$as_dir" : 'X\(/\)' \| \ |
| 9888 | . : '\(.\)' 2>/dev/null || |
| 9889 | echo X"$as_dir" | |
| 9890 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9891 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9892 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9893 | /^X\(\/\).*/{ s//\1/; q; } |
| 9894 | s/.*/./; q'` |
| 9895 | done |
| 9896 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 9897 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 9898 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 9899 | { (exit 1); exit 1; }; }; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9900 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9901 | ac_builddir=. |
| 9902 | |
| 9903 | if test "$ac_dir" != .; then |
| 9904 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 9905 | # A "../" for each directory in $ac_dir_suffix. |
| 9906 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 9907 | else |
| 9908 | ac_dir_suffix= ac_top_builddir= |
| 9909 | fi |
| 9910 | |
| 9911 | case $srcdir in |
| 9912 | .) # No --srcdir option. We are building in place. |
| 9913 | ac_srcdir=. |
| 9914 | if test -z "$ac_top_builddir"; then |
| 9915 | ac_top_srcdir=. |
| 9916 | else |
| 9917 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 9918 | fi ;; |
| 9919 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 9920 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 9921 | ac_top_srcdir=$srcdir ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9922 | *) # Relative path. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9923 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 9924 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 9925 | esac |
| 9926 | |
| 9927 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 9928 | # the directories may not exist. |
| 9929 | case `pwd` in |
| 9930 | .) ac_abs_builddir="$ac_dir";; |
| 9931 | *) |
| 9932 | case "$ac_dir" in |
| 9933 | .) ac_abs_builddir=`pwd`;; |
| 9934 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 9935 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 9936 | esac;; |
| 9937 | esac |
| 9938 | case $ac_abs_builddir in |
| 9939 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 9940 | *) |
| 9941 | case ${ac_top_builddir}. in |
| 9942 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 9943 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 9944 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 9945 | esac;; |
| 9946 | esac |
| 9947 | case $ac_abs_builddir in |
| 9948 | .) ac_abs_srcdir=$ac_srcdir;; |
| 9949 | *) |
| 9950 | case $ac_srcdir in |
| 9951 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 9952 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 9953 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 9954 | esac;; |
| 9955 | esac |
| 9956 | case $ac_abs_builddir in |
| 9957 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 9958 | *) |
| 9959 | case $ac_top_srcdir in |
| 9960 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 9961 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 9962 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 9963 | esac;; |
| 9964 | esac |
| 9965 | |
| 9966 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9967 | |
| 9968 | if test x"$ac_file" != x-; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9969 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9970 | echo "$as_me: creating $ac_file" >&6;} |
| 9971 | rm -f "$ac_file" |
| 9972 | fi |
| 9973 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9974 | # use $as_me), people would be surprised to read: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9975 | # /* config.h. Generated by config.status. */ |
| 9976 | if test x"$ac_file" = x-; then |
| 9977 | configure_input= |
| 9978 | else |
| 9979 | configure_input="$ac_file. " |
| 9980 | fi |
| 9981 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 9982 | sed 's,.*/,,'` by configure." |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9983 | |
| 9984 | # First look for the input files in the build tree, otherwise in the |
| 9985 | # src tree. |
| 9986 | ac_file_inputs=`IFS=: |
| 9987 | for f in $ac_file_in; do |
| 9988 | case $f in |
| 9989 | -) echo $tmp/stdin ;; |
| 9990 | [\\/$]*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9991 | # Absolute (can't be DOS-style, as IFS=:) |
| 9992 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9993 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9994 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9995 | echo "$f";; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9996 | *) # Relative |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9997 | if test -f "$f"; then |
| 9998 | # Build tree |
| 9999 | echo "$f" |
| 10000 | elif test -f "$srcdir/$f"; then |
| 10001 | # Source tree |
| 10002 | echo "$srcdir/$f" |
| 10003 | else |
| 10004 | # /dev/null tree |
| 10005 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10006 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10007 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10008 | fi;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10009 | esac |
| 10010 | done` || { (exit 1); exit 1; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10011 | _ACEOF |
| 10012 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10013 | sed "$ac_vpsub |
| 10014 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10015 | _ACEOF |
| 10016 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10017 | :t |
| 10018 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 10019 | s,@configure_input@,$configure_input,;t t |
| 10020 | s,@srcdir@,$ac_srcdir,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10021 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10022 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10023 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 10024 | s,@builddir@,$ac_builddir,;t t |
| 10025 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 10026 | s,@top_builddir@,$ac_top_builddir,;t t |
| 10027 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10028 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 10029 | rm -f $tmp/stdin |
| 10030 | if test x"$ac_file" != x-; then |
| 10031 | mv $tmp/out $ac_file |
| 10032 | else |
| 10033 | cat $tmp/out |
| 10034 | rm -f $tmp/out |
| 10035 | fi |
| 10036 | |
| 10037 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10038 | _ACEOF |
| 10039 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10040 | |
| 10041 | # |
| 10042 | # CONFIG_HEADER section. |
| 10043 | # |
| 10044 | |
| 10045 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 10046 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 10047 | # |
| 10048 | # ac_d sets the value in "#define NAME VALUE" lines. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10049 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 10050 | ac_dB='[ ].*$,\1#\2' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10051 | ac_dC=' ' |
| 10052 | ac_dD=',;t' |
| 10053 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10054 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10055 | ac_uB='$,\1#\2define\3' |
| 10056 | ac_uC=' ' |
| 10057 | ac_uD=',;t' |
| 10058 | |
| 10059 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 10060 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10061 | case $ac_file in |
| 10062 | - | *:- | *:-:* ) # input from stdin |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10063 | cat >$tmp/stdin |
| 10064 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10065 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10066 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10067 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10068 | * ) ac_file_in=$ac_file.in ;; |
| 10069 | esac |
| 10070 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10071 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10072 | echo "$as_me: creating $ac_file" >&6;} |
| 10073 | |
| 10074 | # First look for the input files in the build tree, otherwise in the |
| 10075 | # src tree. |
| 10076 | ac_file_inputs=`IFS=: |
| 10077 | for f in $ac_file_in; do |
| 10078 | case $f in |
| 10079 | -) echo $tmp/stdin ;; |
| 10080 | [\\/$]*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10081 | # Absolute (can't be DOS-style, as IFS=:) |
| 10082 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10083 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10084 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10085 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 10086 | echo "$f";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10087 | *) # Relative |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10088 | if test -f "$f"; then |
| 10089 | # Build tree |
| 10090 | echo "$f" |
| 10091 | elif test -f "$srcdir/$f"; then |
| 10092 | # Source tree |
| 10093 | echo "$srcdir/$f" |
| 10094 | else |
| 10095 | # /dev/null tree |
| 10096 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10097 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10098 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10099 | fi;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10100 | esac |
| 10101 | done` || { (exit 1); exit 1; } |
| 10102 | # Remove the trailing spaces. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10103 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10104 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10105 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10106 | |
| 10107 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 10108 | # `conftest.undefs', that substitutes the proper values into |
| 10109 | # config.h.in to produce config.h. The first handles `#define' |
| 10110 | # templates, and the second `#undef' templates. |
| 10111 | # And first: Protect against being on the right side of a sed subst in |
| 10112 | # config.status. Protect against being in an unquoted here document |
| 10113 | # in config.status. |
| 10114 | rm -f conftest.defines conftest.undefs |
| 10115 | # Using a here document instead of a string reduces the quoting nightmare. |
| 10116 | # Putting comments in sed scripts is not portable. |
| 10117 | # |
| 10118 | # `end' is used to avoid that the second main sed command (meant for |
| 10119 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 10120 | # See the Autoconf documentation for `clear'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10121 | cat >confdef2sed.sed <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10122 | s/[\\&,]/\\&/g |
| 10123 | s,[\\$`],\\&,g |
| 10124 | t clear |
| 10125 | : clear |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10126 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10127 | t end |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10128 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10129 | : end |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10130 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10131 | # If some macros were called several times there might be several times |
| 10132 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 10133 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 10134 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 10135 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 10136 | rm -f confdef2sed.sed |
| 10137 | |
| 10138 | # This sed command replaces #undef with comments. This is necessary, for |
| 10139 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 10140 | # on some systems where configure will not decide to define it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10141 | cat >>conftest.undefs <<\_ACEOF |
| 10142 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 10143 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10144 | |
| 10145 | # Break up conftest.defines because some shells have a limit on the size |
| 10146 | # of here documents, and old seds have small limits too (100 cmds). |
| 10147 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10148 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10149 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 10150 | echo ' :' >>$CONFIG_STATUS |
| 10151 | rm -f conftest.tail |
| 10152 | while grep . conftest.defines >/dev/null |
| 10153 | do |
| 10154 | # Write a limited-size here document to $tmp/defines.sed. |
| 10155 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 10156 | # Speed up: don't consider the non `#define' lines. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10157 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10158 | # Work around the forget-to-reset-the-flag bug. |
| 10159 | echo 't clr' >>$CONFIG_STATUS |
| 10160 | echo ': clr' >>$CONFIG_STATUS |
| 10161 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 10162 | echo 'CEOF |
| 10163 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 10164 | rm -f $tmp/in |
| 10165 | mv $tmp/out $tmp/in |
| 10166 | ' >>$CONFIG_STATUS |
| 10167 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 10168 | rm -f conftest.defines |
| 10169 | mv conftest.tail conftest.defines |
| 10170 | done |
| 10171 | rm -f conftest.defines |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10172 | echo ' fi # grep' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10173 | echo >>$CONFIG_STATUS |
| 10174 | |
| 10175 | # Break up conftest.undefs because some shells have a limit on the size |
| 10176 | # of here documents, and old seds have small limits too (100 cmds). |
| 10177 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 10178 | rm -f conftest.tail |
| 10179 | while grep . conftest.undefs >/dev/null |
| 10180 | do |
| 10181 | # Write a limited-size here document to $tmp/undefs.sed. |
| 10182 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 10183 | # Speed up: don't consider the non `#undef' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10184 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10185 | # Work around the forget-to-reset-the-flag bug. |
| 10186 | echo 't clr' >>$CONFIG_STATUS |
| 10187 | echo ': clr' >>$CONFIG_STATUS |
| 10188 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 10189 | echo 'CEOF |
| 10190 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 10191 | rm -f $tmp/in |
| 10192 | mv $tmp/out $tmp/in |
| 10193 | ' >>$CONFIG_STATUS |
| 10194 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 10195 | rm -f conftest.undefs |
| 10196 | mv conftest.tail conftest.undefs |
| 10197 | done |
| 10198 | rm -f conftest.undefs |
| 10199 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10200 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10201 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10202 | # use $as_me), people would be surprised to read: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10203 | # /* config.h. Generated by config.status. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10204 | if test x"$ac_file" = x-; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10205 | echo "/* Generated by configure. */" >$tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10206 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10207 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10208 | fi |
| 10209 | cat $tmp/in >>$tmp/config.h |
| 10210 | rm -f $tmp/in |
| 10211 | if test x"$ac_file" != x-; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10212 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 10213 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10214 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 10215 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10216 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10217 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10218 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10219 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10220 | X"$ac_file" : 'X\(/\)' \| \ |
| 10221 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10222 | echo X"$ac_file" | |
| 10223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10224 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10225 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10226 | /^X\(\/\).*/{ s//\1/; q; } |
| 10227 | s/.*/./; q'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10228 | { if $as_mkdir_p; then |
| 10229 | mkdir -p "$ac_dir" |
| 10230 | else |
| 10231 | as_dir="$ac_dir" |
| 10232 | as_dirs= |
| 10233 | while test ! -d "$as_dir"; do |
| 10234 | as_dirs="$as_dir $as_dirs" |
| 10235 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10236 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10237 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10238 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10239 | X"$as_dir" : 'X\(/\)' \| \ |
| 10240 | . : '\(.\)' 2>/dev/null || |
| 10241 | echo X"$as_dir" | |
| 10242 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10243 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10244 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10245 | /^X\(\/\).*/{ s//\1/; q; } |
| 10246 | s/.*/./; q'` |
| 10247 | done |
| 10248 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10249 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10250 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10251 | { (exit 1); exit 1; }; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10252 | |
| 10253 | rm -f $ac_file |
| 10254 | mv $tmp/config.h $ac_file |
| 10255 | fi |
| 10256 | else |
| 10257 | cat $tmp/config.h |
| 10258 | rm -f $tmp/config.h |
| 10259 | fi |
| 10260 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10261 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10262 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10263 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10264 | |
| 10265 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10266 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10267 | chmod +x $CONFIG_STATUS |
| 10268 | ac_clean_files=$ac_clean_files_save |
| 10269 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10270 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10271 | # configure is writing to config.log, and then calls config.status. |
| 10272 | # config.status does its own redirection, appending to config.log. |
| 10273 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10274 | # by configure, so config.status won't be able to write to it; its |
| 10275 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10276 | # effectively closing config.log, so it can be properly (re)opened and |
| 10277 | # appended to by config.status. When coming back to configure, we |
| 10278 | # need to make the FD available again. |
| 10279 | if test "$no_create" != yes; then |
| 10280 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10281 | ac_config_status_args= |
| 10282 | test "$silent" = yes && |
| 10283 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10284 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10285 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10286 | exec 5>>config.log |
| 10287 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10288 | # would make configure fail if this is the last instruction. |
| 10289 | $ac_cs_success || { (exit 1); exit 1; } |
| 10290 | fi |
| 10291 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10292 | |