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 | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for pjproject 0.7. |
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 | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 270 | PACKAGE_VERSION='0.7' |
| 271 | PACKAGE_STRING='pjproject 0.7' |
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 | d962784 | 2007-04-18 09:24:31 +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_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 | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 788 | \`configure' configures pjproject 0.7 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 | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 850 | short | recursive ) echo "Configuration of pjproject 0.7:";; |
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 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 862 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 863 | --disable-g711-codec Exclude G.711 codecs from the build |
| 864 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 865 | --disable-gsm-codec Exclude GSM codec in the build |
| 866 | --disable-speex-codec Exclude Speex codecs in the build |
| 867 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 868 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 869 | |
| 870 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 871 | Some influential environment variables: |
| 872 | CC C compiler command |
| 873 | CFLAGS C compiler flags |
| 874 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 875 | nonstandard directory <lib dir> |
| 876 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 877 | headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 878 | CXX C++ compiler command |
| 879 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 880 | CPP C preprocessor |
| 881 | |
| 882 | Use these variables to override the choices made by `configure' or to help |
| 883 | it to find libraries and programs with nonstandard names/locations. |
| 884 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 885 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 886 | fi |
| 887 | |
| 888 | if test "$ac_init_help" = "recursive"; then |
| 889 | # If there are subdirs, report their specific --help. |
| 890 | ac_popdir=`pwd` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 891 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 892 | test -d $ac_dir || continue |
| 893 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 894 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 895 | if test "$ac_dir" != .; then |
| 896 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 897 | # A "../" for each directory in $ac_dir_suffix. |
| 898 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 899 | else |
| 900 | ac_dir_suffix= ac_top_builddir= |
| 901 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 902 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 903 | case $srcdir in |
| 904 | .) # No --srcdir option. We are building in place. |
| 905 | ac_srcdir=. |
| 906 | if test -z "$ac_top_builddir"; then |
| 907 | ac_top_srcdir=. |
| 908 | else |
| 909 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 910 | fi ;; |
| 911 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 912 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 913 | ac_top_srcdir=$srcdir ;; |
| 914 | *) # Relative path. |
| 915 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 916 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 917 | esac |
| 918 | |
| 919 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 920 | # the directories may not exist. |
| 921 | case `pwd` in |
| 922 | .) ac_abs_builddir="$ac_dir";; |
| 923 | *) |
| 924 | case "$ac_dir" in |
| 925 | .) ac_abs_builddir=`pwd`;; |
| 926 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 927 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 928 | esac;; |
| 929 | esac |
| 930 | case $ac_abs_builddir in |
| 931 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 932 | *) |
| 933 | case ${ac_top_builddir}. in |
| 934 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 935 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 936 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 937 | esac;; |
| 938 | esac |
| 939 | case $ac_abs_builddir in |
| 940 | .) ac_abs_srcdir=$ac_srcdir;; |
| 941 | *) |
| 942 | case $ac_srcdir in |
| 943 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 945 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 946 | esac;; |
| 947 | esac |
| 948 | case $ac_abs_builddir in |
| 949 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 950 | *) |
| 951 | case $ac_top_srcdir in |
| 952 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 954 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 955 | esac;; |
| 956 | esac |
| 957 | |
| 958 | cd $ac_dir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 959 | # Check for guested configure; otherwise get Cygnus style configure. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 960 | if test -f $ac_srcdir/configure.gnu; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 961 | echo |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 962 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 963 | elif test -f $ac_srcdir/configure; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 964 | echo |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 965 | $SHELL $ac_srcdir/configure --help=recursive |
| 966 | elif test -f $ac_srcdir/configure.ac || |
| 967 | test -f $ac_srcdir/configure.in; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 968 | echo |
| 969 | $ac_configure --help |
| 970 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 971 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 972 | fi |
| 973 | cd $ac_popdir |
| 974 | done |
| 975 | fi |
| 976 | |
| 977 | test -n "$ac_init_help" && exit 0 |
| 978 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 979 | cat <<\_ACEOF |
Benny Prijono | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 980 | pjproject configure 0.7 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 981 | generated by GNU Autoconf 2.59 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 982 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 983 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 984 | This configure script is free software; the Free Software Foundation |
| 985 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 986 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 987 | exit 0 |
| 988 | fi |
| 989 | exec 5>config.log |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 990 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 991 | This file contains any messages produced by compilers while |
| 992 | running configure, to aid debugging if configure makes a mistake. |
| 993 | |
Benny Prijono | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 994 | It was created by pjproject $as_me 0.7, which was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 995 | generated by GNU Autoconf 2.59. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 996 | |
| 997 | $ $0 $@ |
| 998 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 999 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1000 | { |
| 1001 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1002 | ## --------- ## |
| 1003 | ## Platform. ## |
| 1004 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1005 | |
| 1006 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1007 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1008 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1009 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1010 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1011 | |
| 1012 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1013 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1014 | |
| 1015 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1016 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1017 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1018 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1019 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1020 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1021 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1022 | |
| 1023 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1024 | |
| 1025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1026 | for as_dir in $PATH |
| 1027 | do |
| 1028 | IFS=$as_save_IFS |
| 1029 | test -z "$as_dir" && as_dir=. |
| 1030 | echo "PATH: $as_dir" |
| 1031 | done |
| 1032 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1033 | } >&5 |
| 1034 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1035 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1036 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1037 | |
| 1038 | ## ----------- ## |
| 1039 | ## Core tests. ## |
| 1040 | ## ----------- ## |
| 1041 | |
| 1042 | _ACEOF |
| 1043 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1044 | |
| 1045 | # Keep a trace of the command line. |
| 1046 | # 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] | 1047 | # 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] | 1048 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1049 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1050 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1051 | ac_configure_args0= |
| 1052 | ac_configure_args1= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1053 | ac_sep= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1054 | ac_must_keep_next=false |
| 1055 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1056 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1057 | for ac_arg |
| 1058 | do |
| 1059 | case $ac_arg in |
| 1060 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1061 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1062 | | -silent | --silent | --silen | --sile | --sil) |
| 1063 | continue ;; |
| 1064 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1065 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1066 | esac |
| 1067 | case $ac_pass in |
| 1068 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1069 | 2) |
| 1070 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1071 | if test $ac_must_keep_next = true; then |
| 1072 | ac_must_keep_next=false # Got value, back to normal. |
| 1073 | else |
| 1074 | case $ac_arg in |
| 1075 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1076 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1077 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1078 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1079 | case "$ac_configure_args0 " in |
| 1080 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1081 | esac |
| 1082 | ;; |
| 1083 | -* ) ac_must_keep_next=true ;; |
| 1084 | esac |
| 1085 | fi |
| 1086 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1087 | # Get rid of the leading space. |
| 1088 | ac_sep=" " |
| 1089 | ;; |
| 1090 | esac |
| 1091 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1092 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1093 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1094 | $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] | 1095 | |
| 1096 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1097 | # config.log. We remove comments because anyway the quotes in there |
| 1098 | # would cause problems or look ugly. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1099 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1100 | # such as our DU 5.0 friend, will then `close' the trap. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1101 | trap 'exit_status=$? |
| 1102 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1103 | { |
| 1104 | echo |
| 1105 | |
| 1106 | cat <<\_ASBOX |
| 1107 | ## ---------------- ## |
| 1108 | ## Cache variables. ## |
| 1109 | ## ---------------- ## |
| 1110 | _ASBOX |
| 1111 | echo |
| 1112 | # The following way of writing the cache mishandles newlines in values, |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1113 | { |
| 1114 | (set) 2>&1 | |
| 1115 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1116 | *ac_space=\ *) |
| 1117 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1118 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1119 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1120 | ;; |
| 1121 | *) |
| 1122 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1123 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1124 | ;; |
| 1125 | esac; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1126 | } |
| 1127 | echo |
| 1128 | |
| 1129 | cat <<\_ASBOX |
| 1130 | ## ----------------- ## |
| 1131 | ## Output variables. ## |
| 1132 | ## ----------------- ## |
| 1133 | _ASBOX |
| 1134 | echo |
| 1135 | for ac_var in $ac_subst_vars |
| 1136 | do |
| 1137 | eval ac_val=$`echo $ac_var` |
| 1138 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1139 | done | sort |
| 1140 | echo |
| 1141 | |
| 1142 | if test -n "$ac_subst_files"; then |
| 1143 | cat <<\_ASBOX |
| 1144 | ## ------------- ## |
| 1145 | ## Output files. ## |
| 1146 | ## ------------- ## |
| 1147 | _ASBOX |
| 1148 | echo |
| 1149 | for ac_var in $ac_subst_files |
| 1150 | do |
| 1151 | eval ac_val=$`echo $ac_var` |
| 1152 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1153 | done | sort |
| 1154 | echo |
| 1155 | fi |
| 1156 | |
| 1157 | if test -s confdefs.h; then |
| 1158 | cat <<\_ASBOX |
| 1159 | ## ----------- ## |
| 1160 | ## confdefs.h. ## |
| 1161 | ## ----------- ## |
| 1162 | _ASBOX |
| 1163 | echo |
| 1164 | sed "/^$/d" confdefs.h | sort |
| 1165 | echo |
| 1166 | fi |
| 1167 | test "$ac_signal" != 0 && |
| 1168 | echo "$as_me: caught signal $ac_signal" |
| 1169 | echo "$as_me: exit $exit_status" |
| 1170 | } >&5 |
| 1171 | rm -f core *.core && |
| 1172 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1173 | exit $exit_status |
| 1174 | ' 0 |
| 1175 | for ac_signal in 1 2 13 15; do |
| 1176 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1177 | done |
| 1178 | ac_signal=0 |
| 1179 | |
| 1180 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1181 | rm -rf conftest* confdefs.h |
| 1182 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1183 | echo >confdefs.h |
| 1184 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1185 | # Predefined preprocessor variables. |
| 1186 | |
| 1187 | cat >>confdefs.h <<_ACEOF |
| 1188 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1189 | _ACEOF |
| 1190 | |
| 1191 | |
| 1192 | cat >>confdefs.h <<_ACEOF |
| 1193 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1194 | _ACEOF |
| 1195 | |
| 1196 | |
| 1197 | cat >>confdefs.h <<_ACEOF |
| 1198 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1199 | _ACEOF |
| 1200 | |
| 1201 | |
| 1202 | cat >>confdefs.h <<_ACEOF |
| 1203 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1204 | _ACEOF |
| 1205 | |
| 1206 | |
| 1207 | cat >>confdefs.h <<_ACEOF |
| 1208 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1209 | _ACEOF |
| 1210 | |
| 1211 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1212 | # Let the site file select an alternate cache file if it wants to. |
| 1213 | # Prefer explicitly selected file to automatically selected ones. |
| 1214 | if test -z "$CONFIG_SITE"; then |
| 1215 | if test "x$prefix" != xNONE; then |
| 1216 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1217 | else |
| 1218 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1219 | fi |
| 1220 | fi |
| 1221 | for ac_site_file in $CONFIG_SITE; do |
| 1222 | if test -r "$ac_site_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1223 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1224 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1225 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1226 | . "$ac_site_file" |
| 1227 | fi |
| 1228 | done |
| 1229 | |
| 1230 | if test -r "$cache_file"; then |
| 1231 | # Some versions of bash will fail to source /dev/null (special |
| 1232 | # files actually), so we avoid doing that. |
| 1233 | if test -f "$cache_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1234 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1235 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1236 | case $cache_file in |
| 1237 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1238 | *) . ./$cache_file;; |
| 1239 | esac |
| 1240 | fi |
| 1241 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1242 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1243 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1244 | >$cache_file |
| 1245 | fi |
| 1246 | |
| 1247 | # Check that the precious variables saved in the cache have kept the same |
| 1248 | # value. |
| 1249 | ac_cache_corrupted=false |
| 1250 | for ac_var in `(set) 2>&1 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1251 | 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] | 1252 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1253 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1254 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1255 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1256 | case $ac_old_set,$ac_new_set in |
| 1257 | set,) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1258 | { 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] | 1259 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1260 | ac_cache_corrupted=: ;; |
| 1261 | ,set) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1262 | { 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] | 1263 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1264 | ac_cache_corrupted=: ;; |
| 1265 | ,);; |
| 1266 | *) |
| 1267 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1268 | { 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] | 1269 | 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] | 1270 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1271 | echo "$as_me: former value: $ac_old_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1272 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1273 | echo "$as_me: current value: $ac_new_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1274 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1275 | fi;; |
| 1276 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1277 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1278 | if test "$ac_new_set" = set; then |
| 1279 | case $ac_new_val in |
| 1280 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1281 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1282 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1283 | esac |
| 1284 | case " $ac_configure_args " in |
| 1285 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1286 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1287 | esac |
| 1288 | fi |
| 1289 | done |
| 1290 | if $ac_cache_corrupted; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1291 | { 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] | 1292 | 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] | 1293 | { { 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] | 1294 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1295 | { (exit 1); exit 1; }; } |
| 1296 | fi |
| 1297 | |
| 1298 | ac_ext=c |
| 1299 | ac_cpp='$CPP $CPPFLAGS' |
| 1300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1303 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1304 | |
| 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 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1330 | |
| 1331 | host_orig="$host" |
| 1332 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1333 | ac_aux_dir= |
| 1334 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1335 | if test -f $ac_dir/install-sh; then |
| 1336 | ac_aux_dir=$ac_dir |
| 1337 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1338 | break |
| 1339 | elif test -f $ac_dir/install.sh; then |
| 1340 | ac_aux_dir=$ac_dir |
| 1341 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1342 | break |
| 1343 | elif test -f $ac_dir/shtool; then |
| 1344 | ac_aux_dir=$ac_dir |
| 1345 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1346 | break |
| 1347 | fi |
| 1348 | done |
| 1349 | if test -z "$ac_aux_dir"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1350 | { { 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] | 1351 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1352 | { (exit 1); exit 1; }; } |
| 1353 | fi |
| 1354 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1355 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1356 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1357 | |
| 1358 | # Make sure we can run config.sub. |
| 1359 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1360 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1361 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1362 | { (exit 1); exit 1; }; } |
| 1363 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1364 | echo "$as_me:$LINENO: checking build system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1365 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1366 | if test "${ac_cv_build+set}" = set; then |
| 1367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1368 | else |
| 1369 | ac_cv_build_alias=$build_alias |
| 1370 | test -z "$ac_cv_build_alias" && |
| 1371 | ac_cv_build_alias=`$ac_config_guess` |
| 1372 | test -z "$ac_cv_build_alias" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1373 | { { 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] | 1374 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1375 | { (exit 1); exit 1; }; } |
| 1376 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1377 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1378 | 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] | 1379 | { (exit 1); exit 1; }; } |
| 1380 | |
| 1381 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1382 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1383 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1384 | build=$ac_cv_build |
| 1385 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1386 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1387 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1388 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1389 | |
| 1390 | echo "$as_me:$LINENO: checking host system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1391 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1392 | if test "${ac_cv_host+set}" = set; then |
| 1393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1394 | else |
| 1395 | ac_cv_host_alias=$host_alias |
| 1396 | test -z "$ac_cv_host_alias" && |
| 1397 | ac_cv_host_alias=$ac_cv_build_alias |
| 1398 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1399 | { { 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] | 1400 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1401 | { (exit 1); exit 1; }; } |
| 1402 | |
| 1403 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1404 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1405 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1406 | host=$ac_cv_host |
| 1407 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1408 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1409 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1410 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1411 | |
| 1412 | echo "$as_me:$LINENO: checking target system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1413 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1414 | if test "${ac_cv_target+set}" = set; then |
| 1415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1416 | else |
| 1417 | ac_cv_target_alias=$target_alias |
| 1418 | test "x$ac_cv_target_alias" = "x" && |
| 1419 | ac_cv_target_alias=$ac_cv_host_alias |
| 1420 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1421 | { { 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] | 1422 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1423 | { (exit 1); exit 1; }; } |
| 1424 | |
| 1425 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1426 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1427 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1428 | target=$ac_cv_target |
| 1429 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1430 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1431 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1432 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1433 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1434 | # The aliases save the names the user supplied, while $host etc. |
| 1435 | # will get canonicalized. |
| 1436 | test -n "$target_alias" && |
| 1437 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1438 | NONENONEs,x,x, && |
| 1439 | program_prefix=${target_alias}- |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 1440 | 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] | 1441 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 1442 | 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 third_party/build/portaudio/os-auto.mak third_party/build/os-auto.mak" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1443 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1444 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 1445 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1446 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1447 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1448 | else |
| 1449 | CFLAGS="$CFLAGS" |
| 1450 | fi |
| 1451 | |
| 1452 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1453 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1454 | ac_ext=c |
| 1455 | ac_cpp='$CPP $CPPFLAGS' |
| 1456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1459 | if test -n "$ac_tool_prefix"; then |
| 1460 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1461 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1462 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1464 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1466 | else |
| 1467 | if test -n "$CC"; then |
| 1468 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1469 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1471 | for as_dir in $PATH |
| 1472 | do |
| 1473 | IFS=$as_save_IFS |
| 1474 | test -z "$as_dir" && as_dir=. |
| 1475 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1476 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1477 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1479 | break 2 |
| 1480 | fi |
| 1481 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1482 | done |
| 1483 | |
| 1484 | fi |
| 1485 | fi |
| 1486 | CC=$ac_cv_prog_CC |
| 1487 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1488 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1489 | echo "${ECHO_T}$CC" >&6 |
| 1490 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1491 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1492 | echo "${ECHO_T}no" >&6 |
| 1493 | fi |
| 1494 | |
| 1495 | fi |
| 1496 | if test -z "$ac_cv_prog_CC"; then |
| 1497 | ac_ct_CC=$CC |
| 1498 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1499 | set dummy gcc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1502 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1504 | else |
| 1505 | if test -n "$ac_ct_CC"; then |
| 1506 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1507 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1509 | for as_dir in $PATH |
| 1510 | do |
| 1511 | IFS=$as_save_IFS |
| 1512 | test -z "$as_dir" && as_dir=. |
| 1513 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1515 | ac_cv_prog_ac_ct_CC="gcc" |
| 1516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1517 | break 2 |
| 1518 | fi |
| 1519 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1520 | done |
| 1521 | |
| 1522 | fi |
| 1523 | fi |
| 1524 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1525 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1526 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1527 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1528 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1529 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1530 | echo "${ECHO_T}no" >&6 |
| 1531 | fi |
| 1532 | |
| 1533 | CC=$ac_ct_CC |
| 1534 | else |
| 1535 | CC="$ac_cv_prog_CC" |
| 1536 | fi |
| 1537 | |
| 1538 | if test -z "$CC"; then |
| 1539 | if test -n "$ac_tool_prefix"; then |
| 1540 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1541 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1544 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1546 | else |
| 1547 | if test -n "$CC"; then |
| 1548 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1549 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1551 | for as_dir in $PATH |
| 1552 | do |
| 1553 | IFS=$as_save_IFS |
| 1554 | test -z "$as_dir" && as_dir=. |
| 1555 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1556 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1557 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1559 | break 2 |
| 1560 | fi |
| 1561 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1562 | done |
| 1563 | |
| 1564 | fi |
| 1565 | fi |
| 1566 | CC=$ac_cv_prog_CC |
| 1567 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1568 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1569 | echo "${ECHO_T}$CC" >&6 |
| 1570 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1571 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1572 | echo "${ECHO_T}no" >&6 |
| 1573 | fi |
| 1574 | |
| 1575 | fi |
| 1576 | if test -z "$ac_cv_prog_CC"; then |
| 1577 | ac_ct_CC=$CC |
| 1578 | # Extract the first word of "cc", so it can be a program name with args. |
| 1579 | set dummy cc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1580 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1582 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1584 | else |
| 1585 | if test -n "$ac_ct_CC"; then |
| 1586 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1587 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1589 | for as_dir in $PATH |
| 1590 | do |
| 1591 | IFS=$as_save_IFS |
| 1592 | test -z "$as_dir" && as_dir=. |
| 1593 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1594 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1595 | ac_cv_prog_ac_ct_CC="cc" |
| 1596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1597 | break 2 |
| 1598 | fi |
| 1599 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1600 | done |
| 1601 | |
| 1602 | fi |
| 1603 | fi |
| 1604 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1605 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1606 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1607 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1608 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1609 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1610 | echo "${ECHO_T}no" >&6 |
| 1611 | fi |
| 1612 | |
| 1613 | CC=$ac_ct_CC |
| 1614 | else |
| 1615 | CC="$ac_cv_prog_CC" |
| 1616 | fi |
| 1617 | |
| 1618 | fi |
| 1619 | if test -z "$CC"; then |
| 1620 | # Extract the first word of "cc", so it can be a program name with args. |
| 1621 | set dummy cc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1622 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1624 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1626 | else |
| 1627 | if test -n "$CC"; then |
| 1628 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1629 | else |
| 1630 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1632 | for as_dir in $PATH |
| 1633 | do |
| 1634 | IFS=$as_save_IFS |
| 1635 | test -z "$as_dir" && as_dir=. |
| 1636 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1637 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1638 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1639 | ac_prog_rejected=yes |
| 1640 | continue |
| 1641 | fi |
| 1642 | ac_cv_prog_CC="cc" |
| 1643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1644 | break 2 |
| 1645 | fi |
| 1646 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1647 | done |
| 1648 | |
| 1649 | if test $ac_prog_rejected = yes; then |
| 1650 | # We found a bogon in the path, so make sure we never use it. |
| 1651 | set dummy $ac_cv_prog_CC |
| 1652 | shift |
| 1653 | if test $# != 0; then |
| 1654 | # We chose a different compiler from the bogus one. |
| 1655 | # However, it has the same basename, so the bogon will be chosen |
| 1656 | # first if we set CC to just the basename; use the full file name. |
| 1657 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1658 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1659 | fi |
| 1660 | fi |
| 1661 | fi |
| 1662 | fi |
| 1663 | CC=$ac_cv_prog_CC |
| 1664 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1665 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1666 | echo "${ECHO_T}$CC" >&6 |
| 1667 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1668 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1669 | echo "${ECHO_T}no" >&6 |
| 1670 | fi |
| 1671 | |
| 1672 | fi |
| 1673 | if test -z "$CC"; then |
| 1674 | if test -n "$ac_tool_prefix"; then |
| 1675 | for ac_prog in cl |
| 1676 | do |
| 1677 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1678 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1681 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1683 | else |
| 1684 | if test -n "$CC"; then |
| 1685 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1686 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1688 | for as_dir in $PATH |
| 1689 | do |
| 1690 | IFS=$as_save_IFS |
| 1691 | test -z "$as_dir" && as_dir=. |
| 1692 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1694 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1696 | break 2 |
| 1697 | fi |
| 1698 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1699 | done |
| 1700 | |
| 1701 | fi |
| 1702 | fi |
| 1703 | CC=$ac_cv_prog_CC |
| 1704 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1705 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1706 | echo "${ECHO_T}$CC" >&6 |
| 1707 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1708 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1709 | echo "${ECHO_T}no" >&6 |
| 1710 | fi |
| 1711 | |
| 1712 | test -n "$CC" && break |
| 1713 | done |
| 1714 | fi |
| 1715 | if test -z "$CC"; then |
| 1716 | ac_ct_CC=$CC |
| 1717 | for ac_prog in cl |
| 1718 | do |
| 1719 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1720 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1721 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1723 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1725 | else |
| 1726 | if test -n "$ac_ct_CC"; then |
| 1727 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1728 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1730 | for as_dir in $PATH |
| 1731 | do |
| 1732 | IFS=$as_save_IFS |
| 1733 | test -z "$as_dir" && as_dir=. |
| 1734 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1735 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1736 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1737 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1738 | break 2 |
| 1739 | fi |
| 1740 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1741 | done |
| 1742 | |
| 1743 | fi |
| 1744 | fi |
| 1745 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1746 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1747 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1748 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1749 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1750 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1751 | echo "${ECHO_T}no" >&6 |
| 1752 | fi |
| 1753 | |
| 1754 | test -n "$ac_ct_CC" && break |
| 1755 | done |
| 1756 | |
| 1757 | CC=$ac_ct_CC |
| 1758 | fi |
| 1759 | |
| 1760 | fi |
| 1761 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1762 | |
| 1763 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1764 | See \`config.log' for more details." >&5 |
| 1765 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1766 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1767 | { (exit 1); exit 1; }; } |
| 1768 | |
| 1769 | # Provide some information about the compiler. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1770 | echo "$as_me:$LINENO:" \ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1771 | "checking for C compiler version" >&5 |
| 1772 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1773 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1774 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1775 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1777 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1778 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1779 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1780 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1782 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1783 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1784 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1785 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1787 | (exit $ac_status); } |
| 1788 | |
| 1789 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1790 | /* confdefs.h. */ |
| 1791 | _ACEOF |
| 1792 | cat confdefs.h >>conftest.$ac_ext |
| 1793 | cat >>conftest.$ac_ext <<_ACEOF |
| 1794 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1795 | |
| 1796 | int |
| 1797 | main () |
| 1798 | { |
| 1799 | |
| 1800 | ; |
| 1801 | return 0; |
| 1802 | } |
| 1803 | _ACEOF |
| 1804 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1805 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1806 | # Try to create an executable without -o first, disregard a.out. |
| 1807 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1808 | # of exeext. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1809 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1810 | 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] | 1811 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1812 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1813 | (eval $ac_link_default) 2>&5 |
| 1814 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1816 | (exit $ac_status); }; then |
| 1817 | # Find the output, starting from the most likely. This scheme is |
| 1818 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1819 | # resort. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1820 | |
| 1821 | # Be careful to initialize this variable, since it used to be cached. |
| 1822 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1823 | ac_cv_exeext= |
| 1824 | # b.out is created by i960 compilers. |
| 1825 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1826 | do |
| 1827 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1828 | case $ac_file in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1829 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1830 | ;; |
| 1831 | conftest.$ac_ext ) |
| 1832 | # This is the source file. |
| 1833 | ;; |
| 1834 | [ab].out ) |
| 1835 | # We found the default executable, but exeext='' is most |
| 1836 | # certainly right. |
| 1837 | break;; |
| 1838 | *.* ) |
| 1839 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1840 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1841 | # but it would be cool to find out if it's true. Does anybody |
| 1842 | # maintain Libtool? --akim. |
| 1843 | export ac_cv_exeext |
| 1844 | break;; |
| 1845 | * ) |
| 1846 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1847 | esac |
| 1848 | done |
| 1849 | else |
| 1850 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1852 | |
| 1853 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1854 | See \`config.log' for more details." >&5 |
| 1855 | echo "$as_me: error: C compiler cannot create executables |
| 1856 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1857 | { (exit 77); exit 77; }; } |
| 1858 | fi |
| 1859 | |
| 1860 | ac_exeext=$ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1861 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1862 | echo "${ECHO_T}$ac_file" >&6 |
| 1863 | |
| 1864 | # Check the compiler produces executables we can run. If not, either |
| 1865 | # the compiler is broken, or we cross compile. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1866 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1867 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1868 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1869 | # If not cross compiling, check that we can run a simple program. |
| 1870 | if test "$cross_compiling" != yes; then |
| 1871 | if { ac_try='./$ac_file' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1873 | (eval $ac_try) 2>&5 |
| 1874 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1876 | (exit $ac_status); }; }; then |
| 1877 | cross_compiling=no |
| 1878 | else |
| 1879 | if test "$cross_compiling" = maybe; then |
| 1880 | cross_compiling=yes |
| 1881 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1882 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1883 | If you meant to cross compile, use \`--host'. |
| 1884 | See \`config.log' for more details." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1885 | echo "$as_me: error: cannot run C compiled programs. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1886 | If you meant to cross compile, use \`--host'. |
| 1887 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1888 | { (exit 1); exit 1; }; } |
| 1889 | fi |
| 1890 | fi |
| 1891 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1892 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1893 | echo "${ECHO_T}yes" >&6 |
| 1894 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1895 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1896 | ac_clean_files=$ac_clean_files_save |
| 1897 | # Check the compiler produces executables we can run. If not, either |
| 1898 | # the compiler is broken, or we cross compile. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1899 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1900 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1901 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1902 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1903 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1904 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1905 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1907 | (eval $ac_link) 2>&5 |
| 1908 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1910 | (exit $ac_status); }; then |
| 1911 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1912 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1913 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1914 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1915 | for ac_file in conftest.exe conftest conftest.*; do |
| 1916 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1917 | case $ac_file in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1918 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1919 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1920 | export ac_cv_exeext |
| 1921 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1922 | * ) break;; |
| 1923 | esac |
| 1924 | done |
| 1925 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1926 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1927 | See \`config.log' for more details." >&5 |
| 1928 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1929 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1930 | { (exit 1); exit 1; }; } |
| 1931 | fi |
| 1932 | |
| 1933 | rm -f conftest$ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1934 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1935 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1936 | |
| 1937 | rm -f conftest.$ac_ext |
| 1938 | EXEEXT=$ac_cv_exeext |
| 1939 | ac_exeext=$EXEEXT |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1940 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1941 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1942 | if test "${ac_cv_objext+set}" = set; then |
| 1943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1944 | else |
| 1945 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1946 | /* confdefs.h. */ |
| 1947 | _ACEOF |
| 1948 | cat confdefs.h >>conftest.$ac_ext |
| 1949 | cat >>conftest.$ac_ext <<_ACEOF |
| 1950 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1951 | |
| 1952 | int |
| 1953 | main () |
| 1954 | { |
| 1955 | |
| 1956 | ; |
| 1957 | return 0; |
| 1958 | } |
| 1959 | _ACEOF |
| 1960 | rm -f conftest.o conftest.obj |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1962 | (eval $ac_compile) 2>&5 |
| 1963 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1965 | (exit $ac_status); }; then |
| 1966 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1967 | case $ac_file in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1968 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1969 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1970 | break;; |
| 1971 | esac |
| 1972 | done |
| 1973 | else |
| 1974 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1976 | |
| 1977 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1978 | See \`config.log' for more details." >&5 |
| 1979 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1980 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1981 | { (exit 1); exit 1; }; } |
| 1982 | fi |
| 1983 | |
| 1984 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1985 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1986 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1987 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1988 | OBJEXT=$ac_cv_objext |
| 1989 | ac_objext=$OBJEXT |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1990 | 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] | 1991 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1992 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1994 | else |
| 1995 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1996 | /* confdefs.h. */ |
| 1997 | _ACEOF |
| 1998 | cat confdefs.h >>conftest.$ac_ext |
| 1999 | cat >>conftest.$ac_ext <<_ACEOF |
| 2000 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2001 | |
| 2002 | int |
| 2003 | main () |
| 2004 | { |
| 2005 | #ifndef __GNUC__ |
| 2006 | choke me |
| 2007 | #endif |
| 2008 | |
| 2009 | ; |
| 2010 | return 0; |
| 2011 | } |
| 2012 | _ACEOF |
| 2013 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2015 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2016 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2018 | rm -f conftest.er1 |
| 2019 | cat conftest.err >&5 |
| 2020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2021 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2022 | { ac_try='test -z "$ac_c_werror_flag" |
| 2023 | || test ! -s conftest.err' |
| 2024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2025 | (eval $ac_try) 2>&5 |
| 2026 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2028 | (exit $ac_status); }; } && |
| 2029 | { ac_try='test -s conftest.$ac_objext' |
| 2030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2031 | (eval $ac_try) 2>&5 |
| 2032 | ac_status=$? |
| 2033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2034 | (exit $ac_status); }; }; then |
| 2035 | ac_compiler_gnu=yes |
| 2036 | else |
| 2037 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2039 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2040 | ac_compiler_gnu=no |
| 2041 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2043 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2044 | |
| 2045 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2046 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2047 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2048 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2049 | ac_test_CFLAGS=${CFLAGS+set} |
| 2050 | ac_save_CFLAGS=$CFLAGS |
| 2051 | CFLAGS="-g" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2052 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2053 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2054 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2056 | else |
| 2057 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2058 | /* confdefs.h. */ |
| 2059 | _ACEOF |
| 2060 | cat confdefs.h >>conftest.$ac_ext |
| 2061 | cat >>conftest.$ac_ext <<_ACEOF |
| 2062 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2063 | |
| 2064 | int |
| 2065 | main () |
| 2066 | { |
| 2067 | |
| 2068 | ; |
| 2069 | return 0; |
| 2070 | } |
| 2071 | _ACEOF |
| 2072 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2074 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2075 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2077 | rm -f conftest.er1 |
| 2078 | cat conftest.err >&5 |
| 2079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2080 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2081 | { ac_try='test -z "$ac_c_werror_flag" |
| 2082 | || test ! -s conftest.err' |
| 2083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2084 | (eval $ac_try) 2>&5 |
| 2085 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2087 | (exit $ac_status); }; } && |
| 2088 | { ac_try='test -s conftest.$ac_objext' |
| 2089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2090 | (eval $ac_try) 2>&5 |
| 2091 | ac_status=$? |
| 2092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2093 | (exit $ac_status); }; }; then |
| 2094 | ac_cv_prog_cc_g=yes |
| 2095 | else |
| 2096 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2098 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2099 | ac_cv_prog_cc_g=no |
| 2100 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2102 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2103 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2104 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2105 | if test "$ac_test_CFLAGS" = set; then |
| 2106 | CFLAGS=$ac_save_CFLAGS |
| 2107 | elif test $ac_cv_prog_cc_g = yes; then |
| 2108 | if test "$GCC" = yes; then |
| 2109 | CFLAGS="-g -O2" |
| 2110 | else |
| 2111 | CFLAGS="-g" |
| 2112 | fi |
| 2113 | else |
| 2114 | if test "$GCC" = yes; then |
| 2115 | CFLAGS="-O2" |
| 2116 | else |
| 2117 | CFLAGS= |
| 2118 | fi |
| 2119 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2120 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2121 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2122 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2124 | else |
| 2125 | ac_cv_prog_cc_stdc=no |
| 2126 | ac_save_CC=$CC |
| 2127 | cat >conftest.$ac_ext <<_ACEOF |
| 2128 | /* confdefs.h. */ |
| 2129 | _ACEOF |
| 2130 | cat confdefs.h >>conftest.$ac_ext |
| 2131 | cat >>conftest.$ac_ext <<_ACEOF |
| 2132 | /* end confdefs.h. */ |
| 2133 | #include <stdarg.h> |
| 2134 | #include <stdio.h> |
| 2135 | #include <sys/types.h> |
| 2136 | #include <sys/stat.h> |
| 2137 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2138 | struct buf { int x; }; |
| 2139 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2140 | static char *e (p, i) |
| 2141 | char **p; |
| 2142 | int i; |
| 2143 | { |
| 2144 | return p[i]; |
| 2145 | } |
| 2146 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2147 | { |
| 2148 | char *s; |
| 2149 | va_list v; |
| 2150 | va_start (v,p); |
| 2151 | s = g (p, va_arg (v,int)); |
| 2152 | va_end (v); |
| 2153 | return s; |
| 2154 | } |
| 2155 | |
| 2156 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2157 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2158 | These don't provoke an error unfortunately, instead are silently treated |
| 2159 | as 'x'. The following induces an error, until -std1 is added to get |
| 2160 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2161 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2162 | that's true only with -std1. */ |
| 2163 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2164 | |
| 2165 | int test (int i, double x); |
| 2166 | struct s1 {int (*f) (int a);}; |
| 2167 | struct s2 {int (*f) (double a);}; |
| 2168 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2169 | int argc; |
| 2170 | char **argv; |
| 2171 | int |
| 2172 | main () |
| 2173 | { |
| 2174 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2175 | ; |
| 2176 | return 0; |
| 2177 | } |
| 2178 | _ACEOF |
| 2179 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2180 | # breaks some systems' header files. |
| 2181 | # AIX -qlanglvl=ansi |
| 2182 | # Ultrix and OSF/1 -std1 |
| 2183 | # HP-UX 10.20 and later -Ae |
| 2184 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2185 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2186 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2187 | do |
| 2188 | CC="$ac_save_CC $ac_arg" |
| 2189 | rm -f conftest.$ac_objext |
| 2190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2191 | (eval $ac_compile) 2>conftest.er1 |
| 2192 | ac_status=$? |
| 2193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2194 | rm -f conftest.er1 |
| 2195 | cat conftest.err >&5 |
| 2196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2197 | (exit $ac_status); } && |
| 2198 | { ac_try='test -z "$ac_c_werror_flag" |
| 2199 | || test ! -s conftest.err' |
| 2200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2201 | (eval $ac_try) 2>&5 |
| 2202 | ac_status=$? |
| 2203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2204 | (exit $ac_status); }; } && |
| 2205 | { ac_try='test -s conftest.$ac_objext' |
| 2206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2207 | (eval $ac_try) 2>&5 |
| 2208 | ac_status=$? |
| 2209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2210 | (exit $ac_status); }; }; then |
| 2211 | ac_cv_prog_cc_stdc=$ac_arg |
| 2212 | break |
| 2213 | else |
| 2214 | echo "$as_me: failed program was:" >&5 |
| 2215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2216 | |
| 2217 | fi |
| 2218 | rm -f conftest.err conftest.$ac_objext |
| 2219 | done |
| 2220 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2221 | CC=$ac_save_CC |
| 2222 | |
| 2223 | fi |
| 2224 | |
| 2225 | case "x$ac_cv_prog_cc_stdc" in |
| 2226 | x|xno) |
| 2227 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2228 | echo "${ECHO_T}none needed" >&6 ;; |
| 2229 | *) |
| 2230 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2231 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2232 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2233 | esac |
| 2234 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2235 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2236 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2237 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2238 | # the declaration of exit, since it's the most demanding environment. |
| 2239 | cat >conftest.$ac_ext <<_ACEOF |
| 2240 | #ifndef __cplusplus |
| 2241 | choke me |
| 2242 | #endif |
| 2243 | _ACEOF |
| 2244 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2246 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2247 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2249 | rm -f conftest.er1 |
| 2250 | cat conftest.err >&5 |
| 2251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2252 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2253 | { ac_try='test -z "$ac_c_werror_flag" |
| 2254 | || test ! -s conftest.err' |
| 2255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2256 | (eval $ac_try) 2>&5 |
| 2257 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2259 | (exit $ac_status); }; } && |
| 2260 | { ac_try='test -s conftest.$ac_objext' |
| 2261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2262 | (eval $ac_try) 2>&5 |
| 2263 | ac_status=$? |
| 2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2265 | (exit $ac_status); }; }; then |
| 2266 | for ac_declaration in \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2267 | '' \ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2268 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2269 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2270 | 'extern "C" void exit (int) throw ();' \ |
| 2271 | 'extern "C" void exit (int);' \ |
| 2272 | 'void exit (int);' |
| 2273 | do |
| 2274 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2275 | /* confdefs.h. */ |
| 2276 | _ACEOF |
| 2277 | cat confdefs.h >>conftest.$ac_ext |
| 2278 | cat >>conftest.$ac_ext <<_ACEOF |
| 2279 | /* end confdefs.h. */ |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 2280 | $ac_declaration |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2281 | #include <stdlib.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2282 | int |
| 2283 | main () |
| 2284 | { |
| 2285 | exit (42); |
| 2286 | ; |
| 2287 | return 0; |
| 2288 | } |
| 2289 | _ACEOF |
| 2290 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2292 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2293 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2295 | rm -f conftest.er1 |
| 2296 | cat conftest.err >&5 |
| 2297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2298 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2299 | { ac_try='test -z "$ac_c_werror_flag" |
| 2300 | || test ! -s conftest.err' |
| 2301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2302 | (eval $ac_try) 2>&5 |
| 2303 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2305 | (exit $ac_status); }; } && |
| 2306 | { ac_try='test -s conftest.$ac_objext' |
| 2307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2308 | (eval $ac_try) 2>&5 |
| 2309 | ac_status=$? |
| 2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2311 | (exit $ac_status); }; }; then |
| 2312 | : |
| 2313 | else |
| 2314 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2316 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2317 | continue |
| 2318 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2320 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2321 | /* confdefs.h. */ |
| 2322 | _ACEOF |
| 2323 | cat confdefs.h >>conftest.$ac_ext |
| 2324 | cat >>conftest.$ac_ext <<_ACEOF |
| 2325 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2326 | $ac_declaration |
| 2327 | int |
| 2328 | main () |
| 2329 | { |
| 2330 | exit (42); |
| 2331 | ; |
| 2332 | return 0; |
| 2333 | } |
| 2334 | _ACEOF |
| 2335 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2337 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2338 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2340 | rm -f conftest.er1 |
| 2341 | cat conftest.err >&5 |
| 2342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2343 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2344 | { ac_try='test -z "$ac_c_werror_flag" |
| 2345 | || test ! -s conftest.err' |
| 2346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2347 | (eval $ac_try) 2>&5 |
| 2348 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2350 | (exit $ac_status); }; } && |
| 2351 | { ac_try='test -s conftest.$ac_objext' |
| 2352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2353 | (eval $ac_try) 2>&5 |
| 2354 | ac_status=$? |
| 2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2356 | (exit $ac_status); }; }; then |
| 2357 | break |
| 2358 | else |
| 2359 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2361 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2362 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2364 | done |
| 2365 | rm -f conftest* |
| 2366 | if test -n "$ac_declaration"; then |
| 2367 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2368 | echo $ac_declaration >>confdefs.h |
| 2369 | echo '#endif' >>confdefs.h |
| 2370 | fi |
| 2371 | |
| 2372 | else |
| 2373 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2375 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2376 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2378 | ac_ext=c |
| 2379 | ac_cpp='$CPP $CPPFLAGS' |
| 2380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2383 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2384 | ac_ext=cc |
| 2385 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2386 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2387 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2388 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2389 | if test -n "$ac_tool_prefix"; then |
| 2390 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2391 | do |
| 2392 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2393 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2394 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2395 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2396 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2398 | else |
| 2399 | if test -n "$CXX"; then |
| 2400 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2401 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2403 | for as_dir in $PATH |
| 2404 | do |
| 2405 | IFS=$as_save_IFS |
| 2406 | test -z "$as_dir" && as_dir=. |
| 2407 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2408 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2409 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2410 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2411 | break 2 |
| 2412 | fi |
| 2413 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2414 | done |
| 2415 | |
| 2416 | fi |
| 2417 | fi |
| 2418 | CXX=$ac_cv_prog_CXX |
| 2419 | if test -n "$CXX"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2420 | echo "$as_me:$LINENO: result: $CXX" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2421 | echo "${ECHO_T}$CXX" >&6 |
| 2422 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2423 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2424 | echo "${ECHO_T}no" >&6 |
| 2425 | fi |
| 2426 | |
| 2427 | test -n "$CXX" && break |
| 2428 | done |
| 2429 | fi |
| 2430 | if test -z "$CXX"; then |
| 2431 | ac_ct_CXX=$CXX |
| 2432 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2433 | do |
| 2434 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2435 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2436 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2438 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2440 | else |
| 2441 | if test -n "$ac_ct_CXX"; then |
| 2442 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2443 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2445 | for as_dir in $PATH |
| 2446 | do |
| 2447 | IFS=$as_save_IFS |
| 2448 | test -z "$as_dir" && as_dir=. |
| 2449 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2450 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2451 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2453 | break 2 |
| 2454 | fi |
| 2455 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2456 | done |
| 2457 | |
| 2458 | fi |
| 2459 | fi |
| 2460 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2461 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2462 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2463 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2464 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2465 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2466 | echo "${ECHO_T}no" >&6 |
| 2467 | fi |
| 2468 | |
| 2469 | test -n "$ac_ct_CXX" && break |
| 2470 | done |
| 2471 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2472 | |
| 2473 | CXX=$ac_ct_CXX |
| 2474 | fi |
| 2475 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2476 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2477 | # Provide some information about the compiler. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2478 | echo "$as_me:$LINENO:" \ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2479 | "checking for C++ compiler version" >&5 |
| 2480 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2481 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2482 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2483 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2485 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2486 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2487 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2488 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2490 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2491 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2492 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2493 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2495 | (exit $ac_status); } |
| 2496 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2497 | 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] | 2498 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2499 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2501 | else |
| 2502 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2503 | /* confdefs.h. */ |
| 2504 | _ACEOF |
| 2505 | cat confdefs.h >>conftest.$ac_ext |
| 2506 | cat >>conftest.$ac_ext <<_ACEOF |
| 2507 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2508 | |
| 2509 | int |
| 2510 | main () |
| 2511 | { |
| 2512 | #ifndef __GNUC__ |
| 2513 | choke me |
| 2514 | #endif |
| 2515 | |
| 2516 | ; |
| 2517 | return 0; |
| 2518 | } |
| 2519 | _ACEOF |
| 2520 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2522 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2523 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2525 | rm -f conftest.er1 |
| 2526 | cat conftest.err >&5 |
| 2527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2528 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2529 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2530 | || test ! -s conftest.err' |
| 2531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2532 | (eval $ac_try) 2>&5 |
| 2533 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2535 | (exit $ac_status); }; } && |
| 2536 | { ac_try='test -s conftest.$ac_objext' |
| 2537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2538 | (eval $ac_try) 2>&5 |
| 2539 | ac_status=$? |
| 2540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2541 | (exit $ac_status); }; }; then |
| 2542 | ac_compiler_gnu=yes |
| 2543 | else |
| 2544 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2546 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2547 | ac_compiler_gnu=no |
| 2548 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2550 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2551 | |
| 2552 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2553 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2554 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2555 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2556 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2557 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2558 | CXXFLAGS="-g" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2559 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2560 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2561 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2563 | else |
| 2564 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2565 | /* confdefs.h. */ |
| 2566 | _ACEOF |
| 2567 | cat confdefs.h >>conftest.$ac_ext |
| 2568 | cat >>conftest.$ac_ext <<_ACEOF |
| 2569 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2570 | |
| 2571 | int |
| 2572 | main () |
| 2573 | { |
| 2574 | |
| 2575 | ; |
| 2576 | return 0; |
| 2577 | } |
| 2578 | _ACEOF |
| 2579 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2581 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2582 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2584 | rm -f conftest.er1 |
| 2585 | cat conftest.err >&5 |
| 2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2587 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2588 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2589 | || test ! -s conftest.err' |
| 2590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2591 | (eval $ac_try) 2>&5 |
| 2592 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2594 | (exit $ac_status); }; } && |
| 2595 | { ac_try='test -s conftest.$ac_objext' |
| 2596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2597 | (eval $ac_try) 2>&5 |
| 2598 | ac_status=$? |
| 2599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2600 | (exit $ac_status); }; }; then |
| 2601 | ac_cv_prog_cxx_g=yes |
| 2602 | else |
| 2603 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2605 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2606 | ac_cv_prog_cxx_g=no |
| 2607 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2609 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2610 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2611 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2612 | if test "$ac_test_CXXFLAGS" = set; then |
| 2613 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2614 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2615 | if test "$GXX" = yes; then |
| 2616 | CXXFLAGS="-g -O2" |
| 2617 | else |
| 2618 | CXXFLAGS="-g" |
| 2619 | fi |
| 2620 | else |
| 2621 | if test "$GXX" = yes; then |
| 2622 | CXXFLAGS="-O2" |
| 2623 | else |
| 2624 | CXXFLAGS= |
| 2625 | fi |
| 2626 | fi |
| 2627 | for ac_declaration in \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2628 | '' \ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2629 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2630 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2631 | 'extern "C" void exit (int) throw ();' \ |
| 2632 | 'extern "C" void exit (int);' \ |
| 2633 | 'void exit (int);' |
| 2634 | do |
| 2635 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2636 | /* confdefs.h. */ |
| 2637 | _ACEOF |
| 2638 | cat confdefs.h >>conftest.$ac_ext |
| 2639 | cat >>conftest.$ac_ext <<_ACEOF |
| 2640 | /* end confdefs.h. */ |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 2641 | $ac_declaration |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2642 | #include <stdlib.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2643 | int |
| 2644 | main () |
| 2645 | { |
| 2646 | exit (42); |
| 2647 | ; |
| 2648 | return 0; |
| 2649 | } |
| 2650 | _ACEOF |
| 2651 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2653 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2654 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2656 | rm -f conftest.er1 |
| 2657 | cat conftest.err >&5 |
| 2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2659 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2660 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2661 | || test ! -s conftest.err' |
| 2662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2663 | (eval $ac_try) 2>&5 |
| 2664 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2666 | (exit $ac_status); }; } && |
| 2667 | { ac_try='test -s conftest.$ac_objext' |
| 2668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2669 | (eval $ac_try) 2>&5 |
| 2670 | ac_status=$? |
| 2671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2672 | (exit $ac_status); }; }; then |
| 2673 | : |
| 2674 | else |
| 2675 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2677 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2678 | continue |
| 2679 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2681 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2682 | /* confdefs.h. */ |
| 2683 | _ACEOF |
| 2684 | cat confdefs.h >>conftest.$ac_ext |
| 2685 | cat >>conftest.$ac_ext <<_ACEOF |
| 2686 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2687 | $ac_declaration |
| 2688 | int |
| 2689 | main () |
| 2690 | { |
| 2691 | exit (42); |
| 2692 | ; |
| 2693 | return 0; |
| 2694 | } |
| 2695 | _ACEOF |
| 2696 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2698 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2699 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2701 | rm -f conftest.er1 |
| 2702 | cat conftest.err >&5 |
| 2703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2704 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2705 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2706 | || test ! -s conftest.err' |
| 2707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2708 | (eval $ac_try) 2>&5 |
| 2709 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2711 | (exit $ac_status); }; } && |
| 2712 | { ac_try='test -s conftest.$ac_objext' |
| 2713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2714 | (eval $ac_try) 2>&5 |
| 2715 | ac_status=$? |
| 2716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2717 | (exit $ac_status); }; }; then |
| 2718 | break |
| 2719 | else |
| 2720 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2722 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2723 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2725 | done |
| 2726 | rm -f conftest* |
| 2727 | if test -n "$ac_declaration"; then |
| 2728 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2729 | echo $ac_declaration >>confdefs.h |
| 2730 | echo '#endif' >>confdefs.h |
| 2731 | fi |
| 2732 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2733 | ac_ext=c |
| 2734 | ac_cpp='$CPP $CPPFLAGS' |
| 2735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2738 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2739 | ac_ext=c |
| 2740 | ac_cpp='$CPP $CPPFLAGS' |
| 2741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2744 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2745 | |
| 2746 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2747 | ac_pjdir=`pwd` |
| 2748 | |
| 2749 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2750 | |
| 2751 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2752 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 2753 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 2754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2755 | else |
| 2756 | ac_check_lib_save_LIBS=$LIBS |
| 2757 | LIBS="-lpthread $LIBS" |
| 2758 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2759 | /* confdefs.h. */ |
| 2760 | _ACEOF |
| 2761 | cat confdefs.h >>conftest.$ac_ext |
| 2762 | cat >>conftest.$ac_ext <<_ACEOF |
| 2763 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2764 | |
| 2765 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2766 | #ifdef __cplusplus |
| 2767 | extern "C" |
| 2768 | #endif |
| 2769 | /* We use char because int might match the return type of a gcc2 |
| 2770 | builtin and then its argument prototype would still apply. */ |
| 2771 | char pthread_create (); |
| 2772 | int |
| 2773 | main () |
| 2774 | { |
| 2775 | pthread_create (); |
| 2776 | ; |
| 2777 | return 0; |
| 2778 | } |
| 2779 | _ACEOF |
| 2780 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2782 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2783 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2785 | rm -f conftest.er1 |
| 2786 | cat conftest.err >&5 |
| 2787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2788 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2789 | { ac_try='test -z "$ac_c_werror_flag" |
| 2790 | || test ! -s conftest.err' |
| 2791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2792 | (eval $ac_try) 2>&5 |
| 2793 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2795 | (exit $ac_status); }; } && |
| 2796 | { ac_try='test -s conftest$ac_exeext' |
| 2797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2798 | (eval $ac_try) 2>&5 |
| 2799 | ac_status=$? |
| 2800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2801 | (exit $ac_status); }; }; then |
| 2802 | ac_cv_lib_pthread_pthread_create=yes |
| 2803 | else |
| 2804 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2806 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2807 | ac_cv_lib_pthread_pthread_create=no |
| 2808 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2809 | rm -f conftest.err conftest.$ac_objext \ |
| 2810 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2811 | LIBS=$ac_check_lib_save_LIBS |
| 2812 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2813 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2814 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
| 2815 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2816 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2817 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2818 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2819 | |
| 2820 | LIBS="-lpthread $LIBS" |
| 2821 | |
| 2822 | fi |
| 2823 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2824 | |
| 2825 | echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2826 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6 |
| 2827 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 2828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2829 | else |
| 2830 | ac_check_lib_save_LIBS=$LIBS |
| 2831 | LIBS="-lwsock32 $LIBS" |
| 2832 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2833 | /* confdefs.h. */ |
| 2834 | _ACEOF |
| 2835 | cat confdefs.h >>conftest.$ac_ext |
| 2836 | cat >>conftest.$ac_ext <<_ACEOF |
| 2837 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2838 | |
| 2839 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2840 | #ifdef __cplusplus |
| 2841 | extern "C" |
| 2842 | #endif |
| 2843 | /* We use char because int might match the return type of a gcc2 |
| 2844 | builtin and then its argument prototype would still apply. */ |
| 2845 | char puts (); |
| 2846 | int |
| 2847 | main () |
| 2848 | { |
| 2849 | puts (); |
| 2850 | ; |
| 2851 | return 0; |
| 2852 | } |
| 2853 | _ACEOF |
| 2854 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2856 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2857 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2859 | rm -f conftest.er1 |
| 2860 | cat conftest.err >&5 |
| 2861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2862 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2863 | { ac_try='test -z "$ac_c_werror_flag" |
| 2864 | || test ! -s conftest.err' |
| 2865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2866 | (eval $ac_try) 2>&5 |
| 2867 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2869 | (exit $ac_status); }; } && |
| 2870 | { ac_try='test -s conftest$ac_exeext' |
| 2871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2872 | (eval $ac_try) 2>&5 |
| 2873 | ac_status=$? |
| 2874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2875 | (exit $ac_status); }; }; then |
| 2876 | ac_cv_lib_wsock32_puts=yes |
| 2877 | else |
| 2878 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2880 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2881 | ac_cv_lib_wsock32_puts=no |
| 2882 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2883 | rm -f conftest.err conftest.$ac_objext \ |
| 2884 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2885 | LIBS=$ac_check_lib_save_LIBS |
| 2886 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2887 | echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2888 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6 |
| 2889 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2890 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2891 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2892 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2893 | |
| 2894 | LIBS="-lwsock32 $LIBS" |
| 2895 | |
| 2896 | fi |
| 2897 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2898 | |
| 2899 | echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2900 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6 |
| 2901 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 2902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2903 | else |
| 2904 | ac_check_lib_save_LIBS=$LIBS |
| 2905 | LIBS="-lws2_32 $LIBS" |
| 2906 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2907 | /* confdefs.h. */ |
| 2908 | _ACEOF |
| 2909 | cat confdefs.h >>conftest.$ac_ext |
| 2910 | cat >>conftest.$ac_ext <<_ACEOF |
| 2911 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2912 | |
| 2913 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2914 | #ifdef __cplusplus |
| 2915 | extern "C" |
| 2916 | #endif |
| 2917 | /* We use char because int might match the return type of a gcc2 |
| 2918 | builtin and then its argument prototype would still apply. */ |
| 2919 | char puts (); |
| 2920 | int |
| 2921 | main () |
| 2922 | { |
| 2923 | puts (); |
| 2924 | ; |
| 2925 | return 0; |
| 2926 | } |
| 2927 | _ACEOF |
| 2928 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2930 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2931 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2933 | rm -f conftest.er1 |
| 2934 | cat conftest.err >&5 |
| 2935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2936 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2937 | { ac_try='test -z "$ac_c_werror_flag" |
| 2938 | || test ! -s conftest.err' |
| 2939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2940 | (eval $ac_try) 2>&5 |
| 2941 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2943 | (exit $ac_status); }; } && |
| 2944 | { ac_try='test -s conftest$ac_exeext' |
| 2945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2946 | (eval $ac_try) 2>&5 |
| 2947 | ac_status=$? |
| 2948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2949 | (exit $ac_status); }; }; then |
| 2950 | ac_cv_lib_ws2_32_puts=yes |
| 2951 | else |
| 2952 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2954 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2955 | ac_cv_lib_ws2_32_puts=no |
| 2956 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2957 | rm -f conftest.err conftest.$ac_objext \ |
| 2958 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2959 | LIBS=$ac_check_lib_save_LIBS |
| 2960 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2961 | echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2962 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6 |
| 2963 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2964 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2965 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2966 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2967 | |
| 2968 | LIBS="-lws2_32 $LIBS" |
| 2969 | |
| 2970 | fi |
| 2971 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2972 | |
| 2973 | echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2974 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6 |
| 2975 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 2976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2977 | else |
| 2978 | ac_check_lib_save_LIBS=$LIBS |
| 2979 | LIBS="-lole32 $LIBS" |
| 2980 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2981 | /* confdefs.h. */ |
| 2982 | _ACEOF |
| 2983 | cat confdefs.h >>conftest.$ac_ext |
| 2984 | cat >>conftest.$ac_ext <<_ACEOF |
| 2985 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2986 | |
| 2987 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2988 | #ifdef __cplusplus |
| 2989 | extern "C" |
| 2990 | #endif |
| 2991 | /* We use char because int might match the return type of a gcc2 |
| 2992 | builtin and then its argument prototype would still apply. */ |
| 2993 | char puts (); |
| 2994 | int |
| 2995 | main () |
| 2996 | { |
| 2997 | puts (); |
| 2998 | ; |
| 2999 | return 0; |
| 3000 | } |
| 3001 | _ACEOF |
| 3002 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3004 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3005 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3007 | rm -f conftest.er1 |
| 3008 | cat conftest.err >&5 |
| 3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3010 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3011 | { ac_try='test -z "$ac_c_werror_flag" |
| 3012 | || test ! -s conftest.err' |
| 3013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3014 | (eval $ac_try) 2>&5 |
| 3015 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3017 | (exit $ac_status); }; } && |
| 3018 | { ac_try='test -s conftest$ac_exeext' |
| 3019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3020 | (eval $ac_try) 2>&5 |
| 3021 | ac_status=$? |
| 3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3023 | (exit $ac_status); }; }; then |
| 3024 | ac_cv_lib_ole32_puts=yes |
| 3025 | else |
| 3026 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3028 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3029 | ac_cv_lib_ole32_puts=no |
| 3030 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3031 | rm -f conftest.err conftest.$ac_objext \ |
| 3032 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3033 | LIBS=$ac_check_lib_save_LIBS |
| 3034 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3035 | echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3036 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6 |
| 3037 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3038 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3039 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3040 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3041 | |
| 3042 | LIBS="-lole32 $LIBS" |
| 3043 | |
| 3044 | fi |
| 3045 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3046 | |
| 3047 | echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3048 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6 |
| 3049 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3051 | else |
| 3052 | ac_check_lib_save_LIBS=$LIBS |
| 3053 | LIBS="-lwinmm $LIBS" |
| 3054 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3055 | /* confdefs.h. */ |
| 3056 | _ACEOF |
| 3057 | cat confdefs.h >>conftest.$ac_ext |
| 3058 | cat >>conftest.$ac_ext <<_ACEOF |
| 3059 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3060 | |
| 3061 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3062 | #ifdef __cplusplus |
| 3063 | extern "C" |
| 3064 | #endif |
| 3065 | /* We use char because int might match the return type of a gcc2 |
| 3066 | builtin and then its argument prototype would still apply. */ |
| 3067 | char puts (); |
| 3068 | int |
| 3069 | main () |
| 3070 | { |
| 3071 | puts (); |
| 3072 | ; |
| 3073 | return 0; |
| 3074 | } |
| 3075 | _ACEOF |
| 3076 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3078 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3079 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3081 | rm -f conftest.er1 |
| 3082 | cat conftest.err >&5 |
| 3083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3084 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3085 | { ac_try='test -z "$ac_c_werror_flag" |
| 3086 | || test ! -s conftest.err' |
| 3087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3088 | (eval $ac_try) 2>&5 |
| 3089 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3091 | (exit $ac_status); }; } && |
| 3092 | { ac_try='test -s conftest$ac_exeext' |
| 3093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3094 | (eval $ac_try) 2>&5 |
| 3095 | ac_status=$? |
| 3096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3097 | (exit $ac_status); }; }; then |
| 3098 | ac_cv_lib_winmm_puts=yes |
| 3099 | else |
| 3100 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3102 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3103 | ac_cv_lib_winmm_puts=no |
| 3104 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3105 | rm -f conftest.err conftest.$ac_objext \ |
| 3106 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3107 | LIBS=$ac_check_lib_save_LIBS |
| 3108 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3109 | echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3110 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6 |
| 3111 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3112 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3113 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3114 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3115 | |
| 3116 | LIBS="-lwinmm $LIBS" |
| 3117 | |
| 3118 | fi |
| 3119 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3120 | |
| 3121 | echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3122 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6 |
| 3123 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3125 | else |
| 3126 | ac_check_lib_save_LIBS=$LIBS |
| 3127 | LIBS="-lsocket $LIBS" |
| 3128 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3129 | /* confdefs.h. */ |
| 3130 | _ACEOF |
| 3131 | cat confdefs.h >>conftest.$ac_ext |
| 3132 | cat >>conftest.$ac_ext <<_ACEOF |
| 3133 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3134 | |
| 3135 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3136 | #ifdef __cplusplus |
| 3137 | extern "C" |
| 3138 | #endif |
| 3139 | /* We use char because int might match the return type of a gcc2 |
| 3140 | builtin and then its argument prototype would still apply. */ |
| 3141 | char puts (); |
| 3142 | int |
| 3143 | main () |
| 3144 | { |
| 3145 | puts (); |
| 3146 | ; |
| 3147 | return 0; |
| 3148 | } |
| 3149 | _ACEOF |
| 3150 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3152 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3153 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3155 | rm -f conftest.er1 |
| 3156 | cat conftest.err >&5 |
| 3157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3158 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3159 | { ac_try='test -z "$ac_c_werror_flag" |
| 3160 | || test ! -s conftest.err' |
| 3161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3162 | (eval $ac_try) 2>&5 |
| 3163 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3165 | (exit $ac_status); }; } && |
| 3166 | { ac_try='test -s conftest$ac_exeext' |
| 3167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3168 | (eval $ac_try) 2>&5 |
| 3169 | ac_status=$? |
| 3170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3171 | (exit $ac_status); }; }; then |
| 3172 | ac_cv_lib_socket_puts=yes |
| 3173 | else |
| 3174 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3176 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3177 | ac_cv_lib_socket_puts=no |
| 3178 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3179 | rm -f conftest.err conftest.$ac_objext \ |
| 3180 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3181 | LIBS=$ac_check_lib_save_LIBS |
| 3182 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3183 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3184 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6 |
| 3185 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3186 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3187 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3188 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3189 | |
| 3190 | LIBS="-lsocket $LIBS" |
| 3191 | |
| 3192 | fi |
| 3193 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3194 | |
| 3195 | echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3196 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6 |
| 3197 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3199 | else |
| 3200 | ac_check_lib_save_LIBS=$LIBS |
| 3201 | LIBS="-lrt $LIBS" |
| 3202 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3203 | /* confdefs.h. */ |
| 3204 | _ACEOF |
| 3205 | cat confdefs.h >>conftest.$ac_ext |
| 3206 | cat >>conftest.$ac_ext <<_ACEOF |
| 3207 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3208 | |
| 3209 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3210 | #ifdef __cplusplus |
| 3211 | extern "C" |
| 3212 | #endif |
| 3213 | /* We use char because int might match the return type of a gcc2 |
| 3214 | builtin and then its argument prototype would still apply. */ |
| 3215 | char puts (); |
| 3216 | int |
| 3217 | main () |
| 3218 | { |
| 3219 | puts (); |
| 3220 | ; |
| 3221 | return 0; |
| 3222 | } |
| 3223 | _ACEOF |
| 3224 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3226 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3227 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3229 | rm -f conftest.er1 |
| 3230 | cat conftest.err >&5 |
| 3231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3232 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3233 | { ac_try='test -z "$ac_c_werror_flag" |
| 3234 | || test ! -s conftest.err' |
| 3235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3236 | (eval $ac_try) 2>&5 |
| 3237 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3239 | (exit $ac_status); }; } && |
| 3240 | { ac_try='test -s conftest$ac_exeext' |
| 3241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3242 | (eval $ac_try) 2>&5 |
| 3243 | ac_status=$? |
| 3244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3245 | (exit $ac_status); }; }; then |
| 3246 | ac_cv_lib_rt_puts=yes |
| 3247 | else |
| 3248 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3250 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3251 | ac_cv_lib_rt_puts=no |
| 3252 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3253 | rm -f conftest.err conftest.$ac_objext \ |
| 3254 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3255 | LIBS=$ac_check_lib_save_LIBS |
| 3256 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3257 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3258 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6 |
| 3259 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3260 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3261 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3262 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3263 | |
| 3264 | LIBS="-lrt $LIBS" |
| 3265 | |
| 3266 | fi |
| 3267 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3268 | |
| 3269 | echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3270 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6 |
| 3271 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3273 | else |
| 3274 | ac_check_lib_save_LIBS=$LIBS |
| 3275 | LIBS="-lnsl $LIBS" |
| 3276 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3277 | /* confdefs.h. */ |
| 3278 | _ACEOF |
| 3279 | cat confdefs.h >>conftest.$ac_ext |
| 3280 | cat >>conftest.$ac_ext <<_ACEOF |
| 3281 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3282 | |
| 3283 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3284 | #ifdef __cplusplus |
| 3285 | extern "C" |
| 3286 | #endif |
| 3287 | /* We use char because int might match the return type of a gcc2 |
| 3288 | builtin and then its argument prototype would still apply. */ |
| 3289 | char puts (); |
| 3290 | int |
| 3291 | main () |
| 3292 | { |
| 3293 | puts (); |
| 3294 | ; |
| 3295 | return 0; |
| 3296 | } |
| 3297 | _ACEOF |
| 3298 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3300 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3301 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3303 | rm -f conftest.er1 |
| 3304 | cat conftest.err >&5 |
| 3305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3306 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3307 | { ac_try='test -z "$ac_c_werror_flag" |
| 3308 | || test ! -s conftest.err' |
| 3309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3310 | (eval $ac_try) 2>&5 |
| 3311 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3313 | (exit $ac_status); }; } && |
| 3314 | { ac_try='test -s conftest$ac_exeext' |
| 3315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3316 | (eval $ac_try) 2>&5 |
| 3317 | ac_status=$? |
| 3318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3319 | (exit $ac_status); }; }; then |
| 3320 | ac_cv_lib_nsl_puts=yes |
| 3321 | else |
| 3322 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3324 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3325 | ac_cv_lib_nsl_puts=no |
| 3326 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3327 | rm -f conftest.err conftest.$ac_objext \ |
| 3328 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3329 | LIBS=$ac_check_lib_save_LIBS |
| 3330 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3331 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3332 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6 |
| 3333 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3334 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3335 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3336 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3337 | |
| 3338 | LIBS="-lnsl $LIBS" |
| 3339 | |
| 3340 | fi |
| 3341 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3342 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame^] | 3343 | echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3344 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 |
| 3345 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3347 | else |
| 3348 | ac_check_lib_save_LIBS=$LIBS |
| 3349 | LIBS="-luuid $LIBS" |
| 3350 | cat >conftest.$ac_ext <<_ACEOF |
| 3351 | /* confdefs.h. */ |
| 3352 | _ACEOF |
| 3353 | cat confdefs.h >>conftest.$ac_ext |
| 3354 | cat >>conftest.$ac_ext <<_ACEOF |
| 3355 | /* end confdefs.h. */ |
| 3356 | |
| 3357 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3358 | #ifdef __cplusplus |
| 3359 | extern "C" |
| 3360 | #endif |
| 3361 | /* We use char because int might match the return type of a gcc2 |
| 3362 | builtin and then its argument prototype would still apply. */ |
| 3363 | char uuid_generate (); |
| 3364 | int |
| 3365 | main () |
| 3366 | { |
| 3367 | uuid_generate (); |
| 3368 | ; |
| 3369 | return 0; |
| 3370 | } |
| 3371 | _ACEOF |
| 3372 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3374 | (eval $ac_link) 2>conftest.er1 |
| 3375 | ac_status=$? |
| 3376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3377 | rm -f conftest.er1 |
| 3378 | cat conftest.err >&5 |
| 3379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3380 | (exit $ac_status); } && |
| 3381 | { ac_try='test -z "$ac_c_werror_flag" |
| 3382 | || test ! -s conftest.err' |
| 3383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3384 | (eval $ac_try) 2>&5 |
| 3385 | ac_status=$? |
| 3386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3387 | (exit $ac_status); }; } && |
| 3388 | { ac_try='test -s conftest$ac_exeext' |
| 3389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3390 | (eval $ac_try) 2>&5 |
| 3391 | ac_status=$? |
| 3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3393 | (exit $ac_status); }; }; then |
| 3394 | ac_cv_lib_uuid_uuid_generate=yes |
| 3395 | else |
| 3396 | echo "$as_me: failed program was:" >&5 |
| 3397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3398 | |
| 3399 | ac_cv_lib_uuid_uuid_generate=no |
| 3400 | fi |
| 3401 | rm -f conftest.err conftest.$ac_objext \ |
| 3402 | conftest$ac_exeext conftest.$ac_ext |
| 3403 | LIBS=$ac_check_lib_save_LIBS |
| 3404 | fi |
| 3405 | echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3406 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 |
| 3407 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3408 | cat >>confdefs.h <<_ACEOF |
| 3409 | #define HAVE_LIBUUID 1 |
| 3410 | _ACEOF |
| 3411 | |
| 3412 | LIBS="-luuid $LIBS" |
| 3413 | |
| 3414 | fi |
| 3415 | |
| 3416 | echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3417 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 |
| 3418 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3420 | else |
| 3421 | ac_check_lib_save_LIBS=$LIBS |
| 3422 | LIBS="-luuid $LIBS" |
| 3423 | cat >conftest.$ac_ext <<_ACEOF |
| 3424 | /* confdefs.h. */ |
| 3425 | _ACEOF |
| 3426 | cat confdefs.h >>conftest.$ac_ext |
| 3427 | cat >>conftest.$ac_ext <<_ACEOF |
| 3428 | /* end confdefs.h. */ |
| 3429 | |
| 3430 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3431 | #ifdef __cplusplus |
| 3432 | extern "C" |
| 3433 | #endif |
| 3434 | /* We use char because int might match the return type of a gcc2 |
| 3435 | builtin and then its argument prototype would still apply. */ |
| 3436 | char uuid_generate (); |
| 3437 | int |
| 3438 | main () |
| 3439 | { |
| 3440 | uuid_generate (); |
| 3441 | ; |
| 3442 | return 0; |
| 3443 | } |
| 3444 | _ACEOF |
| 3445 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3447 | (eval $ac_link) 2>conftest.er1 |
| 3448 | ac_status=$? |
| 3449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3450 | rm -f conftest.er1 |
| 3451 | cat conftest.err >&5 |
| 3452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3453 | (exit $ac_status); } && |
| 3454 | { ac_try='test -z "$ac_c_werror_flag" |
| 3455 | || test ! -s conftest.err' |
| 3456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3457 | (eval $ac_try) 2>&5 |
| 3458 | ac_status=$? |
| 3459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3460 | (exit $ac_status); }; } && |
| 3461 | { ac_try='test -s conftest$ac_exeext' |
| 3462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3463 | (eval $ac_try) 2>&5 |
| 3464 | ac_status=$? |
| 3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3466 | (exit $ac_status); }; }; then |
| 3467 | ac_cv_lib_uuid_uuid_generate=yes |
| 3468 | else |
| 3469 | echo "$as_me: failed program was:" >&5 |
| 3470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3471 | |
| 3472 | ac_cv_lib_uuid_uuid_generate=no |
| 3473 | fi |
| 3474 | rm -f conftest.err conftest.$ac_objext \ |
| 3475 | conftest$ac_exeext conftest.$ac_ext |
| 3476 | LIBS=$ac_check_lib_save_LIBS |
| 3477 | fi |
| 3478 | echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3479 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 |
| 3480 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3481 | ac_has_uuid_lib=1 |
| 3482 | fi |
| 3483 | |
| 3484 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3485 | echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3486 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6 |
| 3487 | cat >>confdefs.h <<_ACEOF |
| 3488 | #define PJ_M_NAME "$target_cpu" |
| 3489 | _ACEOF |
| 3490 | |
| 3491 | |
| 3492 | echo "$as_me:$LINENO: checking memory alignment" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3493 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6 |
| 3494 | case $target in |
| 3495 | ia64-* | x86_64-* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3496 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3497 | #define PJ_POOL_ALIGNMENT 8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3498 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3499 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3500 | echo "$as_me:$LINENO: result: 8 bytes" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3501 | echo "${ECHO_T}8 bytes" >&6 |
| 3502 | ;; |
| 3503 | * ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3504 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3505 | #define PJ_POOL_ALIGNMENT 4 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3506 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3507 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3508 | echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3509 | echo "${ECHO_T}4 bytes (default)" >&6 |
| 3510 | ;; |
| 3511 | esac |
| 3512 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3513 | |
| 3514 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3515 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 3516 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 3517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3518 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3519 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3520 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3521 | /* confdefs.h. */ |
| 3522 | _ACEOF |
| 3523 | cat confdefs.h >>conftest.$ac_ext |
| 3524 | cat >>conftest.$ac_ext <<_ACEOF |
| 3525 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3526 | #include <sys/types.h> |
| 3527 | #include <sys/param.h> |
| 3528 | |
| 3529 | int |
| 3530 | main () |
| 3531 | { |
| 3532 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 3533 | bogus endian macros |
| 3534 | #endif |
| 3535 | |
| 3536 | ; |
| 3537 | return 0; |
| 3538 | } |
| 3539 | _ACEOF |
| 3540 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3542 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3543 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3545 | rm -f conftest.er1 |
| 3546 | cat conftest.err >&5 |
| 3547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3548 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3549 | { ac_try='test -z "$ac_c_werror_flag" |
| 3550 | || test ! -s conftest.err' |
| 3551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3552 | (eval $ac_try) 2>&5 |
| 3553 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3555 | (exit $ac_status); }; } && |
| 3556 | { ac_try='test -s conftest.$ac_objext' |
| 3557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3558 | (eval $ac_try) 2>&5 |
| 3559 | ac_status=$? |
| 3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3561 | (exit $ac_status); }; }; then |
| 3562 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 3563 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3564 | /* confdefs.h. */ |
| 3565 | _ACEOF |
| 3566 | cat confdefs.h >>conftest.$ac_ext |
| 3567 | cat >>conftest.$ac_ext <<_ACEOF |
| 3568 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3569 | #include <sys/types.h> |
| 3570 | #include <sys/param.h> |
| 3571 | |
| 3572 | int |
| 3573 | main () |
| 3574 | { |
| 3575 | #if BYTE_ORDER != BIG_ENDIAN |
| 3576 | not big endian |
| 3577 | #endif |
| 3578 | |
| 3579 | ; |
| 3580 | return 0; |
| 3581 | } |
| 3582 | _ACEOF |
| 3583 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3585 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3586 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3588 | rm -f conftest.er1 |
| 3589 | cat conftest.err >&5 |
| 3590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3591 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3592 | { ac_try='test -z "$ac_c_werror_flag" |
| 3593 | || test ! -s conftest.err' |
| 3594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3595 | (eval $ac_try) 2>&5 |
| 3596 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3598 | (exit $ac_status); }; } && |
| 3599 | { ac_try='test -s conftest.$ac_objext' |
| 3600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3601 | (eval $ac_try) 2>&5 |
| 3602 | ac_status=$? |
| 3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3604 | (exit $ac_status); }; }; then |
| 3605 | ac_cv_c_bigendian=yes |
| 3606 | else |
| 3607 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3609 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3610 | ac_cv_c_bigendian=no |
| 3611 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3613 | else |
| 3614 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3616 | |
| 3617 | # It does not; compile a test program. |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3618 | if test "$cross_compiling" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3619 | # try to guess the endianness by grepping values into an object file |
| 3620 | ac_cv_c_bigendian=unknown |
| 3621 | cat >conftest.$ac_ext <<_ACEOF |
| 3622 | /* confdefs.h. */ |
| 3623 | _ACEOF |
| 3624 | cat confdefs.h >>conftest.$ac_ext |
| 3625 | cat >>conftest.$ac_ext <<_ACEOF |
| 3626 | /* end confdefs.h. */ |
| 3627 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 3628 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 3629 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 3630 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 3631 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 3632 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 3633 | int |
| 3634 | main () |
| 3635 | { |
| 3636 | _ascii (); _ebcdic (); |
| 3637 | ; |
| 3638 | return 0; |
| 3639 | } |
| 3640 | _ACEOF |
| 3641 | rm -f conftest.$ac_objext |
| 3642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3643 | (eval $ac_compile) 2>conftest.er1 |
| 3644 | ac_status=$? |
| 3645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3646 | rm -f conftest.er1 |
| 3647 | cat conftest.err >&5 |
| 3648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3649 | (exit $ac_status); } && |
| 3650 | { ac_try='test -z "$ac_c_werror_flag" |
| 3651 | || test ! -s conftest.err' |
| 3652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3653 | (eval $ac_try) 2>&5 |
| 3654 | ac_status=$? |
| 3655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3656 | (exit $ac_status); }; } && |
| 3657 | { ac_try='test -s conftest.$ac_objext' |
| 3658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3659 | (eval $ac_try) 2>&5 |
| 3660 | ac_status=$? |
| 3661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3662 | (exit $ac_status); }; }; then |
| 3663 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 3664 | ac_cv_c_bigendian=yes |
| 3665 | fi |
| 3666 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 3667 | if test "$ac_cv_c_bigendian" = unknown; then |
| 3668 | ac_cv_c_bigendian=no |
| 3669 | else |
| 3670 | # finding both strings is unlikely to happen, but who knows? |
| 3671 | ac_cv_c_bigendian=unknown |
| 3672 | fi |
| 3673 | fi |
| 3674 | else |
| 3675 | echo "$as_me: failed program was:" >&5 |
| 3676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3677 | |
| 3678 | fi |
| 3679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3680 | else |
| 3681 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3682 | /* confdefs.h. */ |
| 3683 | _ACEOF |
| 3684 | cat confdefs.h >>conftest.$ac_ext |
| 3685 | cat >>conftest.$ac_ext <<_ACEOF |
| 3686 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3687 | int |
| 3688 | main () |
| 3689 | { |
| 3690 | /* Are we little or big endian? From Harbison&Steele. */ |
| 3691 | union |
| 3692 | { |
| 3693 | long l; |
| 3694 | char c[sizeof (long)]; |
| 3695 | } u; |
| 3696 | u.l = 1; |
| 3697 | exit (u.c[sizeof (long) - 1] == 1); |
| 3698 | } |
| 3699 | _ACEOF |
| 3700 | rm -f conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3702 | (eval $ac_link) 2>&5 |
| 3703 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3705 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3707 | (eval $ac_try) 2>&5 |
| 3708 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3710 | (exit $ac_status); }; }; then |
| 3711 | ac_cv_c_bigendian=no |
| 3712 | else |
| 3713 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3714 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3716 | |
| 3717 | ( exit $ac_status ) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3718 | ac_cv_c_bigendian=yes |
| 3719 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3720 | 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] | 3721 | fi |
| 3722 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3724 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3725 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3726 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3727 | case $ac_cv_c_bigendian in |
| 3728 | yes) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3729 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3730 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 3731 | #define WORDS_BIGENDIAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3732 | _ACEOF |
| 3733 | ;; |
| 3734 | no) |
| 3735 | ;; |
| 3736 | *) |
| 3737 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 3738 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 3739 | echo "$as_me: error: unknown endianness |
| 3740 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 3741 | { (exit 1); exit 1; }; } ;; |
| 3742 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3743 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3744 | |
| 3745 | case $target in |
| 3746 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3747 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3748 | #define PJ_WIN32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3749 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3750 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3751 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3752 | #define PJ_WIN32_WINNT 0x0400 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3753 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3754 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3755 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3756 | #define WIN32_LEAN_AND_MEAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3757 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3758 | |
| 3759 | ;; |
| 3760 | *darwin*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3761 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3762 | #define PJ_DARWINOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3763 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3764 | |
| 3765 | ;; |
| 3766 | *linux*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3767 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3768 | #define PJ_LINUX 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3769 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3770 | |
| 3771 | ;; |
| 3772 | *rtems*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3773 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3774 | #define PJ_RTEMS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3775 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3776 | |
| 3777 | ;; |
| 3778 | *sunos* | *solaris* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3779 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3780 | #define PJ_SUNOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3781 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3782 | |
| 3783 | ;; |
| 3784 | *) |
| 3785 | ;; |
| 3786 | esac |
| 3787 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3788 | |
| 3789 | |
| 3790 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3791 | # Check whether --enable-floating-point or --disable-floating-point was given. |
| 3792 | if test "${enable_floating_point+set}" = set; then |
| 3793 | enableval="$enable_floating_point" |
| 3794 | if test "$enable_floating_point" = "no"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3795 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3796 | #define PJ_HAS_FLOATING_POINT 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3797 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3798 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3799 | 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] | 3800 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6 |
| 3801 | fi |
| 3802 | else |
| 3803 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3804 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3805 | #define PJ_HAS_FLOATING_POINT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3806 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3807 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3808 | 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] | 3809 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6 |
| 3810 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3811 | echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3812 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 |
| 3813 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 3814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3815 | else |
| 3816 | ac_check_lib_save_LIBS=$LIBS |
| 3817 | LIBS="-lm $LIBS" |
| 3818 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3819 | /* confdefs.h. */ |
| 3820 | _ACEOF |
| 3821 | cat confdefs.h >>conftest.$ac_ext |
| 3822 | cat >>conftest.$ac_ext <<_ACEOF |
| 3823 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3824 | |
| 3825 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3826 | #ifdef __cplusplus |
| 3827 | extern "C" |
| 3828 | #endif |
| 3829 | /* We use char because int might match the return type of a gcc2 |
| 3830 | builtin and then its argument prototype would still apply. */ |
| 3831 | char fmod (); |
| 3832 | int |
| 3833 | main () |
| 3834 | { |
| 3835 | fmod (); |
| 3836 | ; |
| 3837 | return 0; |
| 3838 | } |
| 3839 | _ACEOF |
| 3840 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3842 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3843 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3845 | rm -f conftest.er1 |
| 3846 | cat conftest.err >&5 |
| 3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3848 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3849 | { ac_try='test -z "$ac_c_werror_flag" |
| 3850 | || test ! -s conftest.err' |
| 3851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3852 | (eval $ac_try) 2>&5 |
| 3853 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3855 | (exit $ac_status); }; } && |
| 3856 | { ac_try='test -s conftest$ac_exeext' |
| 3857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3858 | (eval $ac_try) 2>&5 |
| 3859 | ac_status=$? |
| 3860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3861 | (exit $ac_status); }; }; then |
| 3862 | ac_cv_lib_m_fmod=yes |
| 3863 | else |
| 3864 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3866 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3867 | ac_cv_lib_m_fmod=no |
| 3868 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3869 | rm -f conftest.err conftest.$ac_objext \ |
| 3870 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3871 | LIBS=$ac_check_lib_save_LIBS |
| 3872 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3873 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3874 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 |
| 3875 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3876 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3877 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3878 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3879 | |
| 3880 | LIBS="-lm $LIBS" |
| 3881 | |
| 3882 | fi |
| 3883 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3884 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3885 | fi; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3886 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3887 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3888 | ac_ext=c |
| 3889 | ac_cpp='$CPP $CPPFLAGS' |
| 3890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3893 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3894 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3895 | # On Suns, sometimes $CPP names a directory. |
| 3896 | if test -n "$CPP" && test -d "$CPP"; then |
| 3897 | CPP= |
| 3898 | fi |
| 3899 | if test -z "$CPP"; then |
| 3900 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3902 | else |
| 3903 | # Double quotes because CPP needs to be expanded |
| 3904 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3905 | do |
| 3906 | ac_preproc_ok=false |
| 3907 | for ac_c_preproc_warn_flag in '' yes |
| 3908 | do |
| 3909 | # Use a header file that comes with gcc, so configuring glibc |
| 3910 | # with a fresh cross-compiler works. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3911 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3912 | # <limits.h> exists even on freestanding compilers. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3913 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3914 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3915 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3916 | /* confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3917 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3918 | cat confdefs.h >>conftest.$ac_ext |
| 3919 | cat >>conftest.$ac_ext <<_ACEOF |
| 3920 | /* end confdefs.h. */ |
| 3921 | #ifdef __STDC__ |
| 3922 | # include <limits.h> |
| 3923 | #else |
| 3924 | # include <assert.h> |
| 3925 | #endif |
| 3926 | Syntax error |
| 3927 | _ACEOF |
| 3928 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3929 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3930 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3931 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3932 | rm -f conftest.er1 |
| 3933 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3935 | (exit $ac_status); } >/dev/null; then |
| 3936 | if test -s conftest.err; then |
| 3937 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3938 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3939 | else |
| 3940 | ac_cpp_err= |
| 3941 | fi |
| 3942 | else |
| 3943 | ac_cpp_err=yes |
| 3944 | fi |
| 3945 | if test -z "$ac_cpp_err"; then |
| 3946 | : |
| 3947 | else |
| 3948 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3950 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3951 | # Broken: fails on valid input. |
| 3952 | continue |
| 3953 | fi |
| 3954 | rm -f conftest.err conftest.$ac_ext |
| 3955 | |
| 3956 | # OK, works on sane cases. Now check whether non-existent headers |
| 3957 | # can be detected and how. |
| 3958 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3959 | /* confdefs.h. */ |
| 3960 | _ACEOF |
| 3961 | cat confdefs.h >>conftest.$ac_ext |
| 3962 | cat >>conftest.$ac_ext <<_ACEOF |
| 3963 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3964 | #include <ac_nonexistent.h> |
| 3965 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3966 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3967 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3968 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3969 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3970 | rm -f conftest.er1 |
| 3971 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3973 | (exit $ac_status); } >/dev/null; then |
| 3974 | if test -s conftest.err; then |
| 3975 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3976 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3977 | else |
| 3978 | ac_cpp_err= |
| 3979 | fi |
| 3980 | else |
| 3981 | ac_cpp_err=yes |
| 3982 | fi |
| 3983 | if test -z "$ac_cpp_err"; then |
| 3984 | # Broken: success on invalid input. |
| 3985 | continue |
| 3986 | else |
| 3987 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3989 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3990 | # Passes both tests. |
| 3991 | ac_preproc_ok=: |
| 3992 | break |
| 3993 | fi |
| 3994 | rm -f conftest.err conftest.$ac_ext |
| 3995 | |
| 3996 | done |
| 3997 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3998 | rm -f conftest.err conftest.$ac_ext |
| 3999 | if $ac_preproc_ok; then |
| 4000 | break |
| 4001 | fi |
| 4002 | |
| 4003 | done |
| 4004 | ac_cv_prog_CPP=$CPP |
| 4005 | |
| 4006 | fi |
| 4007 | CPP=$ac_cv_prog_CPP |
| 4008 | else |
| 4009 | ac_cv_prog_CPP=$CPP |
| 4010 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4011 | echo "$as_me:$LINENO: result: $CPP" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4012 | echo "${ECHO_T}$CPP" >&6 |
| 4013 | ac_preproc_ok=false |
| 4014 | for ac_c_preproc_warn_flag in '' yes |
| 4015 | do |
| 4016 | # Use a header file that comes with gcc, so configuring glibc |
| 4017 | # with a fresh cross-compiler works. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4018 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4019 | # <limits.h> exists even on freestanding compilers. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4020 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4021 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4022 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4023 | /* confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4024 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4025 | cat confdefs.h >>conftest.$ac_ext |
| 4026 | cat >>conftest.$ac_ext <<_ACEOF |
| 4027 | /* end confdefs.h. */ |
| 4028 | #ifdef __STDC__ |
| 4029 | # include <limits.h> |
| 4030 | #else |
| 4031 | # include <assert.h> |
| 4032 | #endif |
| 4033 | Syntax error |
| 4034 | _ACEOF |
| 4035 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4036 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4037 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4038 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4039 | rm -f conftest.er1 |
| 4040 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4042 | (exit $ac_status); } >/dev/null; then |
| 4043 | if test -s conftest.err; then |
| 4044 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4045 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4046 | else |
| 4047 | ac_cpp_err= |
| 4048 | fi |
| 4049 | else |
| 4050 | ac_cpp_err=yes |
| 4051 | fi |
| 4052 | if test -z "$ac_cpp_err"; then |
| 4053 | : |
| 4054 | else |
| 4055 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4057 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4058 | # Broken: fails on valid input. |
| 4059 | continue |
| 4060 | fi |
| 4061 | rm -f conftest.err conftest.$ac_ext |
| 4062 | |
| 4063 | # OK, works on sane cases. Now check whether non-existent headers |
| 4064 | # can be detected and how. |
| 4065 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4066 | /* confdefs.h. */ |
| 4067 | _ACEOF |
| 4068 | cat confdefs.h >>conftest.$ac_ext |
| 4069 | cat >>conftest.$ac_ext <<_ACEOF |
| 4070 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4071 | #include <ac_nonexistent.h> |
| 4072 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4075 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4076 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4077 | rm -f conftest.er1 |
| 4078 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4080 | (exit $ac_status); } >/dev/null; then |
| 4081 | if test -s conftest.err; then |
| 4082 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4083 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4084 | else |
| 4085 | ac_cpp_err= |
| 4086 | fi |
| 4087 | else |
| 4088 | ac_cpp_err=yes |
| 4089 | fi |
| 4090 | if test -z "$ac_cpp_err"; then |
| 4091 | # Broken: success on invalid input. |
| 4092 | continue |
| 4093 | else |
| 4094 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4096 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4097 | # Passes both tests. |
| 4098 | ac_preproc_ok=: |
| 4099 | break |
| 4100 | fi |
| 4101 | rm -f conftest.err conftest.$ac_ext |
| 4102 | |
| 4103 | done |
| 4104 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4105 | rm -f conftest.err conftest.$ac_ext |
| 4106 | if $ac_preproc_ok; then |
| 4107 | : |
| 4108 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4109 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4110 | See \`config.log' for more details." >&5 |
| 4111 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4112 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4113 | { (exit 1); exit 1; }; } |
| 4114 | fi |
| 4115 | |
| 4116 | ac_ext=c |
| 4117 | ac_cpp='$CPP $CPPFLAGS' |
| 4118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4121 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4122 | |
| 4123 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4124 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4125 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 4126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4127 | else |
| 4128 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4129 | then ac_cv_prog_egrep='grep -E' |
| 4130 | else ac_cv_prog_egrep='egrep' |
| 4131 | fi |
| 4132 | fi |
| 4133 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4134 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4135 | EGREP=$ac_cv_prog_egrep |
| 4136 | |
| 4137 | |
| 4138 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4139 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4140 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4142 | else |
| 4143 | cat >conftest.$ac_ext <<_ACEOF |
| 4144 | /* confdefs.h. */ |
| 4145 | _ACEOF |
| 4146 | cat confdefs.h >>conftest.$ac_ext |
| 4147 | cat >>conftest.$ac_ext <<_ACEOF |
| 4148 | /* end confdefs.h. */ |
| 4149 | #include <stdlib.h> |
| 4150 | #include <stdarg.h> |
| 4151 | #include <string.h> |
| 4152 | #include <float.h> |
| 4153 | |
| 4154 | int |
| 4155 | main () |
| 4156 | { |
| 4157 | |
| 4158 | ; |
| 4159 | return 0; |
| 4160 | } |
| 4161 | _ACEOF |
| 4162 | rm -f conftest.$ac_objext |
| 4163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4164 | (eval $ac_compile) 2>conftest.er1 |
| 4165 | ac_status=$? |
| 4166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4167 | rm -f conftest.er1 |
| 4168 | cat conftest.err >&5 |
| 4169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4170 | (exit $ac_status); } && |
| 4171 | { ac_try='test -z "$ac_c_werror_flag" |
| 4172 | || test ! -s conftest.err' |
| 4173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4174 | (eval $ac_try) 2>&5 |
| 4175 | ac_status=$? |
| 4176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4177 | (exit $ac_status); }; } && |
| 4178 | { ac_try='test -s conftest.$ac_objext' |
| 4179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4180 | (eval $ac_try) 2>&5 |
| 4181 | ac_status=$? |
| 4182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4183 | (exit $ac_status); }; }; then |
| 4184 | ac_cv_header_stdc=yes |
| 4185 | else |
| 4186 | echo "$as_me: failed program was:" >&5 |
| 4187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4188 | |
| 4189 | ac_cv_header_stdc=no |
| 4190 | fi |
| 4191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4192 | |
| 4193 | if test $ac_cv_header_stdc = yes; then |
| 4194 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4195 | cat >conftest.$ac_ext <<_ACEOF |
| 4196 | /* confdefs.h. */ |
| 4197 | _ACEOF |
| 4198 | cat confdefs.h >>conftest.$ac_ext |
| 4199 | cat >>conftest.$ac_ext <<_ACEOF |
| 4200 | /* end confdefs.h. */ |
| 4201 | #include <string.h> |
| 4202 | |
| 4203 | _ACEOF |
| 4204 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4205 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4206 | : |
| 4207 | else |
| 4208 | ac_cv_header_stdc=no |
| 4209 | fi |
| 4210 | rm -f conftest* |
| 4211 | |
| 4212 | fi |
| 4213 | |
| 4214 | if test $ac_cv_header_stdc = yes; then |
| 4215 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4216 | cat >conftest.$ac_ext <<_ACEOF |
| 4217 | /* confdefs.h. */ |
| 4218 | _ACEOF |
| 4219 | cat confdefs.h >>conftest.$ac_ext |
| 4220 | cat >>conftest.$ac_ext <<_ACEOF |
| 4221 | /* end confdefs.h. */ |
| 4222 | #include <stdlib.h> |
| 4223 | |
| 4224 | _ACEOF |
| 4225 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4226 | $EGREP "free" >/dev/null 2>&1; then |
| 4227 | : |
| 4228 | else |
| 4229 | ac_cv_header_stdc=no |
| 4230 | fi |
| 4231 | rm -f conftest* |
| 4232 | |
| 4233 | fi |
| 4234 | |
| 4235 | if test $ac_cv_header_stdc = yes; then |
| 4236 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4237 | if test "$cross_compiling" = yes; then |
| 4238 | : |
| 4239 | else |
| 4240 | cat >conftest.$ac_ext <<_ACEOF |
| 4241 | /* confdefs.h. */ |
| 4242 | _ACEOF |
| 4243 | cat confdefs.h >>conftest.$ac_ext |
| 4244 | cat >>conftest.$ac_ext <<_ACEOF |
| 4245 | /* end confdefs.h. */ |
| 4246 | #include <ctype.h> |
| 4247 | #if ((' ' & 0x0FF) == 0x020) |
| 4248 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4249 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4250 | #else |
| 4251 | # define ISLOWER(c) \ |
| 4252 | (('a' <= (c) && (c) <= 'i') \ |
| 4253 | || ('j' <= (c) && (c) <= 'r') \ |
| 4254 | || ('s' <= (c) && (c) <= 'z')) |
| 4255 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4256 | #endif |
| 4257 | |
| 4258 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4259 | int |
| 4260 | main () |
| 4261 | { |
| 4262 | int i; |
| 4263 | for (i = 0; i < 256; i++) |
| 4264 | if (XOR (islower (i), ISLOWER (i)) |
| 4265 | || toupper (i) != TOUPPER (i)) |
| 4266 | exit(2); |
| 4267 | exit (0); |
| 4268 | } |
| 4269 | _ACEOF |
| 4270 | rm -f conftest$ac_exeext |
| 4271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4272 | (eval $ac_link) 2>&5 |
| 4273 | ac_status=$? |
| 4274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4275 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4277 | (eval $ac_try) 2>&5 |
| 4278 | ac_status=$? |
| 4279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4280 | (exit $ac_status); }; }; then |
| 4281 | : |
| 4282 | else |
| 4283 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4284 | echo "$as_me: failed program was:" >&5 |
| 4285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4286 | |
| 4287 | ( exit $ac_status ) |
| 4288 | ac_cv_header_stdc=no |
| 4289 | fi |
| 4290 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4291 | fi |
| 4292 | fi |
| 4293 | fi |
| 4294 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4295 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4296 | if test $ac_cv_header_stdc = yes; then |
| 4297 | |
| 4298 | cat >>confdefs.h <<\_ACEOF |
| 4299 | #define STDC_HEADERS 1 |
| 4300 | _ACEOF |
| 4301 | |
| 4302 | fi |
| 4303 | |
| 4304 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4305 | |
| 4306 | |
| 4307 | |
| 4308 | |
| 4309 | |
| 4310 | |
| 4311 | |
| 4312 | |
| 4313 | |
| 4314 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4315 | inttypes.h stdint.h unistd.h |
| 4316 | do |
| 4317 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4318 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4319 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4320 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4322 | else |
| 4323 | cat >conftest.$ac_ext <<_ACEOF |
| 4324 | /* confdefs.h. */ |
| 4325 | _ACEOF |
| 4326 | cat confdefs.h >>conftest.$ac_ext |
| 4327 | cat >>conftest.$ac_ext <<_ACEOF |
| 4328 | /* end confdefs.h. */ |
| 4329 | $ac_includes_default |
| 4330 | |
| 4331 | #include <$ac_header> |
| 4332 | _ACEOF |
| 4333 | rm -f conftest.$ac_objext |
| 4334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4335 | (eval $ac_compile) 2>conftest.er1 |
| 4336 | ac_status=$? |
| 4337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4338 | rm -f conftest.er1 |
| 4339 | cat conftest.err >&5 |
| 4340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4341 | (exit $ac_status); } && |
| 4342 | { ac_try='test -z "$ac_c_werror_flag" |
| 4343 | || test ! -s conftest.err' |
| 4344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4345 | (eval $ac_try) 2>&5 |
| 4346 | ac_status=$? |
| 4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4348 | (exit $ac_status); }; } && |
| 4349 | { ac_try='test -s conftest.$ac_objext' |
| 4350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4351 | (eval $ac_try) 2>&5 |
| 4352 | ac_status=$? |
| 4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4354 | (exit $ac_status); }; }; then |
| 4355 | eval "$as_ac_Header=yes" |
| 4356 | else |
| 4357 | echo "$as_me: failed program was:" >&5 |
| 4358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4359 | |
| 4360 | eval "$as_ac_Header=no" |
| 4361 | fi |
| 4362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4363 | fi |
| 4364 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4365 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4366 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4367 | cat >>confdefs.h <<_ACEOF |
| 4368 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4369 | _ACEOF |
| 4370 | |
| 4371 | fi |
| 4372 | |
| 4373 | done |
| 4374 | |
| 4375 | |
| 4376 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4377 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4378 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
| 4379 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4381 | fi |
| 4382 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4383 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
| 4384 | else |
| 4385 | # Is the header compilable? |
| 4386 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 4387 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 |
| 4388 | cat >conftest.$ac_ext <<_ACEOF |
| 4389 | /* confdefs.h. */ |
| 4390 | _ACEOF |
| 4391 | cat confdefs.h >>conftest.$ac_ext |
| 4392 | cat >>conftest.$ac_ext <<_ACEOF |
| 4393 | /* end confdefs.h. */ |
| 4394 | $ac_includes_default |
| 4395 | #include <arpa/inet.h> |
| 4396 | _ACEOF |
| 4397 | rm -f conftest.$ac_objext |
| 4398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4399 | (eval $ac_compile) 2>conftest.er1 |
| 4400 | ac_status=$? |
| 4401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4402 | rm -f conftest.er1 |
| 4403 | cat conftest.err >&5 |
| 4404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4405 | (exit $ac_status); } && |
| 4406 | { ac_try='test -z "$ac_c_werror_flag" |
| 4407 | || test ! -s conftest.err' |
| 4408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4409 | (eval $ac_try) 2>&5 |
| 4410 | ac_status=$? |
| 4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4412 | (exit $ac_status); }; } && |
| 4413 | { ac_try='test -s conftest.$ac_objext' |
| 4414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4415 | (eval $ac_try) 2>&5 |
| 4416 | ac_status=$? |
| 4417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4418 | (exit $ac_status); }; }; then |
| 4419 | ac_header_compiler=yes |
| 4420 | else |
| 4421 | echo "$as_me: failed program was:" >&5 |
| 4422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4423 | |
| 4424 | ac_header_compiler=no |
| 4425 | fi |
| 4426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4427 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4428 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4429 | |
| 4430 | # Is the header present? |
| 4431 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 4432 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 |
| 4433 | cat >conftest.$ac_ext <<_ACEOF |
| 4434 | /* confdefs.h. */ |
| 4435 | _ACEOF |
| 4436 | cat confdefs.h >>conftest.$ac_ext |
| 4437 | cat >>conftest.$ac_ext <<_ACEOF |
| 4438 | /* end confdefs.h. */ |
| 4439 | #include <arpa/inet.h> |
| 4440 | _ACEOF |
| 4441 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4442 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4443 | ac_status=$? |
| 4444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4445 | rm -f conftest.er1 |
| 4446 | cat conftest.err >&5 |
| 4447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4448 | (exit $ac_status); } >/dev/null; then |
| 4449 | if test -s conftest.err; then |
| 4450 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4451 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4452 | else |
| 4453 | ac_cpp_err= |
| 4454 | fi |
| 4455 | else |
| 4456 | ac_cpp_err=yes |
| 4457 | fi |
| 4458 | if test -z "$ac_cpp_err"; then |
| 4459 | ac_header_preproc=yes |
| 4460 | else |
| 4461 | echo "$as_me: failed program was:" >&5 |
| 4462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4463 | |
| 4464 | ac_header_preproc=no |
| 4465 | fi |
| 4466 | rm -f conftest.err conftest.$ac_ext |
| 4467 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4468 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4469 | |
| 4470 | # So? What about this header? |
| 4471 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4472 | yes:no: ) |
| 4473 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4474 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4475 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 4476 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 4477 | ac_header_preproc=yes |
| 4478 | ;; |
| 4479 | no:yes:* ) |
| 4480 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 4481 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 4482 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 4483 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 4484 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 4485 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 4486 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4487 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4488 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 4489 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 4490 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 4491 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
| 4492 | ( |
| 4493 | cat <<\_ASBOX |
| 4494 | ## ------------------------------------ ## |
| 4495 | ## Report this to the pjproject lists. ## |
| 4496 | ## ------------------------------------ ## |
| 4497 | _ASBOX |
| 4498 | ) | |
| 4499 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4500 | ;; |
| 4501 | esac |
| 4502 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4503 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
| 4504 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4506 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4507 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 4508 | fi |
| 4509 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4510 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
| 4511 | |
| 4512 | fi |
| 4513 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 4514 | cat >>confdefs.h <<\_ACEOF |
| 4515 | #define PJ_HAS_ARPA_INET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4516 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4517 | |
| 4518 | fi |
| 4519 | |
| 4520 | |
| 4521 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4522 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 4523 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
| 4524 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4526 | fi |
| 4527 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4528 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
| 4529 | else |
| 4530 | # Is the header compilable? |
| 4531 | echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 4532 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6 |
| 4533 | cat >conftest.$ac_ext <<_ACEOF |
| 4534 | /* confdefs.h. */ |
| 4535 | _ACEOF |
| 4536 | cat confdefs.h >>conftest.$ac_ext |
| 4537 | cat >>conftest.$ac_ext <<_ACEOF |
| 4538 | /* end confdefs.h. */ |
| 4539 | $ac_includes_default |
| 4540 | #include <assert.h> |
| 4541 | _ACEOF |
| 4542 | rm -f conftest.$ac_objext |
| 4543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4544 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4545 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4546 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4547 | rm -f conftest.er1 |
| 4548 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4550 | (exit $ac_status); } && |
| 4551 | { ac_try='test -z "$ac_c_werror_flag" |
| 4552 | || test ! -s conftest.err' |
| 4553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4554 | (eval $ac_try) 2>&5 |
| 4555 | ac_status=$? |
| 4556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4557 | (exit $ac_status); }; } && |
| 4558 | { ac_try='test -s conftest.$ac_objext' |
| 4559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4560 | (eval $ac_try) 2>&5 |
| 4561 | ac_status=$? |
| 4562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4563 | (exit $ac_status); }; }; then |
| 4564 | ac_header_compiler=yes |
| 4565 | else |
| 4566 | echo "$as_me: failed program was:" >&5 |
| 4567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4568 | |
| 4569 | ac_header_compiler=no |
| 4570 | fi |
| 4571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4572 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4573 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4574 | |
| 4575 | # Is the header present? |
| 4576 | echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 4577 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6 |
| 4578 | cat >conftest.$ac_ext <<_ACEOF |
| 4579 | /* confdefs.h. */ |
| 4580 | _ACEOF |
| 4581 | cat confdefs.h >>conftest.$ac_ext |
| 4582 | cat >>conftest.$ac_ext <<_ACEOF |
| 4583 | /* end confdefs.h. */ |
| 4584 | #include <assert.h> |
| 4585 | _ACEOF |
| 4586 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4587 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4588 | ac_status=$? |
| 4589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4590 | rm -f conftest.er1 |
| 4591 | cat conftest.err >&5 |
| 4592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4593 | (exit $ac_status); } >/dev/null; then |
| 4594 | if test -s conftest.err; then |
| 4595 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4596 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4597 | else |
| 4598 | ac_cpp_err= |
| 4599 | fi |
| 4600 | else |
| 4601 | ac_cpp_err=yes |
| 4602 | fi |
| 4603 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4604 | ac_header_preproc=yes |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4605 | else |
| 4606 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4608 | |
| 4609 | ac_header_preproc=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4610 | fi |
| 4611 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4612 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4613 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4614 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4615 | # So? What about this header? |
| 4616 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4617 | yes:no: ) |
| 4618 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4619 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4620 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 4621 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 4622 | ac_header_preproc=yes |
| 4623 | ;; |
| 4624 | no:yes:* ) |
| 4625 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 4626 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 4627 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 4628 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 4629 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 4630 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 4631 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4632 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4633 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 4634 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 4635 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 4636 | echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} |
| 4637 | ( |
| 4638 | cat <<\_ASBOX |
| 4639 | ## ------------------------------------ ## |
| 4640 | ## Report this to the pjproject lists. ## |
| 4641 | ## ------------------------------------ ## |
| 4642 | _ASBOX |
| 4643 | ) | |
| 4644 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4645 | ;; |
| 4646 | esac |
| 4647 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4648 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
| 4649 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4651 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4652 | ac_cv_header_assert_h=$ac_header_preproc |
| 4653 | fi |
| 4654 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4655 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
| 4656 | |
| 4657 | fi |
| 4658 | if test $ac_cv_header_assert_h = yes; then |
| 4659 | cat >>confdefs.h <<\_ACEOF |
| 4660 | #define PJ_HAS_ASSERT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4661 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4662 | |
| 4663 | fi |
| 4664 | |
| 4665 | |
| 4666 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4667 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 4668 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
| 4669 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4671 | fi |
| 4672 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4673 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
| 4674 | else |
| 4675 | # Is the header compilable? |
| 4676 | echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 4677 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6 |
| 4678 | cat >conftest.$ac_ext <<_ACEOF |
| 4679 | /* confdefs.h. */ |
| 4680 | _ACEOF |
| 4681 | cat confdefs.h >>conftest.$ac_ext |
| 4682 | cat >>conftest.$ac_ext <<_ACEOF |
| 4683 | /* end confdefs.h. */ |
| 4684 | $ac_includes_default |
| 4685 | #include <ctype.h> |
| 4686 | _ACEOF |
| 4687 | rm -f conftest.$ac_objext |
| 4688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4689 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4690 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4691 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4692 | rm -f conftest.er1 |
| 4693 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4695 | (exit $ac_status); } && |
| 4696 | { ac_try='test -z "$ac_c_werror_flag" |
| 4697 | || test ! -s conftest.err' |
| 4698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4699 | (eval $ac_try) 2>&5 |
| 4700 | ac_status=$? |
| 4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4702 | (exit $ac_status); }; } && |
| 4703 | { ac_try='test -s conftest.$ac_objext' |
| 4704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4705 | (eval $ac_try) 2>&5 |
| 4706 | ac_status=$? |
| 4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4708 | (exit $ac_status); }; }; then |
| 4709 | ac_header_compiler=yes |
| 4710 | else |
| 4711 | echo "$as_me: failed program was:" >&5 |
| 4712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4713 | |
| 4714 | ac_header_compiler=no |
| 4715 | fi |
| 4716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4717 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4718 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4719 | |
| 4720 | # Is the header present? |
| 4721 | echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 4722 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6 |
| 4723 | cat >conftest.$ac_ext <<_ACEOF |
| 4724 | /* confdefs.h. */ |
| 4725 | _ACEOF |
| 4726 | cat confdefs.h >>conftest.$ac_ext |
| 4727 | cat >>conftest.$ac_ext <<_ACEOF |
| 4728 | /* end confdefs.h. */ |
| 4729 | #include <ctype.h> |
| 4730 | _ACEOF |
| 4731 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4732 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4733 | ac_status=$? |
| 4734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4735 | rm -f conftest.er1 |
| 4736 | cat conftest.err >&5 |
| 4737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4738 | (exit $ac_status); } >/dev/null; then |
| 4739 | if test -s conftest.err; then |
| 4740 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4741 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4742 | else |
| 4743 | ac_cpp_err= |
| 4744 | fi |
| 4745 | else |
| 4746 | ac_cpp_err=yes |
| 4747 | fi |
| 4748 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4749 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4750 | else |
| 4751 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4753 | |
| 4754 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4755 | fi |
| 4756 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4757 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4758 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4759 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4760 | # So? What about this header? |
| 4761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4762 | yes:no: ) |
| 4763 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4764 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4765 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 4766 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 4767 | ac_header_preproc=yes |
| 4768 | ;; |
| 4769 | no:yes:* ) |
| 4770 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 4771 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 4772 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 4773 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 4774 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 4775 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 4776 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4777 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4778 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 4779 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 4780 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 4781 | echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} |
| 4782 | ( |
| 4783 | cat <<\_ASBOX |
| 4784 | ## ------------------------------------ ## |
| 4785 | ## Report this to the pjproject lists. ## |
| 4786 | ## ------------------------------------ ## |
| 4787 | _ASBOX |
| 4788 | ) | |
| 4789 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4790 | ;; |
| 4791 | esac |
| 4792 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4793 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
| 4794 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4796 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4797 | ac_cv_header_ctype_h=$ac_header_preproc |
| 4798 | fi |
| 4799 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4800 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
| 4801 | |
| 4802 | fi |
| 4803 | if test $ac_cv_header_ctype_h = yes; then |
| 4804 | cat >>confdefs.h <<\_ACEOF |
| 4805 | #define PJ_HAS_CTYPE_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4806 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4807 | |
| 4808 | fi |
| 4809 | |
| 4810 | |
| 4811 | |
| 4812 | case $target in |
| 4813 | *mingw* | *cygw* | *win32* | *w32* ) |
| 4814 | cat >>confdefs.h <<\_ACEOF |
| 4815 | #define PJ_HAS_ERRNO_H 0 |
| 4816 | _ACEOF |
| 4817 | |
| 4818 | ;; |
| 4819 | *) |
| 4820 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4821 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 4822 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
| 4823 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4825 | fi |
| 4826 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 4827 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
| 4828 | else |
| 4829 | # Is the header compilable? |
| 4830 | echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 4831 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6 |
| 4832 | cat >conftest.$ac_ext <<_ACEOF |
| 4833 | /* confdefs.h. */ |
| 4834 | _ACEOF |
| 4835 | cat confdefs.h >>conftest.$ac_ext |
| 4836 | cat >>conftest.$ac_ext <<_ACEOF |
| 4837 | /* end confdefs.h. */ |
| 4838 | $ac_includes_default |
| 4839 | #include <errno.h> |
| 4840 | _ACEOF |
| 4841 | rm -f conftest.$ac_objext |
| 4842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4843 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4844 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4845 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4846 | rm -f conftest.er1 |
| 4847 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4849 | (exit $ac_status); } && |
| 4850 | { ac_try='test -z "$ac_c_werror_flag" |
| 4851 | || test ! -s conftest.err' |
| 4852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4853 | (eval $ac_try) 2>&5 |
| 4854 | ac_status=$? |
| 4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4856 | (exit $ac_status); }; } && |
| 4857 | { ac_try='test -s conftest.$ac_objext' |
| 4858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4859 | (eval $ac_try) 2>&5 |
| 4860 | ac_status=$? |
| 4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4862 | (exit $ac_status); }; }; then |
| 4863 | ac_header_compiler=yes |
| 4864 | else |
| 4865 | echo "$as_me: failed program was:" >&5 |
| 4866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4867 | |
| 4868 | ac_header_compiler=no |
| 4869 | fi |
| 4870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4871 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4872 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4873 | |
| 4874 | # Is the header present? |
| 4875 | echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 4876 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6 |
| 4877 | cat >conftest.$ac_ext <<_ACEOF |
| 4878 | /* confdefs.h. */ |
| 4879 | _ACEOF |
| 4880 | cat confdefs.h >>conftest.$ac_ext |
| 4881 | cat >>conftest.$ac_ext <<_ACEOF |
| 4882 | /* end confdefs.h. */ |
| 4883 | #include <errno.h> |
| 4884 | _ACEOF |
| 4885 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4886 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4887 | ac_status=$? |
| 4888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4889 | rm -f conftest.er1 |
| 4890 | cat conftest.err >&5 |
| 4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4892 | (exit $ac_status); } >/dev/null; then |
| 4893 | if test -s conftest.err; then |
| 4894 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4895 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4896 | else |
| 4897 | ac_cpp_err= |
| 4898 | fi |
| 4899 | else |
| 4900 | ac_cpp_err=yes |
| 4901 | fi |
| 4902 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4903 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4904 | else |
| 4905 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4907 | |
| 4908 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4909 | fi |
| 4910 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4911 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4912 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4913 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4914 | # So? What about this header? |
| 4915 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4916 | yes:no: ) |
| 4917 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4918 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4919 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 4920 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 4921 | ac_header_preproc=yes |
| 4922 | ;; |
| 4923 | no:yes:* ) |
| 4924 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 4925 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 4926 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 4927 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 4928 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 4929 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 4930 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4931 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4932 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 4933 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 4934 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 4935 | echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} |
| 4936 | ( |
| 4937 | cat <<\_ASBOX |
| 4938 | ## ------------------------------------ ## |
| 4939 | ## Report this to the pjproject lists. ## |
| 4940 | ## ------------------------------------ ## |
| 4941 | _ASBOX |
| 4942 | ) | |
| 4943 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4944 | ;; |
| 4945 | esac |
| 4946 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4947 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
| 4948 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4950 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4951 | ac_cv_header_errno_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4952 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4953 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4954 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4955 | |
| 4956 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4957 | if test $ac_cv_header_errno_h = yes; then |
| 4958 | cat >>confdefs.h <<\_ACEOF |
| 4959 | #define PJ_HAS_ERRNO_H 1 |
| 4960 | _ACEOF |
| 4961 | |
| 4962 | fi |
| 4963 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4964 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4965 | ;; |
| 4966 | esac |
| 4967 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4968 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 4969 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 4970 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
| 4971 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4973 | fi |
| 4974 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 4975 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
| 4976 | else |
| 4977 | # Is the header compilable? |
| 4978 | echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 4979 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6 |
| 4980 | cat >conftest.$ac_ext <<_ACEOF |
| 4981 | /* confdefs.h. */ |
| 4982 | _ACEOF |
| 4983 | cat confdefs.h >>conftest.$ac_ext |
| 4984 | cat >>conftest.$ac_ext <<_ACEOF |
| 4985 | /* end confdefs.h. */ |
| 4986 | $ac_includes_default |
| 4987 | #include <linux/socket.h> |
| 4988 | _ACEOF |
| 4989 | rm -f conftest.$ac_objext |
| 4990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4991 | (eval $ac_compile) 2>conftest.er1 |
| 4992 | ac_status=$? |
| 4993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4994 | rm -f conftest.er1 |
| 4995 | cat conftest.err >&5 |
| 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4997 | (exit $ac_status); } && |
| 4998 | { ac_try='test -z "$ac_c_werror_flag" |
| 4999 | || test ! -s conftest.err' |
| 5000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5001 | (eval $ac_try) 2>&5 |
| 5002 | ac_status=$? |
| 5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5004 | (exit $ac_status); }; } && |
| 5005 | { ac_try='test -s conftest.$ac_objext' |
| 5006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5007 | (eval $ac_try) 2>&5 |
| 5008 | ac_status=$? |
| 5009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5010 | (exit $ac_status); }; }; then |
| 5011 | ac_header_compiler=yes |
| 5012 | else |
| 5013 | echo "$as_me: failed program was:" >&5 |
| 5014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5015 | |
| 5016 | ac_header_compiler=no |
| 5017 | fi |
| 5018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5019 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5020 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5021 | |
| 5022 | # Is the header present? |
| 5023 | echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 5024 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6 |
| 5025 | cat >conftest.$ac_ext <<_ACEOF |
| 5026 | /* confdefs.h. */ |
| 5027 | _ACEOF |
| 5028 | cat confdefs.h >>conftest.$ac_ext |
| 5029 | cat >>conftest.$ac_ext <<_ACEOF |
| 5030 | /* end confdefs.h. */ |
| 5031 | #include <linux/socket.h> |
| 5032 | _ACEOF |
| 5033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5035 | ac_status=$? |
| 5036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5037 | rm -f conftest.er1 |
| 5038 | cat conftest.err >&5 |
| 5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5040 | (exit $ac_status); } >/dev/null; then |
| 5041 | if test -s conftest.err; then |
| 5042 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5043 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5044 | else |
| 5045 | ac_cpp_err= |
| 5046 | fi |
| 5047 | else |
| 5048 | ac_cpp_err=yes |
| 5049 | fi |
| 5050 | if test -z "$ac_cpp_err"; then |
| 5051 | ac_header_preproc=yes |
| 5052 | else |
| 5053 | echo "$as_me: failed program was:" >&5 |
| 5054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5055 | |
| 5056 | ac_header_preproc=no |
| 5057 | fi |
| 5058 | rm -f conftest.err conftest.$ac_ext |
| 5059 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5060 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5061 | |
| 5062 | # So? What about this header? |
| 5063 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5064 | yes:no: ) |
| 5065 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5066 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5067 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 5068 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 5069 | ac_header_preproc=yes |
| 5070 | ;; |
| 5071 | no:yes:* ) |
| 5072 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 5073 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 5074 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 5075 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 5076 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 5077 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 5078 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5079 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5080 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 5081 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 5082 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 5083 | echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} |
| 5084 | ( |
| 5085 | cat <<\_ASBOX |
| 5086 | ## ------------------------------------ ## |
| 5087 | ## Report this to the pjproject lists. ## |
| 5088 | ## ------------------------------------ ## |
| 5089 | _ASBOX |
| 5090 | ) | |
| 5091 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5092 | ;; |
| 5093 | esac |
| 5094 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5095 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
| 5096 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5098 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5099 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 5100 | fi |
| 5101 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5102 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
| 5103 | |
| 5104 | fi |
| 5105 | if test $ac_cv_header_linux_socket_h = yes; then |
| 5106 | cat >>confdefs.h <<\_ACEOF |
| 5107 | #define PJ_HAS_LINUX_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5108 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5109 | |
| 5110 | fi |
| 5111 | |
| 5112 | |
| 5113 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5114 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5115 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
| 5116 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5118 | fi |
| 5119 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5120 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
| 5121 | else |
| 5122 | # Is the header compilable? |
| 5123 | echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 5124 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6 |
| 5125 | cat >conftest.$ac_ext <<_ACEOF |
| 5126 | /* confdefs.h. */ |
| 5127 | _ACEOF |
| 5128 | cat confdefs.h >>conftest.$ac_ext |
| 5129 | cat >>conftest.$ac_ext <<_ACEOF |
| 5130 | /* end confdefs.h. */ |
| 5131 | $ac_includes_default |
| 5132 | #include <malloc.h> |
| 5133 | _ACEOF |
| 5134 | rm -f conftest.$ac_objext |
| 5135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5136 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5137 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5138 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5139 | rm -f conftest.er1 |
| 5140 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5142 | (exit $ac_status); } && |
| 5143 | { ac_try='test -z "$ac_c_werror_flag" |
| 5144 | || test ! -s conftest.err' |
| 5145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5146 | (eval $ac_try) 2>&5 |
| 5147 | ac_status=$? |
| 5148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5149 | (exit $ac_status); }; } && |
| 5150 | { ac_try='test -s conftest.$ac_objext' |
| 5151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5152 | (eval $ac_try) 2>&5 |
| 5153 | ac_status=$? |
| 5154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5155 | (exit $ac_status); }; }; then |
| 5156 | ac_header_compiler=yes |
| 5157 | else |
| 5158 | echo "$as_me: failed program was:" >&5 |
| 5159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5160 | |
| 5161 | ac_header_compiler=no |
| 5162 | fi |
| 5163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5164 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5165 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5166 | |
| 5167 | # Is the header present? |
| 5168 | echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5169 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6 |
| 5170 | cat >conftest.$ac_ext <<_ACEOF |
| 5171 | /* confdefs.h. */ |
| 5172 | _ACEOF |
| 5173 | cat confdefs.h >>conftest.$ac_ext |
| 5174 | cat >>conftest.$ac_ext <<_ACEOF |
| 5175 | /* end confdefs.h. */ |
| 5176 | #include <malloc.h> |
| 5177 | _ACEOF |
| 5178 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5179 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5180 | ac_status=$? |
| 5181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5182 | rm -f conftest.er1 |
| 5183 | cat conftest.err >&5 |
| 5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5185 | (exit $ac_status); } >/dev/null; then |
| 5186 | if test -s conftest.err; then |
| 5187 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5188 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5189 | else |
| 5190 | ac_cpp_err= |
| 5191 | fi |
| 5192 | else |
| 5193 | ac_cpp_err=yes |
| 5194 | fi |
| 5195 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5196 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5197 | else |
| 5198 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5200 | |
| 5201 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5202 | fi |
| 5203 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5204 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5205 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5206 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5207 | # So? What about this header? |
| 5208 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5209 | yes:no: ) |
| 5210 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5211 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5212 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5213 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5214 | ac_header_preproc=yes |
| 5215 | ;; |
| 5216 | no:yes:* ) |
| 5217 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5218 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5219 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5220 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5221 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5222 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5223 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5224 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5225 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5226 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5227 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5228 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} |
| 5229 | ( |
| 5230 | cat <<\_ASBOX |
| 5231 | ## ------------------------------------ ## |
| 5232 | ## Report this to the pjproject lists. ## |
| 5233 | ## ------------------------------------ ## |
| 5234 | _ASBOX |
| 5235 | ) | |
| 5236 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5237 | ;; |
| 5238 | esac |
| 5239 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5240 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
| 5241 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5243 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5244 | ac_cv_header_malloc_h=$ac_header_preproc |
| 5245 | fi |
| 5246 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5247 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
| 5248 | |
| 5249 | fi |
| 5250 | if test $ac_cv_header_malloc_h = yes; then |
| 5251 | cat >>confdefs.h <<\_ACEOF |
| 5252 | #define PJ_HAS_MALLOC_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5253 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5254 | |
| 5255 | fi |
| 5256 | |
| 5257 | |
| 5258 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5259 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5260 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
| 5261 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5263 | fi |
| 5264 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5265 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
| 5266 | else |
| 5267 | # Is the header compilable? |
| 5268 | echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 5269 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6 |
| 5270 | cat >conftest.$ac_ext <<_ACEOF |
| 5271 | /* confdefs.h. */ |
| 5272 | _ACEOF |
| 5273 | cat confdefs.h >>conftest.$ac_ext |
| 5274 | cat >>conftest.$ac_ext <<_ACEOF |
| 5275 | /* end confdefs.h. */ |
| 5276 | $ac_includes_default |
| 5277 | #include <netdb.h> |
| 5278 | _ACEOF |
| 5279 | rm -f conftest.$ac_objext |
| 5280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5281 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5282 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5283 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5284 | rm -f conftest.er1 |
| 5285 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5287 | (exit $ac_status); } && |
| 5288 | { ac_try='test -z "$ac_c_werror_flag" |
| 5289 | || test ! -s conftest.err' |
| 5290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5291 | (eval $ac_try) 2>&5 |
| 5292 | ac_status=$? |
| 5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5294 | (exit $ac_status); }; } && |
| 5295 | { ac_try='test -s conftest.$ac_objext' |
| 5296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5297 | (eval $ac_try) 2>&5 |
| 5298 | ac_status=$? |
| 5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5300 | (exit $ac_status); }; }; then |
| 5301 | ac_header_compiler=yes |
| 5302 | else |
| 5303 | echo "$as_me: failed program was:" >&5 |
| 5304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5305 | |
| 5306 | ac_header_compiler=no |
| 5307 | fi |
| 5308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5309 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5310 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5311 | |
| 5312 | # Is the header present? |
| 5313 | echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 5314 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6 |
| 5315 | cat >conftest.$ac_ext <<_ACEOF |
| 5316 | /* confdefs.h. */ |
| 5317 | _ACEOF |
| 5318 | cat confdefs.h >>conftest.$ac_ext |
| 5319 | cat >>conftest.$ac_ext <<_ACEOF |
| 5320 | /* end confdefs.h. */ |
| 5321 | #include <netdb.h> |
| 5322 | _ACEOF |
| 5323 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5324 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5325 | ac_status=$? |
| 5326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5327 | rm -f conftest.er1 |
| 5328 | cat conftest.err >&5 |
| 5329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5330 | (exit $ac_status); } >/dev/null; then |
| 5331 | if test -s conftest.err; then |
| 5332 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5333 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5334 | else |
| 5335 | ac_cpp_err= |
| 5336 | fi |
| 5337 | else |
| 5338 | ac_cpp_err=yes |
| 5339 | fi |
| 5340 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5341 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5342 | else |
| 5343 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5345 | |
| 5346 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5347 | fi |
| 5348 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5349 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5350 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5351 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5352 | # So? What about this header? |
| 5353 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5354 | yes:no: ) |
| 5355 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5356 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5357 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 5358 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 5359 | ac_header_preproc=yes |
| 5360 | ;; |
| 5361 | no:yes:* ) |
| 5362 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 5363 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 5364 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 5365 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 5366 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 5367 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 5368 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5369 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5370 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 5371 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 5372 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 5373 | echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} |
| 5374 | ( |
| 5375 | cat <<\_ASBOX |
| 5376 | ## ------------------------------------ ## |
| 5377 | ## Report this to the pjproject lists. ## |
| 5378 | ## ------------------------------------ ## |
| 5379 | _ASBOX |
| 5380 | ) | |
| 5381 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5382 | ;; |
| 5383 | esac |
| 5384 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5385 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
| 5386 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5388 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5389 | ac_cv_header_netdb_h=$ac_header_preproc |
| 5390 | fi |
| 5391 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5392 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
| 5393 | |
| 5394 | fi |
| 5395 | if test $ac_cv_header_netdb_h = yes; then |
| 5396 | cat >>confdefs.h <<\_ACEOF |
| 5397 | #define PJ_HAS_NETDB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5398 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5399 | |
| 5400 | fi |
| 5401 | |
| 5402 | |
| 5403 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5404 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 5405 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
| 5406 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5408 | fi |
| 5409 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5410 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
| 5411 | else |
| 5412 | # Is the header compilable? |
| 5413 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 5414 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 |
| 5415 | cat >conftest.$ac_ext <<_ACEOF |
| 5416 | /* confdefs.h. */ |
| 5417 | _ACEOF |
| 5418 | cat confdefs.h >>conftest.$ac_ext |
| 5419 | cat >>conftest.$ac_ext <<_ACEOF |
| 5420 | /* end confdefs.h. */ |
| 5421 | $ac_includes_default |
| 5422 | #include <netinet/in.h> |
| 5423 | _ACEOF |
| 5424 | rm -f conftest.$ac_objext |
| 5425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5426 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5427 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5428 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5429 | rm -f conftest.er1 |
| 5430 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5432 | (exit $ac_status); } && |
| 5433 | { ac_try='test -z "$ac_c_werror_flag" |
| 5434 | || test ! -s conftest.err' |
| 5435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5436 | (eval $ac_try) 2>&5 |
| 5437 | ac_status=$? |
| 5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5439 | (exit $ac_status); }; } && |
| 5440 | { ac_try='test -s conftest.$ac_objext' |
| 5441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5442 | (eval $ac_try) 2>&5 |
| 5443 | ac_status=$? |
| 5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5445 | (exit $ac_status); }; }; then |
| 5446 | ac_header_compiler=yes |
| 5447 | else |
| 5448 | echo "$as_me: failed program was:" >&5 |
| 5449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5450 | |
| 5451 | ac_header_compiler=no |
| 5452 | fi |
| 5453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5454 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5455 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5456 | |
| 5457 | # Is the header present? |
| 5458 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 5459 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 |
| 5460 | cat >conftest.$ac_ext <<_ACEOF |
| 5461 | /* confdefs.h. */ |
| 5462 | _ACEOF |
| 5463 | cat confdefs.h >>conftest.$ac_ext |
| 5464 | cat >>conftest.$ac_ext <<_ACEOF |
| 5465 | /* end confdefs.h. */ |
| 5466 | #include <netinet/in.h> |
| 5467 | _ACEOF |
| 5468 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5469 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5470 | ac_status=$? |
| 5471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5472 | rm -f conftest.er1 |
| 5473 | cat conftest.err >&5 |
| 5474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5475 | (exit $ac_status); } >/dev/null; then |
| 5476 | if test -s conftest.err; then |
| 5477 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5478 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5479 | else |
| 5480 | ac_cpp_err= |
| 5481 | fi |
| 5482 | else |
| 5483 | ac_cpp_err=yes |
| 5484 | fi |
| 5485 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5486 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5487 | else |
| 5488 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5490 | |
| 5491 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5492 | fi |
| 5493 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5494 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5495 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5496 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5497 | # So? What about this header? |
| 5498 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5499 | yes:no: ) |
| 5500 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5501 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5502 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 5503 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 5504 | ac_header_preproc=yes |
| 5505 | ;; |
| 5506 | no:yes:* ) |
| 5507 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 5508 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 5509 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 5510 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 5511 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 5512 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 5513 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5514 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5515 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 5516 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 5517 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 5518 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
| 5519 | ( |
| 5520 | cat <<\_ASBOX |
| 5521 | ## ------------------------------------ ## |
| 5522 | ## Report this to the pjproject lists. ## |
| 5523 | ## ------------------------------------ ## |
| 5524 | _ASBOX |
| 5525 | ) | |
| 5526 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5527 | ;; |
| 5528 | esac |
| 5529 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5530 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
| 5531 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5533 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5534 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 5535 | fi |
| 5536 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5537 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
| 5538 | |
| 5539 | fi |
| 5540 | if test $ac_cv_header_netinet_in_h = yes; then |
| 5541 | cat >>confdefs.h <<\_ACEOF |
| 5542 | #define PJ_HAS_NETINET_IN_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5543 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5544 | |
| 5545 | fi |
| 5546 | |
| 5547 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5548 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5549 | echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 5550 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6 |
| 5551 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5553 | fi |
| 5554 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 5555 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6 |
| 5556 | else |
| 5557 | # Is the header compilable? |
| 5558 | echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5 |
| 5559 | echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6 |
| 5560 | cat >conftest.$ac_ext <<_ACEOF |
| 5561 | /* confdefs.h. */ |
| 5562 | _ACEOF |
| 5563 | cat confdefs.h >>conftest.$ac_ext |
| 5564 | cat >>conftest.$ac_ext <<_ACEOF |
| 5565 | /* end confdefs.h. */ |
| 5566 | $ac_includes_default |
| 5567 | #include <netinet/ip.h> |
| 5568 | _ACEOF |
| 5569 | rm -f conftest.$ac_objext |
| 5570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5571 | (eval $ac_compile) 2>conftest.er1 |
| 5572 | ac_status=$? |
| 5573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5574 | rm -f conftest.er1 |
| 5575 | cat conftest.err >&5 |
| 5576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5577 | (exit $ac_status); } && |
| 5578 | { ac_try='test -z "$ac_c_werror_flag" |
| 5579 | || test ! -s conftest.err' |
| 5580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5581 | (eval $ac_try) 2>&5 |
| 5582 | ac_status=$? |
| 5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5584 | (exit $ac_status); }; } && |
| 5585 | { ac_try='test -s conftest.$ac_objext' |
| 5586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5587 | (eval $ac_try) 2>&5 |
| 5588 | ac_status=$? |
| 5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5590 | (exit $ac_status); }; }; then |
| 5591 | ac_header_compiler=yes |
| 5592 | else |
| 5593 | echo "$as_me: failed program was:" >&5 |
| 5594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5595 | |
| 5596 | ac_header_compiler=no |
| 5597 | fi |
| 5598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5599 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5600 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5601 | |
| 5602 | # Is the header present? |
| 5603 | echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5 |
| 5604 | echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6 |
| 5605 | cat >conftest.$ac_ext <<_ACEOF |
| 5606 | /* confdefs.h. */ |
| 5607 | _ACEOF |
| 5608 | cat confdefs.h >>conftest.$ac_ext |
| 5609 | cat >>conftest.$ac_ext <<_ACEOF |
| 5610 | /* end confdefs.h. */ |
| 5611 | #include <netinet/ip.h> |
| 5612 | _ACEOF |
| 5613 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5614 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5615 | ac_status=$? |
| 5616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5617 | rm -f conftest.er1 |
| 5618 | cat conftest.err >&5 |
| 5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5620 | (exit $ac_status); } >/dev/null; then |
| 5621 | if test -s conftest.err; then |
| 5622 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5623 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5624 | else |
| 5625 | ac_cpp_err= |
| 5626 | fi |
| 5627 | else |
| 5628 | ac_cpp_err=yes |
| 5629 | fi |
| 5630 | if test -z "$ac_cpp_err"; then |
| 5631 | ac_header_preproc=yes |
| 5632 | else |
| 5633 | echo "$as_me: failed program was:" >&5 |
| 5634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5635 | |
| 5636 | ac_header_preproc=no |
| 5637 | fi |
| 5638 | rm -f conftest.err conftest.$ac_ext |
| 5639 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5640 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5641 | |
| 5642 | # So? What about this header? |
| 5643 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5644 | yes:no: ) |
| 5645 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5646 | echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5647 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5 |
| 5648 | echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;} |
| 5649 | ac_header_preproc=yes |
| 5650 | ;; |
| 5651 | no:yes:* ) |
| 5652 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5 |
| 5653 | echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;} |
| 5654 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5 |
| 5655 | echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;} |
| 5656 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5 |
| 5657 | echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;} |
| 5658 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5659 | echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5660 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5 |
| 5661 | echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;} |
| 5662 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5 |
| 5663 | echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;} |
| 5664 | ( |
| 5665 | cat <<\_ASBOX |
| 5666 | ## ------------------------------------ ## |
| 5667 | ## Report this to the pjproject lists. ## |
| 5668 | ## ------------------------------------ ## |
| 5669 | _ASBOX |
| 5670 | ) | |
| 5671 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5672 | ;; |
| 5673 | esac |
| 5674 | echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 5675 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6 |
| 5676 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5678 | else |
| 5679 | ac_cv_header_netinet_ip_h=$ac_header_preproc |
| 5680 | fi |
| 5681 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 5682 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6 |
| 5683 | |
| 5684 | fi |
| 5685 | if test $ac_cv_header_netinet_ip_h = yes; then |
| 5686 | cat >>confdefs.h <<\_ACEOF |
| 5687 | #define PJ_HAS_NETINET_IP_H 1 |
| 5688 | _ACEOF |
| 5689 | |
| 5690 | fi |
| 5691 | |
| 5692 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5693 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 5694 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 5695 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
| 5696 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 5697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5698 | fi |
| 5699 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 5700 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
| 5701 | else |
| 5702 | # Is the header compilable? |
| 5703 | echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 5704 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6 |
| 5705 | cat >conftest.$ac_ext <<_ACEOF |
| 5706 | /* confdefs.h. */ |
| 5707 | _ACEOF |
| 5708 | cat confdefs.h >>conftest.$ac_ext |
| 5709 | cat >>conftest.$ac_ext <<_ACEOF |
| 5710 | /* end confdefs.h. */ |
| 5711 | $ac_includes_default |
| 5712 | #include <setjmp.h> |
| 5713 | _ACEOF |
| 5714 | rm -f conftest.$ac_objext |
| 5715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5716 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5717 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5718 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5719 | rm -f conftest.er1 |
| 5720 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5722 | (exit $ac_status); } && |
| 5723 | { ac_try='test -z "$ac_c_werror_flag" |
| 5724 | || test ! -s conftest.err' |
| 5725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5726 | (eval $ac_try) 2>&5 |
| 5727 | ac_status=$? |
| 5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5729 | (exit $ac_status); }; } && |
| 5730 | { ac_try='test -s conftest.$ac_objext' |
| 5731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5732 | (eval $ac_try) 2>&5 |
| 5733 | ac_status=$? |
| 5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5735 | (exit $ac_status); }; }; then |
| 5736 | ac_header_compiler=yes |
| 5737 | else |
| 5738 | echo "$as_me: failed program was:" >&5 |
| 5739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5740 | |
| 5741 | ac_header_compiler=no |
| 5742 | fi |
| 5743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5744 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5745 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5746 | |
| 5747 | # Is the header present? |
| 5748 | echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 5749 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6 |
| 5750 | cat >conftest.$ac_ext <<_ACEOF |
| 5751 | /* confdefs.h. */ |
| 5752 | _ACEOF |
| 5753 | cat confdefs.h >>conftest.$ac_ext |
| 5754 | cat >>conftest.$ac_ext <<_ACEOF |
| 5755 | /* end confdefs.h. */ |
| 5756 | #include <setjmp.h> |
| 5757 | _ACEOF |
| 5758 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5759 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5760 | ac_status=$? |
| 5761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5762 | rm -f conftest.er1 |
| 5763 | cat conftest.err >&5 |
| 5764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5765 | (exit $ac_status); } >/dev/null; then |
| 5766 | if test -s conftest.err; then |
| 5767 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5768 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5769 | else |
| 5770 | ac_cpp_err= |
| 5771 | fi |
| 5772 | else |
| 5773 | ac_cpp_err=yes |
| 5774 | fi |
| 5775 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5776 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5777 | else |
| 5778 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5780 | |
| 5781 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5782 | fi |
| 5783 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5784 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5785 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5786 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5787 | # So? What about this header? |
| 5788 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5789 | yes:no: ) |
| 5790 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5791 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5792 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 5793 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 5794 | ac_header_preproc=yes |
| 5795 | ;; |
| 5796 | no:yes:* ) |
| 5797 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 5798 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 5799 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 5800 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 5801 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 5802 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 5803 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5804 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5805 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 5806 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 5807 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 5808 | echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} |
| 5809 | ( |
| 5810 | cat <<\_ASBOX |
| 5811 | ## ------------------------------------ ## |
| 5812 | ## Report this to the pjproject lists. ## |
| 5813 | ## ------------------------------------ ## |
| 5814 | _ASBOX |
| 5815 | ) | |
| 5816 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5817 | ;; |
| 5818 | esac |
| 5819 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5820 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
| 5821 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 5822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5823 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5824 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 5825 | fi |
| 5826 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 5827 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
| 5828 | |
| 5829 | fi |
| 5830 | if test $ac_cv_header_setjmp_h = yes; then |
| 5831 | cat >>confdefs.h <<\_ACEOF |
| 5832 | #define PJ_HAS_SETJMP_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5833 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5834 | |
| 5835 | fi |
| 5836 | |
| 5837 | |
| 5838 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 5839 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 5840 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
| 5841 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 5842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5843 | fi |
| 5844 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 5845 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
| 5846 | else |
| 5847 | # Is the header compilable? |
| 5848 | echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 5849 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6 |
| 5850 | cat >conftest.$ac_ext <<_ACEOF |
| 5851 | /* confdefs.h. */ |
| 5852 | _ACEOF |
| 5853 | cat confdefs.h >>conftest.$ac_ext |
| 5854 | cat >>conftest.$ac_ext <<_ACEOF |
| 5855 | /* end confdefs.h. */ |
| 5856 | $ac_includes_default |
| 5857 | #include <stdarg.h> |
| 5858 | _ACEOF |
| 5859 | rm -f conftest.$ac_objext |
| 5860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5861 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5862 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5863 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5864 | rm -f conftest.er1 |
| 5865 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5867 | (exit $ac_status); } && |
| 5868 | { ac_try='test -z "$ac_c_werror_flag" |
| 5869 | || test ! -s conftest.err' |
| 5870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5871 | (eval $ac_try) 2>&5 |
| 5872 | ac_status=$? |
| 5873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5874 | (exit $ac_status); }; } && |
| 5875 | { ac_try='test -s conftest.$ac_objext' |
| 5876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5877 | (eval $ac_try) 2>&5 |
| 5878 | ac_status=$? |
| 5879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5880 | (exit $ac_status); }; }; then |
| 5881 | ac_header_compiler=yes |
| 5882 | else |
| 5883 | echo "$as_me: failed program was:" >&5 |
| 5884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5885 | |
| 5886 | ac_header_compiler=no |
| 5887 | fi |
| 5888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5889 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5890 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5891 | |
| 5892 | # Is the header present? |
| 5893 | echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 5894 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6 |
| 5895 | cat >conftest.$ac_ext <<_ACEOF |
| 5896 | /* confdefs.h. */ |
| 5897 | _ACEOF |
| 5898 | cat confdefs.h >>conftest.$ac_ext |
| 5899 | cat >>conftest.$ac_ext <<_ACEOF |
| 5900 | /* end confdefs.h. */ |
| 5901 | #include <stdarg.h> |
| 5902 | _ACEOF |
| 5903 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5904 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5905 | ac_status=$? |
| 5906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5907 | rm -f conftest.er1 |
| 5908 | cat conftest.err >&5 |
| 5909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5910 | (exit $ac_status); } >/dev/null; then |
| 5911 | if test -s conftest.err; then |
| 5912 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5913 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5914 | else |
| 5915 | ac_cpp_err= |
| 5916 | fi |
| 5917 | else |
| 5918 | ac_cpp_err=yes |
| 5919 | fi |
| 5920 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5921 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5922 | else |
| 5923 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5925 | |
| 5926 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5927 | fi |
| 5928 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5929 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5930 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5931 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5932 | # So? What about this header? |
| 5933 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5934 | yes:no: ) |
| 5935 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5936 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5937 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 5938 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 5939 | ac_header_preproc=yes |
| 5940 | ;; |
| 5941 | no:yes:* ) |
| 5942 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 5943 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 5944 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 5945 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 5946 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 5947 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 5948 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5949 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5950 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 5951 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 5952 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 5953 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
| 5954 | ( |
| 5955 | cat <<\_ASBOX |
| 5956 | ## ------------------------------------ ## |
| 5957 | ## Report this to the pjproject lists. ## |
| 5958 | ## ------------------------------------ ## |
| 5959 | _ASBOX |
| 5960 | ) | |
| 5961 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5962 | ;; |
| 5963 | esac |
| 5964 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5965 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
| 5966 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 5967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5968 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5969 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 5970 | fi |
| 5971 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 5972 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
| 5973 | |
| 5974 | fi |
| 5975 | if test $ac_cv_header_stdarg_h = yes; then |
| 5976 | cat >>confdefs.h <<\_ACEOF |
| 5977 | #define PJ_HAS_STDARG_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5978 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5979 | |
| 5980 | fi |
| 5981 | |
| 5982 | |
| 5983 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 5984 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 5985 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
| 5986 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 5987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5988 | fi |
| 5989 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 5990 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
| 5991 | else |
| 5992 | # Is the header compilable? |
| 5993 | echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 5994 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6 |
| 5995 | cat >conftest.$ac_ext <<_ACEOF |
| 5996 | /* confdefs.h. */ |
| 5997 | _ACEOF |
| 5998 | cat confdefs.h >>conftest.$ac_ext |
| 5999 | cat >>conftest.$ac_ext <<_ACEOF |
| 6000 | /* end confdefs.h. */ |
| 6001 | $ac_includes_default |
| 6002 | #include <stddef.h> |
| 6003 | _ACEOF |
| 6004 | rm -f conftest.$ac_objext |
| 6005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6006 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6007 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6008 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6009 | rm -f conftest.er1 |
| 6010 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6012 | (exit $ac_status); } && |
| 6013 | { ac_try='test -z "$ac_c_werror_flag" |
| 6014 | || test ! -s conftest.err' |
| 6015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6016 | (eval $ac_try) 2>&5 |
| 6017 | ac_status=$? |
| 6018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6019 | (exit $ac_status); }; } && |
| 6020 | { ac_try='test -s conftest.$ac_objext' |
| 6021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6022 | (eval $ac_try) 2>&5 |
| 6023 | ac_status=$? |
| 6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6025 | (exit $ac_status); }; }; then |
| 6026 | ac_header_compiler=yes |
| 6027 | else |
| 6028 | echo "$as_me: failed program was:" >&5 |
| 6029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6030 | |
| 6031 | ac_header_compiler=no |
| 6032 | fi |
| 6033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6034 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6035 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6036 | |
| 6037 | # Is the header present? |
| 6038 | echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 6039 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6 |
| 6040 | cat >conftest.$ac_ext <<_ACEOF |
| 6041 | /* confdefs.h. */ |
| 6042 | _ACEOF |
| 6043 | cat confdefs.h >>conftest.$ac_ext |
| 6044 | cat >>conftest.$ac_ext <<_ACEOF |
| 6045 | /* end confdefs.h. */ |
| 6046 | #include <stddef.h> |
| 6047 | _ACEOF |
| 6048 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6049 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6050 | ac_status=$? |
| 6051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6052 | rm -f conftest.er1 |
| 6053 | cat conftest.err >&5 |
| 6054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6055 | (exit $ac_status); } >/dev/null; then |
| 6056 | if test -s conftest.err; then |
| 6057 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6058 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6059 | else |
| 6060 | ac_cpp_err= |
| 6061 | fi |
| 6062 | else |
| 6063 | ac_cpp_err=yes |
| 6064 | fi |
| 6065 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6066 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6067 | else |
| 6068 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6070 | |
| 6071 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6072 | fi |
| 6073 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6074 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6075 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6076 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6077 | # So? What about this header? |
| 6078 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6079 | yes:no: ) |
| 6080 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6081 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6082 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 6083 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 6084 | ac_header_preproc=yes |
| 6085 | ;; |
| 6086 | no:yes:* ) |
| 6087 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 6088 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 6089 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 6090 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 6091 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 6092 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 6093 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6094 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6095 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 6096 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 6097 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 6098 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} |
| 6099 | ( |
| 6100 | cat <<\_ASBOX |
| 6101 | ## ------------------------------------ ## |
| 6102 | ## Report this to the pjproject lists. ## |
| 6103 | ## ------------------------------------ ## |
| 6104 | _ASBOX |
| 6105 | ) | |
| 6106 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6107 | ;; |
| 6108 | esac |
| 6109 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6110 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
| 6111 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6113 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6114 | ac_cv_header_stddef_h=$ac_header_preproc |
| 6115 | fi |
| 6116 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6117 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
| 6118 | |
| 6119 | fi |
| 6120 | if test $ac_cv_header_stddef_h = yes; then |
| 6121 | cat >>confdefs.h <<\_ACEOF |
| 6122 | #define PJ_HAS_STDDEF_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6123 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6124 | |
| 6125 | fi |
| 6126 | |
| 6127 | |
| 6128 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6129 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 6130 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
| 6131 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6133 | fi |
| 6134 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6135 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
| 6136 | else |
| 6137 | # Is the header compilable? |
| 6138 | echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 6139 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6 |
| 6140 | cat >conftest.$ac_ext <<_ACEOF |
| 6141 | /* confdefs.h. */ |
| 6142 | _ACEOF |
| 6143 | cat confdefs.h >>conftest.$ac_ext |
| 6144 | cat >>conftest.$ac_ext <<_ACEOF |
| 6145 | /* end confdefs.h. */ |
| 6146 | $ac_includes_default |
| 6147 | #include <stdio.h> |
| 6148 | _ACEOF |
| 6149 | rm -f conftest.$ac_objext |
| 6150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6151 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6152 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6153 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6154 | rm -f conftest.er1 |
| 6155 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6157 | (exit $ac_status); } && |
| 6158 | { ac_try='test -z "$ac_c_werror_flag" |
| 6159 | || test ! -s conftest.err' |
| 6160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6161 | (eval $ac_try) 2>&5 |
| 6162 | ac_status=$? |
| 6163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6164 | (exit $ac_status); }; } && |
| 6165 | { ac_try='test -s conftest.$ac_objext' |
| 6166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6167 | (eval $ac_try) 2>&5 |
| 6168 | ac_status=$? |
| 6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6170 | (exit $ac_status); }; }; then |
| 6171 | ac_header_compiler=yes |
| 6172 | else |
| 6173 | echo "$as_me: failed program was:" >&5 |
| 6174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6175 | |
| 6176 | ac_header_compiler=no |
| 6177 | fi |
| 6178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6179 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6180 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6181 | |
| 6182 | # Is the header present? |
| 6183 | echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 6184 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6 |
| 6185 | cat >conftest.$ac_ext <<_ACEOF |
| 6186 | /* confdefs.h. */ |
| 6187 | _ACEOF |
| 6188 | cat confdefs.h >>conftest.$ac_ext |
| 6189 | cat >>conftest.$ac_ext <<_ACEOF |
| 6190 | /* end confdefs.h. */ |
| 6191 | #include <stdio.h> |
| 6192 | _ACEOF |
| 6193 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6194 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6195 | ac_status=$? |
| 6196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6197 | rm -f conftest.er1 |
| 6198 | cat conftest.err >&5 |
| 6199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6200 | (exit $ac_status); } >/dev/null; then |
| 6201 | if test -s conftest.err; then |
| 6202 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6203 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6204 | else |
| 6205 | ac_cpp_err= |
| 6206 | fi |
| 6207 | else |
| 6208 | ac_cpp_err=yes |
| 6209 | fi |
| 6210 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6211 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6212 | else |
| 6213 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6215 | |
| 6216 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6217 | fi |
| 6218 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6219 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6220 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6221 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6222 | # So? What about this header? |
| 6223 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6224 | yes:no: ) |
| 6225 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6226 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6227 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 6228 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 6229 | ac_header_preproc=yes |
| 6230 | ;; |
| 6231 | no:yes:* ) |
| 6232 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 6233 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 6234 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 6235 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 6236 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 6237 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 6238 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6239 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6240 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 6241 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 6242 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 6243 | echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} |
| 6244 | ( |
| 6245 | cat <<\_ASBOX |
| 6246 | ## ------------------------------------ ## |
| 6247 | ## Report this to the pjproject lists. ## |
| 6248 | ## ------------------------------------ ## |
| 6249 | _ASBOX |
| 6250 | ) | |
| 6251 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6252 | ;; |
| 6253 | esac |
| 6254 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6255 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
| 6256 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6258 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6259 | ac_cv_header_stdio_h=$ac_header_preproc |
| 6260 | fi |
| 6261 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6262 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
| 6263 | |
| 6264 | fi |
| 6265 | if test $ac_cv_header_stdio_h = yes; then |
| 6266 | cat >>confdefs.h <<\_ACEOF |
| 6267 | #define PJ_HAS_STDIO_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6268 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6269 | |
| 6270 | fi |
| 6271 | |
| 6272 | |
| 6273 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 6274 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 6275 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
| 6276 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 6277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6278 | fi |
| 6279 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 6280 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
| 6281 | else |
| 6282 | # Is the header compilable? |
| 6283 | echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 6284 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 |
| 6285 | cat >conftest.$ac_ext <<_ACEOF |
| 6286 | /* confdefs.h. */ |
| 6287 | _ACEOF |
| 6288 | cat confdefs.h >>conftest.$ac_ext |
| 6289 | cat >>conftest.$ac_ext <<_ACEOF |
| 6290 | /* end confdefs.h. */ |
| 6291 | $ac_includes_default |
| 6292 | #include <stdlib.h> |
| 6293 | _ACEOF |
| 6294 | rm -f conftest.$ac_objext |
| 6295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6296 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6297 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6298 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6299 | rm -f conftest.er1 |
| 6300 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6302 | (exit $ac_status); } && |
| 6303 | { ac_try='test -z "$ac_c_werror_flag" |
| 6304 | || test ! -s conftest.err' |
| 6305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6306 | (eval $ac_try) 2>&5 |
| 6307 | ac_status=$? |
| 6308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6309 | (exit $ac_status); }; } && |
| 6310 | { ac_try='test -s conftest.$ac_objext' |
| 6311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6312 | (eval $ac_try) 2>&5 |
| 6313 | ac_status=$? |
| 6314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6315 | (exit $ac_status); }; }; then |
| 6316 | ac_header_compiler=yes |
| 6317 | else |
| 6318 | echo "$as_me: failed program was:" >&5 |
| 6319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6320 | |
| 6321 | ac_header_compiler=no |
| 6322 | fi |
| 6323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6324 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6325 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6326 | |
| 6327 | # Is the header present? |
| 6328 | echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 6329 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 |
| 6330 | cat >conftest.$ac_ext <<_ACEOF |
| 6331 | /* confdefs.h. */ |
| 6332 | _ACEOF |
| 6333 | cat confdefs.h >>conftest.$ac_ext |
| 6334 | cat >>conftest.$ac_ext <<_ACEOF |
| 6335 | /* end confdefs.h. */ |
| 6336 | #include <stdlib.h> |
| 6337 | _ACEOF |
| 6338 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6339 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6340 | ac_status=$? |
| 6341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6342 | rm -f conftest.er1 |
| 6343 | cat conftest.err >&5 |
| 6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6345 | (exit $ac_status); } >/dev/null; then |
| 6346 | if test -s conftest.err; then |
| 6347 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6348 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6349 | else |
| 6350 | ac_cpp_err= |
| 6351 | fi |
| 6352 | else |
| 6353 | ac_cpp_err=yes |
| 6354 | fi |
| 6355 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6356 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6357 | else |
| 6358 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6360 | |
| 6361 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6362 | fi |
| 6363 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6364 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6365 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6366 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6367 | # So? What about this header? |
| 6368 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6369 | yes:no: ) |
| 6370 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6371 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6372 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 6373 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 6374 | ac_header_preproc=yes |
| 6375 | ;; |
| 6376 | no:yes:* ) |
| 6377 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 6378 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 6379 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 6380 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 6381 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 6382 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 6383 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6384 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6385 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 6386 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 6387 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 6388 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} |
| 6389 | ( |
| 6390 | cat <<\_ASBOX |
| 6391 | ## ------------------------------------ ## |
| 6392 | ## Report this to the pjproject lists. ## |
| 6393 | ## ------------------------------------ ## |
| 6394 | _ASBOX |
| 6395 | ) | |
| 6396 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6397 | ;; |
| 6398 | esac |
| 6399 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6400 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
| 6401 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 6402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6403 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6404 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 6405 | fi |
| 6406 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 6407 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
| 6408 | |
| 6409 | fi |
| 6410 | if test $ac_cv_header_stdlib_h = yes; then |
| 6411 | cat >>confdefs.h <<\_ACEOF |
| 6412 | #define PJ_HAS_STDLIB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6413 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6414 | |
| 6415 | fi |
| 6416 | |
| 6417 | |
| 6418 | if test "${ac_cv_header_string_h+set}" = set; then |
| 6419 | echo "$as_me:$LINENO: checking for string.h" >&5 |
| 6420 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
| 6421 | if test "${ac_cv_header_string_h+set}" = set; then |
| 6422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6423 | fi |
| 6424 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 6425 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
| 6426 | else |
| 6427 | # Is the header compilable? |
| 6428 | echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 6429 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 |
| 6430 | cat >conftest.$ac_ext <<_ACEOF |
| 6431 | /* confdefs.h. */ |
| 6432 | _ACEOF |
| 6433 | cat confdefs.h >>conftest.$ac_ext |
| 6434 | cat >>conftest.$ac_ext <<_ACEOF |
| 6435 | /* end confdefs.h. */ |
| 6436 | $ac_includes_default |
| 6437 | #include <string.h> |
| 6438 | _ACEOF |
| 6439 | rm -f conftest.$ac_objext |
| 6440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6441 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6442 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6443 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6444 | rm -f conftest.er1 |
| 6445 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6447 | (exit $ac_status); } && |
| 6448 | { ac_try='test -z "$ac_c_werror_flag" |
| 6449 | || test ! -s conftest.err' |
| 6450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6451 | (eval $ac_try) 2>&5 |
| 6452 | ac_status=$? |
| 6453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6454 | (exit $ac_status); }; } && |
| 6455 | { ac_try='test -s conftest.$ac_objext' |
| 6456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6457 | (eval $ac_try) 2>&5 |
| 6458 | ac_status=$? |
| 6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6460 | (exit $ac_status); }; }; then |
| 6461 | ac_header_compiler=yes |
| 6462 | else |
| 6463 | echo "$as_me: failed program was:" >&5 |
| 6464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6465 | |
| 6466 | ac_header_compiler=no |
| 6467 | fi |
| 6468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6469 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6470 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6471 | |
| 6472 | # Is the header present? |
| 6473 | echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 6474 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 |
| 6475 | cat >conftest.$ac_ext <<_ACEOF |
| 6476 | /* confdefs.h. */ |
| 6477 | _ACEOF |
| 6478 | cat confdefs.h >>conftest.$ac_ext |
| 6479 | cat >>conftest.$ac_ext <<_ACEOF |
| 6480 | /* end confdefs.h. */ |
| 6481 | #include <string.h> |
| 6482 | _ACEOF |
| 6483 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6484 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6485 | ac_status=$? |
| 6486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6487 | rm -f conftest.er1 |
| 6488 | cat conftest.err >&5 |
| 6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6490 | (exit $ac_status); } >/dev/null; then |
| 6491 | if test -s conftest.err; then |
| 6492 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6493 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6494 | else |
| 6495 | ac_cpp_err= |
| 6496 | fi |
| 6497 | else |
| 6498 | ac_cpp_err=yes |
| 6499 | fi |
| 6500 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6501 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6502 | else |
| 6503 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6505 | |
| 6506 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6507 | fi |
| 6508 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6509 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6510 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6511 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6512 | # So? What about this header? |
| 6513 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6514 | yes:no: ) |
| 6515 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6516 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6517 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 6518 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 6519 | ac_header_preproc=yes |
| 6520 | ;; |
| 6521 | no:yes:* ) |
| 6522 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 6523 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 6524 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 6525 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 6526 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 6527 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 6528 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6529 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6530 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 6531 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 6532 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 6533 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} |
| 6534 | ( |
| 6535 | cat <<\_ASBOX |
| 6536 | ## ------------------------------------ ## |
| 6537 | ## Report this to the pjproject lists. ## |
| 6538 | ## ------------------------------------ ## |
| 6539 | _ASBOX |
| 6540 | ) | |
| 6541 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6542 | ;; |
| 6543 | esac |
| 6544 | echo "$as_me:$LINENO: checking for string.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6545 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
| 6546 | if test "${ac_cv_header_string_h+set}" = set; then |
| 6547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6548 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6549 | ac_cv_header_string_h=$ac_header_preproc |
| 6550 | fi |
| 6551 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 6552 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
| 6553 | |
| 6554 | fi |
| 6555 | if test $ac_cv_header_string_h = yes; then |
| 6556 | cat >>confdefs.h <<\_ACEOF |
| 6557 | #define PJ_HAS_STRING_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6558 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6559 | |
| 6560 | fi |
| 6561 | |
| 6562 | |
| 6563 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 6564 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 6565 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
| 6566 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 6567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6568 | fi |
| 6569 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 6570 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
| 6571 | else |
| 6572 | # Is the header compilable? |
| 6573 | echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 6574 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6 |
| 6575 | cat >conftest.$ac_ext <<_ACEOF |
| 6576 | /* confdefs.h. */ |
| 6577 | _ACEOF |
| 6578 | cat confdefs.h >>conftest.$ac_ext |
| 6579 | cat >>conftest.$ac_ext <<_ACEOF |
| 6580 | /* end confdefs.h. */ |
| 6581 | $ac_includes_default |
| 6582 | #include <sys/ioctl.h> |
| 6583 | _ACEOF |
| 6584 | rm -f conftest.$ac_objext |
| 6585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6586 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6587 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6588 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6589 | rm -f conftest.er1 |
| 6590 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6592 | (exit $ac_status); } && |
| 6593 | { ac_try='test -z "$ac_c_werror_flag" |
| 6594 | || test ! -s conftest.err' |
| 6595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6596 | (eval $ac_try) 2>&5 |
| 6597 | ac_status=$? |
| 6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6599 | (exit $ac_status); }; } && |
| 6600 | { ac_try='test -s conftest.$ac_objext' |
| 6601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6602 | (eval $ac_try) 2>&5 |
| 6603 | ac_status=$? |
| 6604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6605 | (exit $ac_status); }; }; then |
| 6606 | ac_header_compiler=yes |
| 6607 | else |
| 6608 | echo "$as_me: failed program was:" >&5 |
| 6609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6610 | |
| 6611 | ac_header_compiler=no |
| 6612 | fi |
| 6613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6614 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6615 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6616 | |
| 6617 | # Is the header present? |
| 6618 | echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 6619 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6 |
| 6620 | cat >conftest.$ac_ext <<_ACEOF |
| 6621 | /* confdefs.h. */ |
| 6622 | _ACEOF |
| 6623 | cat confdefs.h >>conftest.$ac_ext |
| 6624 | cat >>conftest.$ac_ext <<_ACEOF |
| 6625 | /* end confdefs.h. */ |
| 6626 | #include <sys/ioctl.h> |
| 6627 | _ACEOF |
| 6628 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6629 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6630 | ac_status=$? |
| 6631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6632 | rm -f conftest.er1 |
| 6633 | cat conftest.err >&5 |
| 6634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6635 | (exit $ac_status); } >/dev/null; then |
| 6636 | if test -s conftest.err; then |
| 6637 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6638 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6639 | else |
| 6640 | ac_cpp_err= |
| 6641 | fi |
| 6642 | else |
| 6643 | ac_cpp_err=yes |
| 6644 | fi |
| 6645 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6646 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6647 | else |
| 6648 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6650 | |
| 6651 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6652 | fi |
| 6653 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6654 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6655 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6656 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6657 | # So? What about this header? |
| 6658 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6659 | yes:no: ) |
| 6660 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6661 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6662 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 6663 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 6664 | ac_header_preproc=yes |
| 6665 | ;; |
| 6666 | no:yes:* ) |
| 6667 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 6668 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 6669 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 6670 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 6671 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 6672 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 6673 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6674 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6675 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 6676 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 6677 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 6678 | echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} |
| 6679 | ( |
| 6680 | cat <<\_ASBOX |
| 6681 | ## ------------------------------------ ## |
| 6682 | ## Report this to the pjproject lists. ## |
| 6683 | ## ------------------------------------ ## |
| 6684 | _ASBOX |
| 6685 | ) | |
| 6686 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6687 | ;; |
| 6688 | esac |
| 6689 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6690 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
| 6691 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 6692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6693 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6694 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 6695 | fi |
| 6696 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 6697 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
| 6698 | |
| 6699 | fi |
| 6700 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 6701 | cat >>confdefs.h <<\_ACEOF |
| 6702 | #define PJ_HAS_SYS_IOCTL_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6703 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6704 | |
| 6705 | fi |
| 6706 | |
| 6707 | |
| 6708 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 6709 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 6710 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
| 6711 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 6712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6713 | fi |
| 6714 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 6715 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
| 6716 | else |
| 6717 | # Is the header compilable? |
| 6718 | echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 6719 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6 |
| 6720 | cat >conftest.$ac_ext <<_ACEOF |
| 6721 | /* confdefs.h. */ |
| 6722 | _ACEOF |
| 6723 | cat confdefs.h >>conftest.$ac_ext |
| 6724 | cat >>conftest.$ac_ext <<_ACEOF |
| 6725 | /* end confdefs.h. */ |
| 6726 | $ac_includes_default |
| 6727 | #include <sys/select.h> |
| 6728 | _ACEOF |
| 6729 | rm -f conftest.$ac_objext |
| 6730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6731 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6732 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6733 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6734 | rm -f conftest.er1 |
| 6735 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6737 | (exit $ac_status); } && |
| 6738 | { ac_try='test -z "$ac_c_werror_flag" |
| 6739 | || test ! -s conftest.err' |
| 6740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6741 | (eval $ac_try) 2>&5 |
| 6742 | ac_status=$? |
| 6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6744 | (exit $ac_status); }; } && |
| 6745 | { ac_try='test -s conftest.$ac_objext' |
| 6746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6747 | (eval $ac_try) 2>&5 |
| 6748 | ac_status=$? |
| 6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6750 | (exit $ac_status); }; }; then |
| 6751 | ac_header_compiler=yes |
| 6752 | else |
| 6753 | echo "$as_me: failed program was:" >&5 |
| 6754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6755 | |
| 6756 | ac_header_compiler=no |
| 6757 | fi |
| 6758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6759 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6760 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6761 | |
| 6762 | # Is the header present? |
| 6763 | echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 6764 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6 |
| 6765 | cat >conftest.$ac_ext <<_ACEOF |
| 6766 | /* confdefs.h. */ |
| 6767 | _ACEOF |
| 6768 | cat confdefs.h >>conftest.$ac_ext |
| 6769 | cat >>conftest.$ac_ext <<_ACEOF |
| 6770 | /* end confdefs.h. */ |
| 6771 | #include <sys/select.h> |
| 6772 | _ACEOF |
| 6773 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6774 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6775 | ac_status=$? |
| 6776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6777 | rm -f conftest.er1 |
| 6778 | cat conftest.err >&5 |
| 6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6780 | (exit $ac_status); } >/dev/null; then |
| 6781 | if test -s conftest.err; then |
| 6782 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6783 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6784 | else |
| 6785 | ac_cpp_err= |
| 6786 | fi |
| 6787 | else |
| 6788 | ac_cpp_err=yes |
| 6789 | fi |
| 6790 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6791 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6792 | else |
| 6793 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6795 | |
| 6796 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6797 | fi |
| 6798 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6799 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6800 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6801 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6802 | # So? What about this header? |
| 6803 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6804 | yes:no: ) |
| 6805 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6806 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6807 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 6808 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 6809 | ac_header_preproc=yes |
| 6810 | ;; |
| 6811 | no:yes:* ) |
| 6812 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 6813 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 6814 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 6815 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 6816 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 6817 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 6818 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6819 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6820 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 6821 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 6822 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 6823 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} |
| 6824 | ( |
| 6825 | cat <<\_ASBOX |
| 6826 | ## ------------------------------------ ## |
| 6827 | ## Report this to the pjproject lists. ## |
| 6828 | ## ------------------------------------ ## |
| 6829 | _ASBOX |
| 6830 | ) | |
| 6831 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6832 | ;; |
| 6833 | esac |
| 6834 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6835 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
| 6836 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 6837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6838 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6839 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 6840 | fi |
| 6841 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 6842 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
| 6843 | |
| 6844 | fi |
| 6845 | if test $ac_cv_header_sys_select_h = yes; then |
| 6846 | cat >>confdefs.h <<\_ACEOF |
| 6847 | #define PJ_HAS_SYS_SELECT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6848 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6849 | |
| 6850 | fi |
| 6851 | |
| 6852 | |
| 6853 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 6854 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 6855 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
| 6856 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 6857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6858 | fi |
| 6859 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 6860 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
| 6861 | else |
| 6862 | # Is the header compilable? |
| 6863 | echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 6864 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6 |
| 6865 | cat >conftest.$ac_ext <<_ACEOF |
| 6866 | /* confdefs.h. */ |
| 6867 | _ACEOF |
| 6868 | cat confdefs.h >>conftest.$ac_ext |
| 6869 | cat >>conftest.$ac_ext <<_ACEOF |
| 6870 | /* end confdefs.h. */ |
| 6871 | $ac_includes_default |
| 6872 | #include <sys/socket.h> |
| 6873 | _ACEOF |
| 6874 | rm -f conftest.$ac_objext |
| 6875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6876 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6877 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6878 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6879 | rm -f conftest.er1 |
| 6880 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6882 | (exit $ac_status); } && |
| 6883 | { ac_try='test -z "$ac_c_werror_flag" |
| 6884 | || test ! -s conftest.err' |
| 6885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6886 | (eval $ac_try) 2>&5 |
| 6887 | ac_status=$? |
| 6888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6889 | (exit $ac_status); }; } && |
| 6890 | { ac_try='test -s conftest.$ac_objext' |
| 6891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6892 | (eval $ac_try) 2>&5 |
| 6893 | ac_status=$? |
| 6894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6895 | (exit $ac_status); }; }; then |
| 6896 | ac_header_compiler=yes |
| 6897 | else |
| 6898 | echo "$as_me: failed program was:" >&5 |
| 6899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6900 | |
| 6901 | ac_header_compiler=no |
| 6902 | fi |
| 6903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6904 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6905 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6906 | |
| 6907 | # Is the header present? |
| 6908 | echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 6909 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6 |
| 6910 | cat >conftest.$ac_ext <<_ACEOF |
| 6911 | /* confdefs.h. */ |
| 6912 | _ACEOF |
| 6913 | cat confdefs.h >>conftest.$ac_ext |
| 6914 | cat >>conftest.$ac_ext <<_ACEOF |
| 6915 | /* end confdefs.h. */ |
| 6916 | #include <sys/socket.h> |
| 6917 | _ACEOF |
| 6918 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6919 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6920 | ac_status=$? |
| 6921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6922 | rm -f conftest.er1 |
| 6923 | cat conftest.err >&5 |
| 6924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6925 | (exit $ac_status); } >/dev/null; then |
| 6926 | if test -s conftest.err; then |
| 6927 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6928 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6929 | else |
| 6930 | ac_cpp_err= |
| 6931 | fi |
| 6932 | else |
| 6933 | ac_cpp_err=yes |
| 6934 | fi |
| 6935 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6936 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6937 | else |
| 6938 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6940 | |
| 6941 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6942 | fi |
| 6943 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6944 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6945 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6946 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6947 | # So? What about this header? |
| 6948 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6949 | yes:no: ) |
| 6950 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6951 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6952 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 6953 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 6954 | ac_header_preproc=yes |
| 6955 | ;; |
| 6956 | no:yes:* ) |
| 6957 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 6958 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 6959 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 6960 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 6961 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 6962 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 6963 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6964 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6965 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 6966 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 6967 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 6968 | echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
| 6969 | ( |
| 6970 | cat <<\_ASBOX |
| 6971 | ## ------------------------------------ ## |
| 6972 | ## Report this to the pjproject lists. ## |
| 6973 | ## ------------------------------------ ## |
| 6974 | _ASBOX |
| 6975 | ) | |
| 6976 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6977 | ;; |
| 6978 | esac |
| 6979 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6980 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
| 6981 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 6982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6983 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6984 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 6985 | fi |
| 6986 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 6987 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
| 6988 | |
| 6989 | fi |
| 6990 | if test $ac_cv_header_sys_socket_h = yes; then |
| 6991 | cat >>confdefs.h <<\_ACEOF |
| 6992 | #define PJ_HAS_SYS_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6993 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6994 | |
| 6995 | fi |
| 6996 | |
| 6997 | |
| 6998 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 6999 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 7000 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
| 7001 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7003 | fi |
| 7004 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7005 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
| 7006 | else |
| 7007 | # Is the header compilable? |
| 7008 | echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 7009 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6 |
| 7010 | cat >conftest.$ac_ext <<_ACEOF |
| 7011 | /* confdefs.h. */ |
| 7012 | _ACEOF |
| 7013 | cat confdefs.h >>conftest.$ac_ext |
| 7014 | cat >>conftest.$ac_ext <<_ACEOF |
| 7015 | /* end confdefs.h. */ |
| 7016 | $ac_includes_default |
| 7017 | #include <sys/time.h> |
| 7018 | _ACEOF |
| 7019 | rm -f conftest.$ac_objext |
| 7020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7021 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7022 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7023 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7024 | rm -f conftest.er1 |
| 7025 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7027 | (exit $ac_status); } && |
| 7028 | { ac_try='test -z "$ac_c_werror_flag" |
| 7029 | || test ! -s conftest.err' |
| 7030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7031 | (eval $ac_try) 2>&5 |
| 7032 | ac_status=$? |
| 7033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7034 | (exit $ac_status); }; } && |
| 7035 | { ac_try='test -s conftest.$ac_objext' |
| 7036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7037 | (eval $ac_try) 2>&5 |
| 7038 | ac_status=$? |
| 7039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7040 | (exit $ac_status); }; }; then |
| 7041 | ac_header_compiler=yes |
| 7042 | else |
| 7043 | echo "$as_me: failed program was:" >&5 |
| 7044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7045 | |
| 7046 | ac_header_compiler=no |
| 7047 | fi |
| 7048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7049 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7050 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7051 | |
| 7052 | # Is the header present? |
| 7053 | echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 7054 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6 |
| 7055 | cat >conftest.$ac_ext <<_ACEOF |
| 7056 | /* confdefs.h. */ |
| 7057 | _ACEOF |
| 7058 | cat confdefs.h >>conftest.$ac_ext |
| 7059 | cat >>conftest.$ac_ext <<_ACEOF |
| 7060 | /* end confdefs.h. */ |
| 7061 | #include <sys/time.h> |
| 7062 | _ACEOF |
| 7063 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7064 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7065 | ac_status=$? |
| 7066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7067 | rm -f conftest.er1 |
| 7068 | cat conftest.err >&5 |
| 7069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7070 | (exit $ac_status); } >/dev/null; then |
| 7071 | if test -s conftest.err; then |
| 7072 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7073 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7074 | else |
| 7075 | ac_cpp_err= |
| 7076 | fi |
| 7077 | else |
| 7078 | ac_cpp_err=yes |
| 7079 | fi |
| 7080 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7081 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7082 | else |
| 7083 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7085 | |
| 7086 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7087 | fi |
| 7088 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7089 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7090 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7091 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7092 | # So? What about this header? |
| 7093 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7094 | yes:no: ) |
| 7095 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7096 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7097 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 7098 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 7099 | ac_header_preproc=yes |
| 7100 | ;; |
| 7101 | no:yes:* ) |
| 7102 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 7103 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 7104 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 7105 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 7106 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 7107 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 7108 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7109 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7110 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 7111 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 7112 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 7113 | echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} |
| 7114 | ( |
| 7115 | cat <<\_ASBOX |
| 7116 | ## ------------------------------------ ## |
| 7117 | ## Report this to the pjproject lists. ## |
| 7118 | ## ------------------------------------ ## |
| 7119 | _ASBOX |
| 7120 | ) | |
| 7121 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7122 | ;; |
| 7123 | esac |
| 7124 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7125 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
| 7126 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7128 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7129 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 7130 | fi |
| 7131 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7132 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
| 7133 | |
| 7134 | fi |
| 7135 | if test $ac_cv_header_sys_time_h = yes; then |
| 7136 | cat >>confdefs.h <<\_ACEOF |
| 7137 | #define PJ_HAS_SYS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7138 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7139 | |
| 7140 | fi |
| 7141 | |
| 7142 | |
| 7143 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7144 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 7145 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
| 7146 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7148 | fi |
| 7149 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 7150 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
| 7151 | else |
| 7152 | # Is the header compilable? |
| 7153 | echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 7154 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6 |
| 7155 | cat >conftest.$ac_ext <<_ACEOF |
| 7156 | /* confdefs.h. */ |
| 7157 | _ACEOF |
| 7158 | cat confdefs.h >>conftest.$ac_ext |
| 7159 | cat >>conftest.$ac_ext <<_ACEOF |
| 7160 | /* end confdefs.h. */ |
| 7161 | $ac_includes_default |
| 7162 | #include <sys/timeb.h> |
| 7163 | _ACEOF |
| 7164 | rm -f conftest.$ac_objext |
| 7165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7166 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7167 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7168 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7169 | rm -f conftest.er1 |
| 7170 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7172 | (exit $ac_status); } && |
| 7173 | { ac_try='test -z "$ac_c_werror_flag" |
| 7174 | || test ! -s conftest.err' |
| 7175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7176 | (eval $ac_try) 2>&5 |
| 7177 | ac_status=$? |
| 7178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7179 | (exit $ac_status); }; } && |
| 7180 | { ac_try='test -s conftest.$ac_objext' |
| 7181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7182 | (eval $ac_try) 2>&5 |
| 7183 | ac_status=$? |
| 7184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7185 | (exit $ac_status); }; }; then |
| 7186 | ac_header_compiler=yes |
| 7187 | else |
| 7188 | echo "$as_me: failed program was:" >&5 |
| 7189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7190 | |
| 7191 | ac_header_compiler=no |
| 7192 | fi |
| 7193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7194 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7195 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7196 | |
| 7197 | # Is the header present? |
| 7198 | echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 7199 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6 |
| 7200 | cat >conftest.$ac_ext <<_ACEOF |
| 7201 | /* confdefs.h. */ |
| 7202 | _ACEOF |
| 7203 | cat confdefs.h >>conftest.$ac_ext |
| 7204 | cat >>conftest.$ac_ext <<_ACEOF |
| 7205 | /* end confdefs.h. */ |
| 7206 | #include <sys/timeb.h> |
| 7207 | _ACEOF |
| 7208 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7209 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7210 | ac_status=$? |
| 7211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7212 | rm -f conftest.er1 |
| 7213 | cat conftest.err >&5 |
| 7214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7215 | (exit $ac_status); } >/dev/null; then |
| 7216 | if test -s conftest.err; then |
| 7217 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7218 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7219 | else |
| 7220 | ac_cpp_err= |
| 7221 | fi |
| 7222 | else |
| 7223 | ac_cpp_err=yes |
| 7224 | fi |
| 7225 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7226 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7227 | else |
| 7228 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7230 | |
| 7231 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7232 | fi |
| 7233 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7234 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7235 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7236 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7237 | # So? What about this header? |
| 7238 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7239 | yes:no: ) |
| 7240 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7241 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7242 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 7243 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 7244 | ac_header_preproc=yes |
| 7245 | ;; |
| 7246 | no:yes:* ) |
| 7247 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 7248 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 7249 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 7250 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 7251 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 7252 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 7253 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7254 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7255 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 7256 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 7257 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 7258 | echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} |
| 7259 | ( |
| 7260 | cat <<\_ASBOX |
| 7261 | ## ------------------------------------ ## |
| 7262 | ## Report this to the pjproject lists. ## |
| 7263 | ## ------------------------------------ ## |
| 7264 | _ASBOX |
| 7265 | ) | |
| 7266 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7267 | ;; |
| 7268 | esac |
| 7269 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7270 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
| 7271 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7273 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7274 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 7275 | fi |
| 7276 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 7277 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
| 7278 | |
| 7279 | fi |
| 7280 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 7281 | cat >>confdefs.h <<\_ACEOF |
| 7282 | #define PJ_HAS_SYS_TIMEB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7283 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7284 | |
| 7285 | fi |
| 7286 | |
| 7287 | |
| 7288 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7289 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 7290 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
| 7291 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7293 | fi |
| 7294 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 7295 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
| 7296 | else |
| 7297 | # Is the header compilable? |
| 7298 | echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 7299 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 |
| 7300 | cat >conftest.$ac_ext <<_ACEOF |
| 7301 | /* confdefs.h. */ |
| 7302 | _ACEOF |
| 7303 | cat confdefs.h >>conftest.$ac_ext |
| 7304 | cat >>conftest.$ac_ext <<_ACEOF |
| 7305 | /* end confdefs.h. */ |
| 7306 | $ac_includes_default |
| 7307 | #include <sys/types.h> |
| 7308 | _ACEOF |
| 7309 | rm -f conftest.$ac_objext |
| 7310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7311 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7312 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7313 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7314 | rm -f conftest.er1 |
| 7315 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7317 | (exit $ac_status); } && |
| 7318 | { ac_try='test -z "$ac_c_werror_flag" |
| 7319 | || test ! -s conftest.err' |
| 7320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7321 | (eval $ac_try) 2>&5 |
| 7322 | ac_status=$? |
| 7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7324 | (exit $ac_status); }; } && |
| 7325 | { ac_try='test -s conftest.$ac_objext' |
| 7326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7327 | (eval $ac_try) 2>&5 |
| 7328 | ac_status=$? |
| 7329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7330 | (exit $ac_status); }; }; then |
| 7331 | ac_header_compiler=yes |
| 7332 | else |
| 7333 | echo "$as_me: failed program was:" >&5 |
| 7334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7335 | |
| 7336 | ac_header_compiler=no |
| 7337 | fi |
| 7338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7339 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7340 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7341 | |
| 7342 | # Is the header present? |
| 7343 | echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 7344 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 |
| 7345 | cat >conftest.$ac_ext <<_ACEOF |
| 7346 | /* confdefs.h. */ |
| 7347 | _ACEOF |
| 7348 | cat confdefs.h >>conftest.$ac_ext |
| 7349 | cat >>conftest.$ac_ext <<_ACEOF |
| 7350 | /* end confdefs.h. */ |
| 7351 | #include <sys/types.h> |
| 7352 | _ACEOF |
| 7353 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7354 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7355 | ac_status=$? |
| 7356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7357 | rm -f conftest.er1 |
| 7358 | cat conftest.err >&5 |
| 7359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7360 | (exit $ac_status); } >/dev/null; then |
| 7361 | if test -s conftest.err; then |
| 7362 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7363 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7364 | else |
| 7365 | ac_cpp_err= |
| 7366 | fi |
| 7367 | else |
| 7368 | ac_cpp_err=yes |
| 7369 | fi |
| 7370 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7371 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7372 | else |
| 7373 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7375 | |
| 7376 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7377 | fi |
| 7378 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7379 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7380 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7381 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7382 | # So? What about this header? |
| 7383 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7384 | yes:no: ) |
| 7385 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7386 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7387 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 7388 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 7389 | ac_header_preproc=yes |
| 7390 | ;; |
| 7391 | no:yes:* ) |
| 7392 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 7393 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 7394 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 7395 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 7396 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 7397 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 7398 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7399 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7400 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 7401 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 7402 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 7403 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
| 7404 | ( |
| 7405 | cat <<\_ASBOX |
| 7406 | ## ------------------------------------ ## |
| 7407 | ## Report this to the pjproject lists. ## |
| 7408 | ## ------------------------------------ ## |
| 7409 | _ASBOX |
| 7410 | ) | |
| 7411 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7412 | ;; |
| 7413 | esac |
| 7414 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7415 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
| 7416 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7418 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7419 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 7420 | fi |
| 7421 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 7422 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
| 7423 | |
| 7424 | fi |
| 7425 | if test $ac_cv_header_sys_types_h = yes; then |
| 7426 | cat >>confdefs.h <<\_ACEOF |
| 7427 | #define PJ_HAS_SYS_TYPES_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7428 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7429 | |
| 7430 | fi |
| 7431 | |
| 7432 | |
| 7433 | if test "${ac_cv_header_time_h+set}" = set; then |
| 7434 | echo "$as_me:$LINENO: checking for time.h" >&5 |
| 7435 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
| 7436 | if test "${ac_cv_header_time_h+set}" = set; then |
| 7437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7438 | fi |
| 7439 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 7440 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
| 7441 | else |
| 7442 | # Is the header compilable? |
| 7443 | echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 7444 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6 |
| 7445 | cat >conftest.$ac_ext <<_ACEOF |
| 7446 | /* confdefs.h. */ |
| 7447 | _ACEOF |
| 7448 | cat confdefs.h >>conftest.$ac_ext |
| 7449 | cat >>conftest.$ac_ext <<_ACEOF |
| 7450 | /* end confdefs.h. */ |
| 7451 | $ac_includes_default |
| 7452 | #include <time.h> |
| 7453 | _ACEOF |
| 7454 | rm -f conftest.$ac_objext |
| 7455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7456 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7457 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7458 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7459 | rm -f conftest.er1 |
| 7460 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7462 | (exit $ac_status); } && |
| 7463 | { ac_try='test -z "$ac_c_werror_flag" |
| 7464 | || test ! -s conftest.err' |
| 7465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7466 | (eval $ac_try) 2>&5 |
| 7467 | ac_status=$? |
| 7468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7469 | (exit $ac_status); }; } && |
| 7470 | { ac_try='test -s conftest.$ac_objext' |
| 7471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7472 | (eval $ac_try) 2>&5 |
| 7473 | ac_status=$? |
| 7474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7475 | (exit $ac_status); }; }; then |
| 7476 | ac_header_compiler=yes |
| 7477 | else |
| 7478 | echo "$as_me: failed program was:" >&5 |
| 7479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7480 | |
| 7481 | ac_header_compiler=no |
| 7482 | fi |
| 7483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7484 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7485 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7486 | |
| 7487 | # Is the header present? |
| 7488 | echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 7489 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6 |
| 7490 | cat >conftest.$ac_ext <<_ACEOF |
| 7491 | /* confdefs.h. */ |
| 7492 | _ACEOF |
| 7493 | cat confdefs.h >>conftest.$ac_ext |
| 7494 | cat >>conftest.$ac_ext <<_ACEOF |
| 7495 | /* end confdefs.h. */ |
| 7496 | #include <time.h> |
| 7497 | _ACEOF |
| 7498 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7499 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7500 | ac_status=$? |
| 7501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7502 | rm -f conftest.er1 |
| 7503 | cat conftest.err >&5 |
| 7504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7505 | (exit $ac_status); } >/dev/null; then |
| 7506 | if test -s conftest.err; then |
| 7507 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7508 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7509 | else |
| 7510 | ac_cpp_err= |
| 7511 | fi |
| 7512 | else |
| 7513 | ac_cpp_err=yes |
| 7514 | fi |
| 7515 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7516 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7517 | else |
| 7518 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7520 | |
| 7521 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7522 | fi |
| 7523 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7524 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7525 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7526 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7527 | # So? What about this header? |
| 7528 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7529 | yes:no: ) |
| 7530 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7531 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7532 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 7533 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 7534 | ac_header_preproc=yes |
| 7535 | ;; |
| 7536 | no:yes:* ) |
| 7537 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 7538 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 7539 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 7540 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 7541 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 7542 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 7543 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7544 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7545 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 7546 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 7547 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 7548 | echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} |
| 7549 | ( |
| 7550 | cat <<\_ASBOX |
| 7551 | ## ------------------------------------ ## |
| 7552 | ## Report this to the pjproject lists. ## |
| 7553 | ## ------------------------------------ ## |
| 7554 | _ASBOX |
| 7555 | ) | |
| 7556 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7557 | ;; |
| 7558 | esac |
| 7559 | echo "$as_me:$LINENO: checking for time.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7560 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
| 7561 | if test "${ac_cv_header_time_h+set}" = set; then |
| 7562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7563 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7564 | ac_cv_header_time_h=$ac_header_preproc |
| 7565 | fi |
| 7566 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 7567 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
| 7568 | |
| 7569 | fi |
| 7570 | if test $ac_cv_header_time_h = yes; then |
| 7571 | cat >>confdefs.h <<\_ACEOF |
| 7572 | #define PJ_HAS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7573 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7574 | |
| 7575 | fi |
| 7576 | |
| 7577 | |
| 7578 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 7579 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 7580 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
| 7581 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 7582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7583 | fi |
| 7584 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 7585 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
| 7586 | else |
| 7587 | # Is the header compilable? |
| 7588 | echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 7589 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6 |
| 7590 | cat >conftest.$ac_ext <<_ACEOF |
| 7591 | /* confdefs.h. */ |
| 7592 | _ACEOF |
| 7593 | cat confdefs.h >>conftest.$ac_ext |
| 7594 | cat >>conftest.$ac_ext <<_ACEOF |
| 7595 | /* end confdefs.h. */ |
| 7596 | $ac_includes_default |
| 7597 | #include <unistd.h> |
| 7598 | _ACEOF |
| 7599 | rm -f conftest.$ac_objext |
| 7600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7601 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7602 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7603 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7604 | rm -f conftest.er1 |
| 7605 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7607 | (exit $ac_status); } && |
| 7608 | { ac_try='test -z "$ac_c_werror_flag" |
| 7609 | || test ! -s conftest.err' |
| 7610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7611 | (eval $ac_try) 2>&5 |
| 7612 | ac_status=$? |
| 7613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7614 | (exit $ac_status); }; } && |
| 7615 | { ac_try='test -s conftest.$ac_objext' |
| 7616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7617 | (eval $ac_try) 2>&5 |
| 7618 | ac_status=$? |
| 7619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7620 | (exit $ac_status); }; }; then |
| 7621 | ac_header_compiler=yes |
| 7622 | else |
| 7623 | echo "$as_me: failed program was:" >&5 |
| 7624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7625 | |
| 7626 | ac_header_compiler=no |
| 7627 | fi |
| 7628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7629 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7630 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7631 | |
| 7632 | # Is the header present? |
| 7633 | echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 7634 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6 |
| 7635 | cat >conftest.$ac_ext <<_ACEOF |
| 7636 | /* confdefs.h. */ |
| 7637 | _ACEOF |
| 7638 | cat confdefs.h >>conftest.$ac_ext |
| 7639 | cat >>conftest.$ac_ext <<_ACEOF |
| 7640 | /* end confdefs.h. */ |
| 7641 | #include <unistd.h> |
| 7642 | _ACEOF |
| 7643 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7644 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7645 | ac_status=$? |
| 7646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7647 | rm -f conftest.er1 |
| 7648 | cat conftest.err >&5 |
| 7649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7650 | (exit $ac_status); } >/dev/null; then |
| 7651 | if test -s conftest.err; then |
| 7652 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7653 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7654 | else |
| 7655 | ac_cpp_err= |
| 7656 | fi |
| 7657 | else |
| 7658 | ac_cpp_err=yes |
| 7659 | fi |
| 7660 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7661 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7662 | else |
| 7663 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7665 | |
| 7666 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7667 | fi |
| 7668 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7669 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7670 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7671 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7672 | # So? What about this header? |
| 7673 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7674 | yes:no: ) |
| 7675 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7676 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7677 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 7678 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 7679 | ac_header_preproc=yes |
| 7680 | ;; |
| 7681 | no:yes:* ) |
| 7682 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 7683 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 7684 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 7685 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 7686 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 7687 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 7688 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7689 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7690 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 7691 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 7692 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 7693 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} |
| 7694 | ( |
| 7695 | cat <<\_ASBOX |
| 7696 | ## ------------------------------------ ## |
| 7697 | ## Report this to the pjproject lists. ## |
| 7698 | ## ------------------------------------ ## |
| 7699 | _ASBOX |
| 7700 | ) | |
| 7701 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7702 | ;; |
| 7703 | esac |
| 7704 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7705 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
| 7706 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 7707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7708 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7709 | ac_cv_header_unistd_h=$ac_header_preproc |
| 7710 | fi |
| 7711 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 7712 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
| 7713 | |
| 7714 | fi |
| 7715 | if test $ac_cv_header_unistd_h = yes; then |
| 7716 | cat >>confdefs.h <<\_ACEOF |
| 7717 | #define PJ_HAS_UNISTD_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7718 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7719 | |
| 7720 | fi |
| 7721 | |
| 7722 | |
| 7723 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 7724 | echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 7725 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
| 7726 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 7727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7728 | fi |
| 7729 | echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 7730 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
| 7731 | else |
| 7732 | # Is the header compilable? |
| 7733 | echo "$as_me:$LINENO: checking mswsock.h usability" >&5 |
| 7734 | echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6 |
| 7735 | cat >conftest.$ac_ext <<_ACEOF |
| 7736 | /* confdefs.h. */ |
| 7737 | _ACEOF |
| 7738 | cat confdefs.h >>conftest.$ac_ext |
| 7739 | cat >>conftest.$ac_ext <<_ACEOF |
| 7740 | /* end confdefs.h. */ |
| 7741 | $ac_includes_default |
| 7742 | #include <mswsock.h> |
| 7743 | _ACEOF |
| 7744 | rm -f conftest.$ac_objext |
| 7745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7746 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7747 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7748 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7749 | rm -f conftest.er1 |
| 7750 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7752 | (exit $ac_status); } && |
| 7753 | { ac_try='test -z "$ac_c_werror_flag" |
| 7754 | || test ! -s conftest.err' |
| 7755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7756 | (eval $ac_try) 2>&5 |
| 7757 | ac_status=$? |
| 7758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7759 | (exit $ac_status); }; } && |
| 7760 | { ac_try='test -s conftest.$ac_objext' |
| 7761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7762 | (eval $ac_try) 2>&5 |
| 7763 | ac_status=$? |
| 7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7765 | (exit $ac_status); }; }; then |
| 7766 | ac_header_compiler=yes |
| 7767 | else |
| 7768 | echo "$as_me: failed program was:" >&5 |
| 7769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7770 | |
| 7771 | ac_header_compiler=no |
| 7772 | fi |
| 7773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7774 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7775 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7776 | |
| 7777 | # Is the header present? |
| 7778 | echo "$as_me:$LINENO: checking mswsock.h presence" >&5 |
| 7779 | echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6 |
| 7780 | cat >conftest.$ac_ext <<_ACEOF |
| 7781 | /* confdefs.h. */ |
| 7782 | _ACEOF |
| 7783 | cat confdefs.h >>conftest.$ac_ext |
| 7784 | cat >>conftest.$ac_ext <<_ACEOF |
| 7785 | /* end confdefs.h. */ |
| 7786 | #include <mswsock.h> |
| 7787 | _ACEOF |
| 7788 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7789 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7790 | ac_status=$? |
| 7791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7792 | rm -f conftest.er1 |
| 7793 | cat conftest.err >&5 |
| 7794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7795 | (exit $ac_status); } >/dev/null; then |
| 7796 | if test -s conftest.err; then |
| 7797 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7798 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7799 | else |
| 7800 | ac_cpp_err= |
| 7801 | fi |
| 7802 | else |
| 7803 | ac_cpp_err=yes |
| 7804 | fi |
| 7805 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7806 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7807 | else |
| 7808 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7810 | |
| 7811 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7812 | fi |
| 7813 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7814 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7815 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7816 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7817 | # So? What about this header? |
| 7818 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7819 | yes:no: ) |
| 7820 | { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7821 | echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7822 | { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5 |
| 7823 | echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;} |
| 7824 | ac_header_preproc=yes |
| 7825 | ;; |
| 7826 | no:yes:* ) |
| 7827 | { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5 |
| 7828 | echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;} |
| 7829 | { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5 |
| 7830 | echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;} |
| 7831 | { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5 |
| 7832 | echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;} |
| 7833 | { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7834 | echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7835 | { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5 |
| 7836 | echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;} |
| 7837 | { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5 |
| 7838 | echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;} |
| 7839 | ( |
| 7840 | cat <<\_ASBOX |
| 7841 | ## ------------------------------------ ## |
| 7842 | ## Report this to the pjproject lists. ## |
| 7843 | ## ------------------------------------ ## |
| 7844 | _ASBOX |
| 7845 | ) | |
| 7846 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7847 | ;; |
| 7848 | esac |
| 7849 | echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7850 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
| 7851 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 7852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7853 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7854 | ac_cv_header_mswsock_h=$ac_header_preproc |
| 7855 | fi |
| 7856 | echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 7857 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
| 7858 | |
| 7859 | fi |
| 7860 | if test $ac_cv_header_mswsock_h = yes; then |
| 7861 | cat >>confdefs.h <<\_ACEOF |
| 7862 | #define PJ_HAS_MSWSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7863 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7864 | |
| 7865 | fi |
| 7866 | |
| 7867 | |
| 7868 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 7869 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 7870 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
| 7871 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 7872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7873 | fi |
| 7874 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 7875 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
| 7876 | else |
| 7877 | # Is the header compilable? |
| 7878 | echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 7879 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6 |
| 7880 | cat >conftest.$ac_ext <<_ACEOF |
| 7881 | /* confdefs.h. */ |
| 7882 | _ACEOF |
| 7883 | cat confdefs.h >>conftest.$ac_ext |
| 7884 | cat >>conftest.$ac_ext <<_ACEOF |
| 7885 | /* end confdefs.h. */ |
| 7886 | $ac_includes_default |
| 7887 | #include <winsock.h> |
| 7888 | _ACEOF |
| 7889 | rm -f conftest.$ac_objext |
| 7890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7891 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7892 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7893 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7894 | rm -f conftest.er1 |
| 7895 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7897 | (exit $ac_status); } && |
| 7898 | { ac_try='test -z "$ac_c_werror_flag" |
| 7899 | || test ! -s conftest.err' |
| 7900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7901 | (eval $ac_try) 2>&5 |
| 7902 | ac_status=$? |
| 7903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7904 | (exit $ac_status); }; } && |
| 7905 | { ac_try='test -s conftest.$ac_objext' |
| 7906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7907 | (eval $ac_try) 2>&5 |
| 7908 | ac_status=$? |
| 7909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7910 | (exit $ac_status); }; }; then |
| 7911 | ac_header_compiler=yes |
| 7912 | else |
| 7913 | echo "$as_me: failed program was:" >&5 |
| 7914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7915 | |
| 7916 | ac_header_compiler=no |
| 7917 | fi |
| 7918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7919 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7920 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7921 | |
| 7922 | # Is the header present? |
| 7923 | echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 7924 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6 |
| 7925 | cat >conftest.$ac_ext <<_ACEOF |
| 7926 | /* confdefs.h. */ |
| 7927 | _ACEOF |
| 7928 | cat confdefs.h >>conftest.$ac_ext |
| 7929 | cat >>conftest.$ac_ext <<_ACEOF |
| 7930 | /* end confdefs.h. */ |
| 7931 | #include <winsock.h> |
| 7932 | _ACEOF |
| 7933 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7934 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7935 | ac_status=$? |
| 7936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7937 | rm -f conftest.er1 |
| 7938 | cat conftest.err >&5 |
| 7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7940 | (exit $ac_status); } >/dev/null; then |
| 7941 | if test -s conftest.err; then |
| 7942 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7943 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7944 | else |
| 7945 | ac_cpp_err= |
| 7946 | fi |
| 7947 | else |
| 7948 | ac_cpp_err=yes |
| 7949 | fi |
| 7950 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7951 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7952 | else |
| 7953 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7955 | |
| 7956 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7957 | fi |
| 7958 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7959 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7960 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7961 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7962 | # So? What about this header? |
| 7963 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7964 | yes:no: ) |
| 7965 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7966 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7967 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 7968 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 7969 | ac_header_preproc=yes |
| 7970 | ;; |
| 7971 | no:yes:* ) |
| 7972 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 7973 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 7974 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 7975 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 7976 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 7977 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 7978 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7979 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7980 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 7981 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 7982 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 7983 | echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} |
| 7984 | ( |
| 7985 | cat <<\_ASBOX |
| 7986 | ## ------------------------------------ ## |
| 7987 | ## Report this to the pjproject lists. ## |
| 7988 | ## ------------------------------------ ## |
| 7989 | _ASBOX |
| 7990 | ) | |
| 7991 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7992 | ;; |
| 7993 | esac |
| 7994 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7995 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
| 7996 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 7997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7998 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7999 | ac_cv_header_winsock_h=$ac_header_preproc |
| 8000 | fi |
| 8001 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8002 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
| 8003 | |
| 8004 | fi |
| 8005 | if test $ac_cv_header_winsock_h = yes; then |
| 8006 | cat >>confdefs.h <<\_ACEOF |
| 8007 | #define PJ_HAS_WINSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8008 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8009 | |
| 8010 | fi |
| 8011 | |
| 8012 | |
| 8013 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8014 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8015 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
| 8016 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8018 | fi |
| 8019 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8020 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
| 8021 | else |
| 8022 | # Is the header compilable? |
| 8023 | echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 8024 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6 |
| 8025 | cat >conftest.$ac_ext <<_ACEOF |
| 8026 | /* confdefs.h. */ |
| 8027 | _ACEOF |
| 8028 | cat confdefs.h >>conftest.$ac_ext |
| 8029 | cat >>conftest.$ac_ext <<_ACEOF |
| 8030 | /* end confdefs.h. */ |
| 8031 | $ac_includes_default |
| 8032 | #include <winsock2.h> |
| 8033 | _ACEOF |
| 8034 | rm -f conftest.$ac_objext |
| 8035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8036 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8037 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8038 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8039 | rm -f conftest.er1 |
| 8040 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8042 | (exit $ac_status); } && |
| 8043 | { ac_try='test -z "$ac_c_werror_flag" |
| 8044 | || test ! -s conftest.err' |
| 8045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8046 | (eval $ac_try) 2>&5 |
| 8047 | ac_status=$? |
| 8048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8049 | (exit $ac_status); }; } && |
| 8050 | { ac_try='test -s conftest.$ac_objext' |
| 8051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8052 | (eval $ac_try) 2>&5 |
| 8053 | ac_status=$? |
| 8054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8055 | (exit $ac_status); }; }; then |
| 8056 | ac_header_compiler=yes |
| 8057 | else |
| 8058 | echo "$as_me: failed program was:" >&5 |
| 8059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8060 | |
| 8061 | ac_header_compiler=no |
| 8062 | fi |
| 8063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8064 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8065 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8066 | |
| 8067 | # Is the header present? |
| 8068 | echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 8069 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6 |
| 8070 | cat >conftest.$ac_ext <<_ACEOF |
| 8071 | /* confdefs.h. */ |
| 8072 | _ACEOF |
| 8073 | cat confdefs.h >>conftest.$ac_ext |
| 8074 | cat >>conftest.$ac_ext <<_ACEOF |
| 8075 | /* end confdefs.h. */ |
| 8076 | #include <winsock2.h> |
| 8077 | _ACEOF |
| 8078 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8079 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8080 | ac_status=$? |
| 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); } >/dev/null; then |
| 8086 | if test -s conftest.err; then |
| 8087 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8088 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8089 | else |
| 8090 | ac_cpp_err= |
| 8091 | fi |
| 8092 | else |
| 8093 | ac_cpp_err=yes |
| 8094 | fi |
| 8095 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8096 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8097 | else |
| 8098 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8100 | |
| 8101 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8102 | fi |
| 8103 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8104 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8105 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8106 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8107 | # So? What about this header? |
| 8108 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8109 | yes:no: ) |
| 8110 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8111 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8112 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 8113 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 8114 | ac_header_preproc=yes |
| 8115 | ;; |
| 8116 | no:yes:* ) |
| 8117 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 8118 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 8119 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 8120 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 8121 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 8122 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 8123 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8124 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8125 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 8126 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 8127 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 8128 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} |
| 8129 | ( |
| 8130 | cat <<\_ASBOX |
| 8131 | ## ------------------------------------ ## |
| 8132 | ## Report this to the pjproject lists. ## |
| 8133 | ## ------------------------------------ ## |
| 8134 | _ASBOX |
| 8135 | ) | |
| 8136 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8137 | ;; |
| 8138 | esac |
| 8139 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8140 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
| 8141 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8143 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8144 | ac_cv_header_winsock2_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8145 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8146 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8147 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8148 | |
| 8149 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8150 | if test $ac_cv_header_winsock2_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8151 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8152 | #define PJ_HAS_WINSOCK2_H 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8153 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8154 | |
| 8155 | fi |
| 8156 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8157 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame^] | 8158 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 8159 | echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 8160 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 |
| 8161 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 8162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8163 | fi |
| 8164 | echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 8165 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 |
| 8166 | else |
| 8167 | # Is the header compilable? |
| 8168 | echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 |
| 8169 | echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6 |
| 8170 | cat >conftest.$ac_ext <<_ACEOF |
| 8171 | /* confdefs.h. */ |
| 8172 | _ACEOF |
| 8173 | cat confdefs.h >>conftest.$ac_ext |
| 8174 | cat >>conftest.$ac_ext <<_ACEOF |
| 8175 | /* end confdefs.h. */ |
| 8176 | $ac_includes_default |
| 8177 | #include <uuid/uuid.h> |
| 8178 | _ACEOF |
| 8179 | rm -f conftest.$ac_objext |
| 8180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8181 | (eval $ac_compile) 2>conftest.er1 |
| 8182 | ac_status=$? |
| 8183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8184 | rm -f conftest.er1 |
| 8185 | cat conftest.err >&5 |
| 8186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8187 | (exit $ac_status); } && |
| 8188 | { ac_try='test -z "$ac_c_werror_flag" |
| 8189 | || test ! -s conftest.err' |
| 8190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8191 | (eval $ac_try) 2>&5 |
| 8192 | ac_status=$? |
| 8193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8194 | (exit $ac_status); }; } && |
| 8195 | { ac_try='test -s conftest.$ac_objext' |
| 8196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8197 | (eval $ac_try) 2>&5 |
| 8198 | ac_status=$? |
| 8199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8200 | (exit $ac_status); }; }; then |
| 8201 | ac_header_compiler=yes |
| 8202 | else |
| 8203 | echo "$as_me: failed program was:" >&5 |
| 8204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8205 | |
| 8206 | ac_header_compiler=no |
| 8207 | fi |
| 8208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8209 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8210 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8211 | |
| 8212 | # Is the header present? |
| 8213 | echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 |
| 8214 | echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6 |
| 8215 | cat >conftest.$ac_ext <<_ACEOF |
| 8216 | /* confdefs.h. */ |
| 8217 | _ACEOF |
| 8218 | cat confdefs.h >>conftest.$ac_ext |
| 8219 | cat >>conftest.$ac_ext <<_ACEOF |
| 8220 | /* end confdefs.h. */ |
| 8221 | #include <uuid/uuid.h> |
| 8222 | _ACEOF |
| 8223 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8224 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8225 | ac_status=$? |
| 8226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8227 | rm -f conftest.er1 |
| 8228 | cat conftest.err >&5 |
| 8229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8230 | (exit $ac_status); } >/dev/null; then |
| 8231 | if test -s conftest.err; then |
| 8232 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8233 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8234 | else |
| 8235 | ac_cpp_err= |
| 8236 | fi |
| 8237 | else |
| 8238 | ac_cpp_err=yes |
| 8239 | fi |
| 8240 | if test -z "$ac_cpp_err"; then |
| 8241 | ac_header_preproc=yes |
| 8242 | else |
| 8243 | echo "$as_me: failed program was:" >&5 |
| 8244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8245 | |
| 8246 | ac_header_preproc=no |
| 8247 | fi |
| 8248 | rm -f conftest.err conftest.$ac_ext |
| 8249 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8250 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8251 | |
| 8252 | # So? What about this header? |
| 8253 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8254 | yes:no: ) |
| 8255 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8256 | echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8257 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 |
| 8258 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} |
| 8259 | ac_header_preproc=yes |
| 8260 | ;; |
| 8261 | no:yes:* ) |
| 8262 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 |
| 8263 | echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} |
| 8264 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 |
| 8265 | echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} |
| 8266 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 |
| 8267 | echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} |
| 8268 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8269 | echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8270 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 |
| 8271 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} |
| 8272 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 |
| 8273 | echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} |
| 8274 | ( |
| 8275 | cat <<\_ASBOX |
| 8276 | ## ------------------------------------ ## |
| 8277 | ## Report this to the pjproject lists. ## |
| 8278 | ## ------------------------------------ ## |
| 8279 | _ASBOX |
| 8280 | ) | |
| 8281 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8282 | ;; |
| 8283 | esac |
| 8284 | echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 8285 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 |
| 8286 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 8287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8288 | else |
| 8289 | ac_cv_header_uuid_uuid_h=$ac_header_preproc |
| 8290 | fi |
| 8291 | echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 8292 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 |
| 8293 | |
| 8294 | fi |
| 8295 | if test $ac_cv_header_uuid_uuid_h = yes; then |
| 8296 | ac_has_uuid_h=1 |
| 8297 | fi |
| 8298 | |
| 8299 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8300 | |
| 8301 | echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8302 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8303 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8304 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8305 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8306 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8307 | |
| 8308 | 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] | 8309 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8310 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8311 | #define PJ_HAS_ERRNO_VAR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8312 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8313 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8314 | |
| 8315 | 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] | 8316 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8317 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8318 | #define PJ_HAS_HIGH_RES_TIMER 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8319 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8320 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8321 | |
| 8322 | echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8323 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8324 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8325 | #define PJ_HAS_MALLOC 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8326 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8327 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8328 | |
| 8329 | 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] | 8330 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8331 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8332 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8333 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8334 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8335 | |
| 8336 | 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] | 8337 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8338 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8339 | #define PJ_ATOMIC_VALUE_TYPE long |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8340 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8341 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8342 | |
| 8343 | echo "$as_me:$LINENO: checking if inet_aton is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8344 | echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6 |
| 8345 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8346 | /* confdefs.h. */ |
| 8347 | _ACEOF |
| 8348 | cat confdefs.h >>conftest.$ac_ext |
| 8349 | cat >>conftest.$ac_ext <<_ACEOF |
| 8350 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8351 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8352 | int |
| 8353 | main () |
| 8354 | { |
| 8355 | inet_aton(0, 0); |
| 8356 | ; |
| 8357 | return 0; |
| 8358 | } |
| 8359 | _ACEOF |
| 8360 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8362 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8363 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8365 | rm -f conftest.er1 |
| 8366 | cat conftest.err >&5 |
| 8367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8368 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8369 | { ac_try='test -z "$ac_c_werror_flag" |
| 8370 | || test ! -s conftest.err' |
| 8371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8372 | (eval $ac_try) 2>&5 |
| 8373 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8375 | (exit $ac_status); }; } && |
| 8376 | { ac_try='test -s conftest.$ac_objext' |
| 8377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8378 | (eval $ac_try) 2>&5 |
| 8379 | ac_status=$? |
| 8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8381 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8382 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8383 | #define PJ_SOCK_HAS_INET_ATON 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8384 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8385 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8386 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8387 | echo "${ECHO_T}yes" >&6 |
| 8388 | else |
| 8389 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8391 | |
| 8392 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8393 | echo "${ECHO_T}no" >&6 |
| 8394 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8396 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8397 | 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] | 8398 | echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6 |
| 8399 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8400 | /* confdefs.h. */ |
| 8401 | _ACEOF |
| 8402 | cat confdefs.h >>conftest.$ac_ext |
| 8403 | cat >>conftest.$ac_ext <<_ACEOF |
| 8404 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8405 | #include <sys/types.h> |
| 8406 | #include <sys/socket.h> |
| 8407 | #include <netinet/in.h> |
| 8408 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8409 | int |
| 8410 | main () |
| 8411 | { |
| 8412 | struct sockaddr_in a; a.sin_len=0; |
| 8413 | ; |
| 8414 | return 0; |
| 8415 | } |
| 8416 | _ACEOF |
| 8417 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8419 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8420 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8422 | rm -f conftest.er1 |
| 8423 | cat conftest.err >&5 |
| 8424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8425 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8426 | { ac_try='test -z "$ac_c_werror_flag" |
| 8427 | || test ! -s conftest.err' |
| 8428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8429 | (eval $ac_try) 2>&5 |
| 8430 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8432 | (exit $ac_status); }; } && |
| 8433 | { ac_try='test -s conftest.$ac_objext' |
| 8434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8435 | (eval $ac_try) 2>&5 |
| 8436 | ac_status=$? |
| 8437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8438 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8439 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8440 | #define PJ_SOCKADDR_HAS_LEN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8441 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8442 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8443 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8444 | echo "${ECHO_T}yes" >&6 |
| 8445 | else |
| 8446 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8448 | |
| 8449 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8450 | echo "${ECHO_T}no" >&6 |
| 8451 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8453 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8454 | echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8455 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6 |
| 8456 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8457 | /* confdefs.h. */ |
| 8458 | _ACEOF |
| 8459 | cat confdefs.h >>conftest.$ac_ext |
| 8460 | cat >>conftest.$ac_ext <<_ACEOF |
| 8461 | /* end confdefs.h. */ |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8462 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8463 | int |
| 8464 | main () |
| 8465 | { |
| 8466 | socklen_t xxx = 0; |
| 8467 | ; |
| 8468 | return 0; |
| 8469 | } |
| 8470 | _ACEOF |
| 8471 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8473 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8474 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8476 | rm -f conftest.er1 |
| 8477 | cat conftest.err >&5 |
| 8478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8479 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8480 | { ac_try='test -z "$ac_c_werror_flag" |
| 8481 | || test ! -s conftest.err' |
| 8482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8483 | (eval $ac_try) 2>&5 |
| 8484 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8486 | (exit $ac_status); }; } && |
| 8487 | { ac_try='test -s conftest.$ac_objext' |
| 8488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8489 | (eval $ac_try) 2>&5 |
| 8490 | ac_status=$? |
| 8491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8492 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8493 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8494 | #define PJ_HAS_SOCKLEN_T 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8495 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8496 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8497 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8498 | echo "${ECHO_T}yes" >&6 |
| 8499 | else |
| 8500 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8502 | |
| 8503 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8504 | echo "${ECHO_T}no" >&6 |
| 8505 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8507 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8508 | echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8509 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8510 | case $target in |
| 8511 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8512 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8513 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8514 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8515 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8516 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8517 | echo "${ECHO_T}yes" >&6 |
| 8518 | ;; |
| 8519 | *) |
| 8520 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8521 | /* confdefs.h. */ |
| 8522 | _ACEOF |
| 8523 | cat confdefs.h >>conftest.$ac_ext |
| 8524 | cat >>conftest.$ac_ext <<_ACEOF |
| 8525 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8526 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8527 | #include <sys/socket.h> |
| 8528 | #include <netinet/in.h> |
| 8529 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8530 | int |
| 8531 | main () |
| 8532 | { |
| 8533 | int i=SO_ERROR; |
| 8534 | ; |
| 8535 | return 0; |
| 8536 | } |
| 8537 | _ACEOF |
| 8538 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8540 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8541 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8543 | rm -f conftest.er1 |
| 8544 | cat conftest.err >&5 |
| 8545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8546 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8547 | { ac_try='test -z "$ac_c_werror_flag" |
| 8548 | || test ! -s conftest.err' |
| 8549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8550 | (eval $ac_try) 2>&5 |
| 8551 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8553 | (exit $ac_status); }; } && |
| 8554 | { ac_try='test -s conftest.$ac_objext' |
| 8555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8556 | (eval $ac_try) 2>&5 |
| 8557 | ac_status=$? |
| 8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8559 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8560 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8561 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8562 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8563 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8564 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8565 | echo "${ECHO_T}yes" >&6 |
| 8566 | else |
| 8567 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8569 | |
| 8570 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8571 | echo "${ECHO_T}no" >&6 |
| 8572 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8574 | ;; |
| 8575 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8576 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8577 | |
| 8578 | echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8579 | echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6 |
| 8580 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8581 | /* confdefs.h. */ |
| 8582 | _ACEOF |
| 8583 | cat confdefs.h >>conftest.$ac_ext |
| 8584 | cat >>conftest.$ac_ext <<_ACEOF |
| 8585 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8586 | #include <pthread.h> |
| 8587 | int |
| 8588 | main () |
| 8589 | { |
| 8590 | pthread_rwlock_t *x; |
| 8591 | ; |
| 8592 | return 0; |
| 8593 | } |
| 8594 | _ACEOF |
| 8595 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8597 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8598 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8600 | rm -f conftest.er1 |
| 8601 | cat conftest.err >&5 |
| 8602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8603 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8604 | { ac_try='test -z "$ac_c_werror_flag" |
| 8605 | || test ! -s conftest.err' |
| 8606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8607 | (eval $ac_try) 2>&5 |
| 8608 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8610 | (exit $ac_status); }; } && |
| 8611 | { ac_try='test -s conftest.$ac_objext' |
| 8612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8613 | (eval $ac_try) 2>&5 |
| 8614 | ac_status=$? |
| 8615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8616 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8617 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8618 | #define PJ_EMULATE_RWMUTEX 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8619 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8620 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8621 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8622 | echo "${ECHO_T}yes" >&6 |
| 8623 | else |
| 8624 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8625 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8626 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8627 | cat >>confdefs.h <<\_ACEOF |
| 8628 | #define PJ_EMULATE_RWMUTEX 1 |
| 8629 | _ACEOF |
| 8630 | |
| 8631 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8632 | echo "${ECHO_T}no" >&6 |
| 8633 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8635 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8636 | |
| 8637 | case $target in |
| 8638 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | ad086e0 | 2007-02-16 10:58:18 +0000 | [diff] [blame] | 8639 | 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] | 8640 | ;; |
| 8641 | *) |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame^] | 8642 | 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 ioqueue_select.o" |
| 8643 | # UUID |
| 8644 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 8645 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 8646 | else |
| 8647 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 8648 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8649 | ;; |
| 8650 | esac |
| 8651 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8652 | |
| 8653 | |
| 8654 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame^] | 8655 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8656 | # Check whether --enable-sound or --disable-sound was given. |
| 8657 | if test "${enable_sound+set}" = set; then |
| 8658 | enableval="$enable_sound" |
| 8659 | if test "$enable_sound" = "no"; then |
| 8660 | ac_pjmedia_snd=null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8661 | echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8662 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6 |
| 8663 | fi |
| 8664 | |
| 8665 | fi; |
| 8666 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8667 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 8668 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 8669 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 8670 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6 |
| 8671 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 8672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8673 | fi |
| 8674 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 8675 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6 |
| 8676 | else |
| 8677 | # Is the header compilable? |
| 8678 | echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 |
| 8679 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6 |
| 8680 | cat >conftest.$ac_ext <<_ACEOF |
| 8681 | /* confdefs.h. */ |
| 8682 | _ACEOF |
| 8683 | cat confdefs.h >>conftest.$ac_ext |
| 8684 | cat >>conftest.$ac_ext <<_ACEOF |
| 8685 | /* end confdefs.h. */ |
| 8686 | $ac_includes_default |
| 8687 | #include <sys/soundcard.h> |
| 8688 | _ACEOF |
| 8689 | rm -f conftest.$ac_objext |
| 8690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8691 | (eval $ac_compile) 2>conftest.er1 |
| 8692 | ac_status=$? |
| 8693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8694 | rm -f conftest.er1 |
| 8695 | cat conftest.err >&5 |
| 8696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8697 | (exit $ac_status); } && |
| 8698 | { ac_try='test -z "$ac_c_werror_flag" |
| 8699 | || test ! -s conftest.err' |
| 8700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8701 | (eval $ac_try) 2>&5 |
| 8702 | ac_status=$? |
| 8703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8704 | (exit $ac_status); }; } && |
| 8705 | { ac_try='test -s conftest.$ac_objext' |
| 8706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8707 | (eval $ac_try) 2>&5 |
| 8708 | ac_status=$? |
| 8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8710 | (exit $ac_status); }; }; then |
| 8711 | ac_header_compiler=yes |
| 8712 | else |
| 8713 | echo "$as_me: failed program was:" >&5 |
| 8714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8715 | |
| 8716 | ac_header_compiler=no |
| 8717 | fi |
| 8718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8719 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8720 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8721 | |
| 8722 | # Is the header present? |
| 8723 | echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 |
| 8724 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6 |
| 8725 | cat >conftest.$ac_ext <<_ACEOF |
| 8726 | /* confdefs.h. */ |
| 8727 | _ACEOF |
| 8728 | cat confdefs.h >>conftest.$ac_ext |
| 8729 | cat >>conftest.$ac_ext <<_ACEOF |
| 8730 | /* end confdefs.h. */ |
| 8731 | #include <sys/soundcard.h> |
| 8732 | _ACEOF |
| 8733 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8734 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8735 | ac_status=$? |
| 8736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8737 | rm -f conftest.er1 |
| 8738 | cat conftest.err >&5 |
| 8739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8740 | (exit $ac_status); } >/dev/null; then |
| 8741 | if test -s conftest.err; then |
| 8742 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8743 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8744 | else |
| 8745 | ac_cpp_err= |
| 8746 | fi |
| 8747 | else |
| 8748 | ac_cpp_err=yes |
| 8749 | fi |
| 8750 | if test -z "$ac_cpp_err"; then |
| 8751 | ac_header_preproc=yes |
| 8752 | else |
| 8753 | echo "$as_me: failed program was:" >&5 |
| 8754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8755 | |
| 8756 | ac_header_preproc=no |
| 8757 | fi |
| 8758 | rm -f conftest.err conftest.$ac_ext |
| 8759 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8760 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8761 | |
| 8762 | # So? What about this header? |
| 8763 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8764 | yes:no: ) |
| 8765 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8766 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8767 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 |
| 8768 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} |
| 8769 | ac_header_preproc=yes |
| 8770 | ;; |
| 8771 | no:yes:* ) |
| 8772 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 |
| 8773 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} |
| 8774 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 |
| 8775 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 8776 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 |
| 8777 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} |
| 8778 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8779 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8780 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 8781 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 8782 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 8783 | echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} |
| 8784 | ( |
| 8785 | cat <<\_ASBOX |
| 8786 | ## ------------------------------------ ## |
| 8787 | ## Report this to the pjproject lists. ## |
| 8788 | ## ------------------------------------ ## |
| 8789 | _ASBOX |
| 8790 | ) | |
| 8791 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8792 | ;; |
| 8793 | esac |
| 8794 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 8795 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6 |
| 8796 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 8797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8798 | else |
| 8799 | ac_cv_header_sys_soundcard_h=$ac_header_preproc |
| 8800 | fi |
| 8801 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 8802 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6 |
| 8803 | |
| 8804 | fi |
| 8805 | if test $ac_cv_header_sys_soundcard_h = yes; then |
| 8806 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 8807 | fi |
| 8808 | |
| 8809 | |
| 8810 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 8811 | echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 8812 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6 |
| 8813 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 8814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8815 | fi |
| 8816 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 8817 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6 |
| 8818 | else |
| 8819 | # Is the header compilable? |
| 8820 | echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 |
| 8821 | echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6 |
| 8822 | cat >conftest.$ac_ext <<_ACEOF |
| 8823 | /* confdefs.h. */ |
| 8824 | _ACEOF |
| 8825 | cat confdefs.h >>conftest.$ac_ext |
| 8826 | cat >>conftest.$ac_ext <<_ACEOF |
| 8827 | /* end confdefs.h. */ |
| 8828 | $ac_includes_default |
| 8829 | #include <linux/soundcard.h> |
| 8830 | _ACEOF |
| 8831 | rm -f conftest.$ac_objext |
| 8832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8833 | (eval $ac_compile) 2>conftest.er1 |
| 8834 | ac_status=$? |
| 8835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8836 | rm -f conftest.er1 |
| 8837 | cat conftest.err >&5 |
| 8838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8839 | (exit $ac_status); } && |
| 8840 | { ac_try='test -z "$ac_c_werror_flag" |
| 8841 | || test ! -s conftest.err' |
| 8842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8843 | (eval $ac_try) 2>&5 |
| 8844 | ac_status=$? |
| 8845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8846 | (exit $ac_status); }; } && |
| 8847 | { ac_try='test -s conftest.$ac_objext' |
| 8848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8849 | (eval $ac_try) 2>&5 |
| 8850 | ac_status=$? |
| 8851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8852 | (exit $ac_status); }; }; then |
| 8853 | ac_header_compiler=yes |
| 8854 | else |
| 8855 | echo "$as_me: failed program was:" >&5 |
| 8856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8857 | |
| 8858 | ac_header_compiler=no |
| 8859 | fi |
| 8860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8861 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8862 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8863 | |
| 8864 | # Is the header present? |
| 8865 | echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 |
| 8866 | echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6 |
| 8867 | cat >conftest.$ac_ext <<_ACEOF |
| 8868 | /* confdefs.h. */ |
| 8869 | _ACEOF |
| 8870 | cat confdefs.h >>conftest.$ac_ext |
| 8871 | cat >>conftest.$ac_ext <<_ACEOF |
| 8872 | /* end confdefs.h. */ |
| 8873 | #include <linux/soundcard.h> |
| 8874 | _ACEOF |
| 8875 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8876 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8877 | ac_status=$? |
| 8878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8879 | rm -f conftest.er1 |
| 8880 | cat conftest.err >&5 |
| 8881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8882 | (exit $ac_status); } >/dev/null; then |
| 8883 | if test -s conftest.err; then |
| 8884 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8885 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8886 | else |
| 8887 | ac_cpp_err= |
| 8888 | fi |
| 8889 | else |
| 8890 | ac_cpp_err=yes |
| 8891 | fi |
| 8892 | if test -z "$ac_cpp_err"; then |
| 8893 | ac_header_preproc=yes |
| 8894 | else |
| 8895 | echo "$as_me: failed program was:" >&5 |
| 8896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8897 | |
| 8898 | ac_header_preproc=no |
| 8899 | fi |
| 8900 | rm -f conftest.err conftest.$ac_ext |
| 8901 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8902 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8903 | |
| 8904 | # So? What about this header? |
| 8905 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8906 | yes:no: ) |
| 8907 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8908 | echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8909 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 |
| 8910 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} |
| 8911 | ac_header_preproc=yes |
| 8912 | ;; |
| 8913 | no:yes:* ) |
| 8914 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 |
| 8915 | echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} |
| 8916 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 |
| 8917 | echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 8918 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 |
| 8919 | echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} |
| 8920 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8921 | echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8922 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 8923 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 8924 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 8925 | echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} |
| 8926 | ( |
| 8927 | cat <<\_ASBOX |
| 8928 | ## ------------------------------------ ## |
| 8929 | ## Report this to the pjproject lists. ## |
| 8930 | ## ------------------------------------ ## |
| 8931 | _ASBOX |
| 8932 | ) | |
| 8933 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8934 | ;; |
| 8935 | esac |
| 8936 | echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 8937 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6 |
| 8938 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 8939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8940 | else |
| 8941 | ac_cv_header_linux_soundcard_h=$ac_header_preproc |
| 8942 | fi |
| 8943 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 8944 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6 |
| 8945 | |
| 8946 | fi |
| 8947 | if test $ac_cv_header_linux_soundcard_h = yes; then |
| 8948 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 8949 | fi |
| 8950 | |
| 8951 | |
| 8952 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 8953 | echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 8954 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6 |
| 8955 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 8956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8957 | fi |
| 8958 | echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 8959 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6 |
| 8960 | else |
| 8961 | # Is the header compilable? |
| 8962 | echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 |
| 8963 | echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6 |
| 8964 | cat >conftest.$ac_ext <<_ACEOF |
| 8965 | /* confdefs.h. */ |
| 8966 | _ACEOF |
| 8967 | cat confdefs.h >>conftest.$ac_ext |
| 8968 | cat >>conftest.$ac_ext <<_ACEOF |
| 8969 | /* end confdefs.h. */ |
| 8970 | $ac_includes_default |
| 8971 | #include <machine/soundcard.h> |
| 8972 | _ACEOF |
| 8973 | rm -f conftest.$ac_objext |
| 8974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8975 | (eval $ac_compile) 2>conftest.er1 |
| 8976 | ac_status=$? |
| 8977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8978 | rm -f conftest.er1 |
| 8979 | cat conftest.err >&5 |
| 8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8981 | (exit $ac_status); } && |
| 8982 | { ac_try='test -z "$ac_c_werror_flag" |
| 8983 | || test ! -s conftest.err' |
| 8984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8985 | (eval $ac_try) 2>&5 |
| 8986 | ac_status=$? |
| 8987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8988 | (exit $ac_status); }; } && |
| 8989 | { ac_try='test -s conftest.$ac_objext' |
| 8990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8991 | (eval $ac_try) 2>&5 |
| 8992 | ac_status=$? |
| 8993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8994 | (exit $ac_status); }; }; then |
| 8995 | ac_header_compiler=yes |
| 8996 | else |
| 8997 | echo "$as_me: failed program was:" >&5 |
| 8998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8999 | |
| 9000 | ac_header_compiler=no |
| 9001 | fi |
| 9002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9003 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9004 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9005 | |
| 9006 | # Is the header present? |
| 9007 | echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 |
| 9008 | echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6 |
| 9009 | cat >conftest.$ac_ext <<_ACEOF |
| 9010 | /* confdefs.h. */ |
| 9011 | _ACEOF |
| 9012 | cat confdefs.h >>conftest.$ac_ext |
| 9013 | cat >>conftest.$ac_ext <<_ACEOF |
| 9014 | /* end confdefs.h. */ |
| 9015 | #include <machine/soundcard.h> |
| 9016 | _ACEOF |
| 9017 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9018 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9019 | ac_status=$? |
| 9020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9021 | rm -f conftest.er1 |
| 9022 | cat conftest.err >&5 |
| 9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9024 | (exit $ac_status); } >/dev/null; then |
| 9025 | if test -s conftest.err; then |
| 9026 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9027 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9028 | else |
| 9029 | ac_cpp_err= |
| 9030 | fi |
| 9031 | else |
| 9032 | ac_cpp_err=yes |
| 9033 | fi |
| 9034 | if test -z "$ac_cpp_err"; then |
| 9035 | ac_header_preproc=yes |
| 9036 | else |
| 9037 | echo "$as_me: failed program was:" >&5 |
| 9038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9039 | |
| 9040 | ac_header_preproc=no |
| 9041 | fi |
| 9042 | rm -f conftest.err conftest.$ac_ext |
| 9043 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9044 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9045 | |
| 9046 | # So? What about this header? |
| 9047 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9048 | yes:no: ) |
| 9049 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9050 | echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9051 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 |
| 9052 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9053 | ac_header_preproc=yes |
| 9054 | ;; |
| 9055 | no:yes:* ) |
| 9056 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 |
| 9057 | echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} |
| 9058 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9059 | echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9060 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 |
| 9061 | echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} |
| 9062 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9063 | echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9064 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9065 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9066 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9067 | echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} |
| 9068 | ( |
| 9069 | cat <<\_ASBOX |
| 9070 | ## ------------------------------------ ## |
| 9071 | ## Report this to the pjproject lists. ## |
| 9072 | ## ------------------------------------ ## |
| 9073 | _ASBOX |
| 9074 | ) | |
| 9075 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9076 | ;; |
| 9077 | esac |
| 9078 | echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 9079 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6 |
| 9080 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 9081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9082 | else |
| 9083 | ac_cv_header_machine_soundcard_h=$ac_header_preproc |
| 9084 | fi |
| 9085 | echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 9086 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6 |
| 9087 | |
| 9088 | fi |
| 9089 | if test $ac_cv_header_machine_soundcard_h = yes; then |
| 9090 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 9091 | fi |
| 9092 | |
| 9093 | |
| 9094 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9095 | if test "$enable_sound" = "no"; then |
| 9096 | true; |
| 9097 | else |
| 9098 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9099 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 9100 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 9101 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9102 | #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS" |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 9103 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 9104 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9105 | echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 9106 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6 |
| 9107 | else |
| 9108 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9109 | echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9110 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 9111 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9112 | ;; |
| 9113 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9114 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9115 | echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9116 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6 |
| 9117 | ;; |
| 9118 | *rtems*) |
| 9119 | ac_pjmedia_snd=null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9120 | echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9121 | echo "${ECHO_T}Checking sound device backend... null sound" >&6 |
| 9122 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9123 | *) |
| 9124 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9125 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 9126 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9127 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
| 9128 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 9129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9130 | fi |
| 9131 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 9132 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9133 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9134 | # Is the header compilable? |
| 9135 | echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 9136 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6 |
| 9137 | cat >conftest.$ac_ext <<_ACEOF |
| 9138 | /* confdefs.h. */ |
| 9139 | _ACEOF |
| 9140 | cat confdefs.h >>conftest.$ac_ext |
| 9141 | cat >>conftest.$ac_ext <<_ACEOF |
| 9142 | /* end confdefs.h. */ |
| 9143 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9144 | #include <alsa/version.h> |
| 9145 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9146 | rm -f conftest.$ac_objext |
| 9147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9148 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9149 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9150 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9151 | rm -f conftest.er1 |
| 9152 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9154 | (exit $ac_status); } && |
| 9155 | { ac_try='test -z "$ac_c_werror_flag" |
| 9156 | || test ! -s conftest.err' |
| 9157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9158 | (eval $ac_try) 2>&5 |
| 9159 | ac_status=$? |
| 9160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9161 | (exit $ac_status); }; } && |
| 9162 | { ac_try='test -s conftest.$ac_objext' |
| 9163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9164 | (eval $ac_try) 2>&5 |
| 9165 | ac_status=$? |
| 9166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9167 | (exit $ac_status); }; }; then |
| 9168 | ac_header_compiler=yes |
| 9169 | else |
| 9170 | echo "$as_me: failed program was:" >&5 |
| 9171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9172 | |
| 9173 | ac_header_compiler=no |
| 9174 | fi |
| 9175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9176 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9177 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9178 | |
| 9179 | # Is the header present? |
| 9180 | echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 9181 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6 |
| 9182 | cat >conftest.$ac_ext <<_ACEOF |
| 9183 | /* confdefs.h. */ |
| 9184 | _ACEOF |
| 9185 | cat confdefs.h >>conftest.$ac_ext |
| 9186 | cat >>conftest.$ac_ext <<_ACEOF |
| 9187 | /* end confdefs.h. */ |
| 9188 | #include <alsa/version.h> |
| 9189 | _ACEOF |
| 9190 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9191 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9192 | ac_status=$? |
| 9193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9194 | rm -f conftest.er1 |
| 9195 | cat conftest.err >&5 |
| 9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9197 | (exit $ac_status); } >/dev/null; then |
| 9198 | if test -s conftest.err; then |
| 9199 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9200 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9201 | else |
| 9202 | ac_cpp_err= |
| 9203 | fi |
| 9204 | else |
| 9205 | ac_cpp_err=yes |
| 9206 | fi |
| 9207 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9208 | ac_header_preproc=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9209 | else |
| 9210 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9212 | |
| 9213 | ac_header_preproc=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9214 | fi |
| 9215 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9216 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9217 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9218 | |
| 9219 | # So? What about this header? |
| 9220 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9221 | yes:no: ) |
| 9222 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9223 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9224 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 9225 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 9226 | ac_header_preproc=yes |
| 9227 | ;; |
| 9228 | no:yes:* ) |
| 9229 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 9230 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 9231 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 9232 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 9233 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 9234 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 9235 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9236 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9237 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 9238 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 9239 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 9240 | echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} |
| 9241 | ( |
| 9242 | cat <<\_ASBOX |
| 9243 | ## ------------------------------------ ## |
| 9244 | ## Report this to the pjproject lists. ## |
| 9245 | ## ------------------------------------ ## |
| 9246 | _ASBOX |
| 9247 | ) | |
| 9248 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9249 | ;; |
| 9250 | esac |
| 9251 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 9252 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
| 9253 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 9254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9255 | else |
| 9256 | ac_cv_header_alsa_version_h=$ac_header_preproc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9257 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9258 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9259 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9260 | |
| 9261 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9262 | if test $ac_cv_header_alsa_version_h = yes; then |
| 9263 | ac_pa_use_alsa=1 |
| 9264 | |
| 9265 | LIBS="$LIBS -lasound" |
| 9266 | |
| 9267 | else |
| 9268 | ac_pa_use_alsa=0 |
| 9269 | |
| 9270 | fi |
| 9271 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9272 | |
| 9273 | echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9274 | echo "${ECHO_T}Checking sound device backend... unix" >&6 |
| 9275 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9276 | esac |
| 9277 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9278 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9279 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9280 | # Check whether --enable-small-filter or --disable-small-filter was given. |
| 9281 | if test "${enable_small_filter+set}" = set; then |
| 9282 | enableval="$enable_small_filter" |
| 9283 | if test "$enable_small_filter" = "no"; then |
| 9284 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9285 | 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] | 9286 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6 |
| 9287 | fi |
| 9288 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9289 | 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] | 9290 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6 |
| 9291 | fi; |
| 9292 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9293 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9294 | # Check whether --enable-large-filter or --disable-large-filter was given. |
| 9295 | if test "${enable_large_filter+set}" = set; then |
| 9296 | enableval="$enable_large_filter" |
| 9297 | if test "$enable_large_filter" = "no"; then |
| 9298 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9299 | 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] | 9300 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6 |
| 9301 | fi |
| 9302 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9303 | 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] | 9304 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6 |
| 9305 | fi; |
| 9306 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9307 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9308 | # Check whether --enable-speex-aec or --disable-speex-aec was given. |
| 9309 | if test "${enable_speex_aec+set}" = set; then |
| 9310 | enableval="$enable_speex_aec" |
| 9311 | if test "$enable_speex_aec" = "no"; then |
| 9312 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9313 | 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] | 9314 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6 |
| 9315 | fi |
| 9316 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9317 | 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] | 9318 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6 |
| 9319 | fi; |
| 9320 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9321 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9322 | # Check whether --enable-g711-codec or --disable-g711-codec was given. |
| 9323 | if test "${enable_g711_codec+set}" = set; then |
| 9324 | enableval="$enable_g711_codec" |
| 9325 | if test "$enable_g711_codec" = "no"; then |
| 9326 | ac_no_g711_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 9327 | cat >>confdefs.h <<\_ACEOF |
| 9328 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 9329 | _ACEOF |
| 9330 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9331 | 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] | 9332 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6 |
| 9333 | fi |
| 9334 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9335 | 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] | 9336 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6 |
| 9337 | fi; |
| 9338 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9339 | |
| 9340 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9341 | # Check whether --enable-l16-codec or --disable-l16-codec was given. |
| 9342 | if test "${enable_l16_codec+set}" = set; then |
| 9343 | enableval="$enable_l16_codec" |
| 9344 | if test "$enable_l16_codec" = "no"; then |
| 9345 | ac_no_l16_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 9346 | cat >>confdefs.h <<\_ACEOF |
| 9347 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 9348 | _ACEOF |
| 9349 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9350 | 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] | 9351 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6 |
| 9352 | fi |
| 9353 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9354 | 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] | 9355 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9356 | fi; |
| 9357 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9358 | |
| 9359 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9360 | # Check whether --enable-gsm-codec or --disable-gsm-codec was given. |
| 9361 | if test "${enable_gsm_codec+set}" = set; then |
| 9362 | enableval="$enable_gsm_codec" |
| 9363 | if test "$enable_gsm_codec" = "no"; then |
| 9364 | ac_no_gsm_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 9365 | cat >>confdefs.h <<\_ACEOF |
| 9366 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 9367 | _ACEOF |
| 9368 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9369 | 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] | 9370 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6 |
| 9371 | fi |
| 9372 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9373 | 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] | 9374 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6 |
| 9375 | fi; |
| 9376 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9377 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9378 | # Check whether --enable-speex-codec or --disable-speex-codec was given. |
| 9379 | if test "${enable_speex_codec+set}" = set; then |
| 9380 | enableval="$enable_speex_codec" |
| 9381 | if test "$enable_speex_codec" = "no"; then |
| 9382 | ac_no_speex_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 9383 | cat >>confdefs.h <<\_ACEOF |
| 9384 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 9385 | _ACEOF |
| 9386 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9387 | 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] | 9388 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6 |
| 9389 | fi |
| 9390 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9391 | 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] | 9392 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6 |
| 9393 | fi; |
| 9394 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9395 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9396 | # Check whether --enable-ilbc-codec or --disable-ilbc-codec was given. |
| 9397 | if test "${enable_ilbc_codec+set}" = set; then |
| 9398 | enableval="$enable_ilbc_codec" |
| 9399 | if test "$enable_ilbc_codec" = "no"; then |
| 9400 | ac_no_ilbc_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 9401 | cat >>confdefs.h <<\_ACEOF |
| 9402 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 9403 | _ACEOF |
| 9404 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9405 | 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] | 9406 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6 |
| 9407 | fi |
| 9408 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9409 | 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] | 9410 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6 |
| 9411 | fi; |
| 9412 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9413 | |
| 9414 | |
| 9415 | |
| 9416 | |
| 9417 | # Check whether --enable-ssl or --disable-ssl was given. |
| 9418 | if test "${enable_ssl+set}" = set; then |
| 9419 | enableval="$enable_ssl" |
| 9420 | |
| 9421 | if test "$enable_ssl" = "no"; then |
| 9422 | ac_no_ssl=1 |
| 9423 | echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 9424 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6 |
| 9425 | fi |
| 9426 | |
| 9427 | else |
| 9428 | |
| 9429 | echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 9430 | echo "${ECHO_T}checking for OpenSSL installations.." >&6 |
| 9431 | |
| 9432 | |
| 9433 | |
| 9434 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 9435 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 9436 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
| 9437 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 9438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9439 | fi |
| 9440 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 9441 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
| 9442 | else |
| 9443 | # Is the header compilable? |
| 9444 | echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 9445 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6 |
| 9446 | cat >conftest.$ac_ext <<_ACEOF |
| 9447 | /* confdefs.h. */ |
| 9448 | _ACEOF |
| 9449 | cat confdefs.h >>conftest.$ac_ext |
| 9450 | cat >>conftest.$ac_ext <<_ACEOF |
| 9451 | /* end confdefs.h. */ |
| 9452 | $ac_includes_default |
| 9453 | #include <openssl/ssl.h> |
| 9454 | _ACEOF |
| 9455 | rm -f conftest.$ac_objext |
| 9456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9457 | (eval $ac_compile) 2>conftest.er1 |
| 9458 | ac_status=$? |
| 9459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9460 | rm -f conftest.er1 |
| 9461 | cat conftest.err >&5 |
| 9462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9463 | (exit $ac_status); } && |
| 9464 | { ac_try='test -z "$ac_c_werror_flag" |
| 9465 | || test ! -s conftest.err' |
| 9466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9467 | (eval $ac_try) 2>&5 |
| 9468 | ac_status=$? |
| 9469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9470 | (exit $ac_status); }; } && |
| 9471 | { ac_try='test -s conftest.$ac_objext' |
| 9472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9473 | (eval $ac_try) 2>&5 |
| 9474 | ac_status=$? |
| 9475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9476 | (exit $ac_status); }; }; then |
| 9477 | ac_header_compiler=yes |
| 9478 | else |
| 9479 | echo "$as_me: failed program was:" >&5 |
| 9480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9481 | |
| 9482 | ac_header_compiler=no |
| 9483 | fi |
| 9484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9485 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9486 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9487 | |
| 9488 | # Is the header present? |
| 9489 | echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 9490 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6 |
| 9491 | cat >conftest.$ac_ext <<_ACEOF |
| 9492 | /* confdefs.h. */ |
| 9493 | _ACEOF |
| 9494 | cat confdefs.h >>conftest.$ac_ext |
| 9495 | cat >>conftest.$ac_ext <<_ACEOF |
| 9496 | /* end confdefs.h. */ |
| 9497 | #include <openssl/ssl.h> |
| 9498 | _ACEOF |
| 9499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9501 | ac_status=$? |
| 9502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9503 | rm -f conftest.er1 |
| 9504 | cat conftest.err >&5 |
| 9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9506 | (exit $ac_status); } >/dev/null; then |
| 9507 | if test -s conftest.err; then |
| 9508 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9509 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9510 | else |
| 9511 | ac_cpp_err= |
| 9512 | fi |
| 9513 | else |
| 9514 | ac_cpp_err=yes |
| 9515 | fi |
| 9516 | if test -z "$ac_cpp_err"; then |
| 9517 | ac_header_preproc=yes |
| 9518 | else |
| 9519 | echo "$as_me: failed program was:" >&5 |
| 9520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9521 | |
| 9522 | ac_header_preproc=no |
| 9523 | fi |
| 9524 | rm -f conftest.err conftest.$ac_ext |
| 9525 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9526 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9527 | |
| 9528 | # So? What about this header? |
| 9529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9530 | yes:no: ) |
| 9531 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9532 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9533 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 9534 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 9535 | ac_header_preproc=yes |
| 9536 | ;; |
| 9537 | no:yes:* ) |
| 9538 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 9539 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 9540 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 9541 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 9542 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 9543 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 9544 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9545 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9546 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 9547 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 9548 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 9549 | echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} |
| 9550 | ( |
| 9551 | cat <<\_ASBOX |
| 9552 | ## ------------------------------------ ## |
| 9553 | ## Report this to the pjproject lists. ## |
| 9554 | ## ------------------------------------ ## |
| 9555 | _ASBOX |
| 9556 | ) | |
| 9557 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9558 | ;; |
| 9559 | esac |
| 9560 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 9561 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
| 9562 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 9563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9564 | else |
| 9565 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 9566 | fi |
| 9567 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 9568 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
| 9569 | |
| 9570 | fi |
| 9571 | if test $ac_cv_header_openssl_ssl_h = yes; then |
| 9572 | openssl_h_present=1 |
| 9573 | fi |
| 9574 | |
| 9575 | |
| 9576 | echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 9577 | echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 |
| 9578 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 9579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9580 | else |
| 9581 | ac_check_lib_save_LIBS=$LIBS |
| 9582 | LIBS="-lssl $LIBS" |
| 9583 | cat >conftest.$ac_ext <<_ACEOF |
| 9584 | /* confdefs.h. */ |
| 9585 | _ACEOF |
| 9586 | cat confdefs.h >>conftest.$ac_ext |
| 9587 | cat >>conftest.$ac_ext <<_ACEOF |
| 9588 | /* end confdefs.h. */ |
| 9589 | |
| 9590 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9591 | #ifdef __cplusplus |
| 9592 | extern "C" |
| 9593 | #endif |
| 9594 | /* We use char because int might match the return type of a gcc2 |
| 9595 | builtin and then its argument prototype would still apply. */ |
| 9596 | char SSL_library_init (); |
| 9597 | int |
| 9598 | main () |
| 9599 | { |
| 9600 | SSL_library_init (); |
| 9601 | ; |
| 9602 | return 0; |
| 9603 | } |
| 9604 | _ACEOF |
| 9605 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9607 | (eval $ac_link) 2>conftest.er1 |
| 9608 | ac_status=$? |
| 9609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9610 | rm -f conftest.er1 |
| 9611 | cat conftest.err >&5 |
| 9612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9613 | (exit $ac_status); } && |
| 9614 | { ac_try='test -z "$ac_c_werror_flag" |
| 9615 | || test ! -s conftest.err' |
| 9616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9617 | (eval $ac_try) 2>&5 |
| 9618 | ac_status=$? |
| 9619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9620 | (exit $ac_status); }; } && |
| 9621 | { ac_try='test -s conftest$ac_exeext' |
| 9622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9623 | (eval $ac_try) 2>&5 |
| 9624 | ac_status=$? |
| 9625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9626 | (exit $ac_status); }; }; then |
| 9627 | ac_cv_lib_ssl_SSL_library_init=yes |
| 9628 | else |
| 9629 | echo "$as_me: failed program was:" >&5 |
| 9630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9631 | |
| 9632 | ac_cv_lib_ssl_SSL_library_init=no |
| 9633 | fi |
| 9634 | rm -f conftest.err conftest.$ac_objext \ |
| 9635 | conftest$ac_exeext conftest.$ac_ext |
| 9636 | LIBS=$ac_check_lib_save_LIBS |
| 9637 | fi |
| 9638 | echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 9639 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 |
| 9640 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
| 9641 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 9642 | fi |
| 9643 | |
| 9644 | echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 9645 | echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6 |
| 9646 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 9647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9648 | else |
| 9649 | ac_check_lib_save_LIBS=$LIBS |
| 9650 | LIBS="-lcrypto $LIBS" |
| 9651 | cat >conftest.$ac_ext <<_ACEOF |
| 9652 | /* confdefs.h. */ |
| 9653 | _ACEOF |
| 9654 | cat confdefs.h >>conftest.$ac_ext |
| 9655 | cat >>conftest.$ac_ext <<_ACEOF |
| 9656 | /* end confdefs.h. */ |
| 9657 | |
| 9658 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9659 | #ifdef __cplusplus |
| 9660 | extern "C" |
| 9661 | #endif |
| 9662 | /* We use char because int might match the return type of a gcc2 |
| 9663 | builtin and then its argument prototype would still apply. */ |
| 9664 | char ERR_load_BIO_strings (); |
| 9665 | int |
| 9666 | main () |
| 9667 | { |
| 9668 | ERR_load_BIO_strings (); |
| 9669 | ; |
| 9670 | return 0; |
| 9671 | } |
| 9672 | _ACEOF |
| 9673 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9675 | (eval $ac_link) 2>conftest.er1 |
| 9676 | ac_status=$? |
| 9677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9678 | rm -f conftest.er1 |
| 9679 | cat conftest.err >&5 |
| 9680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9681 | (exit $ac_status); } && |
| 9682 | { ac_try='test -z "$ac_c_werror_flag" |
| 9683 | || test ! -s conftest.err' |
| 9684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9685 | (eval $ac_try) 2>&5 |
| 9686 | ac_status=$? |
| 9687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9688 | (exit $ac_status); }; } && |
| 9689 | { ac_try='test -s conftest$ac_exeext' |
| 9690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9691 | (eval $ac_try) 2>&5 |
| 9692 | ac_status=$? |
| 9693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9694 | (exit $ac_status); }; }; then |
| 9695 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 9696 | else |
| 9697 | echo "$as_me: failed program was:" >&5 |
| 9698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9699 | |
| 9700 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
| 9701 | fi |
| 9702 | rm -f conftest.err conftest.$ac_objext \ |
| 9703 | conftest$ac_exeext conftest.$ac_ext |
| 9704 | LIBS=$ac_check_lib_save_LIBS |
| 9705 | fi |
| 9706 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 9707 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6 |
| 9708 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
| 9709 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 9710 | fi |
| 9711 | |
| 9712 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
| 9713 | echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 9714 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6 |
| 9715 | cat >>confdefs.h <<\_ACEOF |
| 9716 | #define PJSIP_HAS_TLS_TRANSPORT 1 |
| 9717 | _ACEOF |
| 9718 | |
| 9719 | else |
| 9720 | echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 9721 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6 |
| 9722 | fi |
| 9723 | |
| 9724 | fi; |
| 9725 | |
| 9726 | |
| 9727 | |
| 9728 | |
| 9729 | echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9730 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9731 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9732 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9733 | #define PJ_SELECT_NEEDS_NFDS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9734 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9735 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9736 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9737 | echo "${ECHO_T}yes" >&6 |
| 9738 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9739 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9740 | #define PJ_SELECT_NEEDS_NFDS 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9741 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9742 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9743 | echo "$as_me:$LINENO: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9744 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9745 | 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] | 9746 | echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6 |
| 9747 | ;; |
| 9748 | esac |
| 9749 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9750 | 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] | 9751 | echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6 |
| 9752 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9753 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9754 | #define PJ_THREAD_SET_STACK_SIZE 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9755 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9756 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9757 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9758 | echo "${ECHO_T}yes" >&6 |
| 9759 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9760 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9761 | #define PJ_THREAD_SET_STACK_SIZE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9762 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9763 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9764 | echo "$as_me:$LINENO: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9765 | echo "${ECHO_T}no (default)" >&6 |
| 9766 | ;; |
| 9767 | esac |
| 9768 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9769 | 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] | 9770 | echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6 |
| 9771 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9772 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9773 | #define PJ_THREAD_ALLOCATE_STACK 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9774 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9775 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9776 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9777 | echo "${ECHO_T}yes" >&6 |
| 9778 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9779 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9780 | #define PJ_THREAD_ALLOCATE_STACK 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9781 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9782 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9783 | echo "$as_me:$LINENO: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9784 | echo "${ECHO_T}no (default)" >&6 |
| 9785 | ;; |
| 9786 | esac |
| 9787 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9788 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9789 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9790 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9791 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9792 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9793 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9794 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9795 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9796 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9797 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9798 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9799 | 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] | 9800 | echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6 |
| 9801 | ;; |
| 9802 | esac |
| 9803 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9804 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9805 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9806 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9807 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9808 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9809 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9810 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9811 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9812 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9813 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9814 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9815 | 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] | 9816 | echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6 |
| 9817 | ;; |
| 9818 | esac |
| 9819 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9820 | |
| 9821 | |
| 9822 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9823 | if test "$build" = "$host"; then |
| 9824 | ac_cross_compile= |
| 9825 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 9826 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9827 | fi |
| 9828 | ac_linux_poll=select |
| 9829 | |
| 9830 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9831 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9832 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9833 | case $target in |
| 9834 | *rtems*) |
| 9835 | ac_main_obj=main_rtems.o |
| 9836 | ;; |
| 9837 | *) |
| 9838 | ac_main_obj=main.o |
| 9839 | ;; |
| 9840 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9841 | |
| 9842 | cat >confcache <<\_ACEOF |
| 9843 | # This file is a shell script that caches the results of configure |
| 9844 | # tests run on this system so they can be shared between configure |
| 9845 | # scripts and configure runs, see configure's option --config-cache. |
| 9846 | # It is not useful on other systems. If it contains results you don't |
| 9847 | # want to keep, you may remove or edit it. |
| 9848 | # |
| 9849 | # config.status only pays attention to the cache file if you give it |
| 9850 | # the --recheck option to rerun configure. |
| 9851 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9852 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9853 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 9854 | # following values. |
| 9855 | |
| 9856 | _ACEOF |
| 9857 | |
| 9858 | # The following way of writing the cache mishandles newlines in values, |
| 9859 | # but we know of no workaround that is simple, portable, and efficient. |
| 9860 | # So, don't put newlines in cache variables' values. |
| 9861 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 9862 | # and sets the high bit in the cache file unless we assign to the vars. |
| 9863 | { |
| 9864 | (set) 2>&1 | |
| 9865 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 9866 | *ac_space=\ *) |
| 9867 | # `set' does not quote correctly, so add quotes (double-quote |
| 9868 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 9869 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9870 | "s/'/'\\\\''/g; |
| 9871 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9872 | ;; |
| 9873 | *) |
| 9874 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 9875 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9876 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9877 | ;; |
| 9878 | esac; |
| 9879 | } | |
| 9880 | sed ' |
| 9881 | t clear |
| 9882 | : clear |
| 9883 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 9884 | t end |
| 9885 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 9886 | : end' >>confcache |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9887 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9888 | if test -w $cache_file; then |
| 9889 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 9890 | cat confcache >$cache_file |
| 9891 | else |
| 9892 | echo "not updating unwritable cache $cache_file" |
| 9893 | fi |
| 9894 | fi |
| 9895 | rm -f confcache |
| 9896 | |
| 9897 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 9898 | # Let make expand exec_prefix. |
| 9899 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 9900 | |
| 9901 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 9902 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 9903 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 9904 | # (actually we leave an empty line to preserve line numbers). |
| 9905 | if test "x$srcdir" = x.; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9906 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9907 | s/:*\$(srcdir):*/:/; |
| 9908 | s/:*\${srcdir}:*/:/; |
| 9909 | s/:*@srcdir@:*/:/; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9910 | s/^\([^=]*=[ ]*\):*/\1/; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9911 | s/:*$//; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9912 | s/^[^=]*=[ ]*$//; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9913 | }' |
| 9914 | fi |
| 9915 | |
| 9916 | DEFS=-DHAVE_CONFIG_H |
| 9917 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9918 | ac_libobjs= |
| 9919 | ac_ltlibobjs= |
| 9920 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 9921 | # 1. Remove the extension, and $U if already installed. |
| 9922 | ac_i=`echo "$ac_i" | |
| 9923 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 9924 | # 2. Add them. |
| 9925 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 9926 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 9927 | done |
| 9928 | LIBOBJS=$ac_libobjs |
| 9929 | |
| 9930 | LTLIBOBJS=$ac_ltlibobjs |
| 9931 | |
| 9932 | |
| 9933 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9934 | : ${CONFIG_STATUS=./config.status} |
| 9935 | ac_clean_files_save=$ac_clean_files |
| 9936 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9937 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9938 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 9939 | cat >$CONFIG_STATUS <<_ACEOF |
| 9940 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9941 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9942 | # Run this file to recreate the current configuration. |
| 9943 | # Compiler output produced by configure, useful for debugging |
| 9944 | # configure, is in config.log if it exists. |
| 9945 | |
| 9946 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9947 | ac_cs_recheck=false |
| 9948 | ac_cs_silent=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9949 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 9950 | _ACEOF |
| 9951 | |
| 9952 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9953 | ## --------------------- ## |
| 9954 | ## M4sh Initialization. ## |
| 9955 | ## --------------------- ## |
| 9956 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9957 | # Be Bourne compatible |
| 9958 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 9959 | emulate sh |
| 9960 | NULLCMD=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9961 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 9962 | # is contrary to our usage. Disable this feature. |
| 9963 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9964 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 9965 | set -o posix |
| 9966 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9967 | DUALCASE=1; export DUALCASE # for MKS sh |
| 9968 | |
| 9969 | # Support unset when possible. |
| 9970 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 9971 | as_unset=unset |
| 9972 | else |
| 9973 | as_unset=false |
| 9974 | fi |
| 9975 | |
| 9976 | |
| 9977 | # Work around bugs in pre-3.0 UWIN ksh. |
| 9978 | $as_unset ENV MAIL MAILPATH |
| 9979 | PS1='$ ' |
| 9980 | PS2='> ' |
| 9981 | PS4='+ ' |
| 9982 | |
| 9983 | # NLS nuisances. |
| 9984 | for as_var in \ |
| 9985 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 9986 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 9987 | LC_TELEPHONE LC_TIME |
| 9988 | do |
| 9989 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 9990 | eval $as_var=C; export $as_var |
| 9991 | else |
| 9992 | $as_unset $as_var |
| 9993 | fi |
| 9994 | done |
| 9995 | |
| 9996 | # Required to use basename. |
| 9997 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9998 | as_expr=expr |
| 9999 | else |
| 10000 | as_expr=false |
| 10001 | fi |
| 10002 | |
| 10003 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 10004 | as_basename=basename |
| 10005 | else |
| 10006 | as_basename=false |
| 10007 | fi |
| 10008 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10009 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10010 | # Name of the executable. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10011 | as_me=`$as_basename "$0" || |
| 10012 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 10013 | X"$0" : 'X\(//\)$' \| \ |
| 10014 | X"$0" : 'X\(/\)$' \| \ |
| 10015 | . : '\(.\)' 2>/dev/null || |
| 10016 | echo X/"$0" | |
| 10017 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 10018 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 10019 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 10020 | s/.*/./; q'` |
| 10021 | |
| 10022 | |
| 10023 | # PATH needs CR, and LINENO needs CR and PATH. |
| 10024 | # Avoid depending upon Character Ranges. |
| 10025 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 10026 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 10027 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 10028 | as_cr_digits='0123456789' |
| 10029 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 10030 | |
| 10031 | # The user is always right. |
| 10032 | if test "${PATH_SEPARATOR+set}" != set; then |
| 10033 | echo "#! /bin/sh" >conf$$.sh |
| 10034 | echo "exit 0" >>conf$$.sh |
| 10035 | chmod +x conf$$.sh |
| 10036 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 10037 | PATH_SEPARATOR=';' |
| 10038 | else |
| 10039 | PATH_SEPARATOR=: |
| 10040 | fi |
| 10041 | rm -f conf$$.sh |
| 10042 | fi |
| 10043 | |
| 10044 | |
| 10045 | as_lineno_1=$LINENO |
| 10046 | as_lineno_2=$LINENO |
| 10047 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 10048 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 10049 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 10050 | # Find who we are. Look in the path if we contain no path at all |
| 10051 | # relative or not. |
| 10052 | case $0 in |
| 10053 | *[\\/]* ) as_myself=$0 ;; |
| 10054 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10055 | for as_dir in $PATH |
| 10056 | do |
| 10057 | IFS=$as_save_IFS |
| 10058 | test -z "$as_dir" && as_dir=. |
| 10059 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 10060 | done |
| 10061 | |
| 10062 | ;; |
| 10063 | esac |
| 10064 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 10065 | # in which case we are not to be found in the path. |
| 10066 | if test "x$as_myself" = x; then |
| 10067 | as_myself=$0 |
| 10068 | fi |
| 10069 | if test ! -f "$as_myself"; then |
| 10070 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 10071 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 10072 | { (exit 1); exit 1; }; } |
| 10073 | fi |
| 10074 | case $CONFIG_SHELL in |
| 10075 | '') |
| 10076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10077 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 10078 | do |
| 10079 | IFS=$as_save_IFS |
| 10080 | test -z "$as_dir" && as_dir=. |
| 10081 | for as_base in sh bash ksh sh5; do |
| 10082 | case $as_dir in |
| 10083 | /*) |
| 10084 | if ("$as_dir/$as_base" -c ' |
| 10085 | as_lineno_1=$LINENO |
| 10086 | as_lineno_2=$LINENO |
| 10087 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 10088 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 10089 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 10090 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 10091 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 10092 | CONFIG_SHELL=$as_dir/$as_base |
| 10093 | export CONFIG_SHELL |
| 10094 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 10095 | fi;; |
| 10096 | esac |
| 10097 | done |
| 10098 | done |
| 10099 | ;; |
| 10100 | esac |
| 10101 | |
| 10102 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 10103 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 10104 | # line-number line before each line; the second 'sed' does the real |
| 10105 | # work. The second script uses 'N' to pair each line-number line |
| 10106 | # with the numbered line, and appends trailing '-' during |
| 10107 | # substitution so that $LINENO is not a special case at line end. |
| 10108 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 10109 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 10110 | sed '=' <$as_myself | |
| 10111 | sed ' |
| 10112 | N |
| 10113 | s,$,-, |
| 10114 | : loop |
| 10115 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 10116 | t loop |
| 10117 | s,-$,, |
| 10118 | s,^['$as_cr_digits']*\n,, |
| 10119 | ' >$as_me.lineno && |
| 10120 | chmod +x $as_me.lineno || |
| 10121 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 10122 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 10123 | { (exit 1); exit 1; }; } |
| 10124 | |
| 10125 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 10126 | # (the dirname of $[0] is not the place where we might find the |
| 10127 | # original and so on. Autoconf is especially sensible to this). |
| 10128 | . ./$as_me.lineno |
| 10129 | # Exit status is that of the last command. |
| 10130 | exit |
| 10131 | } |
| 10132 | |
| 10133 | |
| 10134 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 10135 | *c*,-n*) ECHO_N= ECHO_C=' |
| 10136 | ' ECHO_T=' ' ;; |
| 10137 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 10138 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 10139 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10140 | |
| 10141 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 10142 | as_expr=expr |
| 10143 | else |
| 10144 | as_expr=false |
| 10145 | fi |
| 10146 | |
| 10147 | rm -f conf$$ conf$$.exe conf$$.file |
| 10148 | echo >conf$$.file |
| 10149 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 10150 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 10151 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 10152 | if test -f conf$$.exe; then |
| 10153 | # Don't use ln at all; we don't have any links |
| 10154 | as_ln_s='cp -p' |
| 10155 | else |
| 10156 | as_ln_s='ln -s' |
| 10157 | fi |
| 10158 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 10159 | as_ln_s=ln |
| 10160 | else |
| 10161 | as_ln_s='cp -p' |
| 10162 | fi |
| 10163 | rm -f conf$$ conf$$.exe conf$$.file |
| 10164 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10165 | if mkdir -p . 2>/dev/null; then |
| 10166 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10167 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10168 | test -d ./-p && rmdir ./-p |
| 10169 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10170 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10171 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10172 | as_executable_p="test -f" |
| 10173 | |
| 10174 | # Sed expression to map a string onto a valid CPP name. |
| 10175 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 10176 | |
| 10177 | # Sed expression to map a string onto a valid variable name. |
| 10178 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 10179 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10180 | |
| 10181 | # IFS |
| 10182 | # We need space, tab and new line, in precisely that order. |
| 10183 | as_nl=' |
| 10184 | ' |
| 10185 | IFS=" $as_nl" |
| 10186 | |
| 10187 | # CDPATH. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10188 | $as_unset CDPATH |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10189 | |
| 10190 | exec 6>&1 |
| 10191 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10192 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 10193 | # report actual input values of CONFIG_FILES etc. instead of their |
| 10194 | # values after options handling. Logging --version etc. is OK. |
| 10195 | exec 5>>config.log |
| 10196 | { |
| 10197 | echo |
| 10198 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 10199 | ## Running $as_me. ## |
| 10200 | _ASBOX |
| 10201 | } >&5 |
| 10202 | cat >&5 <<_CSEOF |
| 10203 | |
Benny Prijono | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 10204 | This file was extended by pjproject $as_me 0.7, which was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10205 | generated by GNU Autoconf 2.59. Invocation command line was |
| 10206 | |
| 10207 | CONFIG_FILES = $CONFIG_FILES |
| 10208 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 10209 | CONFIG_LINKS = $CONFIG_LINKS |
| 10210 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 10211 | $ $0 $@ |
| 10212 | |
| 10213 | _CSEOF |
| 10214 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 10215 | echo >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10216 | _ACEOF |
| 10217 | |
| 10218 | # Files that config.status was made for. |
| 10219 | if test -n "$ac_config_files"; then |
| 10220 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 10221 | fi |
| 10222 | |
| 10223 | if test -n "$ac_config_headers"; then |
| 10224 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 10225 | fi |
| 10226 | |
| 10227 | if test -n "$ac_config_links"; then |
| 10228 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 10229 | fi |
| 10230 | |
| 10231 | if test -n "$ac_config_commands"; then |
| 10232 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 10233 | fi |
| 10234 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10235 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10236 | |
| 10237 | ac_cs_usage="\ |
| 10238 | \`$as_me' instantiates files from templates according to the |
| 10239 | current configuration. |
| 10240 | |
| 10241 | Usage: $0 [OPTIONS] [FILE]... |
| 10242 | |
| 10243 | -h, --help print this help, then exit |
| 10244 | -V, --version print version number, then exit |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10245 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10246 | -d, --debug don't remove temporary files |
| 10247 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10248 | --file=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10249 | instantiate the configuration file FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10250 | --header=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10251 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10252 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10253 | Configuration files: |
| 10254 | $config_files |
| 10255 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10256 | Configuration headers: |
| 10257 | $config_headers |
| 10258 | |
| 10259 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10260 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10261 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10262 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10263 | ac_cs_version="\\ |
Benny Prijono | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 10264 | pjproject config.status 0.7 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10265 | configured by $0, generated by GNU Autoconf 2.59, |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10266 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 10267 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10268 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10269 | This config.status script is free software; the Free Software Foundation |
| 10270 | gives unlimited permission to copy, distribute and modify it." |
| 10271 | srcdir=$srcdir |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10272 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10273 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10274 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10275 | # If no file are specified by the user, then we need to provide default |
| 10276 | # value. By we need to know if files were specified by the user. |
| 10277 | ac_need_defaults=: |
| 10278 | while test $# != 0 |
| 10279 | do |
| 10280 | case $1 in |
| 10281 | --*=*) |
| 10282 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 10283 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10284 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10285 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10286 | -*) |
| 10287 | ac_option=$1 |
| 10288 | ac_optarg=$2 |
| 10289 | ac_shift=shift |
| 10290 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10291 | *) # This is not an option, so the user has probably given explicit |
| 10292 | # arguments. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10293 | ac_option=$1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10294 | ac_need_defaults=false;; |
| 10295 | esac |
| 10296 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10297 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10298 | # Handling of the options. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10299 | _ACEOF |
| 10300 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10301 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10302 | ac_cs_recheck=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10303 | --version | --vers* | -V ) |
| 10304 | echo "$ac_cs_version"; exit 0 ;; |
| 10305 | --he | --h) |
| 10306 | # Conflict between --help and --header |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10307 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10308 | Try \`$0 --help' for more information." >&5 |
| 10309 | echo "$as_me: error: ambiguous option: $1 |
| 10310 | Try \`$0 --help' for more information." >&2;} |
| 10311 | { (exit 1); exit 1; }; };; |
| 10312 | --help | --hel | -h ) |
| 10313 | echo "$ac_cs_usage"; exit 0 ;; |
| 10314 | --debug | --d* | -d ) |
| 10315 | debug=: ;; |
| 10316 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10317 | $ac_shift |
| 10318 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10319 | ac_need_defaults=false;; |
| 10320 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10321 | $ac_shift |
| 10322 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10323 | ac_need_defaults=false;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10324 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 10325 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 10326 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10327 | |
| 10328 | # This is an error. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10329 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10330 | Try \`$0 --help' for more information." >&5 |
| 10331 | echo "$as_me: error: unrecognized option: $1 |
| 10332 | Try \`$0 --help' for more information." >&2;} |
| 10333 | { (exit 1); exit 1; }; } ;; |
| 10334 | |
| 10335 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 10336 | |
| 10337 | esac |
| 10338 | shift |
| 10339 | done |
| 10340 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10341 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10342 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10343 | if $ac_cs_silent; then |
| 10344 | exec 6>/dev/null |
| 10345 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 10346 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10347 | |
| 10348 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10349 | cat >>$CONFIG_STATUS <<_ACEOF |
| 10350 | if \$ac_cs_recheck; then |
| 10351 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 10352 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 10353 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10354 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10355 | _ACEOF |
| 10356 | |
| 10357 | |
| 10358 | |
| 10359 | |
| 10360 | |
| 10361 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10362 | for ac_config_target in $ac_config_targets |
| 10363 | do |
| 10364 | case "$ac_config_target" in |
| 10365 | # Handling of arguments. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10366 | "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 10367 | "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 10368 | "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 10369 | "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 10370 | "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 10371 | "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 10372 | "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
| 10373 | "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10374 | "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] | 10375 | "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] | 10376 | "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 10377 | "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] | 10378 | "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 10379 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10380 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 10381 | { (exit 1); exit 1; }; };; |
| 10382 | esac |
| 10383 | done |
| 10384 | |
| 10385 | # If the user did not use the arguments to specify the items to instantiate, |
| 10386 | # then the envvar interface is used. Set only those that are not. |
| 10387 | # We use the long form for the default assignment because of an extremely |
| 10388 | # bizarre bug on SunOS 4.1.3. |
| 10389 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10390 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10391 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 10392 | fi |
| 10393 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10394 | # Have a temporary directory for convenience. Make it in the build tree |
| 10395 | # simply because there is no reason to put it here, and in addition, |
| 10396 | # creating and moving files from /tmp can sometimes cause problems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10397 | # Create a temporary directory, and hook for its removal unless debugging. |
| 10398 | $debug || |
| 10399 | { |
| 10400 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 10401 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 10402 | } |
| 10403 | |
| 10404 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10405 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10406 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10407 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10408 | test -n "$tmp" && test -d "$tmp" |
| 10409 | } || |
| 10410 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10411 | tmp=./confstat$$-$RANDOM |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10412 | (umask 077 && mkdir $tmp) |
| 10413 | } || |
| 10414 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10415 | echo "$me: cannot create a temporary directory in ." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10416 | { (exit 1); exit 1; } |
| 10417 | } |
| 10418 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10419 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10420 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10421 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10422 | |
| 10423 | # |
| 10424 | # CONFIG_FILES section. |
| 10425 | # |
| 10426 | |
| 10427 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 10428 | # This happens for instance when ./config.status config.h |
| 10429 | if test -n "\$CONFIG_FILES"; then |
| 10430 | # Protect against being on the right side of a sed subst in config.status. |
| 10431 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 10432 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 10433 | s,@SHELL@,$SHELL,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10434 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 10435 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 10436 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 10437 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 10438 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 10439 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10440 | s,@exec_prefix@,$exec_prefix,;t t |
| 10441 | s,@prefix@,$prefix,;t t |
| 10442 | s,@program_transform_name@,$program_transform_name,;t t |
| 10443 | s,@bindir@,$bindir,;t t |
| 10444 | s,@sbindir@,$sbindir,;t t |
| 10445 | s,@libexecdir@,$libexecdir,;t t |
| 10446 | s,@datadir@,$datadir,;t t |
| 10447 | s,@sysconfdir@,$sysconfdir,;t t |
| 10448 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 10449 | s,@localstatedir@,$localstatedir,;t t |
| 10450 | s,@libdir@,$libdir,;t t |
| 10451 | s,@includedir@,$includedir,;t t |
| 10452 | s,@oldincludedir@,$oldincludedir,;t t |
| 10453 | s,@infodir@,$infodir,;t t |
| 10454 | s,@mandir@,$mandir,;t t |
| 10455 | s,@build_alias@,$build_alias,;t t |
| 10456 | s,@host_alias@,$host_alias,;t t |
| 10457 | s,@target_alias@,$target_alias,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10458 | s,@DEFS@,$DEFS,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10459 | s,@ECHO_C@,$ECHO_C,;t t |
| 10460 | s,@ECHO_N@,$ECHO_N,;t t |
| 10461 | s,@ECHO_T@,$ECHO_T,;t t |
| 10462 | s,@LIBS@,$LIBS,;t t |
| 10463 | s,@build@,$build,;t t |
| 10464 | s,@build_cpu@,$build_cpu,;t t |
| 10465 | s,@build_vendor@,$build_vendor,;t t |
| 10466 | s,@build_os@,$build_os,;t t |
| 10467 | s,@host@,$host,;t t |
| 10468 | s,@host_cpu@,$host_cpu,;t t |
| 10469 | s,@host_vendor@,$host_vendor,;t t |
| 10470 | s,@host_os@,$host_os,;t t |
| 10471 | s,@target@,$target,;t t |
| 10472 | s,@target_cpu@,$target_cpu,;t t |
| 10473 | s,@target_vendor@,$target_vendor,;t t |
| 10474 | s,@target_os@,$target_os,;t t |
| 10475 | s,@CC@,$CC,;t t |
| 10476 | s,@CFLAGS@,$CFLAGS,;t t |
| 10477 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 10478 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 10479 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 10480 | s,@EXEEXT@,$EXEEXT,;t t |
| 10481 | s,@OBJEXT@,$OBJEXT,;t t |
| 10482 | s,@CXX@,$CXX,;t t |
| 10483 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 10484 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 10485 | s,@ac_pjdir@,$ac_pjdir,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10486 | s,@CPP@,$CPP,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10487 | s,@EGREP@,$EGREP,;t t |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10488 | s,@ac_os_objs@,$ac_os_objs,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10489 | s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10490 | s,@ac_pa_cflags@,$ac_pa_cflags,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10491 | s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t |
| 10492 | s,@ac_no_small_filter@,$ac_no_small_filter,;t t |
| 10493 | s,@ac_no_large_filter@,$ac_no_large_filter,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10494 | s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t |
| 10495 | s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t |
| 10496 | s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t |
| 10497 | s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t |
| 10498 | s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t |
| 10499 | s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10500 | s,@ac_no_ssl@,$ac_no_ssl,;t t |
| 10501 | s,@openssl_h_present@,$openssl_h_present,;t t |
| 10502 | s,@libssl_present@,$libssl_present,;t t |
| 10503 | s,@libcrypto_present@,$libcrypto_present,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10504 | s,@ac_cross_compile@,$ac_cross_compile,;t t |
| 10505 | s,@ac_linux_poll@,$ac_linux_poll,;t t |
| 10506 | s,@ac_host@,$ac_host,;t t |
| 10507 | s,@ac_main_obj@,$ac_main_obj,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10508 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 10509 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10510 | CEOF |
| 10511 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10512 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10513 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10514 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10515 | # Split the substitutions into bite-sized pieces for seds with |
| 10516 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 10517 | ac_max_sed_lines=48 |
| 10518 | ac_sed_frag=1 # Number of current file. |
| 10519 | ac_beg=1 # First line for current file. |
| 10520 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 10521 | ac_more_lines=: |
| 10522 | ac_sed_cmds= |
| 10523 | while $ac_more_lines; do |
| 10524 | if test $ac_beg -gt 1; then |
| 10525 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10526 | else |
| 10527 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10528 | fi |
| 10529 | if test ! -s $tmp/subs.frag; then |
| 10530 | ac_more_lines=false |
| 10531 | else |
| 10532 | # The purpose of the label and of the branching condition is to |
| 10533 | # speed up the sed processing (if there are no `@' at all, there |
| 10534 | # is no need to browse any of the substitutions). |
| 10535 | # These are the two extra sed commands mentioned above. |
| 10536 | (echo ':t |
| 10537 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 10538 | if test -z "$ac_sed_cmds"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10539 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10540 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10541 | 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] | 10542 | fi |
| 10543 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 10544 | ac_beg=$ac_end |
| 10545 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 10546 | fi |
| 10547 | done |
| 10548 | if test -z "$ac_sed_cmds"; then |
| 10549 | ac_sed_cmds=cat |
| 10550 | fi |
| 10551 | fi # test -n "$CONFIG_FILES" |
| 10552 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10553 | _ACEOF |
| 10554 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10555 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 10556 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10557 | case $ac_file in |
| 10558 | - | *:- | *:-:* ) # input from stdin |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10559 | cat >$tmp/stdin |
| 10560 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10561 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10562 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10563 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10564 | * ) ac_file_in=$ac_file.in ;; |
| 10565 | esac |
| 10566 | |
| 10567 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10568 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10569 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10570 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10571 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10572 | X"$ac_file" : 'X\(/\)' \| \ |
| 10573 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10574 | echo X"$ac_file" | |
| 10575 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10576 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10577 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10578 | /^X\(\/\).*/{ s//\1/; q; } |
| 10579 | s/.*/./; q'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10580 | { if $as_mkdir_p; then |
| 10581 | mkdir -p "$ac_dir" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10582 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10583 | as_dir="$ac_dir" |
| 10584 | as_dirs= |
| 10585 | while test ! -d "$as_dir"; do |
| 10586 | as_dirs="$as_dir $as_dirs" |
| 10587 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10588 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10589 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10590 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10591 | X"$as_dir" : 'X\(/\)' \| \ |
| 10592 | . : '\(.\)' 2>/dev/null || |
| 10593 | echo X"$as_dir" | |
| 10594 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10595 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10596 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10597 | /^X\(\/\).*/{ s//\1/; q; } |
| 10598 | s/.*/./; q'` |
| 10599 | done |
| 10600 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10601 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10602 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10603 | { (exit 1); exit 1; }; }; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10604 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10605 | ac_builddir=. |
| 10606 | |
| 10607 | if test "$ac_dir" != .; then |
| 10608 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10609 | # A "../" for each directory in $ac_dir_suffix. |
| 10610 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10611 | else |
| 10612 | ac_dir_suffix= ac_top_builddir= |
| 10613 | fi |
| 10614 | |
| 10615 | case $srcdir in |
| 10616 | .) # No --srcdir option. We are building in place. |
| 10617 | ac_srcdir=. |
| 10618 | if test -z "$ac_top_builddir"; then |
| 10619 | ac_top_srcdir=. |
| 10620 | else |
| 10621 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10622 | fi ;; |
| 10623 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10624 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10625 | ac_top_srcdir=$srcdir ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10626 | *) # Relative path. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10627 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10628 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10629 | esac |
| 10630 | |
| 10631 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 10632 | # the directories may not exist. |
| 10633 | case `pwd` in |
| 10634 | .) ac_abs_builddir="$ac_dir";; |
| 10635 | *) |
| 10636 | case "$ac_dir" in |
| 10637 | .) ac_abs_builddir=`pwd`;; |
| 10638 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 10639 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 10640 | esac;; |
| 10641 | esac |
| 10642 | case $ac_abs_builddir in |
| 10643 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 10644 | *) |
| 10645 | case ${ac_top_builddir}. in |
| 10646 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 10647 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 10648 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 10649 | esac;; |
| 10650 | esac |
| 10651 | case $ac_abs_builddir in |
| 10652 | .) ac_abs_srcdir=$ac_srcdir;; |
| 10653 | *) |
| 10654 | case $ac_srcdir in |
| 10655 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 10656 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 10657 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 10658 | esac;; |
| 10659 | esac |
| 10660 | case $ac_abs_builddir in |
| 10661 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 10662 | *) |
| 10663 | case $ac_top_srcdir in |
| 10664 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 10665 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 10666 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 10667 | esac;; |
| 10668 | esac |
| 10669 | |
| 10670 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10671 | |
| 10672 | if test x"$ac_file" != x-; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10673 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10674 | echo "$as_me: creating $ac_file" >&6;} |
| 10675 | rm -f "$ac_file" |
| 10676 | fi |
| 10677 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10678 | # use $as_me), people would be surprised to read: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10679 | # /* config.h. Generated by config.status. */ |
| 10680 | if test x"$ac_file" = x-; then |
| 10681 | configure_input= |
| 10682 | else |
| 10683 | configure_input="$ac_file. " |
| 10684 | fi |
| 10685 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 10686 | sed 's,.*/,,'` by configure." |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10687 | |
| 10688 | # First look for the input files in the build tree, otherwise in the |
| 10689 | # src tree. |
| 10690 | ac_file_inputs=`IFS=: |
| 10691 | for f in $ac_file_in; do |
| 10692 | case $f in |
| 10693 | -) echo $tmp/stdin ;; |
| 10694 | [\\/$]*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10695 | # Absolute (can't be DOS-style, as IFS=:) |
| 10696 | 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] | 10697 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10698 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10699 | echo "$f";; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10700 | *) # Relative |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10701 | if test -f "$f"; then |
| 10702 | # Build tree |
| 10703 | echo "$f" |
| 10704 | elif test -f "$srcdir/$f"; then |
| 10705 | # Source tree |
| 10706 | echo "$srcdir/$f" |
| 10707 | else |
| 10708 | # /dev/null tree |
| 10709 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10710 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10711 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10712 | fi;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10713 | esac |
| 10714 | done` || { (exit 1); exit 1; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10715 | _ACEOF |
| 10716 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10717 | sed "$ac_vpsub |
| 10718 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10719 | _ACEOF |
| 10720 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10721 | :t |
| 10722 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 10723 | s,@configure_input@,$configure_input,;t t |
| 10724 | s,@srcdir@,$ac_srcdir,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10725 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10726 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10727 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 10728 | s,@builddir@,$ac_builddir,;t t |
| 10729 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 10730 | s,@top_builddir@,$ac_top_builddir,;t t |
| 10731 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10732 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 10733 | rm -f $tmp/stdin |
| 10734 | if test x"$ac_file" != x-; then |
| 10735 | mv $tmp/out $ac_file |
| 10736 | else |
| 10737 | cat $tmp/out |
| 10738 | rm -f $tmp/out |
| 10739 | fi |
| 10740 | |
| 10741 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10742 | _ACEOF |
| 10743 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10744 | |
| 10745 | # |
| 10746 | # CONFIG_HEADER section. |
| 10747 | # |
| 10748 | |
| 10749 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 10750 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 10751 | # |
| 10752 | # ac_d sets the value in "#define NAME VALUE" lines. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10753 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 10754 | ac_dB='[ ].*$,\1#\2' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10755 | ac_dC=' ' |
| 10756 | ac_dD=',;t' |
| 10757 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10758 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10759 | ac_uB='$,\1#\2define\3' |
| 10760 | ac_uC=' ' |
| 10761 | ac_uD=',;t' |
| 10762 | |
| 10763 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 10764 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10765 | case $ac_file in |
| 10766 | - | *:- | *:-:* ) # input from stdin |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10767 | cat >$tmp/stdin |
| 10768 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10769 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10770 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10771 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10772 | * ) ac_file_in=$ac_file.in ;; |
| 10773 | esac |
| 10774 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10775 | 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] | 10776 | echo "$as_me: creating $ac_file" >&6;} |
| 10777 | |
| 10778 | # First look for the input files in the build tree, otherwise in the |
| 10779 | # src tree. |
| 10780 | ac_file_inputs=`IFS=: |
| 10781 | for f in $ac_file_in; do |
| 10782 | case $f in |
| 10783 | -) echo $tmp/stdin ;; |
| 10784 | [\\/$]*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10785 | # Absolute (can't be DOS-style, as IFS=:) |
| 10786 | 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] | 10787 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10788 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10789 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 10790 | echo "$f";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10791 | *) # Relative |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10792 | if test -f "$f"; then |
| 10793 | # Build tree |
| 10794 | echo "$f" |
| 10795 | elif test -f "$srcdir/$f"; then |
| 10796 | # Source tree |
| 10797 | echo "$srcdir/$f" |
| 10798 | else |
| 10799 | # /dev/null tree |
| 10800 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10801 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10802 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10803 | fi;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10804 | esac |
| 10805 | done` || { (exit 1); exit 1; } |
| 10806 | # Remove the trailing spaces. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10807 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10808 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10809 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10810 | |
| 10811 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 10812 | # `conftest.undefs', that substitutes the proper values into |
| 10813 | # config.h.in to produce config.h. The first handles `#define' |
| 10814 | # templates, and the second `#undef' templates. |
| 10815 | # And first: Protect against being on the right side of a sed subst in |
| 10816 | # config.status. Protect against being in an unquoted here document |
| 10817 | # in config.status. |
| 10818 | rm -f conftest.defines conftest.undefs |
| 10819 | # Using a here document instead of a string reduces the quoting nightmare. |
| 10820 | # Putting comments in sed scripts is not portable. |
| 10821 | # |
| 10822 | # `end' is used to avoid that the second main sed command (meant for |
| 10823 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 10824 | # See the Autoconf documentation for `clear'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10825 | cat >confdef2sed.sed <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10826 | s/[\\&,]/\\&/g |
| 10827 | s,[\\$`],\\&,g |
| 10828 | t clear |
| 10829 | : clear |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10830 | 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] | 10831 | t end |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10832 | 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] | 10833 | : end |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10834 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10835 | # If some macros were called several times there might be several times |
| 10836 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 10837 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 10838 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 10839 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 10840 | rm -f confdef2sed.sed |
| 10841 | |
| 10842 | # This sed command replaces #undef with comments. This is necessary, for |
| 10843 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 10844 | # on some systems where configure will not decide to define it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10845 | cat >>conftest.undefs <<\_ACEOF |
| 10846 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 10847 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10848 | |
| 10849 | # Break up conftest.defines because some shells have a limit on the size |
| 10850 | # of here documents, and old seds have small limits too (100 cmds). |
| 10851 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10852 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10853 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 10854 | echo ' :' >>$CONFIG_STATUS |
| 10855 | rm -f conftest.tail |
| 10856 | while grep . conftest.defines >/dev/null |
| 10857 | do |
| 10858 | # Write a limited-size here document to $tmp/defines.sed. |
| 10859 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 10860 | # Speed up: don't consider the non `#define' lines. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10861 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10862 | # Work around the forget-to-reset-the-flag bug. |
| 10863 | echo 't clr' >>$CONFIG_STATUS |
| 10864 | echo ': clr' >>$CONFIG_STATUS |
| 10865 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 10866 | echo 'CEOF |
| 10867 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 10868 | rm -f $tmp/in |
| 10869 | mv $tmp/out $tmp/in |
| 10870 | ' >>$CONFIG_STATUS |
| 10871 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 10872 | rm -f conftest.defines |
| 10873 | mv conftest.tail conftest.defines |
| 10874 | done |
| 10875 | rm -f conftest.defines |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10876 | echo ' fi # grep' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10877 | echo >>$CONFIG_STATUS |
| 10878 | |
| 10879 | # Break up conftest.undefs because some shells have a limit on the size |
| 10880 | # of here documents, and old seds have small limits too (100 cmds). |
| 10881 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 10882 | rm -f conftest.tail |
| 10883 | while grep . conftest.undefs >/dev/null |
| 10884 | do |
| 10885 | # Write a limited-size here document to $tmp/undefs.sed. |
| 10886 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 10887 | # Speed up: don't consider the non `#undef' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10888 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10889 | # Work around the forget-to-reset-the-flag bug. |
| 10890 | echo 't clr' >>$CONFIG_STATUS |
| 10891 | echo ': clr' >>$CONFIG_STATUS |
| 10892 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 10893 | echo 'CEOF |
| 10894 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 10895 | rm -f $tmp/in |
| 10896 | mv $tmp/out $tmp/in |
| 10897 | ' >>$CONFIG_STATUS |
| 10898 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 10899 | rm -f conftest.undefs |
| 10900 | mv conftest.tail conftest.undefs |
| 10901 | done |
| 10902 | rm -f conftest.undefs |
| 10903 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10904 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10905 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10906 | # use $as_me), people would be surprised to read: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10907 | # /* config.h. Generated by config.status. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10908 | if test x"$ac_file" = x-; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10909 | echo "/* Generated by configure. */" >$tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10910 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10911 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10912 | fi |
| 10913 | cat $tmp/in >>$tmp/config.h |
| 10914 | rm -f $tmp/in |
| 10915 | if test x"$ac_file" != x-; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10916 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 10917 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10918 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 10919 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10920 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10921 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10922 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10923 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10924 | X"$ac_file" : 'X\(/\)' \| \ |
| 10925 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10926 | echo X"$ac_file" | |
| 10927 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10928 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10929 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10930 | /^X\(\/\).*/{ s//\1/; q; } |
| 10931 | s/.*/./; q'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10932 | { if $as_mkdir_p; then |
| 10933 | mkdir -p "$ac_dir" |
| 10934 | else |
| 10935 | as_dir="$ac_dir" |
| 10936 | as_dirs= |
| 10937 | while test ! -d "$as_dir"; do |
| 10938 | as_dirs="$as_dir $as_dirs" |
| 10939 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10940 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10941 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10942 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10943 | X"$as_dir" : 'X\(/\)' \| \ |
| 10944 | . : '\(.\)' 2>/dev/null || |
| 10945 | echo X"$as_dir" | |
| 10946 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10947 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10948 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10949 | /^X\(\/\).*/{ s//\1/; q; } |
| 10950 | s/.*/./; q'` |
| 10951 | done |
| 10952 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10953 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10954 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10955 | { (exit 1); exit 1; }; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10956 | |
| 10957 | rm -f $ac_file |
| 10958 | mv $tmp/config.h $ac_file |
| 10959 | fi |
| 10960 | else |
| 10961 | cat $tmp/config.h |
| 10962 | rm -f $tmp/config.h |
| 10963 | fi |
| 10964 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10965 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10966 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10967 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10968 | |
| 10969 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10970 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10971 | chmod +x $CONFIG_STATUS |
| 10972 | ac_clean_files=$ac_clean_files_save |
| 10973 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10974 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10975 | # configure is writing to config.log, and then calls config.status. |
| 10976 | # config.status does its own redirection, appending to config.log. |
| 10977 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10978 | # by configure, so config.status won't be able to write to it; its |
| 10979 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10980 | # effectively closing config.log, so it can be properly (re)opened and |
| 10981 | # appended to by config.status. When coming back to configure, we |
| 10982 | # need to make the FD available again. |
| 10983 | if test "$no_create" != yes; then |
| 10984 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10985 | ac_config_status_args= |
| 10986 | test "$silent" = yes && |
| 10987 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10988 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10989 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10990 | exec 5>>config.log |
| 10991 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10992 | # would make configure fail if this is the last instruction. |
| 10993 | $ac_cs_success || { (exit 1); exit 1; } |
| 10994 | fi |
| 10995 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10996 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 10997 | |
| 10998 | echo "$as_me:$LINENO: result: |
| 10999 | |
| 11000 | The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories. |
| 11001 | |
| 11002 | Customizations can be put in: |
| 11003 | - 'user.mak' |
| 11004 | - 'pjlib/include/pj/config_site.h' |
| 11005 | |
| 11006 | The next step now is to run 'make dep' and 'make'. |
| 11007 | " >&5 |
| 11008 | echo "${ECHO_T} |
| 11009 | |
| 11010 | The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories. |
| 11011 | |
| 11012 | Customizations can be put in: |
| 11013 | - 'user.mak' |
| 11014 | - 'pjlib/include/pj/config_site.h' |
| 11015 | |
| 11016 | The next step now is to run 'make dep' and 'make'. |
| 11017 | " >&6 |
| 11018 | |